title: Fixing vertical spacing after \captionof as a custom caption

text: I'm trying to get a single caption after two columns of code. For two columns, `parcolumns` is the only method I've found that allows a page break in the middle and is my current favorite. Using minipages is also possible and looks a lot nicer until it forces ugly whitespace when it can't flow across multiple pages. Anyway, my main problem is the vertical space after captionof, which I'm attempting to use as a caption of _both_ columns. Below is an example where this happens. **How can I restore a normal spacing/margin after`\captionof`?**               \documentclass{article}     \usepackage{parcolumns}     \usepackage{listings}     \usepackage{caption}          \lstset{         frame=lrtb,         captionpos=b,     }          \begin{document}          An initial paragraph.          \begin{lstlisting}[caption={Insertion sort using swaps}]     for i ← 1 to length(A)         j ← i         while j > 0 and A[j-1] > A[j]             swap A[j] and A[j-1]             j ← j - 1     \end{lstlisting}     A paragraph after lstlistings with normal indentation and vertical spacing.          \begingroup     %\noindent %this would cause extra vertical space before the parcolumns     \begin{parcolumns}[colwidths={1=.48\linewidth}]{2} %colwidths still leaves too much whitespace between columns     \footnotesize          \colchunk[1]{     \begin{lstlisting}     for i ← 1 to length(A)         j ← i         while j > 0 and A[j-1] > A[j]             swap A[j] and A[j-1]             j ← j - 1     \end{lstlisting}     }          \colchunk[2]{     \begin{lstlisting}     for i ← 1 to length(A)         x ← A[i]         j ← i         while j > 0 and A[j-1] > x             A[j] ← A[j-1]             j ← j - 1         A[j] ← x     \end{lstlisting}     }          \end{parcolumns}     \captionof{lstlisting}{Different insertion sorts in parcolumns.}     \endgroup          A paragraph after the caption for the parcolumns environment.     This paragraph is indented due to begingroup/endgroup but still has no vertical space/margin between     it and the caption.               \begingroup     \noindent     \begin{minipage}[t]{.48\textwidth} %t aligns top     \footnotesize     \begin{lstlisting}     for i ← 1 to length(A)         j ← i         while j > 0 and A[j-1] > A[j]             swap A[j] and A[j-1]             j ← j - 1     \end{lstlisting}     \end{minipage}     \hfill     \begin{minipage}[t]{.48\textwidth}     \footnotesize     \begin{lstlisting}     for i ← 1 to length(A)         x ← A[i]         j ← i         while j > 0 and A[j-1] > x             A[j] ← A[j-1]             j ← j - 1         A[j] ← x     \end{lstlisting}     \end{minipage}     \captionof{lstlisting}{Different insertion sorts in minipages.}     \endgroup          A paragraph after the caption for two minipages.     This paragraph is indented due to noindent and begingroup/endgroup but still has no vertical space/margin between     it and the caption.          \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/2ksjG.png) (I'm not using frames on my lstlistings so the rendering bug isn't a problem, I hope)


title: position arc relative to circle

text: > **Possible Duplicate:**   >  Draw arc in tikz when center of circle is specified an very trivial question but I can't do it! Sorry but I find coordinates confusing. I would like to draw an arc around a circle; both should have the same center of rotation. And I want to position the arc relative to the circle. Here is the MWE to correct:               \documentclass{article}     \usepackage{tikz}     \usepackage{graphicx}          \tikzset{state/.style={circle,draw=black, very thick,minimum size=4em}}          \begin{document}     \begin{tikzpicture}     \node[state, fill=black!20] (sh1) at (1,3) {Circle};     \draw[thick] (sh1) arc (0:300:2cm);     \end{tikzpicture}     \end{document}      How do I get to have the same center for both shapes, with relative positioning of the arc? Any simple and brilliant idea?


title: Displaying memory variable values

text: TeX uses a variety of files to set the maximum memory of various items, e.g. "pool size". Is there a command which will print the values of all of these variables?


title: Bibliography style: author format

