title: Dual big brackets around Text

text: Back again! Currently attempting a dual bracket thing: where word {para}{para} word, are all on one line. I'm trying to play around with the code. But I cannot seem to get it to work. Here's my attempt. Any advice much appreciated! This is following the similar previous question I had here that was answered here: Big brackets around Text Example of want trying to achieve: ![!\[\]\(http://imgur.com/2LGQnoe\)](http://i.stack.imgur.com/AVFz2.jpg)                 \documentclass[oldfontcommands,11pt]{memoir}       % Page Layout       \usepackage[margin=1in, paperwidth=8.5in, paperheight=11in]{geometry}%   http://ctan.org/pkg/geometry       \usepackage{xparse}% http://ctan.org/pkg/xparse       \usepackage{varwidth}% http://ctan.org/pkg/varwidth            %% Dual Convo Bracket Command:       \NewDocumentCommand{\dboxbrace}{s O{\{} O{\}} O{0.05\linewidth} m O{0.4\linewidth} m  }{% \lrboxbrace[<lbrace>][<rbrace>][<lwidth>]{<ltext>}[<rwidth>]{<rtext>}              \begin{lrbox}{\leftlatbox}% Left Lateral box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#4}#5\end{varwidth}}             {\begin{minipage}{#4}#5\end{minipage}}         \end{lrbox}         \begin{lrbox}{\rightmedbox}% Right Medial box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#6}#7\end{varwidth}}             {\begin{minipage}{#6}#7\end{minipage}}         \begin{lrbox}{\leftmedbox}% Left Medial box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#4}#5\end{varwidth}}             {\begin{minipage}{#4}#5\end{minipage}}         \end{lrbox}         \begin{lrbox}{\rightlatbox}% Right Lateral box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#6}#7\end{varwidth}}             {\begin{minipage}{#6}#7\end{minipage}}               \end{lrbox}         \ensuremath{\usebox\leftlatbox\left#2\usebox\rightmedbox\right#3\left#2\usebox\leftmedbox\right#3\usebox\rightlatbox}       }              \begin{document}              % Example of attempted use              %% Example of dual Work               \begin{center}                   \dboxbrace {word} {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed         eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget         enim urna.  Pellentesque tincidunt adipiscing velit a         fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur         adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis         auctor quis. Aenean eget enim urna.  Pellentesque tincidunt         adipiscing velit a fermentum.} {Lorem ipsum dolor sit amet, sectetur   adipiscing elit. Sed         eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget         enim urna.  Pellentesque tincidunt adipiscing velit a         fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur         adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis         auctor quis. Aenean eget enim urna.  Pellentesque tincidunt         adipiscing velit a fermentum.} {word}                     \end{center}         \end{document}


title: Additional vertical space in an equation

text: I have this equation:               \begin{equation}      \mathbf{S}_o = \frac{ \sum\limits_{i=1}^{N} \left[ \left( \frac{\sum\limits_{k=1}^{J-1} \frac{\| P_k^Q - P_{k+1}^Q  \|}{\| P_k^T - P_{k+1}^T   \|}  }{J-1} \right) \cdot \mathbf{S}_i \right]   }{N}     \end{equation}      Being rendered like this: ![enter image description here](http://i.stack.imgur.com/9ovpZ.png) I don't understand why there is that additional space there ?


title: Write above the symbol math "subset"

text: Like the symbols "bigcup or bigcap" in LateX, I'd like to write above the symbol subset. I have try to use the displaystyle command, but it doesn't work ! Here this is a snipset of my try : `$\boldsymbol{NP} \displaystyle\subset^{?} \boldsymbol{P}$`


title: Why using pdf we get better results than using dvi?

text: In How can I auto adjust a equation to appear in the entire page? (Scale to equations, is this exist?) I asked how I could change the equation sizes. Nothing seemed to work. But the problem was I was using latex (Kile) and seeing the the results in dvi. When I used pdflatex as @Hooked proposed I got good results in the pdf. Why? Why I can't use dvi? Or if I can use dvi, how to do this? The code below generated this (using latex and dvi): ![enter image description here](http://i.stack.imgur.com/OQj9e.png) when the correct is this(possible using pdflatex).): ![enter image description here](http://i.stack.imgur.com/FEjlU.png)               \documentclass[landscape, 12pt]{report}     \usepackage{graphicx}     \pagestyle{empty}          \begin{document}     \noindent Here is some text     \begin{equation}     \resizebox{1.0 \textwidth}{!}     {        $ a + b $     }     \end{equation}     and here is some more.     \end{document}


title: Typesetting a bilingual English-Hebrew book with facing pages in each language

text: How would one go about setting, say, a bilingual novel with the English translation on the left side of the book binding (the verso) and the original Hebrew text on the right side of the book (the recto), so that the two meet in the middle (at the binding)? (Not that it particularly matters, but I actually want this for Yiddish, not Hebrew...but all the same as far as the typesetting is concerned. See this example.)


title: How to break page result of Maple output?

text: I have a file which Maple out put.               \documentclass{article}     \usepackage[left=20mm,right=20mm,top=15mm,bottom=20mm]{geometry}     \usepackage{maple2e}      \def\emptyline{\vspace{12pt}}     \DefineParaStyle{Maple Output}     \DefineParaStyle{Maple Output}     \DefineCharStyle{2D Math}     \DefineCharStyle{2D Output}     \begin{document}     \begin{maplegroup}     \begin{maplelatex}     \maplemultiline{     [[1, \,-9, \,-1, \,10, \,1, \,[9, \,10]], \,[1, \,-8, \,-1, \,9,      \,1, \,[8, \,9]], \,[1, \,-7, \,-1, \,8, \,1, \,[7, \,8]],  \\     [1, \,-6, \,-1, \,7, \,1, \,[6, \,7]], \,[1, \,-6, \,-1, \,10, \,     2, \,[6, \,10]], \,[1, \,-5, \,-1, \,6, \,1, \,[5, \,6]],  \\     [1, \,-5, \,-1, \,9, \,2, \,[5, \,9]], \,[1, \,-5, \,-1, \,10, \,     3, \,[6, \,9]], \,[1, \,-4, \,-1, \,5, \,1, \,[4, \,5]],  \\     [1, \,-4, \,-1, \,8, \,2, \,[4, \,8]], \,[1, \,-4, \,-1, \,9, \,3     , \,[5, \,8]], \,[1, \,-3, \,-1, \,4, \,1, \,[3, \,4]],  \\     [1, \,-3, \,-1, \,7, \,2, \,[3, \,7]], \,[1, \,-3, \,-1, \,8, \,3     , \,[4, \,7]], \,[1, \,-2, \,-3, \,10, \,2, \,[2, \,3]],  \\     [1, \,-2, \,-1, \,3, \,1, \,[2, \,3]], \,[1, \,-2, \,-1, \,6, \,2     , \,[2, \,6]], \,[1, \,-2, \,-1, \,7, \,3, \,[3, \,6]],  \\     [1, \,-1, \,-3, \,7, \,2, \,[1, \,2]], \,[1, \,-1, \,-1, \,2, \,1     , \,[1, \,2]], \,[1, \,-1, \,-1, \,5, \,2, \,[1, \,5]],  \\     [1, \,-1, \,-1, \,6, \,3, \,[2, \,5]], \,[1, \,-1, \,-1, \,10, \,     3, \,[1, \,10]], \,[1, \,1, \,-2, \,7, \,3, \,[-1, \,3]],  \\     [1, \,1, \,-1, \,3, \,2, \,[-1, \,3]], \,[1, \,1, \,-1, \,8, \,3     , \,[-1, \,8]], \,[1, \,2, \,-9, \,7, \,5, \,[-2, \,-1]],  \\     [1, \,2, \,-7, \,2, \,4, \,[-2, \,-1]], \,[1, \,2, \,-5, \,-1, \,     3, \,[-2, \,-1]], \,[1, \,2, \,-3, \,-2, \,2, \,[-2, \,-1]],  \\     [1, \,2, \,-3, \,10, \,4, \,[-2, \,2]], \,[1, \,2, \,-2, \,5, \,3     , \,[-2, \,2]], \,[1, \,2, \,-1, \,-1, \,1, \,[-2, \,-1]],  \\     [1, \,2, \,-1, \,2, \,2, \,[-2, \,2]], \,[1, \,2, \,-1, \,3, \,3     , \,[-1, \,2]], \,[1, \,2, \,-1, \,7, \,3, \,[-2, \,7]],  \\     [1, \,2, \,-1, \,8, \,4, \,[-1, \,7]], \,[1, \,3, \,-9, \,-2, \,5     , \,[-3, \,-2]], \,[1, \,3, \,-7, \,-5, \,4, \,[-3, \,-2]],  \\     [1, \,3, \,-5, \,-6, \,3, \,[-3, \,-2]], \,[1, \,3, \,-3, \,-5,      \,2, \,[-3, \,-2]], \,[1, \,3, \,-3, \,7, \,4, \,[-3, \,1]],  \\     [1, \,3, \,-2, \,3, \,3, \,[-3, \,1]], \,[1, \,3, \,-1, \,-2, \,1     , \,[-3, \,-2]], \,[1, \,3, \,-1, \,1, \,2, \,[-3, \,1]],  \\     [1, \,3, \,-1, \,2, \,3, \,[-2, \,1]], \,[1, \,3, \,-1, \,6, \,3     , \,[-3, \,6]], \,[1, \,3, \,-1, \,7, \,4, \,[-2, \,6]],  \\     [1, \,3, \,-1, \,10, \,5, \,[1, \,6]], \,[1, \,4, \,-3, \,-8, \,2     , \,[-4, \,-3]], \,[1, \,4, \,-1, \,-3, \,1, \,[-4, \,-3]],  \\     [1, \,4, \,-1, \,5, \,3, \,[-4, \,5]], \,[1, \,4, \,-1, \,6, \,4     , \,[-3, \,5]], \,[1, \,5, \,-4, \,5, \,5, \,[-5, \,-1]],  \\     [1, \,5, \,-3, \,1, \,4, \,[-5, \,-1]], \,[1, \,5, \,-2, \,-1, \,     3, \,[-5, \,-1]], \,[1, \,5, \,-1, \,-4, \,1, \,[-5, \,-4]],  \\     [1, \,5, \,-1, \,-1, \,2, \,[-5, \,-1]], \,[1, \,5, \,-1, \,4, \,     3, \,[-5, \,4]], \,[1, \,5, \,-1, \,5, \,4, \,[-4, \,4]],  \\     [1, \,5, \,-1, \,8, \,5, \,[-1, \,4]], \,[1, \,6, \,-5, \,6, \,6     , \,[-6, \,-2]], \,[1, \,6, \,-4, \,1, \,5, \,[-6, \,-2]],  \\     [1, \,6, \,-3, \,-2, \,4, \,[-6, \,-2]], \,[1, \,6, \,-2, \,-3,      \,3, \,[-6, \,-2]], \,[1, \,6, \,-1, \,-5, \,1, \,[-6, \,-5]],       \\     [1, \,6, \,-1, \,-2, \,2, \,[-6, \,-2]], \,[1, \,6, \,-1, \,-1,      \,3, \,[-5, \,-2]], \,[1, \,6, \,-1, \,3, \,3, \,[-6, \,3]],  \\     [1, \,6, \,-1, \,4, \,4, \,[-5, \,3]], \,[1, \,6, \,-1, \,7, \,5     , \,[-2, \,3]], \,[1, \,6, \,-1, \,10, \,4, \,[-6, \,10]],  \\     [1, \,7, \,-6, \,7, \,7, \,[-7, \,-3]], \,[1, \,7, \,-5, \,1, \,6     , \,[-7, \,-3]], \,[1, \,7, \,-4, \,-3, \,5, \,[-7, \,-3]],  \\     [1, \,7, \,-3, \,-5, \,4, \,[-7, \,-3]], \,[1, \,7, \,-2, \,-5,      \,3, \,[-7, \,-3]], \,[1, \,7, \,-1, \,-6, \,1, \,[-7, \,-6]],       \\     [1, \,7, \,-1, \,-3, \,2, \,[-7, \,-3]], \,[1, \,7, \,-1, \,-2,      \,3, \,[-6, \,-3]], \,[1, \,7, \,-1, \,2, \,3, \,[-7, \,2]],  \\     [1, \,7, \,-1, \,3, \,4, \,[-6, \,2]], \,[1, \,7, \,-1, \,6, \,5     , \,[-3, \,2]], \,[1, \,7, \,-1, \,9, \,4, \,[-7, \,9]],  \\     [1, \,7, \,-1, \,10, \,5, \,[-6, \,9]], \,[1, \,8, \,-6, \,1, \,7     , \,[-8, \,-4]], \,[1, \,8, \,-5, \,-4, \,6, \,[-8, \,-4]],  \\     [1, \,8, \,-4, \,-7, \,5, \,[-8, \,-4]], \,[1, \,8, \,-3, \,-8,      \,4, \,[-8, \,-4]], \,[1, \,8, \,-2, \,-7, \,3, \,[-8, \,-4]],       \\     [1, \,8, \,-1, \,-7, \,1, \,[-8, \,-7]], \,[1, \,8, \,-1, \,-4,      \,2, \,[-8, \,-4]], \,[1, \,8, \,-1, \,-3, \,3, \,[-7, \,-4]],       \\     [1, \,8, \,-1, \,1, \,3, \,[-8, \,1]], \,[1, \,8, \,-1, \,2, \,4     , \,[-7, \,1]], \,[1, \,8, \,-1, \,5, \,5, \,[-4, \,1]],  \\     [1, \,8, \,-1, \,8, \,4, \,[-8, \,8]], \,[1, \,8, \,-1, \,9, \,5     , \,[-7, \,8]], \,[1, \,9, \,-6, \,-5, \,7, \,[-9, \,-5]],  \\     [1, \,9, \,-5, \,-9, \,6, \,[-9, \,-5]], \,[1, \,9, \,-2, \,-9,      \,3, \,[-9, \,-5]], \,[1, \,9, \,-1, \,-8, \,1, \,[-9, \,-8]],       \\     [1, \,9, \,-1, \,-5, \,2, \,[-9, \,-5]], \,[1, \,9, \,-1, \,-4,      \,3, \,[-8, \,-5]], \,[1, \,9, \,-1, \,7, \,4, \,[-9, \,7]],  \\     [1, \,9, \,-1, \,8, \,5, \,[-8, \,7]], \,[1, \,10, \,-9, \,10, \,     10, \,[-10, \,-6]], \,[1, \,10, \,-3, \,6, \,6, \,[-10, \,-1]],       \\     [1, \,10, \,-2, \,7, \,6, \,[-9, \,-1]], \,[1, \,10, \,-1, \,-9,      \,1, \,[-10, \,-9]], \,[1, \,10, \,-1, \,-6, \,2, \,[-10, \,-6]]     ,  \\     [1, \,10, \,-1, \,-5, \,3, \,[-9, \,-6]], \,[1, \,10, \,-1, \,-1     , \,3, \,[-10, \,-1]], \,[1, \,10, \,-1, \,3, \,5, \,[-6, \,-1]]     ,  \\     [1, \,10, \,-1, \,6, \,4, \,[-10, \,6]], \,[1, \,10, \,-1, \,7,      \,5, \,[-9, \,6]], \,[1, \,10, \,-1, \,10, \,6, \,[-6, \,6]],       \\     [2, \,-9, \,-1, \,9, \,3, \,[5, \,9]], \,[2, \,-7, \,-1, \,8, \,3     , \,[4, \,8]], \,[2, \,-6, \,-2, \,10, \,2, \,[3, \,5]],  \\     [2, \,-5, \,-1, \,7, \,3, \,[3, \,7]], \,[2, \,-4, \,-2, \,8, \,2     , \,[2, \,4]], \,[2, \,-3, \,-1, \,6, \,3, \,[2, \,6]],  \\     [2, \,-2, \,-2, \,6, \,2, \,[1, \,3]], \,[2, \,-1, \,-1, \,5, \,3     , \,[1, \,5]], \,[2, \,2, \,-6, \,10, \,4, \,[-1, \,1]],  \\     [2, \,2, \,-4, \,5, \,3, \,[-1, \,1]], \,[2, \,2, \,-2, \,2, \,2     , \,[-1, \,1]], \,[2, \,3, \,-2, \,7, \,4, \,[-1, \,3]],  \\     [2, \,3, \,-1, \,3, \,3, \,[-1, \,3]], \,[2, \,5, \,-3, \,10, \,5     , \,[-2, \,2]], \,[2, \,5, \,-2, \,5, \,4, \,[-2, \,2]],  \\     [2, \,5, \,-1, \,2, \,3, \,[-2, \,2]], \,[2, \,6, \,-10, \,6, \,6     , \,[-3, \,-1]], \,[2, \,6, \,-8, \,1, \,5, \,[-3, \,-1]],  \\     [2, \,6, \,-6, \,-2, \,4, \,[-3, \,-1]], \,[2, \,6, \,-4, \,-3,      \,3, \,[-3, \,-1]], \,[2, \,6, \,-2, \,-2, \,2, \,[-3, \,-1]],       \\     [2, \,6, \,-2, \,10, \,4, \,[-3, \,5]], \,[2, \,7, \,-3, \,7, \,5     , \,[-3, \,1]], \,[2, \,7, \,-2, \,3, \,4, \,[-3, \,1]],  \\     [2, \,7, \,-1, \,1, \,3, \,[-3, \,1]], \,[2, \,7, \,-1, \,10, \,6     , \,[1, \,9]], \,[2, \,8, \,-10, \,-4, \,6, \,[-4, \,-2]],  \\     [2, \,8, \,-8, \,-7, \,5, \,[-4, \,-2]], \,[2, \,8, \,-6, \,-8,      \,4, \,[-4, \,-2]], \,[2, \,8, \,-4, \,-7, \,3, \,[-4, \,-2]],       \\     [2, \,8, \,-2, \,-4, \,2, \,[-4, \,-2]], \,[2, \,8, \,-2, \,8, \,     4, \,[-4, \,4]], \,[2, \,10, \,-3, \,10, \,5, \,[-5, \,3]],  \\     [2, \,10, \,-2, \,-6, \,2, \,[-5, \,-3]], \,[2, \,10, \,-2, \,6,      \,4, \,[-5, \,3]], \,[2, \,10, \,-2, \,10, \,6, \,[-3, \,3]],       \\     [3, \,-8, \,-1, \,4, \,2, \,[3, \,4]], \,[3, \,-8, \,-1, \,8, \,4     , \,[4, \,8]], \,[3, \,-5, \,-3, \,10, \,3, \,[2, \,3]],  \\     [3, \,-5, \,-1, \,3, \,2, \,[2, \,3]], \,[3, \,-5, \,-1, \,7, \,4     , \,[3, \,7]], \,[3, \,-2, \,-3, \,7, \,3, \,[1, \,2]],  \\     [3, \,-2, \,-1, \,2, \,2, \,[1, \,2]], \,[3, \,-2, \,-1, \,6, \,4     , \,[2, \,6]], \,[3, \,1, \,-1, \,5, \,4, \,[1, \,5]],  \\     [3, \,3, \,-3, \,6, \,3, \,[-1, \,2]], \,[3, \,6, \,-5, \,6, \,4     , \,[-2, \,1]], \,[3, \,6, \,-3, \,3, \,3, \,[-2, \,1]],  \\     [3, \,6, \,-1, \,10, \,6, \,[1, \,10]], \,[3, \,7, \,-9, \,7, \,6     , \,[-2, \,-1]], \,[3, \,7, \,-7, \,2, \,5, \,[-2, \,-1]],  \\     [3, \,7, \,-5, \,-1, \,4, \,[-2, \,-1]], \,[3, \,7, \,-3, \,-2,      \,3, \,[-2, \,-1]], \,[3, \,7, \,-3, \,10, \,5, \,[-2, \,3]],       \\     [3, \,7, \,-2, \,7, \,5, \,[-1, \,3]], \,[3, \,7, \,-1, \,-1, \,2     , \,[-2, \,-1]], \,[3, \,7, \,-1, \,3, \,4, \,[-1, \,3]],  \\     [3, \,10, \,-9, \,-2, \,6, \,[-3, \,-2]], \,[3, \,10, \,-7, \,-5     , \,5, \,[-3, \,-2]], \,[3, \,10, \,-5, \,-6, \,4, \,[-3, \,-2]]     ,  \\     [3, \,10, \,-3, \,-5, \,3, \,[-3, \,-2]], \,[3, \,10, \,-3, \,7,      \,5, \,[-3, \,2]], \,[3, \,10, \,-3, \,10, \,6, \,[-2, \,2]],       \\     [3, \,10, \,-2, \,5, \,5, \,[-2, \,2]], \,[3, \,10, \,-2, \,10,      \,5, \,[-3, \,5]], \,[3, \,10, \,-1, \,-2, \,2, \,[-3, \,-2]],       \\     [3, \,10, \,-1, \,2, \,4, \,[-2, \,2]], \,[4, \,-7, \,-2, \,8, \,     3, \,[2, \,4]], \,[4, \,-7, \,-1, \,8, \,5, \,[4, \,8]],  \\     [4, \,-4, \,-4, \,8, \,2, \,[1, \,2]], \,[4, \,-3, \,-2, \,6, \,3     , \,[1, \,3]], \,[4, \,-3, \,-1, \,7, \,5, \,[3, \,7]],  \\     [4, \,1, \,-1, \,6, \,5, \,[2, \,6]], \,[4, \,5, \,-6, \,10, \,5     , \,[-1, \,1]], \,[4, \,5, \,-4, \,5, \,4, \,[-1, \,1]],  \\     [4, \,5, \,-2, \,2, \,3, \,[-1, \,1]], \,[4, \,5, \,-1, \,5, \,5     , \,[1, \,5]], \,[4, \,8, \,-8, \,-7, \,3, \,[-2, \,-1]],  \\     [4, \,8, \,-4, \,-4, \,2, \,[-2, \,-1]], \,[4, \,8, \,-4, \,8, \,     4, \,[-2, \,2]], \,[5, \,-9, \,-1, \,9, \,6, \,[5, \,9]],  \\     [5, \,-6, \,-3, \,10, \,4, \,[2, \,3]], \,[5, \,-6, \,-1, \,3, \,     3, \,[2, \,3]], \,[5, \,-4, \,-1, \,8, \,6, \,[4, \,8]],  \\     [5, \,-1, \,-3, \,7, \,4, \,[1, \,2]], \,[5, \,-1, \,-1, \,2, \,3     , \,[1, \,2]], \,[5, \,1, \,-1, \,7, \,6, \,[3, \,7]],  \\     [5, \,6, \,-3, \,6, \,4, \,[-1, \,2]], \,[5, \,6, \,-1, \,6, \,6     , \,[2, \,6]], \,[6, \,-8, \,-2, \,8, \,4, \,[2, \,4]],  \\     [6, \,-5, \,-1, \,9, \,7, \,[5, \,9]], \,[6, \,-2, \,-2, \,6, \,4     , \,[1, \,3]], \,[6, \,1, \,-1, \,8, \,7, \,[4, \,8]],  \\     [6, \,7, \,-1, \,7, \,7, \,[3, \,7]], \,[6, \,10, \,-6, \,10, \,6     , \,[-1, \,1]], \,[6, \,10, \,-4, \,5, \,5, \,[-1, \,1]],  \\     [6, \,10, \,-2, \,2, \,4, \,[-1, \,1]], \,[7, \,-5, \,-3, \,10,      \,5, \,[2, \,3]], \,[7, \,-5, \,-1, \,3, \,4, \,[2, \,3]],  \\     [7, \,2, \,-3, \,7, \,5, \,[1, \,2]], \,[7, \,2, \,-1, \,2, \,4,      \,[1, \,2]], \,[8, \,-7, \,-4, \,8, \,3, \,[1, \,2]],  \\     [8, \,-7, \,-2, \,8, \,5, \,[2, \,4]], \,[8, \,1, \,-2, \,6, \,5     , \,[1, \,3]], \,[8, \,8, \,-8, \,8, \,4, \,[-1, \,1]],  \\     [9, \,-2, \,-3, \,10, \,6, \,[2, \,3]], \,[9, \,-2, \,-1, \,3, \,     5, \,[2, \,3]], \,[9, \,7, \,-3, \,7, \,6, \,[1, \,2]],  \\     [9, \,7, \,-1, \,2, \,5, \,[1, \,2]], \,[9, \,10, \,-1, \,10, \,     10, \,[6, \,10]], \,[10, \,-4, \,-2, \,8, \,6, \,[2, \,4]],  \\     \,5, \,[2, \,3]], \,[7, \,-5, \,-1, \,3, \,4, \,[2, \,3]],  \\     [7, \,2, \,-3, \,7, \,5, \,[1, \,2]], \,[7, \,2, \,-1, \,2, \,4,      \,[1, \,2]], \,[8, \,-7, \,-4, \,8, \,3, \,[1, \,2]],  \\     [8, \,-7, \,-2, \,8, \,5, \,[2, \,4]], \,[8, \,1, \,-2, \,6, \,5     , \,[1, \,3]], \,[8, \,8, \,-8, \,8, \,4, \,[-1, \,1]],  \\     [9, \,-2, \,-3, \,10, \,6, \,[2, \,3]], \,[9, \,-2, \,-1, \,3, \,     5, \,[2, \,3]], \,[9, \,7, \,-3, \,7, \,6, \,[1, \,2]],  \\     [9, \,7, \,-1, \,2, \,5, \,[1, \,2]], \,[9, \,10, \,-1, \,10, \,     10, \,[6, \,10]], \,[10, \,-4, \,-2, \,8, \,6, \,[2, \,4]],  \\     [10, \,6, \,-2, \,6, \,6, \,[1, \,3]]] }     \end{maplelatex}     \end{maplegroup}          \end{document}      The result can not break page. How to break page this file?


title: vertical placement of graphics in marginpar

text: I'd like to put small graphics into the margin via `\marginpar`. The top of the figures shall be aligned to the top of the text line they refer to. I found around here the suggestion to put a `\vskip0pt` into the `marginpar`, which seems to work somewhat, but the placement is still not perfect. In good LaTeX style I would like to have a solution that works automatically, i.e., without pixel-adjusting manually every figure, and is robust (font sizes, line spreads etc.). In the following MWE the problem is particularly visible in 1.2.1 and 1.2.2               \documentclass[twoside]{article}          \usepackage[demo]{graphicx}          \begin{document}     \section{Graphical note}     \subsection{With new paragraph}     \subsubsection{Text blocks}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.          % \leavevmode% makes things worse     %% \vksip3pt seems to be correct     \marginpar{\vskip0pt\includegraphics[width=4cm,height=1cm]{test}}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \subsubsection{Equation ending}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.     \begin{equation}       a = b     \end{equation}%          % \leavevmode% makes things worse     %% seems OK     \marginpar{\vskip0pt\includegraphics[width=4cm,height=1cm]{test}}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \subsection{Without new paragraph}     \subsubsection{Text blocks}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.     %% \vksip-7pt seems to be correct     \marginpar{\vskip0pt\includegraphics[width=4cm,height=1cm]{test}}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \subsubsection{Equation ending}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.     \begin{equation}       a = b     \end{equation}%     %% \vksip-7pt seems to be correct     \marginpar{\vskip0pt\includegraphics[width=4cm,height=1cm]{test}}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \clearpage     \section{With textual note}     The following four cases work fine.     \subsection{With new paragraph}     \subsubsection{Text blocks}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.          \leavevmode%     \marginpar{Baz baz baz baz baz}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \subsubsection{Equation ending}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.     \begin{equation}       a = b     \end{equation}          \leavevmode%     \marginpar{Baz baz baz baz baz}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \subsection{Without new paragraph}     \subsubsection{Text blocks}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.     \marginpar{Baz baz baz baz baz}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \subsubsection{Equation ending}          Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo.     \begin{equation}       a = b     \end{equation}     \marginpar{Baz baz baz baz baz}%     Bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar     bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar.          \end{document}      ![sample output](http://i.stack.imgur.com/YOOuT.png)


title: How do I place nodes around a circle in Tikz?

text: I'd like to place 17 evenly-spaced nodes around a circle. I am very new to Tikz and am following the Petri nets example in the manual. I would like to do something similar — essentially just recreating a better version of this, complete with all the steps described in the Wikipedia article. Does anyone know how to place the nodes in this way? I'd appreciate and all advice!


title: Giving two matrices the same width

text: I've got two matrices, were one is an ordered pair (a point) and the second one is a rotation matrix below that. How do I get them both to be the same width? I have two sets of parentheses and I still want them to be separate arrays.               \documentclass[12pt]{article}     \usepackage{a4wide}     \usepackage{amsmath}          \begin{document}         $$         \left(         \begin{array}{ccc}             2 & , & 3         \end{array}         \right)         \left[         \begin{array}{ccc}             \cos{\theta} & -\sin{\theta} \\             \sin{\theta} & \cos{\theta}         \end{array}         \right]         $$     \end{document}


title: Inserting a blank page using pdfpages results in "Missing number, treated as zero"

text: I am using the `pdfpages` package (version 25688 0.4r) to create a document with a blank page followed by a PDF file. Here is the working example               \documentclass{article}     \usepackage[final]{pdfpages}     \begin{document}     \includepdf[pages={{},-}]{../ma532/hw11/hw11.pdf}     \end{document}      The empty braces in the pages argument required for the blank page throw up a "Missing number, treated as zero" error. However on pressing return in the command prompt after the error, compilation (with pdflatex) takes place as usual and gives me the required PDF. If I remove the blank page, the document is compiled smoothly. As the same code works without any errors for version 0.4p of the package, I am wondering if the syntax for blank pages has changed in the new version. The documentation does not report any changes though. I had updated my TexLive distribution only a few days prior to running into this problem. In short my question is this, am I using the wrong syntax or is there some other reason for the error.


title: How can I produce black and white source code using the minted package?

text: I just started using the minted package, to produce formatted source codes. I thought the style bw is a black and white style of pygmentize and it just uses italic and bold to format the code (I tried the code below), but I was wrong. Is there any way to produce formatted code which looks good in black and white?               \documentclass{minimal}     \usepackage{minted}          \begin{document}       \usemintedstyle{bw}       \inputminted{bash}{sample.sh}     \end{document}      Thanks


title: How do I use REVTeX?

text: This seems like a really stupid question, but I am confused. I am LaTeX-ing papers for a professor, but APS requires the REVTeX format. Is it as simple as `\documentclass{revtex4-1}`, and remains as a .tex file? Are there formatting requirements (for APS/AIP) I should look out for as well? I don't like how the sections are numbered with Roman numerals, but is that one of those things that are required?


title: Tikz graph: weight above the node

text: Hy, I would like to know if it is possible in Tikz graphs put the weight above the vertice (this way, all edges to the destination node has the same weight) instead above the edge. Here is an example: ![enter image description here](http://i.stack.imgur.com/K9yeO.png)


title: Why do eps images overlap the captions in subfigures?

text: I'm using the package subcaption within an scrreprt compiling with XeTeX/XeLaTeX. When using subfigures for 4 images in a grid view, the images are not centered and overlap the middle subcaptions. It seems like this is just happening for my .eps-figures. Please see a MWE and a picture of my problem below. What is happening here? What am I doing wrong?               \documentclass[     pagesize=automedia,     headsepline=true,     mpinclude=false,     parskip=half,     DIV=12,     BCOR=12mm,     ngerman     ]{scrreprt}     \usepackage{xltxtra}     \usepackage[]{babel}     \makeatletter     \g@addto@macro\@floatboxreset\centering     \makeatother     \usepackage{caption}     \usepackage{subcaption}          \begin{document}          \begin{figure}     %        \begin{subfigure}[b]{.49\linewidth}         \includegraphics[width=\linewidth]{Beispiel.eps}         \caption{Quadrat 1}\label{fig:Q1}     \end{subfigure}         \hfill     \begin{subfigure}[b]{.49\linewidth}         \includegraphics[width=\linewidth]{Beispiel.eps}                 \caption{Quadrat 2}\label{fig:Q2}     \end{subfigure}           \begin{subfigure}[b]{.49\linewidth}         \includegraphics[width=\linewidth]{Beispiel.eps}         \caption{Quadrat 3}\label{fig:Q3}     \end{subfigure}         \hfill     \begin{subfigure}[b]{.49\linewidth}         \includegraphics[width=\linewidth]{Beispiel.eps}         \caption{Quadrat 4}\label{fig:Q4}     \end{subfigure}              %     \caption{4 Quadrate}\label{fig:Qs}     \end{figure}          \end{document}      The Problem also appears, if I use `\par` instead of the blank line between subfigure 2 and 3. With `\par\medskip` or `\par\bigskip` I can correct the vertical distance but not the ill centered pictures. ![enter image description here](http://i.stack.imgur.com/t07H7.jpg) * * * Find the eps here: EPS Upload


title: biblatex: inherit shorthand

text: _UPDATED MWE_ I want to cite articles from an encyclopedia, with using the shorthand of the encyclopedia: Like > Lastname, Firstname. Art. _articltitle_. In: NG, Vol. 11, pp. 30–40, p. 35. I want to use this in the cites as in the bibliography. My code so far (MWE):               \documentclass{article}     \usepackage[style = verbose-ibid]{biblatex}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @mvreference{NG,     title={The new Grove dictionary of music and musicians},     editor={Stanley Sadie},%begr. von Grove, George     year={1980},     volumes={20},     shorthand={NG}     }          @reference{NG-BD11,     crossref={NG},     title={Lindeman - Mean-tone},     volume={11},     year={1980},     location={London},     publisher={Macmillan}     }          @inreference{author-NG-ML,     crossref={NG-BD11},     author={Firstname Lastname},     title={articletitle},     pages={30--40}     }          \end{filecontents}     \addbibresource{\jobname.bib}          %what to print out?     \DeclareBibliographyDriver{inreference}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \printtext{Art.}%added       \newunit%added       \usebibmacro{title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{in:}%       \iffieldundef{shorthand}{%added         \usebibmacro{maintitle+booktitle}}%         {\printfield{mainshorthand}}%added, here I want the shorthand from the mvreference (NG)       \usebibmacro{byeditor+others}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}               \begin{document}     \nocite{*}     \noindent{}The author wrote something about my subject.\autocite[35]{author-NG-ML}     \printshorthands     \printbibliography[nottype=mvreference, nottype=reference]     \end{document}            Output: > Lastname, Firstname. Art. _articletitle_. In: _The new Grove dictionary of > music and musicians_. Vol. 11: _Lindeman - Mean-tone_. Ed. by Stanley Sadie. > 20 vols. London: Macmillan, 1980, pp. 30–40. I've experimented with the command `\DeclareDataInheritance`, to inherit the shorthand, but couldn't get it to work.


title: Specific unit output using siunitx

text: Consider the following example. I would like to use the `\SI` command from `siunitx` to type the following:               \documentclass{article}          \usepackage[separate-uncertainty=true]{siunitx}          \begin{document}          \noindent What I have:     \[       \SI{6.67384(80)e-11}{\N\square\m\per\square\kg}     \]     What I would like:     \[       \num{6.67384(80)e-11}\,\si{\N\square} \cdot (\si{\m/\kg})^{2}     \]          \end{document}      ![output](http://i.stack.imgur.com/yl0lO.jpg)


title: Meta definition of diacritical marks

text: Could someone tell me at least approximately where in the bowels of TeX I could find the definition of various accents/decorations going on letters, such as the cedilla?


Is there a way to revert manually to earlier versions of a package?   I know this is a bit weird but I need previous versions of some packages for some reason.


title: Can \\ be omitted in verses?

text: As far as I know, a double line break introduces a new paragraph. Within `verse` this is used to separate stanzas, which can also be done with `\\!`. So in LaTeX source code for long, standalone poems, almost every line ends with `\\`. Is it possible to use a single line break for newlines instead? Essentially I have               \begin{verse}     There was a young lady of Niger \\     Who smiled as she rode on a tiger; \\     They returned from the ride \\     With the lady inside, \\     And the smile on the face of the tiger.          Second verse.     \end{verse}      and would instead like to be able to write               \begin{verse}     There was a young lady of Niger     Who smiled as she rode on a tiger;     They returned from the ride     With the lady inside,     And the smile on the face of the tiger.          Second verse.     \end{verse}


title: How can I add margin notes on inner side of a page in two sides mode?

text: How can I add margin notes on inner side of a page only for even pages in two sides mode?


title: How to create a font from scratch

text: Roughly speaking, how do we create a font from scratch? What software is needed? Is there free software to do this? Please guide me step by step because I am a newbie in this field. I cannot imagine how a font is created. In my imagination, each character is created using a vector graphics editor.


title: Compile latex to pdf directly, skipping ps

text: Up until now, I have been using the MikTeX compiler along with the TeXnicCenter editor to compile latex documents to pdf via ps, i.e., LaTeX ==> PS ==> PDF. However, I recently run into the printing problem of rotated pages (using the sidewaysfigure environment) inside twosided documents, as exactly described here: Page upside down? The question is, is it OK to compile directly to PDF, thus skipping PS, in order to have the rotated pages print properly in an easy manner? For reference, I am compiling a large document including a number of .eps figure (either vector-only or mixed vector/image content). Am I missing some functionality by skipping the PostScript creation?


title: Writing algorithms in pseudocode in latex

text: Why if I write :               \State \textbf{upon event $< Init >$  do}             \For{\textbf{all $n$} $\in N$}                 \State $value[r]=0$;             \EndFor      I have this output: ![enter image description here](http://i.stack.imgur.com/uB5Ic.png) but I want: ![enter image description here](http://i.stack.imgur.com/BTdZu.png) How can I do it?Thankyou very much


title: What symbol can be used in front of a URL ?

text: When you typeset an email address, you can put a "@" or a letter symbol in front of it. In the same fashion, what symbol can be used in front of a URL?


title: Problem converting images for beamer presentation

text: I've got many troubles with raster images and `beamer` class:   1. convert `*.png` to `eps`, cslatex => dvips => ps2pdf, images look like compressed by jpg algorithm :/    2. convert `*.png` -> `eps` -> `pdf` (`epstopdf`) - images after conversion look like compressed again...   3. use `*.png` and `pdfcslatex` \- images are ok, however positioning, etc. doesn't work good...   4. use `cslatex` => `dvipdfm` \- doesn't work with beamerclass... Without beamer, I'm using the 4th option with `eps` images and everything's ok... Beamer is really a great package, however these troubles with images are * * * * * What am I doing wrong? Is there any other possibility? **solved**


title: \autoref subsections in appendix

text: # MWE               \documentclass{article}     \usepackage{appendix}     \usepackage{lipsum}     \usepackage[colorlinks]{hyperref}          \def\sectionautorefname{Section}      \def\subsectionautorefname{Section}      \def\appendixautorefname{Appendix}          \begin{document}          First appendix section: \autoref{app sec}           First appendix subsection: \autoref{app sub}          \appendix     \appendixpage     \section{First appendix section}\label{app sec}     \subsection{First appendix subsection}\label{app sub}     \lipsum[1]          \end{document}      # Output ![enter image description here](http://i.stack.imgur.com/zWlth.png) # Question Is it possible to `\autoref` a **subsection** in an appendix in the form `Appendix A.1`, instead of `Section A.1` (as shown in the MWE)? I'm aware a `cleveref` solution given in this post. If possible, however, I'd like a solution that only involves the `hyperref` package.


title: Latex multicol + itemize

text: I'm using the pdflatex interpreter and trying to get the following behavior using an itemized list in a multicolumn environment:               [space]* item1   *item2     [space]* item3   *item3      I can get somewhat of the behavior I'm looking for using the "enumitem" package, but it breaks for long items. see this code example:               \documentclass[12pt]{article}     \usepackage{multicol}     \usepackage{enumitem}     \begin{document}     \begin{multicols}{2}         \begin{itemize}[leftmargin=6em]             \item Item with lots and lots of text             \item Another item with lots of text...         \end{itemize}     \end{multicols}     \end{document}      There's a lot of whitespace and causes items to wrap. I realize that this is because the itemize in the second column also has a left margin of 6em. Anyone have an idea of how to achieve what I'm looking for? anything I've investigated hasn't proven to get it quite right. I also tried looking at the enumitem documentation: http://www.tex.ac.uk/tex- archive/macros/latex/contrib/enumitem/enumitem.pdf I've also come across this: columns with itemize but I'd like something a little more flexible and compact Thanks!


title: Template for Standard Operating Procedures?

text: There are several queries and answers for technical reference manuals, user guides etc. and I've found enough places on the net that have these templates along with detailed descriptions of their scope. But where can I find a TeX template for Standard Operating Procedures specifically? The template should typically have:   * A standard-looking Header and footer for the procedure numbers, company name etc.   * Uniform formatting for headings, bullets and sub-bullets    * Simple placeholders for images (not a priority). The guys at my workplace typically write this sort of thing in Word 2007, but I feel the stuff I'm working on now is quite is quite well suited to and will benefit greatly from using TeX. P.S. I am at a beginner level when it comes to LaTeX, but I'm very comfortable using it. Also, if it makes any difference to your answers – I prefer to write it completely by hand in a simple editor (rather than using something like LyX, for example). The output is in pdf. Here are two examples of the look I'd like:   * http://mammothlakesfd.intuitwebsites.com/Operations/SOPs/PPE_Protection.pdf   * http://www.kpchr.org/rspopublic/public/common/getdocpublic.aspx?docid=6A2EBB9B-10B9-4D72-82A5-27F80C00B1E5


title: forarray's \ForEach isn't robust

text: `\ForEach` and related commands of **forarray** package aren't robust. They can't deal with lists whose separators are active (e.g., active comma). Also any trailing space after the list item is retained throughout processing. For example, with               \begingroup     \catcode`\,=13     \gdef\x{ {a} , \if , {b} , \fi }     \endgroup     \ForEachX{,}{\typeout{X\unexpanded\expandafter{\thislevelitem}X}}\x      I get               \fe@item@check@next ->\fe@getitem@i {a}     \fe@getitem@i #1,->\fe@setitem@i {#1}     #1<-{a} , \if , {b} , \fi     ...     {changing \thislevelitem=\relax}     {into \thislevelitem=\long macro:->{a} , \if , {b} , \fi }      This means that on first grabbing of list item, `\thislevelitem` is the entire list: `->{a} , \if , {b} , \fi`. Please how do I solve these problems? Also, it will be less confusing if the following **forarray** syntax               \begin{enumerate}     \ForEach{;}{       \item This is item No.\ \the\thislevelcount.       \begin{enumerate}       \ForEachSublevel{,}{\item \thislevelitem.}       \end{enumerate}     }{%       This is a nested item, Another nested item ;       {This item is, well, nested}, A final item     }     \end{enumerate}      is made like this               \begin{enumerate}     \ForEach{;}{       \item This is item No.\ \the\thislevelcount.       \begin{enumerate}       \ForEach{,}{\item \thislevelitem.}{<level 2 list>}       \end{enumerate}     }     {<level 1 list>}     \end{enumerate}


title: Color gradient fill between three corners of a triangle

text: **Updates** Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. Update3: added pstrick tag due to proposed answer below. * * * Update 2: I would like to get an image like the one below just with the colours changing gradually between cities. ![Europe Map](http://i.stack.imgur.com/AEHeZ.jpg) and this is what I got so far now trying to implement @AndrewStacey sugestion from here: ![Map with first triangles](http://i.stack.imgur.com/RxH8V.png) **Original** To illustrate some data on a map I have given each location that falls in one out of twelve conditions a color. What i would like to do that the color slowly transitions between two locations. In the example below the three points `8`, `18` and `28` represent three cities with different conditions. ![Example Image](http://i.stack.imgur.com/c9Ikz.png) Other than in this picture I would like the color to change gradually from blue (at 8) to green (at 28) and from green to ... you get the idea. I found lots of examples to do this for two colours but couldn't find anything about mixing three colours. The fill does not need to be a circle. Best would be if only the inside of the triangle is filled. Is there a way to get this working? * * * The code I have used for the example above:               \documentclass[svgnames, tikz]{standalone}          % Needed for Definitions     \usepackage{siunitx} % for e.g. degree celsius     \usepackage{pgfplots}     \usepackage{xcolor}          \tikzset{city/.style={         % The Shape:             circle,             inner sep=0mm,             fill=red,             minimum size=0.5mm     }}          \tikzset{fortyone/.style={         % The Shape:             circle,             inner sep=0mm,             fill=green,             opacity=0.5,             minimum size=15mm     }}          \tikzset{fortytwo/.style={         % The Shape:             circle,             inner sep=0mm,             inner color=DarkRed,             outer color=red,             opacity=0.5,             minimum size=15mm     }}          \tikzset{fortythree/.style={         % The Shape:             circle,             inner sep=0mm,             fill=blue,             opacity=0.5,             minimum size=15mm     }}          \begin{document}     \begin{tikzpicture}     % Locations on map     \coordinate (A) at (0,0);              \coordinate (B) at (1,0);      \coordinate (C) at (0,1);           %%% Temporary conections     \draw (A) -- (B) -- (C) -- (A);          %%% Areas     \node at (A) [fortyone] {};     \node at (B) [fortytwo] {};     \node at (C) [fortythree] {};          %%% Cities and Labels     \node at (A) [city] {}; \node[left, font=\tiny] at (A) {28};     \node at (B) [city] {}; \node[right, font=\tiny] at (B) {18};     \node at (C) [city] {};  \node[left, font=\tiny] at (C) {8};               \end{tikzpicture}     \end{document}      * * * **Update 1:** I have tried to implement @Harish Kumar solution. It works good for one triangle but as there are more I run into a number of problems. ![More triangles](http://i.stack.imgur.com/irp5K.png) and the code:               \documentclass[svgnames, tikz]{standalone}          % Needed for Definitions     \usepackage{siunitx} % for e.g. degree celsius     \usepackage{pgfplots}     \usepackage{xcolor}     \usetikzlibrary{shadings}          \tikzset{city/.style={         % The Shape:             circle,             inner sep=0mm,             fill=red,             minimum size=0.5mm     }}               \begin{document}     \begin{tikzpicture}     % Locations on map     \coordinate (A) at (0,0);              \coordinate (B) at (1,0);      \coordinate (C) at (0,1);      \coordinate (D) at (-1,0);     \coordinate (E) at (-1,-1);     \coordinate (F) at (1,1);          \begin{scope}     \clip (A) -- (B) -- (C) -- cycle;     \shade[upper left=blue,upper right=white,     lower left=green,lower right=DarkRed]     ([xshift=-0.cm]C) rectangle (B);     \end{scope}          \begin{scope}     \clip (A) -- (D) -- (C) -- cycle;     \shade[upper right=blue,upper left=white,     lower right=green,lower left=blue]     ([xshift=-0.cm]C) rectangle (D);     \end{scope}          \begin{scope}     \clip (B) -- (F) -- (C) -- cycle;     \shade[upper right=DarkRed,upper left=blue,     lower right=DarkRed,lower left=green]     ([xshift=-0.cm]C) rectangle (B);     \end{scope}          \begin{scope}     \clip (D) -- (E) -- (A) -- cycle;     \shade[upper right=green,upper left=blue,     lower right=DarkRed,lower left=green]     ([xshift=-0.cm]E) rectangle (A);     \end{scope}          \begin{scope}     \clip (A) -- (E) -- (B) -- cycle;     \shade[upper right=DarkRed,upper left=green,     lower right=DarkRed,lower left=green]     ([xshift=-0.cm]E) rectangle (B);     \end{scope}          %%% Cities and Labels         \node at (A) [city] {}; \node[below, font=\tiny] at (A) {A};         \node at (B) [city] {}; \node[right, font=\tiny] at (B) {B};         \node at (C) [city] {};  \node[above, font=\tiny] at (C) {C};         \node at (D) [city] {};  \node[left, font=\tiny] at (D) {D};     \node at (E) [city] {};  \node[left, font=\tiny] at (E) {E};     \node at (F) [city] {};  \node[above, font=\tiny] at (F) {F};               \end{tikzpicture}     \end{document}      * * *


title: todonotes package: mark a block with the comment

text: I like to know it it is possible to use todonotes for something like this:               text text     text text---     text text   |     text text   |-[comment box]     text text   |     text text---     text text      I want a comment box pointing to a start line and an end line (possible both are on different pages). Thank you for help, I'm looking forward to your answers. best regards, Oli


title: Plot x y data from different files/tables

text: I have two data files (`xxxx.txt` and `yyyy.txt`), each only containing one column of x and y data respectively. Now I want to plot these two data together in a simple 2D diagram. Has anybody an idea how this is possible? Until now I always had my x and y data in one file together (two columns, first x, second y). So there was no problem and I plotted my data like:               \begin{tikzpicture}     \begin{axis}        \addplot table {datatable.txt};     \end{axis}     \end{tikzpicture}      Does anybody have a helpful idea or solution?


title: Error when trying to preview PDF documents with TeXlipse

text: I'm using TeXlipse (LaTeX plugin for eclipse) and I want to preview my LaTeX document. I have configured yap in the viewer settings.   When I push the preview button I get an error in the console:               Error: Project output file format not set in project: thesis.      I don't understand the message, because I set the output file and it works, because when I save, the auto save compile function produces the correct output pdf Here is my `.texlipse` file               #TeXlipse project settings     #Thu Jun 21 20:51:48 CEST 2012     markTmpDer=true     builderNum=2     outputDir=     makeIndSty=     bibrefDir=     outputFormat=pdf     tempDir=tmp/     mainTexFile=template.tex     outputFile=main.pdf     langSpell=de     markDer=true     srcDir=      and my `.project` file               <?xml version="1.0" encoding="UTF-8"?>     <projectDescription>         <name>thesis</name>         <comment></comment>         <projects>         </projects>         <buildSpec>             <buildCommand>                 <name>net.sourceforge.texlipse.builder.TexlipseBuilder</name>                 <arguments>                 </arguments>             </buildCommand>         </buildSpec>         <natures>             <nature>net.sourceforge.texlipse.builder.TexlipseNature</nature>         </natures>         <linkedResources>             <link>                 <name>.tex</name>                 <type>1</type>                 <location>C:/Program Files (x86)/MiKTeX 2.9/tex/latex/tools/.tex</location>             </link>             <link>                 <name>mybib.bib</name>                 <type>1</type>                 <location>C:/Users/thunder/AppData/Roaming/MiKTeX/2.9/bibtex/bib/ijqc/mybib.bib</location>             </link>         </linkedResources>     </projectDescription>


title: Create a \lstnewenvironment that creates named listings

text: I am using the `\lstnewenvironment` to format a set of code listings in my document.               \lstnewenvironment{code}         {\lstset{language=haskell,         basicstyle=\small\ttfamily,         numbers=left,         numberstyle=\tiny\color{gray},         backgroundcolor=\color{lightgray},         firstnumber=auto         }}         {}      I would like to be able to give all these listings the same name, so that they will be continuously numbered, even if other listings (not using the `code` environment) are scattered in between them. However I cannot add the `name` property using `\lstset`. The top of page 11 of the listings manual indicates that there are certain properties that can only be set as options directly on the listing (and not in `\lstset`). I suspect this is one of those properties. So I would have to do               \begin{code}[name=main]     ...     \end{code}      on every listing. Is there some other way I can indicate that the `code` environment should always carry that `name` option?


title: Does latex have the z-index property

text: May be this is a very strange question. But I found this property is very useful to control the overlap element. So I wonder if latex own this property as HTML div. Do you have any better idea to solve the overlap problem. Sometime, I need to push some element back. **update** :the MWE code                    \documentclass{article}          \usepackage{listings}     \usepackage{courier}     \usepackage{caption}     \usepackage{xcolor}      \usepackage{calc}          \DeclareCaptionFont{white}{\color{white}}     \DeclareCaptionFormat{listing}{\parbox{\textwidth}{\colorbox{gray}{#1#2#3}}}     \captionsetup[lstlisting]{format=listing,     labelfont=white,     textfont=white,     singlelinecheck=false,     margin=0pt,     font={bf,footnotesize}     }          \newlength\tdima     \setlength\tdima{ \fboxsep+\fboxrule}          \lstset{              basicstyle=\small\tt,              tabsize=2,                                extendedchars=true,                       breaklines=true,                         mathescape,              escapeinside={\%*}{*)},                      showspaces=false,                        showtabs=false,                           showstringspaces=false,                    columns=flexible,              xleftmargin=\tdima,              framextopmargin= 10pt,              framexbottommargin=10pt,              float=tp,                            % float setting              frame=single,     }%          \begin{document}     \begin{lstlisting}[caption=overlap]     using namespace std;     int main(void)     {         return 0;     }     \end{lstlisting}     \end{document}                  **Output:** ![enter image description here](http://i.stack.imgur.com/n16ZT.jpg) The caption overlap with the frame. And I want to push the caption back. Let the frame cover it. I don't want to use the \vskip to fine tuning the caption position.


title: How to customize the caption format for \lstinputlisting

text: I know how to customize the caption format of lstlisting environment. But how to do this if I used the `\lstinputlisting` command to import code? My document contain below snippet.               \begin{framed}     \lstinputlisting[label=samplecode,caption=sample code,language=python]{sample.py}     \end{framed}


title: Two table environments side by side

text: I have the follown problem. In order to save space I want to place two different table-environemnts side by side. If I use `subtable` from the `subcaption` package I have the problem that the tables are named 'a) Caption of a' and 'b) Caption of b' and have a additional common caption below and only one common number. But I want to have for example Table 3 and Table 4 side by side without a addtional label a) or b) and without the addtional common caption below both. How can this be done? Here is a minimal - not clean - working example:               \documentclass{IOS-Book-Article}          \usepackage[utf8]{inputenc}     \begin{document}     \begin{table}     \begin{centering}     \begin{minipage}{0.4\textwidth}     \begin{tabular}{|c|r|r|}\hline     Matrix & $err_{global}(A,B) $ & $err_{local}(A,B)$ \\\hline\hline      (a) & & \\     (b) &  & \\     (c) & & \\     (d) & & \\\hline     (e) &  &\\     (f) &  &\\     (g) & & \\     (h) & & \\\hline     \end{tabular}     \caption{This is a ver very very long cpation which overwrites the text on the right side of the paper.}     \label{tab:accuracy}      \end{minipage}     \hfill     \begin{minipage}{0.55\textwidth}     \begin{tabular}{|c|r|r|r|}\hline     Matrix & no OpenMP & OpenMP & speed up\\\hline\hline      (a) & & &\\     (b) & & &\\     (c) & & &\\     (d) & & &\\\hline     (e) & & &\\     (f) & & &\\     (g) & & &\\     (h) & & &\\\hline     \end{tabular}      \caption{Speed up for the parallel solution of the trivial problem, 16     Threads on Dual Xeon E-2690.}       \label{tab:ompdiff}      \end{minipage}     \end{centering}     \end{table}          \end{document}      The `IOS-Book-Article` class is available at http://www.iospress.nl/service/authors/latex-and-word-tools-for-book-authors/ and I am forced to use it.


Basically I get the warning:               Warning: Font shape LGR/mdbch/m/n undefined(Font) using LGR/cmr/m/n instead      in a paragraph with               \textdelta      This latter command has an orange background, color that points to an unrecognized command. ![enter image description here](http://i.stack.imgur.com/gdqoU.png) I know that this is just a warning, bud it would be to know if this would be worth to be solved. If so, how can I solve it? I use TeXstudio and all the completion files have been activated (Options -> Configure TeXstudio -> Completion). I forgot to mention that I am using these packages:               \usepackage[bitstream-charter]{mathdesign}     \usepackage{textgreek}                          % greek letters in text      Thanks in advance for any hints,


title: Display a breve over several letters

text: I'm writting with a very dumb question, buy I haven't been able to find anything regarding this topic, nor think of a more general topic to look into. I'm trying to have a `\breve` which scales according to the argument. As simple as that (however, as difficult for me!). If someone can provide me a solution or a related topic to look into, I would be very grateful. Thanks! Mauro


title: URL doesnt show in Latex

text: I would like to reference an online reference. I am using this code:               @ONLINE{a4,           title  = "Correlation, Confidence Interval, and Sample Size",           author ={millercommamatt},           url    = {http://millercommamatt.com/journal/index.php/2008/02/19},           year   = "2008 (accessed November 25, 2013)"         }      but I see only something like this: ![enter image description here](http://i.stack.imgur.com/S1ZjR.png) but not the URL, what should I do?


title: Inserting matrix/array in Table of Contents

text: I am trying to insert an equation containing matrix inside ToC.               \subsection{Cross Product }     \subsubsection{Cartesian : $\nabla \times A =      \left|     \begin{array}{ccc}      a_x & a_y & a_z\\      \dfrac{\partial}{\partial x} & \dfrac{\partial}{\partial y} & \dfrac{\partial}{\partial z}\\      A_x & A_y & A_z      \end{array}      \right| $}      This gives an Error:               ! Paragraph ended before \@dottedtocline was complete.


title: Bibliography in the TOC of a book class without numbering

text: I'm using a template for a thesis, and it's a book class document. I'm adding bibliography with those two commands:               \bibliography{bibliografia}     \bibliographystyle{apalike}      and it reads the `bibliograpfia.bib` file with bibtex items inside. It does not appear into the Table of Content. So, I have only added `\usepackage[nottoc,numbib]{tocbibind}` at it appears on the TOC. Good! But.. it is numbered as 5 (I have 4 chapters). How to report bibliography without the numbering?


title: Biblatex: Last name only in \footcite

text: How can I drop the authors first name in the following MWE? I have already suppressed the volume and pages of the entry. I just want this to read: Brav and Heaton (2002). Competing Theories of Financial Anomalies. Reveiw of Financial Studies.               \documentclass{beamer}     \usetheme{Boadilla}     \usepackage{chngcntr}     \usepackage{lmodern}          \begingroup\newif\ifmy     \IfFileExists{\jobname.bib}{}{\mytrue}     \ifmy     \begin{filecontents}{\jobname.bib}     @ARTICLE{Brav2002,     author = {Alon Brav and J. B. Heaton},     title = {Competing Theories of Financial Anomalies},     journal = {Reveiw of Financial Studies},     year = {2002},     volume = {15:2},     pages = {575-606},     owner = {User},     timestamp = {2013.11.03}     }     \end{filecontents}     \fi\endgroup          \usepackage[backend=bibtex,citestyle=verbose]{biblatex}     \addbibresource{delete.bib}               \renewbibmacro{in:}{\hspace{-5pt}}     \AtEveryCitekey{\clearfield{pages}\clearfield{volume}}               \begin{document}     \begin{frame}     \frametitle{Stuff famous linguists asked}     \begin{block}{A block}     \begin{enumerate}     \item Is it part?\footcite{Brav2002}     \item More Saussure.     \end{enumerate}     \end{block}     \end{frame}     \end{document}


title: Graphics with bottom border for signature capture

text: I am generating PDF documents using pdflatex with signature images which are pre-converted with Inkscape to pdf. The current template looks like this ({{ tags }} are django template tags):               \noindent \begin{tabular}{l l l}     CUSTOMER: &   \includegraphics[width=6cm,height=1.5cm,keepaspectratio]{{ customer_sig2 }} & Date: {% now "SHORT_DATE_FORMAT" %}\\                              & {{ qb_full_name|upper }}      & \\     REP:          & \includegraphics[width=6cm,height=1.5cm,keepaspectratio]{{ rep_sig2 }}  & Date:  {% now "SHORT_DATE_FORMAT" %}\\                              & {{ qb_rep_name|upper }}     \end{tabular}      Below is rough example of what I currently have and what I need (link): http://i.stack.imgur.com/v1G30.gif The signature images are created as PDF with Inkscape from svg base64 data. It seems Inkscape automatically crops to nearest edges. Thats called from python without many options - `x = Popen(['/usr/bin/inkscape', tmpfile.name, '-- export-pdf=%s' % pdf.name])` How can I best recreate the example image in latex? EDIT: Current signatures after help from Przemyslaw, using the following code (showing bottom and left and right margins of page):               \noindent \begin{tabular}{lc}     CUSTOMER: & \includegraphics[height=1.35cm,width=6.1cm,keepaspectratio]{{ customer_sig2 }}\\     \cline{2-2}      & \multicolumn{1}{r}{\rule{0mm}{4mm} Date: {% now "SHORT_DATE_FORMAT" %} }      \end{tabular}      \hfill \begin{tabular}{lr}      REP: & \includegraphics[height=1.35cm,width=6.5cm,keepaspectratio]{{ rep_sig2 }}\\     \cline{2-2}     & \multicolumn{1}{r}{\rule{0mm}{4mm} Date: {% now "SHORT_DATE_FORMAT" %} }     \end{tabular}      ![SignaturesAfterEdit](http://i.stack.imgur.com/wuxB8.png) FYI - I'm using jSignature plugin to capture the signature.. THe standard box dimension is 378x95px Example of signature being pushed down by height of image (this would have been a fixed width with keep aspect ratio, no fixed height specified, see hrule for rep signature is nudged down a bit): ![SignaturePushedDown](http://i.stack.imgur.com/tVBTP.png)


title: How to use xindy with XeTeX/LuaTeX?

text: According to Xindy revisited: Multi-lingual index creation for the UTF-8 age (TUGboat), “if one has a raw index file that was produced by [XeTeX], one can use xindy; it will ‘just work’.” Unfortunately I can't get it to “just work”. How can I use Xindy together with XeLaTeX or LuaLaTeX? * * * An example LaTeX file:               \documentclass{article}     \makeindex          \begin{document}     start     \index{a}\index{b}\index{ä}\index{ü}     end     \end{document}      The LaTeX Companion (2ed) then tells me to run               texindy -L german-duden test.idx      However when I do this all umlauts are sorted under O.


title: graphics issue-- wrapfig and floatflt packages

text: I can't seem to get a graphic included without including the path. Can somebody help me with this?               \begin{figure}[h]         \includegraphics[width=0.35\textwidth]{C:/Users/zach/Documents/My Dropbox/AMATH 383/fig1.pdf}         \label{fig:fig1}     \end{figure}          \usepackage{wrapfig}     I've also tried:     \begin{wrapfig}[t]{0.5\textwidth}      \begin{center}         \includegraphics[width=0.35\textwidth]{fig1.pdf}         \label{fig:fig1}      \end{center}     \end{wrapfig}


title: Wrong section numbers when using background package

text: I am using `background` package to add current section number to the background of each page. But it seems the section number is wrong. The MWE is as follows:               \documentclass[12pt]{article}     \usepackage{lipsum}     \usepackage{background}     \SetBgContents{\arabic{section}}     \SetBgAngle{0}     \begin{document}     \section{Name}     \lipsum[6]     \section{Name}     \lipsum[8]     \section{Name}     \lipsum[4]     \section{Name}     \lipsum[6]     \section{Name}     \lipsum[8]     \section{Name}     \lipsum[4]     \section{Name}     \lipsum[6]     \section{Name}     \lipsum[8]     \section{Name}     \lipsum[4]     \end{document}      The section numbers in the first and second pages should be 3 and 6 respectively, but it shows 4 and 7. What is the problems with it? ![enter image description here](http://i.stack.imgur.com/cxIc8.png)


title: How do I change the $\xi$ symbol in mathpazo

text: I don't like the `$\xi$` symbol that `mathpazo` comes with, so I want to go back to Computer Modern for that symbol alone. How can I do this?


title: divide table cells by a certain amount

text: I made a mistake in the values that i put in the table. I need to divide all the values by 105. Is there a method where i can do it without having to replace this with a completely new table ?                % Table generated by Excel2LaTeX from sheet 'Sheet1'         \begin{table}[htbp]           \centering           \caption{Add caption}             \begin{tabular}{rrrr}             \toprule                   & A     & B     & C \\             \midrule             1     & 122   & 133   & 156 \\             2     & 112   & 135   & 155 \\             3     & 150   & 139   & 158 \\             4     & 145   & 135   & 159 \\             5     & 150   & 130   & 200 \\             \bottomrule             \end{tabular}%           \label{tab:addlabel}%         \end{table}%


title: Citing author's full name in biblatex

text: How can I cite an authors full name (= first name + last name) in `biblatex`?               @book{Gladwell2005,         author = {Gladwell, Malcolm},         address = {New York, NY},         publisher = {Back Bay Books},         title = {Blink: The Power of Thinking Without Thinking},         year = {2005},     }      I would then like to cite the book with Malcolm Gladwell's full name. So what I'm looking for is some sort of `\citefullauthorname` macro.


title: Heading being duplicated

text: I have a `thesis.tex` file that is set up as               \documentclass{report}     %packages     \usepackage{thesis_uvm}     %maketitle etc     \begin{document}     %abstract etc     %chapters     \nocite{*}     \bibliographystyle{chicago}     \bibliography{example}     \end{document}      The `chicago.sty` and `.bst` as well as the example can be found here. The `thesis_uvm` style is               %% UVM Thesis Style     %% dvanhorn@cs.uvm.edu          \typeout{UVM Thesis Style, Version 0.1}     \typeout{Copyright (c) 2005 David Van Horn}     \typeout{Licensed under the Academic Free License version 2.0}          \usepackage{setspace}     \usepackage{varwidth}     \usepackage{chicago}     \usepackage{fancyhdr}     \usepackage{ifpdf}     \ifpdf     \setlength{\pdfpagewidth}{8.5in}     \setlength{\pdfpageheight}{11in}     \else     \fi          \usepackage{tikz}     \usepackage{titletoc}     \usepackage{upquote}     \usepackage{times}     \usepackage{appendix}     \usepackage{etoolbox}     \usepackage{lmodern}     \usepackage{framed}                    \setlength{\paperwidth}{8.5in}     \setlength{\paperheight}{11in}               \setlength{\oddsidemargin}{0.5in}     \setlength{\topmargin}{0in}     \setlength{\textwidth}{6in}     \setlength{\textheight}{8.06in}               \newenvironment{references}[1]{       % \addcontentsline{toc}{section}{References}       \singlespacing       \section{References}       \begin{list}         {[\arabic{enumi}]}{\settowidth\labelwidth{#1}           \leftmargin\labelwidth           \advance\leftmargin\labelsep           \advance\leftmargin\bibindent           \itemindent -\bibindent           \listparindent \itemindent           \parsep \z@           \usecounter{enumi}}         \def\newblock{}         \sloppy         \sfcode`\.=1000\relax       }{       \end{list}     }          \renewenvironment{thebibliography}[1]{       \newpage       %\greenblock{Bibliography}       \addcontentsline{toc}{section}{\refname}       \singlespacing       \section*{\refname\@mkboth         {\uppercase{\refname}}{\uppercase{\refname}}}       \begin{list}         {[\arabic{enumi}]}{\settowidth\labelwidth{#1}           \leftmargin\labelwidth           \advance\leftmargin\labelsep           \advance\leftmargin\bibindent           \itemindent -\bibindent           \listparindent \itemindent           \parsep \z@           \usecounter{enumi}}         \def\newblock{}         \sloppy         \sfcode`\.=1000\relax       }{       \end{list}       \newpage     }               % ===============================================     % don't split bibliography entries between pages     % ===============================================     \makeatletter     \AtBeginEnvironment{thebibliography}{%       \clubpenalty10000       \@clubpenalty \clubpenalty       \widowpenalty10000}     \makeatother      ![enter image description here](http://i.stack.imgur.com/l8w60.png)


title: Computer Modern in XeLaTeX

text: I love XeLaTeX for things like               $a≠b$ ⇔ $ a⊧a↑Ω$      All days before I used DejaVu fonts and Asana-Math for unicode-math. But today I have to get visual compability with LaTeX. So I installed Computer Modern Unicode, and all close to good, but thinks like above do not displayed in non- math mode. Yes, I know, Computer Modern is no longer modern at all. So my question -- is it any other font, that looks close and retains power of unicode? EDIT: Probably, I was not clean enough. I CAN use unicode arrows in math-mode. I can do it in normal mode with DejaVu, but not with Modern Computer.


title: spreadtab insert multiple values to a cell

text: \begin{spreadtab}{{tabular}{rrrr}}     \toprule                    & @A              & @B            & @C         \\     \midrule             1     & 33 122   & 133/\Factor   & 156/\Factor \\             2     & 66 112   & 135/\Factor   & 155/\Factor \\             3     & 77 150   & 139/\Factor   & 158/\Factor \\             4     & 55 145   & 135/\Factor   & 159/\Factor \\             5     & 44 150   & 130/\Factor   & 200/\Factor \\     \bottomrule     \end{spreadtab}      I receive this error FP Evaluation results in multiple values! Is there a trick that i can use to insert multiple values ?


title: Is there a package that can automatically sort items based on tags?

text: For example, I write a problem booklet with a ton of problems. I don't want to use a database. In the input file, I write as follows.               \pro{geometry}     Find the area of ...     \endpro          \pro{trigonometry}     The angle ...     \endpro          \pro{algebra}     Prove that $x^2+1=0$ has no real solution.     \endpro          \pro{geometry}     Find the radius ...     \endpro      But the render output in PDF, the problems are grouped based on the tags. For example, **Algebra:**   1. Prove that $x^2+1=0$ has no real solution. **Geometry:**   1. Find the area of ...   2. Find the radius ...  **Trigonometry:**   1. The angle ...


title: Graphics confusion

text: I am compiling a latex file like this:               pdflatex path/to/file.tex      There is a png in the same directory as the `.tex` file: `path/to/img.png` I get an error, presumably because pdflatex is looking in the directory from which I am calling `pdflatex`. I can't put the directory of the `.tex` file and the png in my `\graphicspath` statement because the directory is being dynamically generated with an md5 hash - i.e., I don't know it ahead of time. Is there any other way to tell pdflatex to look in the same directory as the `.tex` file?


title: Selected references without hyperlink

text: When using the `hyperref` package, is it possible to tell LaTeX not to create a link for some references? In my case the page number is displayed in the footer in               \fancyhf[FC]{\thepage\ of \pageref{pg:end}}      which is what I want. Unfortunately every single page in the document then has a link to the final page, which is a bit silly. Any ideas on how to fix that?


title: bibtex error, no bibliography attached

text: I'm using pdflatex with texworks and vim latex-suite. I'm trying to append a bibliography to the document using               \bibliographystyle{plain}     \bibliography{Graph_bib}      and the .bib file formated as:               @inproceedings{Kovar:2008:MG:1401132.1401202,      author = {Kovar, Lucas and Gleicher, Michael and Pighin, Fr\'{e}d\'{e}ric},      title = {Motion graphs},      booktitle = {ACM SIGGRAPH 2008 classes},      series = {SIGGRAPH '08},      year = {2008},      location = {Los Angeles, California},      pages = {51:1--51:10},      articleno = {51},      numpages = {10},      url = {http://doi.acm.org/10.1145/1401132.1401202},      doi = {http://doi.acm.org/10.1145/1401132.1401202},      acmid = {1401202},      publisher = {ACM},      address = {New York, NY, USA},      keywords = {animation with constraints, motion capture, motion synthesis}     }                     @inproceedings{Witkin:1988:SC:54852.378507,      author = {Witkin, Andrew and Kass, Michael},      title = {Spacetime constraints},      booktitle = {Proceedings of the 15th annual conference on Computer graphics and interactive techniques},      series = {SIGGRAPH '88},      year = {1988},      isbn = {0-89791-275-6},      pages = {159--168},      numpages = {10},      url = {http://doi.acm.org/10.1145/54852.378507},      doi = {http://doi.acm.org/10.1145/54852.378507},      acmid = {378507},      publisher = {ACM},      address = {New York, NY, USA},      keywords = {animation, constraints}     }       ... etc, however nothing appears when I compile the document to pdf. Any idea as to what's wrong here? Thanks


title: Centering in tabular does not work

text: The following is a minimal example of a table I am defining. The first row (`$v_1$` and `$v_2$`) are not centered, but the subsequent rows are. What am I doing wrong?               \documentclass{article}     \usepackage{array}          \begin{document}         \begin{tabular}{| m{1cm} | m{1cm} |}              \multicolumn{2}{c}{\footnotesize Subgraph Matches} \\ \hline             $v_{1}$ & $v_{2}$ \\ \hline             \{005\} & \{006\} \\ \hline             \{007\} & \{008\} \\ \hline         \end{tabular}     \end{document}


title: use the coordinates of an axis tip with pgf plot

text: here's a drawing I just made (the sine function are replaced by external datas)               \documentclass[12pt]{article}     \usepackage{pgfplots}     \usepackage{tikz}     \usetikzlibrary{through,calc,arrows,decorations.pathmorphing,backgrounds,positioning,fit}               \begin{document}     \begin{figure}      \begin{tikzpicture}      \def\decalx{-0.8};      \def\decaly{-0.9};                \foreach \pas in {340,320,...,0}      {     \begin{scope}[xshift=\decalx*(340-\pas),yshift=\decaly*(340-\pas)]         \begin{axis}[xmax=600,ymin=-1,ymax=1,xtick=\empty,ytick=\empty,axis x line=middle,axis y line = left]            \addplot[fill=black!5!white,fill opacity=0.5, domain=0:360] expression {sin(\pas/100*\x)};         \end{axis}         \end{scope}         }          \begin{scope}[xshift=-2.8cm,yshift=-10.8cm]     \begin{axis}[,x={(-\decalx,-\decaly)},anchor=south west,xmin=0,xticklabel style={xshift=5},xtick={90,270},axis x line=middle,hide y axis]     \addplot[blue,samples=19,domain=0:360,error bars/.cd, y dir=minus,y fixed relative=1, error mark=none, error bar style={dotted}]  {sin(x)};     \end{axis}     \end{scope}     \end{tikzpicture}     \end{figure}          \end{document}      The thing is the blue curve is placed by trial and error, depending on the width, height, y min and max values and a bunch of other stuffs... Is there any way to extract the coordinate of the foreground plot's x axis so that I can draw the final blue chart from it ??? the hard part is probably that this blue curved is skewed... I've been doing this by hand so far and I can definitely keep on doing it, it's just that I have to make tens of these, and it takes forever to compile with my 300 points data tables... thanks !!!! //EDIT/// If I need a ymin or ymax parameter Ant's solution doesn't work anymore...               \documentclass[12pt]{article}     \usepackage{pgfplots}     \usepackage{tikz}     \usetikzlibrary{through,calc,arrows,decorations.pathmorphing,backgrounds,positioning,fit}               \begin{document}     \begin{figure}      \begin{tikzpicture}      \def\decalx{-0.6};      \def\decaly{-0.9};     \def\ymin{-0.5};           \foreach \pas in {340,320,...,0}      {     \begin{scope}[xshift=\decalx*(340-\pas),yshift=\decaly*(340-\pas)]         \begin{axis}[xmax=600,ymin=\ymin,ymax=1,xtick=\empty,ytick=\empty,axis x line=middle,axis y line = left]            \addplot[fill=black!5!white,fill opacity=0.5, domain=0:360] expression {sin(\pas/100*\x)};         \end{axis}         \end{scope}         }                   \begin{scope}[xshift=\decalx*(340),yshift=\decaly*(340)]         \begin{axis}[xmax=600,ymin=\ymin,ymax=1,xtick=\empty,ytick=\empty,axis x line=middle,axis y line = left]            \addplot[fill=black!5!white,fill opacity=0.5, domain=0:360]            expression {0};            \node (start blue axis here) at (rel axis cs:1, 0) {};          \end{axis}       \end{scope}                 \begin{axis}[at=(start blue axis here), x={(-\decalx,-\decaly)},anchor=south         west,xmin=0,xticklabel style={xshift=5},xtick={90,270},axis x         line=middle,hide y axis]         \addplot[blue,samples=19,domain=0:360,error bars/.cd, y         dir=minus,y fixed relative=1, error mark=none, error bar         style={dotted}] {sin(x)};     \end{axis}          \end{tikzpicture}     \end{figure}          \end{document}


title: Aligning twice in eqnarray

text: I do have the following equations wich are aligned on the equal sign. Would it be possible to also align them on the R?               \begin{eqnarray}       \delta O_{1x} &=& R \, ^E\omega_x \, \delta t \nonumber \\       \delta O_{1y} &=& - R \, ^E\omega_y \, \delta t \nonumber     \end{eqnarray}      Thanks for answering.


title: using a restatable before it is stated

text: This question is related to the question at Recalling a theorem, which uses the thmtools and thm-restate packages and the restatable environment to define a theorem that can be re-stated later on. Is it possible to refer to something that is defined later on? In an earlier chapter, I have some discussion that is referring to a definition that is defined properly in a later chapter, but I can't reuse the definition before it is defined... For example, when I do the following               \documentclass{article}     \usepackage{thmtools}      \usepackage{thm-restate}          \declaretheorem[name=Theorem,numberwithin=section]{thm}          \begin{document}          \section{First}          \goldbach*          \begin{restatable}[Goldbach's conjecture]{thm}{goldbach}     \label{thm:goldbach}     Every even integer greater than 2 can be expressed as the sum of two primes.     \end{restatable}          \end{document}       I get an error -               undefined control sequence \goldbach      Is there any way to export these definitions so that they can be referred to before they are actually defined...?


title: Tall curly brace

text: I would like to put a tall (long) left curly bracket on the left side of the following:               \documentclass[12pt]{article}          \begin{document}          \noindent     c: $\{$1, ..., n$\}$ $\rightarrow$ $\{$1, ..., n$\}$, such that          \hspace{20 mm}          \noindent     c($a_i$) = $a_{i+1}$ for 1 $\le$ $i$ < $l$          \hspace{20 mm}          \noindent     c($a_l$) = $a_1$               \end{document}      Please let me know if you can help. Thanks!


title: Emphasizing some parts of string in lstlisting

text: I need to stress out some parts of string in `lstlisting`. I tried with `\emph{}`, but I got the verbatim result. Is there any way to that?               \begin{lstlisting}[frame=single]     Array1: 78 54 31 54 92 86 23 54 65 54 54 38 100 92 86 59 54 70 \emph{59 54 91 65 54 31 54 31 54 70 100 91 92 55 70 54 51 61 91 65 59 54 38 54 81 61 92 59 54 38 54 96 61 92} 59 54 38 54 81 54 92 90 54 92 88 36 65 59 54 38 54 101 61 92 59 54 38 54 96 61 92 59 54 38 54 101 54 92 90 54 92 88 88 86 98 115 54 70 54 66 89 54 91 65 54 54 38 75 54 70 91 92 59 54 38 54 31 54 70 61 91 92 54 31 54 31 54 70 54 91 92 88 88          Array2: 59 54 38 54 81 61 92 59 54 38 54 96 61 92 59 54 38 54 81 54 92 90 54 92      \end{lstlisting}


title: longtable on dedicated tables page

text: I have written a document that includes many tables, so I have chosen to place all tables at the end of the document, invoked via the [p] option in the table environment. I now have to include a long table via the longtable environment, and am wondering if there is an equivalent form of the [p] option here (or at least some workaround).


title: How can I generate a PS and a PDF file from a single .tex file?

text: I am submitting a paper for a conference and it requires me to send the .tex source along with the PS and PDF files. I have no problem generating the PDF file; I simply use the pdflatex. However, since my .tex makes use of the PNG, JPEG and PDF figures, I can't use latex + dvips to create the PS file. How can I solve this problem? Note that converting all my figures to PS won't solve the problem, because I would need two different .tex files since the includegraphics commands would be different.


title: How to center a verse horizontally

text: I have a Sanskrit Verse that I want to appear at the center of the page. I am using `verse` environment as shown below.               \begin{verse}     तपः स्वाध्याय निरतम् तपस्वी वाग्विदाम् वरम् | \\     नारदम् परिपप्रच्छ वाल्मीकिः मुनि पुंगवम् ||     \end{verse}      This does not appear at the center of the page, it appears more to the left of the page. Is there a way to make it appear at the center. I attached the screenshot of the output. ![enter image description here](http://i.stack.imgur.com/6lfGk.png)


title: New command for creating long tables

text: I am new to Tex and using below code to create a long table. I am creating a book using this where each verse's words are explained in the table format shown below. my document has large number of such tables.               \begin{longtable}{p{1.5cm}p{0.05cm}p{3.5cm}|p{1.5cm}p{0.05cm}p{3.5cm}|p{1.5cm}p{0.05cm}p{3.5cm}}          \end{longtable}      I was wondering if there is a way to shorten it with 1.5cm & 3.5 cm being variables and 0.05 cm as constant cells. This is just a flexibility for later editing. I tried to write something like this.               \newcommand{\ltb}[6]{\begin{longtable}{p{#1cm}p{0.05cm}p{{#2}cm}|p{{#3}cm}p{0.05cm}p{{#4}cm}|p{{#5}cm}p{0.05cm}p{{#6}cm}}}      but could not get any success. I was not sure what I was doing either, just a try. I am attaching a screenshot of how the table looks like. thanks for your help![enter image description here](http://i.stack.imgur.com/4t97u.png)


title: Get a preamble in index with makeindex

text: First of all, I'm not very good with Ubuntu, and only ok with `LaTeX`. I'm currently finishing to write my thesis, and have one big question. I made two indices using `multind`. But I can't figure out how to write a preamble to the index, i.e. something between the title `Index` and the beginning of the indexation. I tried to install idxlayout, and imakeidx, but both of them do not work. I should somehow get new packages, but installing them in mu current tex folder do not work, and I don't know how to proceed in another way So : Does anyone know how to write a preamble in `multind` ? I can give a MWE but I don't think this would help in this case ...                \documentclass{article}          \usepackage{splitidx}          \makeindex          \newindex[General Index]{idx}          \newindex[Index of Animals]{ani}          \newindex[Index of Fruits]{fru}          \newindex[Index of Vegetables]{veg} % ... 4th index               \begin{document}      Apples\sindex[fru]{apple} and oranges\sindex[fru]{orange} are fruits\sindex{fruits}.      Tomatoes\sindex[veg]{tomato} are vegetables\index{vegetables}.      Cats\sindex[ani]{cat} are animals\sindex[idx]{animals}.          \printindex*          \end{document}      After this, when I run "splitidx.pl" as indicated, it's just not found ... I works perfectly now ! It still have one question left : My text is something like 600 pages, with thousands of index references, and I fear a simple replacement of \index{} by \sindex[] could destroy stuff. I saw in another answer you made that you suggested :               \let\imkiindex\index     \renewcommand\index[1]{\imkiindex[#1]}      but that would only affect the "[]" -> "{}" and not the sindex part ? Would this work :               \let\imkiindex\index     \renewcommand\sindex[1]{\imkiindex[#1]} ?


title: Centering figure consisting of subfigures

text: I currently have a graph that uses subfigures as follows:               \begin{figure}[!htbp]                     \centering             \begin{subfigure}[b]{0.3\textwidth}                     \centering                     \includegraphics[width=3.5cm]{figure1.eps}                     \caption{}             \end{subfigure}%             \begin{subfigure}[b]{0.3\textwidth}                     \centering                     \includegraphics[width=3.5cm]{figure2.eps}                     \caption{}             \end{subfigure}%                    \begin{subfigure}[b]{0.3\textwidth}                     \centering                     \includegraphics[width=3.5cm]{figure3.eps}                     \caption{}             \end{subfigure}%             \begin{subfigure}[b]{0.3\textwidth}                     \centering                     \includegraphics[width=3.5cm]{figure4.eps}                     \caption{}             \end{subfigure}%             \FigureCaptionOpt{caption}{captionCopy}     \end{figure}      As you probably noticed, it overflows the text, since each of the images is `0.3\textwidth` and there are 4 images. Now, the whole thing is not centered, instead, it is aligned with the left margin and it overflows the right margin. Essentially, I want to shift it to the left, so that it overflows both margins by the same amount, while maintaining the sizes I specified in the command above.


title: Where is shapes.gates.ee.IEC referred to in the pgfmanual?

text: I'm trying to create my own circuit elements for use with the `circuits.ee.IEC` TiKZ library, using some methods described (in other contexts) in the pgf manual (page 314, chapter 29.4.9). The first thing that happens in that chapter, is that the manual introduces a library called `shapes.gates.ee.IEC`, and suggests I import it like this:               \usetikzlibrary{shapes.gates.ee.IEC}      However, when I try to compile that, my XeLaTeX states that               >! I can't find file `tikzlibraryshapes.gates.code.tex'.       <argument> ...nput tikzlibrary\pgf@temp .code.tex        \catcode `\@ =\csname tikz...       l.7 \usetikzlibrary{shapes.gates.ee.IEC}      and compilation fails. I can import `shapes` without problems, but if I add anything more from the name it fails again (I've tried `shapes.gates`, `shapes.gates.ee` and `shapes.gates.ee.IEC` without success). And when using `shapes` the shape I'm trying to use (`generic circle IEC`) isn't defined. How do I get this working?


title: Generate HTML footnotes from in-text citations?

text: I want to automatically create footnotes and ref-links (forward & _backward_ if possible) to citations I add from reference managers (e.g. Sente, Mendeley, Papers). The best example are wiki-style numbered citations and footnotes with multiple back links. Before processing, my content looks like this: > This is some text that has a reference. {Jones, 2005} And some more text > with another reference {Smith, 2009} and a reference equal to the first > {Jones, 2005}. I'd like for a script or a software command to be smart enough to convert this to: > This is some text that has a reference. [1] And some more text with another > reference [2] and a reference equal to the first [1]. > >   1. Jones, Source 1, 2005 [return to position 1 or 3] > >   2. Smith, Source 2, 2009 [return to position 2] > > The > {Jones, 2005} key is what reference managers typically insert to refer to the entry in the database. When a document is scanned for keys, the ref managers output ordered in-text citations and bibliography in plain text, but I am not able to export into HTML with lists and links the way the Wikimedia tools can. Obviously, adding HTML superscript formatting, id's and links manually for each citation and reference is painful and error-prone. I've tried Multimarkdown and Pandoc, but none provides a solution for multiple citations to the same footnote/reference (they generate new footnotes for each citation!) and proper back links to the last reading point (they only back link to the first citation to the same reference). **Is there a script or a reference manager that can do this?**