title: tkz-euclide, define points outside of tikzpicture

text: Is it possible to define points in tkz-euclide outside of the tikzpicture environment? For example I would like to have something like this exercise in elementary geometry:               Exercise:          Consider the triangle $\Delta$ defined by the points \definePoint{A,2,3},      \definePoint{B,10,3} and \definePoint{C,-1,4}.      Draw the inscribed circle and the circumscribed circle of this triangle.          Solution:          \begin{tikzpicture}     % The triangle     %A,B,C are defined in the exercise above     \tkzDrawSegments(A,B B,C C,A)          % circumcircle     \tkzCircumCenter(A,B,C)\tkzGetPoint{G}     \tkzDrawPoint(G)     \tkzDrawCircle(G,A)          % incircle     \tkzDefCircle[in](A,B,C)\tkzGetPoint{I}\tkzGetLength{rIN}     \tkzDrawPoint(I)     \tkzDrawCircle[R](I,\rIN pt)          \tkzLabelPoints[below](B)     \tkzLabelPoints[below left](C)     \tkzLabelPoints[above left](A,I,G)     \end{tikzpicture}      The point is, that if I modify the coordinates of the Points A,B,C in the question, the points in the solution should be modified too.


title: extra alignment tab error

text: I just started using LaTeX last night, and I was trying to copy a general format I found on wikibooks. I wrote a python script to get 30 different stocks and their quotes, and I made it generate this `.tex` file.               \documentclass{article}     \usepackage[english]{babel}     \begin{document}     \title{PF30 Index}          \begin{tabular}{ l | l | l | l | l | l }          Name & SYM & MKT & Close & Open & Change \\          \hline          Advanced Micro De & AMD & NYSE & 2.6014 & 2.62 & -1.46% \\          Apple Inc & AAPL & NasdaqNM & 487.59 & 498.04 & -2.82% \\          AT and T Inc & T & NYSE & 33.70 & 33.98 & -0.94% \\          Bank of America C & BAC & NYSE & 11.465 & 11.3799 & -0.04% \\          Cemex, SAB de  & CX & NYSE & 10.235 & 10.36 & -1.49% \\          Citigroup, Inc C & C & NYSE & 42.381 & 41.80 & +0.38% \\          Coca-Cola Company & KO & NYSE & 37.18 & 36.99 & +0.51% \\          Dell Inc & DELL & NasdaqNM & 12.95 & 12.72 & +5.37% \\          Facebook, Inc & FB & NasdaqNM & 30.52 & 31.71 & -1.38% \\          Ford Motor Compan & F & NYSE & 14.225 & 13.91 & +1.68% \\          General Electric  & GE & NYSE & 21.17 & 21.04 & +0.24% \\          General Motors Co & GM & NYSE & 30.59 & 30.1497 & +0.86% \\          Google Inc & GOOG & NasdaqNM & 723.38 & 719.33 & +0.02% \\          Groupon, Inc & GRPN & NasdaqNM & 5.225 & 5.27 & -0.85% \\          Hewlett-Packard C & HPQ & NYSE & 16.5399 & 16.82 & -2.42% \\          Home Depot, Inc  & HD & NYSE & 63.72 & 63.50 & +0.38% \\          International Bus & IBM & NYSE & 191.54 & 191.31 & -0.56% \\          Intel Corporation & INTC & NasdaqNM & 21.8799 & 21.95 & -0.54% \\          Lowe's Companies, & LOW & NYSE & 35.855 & 35.45 & +1.34% \\          Mastercard Incorp & MA & NYSE & 521.07 & 521.69 & -0.47% \\          McDonald's Corpor & MCD & NYSE & 91.20 & 91.05 & -0.36% \\          Microsoft Corpora & MSFT & NasdaqNM & 27.055 & 26.84 & +0.61% \\          Netflix, Inc & NFLX & NasdaqNM & 101.79 & 103.25 & -1.60% \\          Pepsico, Inc Com & PEP & NYSE & 71.47 & 71.10 & +0.25% \\          Procter  and  Gamble  & PG & NYSE & 69.74 & 69.24 & +0.16% \\          Visa Inc & V & NYSE & 159.67 & 159.66 & -0.61% \\          Walt Disney Compa & DIS & NYSE & 50.88 & 50.50 & +0.57% \\          Wells Fargo  and  Com & WFC & NYSE & 34.985 & 34.64 & +0.62% \\          Yahoo! Inc & YHOO & NasdaqNM & 19.4456 & 19.30 & +0.08% \\          Yum! Brands, Inc & YUM & NYSE & 66.27 & 66.02 & +0.18% \\          \end{tabular}     \end{center}      The error TeXworks is giving me is `! Extra alignment tab has been changed to \cr.` when it gets to the line for Apple Inc. What can I do to fix this? It doesn't look as if I'm adding more than six columns, but from what I've read on the internet, that's what the error is for this line.


title: Convert TeX to non-TeX and back

text: I wrote my thesis in LaTeX and now my advisor would like to go in and manually make changes. I had assumed he would mark up a pdf or printed document, and then hand those changes to me to make, but he insists on actually making the changes himself. However, he does not know how to use LaTeX and does not want to deal with editing a plain text file with all the LaTeX markup everywhere. What is the best way to convert my LaTeX document into something he can edit (preferably something he can open in Microsoft Word) so that it will still be in a format that I can easily convert it back into a LaTeX document?


title: Restore default \raggedbottom footnote behaviour when using one of the Koma script classes