text: I would like the item in my bibliography to be format like this               Cauchy, L. A., Goursat E., Contour integral. French Academy, 2012.      That is:   -no numbering or key before the authors name   -lastname before the firstname where the firstname is abbreviate But I get this ![enter image description here](http://i.stack.imgur.com/fBm4T.png) with the below sample document which illustrates the different kind of author entries I can have. Should I manually format all author entries to get the format I want?   Is there an automated way to get this result?               \documentclass{article}     \usepackage{filecontents}          \begin{filecontents*}{example.bib}              @article{             refOne,             author = {Cauchy, L. A. and E. Goursat },             title = {Contour integral},             year = {2012},             journal = {French Academy},         }              @article{             refTwo,             author = {Louis Augustin Cauchy and Edouard Goursat},             title = {Contour integral},             year = {2012},             journal = {French Academy},         }              @article{             refThree,             author = {L. A. Cauchy and E. Goursat},             title = {Contour integral},             year = {2012},             journal = {French Academy},         }          \end{filecontents*}          \begin{document}         \bibliography{example}{}             \bibliographystyle{plain}             \nocite{*}     \end{document}


title: latex graph points tikz

text: I drawed a simple path in graph               \begin{center}     \begin{tikzpicture}     \tikzstyle{every node}=[draw,shape=circle]     \draw[xshift=-1cm] (-2,0) node[circle,fill,inner sep=1pt,label=below:$x$](x){};     \draw[xshift=-1cm] (-1,0) node[circle,fill,inner sep=1pt,label=below:$y$](y){};     \draw[xshift=-1cm] (0,0) node[circle,fill,inner sep=1pt,label=below:$z$](z){};     \draw[xshift=-1cm] (1,0) node[circle,fill,inner sep=1pt,label=below:$k$](k){};     \draw (x) -- (k);     \end{tikzpicture}     \end{center}     \end{document}      But I need to draw more 3 vertex on this path (between y and z) ![enter image description here](http://i.stack.imgur.com/FnKV7.png) I tried the \fill [dot] (x) circle (.3mm); but it doesnot work. Can you help me plz?


title: graphics in pstricks, etc., not working

text: I'm using TeXworks and MiKTeX on Windows 7 Professional, and also LaTeX on a Linux machine, and including some graphics commands seen below. On windows, the diagonal lines are not visible, and that might not be much of a problem although it's irritating. But on Windows, I also get error messages about psarc and psline not being recognized, despite the inclusion of this:               \usepackage{pict2e}     \usepackage{pstricks-add}     \usepackage{pst-node,pst-plot}     \psset{plotpoints=9,unit=3}      And on Linux I haven't been able to get the arrows to work right. I had something like this:               \put(125,2){\psline(1,0){45}}      (Some numbers specifying locations of things have changed since I ran this; I don't think 125 and 2 would be right for what I have here.) I had thought {45} would be the length of the arrow It put an arrow where I wanted it but also showed the number 45. So then I wrote               \put(125,2){\psline(1,0)}      without that number and it still put the arrow just where I wanted it, without the number 45. How the end of the arrow ended up in the right place I don't know, but then I tried another arrow, and it ended up longer than what I wanted, and I have no idea what determines the length of the arrow or how to get it to be what I want. I also haven't gotten \psarc to work. I tried to follow an online manual that was a long pdf document; I don't have the URL just now. I only need simple stuff: line segments, arrows, arcs of circles, and mathematical notation. The line segments and the mathematical notation haven't been any problem at all; the rest isn't working. What should I do?               \documentclass[12pt]{article}          \usepackage{pict2e}     \usepackage{pstricks-add}     \usepackage{pst-node,pst-plot}     \psset{plotpoints=9,unit=3}          \usepackage{eepic}          \begin{document}          Lorem ipsum.     %     \begin{figure}[h]     \setlength{\unitlength}{0.66mm}     \begin{picture}(100,130)(0,0)     % \thicklines     \put(80,8){\line(1,0){90}}     \put(170,8){\line(0,1){120}}     \put(80,8){\line(3,4){90}}     \put(90,13){$\theta$}     %  \psarc*[linewidth=1pt](10,8){20}{0}{53}     \put(175,68){$\tan\theta$}     \put(110,68){$\sec\theta$}     \put(120,0){$1$}     %  {\psset{arrows=->}     %  \put(125,2){\psline(1,0)}     %  \put(117,2){\psline(-1,0)} }     \put(74,0){$V$}     \end{picture}     \caption{}\label{big triangle}     \end{figure}          Lorem ipsum.          \end{document}


title: Redefining \bf, \it, \rm, \sl, \tt

text: The following code compiles to a document that has the word "проба" only in roman typeface (first paragraph). How can I have this word in the other paragraphs, as well?               % Compile with luatex     \input{luaotfload.sty}     \font\f=FreeSerif\f     test проба     \par     \sl test проба     \par     \it test проба     \par     \bf test проба     \bye


title: Is it possible to pagebreak a longtable if the next "n" amount of rows won't fit on page?

text: I want to produce a `longtable` where some "elements" consist of multiple rows (see picture). I want the `longtable` to pagebreak if the next element doesn't fit in the table. Is there a way to tell `longtable` to do that for me?               \documentclass{article}          \usepackage{geometry}     \usepackage{longtable}     \usepackage{array}          \begin{document}          {\renewcommand*\arraystretch{3}     \begin{longtable}{c c c c c}     some & serious & stuff\\     \hline     \endhead     & stuff \\     \\     \\     \\      \\     \\     \\      \\     \\     \\     \\     & is \\     & one \\     \textbf{\Large This} & of \\     & those \\     & elements \\     \end{longtable}     }          \end{document}      ![http://i.imgur.com/m0QscJl.png?1](http://i.stack.imgur.com/uVGIy.png) ![http://i.imgur.com/jKBXbMI.png?1](http://i.imgur.com/jKBXbMI.png?1) The desired behaviour **in this case** would be to pagebreak because the 5 rows don't fit on the page.


title: Write numbers and draw rectangles with foreach

text: ![enter image description here](http://i.stack.imgur.com/wK0MM.jpg) I am trying to draw a below given diagram for myself. I have been able to draw the rectangles using `\foreach` however I am unable to write numbers below the boxes as shown. Could somebody help me in drawing such a diagram. Here is my code, it is IEEE Tran's code. Also, please see that I have manually added numbers from 1 to n, I want to do it using `\foreach` command. Kindly do not give negative voting because I am beginner with Tikz and this forum. Please answer one more question- is there a way I can initialize `x` and `y` coordinates as `x = 1` and `y = 1` in the starting of the Tikz figure and then draw all the blocks/rectangles using reference coordinates?               \documentclass[conference]{IEEEtran}          \ifCLASSINFOpdf          \else     \fi     \usepackage[usenames,dvipsnames]{color}     \usepackage[T1]{fontenc}     \usepackage{tikz}     \usetikzlibrary{positioning}     \usetikzlibrary{arrows}     \usetikzlibrary{shapes.multipart}     \usepackage[caption=false]{subfig}     \usepackage{tabularx,tikz}               \hyphenation{op-tical net-works semi-conduc-tor}               \begin{document}          \title{Bare Demo of IEEEtran.cls for Conferences}          \maketitle          \IEEEpeerreviewmaketitle          \section{Introduction}     I wish you the best of success.          \begin{tikzpicture}     %Can I give a reference coordinate such as x = 0 and y = 0 and then draw figures     %based on that reference points through out the picture?          \draw [rounded corners](0,0) rectangle +(9,6);          \draw [rounded corners](0.15,0.5) node[above right, font =\small,align=center,text width = 2cm]{YYYY} rectangle +(2.25,5);          \foreach \x in {2.5}         \foreach \y in {0.5,3,4.5}         {         \draw [rounded corners] (\x,\y) rectangle +(6.35,1);              }          \foreach \x in {2.75,4.25,5.75,7.25}         \foreach \y in {0.9,3.4,4.9}         {         \draw [rounded corners] (\x, \y) node[above right, font=\scriptsize,text width = 1.8cm] {XXX} rectangle +(1.2,0.5);         }     \node at (2.75,4.5) [above right, font=\scriptsize,text width = 1.8cm] {1} ;     \node at (2.75,3) [above right, font=\scriptsize,text width = 1.8cm] {2} ;     \node at (2.75,0.5) [above right, font=\scriptsize,text width = 1.8cm] {n} ;          \node at (4.25,4.5) [above right, font=\scriptsize,text width = 1.8cm] {n+1} ;     \node at (4.25,3) [above right, font=\scriptsize,text width = 1.8cm] {n+2} ;     \node at (4.25,0.5) [above right, font=\scriptsize,text width = 1.8cm] {2n} ;          \node at (5.75,4.5) [above right, font=\scriptsize,text width = 1.8cm] {2n+1} ;     \node at (5.75,3) [above right, font=\scriptsize,text width = 1.8cm] {2n+2} ;     \node at (5.75,0.5) [above right, font=\scriptsize,text width = 1.8cm] {3n} ;          \node at (7.25,4.5) [above right, font=\scriptsize,text width = 1.8cm] {3n+1} ;     \node at (7.25,3) [above right, font=\scriptsize,text width = 1.8cm] {3n+2} ;     \node at (7.25,0.5) [above right, font=\scriptsize,text width = 1.8cm] {4n} ;          \end{tikzpicture}          \end{document}


title: Creating a table which spans verso and recto pages in ConTeXt?

text: I am preparing a book which contains information which is divided into three columns. The first column (A) occupies the full width of all verso pages. The second (B) and third (C) column share the recto page, e.g:                   (verso)    (recto)      _______________________     |           |     |     |     |     A     |  B  |  C  |     |           |     |     |     |           |     |     |     |           |     |     |     |           |     |     |     |           |     |     |     |           |     |     |     |           |     |     |     |___________|_____|_____|      With data inside, the rows on the verso page and recto page should line up vertically:                _______________________     |           |     |     |     |This text  |This |This |     |will appear|text |text |     |in column  |will |will |     |A.         |appe-|appe-|     |           |r in |r in |     |           |colu-|colu-|     |           |mn B.|mn C.|     |100        |200  |300  |     |___________|_____|_____|      How can I create a table which spans 2 pages, in this manner? Update: Until the bug is fixed, I need a solution for my book. I have tried using linetables with the solution to How to set two or more paragraphs to use the same amount of vertical space? to ensure that the three paragraphs align properly. This is what I have attempted:               \setuppapersize[A5][A4, landscape]     \setuparranging[2SIDE]     \newdimen\maxbufferheight     \def\placebuffertomaximumheight[#1]%         {\maxbufferheight\zeropoint          \processcommalist[#1]\domeasurebuffermaxheight         \processcommalist[#1]\doplacebuffertomaxheight}     \def\domeasurebuffermaxheight#1%         {\setbox\scratchbox\vbox{\getbuffer[#1]}%         \scratchdimen\ht\scratchbox         \ifdim\scratchdimen>\maxbufferheight             \maxbufferheight=\scratchdimen         \fi}     \def\doplacebuffertomaxheight#1%         {\ruledvbox to \maxbufferheight         {\getbuffer[#1]}%         \blank[none]}     \setuppagenumbering[alternative=doublesided]     \startsetups twopagealign:before         \page [left]         \setuplinetable [n=3]         \setuplinetable [c][1] [width=\textwidth]         \setuplinetable [c][2] [width=.5\textwidth]         \setuplinetable [c][3] [width=.5\textwidth]         \startlinetable     \stopsetups     \definestartstop [twopagealign]     [     before=\setups{twopagealign:before},     after={\stoplinetable\page},     ]     \define[3]\myalign{\NC#1\NC#2\NC#3\NC\NR}     \define[3]\makeinbuffer{         \myalign{             \startbuffer[one]                 #1             \stopbuffer         }{             \startbuffer[two]                 #2             \stopbuffer         }{             \startbuffer[three]                 #3             \stopbuffer         }         \placebuffertomaximumheight[one,two,three]     }     \starttext         \starttwopagealign             \myalign {\input knuth} {\input tufte} {\input ward}             \makeinbuffer{\input ward}{\input tufte}{\input ward}         \stoptwopagealign     \stoptext        * Is the solution from How to set two or more paragraphs to use the same amount of vertical space? compatible with linetables?   * Might there be a temporary solution for making linetables which have equal row heights on recto and verso pages?


title: Referring to a website in `bibtex`

text: I am referring to a website in a scientific paper, the website is providing some stats. What do I write in the `author` field? The stats are collected using programs installed on some players PCs. I am using `natbib` in my `tex` files. I am generating the `bibtex` file using mendeley. This is the website: http://www.xfire.com/cms/xstatics_2009_february/


title: How to format bibtex keys when exporting from EndNote

text: I exported citation from EndNote and they don't work. Why is that?               @article{Fox, TA-1991-97,        author = {Fox, TA},        title = {Wake characteristics of two circular cylinders arranged perpendicular to each other},        journal = {Journal of fluids engineering},        volume = {113},        number = {1},        pages = {45-50},        ISSN = {0098-2202},        year = {1991},        type = {Journal Article}     }


title: Paragraph-style for footnotes in ConTeXt

text: Is there a way to have paragraph-style footnotes in ConTeXt, similar to what is provided by the `footmisc` package? E.g.:               This is some text^1. This is some     other^2 text. This is some more     text.     --------     1 This is a footnote 2. This is     another footnote. See how it     begins on the same line as the     first footnote?


title: Itemized table layout

text: quick question: I copied this code:               \documentclass{article}     \usepackage{amsmath,amssymb,calc}     \def\horizlist#1#2#3{%       \setcounter{enumi}{0}%       #3%       \flushleft       \newlength\stringlength       \setlength\stringlength{#2}       \advance\stringlength by #1 \relax       \def\item{\hfil\egroup\penalty50 \hfill       \refstepcounter{enumi}%       \leavevmode\hbox to \stringlength \bgroup\space(\theenumi)\space}       \leavevmode\bgroup\hskip 0pt plus -1fill }          \def\endhorizlist{\hfil\egroup\endflushleft}          \begin{document}     \begin{enumerate}     \item blah         \begin{horizlist}{2cm}{\widthof{null}}{\renewcommand\theenumi{\alph{enumi}}}         \item null         \item null         \item null         \item null         \item null         \item null         \item null         \item null         \item null         \item null         \end{horizlist}     \end{enumerate}     \end{document}      It does what it should do, the only problem being that the last item appears on the right, not adjoint to its predecessor on the left. How can i fix this? To illuminate the problem: The output is like this: ![enter image description here](http://i.stack.imgur.com/YpApQ.png) I want this: ![enter image description here](http://i.stack.imgur.com/zkyfe.png) Any Help?


title: What is the minimum TeX one can use to put together a mathematical document?

text: Being a mathematician, I use LaTeX a lot for writing. However, I am interested (mildly) in working with TeX instead, even if only for keeping my own notes. What is the minimum amount of TeX do I need to know to produce reasonable documents with mathematical content? I'm not interested in the finer points of compositing and typefaces and so on, so I may be barking up the wrong tree here. Also (and this is a stretch) what about diagrams in TeX? Usually I use xymatrix in LaTeX, is there an easy way to do simple diagrams in TeX? * * * Edit: The answers to the second question are good, but what about the first? Shall I go back a step and ask: > What is the minimum amount of TeX do I need to know to produce reasonable > documents?


title: What is the status of generating LaTeX from handwriting (i.e., OCR)?

text: I type fast enough that for most things it's not a pain, but I have a few big stacks of old course notes I'd like in LaTeX which I'm dreading having to go through. So, I'm just wondering what the best solution for handwriting -> LaTeX is so far, if any.


title: How can I get bold math symbols?

text: To make Latin-letter variables bold I can use e.g. `\mathbf{a}`, but while putting Greek letters or symbols such as `\nabla` inside `\mathbf` doesn't cause any errors or warnings, it also doesn't do anything else. **What is the best way to make bold math symbols, in particular Greek letters and`\nabla`?**


title: \mathbf not bolding mathematical character

text: Why is it that when I type the following:               $\mathbf{\mu}$      the mu is not bolded? Consider this code:               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{pdfpages}     \title{Test}     \author{Test}     \date{}     \begin{document}      \maketitle          $\mathbf{\mu}$          \end{document}      The mu is not bolded. I am using TeXWorks.


title: Can I make a greek letter extra-bold in math mode?

text: > **Possible Duplicate:**   >  How can I get bold math symbols? I would like to distinguish between a vector of betas and the individual betas and I want to use **bold** symbol, rather than an error, to indicate the vector. However, I see from How can I get bold math symbols? pointed out by @Werner that there is no difference between `\beta` and `\mathbf{beta}`. However, even `\bm{beta}` could use a little fattening-up, in my opinion, and the `\hm` from the `bm` package. Can I make the beta's extra bold? My current solution is just to use "B" instead. for comparison, here is the output of               \documentclass[12pt]{article}     \usepackage{amssymb}     \usepackage{bm}     \begin{document}     $\beta \mathbf{\beta} \bm{\beta} \hm{\beta} \bm{\beta\mkern-11mu\beta}$     \end{document}      ![](http://i.stack.imgur.com/zL6yw.jpg)


title: Missing $ inserted - did I make something wrong?

text: Im writing a paper using Latex and I get repeatedly this "! Missing $ inserted. $ l.92 ?" error. Its only in two passages and I don't see any obvious mistake I made. The code is:                   \documentclass[a4paper,11pt]{scrartcl}         \usepackage{amsmath}         \usepackage[utf8]{inputenc}         ...         \begin{document}         ...         :<math>\text{rank}\;[E\bigl(\textbf{X'_i}\Omega^{-1}\textbf{X_i}\bigr)]=K\qquad\text{mit}\;\textbf{X_i}=x_{i1},\ldots,x_{iT}</math>         ...         \begin{displaymath}         \hat{\beta}_{RE}=(\sum_{i=1}^{N}\textbf{X'_{i}}\hat{\Omega}^{-1}\textbf{X_{i}})^{-1}(\sum_{i=1}^{N}\textbf{X'_{i}}\hat{\Omega}^{-1}\textbf{X_{i}})         \end{displaymath}         ...         \end{document}      I get the error message for both of these blocks. I only started a week ago with latex and had no bigger problems up to now. Thanks for your help in advance. I use Miktex 2.9,texworks with pdflatex+makeindex+bibtex.


title: How to bold math-mode characters?

text: > **Possible Duplicate:**   >  Bold math symbols? I am wondering if it is possible to bold characters under math-mode, for instance, is it possible to bold `$\langle \rangle$`?


title: Bold text and newlines inside equations.

text: What I'm doing:               \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{eucal}     \usepackage{amssymb}     \usepackage{mathrsfs}          % don't know what some of those do, but i think all the math related ones are     % there     % there are more packages being imported though      Then I try:               \textbf{w_{n+1}} = \textbf{w_{n}} + e\eta\textbf{x}(n) \\     \textbf{\Delta}\textbf{w} = e\eta\textbf{x}          % above doesn't work, complains about missing $          \textbf{$w_{n+1}$} = \textbf{$w_{n}$} + e\eta\textbf{$x$}(n) \\     \textbf{$\Delta$}\textbf{$w$} = e\eta\textbf{$x$}          % above compiles, but no bold and no newline


title: Unable to include a thesis reference

text: I want to include a thesis reference, but not able to do it. The MWE is here:               \documentclass[onecolumn,12pt]{IEEEtran}               \begin{document}     hi          \cite{mythesis}          \end{document}      In the .bbl file, the reference is included as follows:               @MASTERSTHESIS{mythesis,       AUTHOR =       {myname},       TITLE =        {mytitle},       SCHOOL =       {university},       YEAR =         {2013},       month =        {may},       }      In the .pdf output, the reference is always gives as [?]


title: table of contents: adding a vertical space

text: In a table of contents that has been generated with LaTeX's `\tableofcontents` command, I would like to add a vertical space before a Chapter item in the table of contents. One way that I have in my notes is to use               \addtocontents{toc}{\protect\vspace{10pt}}      at a desired location in the document so that this gets processed by `\tableofcontents` to include an appropriate vertical space in the table of contents. I have two questions:   1. Is the above the correct way to get a vertical space in a table of contents?   2. Why is it necessary to use the `\protect` command here? Thank you...


title: Problem with the answers package.

text: I am using the answers package to build a series of exercises. The problem i have encountered is when going from               \item $ 5x^2-x \geq 0 $     \begin{sol}     $x \geq 1, x \leq 0$     \end{sol}      to               \uppg{$x<-2, x>2$}{$-9 < x < 9$}      Where uppg looks like               \newcommand{\uppg}[2]     {     \item  #1     \begin{sol}     \#2      \end{sol}     }      I keep getting errors because it reads the `\begin{sol}` in `uppg` but ignores the `\end{sol}` and just keeps reading in the file until it realizes it's misstakes and throws an error. How can i resolve this?


title: How to get larger item symbols for some lists in a Beamer presentation?

text: I am writing a Beamer presentation that mixes normal-size font for some slides, and large-size font for other slides. When I use the `itemize` environment with a large font, the item symbol (a small ball) does not become larger, and the result is not aesthetically pleasant. How can I make itemized lists with large item symbols, but only for those which have large text, not for the entire presentation (i.e., without globally changing the beamer template)?


title: gnuplot epslatex pdflatex

text: I'm trying to embed my plot created in gnuplot. Just setting the terminal to latex works fine but only creates a black and white plot. With the color screens getting cheaper these days this isn't quite satisfying :D The manual also mentions the possibility to use epslatex, then converting the eps file to a pdf file and include the generated latex file completely messes up the spacing between the labels on the axis and the actual graph. This happens both times, when creating a latex file for inclusion and also when creating a standalone file. Guessing that I'm not the only one I ask myself what I am doing wrong and weather there is an easy workaround. ![Messed up spacing](http://i.stack.imgur.com/4vHO8.png)


title: Use multiple bibliographystyle?

text: I am using `IEEEtran` as `bibliographystyle` which presents the citation as numbers. In some text I need to write the name of authors. However, `IEEEtran` can only use `\cite{..}` to give numbers. I would like to ask how can I use multiple `bibliographystyle` that don't make conflicts (i.e., give the ability to cite by numbers `\cite{..}` or author name `\citep{..}` in the text, having the same list of Biblography as numbers at the end of the document)


title: How can/should I include annotated images?

text: It's often the case that I'd like to include some graphic in a LaTeX document and overlay it with some text or other annotation, maybe including arrows or other simple graphics. The annotations can be easily handled using TikZ, so obviously if I create the graphic itself in TikZ, I'm all set. But sometimes the graphic is very complex and it's not practical to recreate it with TikZ commands. In these cases, I would like to include the graphic file directly, but still be able to layer my annotations over it. Editing the image to include the annotation is a possibility, but I'd really like to avoid that because the annotations then wouldn't reflect the document's font style and size, and also because it'd be harder to change them. Is there a preferred way to include an external image and then layer additional content over it? A solution that lets me continue to use TikZ for the annotations is preferred, but not required. **EDIT:** All three answers (`overpic`, a TikZ node, and `\pgftext`) work fine, but unfortunately I can only accept one, so I'm going with the one recommended in the "official source," the TikZ manual.


title: font size in chemfig

text: I am using `chemfig` scaling and want to increase the font size, but not any other parameter of the molecule. So a MWE would be:               \documentclass{article}     \usepackge{chemfig}          \begin{document}          \definesubmol{R1}{--[:150]-[::60]-[::-60]-[::60]-[::-60]-[::-60]-[::-60]-[::-60]-[::60]}     \definesubmol{R2}{--[:30]-[::-60]-[::60]-[::-60]-[::+60]-[::+60]-[::+60]-[::+60]-[::-60]}     \definesubmol{R3}{-[,0.6]}     \chemfig[][scale=0.7]{([:-18]N*5((!{R1})-(!{R3})=\chemabove{N}{\quad\scriptstyle\oplus}([:342]!{R2})-=-))}          \end{document}      Can I increase the font size minimally without changing the rest of the molecule?


title: How to customize \titlepage in beamer?

text: I'm trying build my own theme to use for work-related presentations in `beamer`. I'm not so familiar with how to write the themes, I'm customizing a title page manually at the moment. What I want to do is have fine control over where text goes on the page when the `\titlepage` command is issued. I want to shift it rightwards and downwards from where `beamer` is choosing to put it.


title: Problem with \DeclareFixedFont and \psfrag in texlive2013

text: I have a problem with `\DeclareFixedFont` in combination with `\psfrag` which occurs in texlive2013 but not in texlive2010. When I use `\DeclareFixedFont{\myFont}{T1}{ptm}{b}{n}{10}` in the MWE the letter E is positioned as expected, i.e. top-right aligned to the corner of the rectangle. Hoewever, if I use `\DeclareFixedFont{\myFont}{T1}{ptm}{m}{n}{10}` the letter is no longer placed correctly but shifted down and to the left. Please note, I do not use my new font in the `psfrag` command at all. My current system is LinuxMint13 with texlive 2013. In my old system (Ubuntu 10.04 with texlive2010) the error does not show up. I have done some further experiments on the \DeclareFixedFont-command, which are documented in the MWE. Moreover, if I run my "new" dvi file (created by texlive2013) through my "old" dvips from texlive 2010 (the version ist dvips(k) 5.99), everything is OK. Comparing the log file output from both dvips versions, the only significant difference I see is, that dvips(k) 5.993 from texlive2013 also includes `texmf-dist/fonts/type1/urw/times/utmr8a.pfb`, whereas dvips(k) 5.99 does not include this file. Is there a bug in the dvips from texlive2013 (dvips(k) 5.993)? I have created the postcript file Rectangle.eps (included through filecontents environment in the MWE) using xfig and then exported to eps in xfig.               \begin{filecontents*}{Rectangle.eps}     %!PS-Adobe-3.0 EPSF-3.0     %%Title: Rectangle.fig     %%Creator: fig2dev Version 3.2 Patchlevel 5d     %%CreationDate: Sat Aug 31 10:07:28 2013     %%BoundingBox: 0 0 107 70     %Magnification: 1.0000     %%EndComments     %%BeginProlog     /$F2psDict 200 dict def     $F2psDict begin     $F2psDict /mtrx matrix put     /col-1 {0 setgray} bind def     /col0 {0.000 0.000 0.000 srgb} bind def     /col1 {0.000 0.000 1.000 srgb} bind def     /col2 {0.000 1.000 0.000 srgb} bind def     /col3 {0.000 1.000 1.000 srgb} bind def     /col4 {1.000 0.000 0.000 srgb} bind def     /col5 {1.000 0.000 1.000 srgb} bind def     /col6 {1.000 1.000 0.000 srgb} bind def     /col7 {1.000 1.000 1.000 srgb} bind def     /col8 {0.000 0.000 0.560 srgb} bind def     /col9 {0.000 0.000 0.690 srgb} bind def     /col10 {0.000 0.000 0.820 srgb} bind def     /col11 {0.530 0.810 1.000 srgb} bind def     /col12 {0.000 0.560 0.000 srgb} bind def     /col13 {0.000 0.690 0.000 srgb} bind def     /col14 {0.000 0.820 0.000 srgb} bind def     /col15 {0.000 0.560 0.560 srgb} bind def     /col16 {0.000 0.690 0.690 srgb} bind def     /col17 {0.000 0.820 0.820 srgb} bind def     /col18 {0.560 0.000 0.000 srgb} bind def     /col19 {0.690 0.000 0.000 srgb} bind def     /col20 {0.820 0.000 0.000 srgb} bind def     /col21 {0.560 0.000 0.560 srgb} bind def     /col22 {0.690 0.000 0.690 srgb} bind def     /col23 {0.820 0.000 0.820 srgb} bind def     /col24 {0.500 0.190 0.000 srgb} bind def     /col25 {0.630 0.250 0.000 srgb} bind def     /col26 {0.750 0.380 0.000 srgb} bind def     /col27 {1.000 0.500 0.500 srgb} bind def     /col28 {1.000 0.630 0.630 srgb} bind def     /col29 {1.000 0.750 0.750 srgb} bind def     /col30 {1.000 0.880 0.880 srgb} bind def     /col31 {1.000 0.840 0.000 srgb} bind def          end          /cp {closepath} bind def     /ef {eofill} bind def     /gr {grestore} bind def     /gs {gsave} bind def     /sa {save} bind def     /rs {restore} bind def     /l {lineto} bind def     /m {moveto} bind def     /rm {rmoveto} bind def     /n {newpath} bind def     /s {stroke} bind def     /sh {show} bind def     /slc {setlinecap} bind def     /slj {setlinejoin} bind def     /slw {setlinewidth} bind def     /srgb {setrgbcolor} bind def     /rot {rotate} bind def     /sc {scale} bind def     /sd {setdash} bind def     /ff {findfont} bind def     /sf {setfont} bind def     /scf {scalefont} bind def     /sw {stringwidth} bind def     /tr {translate} bind def     /tnt {dup dup currentrgbcolor       4 -2 roll dup 1 exch sub 3 -1 roll mul add       4 -2 roll dup 1 exch sub 3 -1 roll mul add       4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}       bind def     /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul       4 -2 roll mul srgb} bind def     /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def     /$F2psEnd {$F2psEnteredState restore end} def          /pageheader {     save     newpath 0 70 moveto 0 0 lineto 107 0 lineto 107 70 lineto closepath clip newpath     -64.4 139.7 translate     1 -1 scale     $F2psBegin     10 setmiterlimit     0 slj 0 slc      0.06299 0.06299 sc     } bind def     /pagefooter {     $F2psEnd     restore     } bind def     %%EndProlog     pageheader     %     % Fig objects follow     %     %      % here starts figure with depth 50     % Polyline     0 slj     0 slc     7.500 slw     n 1035 1125 m 2700 1125 l 2700 2205 l 1035 2205 l      cp gs col0 s gr      /Times-Roman ff 190.50 scf sf     2542 1292 m     gs 1 -1 sc (E) col0 sh gr     % here ends figure;     pagefooter     showpage     %%Trailer     %EOF     \end{filecontents*}          \documentclass{article}     %      % latex WrongPsfragWtTexlive2013; dvips WrongPsfragWtTexlive2013 -o     %     \usepackage{graphicx,psfrag}     \listfiles     %     \begin{document}     \DeclareFixedFont{\myFont}{T1}{ptm}{m}{n}{10}%        not OK     %%\DeclareFixedFont{\myFont}{T1}{ptm}{b}{n}{10}%        OK     %%\DeclareFixedFont{\myFont}{T1}{ptm}{\seriesdefault}{\shapedefault}{10}% not OK     %%\DeclareFixedFont{\myFont}{\encodingdefault}{\familydefault}{\seriesdefault}{\shapedefault}{10}%  OK     %%\DeclareFixedFont{\myFont}{T1}{\familydefault}{m}{n}{10}%  OK               Some text in my new font: {\myFont Hello world}          The \verb+\DeclareFixedFont+-command has influence on the position of     the letter E in the picture although the new font \verb+\myFont+ is     not used in the \verb+\psfrag+-command.          \begin{center}       \begin{psfrags}         \psfrag{E}[tr][tr]{\fbox{$E$}}         \includegraphics[width=0.35\textwidth]{Rectangle.eps}       \end{psfrags}     \end{center}          \end{document}