text: Using the standard LaTeX classes (article,...), footnotes are set directly below the text if the page is in `\raggedbottom` instead of `\flushbottom` mode. The KOMA script classes change this behaviour, i.e. the footnote is placed at the very bottom of the page even if the page contains only a few lines of text. Here is a MWE for LaTeX article:               \documentclass{article}     \usepackage[a6paper,margin=1cm,bottom=2cm]{geometry}     \raggedbottom     \title{\LaTeX{} article}     \begin{document}         \maketitle         A very short text.\footnote{A footnote.}         \pagebreak     \end{document}      and here for KOMA-Script scrartcl:               \documentclass{scrartcl}     \usepackage[a6paper,margin=1cm,bottom=2cm]{geometry}     \raggedbottom     \title{KOMA script scrartcl}     \begin{document}         \maketitle         A very short text.\footnote{A footnote.}         \pagebreak     \end{document}      ![MWE LaTeX article](http://i.stack.imgur.com/teTA9.png) ![MWE KOMA Script scrartcl](http://i.stack.imgur.com/Zl35g.png) Is it possible to restore the default behaviour (i.e. footnotes right below the text) without breaking the other footnote-related Koma script commands like `\deffootnote`, `\deffootnotemark` and `\setfootnoterule`?


title: Minted inside tabular

text: I know this question has been asked before, but it didn't quite solve my issue. (How to embed a minted environment inside a tabular environment?) The described workaround (bringing `\end{minted}` to a single line) does work, however only if the code comes _second_. When I try to put the minted-section into the first column I get this error:               ! LaTeX Error: Something's wrong--perhaps a missing \item.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... \begin{Verbatim}[commandchars=\\\{\}, ]      I used this code:               \begin{tabular}{rp{0.5\textwidth}}      \begin{minted}{c}     int main() {       printf("hello, world");       return 0;     }     \end{minted}     & testing     \end{tabular}      What can I do? Thank you


title: Quotes missing around title of arXiv papers (biblatex + biber)

text: I am using biblatex and biber. Here is a sample LaTeX file.               \documentclass[11pt]{article}     \usepackage[backend=biber,firstinits,style=numeric-comp,maxnames=99]{biblatex}     \bibliography{longnames.bib,test.bib}          \DefineBibliographyStrings{english}{%       references = {Selected Publications},      }     \begin{document}          Ref.~\cite{CJS:2013} and~\cite{BCW:2012}.          \printbibliography     \end{document}      The reference BCW:2012 looks like this in the bib file.               @online{BCW:2012,       author    = {B and                    C and                    W},       title     = {Musings and machinations},       eprinttype   = {arXiv},       eprint    = {1234.5678},       eprintclass = {cs.DS},       year      = {2012}     }      The problem is that the title "Musings and machinations" doesn't have quotes round it when rendered whereas all other (non-arXiv) papers do. What am I doing wrong? I am using biber version 0.9.9.


title: Colored sub and super-scripts are misaligned

text: The title basically describes the problem. Here is a minimal example:               \documentclass{article}     \usepackage{xcolor}          \begin{document}        $$X_{\color{red}{135}}^{\color{cyan}{345}}$$     \end{document}      When I compile this, the 135 is down and to the left of the 345, rather than directly below it. I get the same issue when I use `color` instead of `xcolor`. Any fixes?


title: How does italic correction work?

text: How does italic correction work?   1. Where are the correction values looked up?   2. Why is it not automatically included?   3. What is the effect of multiple `\/` or `\/` in odd places such as between letters or after a space? (There is a related question about italic correction as described in the TeXbook.)


title: Latex Beamer template setting with a red frametitle background and the logo at top left of every frame

text: I'm quite new with Beamer. But when I used it last week, I just couldn't quit. I have a presentation the day after tomorrow, I have already my slides done with beamer. However, my chief hopes that goes with the template of my laboratory, which is available in PPT, not in beamer. I'm trying really hard to apply those template features with beamer, the problem is I don't have much time and I didn't really get there. **Sorry I have no enough "reputations" to add an image.** I used no predefined theme and I set the frametitle like this:               \setbeamertemplate{frametitle}     {\vskip4pt       \leavevmode       \hbox{%         \begin{beamercolorbox}[wd=\paperwidth,ht=2ex,dp=1ex]{frametitle}%           \begin{textblock*}{.12\textwidth}(0pt,-6pt)             \includegraphics[width=\textwidth]{images/logo.pdf}           \end{textblock*}           \hspace*{40pt}\large\insertframetitle         \end{beamercolorbox}       }%     }      Actually, what I really want is quite resemble a **Madrid** theme. I want a logo at top left corner of each frame followed by the title written in white with a red background. I was planning to modify the **Madrid** theme so it looks like the content frames. The title page is a little bit different. It has a relatively(30%) wide sidebar in the left with a huge logo at top and a line of website address at bottom. I know it might be difficult to get rid of the subtitles in the sidebar. So I can do it separately in PPT and bond it to other frames. I have the high resolution logo image. Now I really need your help. Maybe that's just few lines of setting which would turn out to be my saver. Thank you for your help.


title: Adding color to table columns with alignment

text: I am trying to add color to certain columns in a table for highlighting purposes. In said columns, I have positioned the data presented to be aligned by the decimal point. However, when adding color to these columns, this alignment is disregarded. Any thoughts about how to restore this alignment? I have provided MWE below.               \documentclass{article}          \usepackage{graphicx,xcolor,colortbl}          \definecolor{Gray}{gray}{0.85}     \definecolor{LightCyan}{rgb}{0.88,1,1}          \setlength{\columnseprule}{0.8pt}          \begin{document}      \newcolumntype{g}{>{\columncolor{Gray}}c}          \begin{table}     \begin{tabular}{l| g@{,}g r@{.}l g@{,}g r@{.}l}     \hline     \multicolumn{1}{c}{\cellcolor{LightCyan}} &\multicolumn{2}{c}{\cellcolor{LightCyan}x}&\multicolumn{2}{c}{\cellcolor{LightCyan}y}&\multicolumn{2}{c}{\cellcolor{LightCyan}w}&\multicolumn{2}{c}{\cellcolor{LightCyan}z}\\     \hline     variable 1 &-0&54&&&1&64&&\\     variable 2&&&&&&&&\\\hline     \end{tabular}     \end{table}          \end{document}


title: How to use macros in command \dirtree of package dirtree?

text: I want to print a tree structure and started using the package dirtree (v0.32, see Making a (simple) directory tree). Following calls work smooth:               \dirtree{.1 root. .2 child1. .2 child2. .3 childofchild2. }          \def\mytree{{.1 root. .2 child1. .2 child2. .3 childofchild2. }}     \expandafter\dirtree\mytree{}      `\dirtree` will draw a tree representation like               root      |-- child1      |-- child2           |-- child of child2      But a problem arises if the generation of the tree data is using some more complex macro.               \documentclass{article}     \usepackage{dirtree}     % edited to remove the use of counters     %\newcounter{qtreedepth}     %\def\nodeC#1{\addtocounter{qtreedepth}{1}#1\addtocounter{qtreedepth}{-1}}     %\renewcommand{\item}[1]{.\arabic{qtreedepth} #1. }     \def\nodeC#1{{#1}}     \newcommand{\myitem}[1]{.1 #1. }          \begin{document}     \nodeC{\myitem{root}\nodeC{\myitem{child}}}          \expandafter\dirtree{\nodeC{\myitem{root}\nodeC{\myitem{child}}}}     \end{document}      The error message:               ! Use of \next doesn't match its definition.     <argument> \myitem                         {root}\nodeC {\myitem {child}}     l.11 ...nodeC{\myitem{root}\nodeC{\myitem{child}}}      Is there something wrong with the expansion? Is the usage of `\expandafter` correct? Any idea what is wrong? (Meanwhile I discovered the page on tree drawing in TikZ, Drawing a directory listing a la the tree command in TikZ. Worth trying, but on the other I'd like to know the reason why above does not work...)


title: What is the correct way to generate notation for a finite set using for loop in Latex?

text: I am trying to create a command that will take an index n as a parameter, and generate the the expanded form of this {a_1, a_2, a_3,...,a_n}. For my first attempt, I tried to use the syntax suggested in pgffor: Special treatment for last item in \foreach-list and http://stackoverflow.com/questions/2561791/iteration-in-latex to create code that would output a_1 if the index was 1, and output a "," followed by a_n, if the index was not 1.               \usepackage{pgffor}     \newcommand{\sigi}[1]{\foreach \n [count=\ni] in {1,...#1}{%         \ifnum\ni=1%             \sigma_#1%         \else%             ,\sigma_#1%     }}      Unfortunately, I have worked with neither LaTeX for loops nor the pgffor package before, so I am unclear about how to interpret the compile error that occurs when I try to use this command as follows:               $\sigi{1}$      Error message:               ! Undefined control sequence.     \pgffor@count@@parse ...mathresult }\pgfmathparse                                                       {int(#3-1)}\let #1=\pgfmat...     l.363 \sigi{1}


title: changing the 3D tick style of pgfplots

text: Consider this 3D plot:               \documentclass{standalone}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}       \begin{axis}         \addplot3[surf,domain=-4.5:4.5]{(x^2)-(y^2)};       \end{axis}     \end{tikzpicture}     \end{document}      ![original result](http://i.stack.imgur.com/xKWrI.png) How can I alter the rendering style of the ticks so that   1. ticks are only drawn next to their labels, not on the opposite axis?   2. ticks are only drawn on the background faces of the 3D box, not the on the invisible foreground faces? Here is the resulting picture I have in mind (I erased the unwanted ticks in the bitmap): ![enter image description here](http://i.stack.imgur.com/73gPl.png)


title: Package or command for inverse hyperbolic trig functions?

text: What are the commands for _all_ the:   * inverse trig functions (`arcsec(x)`, `arcCsc(x)`, `arcCot(x)`);   * hyperbolic trig functions (`sech(x)` and `csch(x)`), and    * inverse hyperbolic trig functions?


title: How to add text in a link tikzset

text: How to change tikzset the text is automatically added to the link               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{shapes,positioning,fit}     \begin{document}               \tikzset{mylink/.style={dashed,->}}     \begin{tikzpicture}          \node[circle,draw] (a) at (0,0){a};          \node[circle,draw] (b) at (5,2){b};          \draw[mylink](a) -- node{aaa}(b) ;     \end{tikzpicture}     \end{document}


title: In a chapter*, how do I remove chapter numbers from figures and add the title to the running head?

text: I have a document with numbered chapters. At the end I wanted to add some appendices without a number (only a title). I used this solution, which I found online:               \newcommand\chap[1]{%       \chapter*{#1}%       \addcontentsline{toc}{chapter}{#1}%     }      This works from a title and TOC perspective, but it still has two major issues:   * Figures still have a chapter number. So if my final chapter is chapter 10, figures i the appendix will be marked as 11.something. Can I get rid of the 11. and hide those figures from the index of figures?   * Running heads seem to ignore the appendix name. So all my appendixes have 'Bibliography' written in the head! Can I have the appendix (chapter*) title show up there, or perhaps a custom string? Thanks for any help you may provide.


title: How to put several lines in the numerator of a fraction?

text: When I use \\ it breaks the frac layout. Now I come up with the following solution:               $$\frac{{O\vdash e_1:T_1 \atop O[T_1/x]\vdash e_2:T_2}}{O\vdash (let\ ((x e_1))\ e_2):T_2}$$      But it gives two lines with smaller font, and I need all 3 of them to be equal-sized. ### UPDATED: Also it will be needed to place more than two (three or four) lines into the numerator of a frac.


title: coloring keywords in the whole document

text: Is there a way to color keywords into a document? For instance, I want all the occurrences of a given word to appear in red in the whole document. something like :               \colorize{red}{keywords={foo,bar}}


title: TikZ: Using Loop to Draw Grid of Nodes

text: I am trying to draw an Ising model (in my case, a grid of nodes with an undirected edge between adjacent nodes on the same row or column) using TikZ. I have the grid of nodes working nicely using a foreach loop, but I am having trouble drawing the lines between nodes. The problem lies in the fact that I am getting a syntax error when I try to `\draw` lines between computed node names. Here is what I have so far: ![enter image description here](http://i.stack.imgur.com/vdnyc.png) Here is the code I am using:               \documentclass{minimal}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \scriptsize     \foreach \i in {1,...,25}     {             \pgfmathtruncatemacro{\y}{(\i - 1) / 5};             \pgfmathtruncatemacro{\x}{\i - 5 * \y};             \pgfmathtruncatemacro{\label}{\x + 5 * (4 - \y)};             \node[circle,draw=black,fill=white!80!black,minimum size=20]             (\label) at (1.5*\x,1.5*\y) {\label};     }     % These draw commands are working as intended.     \draw (1) -- (2);     \draw (1) -- (6);     \draw (6) -- (7);     \draw (7) -- (2);     % The loop, however, is not =(     %\foreach \x in {1,...,4}     %\foreach \y in {0,...,4}     %{     %       \pgfmathtruncatemacro{\cur}{\x + 5 * \y};     %       \pgfmathtruncatemacro{\next}{\cur + 1};     %       \draw (\cur) -- (\next);     %}     \end{tikzpicture}     \end{document}      ` Thank you very much for your help!


title: Extracting purely the strokes for each glyph of a metafont

text: I am trying to attain a specific effect often seen on dials, gauges and telegraphs from the early 1900's e.g. from this link ![enter image description here](http://i.stack.imgur.com/W8d8l.jpg) ![example of the font scaled](http://i.stack.imgur.com/TaHtE.png) As these where hand-drawn these would generally use a fix-width stroke yet be transformed radially or otherwise sheared as to follow the dial, gauge or strip its shape. Now if one transforms a (modern) font 'normally' then rather than a fixed- width stroke; one gets the width of the strokes transformed too. So I am wondering if is possible to easily extract, for each glyph, the stroke-path of a metafont - so I can use that as the basis of a set of strokes one can then transform and 'paint' across fixed with. Or if one could extract such easily from one of the intermediate formats.


title: zero-width Quine corners

text: I would like to create symbol pairs that   * can be used like quotation marks (spacing-wise)   * look like Quine corners (roughly: `\ulcorner ... \urcorner`) or Japanese quotation marks (roughly: `\ulcorner ... \lrcorner`)   * are zero-width (or of very narrow width) What is the best way to do this?


title: How to output Title & Abstract each on a separate page?

text: I am using default settings with Lyx 2.0.6 and need to generate PDF with a title page, an abstract page, and then the rest of the report. I tried the newpage-insert command and it caused latex errors. Thanks!


title: lstlisting directly after section start removes margin before next section

text: If I place an lstlisting directly after the start of a (sub)section, the margin before the following (sub)section (title) disappears. Here is a an example document showing the issue:               \documentclass[twocolumn]{article}     \usepackage{listings}     \begin{document}          \section{Lorem ipsum}     Consectetur adipiscing elit.          \begin{lstlisting}     Lorem     \end{lstlisting}          Sed quis ante nec mi volutpat congue eu id leo.          \section{Dolor sit amet}     Suspendisse at lorem mattis, semper massa id, euismod risus.          \newpage          \section{Lorem ipsum}     \begin{lstlisting}     Lorem     \end{lstlisting}          Sed quis ante nec mi volutpat congue eu id leo.          \section{Dolor sit amet}     Suspendisse at lorem mattis, semper massa id, euismod risus.          \end{document}      And you can see the (annotated) result here: ![Annotated screenshot of the PDF created using the example document](http://i.stack.imgur.com/ucMeU.png) Why is there no margin before the fourth section (title)? Is this a bug in my LaTeX environment (MacTeX-2013), or is this the expected behavior?


title: Preamble anywhere

text: If I want to use a set of macros in my tex document, I have to obviously include the appropriate packages IN THE PREAMBLE. So now, i write a 100 page document, with 55 packages already included (in a separate tex file or everything inline) and I want to include a new package, I would need to go to the preamble, and include my package and then return back to my work. Is it possible in LaTeX, where in the `\usepackage{}` commands can be written anywhere in the file and not only the preamble something similar to C++ or Java where in the declaration of a variable need not be always after main immediately rather anywhere in the program(the main disadvantage of C)


title: how to tag an equation within an itemize - using amsart

text: I'm doing the following thing               \documentclass[leqno]{amsart}     \begin{document}     Example.     \begin{itemize}     \item Such and so     \item the following holds        \begin{align}            x - 2        \end{align}            always.     \item whatever else     \end{itemize}     \end{document}      Since I number my equations on the left, what I don't like about this is that the equation number is closer to the margin than the itemize bullets, while I would like it to be the other way around. Is there a way to do that? Maybe I should create a box or minipage with tikz (or something similar)?


title: TeX code of equations from IEEEXplore

text: Recently IEEE gives the TeX code for most of equations in the HTML full text view of the papers. This is very interesting for me that I can skip rewriting some long equations and use TeX code from the website. However, I cannot usually compile the equations properly. Here is a MWE from equation (A1) in this paper (paper is freely open to anyone through open access model).                   \documentclass[10pt,a4paper]{article}              \usepackage{amsmath}              \begin{document}              $$D_{E}\propto\left\{\matrix{\left[(1-A)\cos (kh\sin\theta)-2B\cos\beta\right]^{2}             \hfill\cr+\left[(1+A)\sin (kh\sin\theta)+2B\sin\beta\right]^{2}\hfill}\right\}         \times\sin^{2}\theta\eqno{\hbox{(A3)}}$$              \end{document}       Should I use some specific packages (like amsmath), or use some compilers (like XeTeX)???


title: Another issue with university's class file and tikz package (relates to Queen's University and McMaster University, maybe more)

text: I've been trying to run my university's thesis package along with tikz and there is an incompatibility I can't figure out (seems to be a different issue than what has already been addressed here). The error is puzzlingly the `too many }'s`. EDIT: The code is now here https://www.writelatex.com/233647gqmtvk EDIT2: I hacked my way around the issue by not using tikz and pgf directly in the same document but using the standalone package to generate pdf images and include them. Turns out however that the university stylesheet also has problems with hyperref. The error is the same and it comes about when compiling a figure (even if the figure is a pdf). Leaving only the '\inlcudegraphics' statement works. Just to be clear, the incompatibility with hyperref is in addition to the issue with tikz. Commenting out the inclusion of hyperref but re-including tikz gives the issue back. It only works with both excluded. EDIT3: It's not all of hyperref that conflicts. Removing the 'colorlinks = true' (and probably any xcolor option work the same) fixes the issue. Any help is very appreciated!


title: dcolumn and tabularx, part 2

text: This is a follow-up on another question I asked. I am trying to combine the `dcolumn` package with `tabularx` (or `tabular*`for that matter) so the table spans the width I specify, columns are evenly spaced, and cells are aligned by the decimal point. Here's what I have now![enter image description here](http://i.stack.imgur.com/lCFp0.png) The trick suggested in an answer from that other question was to use the 'D' column in the `tabularx` environment, and then a 'X' column inside `\multicolumn`s in the first rows of the table. That worked fine in the example given on that question. But now I have a long text in this `\multicolumn`. The 'X' column seems to "ignore" the number of columns the `\multicolumn` is meant to span. Changing the 'X' by a 'c' prevents the cell to break, like so:![enter image description here](http://i.stack.imgur.com/G29iH.png) I suppose one solution is to use a 'p' column. But specifiying the column width defeats the purpose IMHO, unless there is an automatic way of doing that -- I tried to get some inspiration from the answer to this question here, but didn't go very far. Any thoughts on how get the text to span the two columns? EDIT: here's the basic idea of what I think would be ideal. By declaring `\tracingtabularx`, tabularx will print the optimal column widths. So I just used the 'X' column in a first go, saw the what tabularx echoed in my log file, multiplied that by 2 and changed the X column by a 'p' column with the calculated width. Of course it makes no sense to actually do this by hand. What I want is to get tabularx to do it for me. Here's the code to generate the tables above:               \documentclass{report}          \usepackage{array}     \usepackage{tabularx}         \usepackage{dcolumn}     \usepackage{booktabs}          \newcommand{\mc}{\multicolumn} % handy shortcut macro     \newcolumntype{Z}{>{\centering\arraybackslash}X} % handy shortcut macro     \newcolumntype{d}[1]{D{.}{\cdot}{#1}} % and yet another handy shortcut macro          \begin{document}          % TABLE 1     \noindent     The width of the text block is indicated by this horizontal rule:     \hrule          \begin{table}[h]     \centering     \caption{ multicolumn\{2\}\{X\}\{text\} }     \begin{tabularx}{\textwidth}{l*{3}{d{-2}}}          \toprule                       & \mc{1}{X}{}       & \mc{2}{X}{A very long text that should span two columns, not one. 'X' doesn't do the trick.}  \\ \cmidrule{3-4}                       & \mc{1}{Z}{(1)}    & \mc{1}{Z}{(2)} & \mc{1}{Z}{(3)}   \\ \cmidrule(r){2-2} \cmidrule(lr){3-3} \cmidrule(l){4-4}                       & \mc{1}{Z}{Median} & \mc{1}{Z}{Low} & \mc{1}{Z}{High}  \\ \midrule       bla bla bla      &      2.74         &        31.0    &   1.2            \\       ble ble ble ble  &     31.81         &         1.14   &  11.10           \\            \bottomrule      \end{tabularx}      \end{table}          % TABLE 2     \noindent     The width of the text block is indicated by this horizontal rule:     \hrule          \begin{table}[h]     \centering     \caption{ multicolumn\{2\}\{c\}\{text\} }     \begin{tabularx}{\textwidth}{l*{3}{d{-2}}}          \toprule                       & \mc{1}{X}{}       & \mc{2}{c}{A very long text that should be wrapped. 'p' would defeat the purpose.}  \\ \cmidrule{3-4}                       & \mc{1}{Z}{(1)}    & \mc{1}{Z}{(2)} & \mc{1}{Z}{(3)}   \\ \cmidrule(r){2-2} \cmidrule(lr){3-3} \cmidrule(l){4-4}                       & \mc{1}{Z}{Median} & \mc{1}{Z}{Low} & \mc{1}{Z}{High}  \\ \midrule       bla bla bla      &      2.74         &        31.0    &   1.2            \\       ble ble ble ble  &     31.81         &         1.14   &  11.10           \\            \bottomrule      \end{tabularx}      \end{table}          \end{document}


title: Configuring footnote position and spacing

text: (A) How do I shift the footnote vertically down 1 mm or so? (B) I want to introduce some additional space in between one foot note and the next one, and between the first footnote and the line that separates it from the regular text. `\vspace{1mm}` inside the `\footnote{}` command does not solve this. Using XeTex               \documentclass[12pt]{article}     \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}     \usepackage{amsmath, booktabs, graphicx, setspace}     \usepackage[T1]{fontenc}     \usepackage[hang]{footmisc}     \begin{document}     \begin{spacing}{1.9}     TEXT.\footnote{\vspace{1mm} my footnote is here.}     \end{spacing}     \end{document}      (C) How do I prevent a long footnote from partly continuing in the next page? (D) I must also find a way to linebreak in footnotes without justifying the first line. The `footmisc` package (with the 'hang' option) only makes the footnote symbol flush to the left. (E) I would actually like to put it a couple points away from the left margin. (F) And make the footnote number bold.


title: Alignment of Part and Chapter headings text

text: Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space difference)               A...PARTTITEL     1..CHAPTERITEL      What I aim for:               A..PARTTITEL     1..CHAPTERITEL      Please see the MWE below:               \documentclass{book}     \usepackage{titlesec}          \renewcommand\thepart{\Alph{part}}     \titleclass{\part}{top}     \titleclass{\chapter}{straight}          \titleformat{\part}[hang]       {\normalfont\huge\bfseries}{\thepart}       {20pt}{\Huge}     \titleformat{\chapter}[hang]       {\normalfont\huge\bfseries}{\thechapter}       {20pt}{\Huge}[\vskip8pt{\titlerule[1.5pt]}]          \titlespacing*{\part}       {0pt}{50pt}{40pt}     \titlespacing*{\chapter}       {0pt}{0pt}{20pt}          \begin{document}          \part{Test Part One}     \chapter{Test Chapter One}          \end{document}


title: Typesetting Greek characters in bibliography

text: I've been struggling with trying to get Greek characters to typeset in my bibliography for a while now, but can't seem to find a solution that works for me. Here is a MWE of the `.tex` I am working with:               \documentclass[12pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[backend=biber, bibencoding=utf8]{biblatex}     \addbibresource{library.bib}          \begin{document}     Here is the citation: \cite{duchowski_2012}          \printbibliography     \end{document}      And the relevant entry in `library.bib`:               @inproceedings{duchowski_2012,         title = {τεχνη Photons: Evolution of a Course in Data Structures},         pages = {49-56},         booktitle = {Eurographics 2012-Education Papers},         author = {Duchowski, Andrew T.},         date = {2012}     }      After running XeLaTeX and Biber, the `.bbl` file has the Greek characters correct. However, running XeLaTeX the second time, the typeset citation is: [1] A. T. Duchowski. “ Photons: Evolution of a Course in Data Structures”. In: Eurographics 2012- Education Papers. 2012, pp. 49–56. and the `.log` file has these lines:                [1]     Missing character: There is no τ in font cmr10!     Missing character: There is no ε in font cmr10!     Missing character: There is no χ in font cmr10!     Missing character: There is no ν in font cmr10!     Missing character: There is no η in font cmr10!      The problem is, I am restricted to Times New Roman or Computer Modern for the majority of the document. I'm sure there is an exception for typesetting the Greek characters, but I don't want to change the font of the entire bibliography. Any suggestions on a workaround?


title: How do I get expl3 from CTAN?

text: My real problem is that I am trying to use a package which depends on `siunitx`, and it complains on compiling with the following error:               (/usr/share/texmf/tex/latex/siunitx/siunitx.sty     ! Package siunitx Error: Support package expl3 too old..      See the siunitx package documentation for explanation.     Type H <return> for immediate help. ... l.29 }     )      I would really rather install the package using a package manager. I'm on Gentoo, which has a nice little tool called g-ctan that creates distro packages from packages on CTAN. `expl3` isn't in the package database, even though it can be found on CTAN. It says that it is a wrapper for experimental LaTeX 3... the package name is `l3kernel`. Eek! Experimental! Is it safe for me to install `l3kernel`? Is it going to break my LaTeX installation?


title: Context mptopdf problem

text: I've a problem with the following file               input graph        u=0.5cm;      beginfig(0);      draw dashpattern(on 5bp);      picture pa;      pa=currentpicture;      currentpicture:=nullpicture;      draw dashpattern(on 5bp off 2bp);      picture pb;      pb=currentpicture;      currentpicture:=nullpicture;      draw dashpattern(on 1bp off 2bp);      picture pc;      pc=currentpicture;      currentpicture:=nullpicture;      draw dashpattern(on 5bp off 2bp on 1bp off 2bp);      picture pd;      pd=currentpicture;      currentpicture:=nullpicture;      draw dashpattern(on 5bp off 2bp on 5bp off 2bp on 1bp off 2bp on 1bp off 2bp);      picture pe;      pe=currentpicture;      currentpicture:=nullpicture;      draw dashpattern(on 5bp off 2bp on 5bp off 2bp on 1bp off 2bp );      picture pf;      pf=currentpicture;      currentpicture:=nullpicture;      draw dashpattern(on 1bp off 2bp on 1bp off 2bp on 5bp off 2bp );      picture pg;      pg=currentpicture;      currentpicture:=nullpicture;        draw begingraph(6cm,6cm);        glabel.lft(btex Throughput (bps) etex rotated 90, OUT);        glabel.bot(btex sources etex, OUT);        gdraw "thr_olsrmos_20_30_300_0.05_1.txt"  withcolor 0.75black dashed pa;        draw (12, 1)*u--(14, 1)*u withcolor 0.75black dashed pa;        label.bot(btex T=1 Delta=0.05 etex scaled 0.5, (13, 1)*u);        label.top(btex OLSR-MOS: etex scaled 0.5, (13, 2)*u);        gdraw "thr_olsr_20_30_300.txt" withcolor 0.75red;        draw (12, 8)*u--(14, 8)*u withcolor 0.75red;        label.bot(btex OLSR etex scaled 0.5, (13, 8)*u);        autogrid(grid.bot,grid.lft) withcolor 0.95white;        frame.llft;        gdraw "thr_olsrmos_20_30_300_0.05_1.txt"  withcolor 0.75black dashed pa;        draw (12, 1)*u--(14, 1)*u withcolor 0.75black dashed pa;        label.bot(btex T=1 Delta=0.05 etex scaled 0.5, (13, 1)*u);        label.top(btex OLSR-MOS: etex scaled 0.5, (13, 2)*u);        gdraw "thr_olsr_20_30_300.txt" withcolor 0.75red;        draw (12, 8)*u--(14, 8)*u withcolor 0.75red;        label.bot(btex OLSR etex scaled 0.5, (13, 8)*u);        endgraph;      endfig;      end      Can someone help my please ?


title: Images in posters

text: I am using the template from Elena Botoeva to create an A0 poster. How do I insert figures (pdf) into each node? I am guessing that `\usepackage{graphicx}` will be needed but it keeps giving errors saying that there are too many closing brackets, `}`.


title: Is there an alternative to LaTeX which isn't whitespace sensitive?

text: I have been using LaTeX for about a year now, and I quite like it. However, I like to space out my source code. In most languages, this doesn't cause an issue, as extra newlines don't affect meaning. However, in LaTeX, two newlines in fact changes the document, by creating a new paragraph. I'm wondering, is there a way to turn this feature off in latex, and require me to specify new paragraphs manually? If not, is there an alternative to LaTeX (preferably similar i.e. still TeX based) which isn't so sensitive?


title: Discretionary equation breaking at a particular symbol

text: I have long equations that I want LaTeX to break automatically. After some extensive searching I have been unable to work out how to achieve this effect. I have `breqn` in my package list, however it doesn't break the equations I have in the `equation` environment or math mode (or caption mode). For example it doesn't break:               A[A, k_a](M(\Box_0)) | I[k_a, d_k] | R(K[K, d_k, x]) \rightarrowtriangle A[A,k_a](M(\Box_0 | T[k_t])) | I[k_a,d_k] | I[k_t, d_k] | R(K[K,d_k,x])      I think this means I want to add `\mathpunct` for the `\rightarrowtriangle` and `|` symbols and only allow breaking of depth one. However I can't actually make this happen. I can't work out how to use the `\mathpunct` command or find what the symbol numbers of `\rightarrowtriangle` or `|` are. Edit: A minimal working example:               \documentclass{report}     \usepackage{stmaryrd}     \usepackage{amssymb}     \usepackage{breqn}     \begin{document}     \begin{dmath}       A[A, k_a](M(\Box_0)) | I[k_a, d_k] | R(K[K, d_k, x]) \rightarrowtriangle A[A,k_a](M(\Box_0 | T[k_t])) | I[k_a,d_k] | I[k_t, d_k] | R(K[K,d_k,x])     \end{dmath}     \end{document}


title: Weird problem with pdfpages and fbox

text: I'm trying to get a colored background for my page numbers, and it works okay - except when I want it to show on pdf pages (which is where it's most important). This also happens on the last page of text. This is what it should look like: ![page number in box](http://i.imgur.com/yX9JPIu.png) This is what it looks like on the pdf pages: ![page number in box](http://i.imgur.com/V0u14tj.png) MWE:               \documentclass[book,openeven,showtrims]{memoir}     % http://latex-my.blogspot.dk/2009/10/setting-page-size-and-margins.html     %% The stock paper size     \setstocksize{236mm}{161mm}          %% The 'real' page size     \settrimmedsize{230mm}{155mm}{*}          %% The stock paper will be trimmed 3mm from the     %% top edge and 3mm from the left edge     \settrims{3mm}{3mm}          %% Spine and trim page margins from main typeblock     \setlrmarginsandblock{20mm}{15mm}{*}          %% Top and bottom page margins from main typeblock     \setulmarginsandblock{20mm}{20mm}{*}          %% Header occupies height of a single line;     %% Bottom edge of footer is 7mm from bottom edge     %% of typeblock     \setheadfoot{\baselineskip}{7mm}          %% Bottom edge of header is 7mm from top edge of     %% typeblock     \setlength\headsep{7mm}     %\renewcommand\trimmarkscolor{\color{red}}     \trimLmarks     \checkandfixthelayout          \usepackage[xcdraw]{xcolor}     \usepackage[utf8]{inputenc}     \usepackage[danish]{babel}     \usepackage{graphicx}     \usepackage{bookman} % font     \usepackage{lipsum}     \usepackage{pdfpages}          \makepagestyle{mm}     \setlength{\fboxrule}{6pt}%     \makeevenfoot{mm}{\fcolorbox{black}{blue}{\hspace{.5em}\thepage}}{}{}     \makeoddfoot{mm}{}{}{\fcolorbox{black}{blue}{\hspace{.5em}\thepage}}     \pagestyle{mm}               \begin{document}     \chapter{Test}     \lipsum[1-20]     \includepdf[noautoscale,pagecommand={},pages=-]{mwepdf}     \end{document}      You can get the dummy pdf here: http://kristian.anapnea.net/mwepdf.pdf I hope someone know what's up here as it makes very little sense to me!


title: How to set frame size in a listing

text: I'm trying to put a frame around my code, but the frame has the wrong dimension. How can I set them right?               \begin{lstlisting}[language=C++,frame=single,tabsize=2,showspaces=false,showstringspaces=false,       keywordstyle=\color{blue},morekeywords={QStringList,QDate,QString,QIODevice},commentstyle=\color{CadetBlue},caption={Zistenie, či sme v daný deň, už záznam o rýchlosti uložili}]     QStringList lines;     //ziskaj aktualny datum     QDate date = QDate::currentDate();      //preved ho na retazec     QString dateString = date.toString("dd.MM.");      if (speed_file.open(QIODevice::ReadOnly)) {       if (speed_file.size() != 0) {         while (!out.atEnd()) {         //nacitaj cely subor po riadkoch           lines.append(out.readLine());          }         out.flush();         speed_file.close();         //uloz posledny riadok         lastLine = lines[lines.size() - 1];          if (dateString.compare(lastLine.mid(lastLine.indexOf("->") + 2, -1)) == 0) {           //prepíšeme pôvodný záznam o rýchlosti         }       \end{lstlisting}      and this is the result ![enter image description here](http://i.stack.imgur.com/KI0FZ.png)


title: How to put large figure caption on separate page from the figure

text: I have a large figure (> 50% of a page) and a large caption to describe it (also >50% of page). How do I put the caption on a separate page? This is discussed in several forums, but apparently not on tex.stackexchange. Since I came up with a simple but functional hack, I thought I'd post it as an answer to this question along with links to more involved solutions like the experimental fltpage package.


title: Programming with LaTeX xkeyval

text: I have assigned to do the following task. Since I am not good at Latex I am wondered its possibilities. I would like to assign parameter while developing document. EX: `file1.tex`               \chapter chapter_name1 [arg1=true]or [arg1]      `file2.tex`               \chapter chapter_name2 [arg1][arg2]     \include<file3> (here it should go to file3.tex and again checks there relevant argument in order to include correct chapter/section)      `file3.tex`               \section chapter_name1 [arg2][arg3]     \subsection sunsection_name [arg4]      `myfile.tex` it has some loops and parser to split input parameters in order to include relevant files. At time of compiling at terminal I should decide(by passing arguments) which chapter will be inserted into `myfile.pdf` file. EX: `pdflatex "\def \parameter {arg2 arg3} input{myfile.tex}"` Then `myfile.pdf` should have               chapter_name2      section_name1      I have heard about `xargs` and `xkeyval` packages but I hardly understand it. Still I am not sure how it will help me. Is my task possible? If so, please suggest me what I should do? * * * To avoid confusions i have modified the question. I have large set of contends for the user. For different user I would like to show different contents. for this I would like to produce different output by showing and not showing some of the contents (say chapters sections subsection)of the document. My Idea is: while writing chapter/section I declare it is show able to which kind of user by setting argument to true or false. if user1==true then it should be there in user1.pdf for example Macro is (ex): \Modifiedchapter [bool arg1][bool arg2][bool arg3]               \Modifiedchapter <chapterName1> [user1==true][user2==false][user3==false]           \Modifiedchapter <chapterName2> [user1==true][user2==true][user3==false]          \Modifiedsection <sectionName1> [user1==true][user2==true][user3==true]      If I pass `user1` and `user3` as 'True', then my output should contain command (ex) : "\def\arg1=true, arg2=false, arg1=true \input{myfile}"               chapterName1          sectionName1      How can I do this?


title: Problem with updmap

text: I'm running into a problem similar to this one. I'm running Arch Linux and have installed TexLive from their repository. I noticed that I had some configuration files (texmf.cnf and updmap.cfg) that needed to be updated, so I diffed them and updated the relevant sections. In the case of updmap, it was simply adding some kanji font maps to the file. Then, I thought I should run updmap since I changed the config. I got this:               $ updmap     Can't locate TeXLive/TLUtils.pm in @INC (@INC contains: /tlpkg /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/bin/updmap line 18.     BEGIN failed--compilation aborted at /usr/bin/updmap line 18.      I checked for TLUtils.pm and found it:               $ locate TLUtils.pm     /usr/share/tlpkg/TeXLive/TLUtils.pm     /var/lib/texmf/arch/tlpkg/TeXLive/TLUtils.pm      I don't know where `@INC` (sounds like the TL path?) is defined and thus don't know where it gets told where to look for TLUtils.pm. The line 18 referenced is this:               use TeXLive::TLUtils qw(mkdirhier mktexupd win32);      I'm guessing some things got moved around during some update and perhaps some path is still referencing some now non-location. How might I correct this?


title: natbib | Question Mark instead of Citation

text: I've spend hours already trying to get natbib running. Im using Texmaker on Windows XP and just cannot find the problem:   * I made sure the link to the .bib file is correct   * I changed the bibliography style to a "natbib" compatible one   * I'm compiling document, bibtex, document, document So is there maybe any problem with my code?               \documentclass[12pt,oneside,a4paper]{article}     \setlength{\parindent}{0pt}     \setlength{\parskip}{1.15ex plus 0.4ex minus 0.2ex}     \usepackage{graphicx}     \graphicspath{{./figures/}}     \usepackage{hyperref}     \usepackage{float}     \usepackage{microtype}     \usepackage[doublespacing]{setspace}     \usepackage{amsmath}     \usepackage[utf8]{inputenc}     \usepackage[left=4cm, right=2cm, top=1cm, bottom=1cm, includeheadfoot]{geometry}     \usepackage{natbib}     \usepackage{fancyhdr}          \pagestyle{fancy}     \fancyhead{}     \fancyfoot{}     \renewcommand{\headrulewidth}{0pt}     \rfoot{\thepage}          \begin{document}     \section{Introduction}     For 2011, OECD reports...  \citet{oecd11}          \bibliographystyle{plainnat}     \bibliography{ba-thesis.bib}     \end{document}


title: Script-r Symbol

text: The near-ubiquitous undergraduate reference on electrodynamics, "Introduction to Electrodynamics" by David Griffiths make extensive use of a script-r symbol, defined to be `\vector{\scriptr} \equiv \vector{r} - \vector{r}^{\prime}` and looks like: ![Script r](http://i.stack.imgur.com/E6Q6q.png) Although the question of how to produce such a symbol in LaTeX is quite a common one I am yet to find a satisfactory solution. The closest I've found is from the `physymb` package and uses the Calligra fonts: ![enter image description here](http://i.stack.imgur.com/OZ81W.png) Sadly, there is not a bold variant of this character and it is far more cursive than I would like. I am hence wondering if there are any better facsimiles.


title: Altering the position of bullet given by \item

text: I am working on my resume and for that I am using one of the following construct:               \documentclass[letterpaper,9pt]{article}     \newlength{\outerbordwidth}          \usepackage[empty]{fullpage}     \usepackage{color}     \usepackage{hyperref}     \definecolor{mygrey}{gray}{0.85}     \raggedbottom     \raggedright     \setlength{\tabcolsep}{0in}     \usepackage{tabularx}          \setlength{\paperwidth}{8.5in}     \setlength{\hoffset}{3pt}     \addtolength{\oddsidemargin}{-0.6in}     \addtolength{\topmargin}{-.7in}     \addtolength{\textheight}{1.0in}     \setlength{\textwidth}{7.488in}          \newcommand{\ressubheading}[4]{\vspace{-.12cm}\hspace{-5pt}     \begin{tabular*}{7.18in}{l@{\extracolsep{\fill}}r}         \textbf{#1} &  #2 \\         #3 & #4 \\     \end{tabular*}\vspace{-0.2cm}}          \begin{document}     \begin{itemize}      \item     \ressubheading{Name of Grad School}{City}{Major}{2010 -- 2012}       \end{itemize}     \end{document}      The command `\ressubheading` helps me define a table in which I write my credentials. However, I need to itemize such tables and while doing so the bullet provided by `\item` hangs in the middle of the two rows. This is looking kind of odd. I would like the bullet to be in front of the first row i.e. say in front of "Name of Grad School" in the example given. Here is an image showing the problem:![example](http://i.stack.imgur.com/ykggu.jpg) An ideas on what can be done ? Thanks a lot for your help !


title: Including +/- signs to battery in Circuitikz

text: I'm attempting to draw a battery (using the `battery1` component) that includes positive and negative signs at the appropriate ends. A previous question that was answered here (using version 2.4) shows exactly what I mean: ![1](http://i.stack.imgur.com/EfV5E.jpg) Only, of course, I want to be using a `battery1` symbol instead. So, I have my code as follows:               \usepackage[americanvoltages,fulldiodes,siunitx]{circuitikz}     \begin{document}     \begin{circuitikz}         \draw (0,0) to [battery1=\SI{9}{V}] (3,0)                     to [pC,v=$v_C$] (6,0);     \end{circuitikz}     \end{document}      And I end up with this: ![enter image description here](http://i.stack.imgur.com/lCEY4.png) Notice the lack of +/- signs (I know how circuits work so I don't need to be actually shown these signs, but for the sake of copying my class notes diagrams I want these signs to be included in my latex diagram). In either case, I think it may have something to do with the version of `Circuitikz` I'm using because I'm using the latest version (I believe, 0.3.0) but in the previous question linked above, they were using 2.4 and it worked out for them. I would really like to find a way to add +/- _without_ having to manually add it with Tikz or something, i.e. just have it naturally part of the component without having to add nodes or extra Tikz code etc. If that's not possible, then I'll have to settle for that as a last result. Thank you for your help! **EDIT:** I should also mention that I've tried using `battery1, v=$9V$` instead of `battery1=\SI{9}{V}` and to no avail (the +/- signs still don't show up).


title: \sqrt from another font

text: I'm trying to change a specific char in my math collection: the square root symbol, as you can see below: ![enter image description here](http://i.stack.imgur.com/RMrTl.png) I'm trying to do it via `\DeclareMathSymbol{\sqrt}...` , but I can't determine witch parameters I have to enter. The square root symbol that I want is available using the `utopia` option with the `mathdesign` package. Any ideas?


title: What is the quickest way to check whether I already have a given package?

text: What is the quickest way to check (on Linux) whether I already have a given package? In particular I'm interested in whether there is something that will take less time than the 20 seconds or so it would take me to create a tiny latex document and try to compile it.


title: Vertical line in ymode=log plot

text: Please have a look at the following MWE:               \documentclass{article}     \usepackage{pgfplots,pgfplotstable}     \begin{document}         \begin{tikzpicture}             \begin{axis}[                 %ymode=log,             ]                 \addplot coordinates {                 (0, 6.887e-02)                 (0.5, 3.177e-02)                 (1, 1.341e-02)                 (1.5, 5.334e-03)                 (2, 2.027e-03)                 (2.5, 7.415e-04)                 (3, 2.628e-04)                 (3.5, 9.063e-05)                 (4, 3.053e-05)                 };                 \draw (axis cs:1.2,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:1.2,\pgfkeysvalueof{/pgfplots/ymax});             \end{axis}         \end{tikzpicture}     \end{document}      It produces a graph like this (some data with a vertical line at x=1.2): ![some data with a vertical line at x=1.2](http://i.stack.imgur.com/5jaM5.png) As soon as I uncomment ymode=log, the vertical line disappears. Bummer!


title: How to control the vertical height of boxes

text: I would like to create boxes where I can control the height of the boxes. Right now I have used the command.               \colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}}      This gives me a box that stretches vertically how I want. Depending on the content of the box however the box vertical size is adjusted accordingly. Fractions for example will automatically make the box vertical height larger (as it needs to contain a fraction), while linear equations makes the height smaller How can I solve this problem?


title: modification of the chapter style

text: I'm using document class `report` and I have decided to use one of the predefined styles of Vincent Zoonekynd's for chapter headings, with some modifications.               \documentclass[11pt,a4paper,oneside]{report}     \usepackage{xcolor}     \makeatletter     \def\LigneVerticale{\vrule height 1.5cm depth 0.9cm\hspace{0.1cm}\relax}     \def\LignesVerticales{%       \let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}     \def\GrosCarreAvecUnChiffre#1{%       \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}%       \rlap{\hbox to 1cm{\hss\mbox{\color{white}#1}\hss}}%       \vrule height 0pt width 1cm depth 0pt}     \def\GrosCarreAvecUnChiffres#1{{%       \color{white}%       \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}%       \rlap{\hbox to 1cm{\hss\mbox{\color{black}#1}\hss}}%       \vrule height 0pt width 1cm depth 0pt}}     \def\@makechapterhead#1{         \vspace*{-20pt}         \hbox{%         \huge\bfseries         \LignesVerticales         \hspace{-0.62cm}%         \GrosCarreAvecUnChiffre{\thechapter}         \hspace{0.2cm}\hbox{#1}%         }\par\vskip 0.5cm}      \def\@makeschapterhead#1{         \vspace*{-20pt}         \hbox{%         \huge\bfseries         \LignesVerticales         \hspace{-0.62cm}%         \GrosCarreAvecUnChiffres{\thechapter}         \hspace{0.2cm}\hbox{#1}%         }\par\vskip 0.5cm}     \makeatother          \begin{document}     \chapter{Name}     \chapter*{Surname}     \end{document}      I would like to make other modifications and don't know how to do this. The definition for `\chapter` is alright, no other modification is needed. The only change is about `\chapter*`s. I would like to put any number (zero) away and move the name of the chapter to the left in the white box. Does anyone know how to change this?


title: Biblatex: omit author

text: In the traditional "humanities" writing style it may happen to refer to an author and want to cite his/her works without the author name, perhaps because you are discussing him/her works and adding the name would be redundant. I am not necessary referring to ibidem styles or similar, but to how to introduce bibliographic data whenever the author name is useless or does not fit well in the context. Here is a MWE (not really minimal because I obviously need some citations:               \documentclass[a4paper]{article}     \usepackage[style=verbose-note]{biblatex}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @Article{Annas:HellenisticVersion,       Title                    = {{T}he {H}ellenistic {V}ersion of {A}ristotle's {E}thics},       Author                   = {Annas, Julia},       Journal                  = {The Monist},       Pages                    = {80-96},       Year                     = {1989},       Volume                   = {73},     }     @Article{Annas:Emotions,       Title                    = {{E}picurean {E}motions},       Author                   = {Annas, Julia},       Journal                  = {GRBS},       Pages                    = {145-64},       Year                     = {1989},       Volume                   = {30},     }     @Book{Annas:Morality,       Title                    = {{T}he {M}orality of {H}appiness},       Location                 = {New York - Oxford},       Author                   = {Annas, Julia},       Publisher                = {Oxford University Press},       Year                     = {1993},     }     @Book{Annas:Intelligent-virtue,       Title                    = {{I}ntelligent virtue},       Location                 = {Oxford},       Author                   = {Annas, Julia},       Publisher                = {Oxford University Press},       Year                     = {2011},     }     \end{filecontents}     \addbibresource{\jobname.bib}          % CITENOAUTHOR       \newcommand\citenoauthor[1]{%       {\citetitle{#1}\addspace%                              \mkbibparens{%                                 \citelist{#1}{location}\addcolon\addspace%                              \citelist{#1}{publisher}\addcomma\addspace%                              \citeyear{#1}}%                                          }%      }             %     \begin{document}     \section{Standard}     Annas' well known book of ancient ethics is very important%     \footnote{\cite{Annas:Morality}. I would refer also to another     more recent work, \cite{Annas:Intelligent-virtue}.}%     . Her article on Aristotle and the Hellenistic world is worth mentioning%     \footnote{\cite{Annas:HellenisticVersion}. See also her contribution on     Epicurus: \cite{Annas:Emotions}.}.          \section{New version}     Annas' book is very important%     \footnote{\cite{Annas:Morality}. I would refer also to another     more recent work, \citenoauthor{Annas:Intelligent-virtue}.}%     . Her article on Aristotle is good%     \footnote{\cite{Annas:HellenisticVersion}. See also her contribution on     Epicurus: \citenoauthor{Annas:Emotions}.}.     %     \end{document}      I defined a newcommand which I called \citenoauthor. It prints all the fields/lists I need except the author. It works well for books but not for article, for example. I tried do use `\ifentrytype{book}{...}` but I did not succeed. Any possible definition to say "now, and only now, do not print the author field"? I attach also the output of this example. Note 3 is OK, but note 4, referring to an article, is obviously wrong: 1 Standard Annas’ well known book of ancient ethics is very important[1]. Her article on Aristotle and the Hellenistic world is worth mentioning[2]. 2 New version Annas’ well known book of ancient ethics is very important[3]. Her article on Aristotle and the Hellenistic world is worth mentioning[4]. 1 Julia Annas. The Morality of Happiness. New York - Oxford: Oxford University Press, 1993. I would refer also to another more recent work, Julia Annas. Intelligent virtue. Oxford: Oxford University Press, 2011. 2 Julia Annas. “The Hellenistic Version of Aristotle’s Ethics”. In: The Monist 73 (1989), pp. 80–96. See also her contribution on Epicurus: Julia Annas. “Epicurean Emotions”. In: GRBS 30 (1989), pp. 145–64. 3 Annas, The Morality of Happiness, see n. 1. I would refer also to another more recent work, Intelligent virtue (Oxford: Oxford University Press, 2011). 4 Annas, “The Hellenistic Version of Aristotle’s Ethics”, see n. 2. See also her contribution on Epicurus: “Epicurean Emotions” (location: publisher, 1989). Thank you!


title: Column width in tabular environment created in tikz

text: ![enter image description here](http://i.stack.imgur.com/X73hm.png) I wonder how to wrap the column header in last column by specifying the column width in the tabular environment created in `tikz`. Any help will be highly appreciated. Thanks               \documentclass[preview]{standalone}     \usepackage[dvipsnames,table]{xcolor}     \usepackage{array}     \usepackage{environ}     \usepackage{tikz}          \usepackage{caption}          \newsavebox{\tablebox}     \definecolor{tablecolor}{named}{ForestGreen}          \NewEnviron{rndtable}[1]{%       \addtolength{\extrarowheight}{1ex}%       \rowcolors{2}{tablecolor!20}{tablecolor!40}%       \sffamily       \newcommand{\header}[1]{%         \multicolumn{1}{l}{%           \cellcolor{tablecolor}%           \color{white}%           \bfseries##1%         }%       }%       \savebox{\tablebox}{%         \begin{tabular}{#1}%           \BODY         \end{tabular}%       }%            \begin{tikzpicture}         \begin{scope}           \clip[rounded corners=1ex]             (0,-\dp\tablebox) rectangle (\wd\tablebox,\ht\tablebox);           \node at (0,-\dp\tablebox) [anchor=south west,inner sep=0pt]                 {\usebox{\tablebox}};         \end{scope}         \draw[tablecolor,very thick,rounded corners=1ex]           (0,-\dp\tablebox) rectangle (\wd\tablebox,\ht\tablebox);       \end{tikzpicture}%     }          \begin{document}     \begin{center}     %\captionof{table}{Caption}     \footnotesize     \begin{rndtable}{l p{4cm}  p{3cm} p{5cm}} %         \header{Country} &       \header{Variable} &       \header{Targets} &       \header{Frequency of Setting the Target} \\       \textbf{Afghanistan} & Currency in circulation (CiC) & Growth rate of CiC & Annual \\       \textbf{Bangladesh} & Broad money  & M2 growth rate & Annual \\       \textbf{Bhutan} & Exchange rate & 1BTN=1INR & Irregular \\       \textbf{India} & Multiple indicators & No specific targets & Annual \\       \textbf{Maldives} & Exchange rate & 12.85MVR=1USD (+/-20\%) & Irregular \\       \textbf{Nepal} & Exchange rate & NA & NA \\       \textbf{Pakistan} & Inflation, together with an assessment of monetary aggregates  & Projections of inflation relative to the announced target and projections of various components of monetary aggregates  & Annual \\       \textbf{Sri Lanka} & Broad money & Consolidated Broad Money (M2b)  & Annual \\              \multicolumn{4}{l} {\footnotesize \textcolor{red} {Source: Central banks' websites}}\\         \multicolumn{4}{l}{\footnotesize \textcolor{red} {Note: Targets are the latest numbers available at the time of compilation}}\\         \multicolumn{4}{l}{\footnotesize \textcolor{red} {BTN: Bhutanese Ngultrum; INR: Indian Rupee; MVR: Maldives Rufiyaa; USD: US Dollar}}\\         \end{rndtable}          \end{center}          \end{document}


title: How come Revtex says acknowledgements are obsolete?

text: Running revtex4-1 with the preamble:               \documentclass[aps, pre, floatfix, reprint]{revtex4-1}      and the section later:               \begin{acknowledgements}     The authors would like to thank Tex, LaTeX and Friends      for the answer to this question.     \end{acknowledgements}      Gives the warning:                Class revtex4-1 Warning: Environment acknowledgements is obsolete;      Have I done something wrong here?


title: Appendix list of symbols

text: I am trying to make a list of variable definitions in the appendix and I tried making glossaries and using acronyms packages but I don't know what to do. I do not need to reference the symbols in the text, just make a list with a variable and its definition as so: # List of Variables: **m** The mass of the object **λ** The absolute value of the displacement


title: How to make the corners?

text: I know how to do a `4 \times 5` chessboard:               \documentclass{article}     \usepackage{chessboard}     \let\boardfont\undefinedcommand     \usepackage{diagram}          \begin{document}     \setboolean{showcomputer}{false}     \setboolean{piececounter}{false}     \specialdiagnum{}     \begin{diagram}[5x4]     \pieces{}     \end{diagram}          \end{document}      ![enter image description here](http://i.stack.imgur.com/vewm7.png) But I don't know to maker the corner.


title: Cited Authors with Biblabels in Index

text: I want to include all cited authors in the index, but with the biblabel and not with the pagenumber. I tried `authorindex`, but I want one index not two different. I also tried `authorindex -i` but makeindex doesn't like the option `biblabels` because the labels are not correct page numbers. How do I get a single index (with `\index{...}` entries and the cited authors) including the cited authors with the corresponding bibtex labels? * * * Here is a MWE:               \begin{filecontents*}{\jobname.bib}     @BOOK{Cameron1994,      AUTHOR = {Cameron, Peter Jephson},      TITLE = {{Combinatorics}: {Topics}, {Techniques}, {Algorithms}},      PUBLISHER = {Cambridge University Press},      YEAR = {1994}     }     @ARTICLE{Cameron2008,      AUTHOR = {Cameron, Peter Jephson and Gewurz, Daniele A. and Merola, Francesca},      TITLE = {{Product} action},      JOURNAL = {Discrete Math.},      YEAR = {2008}     }     \end{filecontents*}          \documentclass{article}     \usepackage{makeidx}     \usepackage[biblabels]{authorindex}     \makeindex     \begin{document}     I \index{cite}cite something like \aicite{Cameron1994} and \aicite{Cameron2008}.     I want a \index{merged}merged index.          \bibliographystyle{alpha}     \bibliography{\jobname.bib}     \printindex     \printauthorindex     \end{document}      I compile with               pdflatex     bibtex     makeindex     authorindex     pdflatex     authorindex     pdflatex      I get two indices (one for `\printindex` and one for `\printauthorindex`): ![references](http://i.stack.imgur.com/gwaWA.png) ![normal index](http://i.stack.imgur.com/aPDWd.png) ![authorindex](http://i.stack.imgur.com/UOBKd.png) but what I want is a merged index like ![merged index](http://i.stack.imgur.com/UXdxL.png) To produce the last index I manipulated the `*.ind` file by hand. * * * I tried a solution by myself, but I failed: I used `authorindex -i -p MWE >> MWE.idx` to add the entries of the author index into the normal index. But I can not compile it with `makeindex`, because the "CGM08" (etc.) are not correct page numbers.


title: Vertically centering text on a page doesn't work?

text: minimal example:               \documentclass[oneside]{memoir}          \setstocksize{8.5in}{3.6666in}     \settrimmedsize{8.5in}{3.6666in}{*}     \settrims{0in}{0in}     \settypeblocksize{9.0in}{32pc}{*}     \setlrmarginsandblock{0.37in}{*}{1}     \setulmarginsandblock{0.1in}{*}{1}     \setheadfoot{0pt}{0pt}     \setheaderspaces{*}{0pt}{*}     \checkandfixthelayout     \clearpage\thispagestyle{empty}          \begin{document}     \begin{vplace}[1]     test     \end{vplace}     \end{document}


title: Why is there a space in this equation

text: I have the following equation: `$\|\text{DFT}\left( f_t (n) \right)\|^2 $` (![rendered](http://i.stack.imgur.com/nv51P.png)) This equation is rendered with a space before the second `$\|$`. Why is this and how can I fix it?


title: Union of Paths in MetaPost

text: I'd like to compute the union of a collection of outlines in MetaPost. I'm aware of the `buildcycle` macro (in combination with `cutbefore` and `cutafter`). However, that macro is not very useful because I don't know the shapes I want to join in advance, so it's difficult to predict how to "build" the cycles. To complicate matters, some parts of the paths are very thin, which causes problems with rounding. I'm aware of this related question but ideally I need a MetaPost solution. The following is a possible example. The paths were actually computed using MetaPost and the union was also computed with MetaPost. Still, the way it was done wasn't ideal. I'd like to have a more robust solution.               beginfig(0);         % Some paths         draw (12.47017,32.24423)..controls (6.40797,28.74423) and (2.43744,20.24191)                ..(0,0.39084)..controls (0.86858,1.25941) and (1.73717,2.128)                ..(2.60574,2.99658)..controls (5.04318,22.84766) and (9.59935,30.58676)                ..(15.66154,34.08676)..controls (14.59775,33.47258) and (13.53397,32.85841)                ..cycle withpen pencircle scaled 0.2pt;              draw (15.66154,34.08676)..controls (9.59935,30.58676) and (5.04318,22.84766)                ..(2.60574,2.99658)..controls (2.73602,2.8663) and (2.8663,2.73602)                ..(2.99658,2.60574)..controls (5.43402,22.45682) and (9.87572,30.1081)                ..(15.93791,33.6081)..controls (15.8458,33.76765) and (15.75366,33.9272)                ..cycle withpen pencircle scaled 0.2pt;              draw (12.74654,31.76556)..controls (6.68434,28.26556) and (2.82828,19.85107)                ..(0.39084,0)..controls (1.25941,0.86858) and (2.128,1.73717)                ..(2.99658,2.60574)..controls (5.43402,22.45682) and (9.87572,30.1081)                ..(15.93791,33.6081)..controls (14.87411,32.99391) and (13.81033,32.37975)                ..cycle withpen pencircle scaled 0.2pt;              draw (12.47017,32.24423)..controls (6.40797,28.74423) and (2.43744,20.24191)                ..(0,0.39084)..controls (0.13028,0.26056) and (0.26056,0.13028)                ..(0.39084,0)..controls (2.82828,19.85107) and (6.68434,28.26556)                ..(12.74654,31.76556)..controls (12.65442,31.92513) and (12.56229,32.08467)                ..cycle withpen pencircle scaled 0.2pt;              draw (2.60574,2.99658)..controls (3.14021,7.34944) and (3.7446,12.08865)                ..(5.58054,15.14981)..controls (5.58057,15.14986) and (5.58061,15.14992)                ..(5.58064,15.14996)..controls (6.39726,15.58105) and (7.34497,15.81947)                ..(8.4495,15.81947)..controls (9.31807,16.68805) and (10.18666,17.55664)                ..(11.05524,18.42522)..controls (9.19986,18.42522) and (7.78699,17.75247)                ..(6.69463,16.62376)..controls (5.84612,15.74702) and (4.95805,14.90953)                ..(4.10631,14.03595)..controls (1.36111,11.22037) and (0.63171,5.53574)                ..(0,0.39084)..controls (0.86858,1.25941) and (1.73717,2.128)                ..cycle withpen pencircle scaled 0.2pt;              draw (2.60574,2.99658)..controls (2.73602,2.8663) and (2.8663,2.73602)                ..(2.99658,2.60574)..controls (3.87912,9.79335) and (4.95229,18.03438)                ..(11.44608,18.03438)..controls (11.3158,18.16466) and (11.18552,18.29494)                ..(11.05524,18.42522)..controls (4.56145,18.42522) and (3.48828,10.18419)                ..cycle withpen pencircle scaled 0.2pt;              draw (2.99658,2.60574)..controls (3.53105,6.9586) and (4.13544,11.69781)                ..(5.97137,14.75897)..controls (5.9714,14.75902) and (5.97145,14.75908)                ..(5.97148,14.75912)..controls (6.7881,15.19022) and (7.73581,15.42863)                ..(8.84033,15.42863)..controls (9.70891,16.29721) and (10.5775,17.1658)                ..(11.44608,18.03438)..controls (9.5907,18.03438) and (8.17783,17.36163)                ..(7.08546,16.23293)..controls (6.23695,15.35619) and (5.34889,14.51869)                ..(4.49715,13.64511)..controls (1.75195,10.82953) and (1.02255,5.1449)                ..(0.39084,0)..controls (1.25941,0.86858) and (2.128,1.73717)                ..cycle withpen pencircle scaled 0.2pt;              draw (0,0.39084)..controls (0.13028,0.26056) and (0.26056,0.13028)                ..(0.39084,0)..controls (1.27338,7.1876) and (2.34654,15.42863)                ..(8.84033,15.42863)..controls (8.71005,15.55891) and (8.57977,15.6892)                ..(8.4495,15.81947)..controls (1.9557,15.81947) and (0.88254,7.57845)                ..cycle withpen pencircle scaled 0.2pt;              draw (11.05524,18.42522)..controls (10.18666,17.55664) and (9.31807,16.68805)                ..(8.4495,15.81947)..controls (14.4495,15.81947) and (12.27396,10.31638)                ..(11.05524,0.39084)..controls (11.92381,1.25941) and (12.7924,2.128)                ..(13.66098,2.99658)..controls (14.8797,12.92212) and (17.05524,18.42522)                ..cycle withpen pencircle scaled 0.2pt;              draw (11.44608,18.03438)..controls (12.74173,18.03438) and (13.65614,17.77776)                ..(14.2813,17.2754)..controls (14.28131,17.2754) and (14.28131,17.2754)                ..(14.28133,17.2754)..controls (15.96465,15.1815) and (14.55524,10.27959)                ..(13.66098,2.99658)..controls (13.79126,2.8663) and (13.92154,2.73602)                ..(14.05182,2.60574)..controls (14.90062,9.5186) and (16.21355,14.28624)                ..(14.90535,16.5436)..controls (14.57936,17.10611) and (14.11217,17.57391)                ..(13.54927,17.89926)..controls (12.94624,18.2478) and (12.13252,18.42522)                ..(11.05524,18.42522)..controls (11.18552,18.29494) and (11.3158,18.16466)                ..cycle withpen pencircle scaled 0.2pt;              draw (11.44608,18.03438)..controls (10.5775,17.1658) and (9.70891,16.29721)                ..(8.84033,15.42863)..controls (14.84033,15.42863) and (12.6648,9.92554)                ..(11.44608,0)..controls (12.31465,0.86858) and (13.18324,1.73717)                ..(14.05182,2.60574)..controls (15.27054,12.53128) and (17.44608,18.03438)                ..cycle withpen pencircle scaled 0.2pt;              draw (8.84033,15.42863)..controls (10.13599,15.42863) and (11.0504,15.17201)                ..(11.67555,14.66966)..controls (11.67557,14.66966) and (11.67557,14.66966)                ..(11.67558,14.66966)..controls (13.3589,12.57576) and (11.9495,7.67384)                ..(11.05524,0.39084)..controls (11.18552,0.26056) and (11.3158,0.13028)                ..(11.44608,0)..controls (12.29488,6.91286) and (13.6078,11.6805)                ..(12.2996,13.93785)..controls (11.97362,14.50037) and (11.50642,14.96817)                ..(10.94353,15.29352)..controls (10.3405,15.64206) and (9.52678,15.81947)                ..(8.4495,15.81947)..controls (8.57977,15.6892) and (8.71005,15.55891)                ..cycle withpen pencircle scaled 0.2pt;              % The union         draw (8.84033,15.42863)..controls (10.13599,15.42863) and (11.0504,15.17201)                ..(11.67555,14.66966)..controls (13.35896,12.57596) and (11.94951,7.674)                ..(11.05524,0.39084)..controls (11.18552,0.26056) and (11.3158,0.13028)                ..(11.44608,0)..controls (12.31465,0.86858) and (13.18324,1.73717)                ..(14.05182,2.60574)..controls (14.90062,9.51855) and (16.21353,14.2862)                ..(14.90535,16.5436)..controls (14.58578,17.09502) and (14.13054,17.55544)                ..(13.58244,17.87985)..controls (13.00317,18.2351) and (12.17043,18.42522)                ..(11.05524,18.42522)..controls (9.19986,18.42522) and (7.78699,17.75247)                ..(6.69463,16.62376)..controls (6.18193,16.09401) and (5.6548,15.57858)                ..(5.12996,15.06087)..controls (7.69498,25.93929) and (11.35297,30.96098)                ..(15.93791,33.6081)..controls (15.8458,33.76765) and (15.75366,33.9272)                ..(15.66154,34.08676)..controls (14.59775,33.47258) and (13.53397,32.85841)                ..(12.47017,32.24423)..controls (6.80194,28.97168) and (2.96234,21.32587)                ..(0.49504,4.12018)..controls (0.30708,2.87721) and (0.15076,1.61865)                ..(0,0.39084)..controls (0.13028,0.26056) and (0.26056,0.13028)                ..(0.39084,0)..controls (1.25941,0.86858) and (2.128,1.73717)                ..(2.99658,2.60574)..controls (3.19746,4.24173) and (3.41196,5.79485)                ..(3.63985,7.2692)..controls (4.11122,10.09549) and (4.78354,12.77844)                ..(5.97137,14.75897)..controls (6.78725,15.19) and (7.7353,15.42863)                ..cycle withcolor red withpen pencircle scaled 0.1pt;     endfig;     end;      ![example of paths and their union](http://i.stack.imgur.com/tZNQR.png) FWIW: If you're wondering, I'm making a calligraphic font, which I'm hoping to showcase for the TUG calendar, 2015. The font is based on my handwriting. The _h_ above is a crude approximation:-)


title: Mail merge using datatool with letter class

text: I am trying to adapt this question/answer on how to do mail merge to work with the `letter` document class. The linked answer works great for me, but when I try to change the document class to `letter` I keep getting an `error| Argument on \@tempc has an extra }`, but it seems that my braces are balanced. Are `letter` and `datatool` incompatible? Here is my example. How can I better understand this error? Thanks.               \documentclass{letter}     \usepackage{datatool}     \usepackage{parskip}          \signature{Richard Herron}     \address{New York, NY}          \makeatletter     % Blank/missing fields commands     % \skipblank adds \\ to filled field     % * version adds \space instead of newline     \newcommand\skipblank{\@ifstar\@spskip\@nlskip}     \newcommand\@nlskip[1]{\ifthenelse{\DTLiseq{#1}{}}{\relax}{#1\\}}     \newcommand\@spskip[1]{\ifthenelse{\DTLiseq{#1}{}}{\relax}{#1\space}}     % \checkblank replaces blank fields with ***     \newcommand\checkblank[1]{\ifthenelse{\DTLiseq{#1}{}}{***}{#1}}     \makeatother          \begin{document}          \DTLloaddb{addresses}{mail-merge-addresses.csv}      \DTLforeach*{addresses}{%         \addtitle=Title,         \firstname=FirstName,         \lastname=LastName,         \position=Position,         \addressi=Address1,         \addressii=Address2,         \addressiii=Address3,         \city=City,         \state=State,         \zip=Zip,     \country=Country}     {%         \begin{letter}{\checkblank{\addtitle}\ \firstname\ \lastname\\             \skipblank{\position}             \skipblank{\addressi}             \skipblank{\addressii}             \skipblank{\addressiii}             \city, \state\ \zip\\             \skipblank*{\country}         }              \opening{Dear \checkblank{\addtitle}\ \lastname,}              This is the text of the letter.              \closing{Sincerely,}          \end{letter}     }          \end{document}      Edit: I should add that I'm using the same .csv file database that the linked answer uses, but I get the same results if I remove the blank entries.               Title,  LastName,   FirstName,  Position,   Address1,   Address2,   Address3,   City,   State,  Zip,    Country     Dr.,    Smith,  James,  Chair,  Dept. of Physics,   University of Somewhere,    434 East Hall,  Cambridge,  MA, 02139,       Mr.,    Jones,  Bill,   Director of Human Resources,    ,   University of Nowhere,  A203 King St.,  Stanford,   CA, 94305,       ,   Brown,  Sally,  ,   Firstline,  ,   3rdline,    East Lansing,   MI, ,   USA


title: Using the long form of a section title in the TOC

text: I would like to use a full section title for:   * the section title itself (of course)   * the table of contents   * the running heads But, I would like a short name to be used with `\nameref{}`, because otherwise the reference is too long to work into the surrounding text effectively. (The reader finding the section is not a problem because the sections are in alphabetical order and the short version will be the beginning of the section title.) Nameref uses the short title if one is provided, but then the short title ends up in the table of contents as well, which I don't want. Is there a way to get the table of contents to use the long titles, leaving the short title for nameref? Alternatively, if there's a way to specify a different title than the section title itself for nameref to use, that would work as well. I found many other questions and tips about using a short version in page headers and a long version in the table of contents, but nothing that involved `\nameref{}`. The page header is not a problem as I'm using `memoir` and can easily define the page header separately (as the same as the full title, in this case). MWE:               \documentclass[twocolumn]{memoir}          \usepackage{hyperref}     \headnameref          % headers     \copypagestyle{maudcyclo}{plain}     \createmark{section}{both}{shownumber}{\sectionname}{}     \nouppercaseheads     \makeevenhead{maudcyclo}{\oldstylenums{\thepage}}{\scshape\leftmark}{}     \makeoddhead{maudcyclo}{}{\scshape\rightmark}{\oldstylenums{\thepage}}     \makeevenfoot{maudcyclo}{}{}{}     \makeoddfoot{maudcyclo}{}{}{}          \makeevenhead{plain}{\oldstylenums{\thepage}}{\leftmark}{}     \makeoddhead{plain}{}{\rightmark}{\oldstylenums{\thepage}}     \makeevenfoot{plain}{}{}{}     \makeoddfoot{plain}{}{}{}          % don't number chapters and below     \setcounter{secnumdepth}{-1}          \pagestyle{maudcyclo} % use header style          \begin{document}     \tableofcontents     \clearpage          \section[Section One][S1]{Section One}     \label{sec1}     Here is some text for section one.     \clearpage          \section[Section Two][S2]{Section Two}     Here I will reference \nameref{sec1}.          \end{document}      The above MWE works properly except for the fact that it places `S1` and `S2` in the header, whereas I want `Section One` and `Section Two` there.


title: How to know available font size?

text: I would like to use "Helvetica" font, thus, for example I defined a normal shape with medium series of helvetica by this way :               \fontsize{<size>}{<lineskip>}\usefont{OT1}{phv}{m}{n}      But how can I know the available `size` and `lineskip`? Can I set what I want ?


title: In Beamer, [shrink] reduces textwidth

text: I have a slide in Beamer that has a lot of text, so I'd like to use shrink to make it all fit. On other Beamer presentations it works perfectly, but in this one shrink also reduces the textwidth, so that the text is left justified and does not stretch all the way across the width of the slide. Here is my code for this slide:               \frame[shrink]{     \section{section}     \frametitle{title}          A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence           Three items:     \begin{itemize}     \item long item  long item  long item  long item  long item  long item      \item long item  long item  long item  long item  long item      \item long item  long item  long item  long item  long item  long item  long item      \end{itemize}          A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence           \begin{block}{Concept}     A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence      \end{block}          \begin{block}{Concept}     A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence A very long sentence      \end{block}     }


title: Compilation fail standalone & pst-solides3d

text: I've got a `PStricks` schema made with both `pst-solides3d` and `pst-3dplot`, put (thanks to the standalone package) apart in a different file. The schema, when compiled itself, doesn't make any problems, and the output is normal, as it should be. This is the preamble of my main document :               \documentclass[a4paper,11pt]{report}     \usepackage{standalone}     \usepackage{a4wide}     \usepackage[french]{babel}     \NoAutoSpaceBeforeFDP % empêcher d'ajouter un espace après :     \usepackage[table, usenames,dvips, dvipsnames]{xcolor}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsmath, here}     \usepackage[hyperindex, pdfborder={0 0 0}]{hyperref} % Table des matières & références interactive     \usepackage{url}     \usepackage{wrapfig}     \usepackage{fancyhdr}     \usepackage{fancyref}          \usepackage{pstricks,  pst-circ, pst-plot, pst-3dplot, pst-solides3d}     \usepackage[locale = FR]{siunitx}      If I load the `pst-solides3d` (required to draw the schema in the included file), it doesn't compile, and I got this as error :               Error: /typecheck in --length--     Operand stack:     71.7882   -207.763   71.7882   -193.537   71.7882   -179.31   71.7882   -179.31        [...]     809.324   -165.366   809.324   -165.366   1   1     Execution stack:     %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2       %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1       %stopped_push   1900   1   3   %oparray_pop   1899   1   3   %oparray_pop   18831   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2       --nostringval--   --nostringval--   --nostringval--   2   %stopped_push       --nostringval--       --nostringval--     Dictionary stack:     --dict:1163/1684(ro)(G)--   --dict:1/20(G)--   --dict:139/200(L)--     --dict:747/1012(L)--   --dict:227/300(L)--   --dict:62/200(L)--   --dict:57/75(L)--       --dict:211/313(L)--   --dict:72/140(L)--   --dict:0/10(G)--   --dict:18/20(L)--           --dict:4/50(ro)(G)--   --dict:56/71(L)--     Current allocation mode is local     Last OS error: No such file or directory     Current file position is 10226107     GPL Ghostscript 9.10: Unrecoverable error, exit code 1      Moreover, if I don't load the package `pst-solides3d`, LaTeX doesn't recognise the `pst-solides3d` macros, and I've got errors, and it doesn't compile either... I don't know what to do, since the apart file compile, and when included in the main, it compile no more... Is it an interaction with others packages ? Here is the code PSTricks I use :               \documentclass[￼pstricks, float]{standalone}     \usepackage{pstricks, pst-circ, pst-plot, pst-3dplot, pst-solides3d}     \begin{document}          %\bgroup% holds everything local     \begin{pspicture}[showgrid=false](-1,-2)(9,6)         \psset{unit=0.5, Alpha=45, Beta=15,                 viewpoint=60 45 15 rtp2xyz, Decran=120, lightsrc=viewpoint,                 linewidth=0.15pt,solidmemory}         %%%%%%               \defFunction{K}(t){t cos 2.5 mul}{t sin 2.5 mul}{}         \psSolid[object=prisme,h=0.15,             %fillcolor=yellow,             RotX=-90,             resolution=50,             action=none,name=fond,             base=90 270 {K} CourbeR2+](0,-0.15,2.5)         \defFunction{F}(t){t cos 2.5 mul}{t sin 2.5 mul}{}         \defFunction{G}(t){t cos 2.4 mul}{t sin 2.4 mul}{}         \psSolid[object=prisme,             h=8,%fillcolor=yellow,             RotX=90,ngrid=1 0,             resolution=50,             base=90 270 {F} CourbeR2+             270 90 {G} CourbeR2+,             action=none,name=can](0,8,2.5)         \psSolid[linewidth=0.15pt,                 object=cylindre,                 h=0.1,r=0.25,                 fillcolor=red!50,                 action=none,name=pas,                 mode=4,                 ngrid=1 20]                 (0, 2, -0.1)             \psSolid[linewidth=0.15pt,                 object=cylindre,                 h=0.3,r=0.15,                 fillcolor=red!50,                 action=none,name=bout,                 mode=4,                 ngrid=1 20]                 (0, 2, -0.4)             \psSolid[object=fusion,                 action=draw**, linewidth=0.2pt,                 base=can fond pas bout](0,0,0)         %\composeSolid               \psSolid[linewidth=0.15pt,                 object=cylindre,                 h=0.1,r=0.15,                 fillcolor=red!50,                 mode=4,                 action=none,name=filet,                 ngrid=1 20]                 (0, 2, 0)         \psSolid[linewidth=0.15pt,                 object=cylindre,                 h=1.5625,r=0.05,                 fillcolor=green,                 mode=4,                 action=none,name=antenne,                 ngrid=1 10]                 (0, 2, 0.1)          \psSolid[object=fusion,                 action=draw**, linewidth=0.2pt,                 base=filet antenne](0,0,0)         \composeSolid          %   \axesIIID(4,9,6)     %   \pstThreeDCoor[xMin=0,xMax=4.5,yMin=0,yMax=9,zMin=0,zMax=6,IIIDticks]              \psset{linewidth=0.05, linecolor=black,arrowsize=0.2}            \pstThreeDLine{<->}(0, 0, 1.7)(0, 2, 1.7)             \pstPlanePut[plane=yz,                 planecorr=normal](0, 2, 4.1){$\frac{L_g}{4}$}         \pstThreeDLine{<->}(0, 2.7, 0.1)(0, 2.7, 1.6625)             \pstPlanePut[plane=yz,                 planecorr=normal](0, 6, 1.6){\colorbox{white!10}{$\frac{L_o}{4}$}}           \pstThreeDLine{<->}(0.5, 0, 0.1)(0.5, 0, 4.9)             \pstPlanePut[plane=xz,                 planecorr=normal](2.2, 0, 4.4){$D$}         \pstThreeDLine{<->}(0.5, 0, 0)(0.5, 8, 0)             \pstPlanePut[plane=yz,                 planecorr=xyrot](0.5, 8, -1){$\frac{3}{4}L_g$}         \end{pspicture}     %\egroup     \end{document}      And here's what I got when compiles separately : ![enter image description here](http://i.stack.imgur.com/U9iJu.png)


title: separation of reference and footnote numbers by a comma

text: I'm using `revtex4-1` as documentclass and would like to place a footnote after a citation,               \cite{...}\footnote{}      However, the consecutive superscript numbers in the resulting pdf are not separated by a comma. How to solve this issue without having to place a `$^,$` in between? Minimal working example:               \documentclass[prb,showpacs,superscriptaddress,groupedaddress,twocolumn]{revtex4-1}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{verbatim}     \usepackage[verbose,hypertexnames=false,bookmarksopenlevel=1,filecolor=blue,     linkcolor=blue,citecolor=blue,pdfstartview=FitH,bookmarksopen,bookmarksnumbered,     colorlinks,plainpages=false,linktocpage]{hyperref}          \begin{document}     \title{test}     Hello world\cite{test}\footnote{hello}          \begin{thebibliography}{6}     \bibitem{test} James D. Murray, William vanRyper: {\sl Graphics File         Formats}. O'Reilly\&Associates, Inc., Sebastopol, CA, 1994.     \end{thebibliography}     \end{document}


title: adding captions outside of a figure or table?

text: For my thesis, I have written a computer program that reads in a parameter file. I want to show the parameter file in my thesis but am not sure what the best way to go about this is. Ultimately, I want to show the parameter file in some sort of typewriter-like font (say Courier) with a caption. I would also like to show the line numbers for the parameter file. What's the best way to do this? I know how to do line numbers and change the font, but I don't know how to give a caption to some random text that is not really a figure. Aside: should the parameter file be shown as a "figure" or a "table"?


title: How can we change only text font size (not math) of all document in pdflatex?

text: How can I change only the text font size ( _not_ math) of _all_ documents in pdflatex? (I searched for an answer without success.)


title: How to color Petersen Graph using tkz-berge?

text: I am using the following code to draw a Petersen graph in LaTeX beamer:               \documentclass{article}     \usepackage{tkz-berge}     \begin{document}     \begin{tikzpicture}[rotate=90]     \GraphInit[vstyle=Art]     \grPetersen[RA=5, RB=3]     \end{tikzpicture}     \end{document}      ![The graph, all vertices with the same colour](http://i.stack.imgur.com/xs7bc.png) It outputs a Petersen graph with all the nodes. I can't find how to color the vertices differently. I figured out how to change the color of all the vertices, but this is not what I need. I need to color one vertex red, then an adjacent one say blue, and so on. How to do this?


title: How do ligatures work?

text: The TeXbook doesn't explain ligatures more than presenting the existing ones, the same for TeX By Topic. So, how are they defined? Is there a third way besides active characters and control sequences to ask TeX to do something unusual? Can we create new ones?


title: Insert tall image in one page

text: I have a very tall image (591 x 8383) which I want to put as Appendix in my Latex document. How can I place this picture vertically aligned on a single (really big) page? I have tried               \includepdf[fitpaper]{images/ctt2.pdf}      This just shows the complete image scaled down so it fits on one standard latex page. If i try it without the fitpaper argument it is the size it should be but it gets cut off at the point where it would go beyond one page. Thanks


title: using csquotes' shorthands in English

text: Is there a special reason why `csquotes`' shorthands cannot be used in English text or am I overlooking something? The `\enquote` command works fine. It's true that English style quotes are amongst the easiest to type in LaTeX, but `csquotes` would still be nice to use in English for multi-lingual documents, to differentiate between the closing quote and apostrophe, or to separate writing the text and deciding whether to use singe or double quotes.. I hoped the answer to this question could work for quotes as well, but I couldn't get it working..               \documentclass{scrartcl}          \usepackage[main=british, german, french]{babel}     \usepackage[babel=true]{csquotes}     \defineshorthand{"`}{\openautoquote}     \defineshorthand{"'}{\closeautoquote}          \begin{document}     "`Text in "`British"'"'\\     \enquote{enquote} \enquote*{enquote*}          \selectlanguage{german}%     "`Text auf "`Deutsch"'"'\\     \enquote{enquote} \enquote*{enquote*}          \selectlanguage{french}%     "`Texte en "`Fran\c{c}ais"'"'\\     \enquote{enquote} \enquote*{enquote*}     \end{document}      ![quotetest](http://i.stack.imgur.com/7ojUs.png)


title: Is there a difference between \ge and \geq (or equivalentely between \le and leq)?

text: I have always used `\geq`, but recently saw a document where the person uses `\ge`. Once compiled, they look the same, but I searched to see if there was any difference between the two or a guideline as to which one to use, and most places say they are the same, but this source says > For greater than or equal to use the \ge command. The \geq command means > greater than or equivalent to. which makes no sense to me. The question is then: are there any differences between the two, or any recommendation as to which one to use (what I have in mind is, for example, the case of `eqnarray` vs `align`, or `$$` vs `\[ \]`, where only the second option in each case should be used).


title: TeX Live 2011: tlmgr not using xz after system upgrade

text: I have moved my TeX Live installation directories from one computer to another when I bought a newer system. I simply did a `tar cfj texlive.tbz /texlive/` (the root directory where I had put TeX Live) and later unpacked it using `tar xjf texlive.tbz`. Almost everything works fine, including software updates using `tlmgr`, both in the command line and using the GUI. The only problem is that `tlmgr` is not handling backups properly. This is the tail of a `tlmgr update --all` command:               [14/16, 01:56/01:56] update: collection-bibtexextra [1k] (24610 -> 25686) ... done     Can't exec "/tmp/fecOgscNe7/xz.x86_64-linux": Permissão negada at /opt/texlive/2011/tlpkg/TeXLive/TLPOBJ.pm line 636.     /usr/local/bin/tlmgr: Couldn't find /opt/texlive/2011/tlpkg/backups/collection-fontutils.r24759.tar.xz     [15/16, 01:57/01:57] update: collection-fontutils [1k] (24759 -> 25704) ... done     Can't exec "/tmp/fecOgscNe7/xz.x86_64-linux": Permissão negada at /opt/texlive/2011/tlpkg/TeXLive/TLPOBJ.pm line 636.     /usr/local/bin/tlmgr: Couldn't find /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25679.tar.xz     [16/16, 01:57/01:57] update: collection-latexextra [4k] (25679 -> 25713) ... done     running mktexlsr ...     done running mktexlsr.     running updmap-sys ...     done running updmap-sys.     Completed.      When I do an `ls` in the `/opt/texlive/2011/tlpkg/backups` directory querying for the filenames not found I see this               -rw-r--r-- 1 root root  3888 Mar  1 20:33 /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25489.tar.xz     -rw-r--r-- 1 root root 20480 Mar  6 21:54 /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25534.tar     -rw-r--r-- 1 root root 20480 Mar  9 23:35 /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25552.tar     -rw-r--r-- 1 root root 20480 Mar 16 22:24 /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25574.tar     -rw-r--r-- 1 root root 20480 Mar 19 20:47 /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25620.tar     -rw-r--r-- 1 root root 20480 Mar 25 21:28 /opt/texlive/2011/tlpkg/backups/collection-latexextra.r25679.tar      The older versions, which are compressed, were manually compressed by me, in the hope that tlmgr would see them in the next update. But it does not happen. TeX Live is creating the backups uncompressed (`.tar` only) and cannot uncompress them if I compress them manually. It seems that `tlmgr` is not detecting properly the `xz` program. What is wrong? How to solve this so that `tlmgr` does not spit these errors any more?


title: Split nodes in TikZ math nodes matrix with Beamer?

text: TikZ matrices and Beamer do not work smooth -- for example, we have to use ampersand replacement work around. Is there a similar work around that allow one to use `\nodepart` ? The MWE is this:               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{external,automata,trees,positioning,shadows,matrix,     arrows,shapes.geometric,shapes.multipart,trees,calc, fit, decorations.pathmorphing}     \begin{document}      \begin{frame}     \begin{tizpicture}      \node [circle split, draw] {outside matrix \nodepart{lower}works!};      \end{tikzpicture}      \begin{tikzpicture}      \matrix [matrix of math nodes,ampersand replacement=\&, nodes={circle split,draw}]      {      8 \& 1 \& 6 \\      3 \& 5 \&  7\nodepart{lower}2 \\      4 \& 9 \& 2 \\      };      \end{tikzpicture}      \end{frame}      \end{document}


title: Vertical whitespace inside tikz node

text: I have a tikz node that looks like this: ![enter image description here](http://i.stack.imgur.com/E2PAh.png) It was generated using the following code:               \documentclass[a4paper,10pt]{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}     \node[align=center]{%     Tableau 0\\     \smallskip          \begin{tabular}{ll}TEXT\\TEXT\end{tabular}     };%     \end{tikzpicture}     \end{document}      You can see that the `\smallskip` was ignored. I suspect the problem was that TeX was not in the right mode -- vertical mode? I thought I would get around the problem by wrapping the 'Tableau 0' and `\\smallskip` in a vertical-mode box. But unfortunately, it looks like all of those boxes require you to specify their width (cf. What are the different kinds of boxes in (La)TeX? ), and I would need something that stretches to the width of its content. What's the easiest way to insert the whitespace here?


title: 3-input logic gate on circuitikz

text: How can I draw a 3-input logic gate with circuitikz? Is there a way to do so? For example,               \begin{circuitikz}     \draw       (0,0) node[and port](myand){}       (myand.in 1) node[left]{A}       (myand.in 2) node[left]{B}       (myand.in 3) node[left]{C}       (myand.out) node[right]{Y}     \end{circuitikz}