title: \bfseries bolds more than intended

text: Been using the `\bfseries` lately, instead of `\textbf` and those, because I learned that they were deprecated in newer versions. Anyway, the `\bfseries` bolds the rest of my document, even though I'm using curly braces. ## Example:               \bfseries{This is meant to be bolded}     While this is not meant to be bolded, yet still, it is.      It works just fine within other environments, like `tabulars` and such. It seems like an `\end` command stops it from bolding more, but if I use it regularly in the document, it just messes it up. Anyone have any experience with this?


title: Replacement for MiKTeX's texify in TeX Live

text: I used to use the `texify` command in MiKTeX on Windows. I would, for example, run a command like: `texify --pdf --run-viewer file.tex` which, as I understand it, would produce a pdf, automatically determine how many times latex needed to be run, and open the resulting pdf in a viewer. I'm now running Ubuntu and have TeX Live installed. What would be a good equivalent command when running latex on Ubuntu with TeX Live?


title: Good workaround for pgfmath/tikz definition of inverse cosine?

text: I wanted to draw a graph of y = arccosine(x) and saw in the Tikz documentation the function `acos` which claims to do this but returns a result in the range [-90,90] (degrees). I was surprised by this since cos(x) is not one-to-one over the domain [-90,90], and most conventional definitions would put the range of `acos` as [0,180]. The fact that the function defined is not inverse cosine can be verified by the following minimal working example, in which pgf claims that the inverse cosine of -1 is 0:               \documentclass{minimal}     \usepackage{pgfmath}     \begin{document}     Inverse cosine of $-1$ is apparently \pgfmathparse{acos(-1)} \pgfmathresult      \end{document}      I'm not sure whether to count this as a bug (since the documentation explicitly states that it will work in this way) but is there a good workaround to easily get the actual inverse cosine function in pgfmath/tikz?


title: Table of Content Inquiry--LaTeX

text: I have sections made by the code `\section*{}` (the asterisk to hide the section number), but when I insert a table of contents, none of the sections are showing up in the contents. I think it's because I'm hiding the section number... Is there a fix to this?


title: How to use \multirowcell?

text: This question is connected to another one I asked some days ago: How to do a table with multiple multirows_. The problem I have is that my text does not fit nicely in the \multirowcell and I haven't been able to find too much information to fix this issue. ![enter image description here](http://i.stack.imgur.com/74n16.png) This is the real table I'm working with so you can see what I mean. Thanks a lot for input.               % Doc. structure     \documentclass[11pt,a4paper]{report}               % Packages     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage[]{graphicx} % Loading graphicx in the preamble it's possible to import pdf images in the document     \usepackage{float}     \usepackage{multicol}     \usepackage[round]{natbib} % For citations     \newcommand{\textsubscript}[1]{$_{\text{#1}}$}     \newcommand{\textdegree}[1]{${^\circ}$}     \usepackage[nomarginpar]{geometry}     \usepackage{array, booktabs, tabularx, makecell, multirow}     \renewcommand{\tabularxcolumn}[1]{>{\raggedright\arraybackslash}m{#1}}     \renewcommand\cellalign{Xc}          \begin{document}          \vspace*{1\baselineskip}     \centering     \begin{tabularx}     \linewidth{ | *{3}{ >{\centering}m{2.8cm}|} X |}     \cline{2-4}     \multicolumn{1}{c|}{}       &      Soil required in lab (Sieved \textless 2mm &     Soil collected in the field &      Notes \\     \hline     \multirow{3}{*}     {Fresh sample} &      Incubations 60 g (105C dry conversion) x 2 &      Incubations  about 200 g (moist) x 2 &      \multirowcell{3}{Big losses during sieving. From here:         \begin{description}         \item[-] Long-term incubation         \item[-] Short-term incubation. From soil solution: DOC, DMN, DMP         \item[-] Water retention curve \& equivalent 105          \item[-] pH         \end{description}} \\     \cline{2-3}     &      Water retention curve $\sim$\,150\,g &      Water retention curve $\sim$\,200\,g &      \\     \hline     Frozen sample &      $\sim$\,60\,g (105C dry conversion) &      $\sim$\,150\,g fresh soil &      From here, mineral N and P. To compare results of saturation paste with soil solution extract at day 0. \\     \hline     Dry sample &     $\sim$\,60\,g &     $\sim$\,150\,g fresh soil &     From here:         \begin{description}         \item[-] Fe, Al         \item[-] Organic N, P         \item[-] Organic C         \item[-] Bulk soil 14C         \item[-] Carbonates         \item[-] Clay         \end{description}\\     \hline     \end{tabularx}          \end{document}


title: How to cite correctly in a document with quotes in several languages using csquotes?

text: I'm working on a document written primarily in Spanish, but contains many quotes between quotation marks, multiple nested. It also contains text blocks that I usually compose with the environments `quote` and `quotation` (if more than one paragraph). I want to use `csquotes` because I think a great package for this. I have reviewed the documentation, however no examples to help me understand how many things are used, and I have not used enough. As you will see in the MWE I'm using the `Tufte-book` class because I like the layout and the notes to the margins as in the Renaissance. I clarify because I think there may be problems between the package and class.               \documentclass[10pt,twoside,symmetric]{tufte-book}     \usepackage[utf8]{inputenx}     \usepackage[T1]{fontenc}     \usepackage[spanish,mexico]{babel}     \usepackage{marginfix}          %\usepackage[backend=biber]{biblatex}       %\addbibresource{socialBib.bib}       %\usepackage{hyphenat}       \usepackage[style=german,french,mexican]{csquotes}          \begin{document}          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. ``Duis aute irure dolor in reprehenderit in voluptate `velit'      esse cillum dolore eu fugiat nulla pariatur''. Excepteur sint occaecat      cupidatat non proident, sunt in culpa qui officia deserunt mollit anim      id est laborum.          Lorem ipsum dolor sit amet, consectetur adipisicing elit, seddo eiusmod          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim     veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea       commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in       culpa qui officia deserunt mollit anim id est laborum.`          \begin{quote}     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod       tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim      veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea      commodo consequat.Duis aute irure dolor in reprehenderit in      voluptate velit esse cillum dolore eu fugiat nulla pariatur. `Germanum      requiem [Deutsches Requiem]' Excepteur sint occaecat cupidatat non      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.      \end{quote}          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. \sidenote{Duis aute irure dolor in reprehenderit in voluptate      velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat      cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id      est laborum.}     \end{document}      My doubts about `csquotes` are:   1. How I define the style or need a style for each language?   2. If each language that I need to cite with different quotes, how do I set it? Since the text is in Spanish and I live in Mexico, normal for me is to use the Mexican option with `"`, single quotes `'`, French guillemets `«` `»` and would like to use standard German quotation marks (low and high).   3. For blocks instead of `quote` or `quotation` environments I think I could use `\blockquote`, but sometimes I'll nested notes, and sometimes these nested notes will have any word (usually in German). How do I set `\blockquote` for it?   4. Do I have to declare explicitly with `babel` (a command that has to do I guess) the change of language in the text for proper hypehnation or `csquotes` does it?   5. Finally, I'll add references `biblatex` not now, but I don't know if it's necessary have some considerations or add an option for this in the preamble when loading `csquotes`.


title: Change the font of \mathrm and functions such as \cos \sin, \sup

text: My document has `ptm` as `\rmdefault` and math is typeset using MTpro2. I would like to change the font of the upright characters for mathematics to match the font used in the body of the document. For example, anything written as `\mathrm{cos}` or `\cos` should use the same font as the body of the document. That way I could stop using `\text{cos}` whenever I want upright letters in the math which matches the font used for the body, which is annoying. How can I do that?


title: Write short description behind the document location (list of abbreviations in glossaries)

text: I am using the glossaries package for the list of abbreviations. By default, a location list is displayed for each entry whih refers to the document location. It look´s like this: ![enter image description here](http://i.stack.imgur.com/8PrPU.png) Now I would like to change the presentation of the location list. Instead of only list the page number I want to write a short text behind the number. I know that is possible to change the text after the entry with this: \renewcommand*{\glspostdescription}{...} But how I can change the text after the page numbers? Is it possible at all? Example:               \documentclass[     ]{scrreprt}          \usepackage[     ]{scrpage2}          \usepackage[ngerman]{babel}                 %% Deutsches Sprachpaket     \usepackage[utf8]{inputenc}                 %% Eingabezeichensatz UTF-8     \usepackage[T1]{fontenc}                    %% Kodierung für Umlaute     \usepackage[ngerman]{translator}            %% Für Abkürzungsverzeichnis benötigt     \usepackage{lmodern}                        %% Moderne Version von Computer Modern     \usepackage{setspace}                       %% Zeileabstand anpassen          \usepackage[babel,german=quotes]{csquotes}  %% Deutsche Anführungs- und Ausführungsstriche          \usepackage{expdlist}                       %% Erweitert Description-Umgebung     \usepackage[                                %% Biblatex     ]{biblatex}          \usepackage[     %xindy,     %nonumberlist,                              %% Keine Seitenzahlen anzeigen     acronym,                                    %% Ein Abkürzungsverzeichnis erstellen                       toc]                                        %% Einträge im Inhaltsverzeichnis     {glossaries}     %Den Punkt am Ende jeder Beschreibung bei Glossaries deaktivieren     \renewcommand*{\glspostdescription}{aaa}          %Eigener Style für Glossaries     \newglossarystyle{mystyle}{     \setglossarystyle{list}     %\setlength{\glslistdottedwidth}{.2\hsize}     \renewenvironment{theglossary}     {\begin{description}[\setleftmargin{.2\hsize}]}{\end{description}}     }          %Alle Verzeichnisse mit einzeiligem Abstand     \AfterTOCHead{\singlespacing}          \renewcommand*{\glossarypreamble}{\singlespacing}          %Eigener Style für Glossaries     \DeclareNameFormat {default}{%     \usebibmacro {name:last-first}{#1}{#3}{#5}{#7}%     \usebibmacro {name:andothers}}          \newacronym[description={\glslink{CBIR}{Content Based Image Retrieval}}]{CBIR}{CBIR}{Content Based Image Retrieval}          \makeglossaries          \begin{document}          \chapter{}          \gls{CBIR}          \clearpage          \deftranslation[to=German]{Acronyms}{Abkürzungs- und Akronymverzeichnis}     \renewcommand{\glossarypostamble}{\protect\par\vspace{5ex}\noindent\textbf{Anmerkung: }Alle Einträge wurden den im Literatur- und Internetquellenverzeichnis aufgeführten Quellen entnommen.}     \printglossary[style=altlist, title=Glossar]          \renewcommand{\glossarypostamble}{\protect\par\vspace{5ex}\noindent\textbf{Anmerkung: }Alle im Text verwendeten Abkürzungen sind im Abkürzungsverzeichnis aufgeführt. Bei der ersten Verwendung wurden diese ausgeschrieben und anschließend die zugehörige Abkürzung in Klammern angefügt. Bei einer erneuten Verwendung des Begriffs wurde nur die Abkürzung benutzt. Geläufige Abkürzungen und Firmennamen sind nicht aufgeführt.}     \printglossary[type=\acronymtype, style=mystyle]          \end{document}


title: Pgfplots not plotting bar graph with all symbolic coordinates?

text: I am trying to create a bar graph using pgfplots. Specifically, I have 8 different bins of varying signal length against some computational time. I have set the x axis signal lengths to symbolic coordinates and have those plotted against time. The resultant graph however, does not seem to plot the last " _bin_ " of times (i.e signal length of 32768). I have the code attached below:               \begin{figure}[htbp]     \centering     \Dshadowbox{     \begin{tikzpicture}[scale=1]     \begin{axis}[         x tick label style={             /pgf/number format/1000 sep=},         ylabel=\textbf{Computation Time} $\mathbf{s}$,         xlabel=\textbf{Signal Length $\mathbf{N}$},         xtick=data,         symbolic x coords = {256,512,1024,2048,4096,8192,16384,32768},         ybar interval=0.8,         xtick={256,512,1024,2048,4096,8192,16384,32768},         bar width = 10pt,         ymode=log,         bar shift=0pt,         log origin=infty,         width=\textwidth             ]     \addplot          coordinates {(256,0.0202) (512,0.0445)              (1024,0.1578) (2048,0.5877)  (4096,3.5797) (8192,18.8230) (16384,103.7727) (32768,762.0937)};          \addplot         coordinates {(256,0.0012) (512,0.0034)              (1024,0.0106) (2048,0.0229) (4096,0.1045) (8192,0.4693) (16384,3.0236) (32768,22.8810)};          \addplot         coordinates {(256,0.0009) (512,0.0013)              (1024,0.0027) (2048,0.0059) (4096,0.220) (8192,0.0858) (16384,0.3697) (32768,3.7458)};          \addplot         coordinates {(256,0.0028) (512,0.0032)              (1024,0.0052) (2048,0.0168) (4096,0.0638) (8192,0.2927) (16384,1.4904) (32768,9.21)};          \addplot          coordinates {(256,0.0011) (512,0.0019)              (1024,0.0085) (2048,0.0486) (4096,0.1973) (8192,0.6917) (16384,3.2107) (32768,17.1235)};          \addplot          coordinates {(256,0.00006) (512,0.00014)              (1024,0.00022) (2048,0.00047) (4096,0.0019) (8192,0.0085) (16384,0.3123) (32768,5.9074)};     \end{axis}     \end{tikzpicture}     }     \end{figure}      I'm sure I have made a silly error somewhere but haven't been able to see it as of yet. Any help on the matter would be much appreciated.


title: What does the following error message mean? `Undefined control sequence. <argument> \@Keywords l.4319 \ProcessKeyvalOptions{Hyp}`

text: I got the following error message (Setup: Ububtu 14 LTS, TeXmaker, TeX Live 2013/Debian, pdfLaTeX): log-file says:               ! Undefined control sequence. <argument> \@Keywords l.4319 \ProcessKeyvalOptions{Hyp}      The control sequence at the end of the top line of your error message was never \def'ed.      hyperref.sty says:               \ProcessKeyvalOptions{Hyp}     \def\Hy@xspace@end{}     \ltx@IfUndefined{xspaceaddexceptions}{%       \Hy@AtBeginDocument{%         \ltx@IfUndefined{xspaceaddexceptions}{%         }{%           \def\Hy@xspace@end{%             \ltx@gobble{end for xspace}%           }%           \xspaceaddexceptions{%             \Hy@xspace@end,\hyper@linkend,\hyper@anchorend           }%         }%       }%     }      Any idea what it means? MWE:               \RequirePackage[patch]{kvoptions}      \documentclass{DissOnlineLatex}     %\usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage{lscape}     \usepackage{setspace}     \usepackage[style=chem-angew,backend=bibtex8,]{biblatex}     \usepackage{hyperref}     \usepackage[printonlyused]{acronym}     \bibliography{Literatur.bib}     \onehalfspacing     \begin{document}     \end{document}


title: Bibtex to html/Markdown/etc., using Pandoc

text: It seems that `Pandoc` is capable of dealing with references given in a `.bib` file. Yet, I haven't been able to simply ask `Pandoc` to convert a `.bib` file into `html`, `markdown` or other formats. Is there a way to do so? As an example of what I mean (since I am not sure I am clear enough...), I would say the following to export `myfile.bib` to `myfile.pdf`: Create `myfile.tex` which contains               \documentclass{article}     \begin{document}     \nocite{*}     \bibliographystyle{abbrv} % or another bibliography style!     \bibliography{myfile.bib}     \end{document}      and compile it using `pdflatex` and `bibtex`. Is there such a simple way to export `myfile.bib` to (say) `myfile.html`?


title: Bi-directional editor for LaTeX

text: I am new here. I am looking for a bi-directional editor that works with LaTeX system and supports Unicode. I need it in order to write Hebrew, Arabic, etc.


title: Calculation in TikZ coordinates

text: Could somebody tell me why with that code               \documentclass{standalone}     \usepackage{tikz}     \usepackage{pgfplots}          \usetikzlibrary{positioning}     \usetikzlibrary{calc}               \newcommand{\loga}[1]{{log10(#1)}}          %definition longueurs------     \def\lMarqueStd{0.4}     \def\vMin{1}     \def\homothRap{1}     %--------------------------               \begin{document}     \begin{tikzpicture}     \def\homothRap{1}     \draw (\lMarqueStd,-\homothRap*\loga\vMin)--++(-\lMarqueStd,0);     \end{tikzpicture}     \end{document}      I get an error? It sure comes frome `\homothRap*`. I try do fix it with some `$` but I failed. Could somebody help me please?


title: Give a symbol an alphabetical "order"?

text: I've defined a `C++` symbol in latex as `\CC`, which works fine:               \newcommand{\CC}{C\nolinebreak\hspace{-.05em}\raisebox{.4ex}{\tiny\bf +}\nolinebreak\hspace{-.10em}\raisebox{.4ex}{\tiny\bf +}}      However, I'd also like to include it in my index. I'm currently just using `\index{\CC}`, but this puts the entry for `C++` at the start of the index (presumably because it's a symbol): ![C++ appearing first in index](http://i.stack.imgur.com/bFtW4.png) I'd like to instead preserve the alphabetical order of the C in the index. How can I achieve this?


title: Specifying columns using cellspace

text: I'm using cellspace to try get some more padding around fractions in tables and I'm stuck on this gibberish:               \begin{tabular}[b]{ >{}l*{2}{| >{$}Sc <{$}}}      What does it all mean? For reference, I'm used to the following:               \begin{tabular}{ll}      I read the manual and it doesn't mention the first type of syntax.


title: Create structure / outline manually

text: How do I create such a construct in LaTeX:                 1 Point A          1.1 Point A1         1.2 Point A2     2 Point B         2.1 Point B1             2.1.1 Point B1a         ...       Any suggestions?


title: Redefining \^ and \~ in math mode?

text: `\^` and `\~` apply accents in text mode, but each gives an error when used in math mode. So I consider redefining them for my own use, perhaps like this:               \let\old@hat\^     \def\^{\ifmmode\mbox{\textasciicircum}\else\old@hat\fi}      (Or we could replace `\mbox` with `\text` if we've loaded amsmath.) Besides the slight hit to efficiency, and perhaps confusing some others who read the source of my documents, are there any other downsides to this that I'm not recognizing?


title: Why is it recommended to put \relax before \ifmmode?

text: I've several times seen the recommendation to put a `\relax` before `\ifmmode` in a macro. I've tried searching for an explanation of this several times on this site, but hadn't been able to find one. An answer by David Carlisle to a different question I asked suddenly made things click, and I thought it'd be worthwhile to submit a question that might help others more effectively find the explanation of this.


title: When I use \cite{} in Beamer, the link points to the slide number rather then the bibliography ?

text: When I use \cite{} from BibTex in Beamer, the link points to the slide number rather then the bibliography ? is this normal ? How to fix it ?


title: How to move an enumerate environment to the right?

text: How can I horizontally align `\begin{enumerate}` more to the right? At the moment I'm using the code below:               \begin{enumerate}     \item sometext     \item sometext     \item sometext     \end{enumerate}      But it goes too left in my document. I would like to add some horizontal space to the left, so that the list would be more center on the page...any advices? =) Thank you for any help!


title: Line breaks for cases environment in two column

text: I have case environments that breaks into the other column when used in two column. ![enter image description here](http://i.stack.imgur.com/HZOoi.png) How can I break the cases to prevent the intrusion? This is the source code.               \documentclass[11pt, twocolumn]{article}          \usepackage{amsmath}     \usepackage{lipsum}     \begin{document}          \begin{itemize}     \item $range(type)$ returns the value range of $type$.      \item $related(key, type)$ returns a set of tuple ($key$, $type$) that is       related to the input $key$ and $type$.     \item $type(key)$ returns a $type$ of an input $key$.            \item zero detection function $z(key)$      \[     z(key) =        \begin{cases}          true, & \text{if}\ \forall i \in hash(key), table(i) = 0\\          false, & \text{otherwise} \\        \end{cases}      \]     \item $retrieve(key)$     \[      retrieve(key) =        \begin{cases}          \perp_{s}, & \text{if $z(key)$ is true}\\          mask(key) \oplus \bigoplus_{i \in hash(key)} table[i], & \text{otherwise} \\        \end{cases}      \]     \end{itemize}          \lipsum          \end{document}


title: Do images have to be saved in a specific location before inserting them into LaTeX?

text: I've been trying to insert an image into LaTeX using the [graphicx] package using TeXworks with very little success. The .PNG image I want to insert is currently just saved in my Windows Pictures library, so I was wondering if I have to have the image saved in a specific location before inserting it?


title: Adjusting table to \textwidth with calc and \p{}

text: The following tabular environment has 3 columns. Each column has a width of `\textwidth/3`, but somehow the table is wider than `\textwidth`.               \documentclass{article}          \usepackage{calc,lipsum}     \begin{document}          \begin{tabular}{||p{\textwidth/3}||p{\textwidth/3}|p{\textwidth/3}||}     aaaaaaa&bbbbbbbb&cccccccccc\\     \end{tabular}          \lipsum     \end{document}      What might the problem be?


title: Unbreakable block

text: I want to do something like the following in TeX:               \begin{nobreak}            Text here will not split over pages, it will remain     as one continuous chunk. If there isn't enough room     for it on the current page a pagebreak will happen     before it and the whole chunk will start on the next     page.            \end{nobreak}      Is this possible?


title: How do I prevent pagebreak in some piece of text?

text: > **Possible Duplicate:**   >  Unbreakable block I have quite small article section like:               \subsubsection Some title          some text about figure:          \begin{figure}[h]       \centering       \includegraphics[width=0.5\columnwidth]{image-here.png}     \end{figure}      I think it would be much better if all those 3 "lines" (title, text and image) will come on single page but I did not find any way to do it except inserting \pagebreak before `\subsubsection`. I thought `\nopagebreak` could solve this task but I could not get the desired effect. Is there any other option?


title: How make sure two elements stay on the same page?

text: > **Possible Duplicate:**   >  Unbreakable block I am writing a very simple how-to document with several screenshots. The document flow goes something like this:               A few sentences explaining action 1          \begin{center}     \includegraphics{action_1_screenshot}     \end{center}          A few sentences explaining action 2          \begin{center}     \includegraphics{action_2_screenshot}     \end{center}      However since the screenshots are often large, I sometimes get page breaks between the paragraph and the corresponding screenshot. I want the paragraph to always be on the same page as a screenshot. I have used \clearpage after each screenshot, but that doesn't quite get what I want. \clearpage would make sure that there is a page break after each screenshot, but I still want multiple screenshots on the same page if they fit. Ideally, I would have something like this to guarantee that two items were on the same page, though wouldn't necessarily always cause a page break:               \begin{samepage}          A few sentences explaining action 2          \begin{center}     \includegraphics{action_2_screenshot}     \end{center}          \end{samepage}      Is something like this possible? I'm not really looking for figures, because those don't tend to work well with longer descriptive paragraphs. Figures seem to be more optimized for a short sentence or sidenote.


title: Force a block of text to be impervious to page breaks

text: > **Possible Duplicate:**   >  Unbreakable block I have a block of text (possibly comprising many paragraphs) near the end of a page. The page break is being inserted in the middle of this block--how do I prevent that? (How do I tell LaTeX that this block of text needs to always stay together on the same page?) This question should apply to all formats, but in my case I am using the `memoir` class, and am willing to include any necessary packages.


title: How to hold all lines in a defined environment?

text: \def\Grammercaption{\textbf{Grammer}}     \def\grammer{\bgroup\ignorespaces\Grammercaption\fontsize{10}{13pt}\selectfont}     \def\grammer{\egroup}      I want all lines of text within this environment stick together. So that no page break is issued here.


title: How to avoid page breaking of a section

text: > **Possible Duplicate:**   >  Unbreakable block I'm writing my resumee in LaTeX and I would like to avoid page breaking in small chunks of text (namely, I detail the different tasks I performed in each project, utilized languages and platforms, and I would like those blocks to stay on the same page), I'm looking for something like               \begin{nopagebreak}     stuff     stuff     stuff     stuff     \end{nopagebreak}


title: No page breaks in a specified interval

text: \begin{ ?? }     blah blah blah     blah blah blah     blah blah blah     blah blah blah     \end{ ?? }      I would like to put something in place of the "??" (or do something that would have the same effect) whose result would be that no page break can occur between "begin" and "end". How can I do that?


title: How can I keep an environment all on one page?

text: In other words, how can I forbid pagination between `\myenv` and `\endmyenv`? I thought at first to make the whole thing a box; if I'm not mistaken---this would prevent TeX from breaking it up---but I don't know how to do that in an environment...environment. I have a not-MWE, but I feel like this question is sufficiently general that it doesn't need one; it may even be a duplicate that I failed to find.


title: Keep text together without page break

text: > **Possible Duplicate:**   >  Unbreakable block Hello I am trying to print this poem together on a single page except it keeps getting broken in the middle. Is there a way for me to group it together? I looked here but I was unsure of the best way to go about it.               \documentclass[12pt,a4paper]{article}     \begin{document}     \vspace*{0.8\textheight}% just to demonstrate the breaking; in the real world,                             % this would be text          A poem:          To yowe that Joyntly with vndaunted paynes\newline     Vowtsafed to Chawnte to vs thease noble straynes,\newline     How mutch yowe merrytt by it, it is not sedd,\newline     But yowe haue pleased the lyving, loved the deadd,\newline     Raysede from the woambe of Earth a Ritcher myne\newline     Then Curteys Cowlde with all his Castelyne\newline     Associattes, they dydd butt dig for Gowlde,\newline     Butt yowe for Treasure mutch moare manifollde.     \end{document}


title: How to keep table and equations to the left side?

text: \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}     First find how many days between July 22 and Nov 4         \[\begin{tabular}{|ccc|}         \hline          Month &       & days \\         \hline \hline         July  &  31-22  & 9 \\         August &       & 31 \\         September &       & 30 \\         October &&31\\         November&&4\\         \hline \hline         \multicolumn{2}{|c}{total } & 105 days \\         \hline        \end{tabular}\]          \begin{flalign*}      PV &= \frac{FV}{1+r \times t} \\\\      &= \frac{1000}{\left(1+0.07 \times \frac{105}{365}\right)} \\\\      &= \dfrac{2000}{1.020137}\\\\      &= \$980.26     \end{flalign*}     \end{document}      I would like to keep everything to the left, but currently the table is centred.


title: long table in landscape environment

text: I am trying to insert a longtable in the landscape environment. Following some Google queries I found this stack overflow question "How do I make multi page landscape tables in LaTeX". I followed their code however now in the output PDF only the last page of the longtable is rotated in the PDF (so you have to tilt your head to see the first 2 pages of the longtable. I would like all the pages to be rotated like page three in the pdf output. Here is the code (sorry its pretty long!)               \documentclass[pdftex, a4paper, 12pt]{article}     \usepackage{lscape}     \usepackage{longtable}     \begin{document}          \begin{landscape}     \label{tab_rf_ff}     \centering     % optional, probably makes it look better to have it centered on the page     \begin{longtable}{p{1.5cm} |  rrrr | p{2cm} p{2cm} r | p{2cm} p{2cm}r | rr}     \hline     Model number & mtry & node.size & ntree & replace & Mean test RMSE & Median test RMSE & SE & Mean OOB RMSE & median OOB RMSE & SE & Median leaf \\        \hline      43 &   2 &  20 & 500 &   0 & 50.13 & 34.25 & 2.88 & 65.24 & 71.54 & 1.06 &  16 \\         52 &   2 &  20 & 750 &   0 & 50.15 & 34.73 & 2.88 & 65.23 & 71.51 & 1.06 &  16 \\         34 &   2 &  20 & 250 &   0 & 50.19 & 34.64 & 2.88 & 65.28 & 71.51 & 1.06 &  16 \\          7 &   2 &  20 & 250 &   1 & 50.64 & 35.02 & 2.85 & 65.55 & 71.81 & 1.06 &  25 \\         25 &   2 &  20 & 750 &   1 & 50.67 & 35.11 & 2.85 & 65.49 & 71.91 & 1.06 &  25 \\         16 &   2 &  20 & 500 &   1 & 50.69 & 34.97 & 2.85 & 65.51 & 71.69 & 1.06 &  25 \\         53 &   4 &  20 & 750 &   0 & 51.16 & 35.92 & 2.83 & 65.82 & 72.16 & 1.07 &  16 \\         35 &   4 &  20 & 250 &   0 & 51.18 & 36.14 & 2.83 & 65.88 & 72.14 & 1.07 &  16 \\         44 &   4 &  20 & 500 &   0 & 51.20 & 35.70 & 2.83 & 65.84 & 72.09 & 1.07 &  16 \\         40 &   2 &   5 & 500 &   0 & 51.62 & 36.80 & 2.80 & 66.02 & 72.32 & 1.07 &  77 \\         31 &   2 &   5 & 250 &   0 & 51.69 & 37.28 & 2.80 & 66.14 & 72.53 & 1.08 &  77 \\         49 &   2 &   5 & 750 &   0 & 51.72 & 36.51 & 2.79 & 66.01 & 72.25 & 1.07 &  77 \\         17 &   4 &  20 & 500 &   1 & 51.95 & 37.35 & 2.79 & 66.28 & 72.63 & 1.07 &  25 \\         26 &   4 &  20 & 750 &   1 & 52.03 & 37.08 & 2.78 & 66.26 & 72.64 & 1.07 &  25 \\         13 &   2 &   5 & 500 &   1 & 52.09 & 37.20 & 2.77 & 66.31 & 72.51 & 1.07 & 107 \\         22 &   2 &   5 & 750 &   1 & 52.09 & 36.71 & 2.77 & 66.23 & 72.45 & 1.07 & 107 \\          4 &   2 &   5 & 250 &   1 & 52.09 & 37.12 & 2.78 & 66.38 & 72.56 & 1.07 & 107 \\          8 &   4 &  20 & 250 &   1 & 52.18 & 36.92 & 2.77 & 66.43 & 72.71 & 1.08 &  25 \\         10 &   2 &   1 & 500 &   1 & 52.45 & 38.30 & 2.76 & 66.57 & 72.96 & 1.07 & 171 \\         46 &   2 &   1 & 750 &   0 & 52.47 & 38.41 & 2.77 & 66.56 & 72.85 & 1.08 & 171 \\         19 &   2 &   1 & 750 &   1 & 52.49 & 38.20 & 2.76 & 66.53 & 72.79 & 1.07 & 171 \\         37 &   2 &   1 & 500 &   0 & 52.57 & 38.38 & 2.76 & 66.59 & 72.90 & 1.07 & 171 \\          1 &   2 &   1 & 250 &   1 & 52.64 & 37.79 & 2.75 & 66.77 & 73.19 & 1.08 & 171 \\         28 &   2 &   1 & 250 &   0 & 52.74 & 38.40 & 2.74 & 66.79 & 73.17 & 1.08 & 171 \\         45 &   9 &  20 & 500 &   0 & 52.91 & 38.77 & 2.74 & 66.98 & 73.49 & 1.11 &  16 \\         36 &   9 &  20 & 250 &   0 & 53.05 & 39.53 & 2.74 & 67.05 & 73.44 & 1.11 &  16 \\         54 &   9 &  20 & 750 &   0 & 53.05 & 39.04 & 2.74 & 66.98 & 73.34 & 1.11 &  16 \\         50 &   4 &   5 & 750 &   0 & 53.38 & 39.36 & 2.73 & 67.12 & 73.53 & 1.09 &  77 \\         32 &   4 &   5 & 250 &   0 & 53.42 & 39.22 & 2.72 & 67.21 & 73.50 & 1.10 &  77 \\         41 &   4 &   5 & 500 &   0 & 53.49 & 39.62 & 2.72 & 67.13 & 73.31 & 1.09 &  77 \\         27 &   9 &  20 & 750 &   1 & 53.91 & 40.12 & 2.72 & 67.59 & 73.89 & 1.09 &  25 \\         18 &   9 &  20 & 500 &   1 & 53.93 & 39.87 & 2.72 & 67.62 & 74.03 & 1.09 &  25 \\          9 &   9 &  20 & 250 &   1 & 53.97 & 40.51 & 2.72 & 67.73 & 74.08 & 1.09 &  25 \\          5 &   4 &   5 & 250 &   1 & 54.01 & 40.31 & 2.69 & 67.59 & 74.20 & 1.10 & 104 \\         23 &   4 &   5 & 750 &   1 & 54.03 & 39.52 & 2.68 & 67.38 & 73.79 & 1.10 & 104 \\         14 &   4 &   5 & 500 &   1 & 54.14 & 40.62 & 2.68 & 67.47 & 73.87 & 1.10 & 104 \\          2 &   4 &   1 & 250 &   1 & 54.46 & 40.57 & 2.68 & 68.08 & 74.31 & 1.10 & 169 \\         20 &   4 &   1 & 750 &   1 & 54.48 & 40.76 & 2.67 & 67.78 & 74.08 & 1.10 & 170 \\         47 &   4 &   1 & 750 &   0 & 54.48 & 41.27 & 2.69 & 67.92 & 74.29 & 1.10 & 169 \\         38 &   4 &   1 & 500 &   0 & 54.54 & 40.62 & 2.68 & 68.02 & 74.46 & 1.10 & 169 \\         11 &   4 &   1 & 500 &   1 & 54.54 & 39.86 & 2.67 & 67.83 & 74.07 & 1.10 & 169 \\         29 &   4 &   1 & 250 &   0 & 54.72 & 41.83 & 2.66 & 68.15 & 74.04 & 1.10 & 169 \\         33 &   9 &   5 & 250 &   0 & 55.13 & 42.88 & 2.69 & 68.69 & 74.69 & 1.09 &  76 \\         51 &   9 &   5 & 750 &   0 & 55.15 & 43.81 & 2.68 & 68.45 & 74.63 & 1.10 &  76 \\         42 &   9 &   5 & 500 &   0 & 55.40 & 43.78 & 2.67 & 68.65 & 74.95 & 1.10 &  76 \\         24 &   9 &   5 & 750 &   1 & 55.77 & 44.96 & 2.65 & 68.85 & 75.22 & 1.11 & 101 \\         15 &   9 &   5 & 500 &   1 & 55.89 & 44.75 & 2.64 & 68.89 & 75.11 & 1.11 & 101 \\          6 &   9 &   5 & 250 &   1 & 55.98 & 44.66 & 2.64 & 69.07 & 75.36 & 1.12 & 101 \\         21 &   9 &   1 & 750 &   1 & 56.33 & 46.81 & 2.63 & 69.46 & 75.48 & 1.12 & 162 \\         48 &   9 &   1 & 750 &   0 & 56.33 & 46.41 & 2.65 & 69.63 & 75.49 & 1.11 & 161 \\         12 &   9 &   1 & 500 &   1 & 56.37 & 45.51 & 2.64 & 69.48 & 75.57 & 1.13 & 162 \\         30 &   9 &   1 & 250 &   0 & 56.49 & 46.09 & 2.64 & 69.91 & 75.55 & 1.12 & 161 \\          3 &   9 &   1 & 250 &   1 & 56.49 & 46.31 & 2.62 & 69.70 & 75.46 & 1.13 & 162 \\         39 &   9 &   1 & 500 &   0 & 56.65 & 47.81 & 2.64 & 69.78 & 75.96 & 1.13 & 161 \\         \hline     \caption{Accuracy results for forest fires random forest}     \end{longtable}     \end{landscape}          \end{document}      Also how can I get the page numbers to appear in the correct place on landscape pages?


title: Arc over multiple columns in table

text: I want to have a flat arc over some columns in a table (`tabu` environment, as I am using to define independent colours for each row). Similar to the `hhline` in which bar are drawn over multiple columns. More completely, parts of the row can have bar, double bars or arcs over some columns, and row colours should be independently specifiable.               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{tabu}     \usepackage{hhline}     \usepackage[dvips]{color}          \begin{document}     \begin{tabu}{c c c c c}     \hhline{~~~~~}     \rowfont{\color{red}}     x & y & z & q & w\\     \\     \rowfont{\color{blue}}     \hhline{~--~-}     a & b & c & d & e\\     \\     \rowfont{\color{magenta}}     \hhline{~~===}     l & m & n & o & p\\     \end{tabu}     \end{document}      (Arc is the only thing I could not get) How can I achieve it?


title: How can I get the ð symbol with TIPA?

text: According to the description, `\dh` should do the trick -- but although TIPA is installed and although `\textbeta` and `\textgamma` show up just fine, `\dh` produces an error: > "Command `\dh` unavailable"... Any ideas?


title: Full-width figure, odd/even pages + margin

text: **situation** I'm using the `memoir` class, two-sided. I left place for margin notes. Thus the text block is not at the center of my "sheet of paper" and this non-central position is different for odd and even pages. (On the verso page the margin notes are situated on the left, on the recto page they are on the right side of the page.) **goal** All my figures have a standard width equal to a length that I called `\widthw = \textwidth + \marginparsep + \marginparwidth` (I found the definition of these lengths on pages 10 and 11 of this pdf). Now I want to adjust the position of these figures like illustrated in following screenshots:   * verso (left page):![enter image description here](http://i.stack.imgur.com/0trL9.jpg)   * recto (right page):![enter image description here](http://i.stack.imgur.com/7hd10.jpg) **my trial**               \newlength{\rf}          \newcommand*\definesHSpace         {         \checkoddpage         \ifoddpage             \setlength{\rf}{0mm}         \else             \setlength{\rf}{\marginparsep+\marginparwidth}         \fi         }          \newenvironment{myfigure}         {         \begin{figure}[h]         \definesHSpace         \hspace{-\rf}         \begin{minipage}[h]{\widthw}         }         {         \end{minipage}         \end{figure}         }               %begin document...          \begin{myfigure}     ...     \end{myfigure}      **problem** The "IF" works not like desired. I'll try to explain why I think it fails: Let say we are on a odd page. I finished a paragraph of text and, on the page, there is still place for e.g. 3 lines of text. Now I write `\begin{my figure} ...` Well, the answer to the "IF" is "odd page", although LaTeX will put the figure on the next page (because the image is higher than the height of the 3 lines of text). So the figure will not be adjusted like I would have expected. **solution?** It would be fantastic if someone had an idea to solve this problem. (I know `tufte-book` has some full-width figure environment, but I do not want to use that class.) Thanks a lot!!!


title: How to make this following table?

text: I don't know how to make the diagonal line at the top left. ![enter image description here](http://i.stack.imgur.com/qhU3Y.jpg)


title: vim: nice folding function

text: I use `Latex-Box` but I really like `vim-latex` (a.k.a Latex-Suite) folding. I tried to copy Latex-Suite's `folding.vim` file to my `ftplugin/tex` folder but cannot make it work. Has anyone written a nice folding function or uses Latex- Suite one without Latex-Suite full plugin?


title: TikZ: Why would a decoration cause a dimension too big?

text: \documentclass[tikz]{standalone}     \usepackage{tikz-3dplot}          \usetikzlibrary{decorations.markings}     \usetikzlibrary{intersections}          \begin{document}     \tdplotsetmaincoords{60}{130}     \begin{tikzpicture}[tdplot_main_coords]       \coordinate (O) at (0, 0, 0);            \draw[-latex] (O) -- (4, 0, 0) node[pos = 1.1, font = \scriptsize] {\(x\)};       \draw[-latex] (O) -- (0, 4, 0) node[pos = 1.1, font = \scriptsize] {\(y\)};       \draw[-latex] (O) -- (0, 0, 4) node[pos = 1.1, font = \scriptsize] {\(z\)};            \begin{scope}[decoration = {markings,           mark = at position 0.15 with {\node[font = \scriptsize, above] {C};}         }]         \draw[blue, name path = sc] plot[smooth] coordinates         {(-3, -3, 1) (-1, 1, 2.5) (2, 5, 1.5) (3, 5, 0)};       \end{scope}     \end{tikzpicture}     \end{document}      When I add `postaction = decorate` to my blue path, I get a dimension too large error. Since the `pos =` option doesn't work with plot, what can I do correct this issue here? ![enter image description here](http://i.stack.imgur.com/QlHCs.png)


title: Plotting a histogram from a dat file using pgfplot

text: I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data between major x-axis grids were omitted The code I used is shown below               \documentclass[border=5mm]{standalone}     \usepackage{pgfplots}          \begin{document}          \pgfplotstableset{col sep=semicolon}     \begin{tikzpicture}       \begin{axis}[         enlarge x limits=false,         enlarge y limits=upper,         axis lines*=left,         xmajorgrids,         grid style={white,ultra thin},         axis on top,         tick align=outside       ]         \addplot [             hist={bins=501, data min=-2.5, data max=2.5},             fill=black!75, draw=none         ] table [y index=0] {630LFanStats.csv};       \end{axis}     \end{tikzpicture}     \end{document}      How should the .csv file be compiled?


title: How do you add a comment to pseudocode in LaTeX?

text: Is there a special formatting to add comments to code? I mean I want to show comments in pseudocode that I write in LaTeX.               this is code // this is comment part (the part that I want)      Edit: To be more clear, what I mean is in "algorithmic" syntax I write some pseudo code. However, I am not sure if there is a standard comment used in that context.


title: "[" as first character in table row

text: Whenever I try to compile a table that has a "[" as first character in a row it gives me the error:               Missing number, treated as zero.     Illegal unit of measure      Example:               \begin{table}[htb]         \centering         \begin{tabular}{r|r}             [some text ] & ... \\             [some more text ] & ...         \end{tabular}         \caption{...}         \label{tab:...}     \end{table}      How can I print "[" as first character in a row?


title: IEEEeqnarraybox

text: > **Possible Duplicate:**   >  “[” as first character in table row I am usually constructing nested equations in latex using the `IEEEeqnarray`-toolbox (typeset_equations.pdf ). However, I noticed an odd behavior that it probably inherits from the basic TeX ingredients it is based on. Does anyone know a simple workaround for the following? In the `IEEEeqnarraybox` environment, in a second line (after a `\\\` in the previous line), a starting opening bracket will lead to errors. Showcase:               \begin{IEEEeqnarraybox}[][c]{l?s}     &  \\     [ &      \end{IEEEeqnarraybox}      I tried escaping it with `\\\\[`, which will lead to other errors, as I am using this in the math-environment.


title: "]" not working

text: I tried to compile something like the following but it is not compiling:               $$     \begin{array}{ccc}         [u,v]=0&,&\text{if bla}\\         [u,v]=0&,&1     \end{array}     $$      I also tried               \begin{eqnarray}         [u,v]=0&,&\text{if bla}\\         [u,v]=0&,&1     \end{eqnarray}      I'm using `pdflatex` (Windows prompt), Version 3.1415926-1.40.10 (MiKTeX 2.8), and the compiler shows               ! Missing number, treated as zero.     (to be read again)                u     1.45                    [u,v]                          =0 &,&1     ?      Sincerely, this makes no sense for me and if I delete the "]" in the second line, or if I don't use the second line in the `eqnarray` (or `array`), it compiles normally.


title: "[" Square bracket Curiosities in an array environment

text: I am aware of the fact all of the following examples are in fact not the right way of doing whatever they do. But, I came across these examples by playing around with the code that WinEdt produces for inserting a cases environment. Please consider the following MWE:               \documentclass{amsart}      \begin{document}     \begin{eqnarray}      \tau_G(g) = \left\{                 \begin{array}{ll}                 a & b \\                 [G & l                 \end{array}                 \right.     \end{eqnarray}     \end{document}      This one fails with the error, "`Runaway Argument, missing { inserted`". However, the following does work:               \documentclass{amsart}      \begin{document}     \begin{eqnarray}      \tau_G(g) = \left\{                 \begin{array}{ll}                 [a & b \\                 %[G & l                 \end{array}                 \right.     \end{eqnarray}     \end{document}      I am unable to parse this error. When playing with some linear combination of these examples, I got the following error:               ERROR: File ended while scanning use of \@argarraycr.      Can someone shed some light on this, please?


title: can't type [replace]

text: I need to type some code in Latex, but when I type [replace] (as a part of the code) it says: "Missing number, treated as zero" Here is my minimal working example:                      \documentclass[]{report}            \begin{document}            \texttt{            [some text]\\            some other text\\            [replace]\\             blablabla\\             }            \end{document}      Any Help is appreciated :) Thanks a lot in advance!


title: Minipage, multiline caption centering

text: No matter what I do, I can't seem to center the bottom line of these minipage captions. Along with the several variations in the code below, I have also tried `\usepackage[justification=centering]{caption}`. Advice? Thanks! ![A misaligned caption](http://s24.postimg.org/k97x1dtad/uet4.png)               \begin{figure}[H]     \centering     \minipage{0.14\textwidth}     \includegraphics[width = \linewidth]{five3}     \caption*{\scriptsize ($d.d.d.d, c.d.c.d, \newline  b.d.d.b.d.d, \newline a.d.a.d.c.b.c.d$) \newline $c=a+b$ \newline $d=c+b$}     \endminipage\hfill          \minipage{0.14\textwidth} \centering     \includegraphics[width=\linewidth]{four3}\caption*{\scriptsize ($d.d.d.d, \newline d.c.c.c, \newline  b.c.b.c.b.d.d, \newline a.d.a.d.b.c.b.c.d$) \newline $c=a+b$ \newline $d=c+b$ \centering}     \endminipage\hfill     \endminipage     \end{figure}


title: Including word-generated A3-table with screenshot-pictures and Excel-generated diagramms in the cells

text: I have a A3-size Sheet made with Word, some columns contain jpgs from screenshots and some excel-generated charts. When I created this table I wasn't aware that it will go into my latex-pdf file. I think it would not be good to shrink it, so I search a way to put this table somehow as a double page (left part of the table on a even page, right part on a odd page -- Can I make a header across the page break?) One way I see is to create a whole new latex table including the images in the table grid (I hope this is possible ) and to make all format adjustments all over again. Or I can input the pdf via pdfpages Package, which does not support to split A3 to two A4 and insert it. **What would you think would be the best way to include the table?** Has anybody had the problem? Thanks for your ideas in advance


title: Convert PNG image to TikZ code

text: I am trying to convert this image here into a somewhat clean TikZ code ![Norwegian flag](http://i.stack.imgur.com/D0c5u.png) Now I downloaded `potrace`, and tried to convert the image to an eps, and then to use `inkscape` to convert it into TikZ code. Alas, `potrace` does not work for me. Either that or I can't make it work, it seems like it's rather complicated. Opening up the command window and typing in the path renders nothing. Anyway, does anyone here have any nice methods for converting images into TikZ code?


title: Preserving table width and header, when using tables across multiple frames in Beamer

text: When using the beamer class, how can I create a table which preservers the contents of the header and the width of the columns across multiple pages, without naming this width explicitly? longtable seems to preserve the width, but as already described in Same Header on different slides with beamer and longtable it seems not to preserve the header. xtab and supertabular on the other hand seem not to preserve the width.


title: LaTeX Error: File subfigure.sty not found

text: I'm getting this error when compiling:               ! LaTeX Error: File `subfigure.sty' not found.      Here is part of the relevant code:               \documentclass[11pt]{article}          \usepackage{graphicx}     \usepackage{subfigure}          \setlength{\parindent}{1.4em}          \begin{document}              \begin{figure}         \subfigure[Scatter Plot]{             \includegraphics[height=5cm]{graphs/scatter.pdf}             \label{sub1}         }     \end{figure}          \end{document}      Does the error message mean I don't have the subfigure package? Isn't that standard? I've installed texlive and have run `mktexlsr` as suggested here but I'm still getting the error. How can I fix this?


title: How can I define a custom tcolorbox environment with color as a parameter?

text: I want to use different colored tcolorboxes. Is there an easy way to avoid all that typing for every single box by using `\newcommand` or a macro?               \begin{tcolorbox}[     colframe=blue!25,     colback=blue!10,     coltitle=blue!20!black,       title= More Test]     \begin{enumerate}     \item Test     \end{enumerate}     \end{tcolorbox}


title: Names of items aligning out of frame in Beamer

text: MWE:               \documentclass{beamer}          \begin{document}     \begin{frame}{meh...}       \begin{itemize}         \item[Hello] World         \item[Hey! Hello?] D'oh!       \end{itemize}       \end{frame}     \end{document}      The names of the items ("Hey!" in this example) get out of the frame and are not visible. I would prefer to keep as much of the current template intact if possible. I tried with a description environment at first, but I don't understand the alignment it does.


title: Multiple columns with images and wrapped text in Beamer

text: I need a `frame` looking like the image below in `beamer`. The 3rd column will have multirow text with an equation. There are no horizontal lines, neither do I need the boxes around each of the columns. ![enter image description here](http://i.stack.imgur.com/E7qDj.png) I tried `\subfloat` and `\minipage`. With `\subfloat` the text doesn't show up and with `\minipage` the images are placed one over other and the text is not wrapped.               \begin{tabular}{ccc}     \begin{minipage}{0.45\textwidth}     \includegraphics[scale=0.46]{images/fig1}      \end{minipage}     \pause     &     \begin{minipage}{0.1\textwidth}     \includegraphics[scale=0.46]{images/fig2}     \end{minipage}     \pause     &     \begin{minipage}{0.45\textwidth}     \textbf{Title} \newline                                 text1 \newline                                  text2 \newline                                 text3 \newline     \end{minipage}          \end{tabular}      How can I go about it?


title: Beamer \color overlay with more than one color

text: By using `\color<3-4>{blue}{text}`, the `text` will be blue on slides 3 and 4, and black on other slides. Is it possible to make the `text` red on slide 1 at the same time?


title: Best Authoring Environment/Meta-Language for Multi-Targeting Output

text: Is there a good higher-level language or tex environment that would facilate both HTML and PDF rendering? I would like to be able to write tex document and on the basis of this document create mathjax-compliant HMTL and nicely- formatted PDF. This approach would also need to handle, for example, producing multiple HTML documents but creating a single PDF that would encapsulate the same content. Is there a good way to do this?


title: Using circuitikz to generate logic circuit diagrams?

text: How can I use `circuitikz` (or similar library for small code) to generate logic circuit diagrams with full variable life.               x ---[and1]--- z          y ---[and1]--- z      So `f(x,y)=z` An image of the kind of thing I'd like to generate: ![http://adamwsonu.files.wordpress.com/2010/03/quizcircuit.png](http://i.stack.imgur.com/DM44B.png)


title: How to reset \renewcommand\l{\lambda} locally

text: I have a large document with a lot of equation, the author overwritten the original `\l` (used to get polish letter ł) with `\renewcommand\l{{\lambda}}`. It would be to much work to find all the `\l` in all the equations and change it to `\lambda`. I only need couple of ł it the entire doc so I need to reset locally the `\l` command. How do I do that? `\renewcommand\l{???}`


title: csvsimple erros building csv table

text: I want to use the csv package to insert tables into my document. I am importing csv by using the `\usepackage{csvsimple}` command. Then, in the code, I use `\csvautotabular{Tables/test}` to create the tables of a csv file with the following content:               Year,Make,Model     1997,Ford,E350     2000,Mercury,Cougar      However, when I click the PDFLatex button in Kile to generate the pdf file, I get the following errors: ![enter image description here](http://i.stack.imgur.com/t7dHa.png) What am I doing wrong? Is this package still working? Is there an easier/better way to download my csv tables from Google docs into latex?


title: Formating the title page and table of content

text: in my Master thesis, I would like to have title page without any page number and an acknowledgment and table of content with roman number, and then begin my text with numbers I have tried this, that I have roman number for Table of content and normal number for the rest, How can I do that?               \documentclass[12pt,ngerman,openany]{report}     \usepackage{titlesec}     \usepackage{titletoc}     \usepackage{cite}     \usepackage[a4paper]{geometry}     %\usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}     %\usepackage{ngerman}{babel}     \usepackage[T1]{fontenc}     \usepackage{graphicx}     \usepackage{float}     \selectlanguage{ngerman}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{url}     \usepackage{epstopdf}     \usepackage{scrhack}     \usepackage{listings}     \usepackage{caption}     \titleformat{\chapter}{\rmfamily\huge}{\textbf\thechapter.}{25pt}{\huge\textbf}     \defcaptionname{ngerman}{\lstlistingname}{Code}     \defcaptionname{ngerman}{\lstlistlistingname     }{Codeverzeichnis}          \lstloadlanguages{R}      \lstset{% general command to set parameter(s)        basicstyle=\sffamily\footnotesize, % print whole listing small        keywordstyle=\sffamily\footnotesize\bfseries, % ubold black keywords        identifierstyle=, % nothing happens        commentstyle=\sffamily\footnotesize\slshape, % green comments        stringstyle=\sffamily\footnotesize, % typewriter type for strings        showstringspaces=false, % no special string spaces        numbers=left,        numberstyle=\sffamily\footnotesize,        stepnumber=1,        numbersep=10pt,        showspaces=false,        showtabs=false,        frame=lines,        morecomment=[l]{\%},        float=htbp,        numberbychapter=true      }           \begin{document}     \let\cleardoublepage\clearpage               \pagenumbering{roman}      \tableofcontents      \clearpage      \vspace*{75mm}     \chapter{Einleitung}     \section{Motivation}     bla bla bla     \section{Ziel}          bla bla     \chapter{Stand der Technik zur Mustererkennung}     \section{Die Zeitreihen}     bla bla     \subsection{Beschreibung}     bla bla     \subsection{Erklärung}          bla bla          \subsection{Vorhersage}     bla bla     \subsection{Kontrolle}     bla bla     \section{Feature Extraktion}     bla bla     \subsection{Autokorrelation}     \subsection{Was ist Autokorrelation?}     bla bla               \subsection{Autokorrelation und Zeitreihen}     bla bla          \subsubsection{Zeitreihe-Diagramm}          bla bla     \subsubsection{Lagged Streudiagramm}     bla bla          \subsubsection{Autocorrelation-Function (Korrelogramm)}     bla bla     \subsection{Spektralanalyse}     \subsection{Was ist Spektral-Analyse}     bla bla     \end{document}


title: Continuous node in flowchart using Tikz

text: How can I make the nodes connected without any block using Tikz? For example, I was trying to connect the arrows that returns to the do-loop when the decision making box (named as _Condn_ ) returns _no_. However, you can see in the Latex code below that the two arrows are disconnected! Any help?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes.geometric, arrows, shadows}          \tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30, drop shadow]     \tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30]     \tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]     \tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]     \tikzstyle{arrow} = [thick,->,>=stealth]     \tikzstyle{line} = [draw, -latex']     \begin{document}          \begin{tikzpicture}[node distance=2cm]          \node (start) [startstop] {Start};     \node (in1) [io, below of=start] {Input};     \node (pro1) [process, below of=in1] {Process 1};     \node (dec1) [decision, below of=pro1, yshift=-0.5cm] {Condn};     %\node (pro2b) [process, right of=dec1, xshift=2cm] {};     \node (pro2b) [arrow, right of=dec1, xshift=3cm] {};     \node (out1) [io, below of=dec1] {Output};     \node (stop) [startstop, below of=out1] {Stop};          \draw [arrow] (start) -- (in1);     \draw [arrow] (in1) -- (pro1);     \draw [arrow] (pro1) -- (dec1);     \draw [arrow] (dec1) -- node[anchor=west] {yes} (out1);     \draw [arrow] (dec1) -- node[anchor=south] {no} (pro2b);     \draw [arrow] (pro2b) |- (pro1);           % \path[-,draw] (dec1) -| node{} (inv.north);           % \path[line]{} (inv.north) |- node[above]{no} (pro1);     \draw [arrow] (dec1) -- (out1);     \draw [arrow] (out1) -- (stop);               \end{tikzpicture}          \end{document}      I am attaching my output as well (Modified after a sample code found online). ![enter image description here](http://i.stack.imgur.com/1O63L.png)


title: How to create a table where one cell spans all the columns and the text wraps properly?

text: I need to create a table like this: ![enter image description here](http://i.stack.imgur.com/N0v5J.png)   * table with two columns and width equal to width of the page; border around whole table;   * first row spanning two columns; with background color, bold font and typeset as paragraph, with proper line wrapping of long text;   * second row with short label in first column, with additional left padding on the left; second column empty;   * a few rows listing some name-value pairs; item name in first column (same additional left padding as in label cell); item value in second column formatted as "xxx,xx zł" aligned to the right but with additional right padding;   * last row similar to the first, but without background color. My best try so far does not handle first and last row properly, resulting in too wide rows. Is there some way to find the combined width of all columns and use it \multicolumn spec for those two rows? Is there maybe some way to achieve this layout without using tabular environment?               \documentclass[10pt]{article}     \usepackage{tabularx}     \usepackage[table]{xcolor}          \begin{document}     \begin{tabularx}{\textwidth}{ | X r | }         \hline         \rowcolor[gray]{0.6}         \multicolumn{2}{|>{\bfseries}p{\textwidth}|}{First row of the table - some long text in bold font with background color. This needs to wrap properly. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc venenatis nunc dui, sed pellentesque ante laoreet nec.}\\         \hspace{2mm}Label of the list:       &             \\         \hspace{2mm}first item of the list   &   377,26 zl\hspace{2mm} \\         \hspace{2mm}second item of the list  &    56,30 zl\hspace{2mm} \\         \hspace{2mm}last item of the list    &     0,00 zl\hspace{2mm} \\         \multicolumn{2}{|>{\bfseries}p{\textwidth}|}{Last row of the table - some text in bold font}\\         \hline     \end{tabularx}     \end{document}


title: End a paragraph and continue normal section

text: Inside a section, I have plain text and a paragraph. The section starts with normal text, then there is a short paragraph, and finally the normal section text continues. The last part of the text should look different from the paragraph and continue in the same style as the first part of the section.   How can the paragraph be ended? This is what my code looks like:               \section{My_section}     %...text here...       \paragraph{My_paragraph}     %...text paragraph...       %?How to end the paragraph?     %...the text of the section continues