title: Tikzpicture in a two column way using a one column .cls template

text: I'm using a `.cls` IEEEtran from IEEE available here http://www.ieee.org/conferences_events/conferences/publishing/templates.html; and all document is in two columns. I'm ploting using `pgfplots` a graphic but it is using just one column and i want that it occupies all the two columns. An example code of the plot is:               \documentclass[conference]{IEEEtran}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{booktabs}     \usepackage{amssymb}     \usepackage{array}     \usepackage{subfigure}     \usepackage[english]{babel}     \usepackage{float}     \usepackage{multirow}     \usepackage{graphicx}     \usepackage{icomma}     \usepackage{tikz}     \usepackage{pgfplots}          \newcounter{groupcount}     \pgfplotsset{         draw group line/.style n args={5}{             after end axis/.append code={                 \setcounter{groupcount}{0}                 \pgfplotstableforeachcolumnelement{#1}\of\datatable\as\cell{%                     \def\temp{#2}                     \ifx\temp\cell                         \ifnum\thegroupcount=0                             \stepcounter{groupcount}                             \pgfplotstablegetelem{\pgfplotstablerow}{[index]0}\of\datatable                             \coordinate [yshift=#4] (startgroup) at (axis cs:\pgfplotsretval,0);                         \else                             \pgfplotstablegetelem{\pgfplotstablerow}{[index]0}\of\datatable                             \coordinate [yshift=#4] (endgroup) at (axis cs:\pgfplotsretval,0);                         \fi                     \else                         \ifnum\thegroupcount=1                             \setcounter{groupcount}{0}                             \draw [                                 shorten >=-#5,                                 shorten <=-#5                             ] (startgroup) -- node [anchor=north] {#3} (endgroup);                         \fi                     \fi                 }                 \ifnum\thegroupcount=1                             \setcounter{groupcount}{0}                             \draw [                                 shorten >=-#5,                                 shorten <=-#5                             ] (startgroup) -- node [anchor=north] {#3} (endgroup);                 \fi             }         }     }     \pgfplotstableread{     %Res. Number    Res A.  Res.B   Group     1               0.5     4.224   1     2               0.6     4.124   1     3               0.7     4.067   1     4               0.8     4.88    1     5               0.9     4.391   1     6               1       4.273   1     7               1.1     5.506   2     8               1.2     5.391   2     9               1.3     5.52    2     10              1.4     5.418   2     11              1.5     5.285   2     12              1.6     5.194   2     13              0.5     6.224   3     14              0.6     6.124   3     15              .7      6.067   3     16              0.8     6.88    3     17              0.9     6.391   3     18              1       6.273   3     19              1.1     8.506   4     20              1.2     8.391   4     21              1.3     8.52    4     22              1.4     8.418   4     23              1.5     8.285   4     24              1.6     8.194   4     }\sindezoito          \ifCLASSINFOpdf     \else     \fi          \hyphenation{op-tical net-works semi-conduc-tor}               \begin{document}          \begin{figure}[b!]     \begin{tikzpicture}     \begin{axis}[ybar stacked, compat=newest, %Better label placement     enlarge y limits=false,     ymin=0,     enlarge x limits = .1,     bar width=12pt,     legend style={at={(0.5,-0.15)},anchor=north,legend columns=0},     x tick label style={rotate=45,anchor=east},     ylabel={Power $(mW)$},     xtick=data,     nodes near coords=\rotatebox{90}{\pgfmathprintnumber\pgfplotspointmeta},     axis lines*=left,     y axis line style={opacity=0},     yticklabels={\empty},     ytick style={draw=none},     cycle list={         {fill=black!60,draw=black!60},         {fill=black!40,draw=black!40},         {fill=black!20,draw=black!20}     },     axis on top,     major grid style=white,     ymajorgrids,     xticklabels =   {BS,BS-A,HP,HP-A,LP,LP-A,BP,BP-A,HP,HP-A,LP,LP-A,                      BS,BS-A,HP,HP-A,LP,LP-A,BP,BP-A,HP,HP-A,LP,LP-A},     legend style={           font=\footnotesize,           cells={anchor=west},           legend columns=5,           at={(0.5,-0.2)},           anchor=north,           /tikz/every even column/.append style={column sep=0.2cm}         },         %           draw group line={[index]3}{1}{30c - 180}{-3.5ex}{7pt},     %        draw group line={[index]3}{2}{50c - 180}{-3.5ex}{7pt},     %        draw group line={[index]3}{1}{30c - 350}{-3.5ex}{7pt},     %        draw group line={[index]3}{2}{50c - 350}{-3.5ex}{7pt},                    ]               \addplot table[x index=0,y index=1] \sindezoito;     \addplot table[x index=0,y index=2] \sindezoito;     \legend{Switching, Internal Cell}     \end{axis}     \end{tikzpicture}     \caption{Power results examples forum.}     \label{fig:0.18.sin}     \end{figure}          \end{document}      I tried to use:               \begin{figure*}     \end{figure*}      But it didn't work. Anyone may help me with that?


title: I am having an issue with an included standalone TikZ picture

text: I am not sure if code will do much good here. I have included many standalone `TikZ` pictures but this pictures is the only one to act differently. Here is the picture in compiled from the standalone `.tex` code. ![enter image description here](http://i.stack.imgur.com/lqqXp.png) Now here is the picture in the main `.tex` file. Notice the location of the `alpha_2` and the arc in the main file which I just compiled again to verify everything was updated. ![enter image description here](http://i.stack.imgur.com/3KuE1.png) I don't know what to do about this discrepancy and how to correct it. The image is a previous run of the standalone that was incorrect. However, it refuses to update. This has never been an issue before. * * * In the main file, I am using the following code to include the `TikZ` picture. Additionally, I have `\usepackage{standalone}` in the preample of the main file.               \begin{figure*}       \centering       \includestandalone{flybytrailingside}       \caption[Trailing Side Flyby]{A trailing side (or sunlit side) planetary                    flyby.}       \label{trailingflyby}     \end{figure*}      For the `TikZ` picture, I am using the document class `standalone` and then drawing the picture. The code for `\alpha_2` is               \draw (3.285, 2.15) arc[radius = .125, start angle = 90, end angle = -90]       node[left, font = \tiny, inner sep = 0] {\(\alpha_2\)};      * * *               \documentclass[convert = false]{standalone}          \usepackage[utf8]{inputenc}               \renewcommand{\rmdefault}{ppl}                        \linespread{1.05}                     \usepackage[scaled]{helvet}                                                   \usepackage{courier}                                                                \usepackage{eulervm}                           \normalfont     \usepackage[T1]{fontenc}     \usepackage{textcomp}          \usepackage{tikz}     \usepackage{fp}          \usetikzlibrary{arrows}     \usetikzlibrary{calc}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{backgrounds}     \usetikzlibrary{intersections}     \usetikzlibrary{fixedpointarithmetic}          \begin{document}     \begin{tikzpicture}[       every label/.append style = {font = \tiny},       line join = round, line cap = round, >=triangle 45,       %scale = .04, transform shape                                                            ]       \def\angle{45}       \def\peri{.5}       \def\planet{.4}       \def\a{1}       \def\circrad{3.5}       \def\dom{3.15}            \pgfmathsetmacro{\b}{\a / (tan(\angle))}            \coordinate (O) at (0, 0);            \draw[-latex] (O) -- (\circrad, 0) node[below left, font = \tiny]       {\(\mathbf{V}\)};       \draw[-latex] (\circrad, 0) -- +({1}, 0) node[right, font = \tiny]       {\(\hat{\mathbf{u}}_V\)};       \draw[-latex] (0, \circrad) -- +(0, {1}) node[above, font = \tiny]       {\(\hat{\mathbf{u}}_S\)};       \draw[thick, gray, name path global = soi] (O)       circle[radius = \circrad];            \begin{scope}[rotate = {-110}, shift = {(0, {-\a - \peri})},         decoration = {markings,           mark = at position 0.20 with {\arrow{latex reversed}},           mark = at position 0.80 with {\arrow{latex reversed}}         }]         \draw[red, postaction = decorate, name path global = hyper]         plot[domain = -\dom:\dom, samples = 500]         ({\x}, {\a * sqrt(1 + (\x / \b)^2)});         \draw[dashed] plot[domain = 0:\dom, samples = 100] ({\x}, {\a / \b * \x})         coordinate (P1);              \path plot[domain = 0:-\dom, samples = 100] ({\x}, {-\a / \b * \x})         coordinate (P2);              \draw[dashed] plot[domain = -\dom:0, samples = 100] ({\x}, {-\a / \b * \x})         coordinate (I);         \draw plot[domain = 0:.5, samples = 100] ({\x}, {-\a / \b * \x})         coordinate (P3);         \draw[dashed] (O) -- (I);              \shadedraw[gray, inner color = blue!40!green,         outer color = black!50!blue!50] (O) circle[radius = \planet];              \draw[fixed point arithmetic, latex-latex] let           \p0 = (I),           \p1 = (O),           \p2 = (P1),           \n1 = {atan2(\x1 - \x0, \y1 - \y0)},           \n2 = {atan2(\x2 - \x0, \y2 - \y0)},           \n3 = {.75cm},           \n4 = {(\n1 + \n2) / 2}         in (I) +(\n1:\n3) arc[radius = \n3, start angle = \n1, end angle = \n2]         node[fill = white, inner sep = 0, font = \tiny] at (\n4:.5cm) {\(\beta\)};              \draw[fixed point arithmetic, latex-latex] let           \p0 = (I),           \p1 = (O),           \p2 = (P2),           \n1 = {atan2(\x1 - \x0, \y1 - \y0)},           \n2 = {atan2(\x2 - \x0, \y2 - \y0)},           \n3 = {.75cm},           \n4 = {(\n1 + \n2) / 2}         in (I) +(\n1:\n3) arc[radius = \n3, start angle = \n1, end angle = \n2]         node[fill = white, inner sep = 0, font = \tiny] at (\n4:.5cm) {\(\beta\)};              \draw[fixed point arithmetic, -latex] let           \p0 = (I),           \p1 = (P3),           \p2 = (P1),           \n1 = {atan2(\x1 - \x0, \y1 - \y0)},           \n2 = {atan2(\x2 - \x0, \y2 - \y0)},           \n3 = {.75cm},           \n4 = {(\n1 + \n2) / 2}         in (I) +(\n1:\n3) arc[radius = \n3, start angle = \n1, end angle = \n2]         node[fill = white, inner sep = 0, font = \tiny] at (\n4:\n3) {\(\delta\)};       \end{scope}            \node[name intersections = {of = soi and hyper}] (P4) at       ($(intersection-2)$) {};            \draw[-latex] (P4.center) -- +(1.5, 0) node[font = \tiny, below left]       {\(\mathbf{V}\)} coordinate (P5);       \draw (P5) -- +(.5, 0) coordinate (P6);            \path[name path global = circ] (P4.center) circle[radius = 1bp];       \path[name intersections = {of = circ and hyper}] (P4.center) --       ($(intersection-2)!.75cm!(intersection-1)$) coordinate (P7);            \draw[-latex] (P5) -- +($(P7) - (P4)$) node[font = \tiny, right]       {\(\mathbf{v}_{\infty_1}\)} coordinate (P8);       \draw[-latex] (P4.center) -- (P8) node[font = \tiny, above,       inner sep = 0, pos = .65] {\(\mathbf{V}_1^{(v)}\)};            \node[name intersections = {of = soi and hyper}] (P9) at ($(intersection-1)$)       {};            \draw[-latex] (P9.center) -- +(1.5, 0) node[font = \tiny, below left]       {\(\mathbf{V}\)} coordinate (P10);       \draw (P10) -- +(.65, 0) coordinate (P11);            \path[name path global = circ2] (P9.center) circle[radius = 1bp];       \path[name intersections = {of = circ2 and hyper}] (P9.center) --       ($(intersection-2)!.75cm!(intersection-1)$) coordinate (P12);            \draw[-latex] (P10) -- +($(P12) - (P9)$) node[font = \tiny, pos =1.25]       {\(\mathbf{v}_{\infty_2}\)} coordinate (P13);       \draw[-latex] (P9.center) -- (P13) node[font = \tiny, fill = white,       inner sep = 0, pos = .5, above = .1cm] {\(\mathbf{V}_2^{(v)}\)};            \draw[fixed point arithmetic, -latex] let         \p0 = (P4.center),         \p1 = (P5),         \p2 = (P8),         \n1 = {atan2(\x1 - \x0, \y1 - \y0)},         \n2 = {atan2(\x2 - \x0, \y2 - \y0)},         \n3 = {.75cm},         \n4 = {(\n1 + \n2) / 2}       in (P4.center) +(\n1:\n3) arc[radius = \n3, start angle = \n1,       end angle = \n2] node[fill = white, inner sep = 0, font = \tiny] at       ([shift = (P4.center)] \n4:1cm) {\(\alpha_1\)};            \draw[fixed point arithmetic, -latex] let         \p0 = (P5),         \p1 = (P6),         \p2 = (P8),         \n1 = {atan2(\x1 - \x0, \y1 - \y0)},         \n2 = {atan2(\x2 - \x0, \y2 - \y0)},         \n3 = {.45cm},         \n4 = {(\n1 + \n2) / 2}       in (P5) +(\n1:\n3) arc[radius = \n3, start angle = \n1,       end angle = \n2] node[fill = white, inner sep = 0, font = \tiny] at       ([shift = (P5)] \n4:\n3) {\(\phi_1\)};       %{\pgfmathparse{\n2 - \n1}%                                                              %  $\pgfmathprintnumber{\pgfmathresult}^{\circ}$                                         %};                                                                                \draw[fixed point arithmetic] let         \p0 = (P9.center),         \p1 = (P10),         \p2 = (P13),         \n1 = {atan2(\x1 - \x0, \y1 - \y0)},         \n2 = {atan2(\x2 - \x0, \y2 - \y0)},         \n3 = {.5cm},         \n4 = {(\n1 + \n2) / 2}       in (P9.center) +(\n1:\n3) arc[radius = \n3, start angle = \n1,       end angle = \n2];            \draw[fixed point arithmetic] let         \p0 = (P10),         \p1 = (P11),         \p2 = (P13),         \n1 = {atan2(\x1 - \x0, \y1 - \y0)},         \n2 = {atan2(\x2 - \x0, \y2 - \y0)},         \n3 = {.5cm},         \n4 = {(\n1 + \n2) / 2}       in (P10) +(\n1:\n3) arc[radius = \n3, start angle = \n1,       end angle = \n2] node[fill = white, inner sep = 0, font = \tiny] at       ([shift = (P10)] \n4:.7cm) {\(\phi_2\)};       %{\pgfmathparse{\n2 - \n1}%                                                              %  $\pgfmathprintnumber{\pgfmathresult}^{\circ}$                                         %};                                                                                \begin{scope}[on background layer]         \draw[dashed] (O) -- +($(O) - 0.65*(I)$) coordinate (P14);       \end{scope}            \draw[latex-] (P14) -- +($(P4) - (P7)$) node[font = \tiny, left]       {\(\mathbf{v}_{\infty_1}\)} coordinate (P15);       \draw[-latex] (P15) -- +($(P12) - (P9)$) node[font = \tiny, below]       {\(\mathbf{v}_{\infty_2}\)} coordinate (P16);       \draw[-latex] (P14) -- (P16) node[font = \tiny, pos = .75, above]       {\(\Delta\mathbf{V}^{(v)}\)};            \draw[fixed point arithmetic] let         \p0 = (P15),         \p1 = (P14),         \p2 = (P16),         \n1 = {atan2(\x1 - \x0, \y1 - \y0)},         \n2 = {atan2(\x2 - \x0, \y2 - \y0)},         \n3 = {.25cm},         \n4 = {(\n1 + \n2) / 2}       in (P15) +(\n1:\n3) arc[radius = \n3, start angle = \n1,       end angle = \n2] node[inner sep = 0, font = \tiny, inner sep = 0,       fill = white] at ([shift = (P15)] \n4:\n3) {\(\delta\)};            \draw (3.285, 2.15) arc[radius = .125, start angle = 90, end angle = -90]       node[left, font = \tiny, inner sep = 0] {\(\alpha_2\)};     \end{tikzpicture}     \end{document}      I would like to add that this problem just occurred again with a new standalone. Here is the picture compiled from the standalone: ![enter image description here](http://i.stack.imgur.com/kEgrV.png) and here is the picture in the document: This picture was just created, compiled, then added to the main document, and compiled. The code can be found here: TikZ: drawing an evolution of an ellipse to a hyperbola with the same focus ![enter image description here](http://i.stack.imgur.com/5hIcf.png)


title: Fontfamily with XeLaTeX

text: I'm trying to install a custom fontfamily, named Agenda, in my Latex document. I use XeLatex, so i tried to load the font with \fontspec: Using this code, the font works great:               \documentclass{scrartcl}          \usepackage[utf8]{inputenc}      \usepackage[T1]{fontenc}      \usepackage[german]{babel}      \usepackage[a4paper]{geometry}      \geometry{verbose,tmargin=10mm,bmargin=10mm,lmargin=10mm,rmargin=5mm}           \usepackage{fontspec}          \begin{document}     \newfontfamily\bodyfont[]{Agenda}     \defaultfontfeatures{Mapping=tex-text}     \setmainfont[Mapping=tex-text, Color=textcolor]{Agenda Medium}      hello \textbf{world}     \end{document}      Adding a word with an "umlaut" to the text, like "Änderung" or " "Anderung", I get the error : Type2 Charstring Parser: Parsing charstring failed: (stataus=-1, stack=5). When I change the font to a windows system font font like Arial:               \newfontfamily\bodyfont[]{Arial}     \defaultfontfeatures{Mapping=tex-text}     \setmainfont[Mapping=tex-text, Color=textcolor]{Arial Regular}      ...I get this error:               ! fontspec error: "font-not-found"     ! The font "Arial Regular" cannot be found.


title: Reproduction of Word Report Template in LaTeX

text: I am trying to reproduce a word report template in LaTeX to speed up my report writing. I have some basic LaTeX skill, but I am having trouble producing the blue page border as shown in the picture. I also don't know how to create the header information with the page border and the Title inside the blue box. I assume that the package TikZ can be used to draw the page border, and `fancyheader` for the header information but how to use the packages together is causing me confusion. I have attached an image of the basic word document I am trying to reproduce. Note all information shown is to be repeated on every page. Any help and direction is appreciated. ![word template](http://static.dyp.im/WPtl9sR7Yk/e040cc378436b6fe4a32f9960fd0112e.PNG)


title: unicode \begin{verbatim} with cmtt?

text: A lot of leading-edge programming languages (like Coq and Agda) allow nearly unrestricted use of unicode symbols in program text, so you can have math characters like `$\otimes$` (Unicode U+2A02) as operators in your program. I'd like to be able to cut and paste these programs directly into my LaTeX documents inside a verbatim-like environment and get a reasonable result. For various reasons I can't use the listings environment -- I need the typeset output to look the same as the program looks on the computer screen, even if the listings package would make it "prettier". Unfortunately the computer modern typewriter (cmtt) font, which I really like a lot, doesn't have math symbols, but there ought to be some package that acts like verbatim using cmtt wherever possible and falls back to the math fonts when it encounters a unicode symbol that isn't in cmtt. A package like this would probably require a major effort to "line up" the unicode math symbols with the Latex Symbols List, but once a table like that were to be compiled it would be really, really useful! So, I guess my question is in two parts: has anybody compiled such a table, and (more importantly) has anybody used it to produce a verbatim that makes a "reasonable effort" at handling unicode math characters?


title: adjusting a constant in a *.bst file (plainurl.bst)

text: I am using `plainurl.bst` style, Miktex 2.8, `pdflatex` to generate a `pdf` file. It gives explicitly the URL of my `bib` file. I would like to get this link attached to the title (i.e. embedded below the title) instead. Essentially the explicit url is most often too long and generate a bad box and if the URL changes the printed and `pdf` version does not change. Opening `plainurl.bst` I find               % The following constants may be adjusted by hand, if desired          % The first set allow you to enable or disable certain functionality.     #1 'addeprints :=         % 0=no eprints; 1=include eprints     #1 'adddoiresolver :=     % 0=no DOI resolver; 1=include it     #1 'addpubmedresolver :=     % 0=no PUBMED resolver; 1=include it     #2 'hrefform :=           % 0=no crossrefs; 1=hypertex xrefs; 2=hyperref refs     #0 'inlinelinks :=       % 0=URLs explicit; 1=URLs attached to titles      I just don't know how to adjust by hand `inlinelinks := 1`. If I write 1 in the code above I get the message               := 1 is an unknown function---line 72 of file plainurl.bst      I also tried in the tex file to write `\bibliographystyle{plainurl}[inlinelinks :=1]` not better. So it is just a question of how and where I can adjust, I guess it was obvious for the code writer, but I did not find a documentation for it.


title: Padded Left Align for Table Columns

text: I have a table whose column headings (centre aligned with `\multicolumn{1}{c}{Foobar here}`) are wider than the left-aligned data. This looks somewhat odd, as there are large right-margins in each column. It is probably easiest to illustrate my query with an example. Let say that the column heading is 10em and the data in the column varies from 2em to 3em. Currently each row of data will have a right margin of between 8em and 7em (as the data is left aligned so the right margin picks up any slack). What I want is a means of evening this out; so the left margin is (10em - 3em) / 2 = 3.5em and the right margin varying between 3.5em and 4.5em. How can I go about this? I know the text of each column heading and the text of the widest piece of data in the table.


title: How to compile ACM sig-alternative template successfully?

text: I am new to texlive. After I downloaded the files from ACM website:               Alternate ACM LaTeX2e Style File V2.5 (MAY 2012 CLS)     Alternate ACM LaTeX2e Sample File V2.0 (MAY 2012 LaTeX)     ACM LaTeX2e Sample BIB File     Graphic #1 (EPS)     Graphic #2 (EPS)     Graphic #3 (PS)      I used command `pdflatex sig-alternate.tex`. I got an error as below:               ! LaTeX Error: Unknown graphics extension: .ps.      While if I use `latex sig-alternate.tex`. The compilation can be done, but with some warnings like:               [3]     No file sig-alternate.bbl.      I have the file `sigproc.bib`. And I couldn't open the generated `sig-alternate.dvi` with preview. After `dvipdf sig-alternate.dvi`, I found the **references** section is missing.


title: Placing the un-ligatured text in the OCR layer

text: I was reading Why can't "fi" be separated when being copied from a compiled pdf? and had a thought: I know that v1.4 and up PDF documents have an OCR layer. Would it be possible to have PDFTeX or luaTeX place the un-ligatured text into the OCR layer, so that you don't have inconstant or odd behaviour when copying ligatures? It also occurs to me that this also be a workaround for my troubles copying mathmode greek characters, discussed in Proper way to use greek letters in an English document . This also seemed like an ideal way to provide more accessible code for equations, as trying to copy them right now is not exactly useful.


title: Avoiding a page break after the first word of a sentence

text: Is there a way to tell TeX to avoid breaking the page after the first word of a sentence? > ...   >  ...   >  He was quite dead. Apparently his neck had been   >  broken. The lightning flashed for a third time, and   >  his face leaped upon me. I sprang to my feet. It   >  (text continues on next page) And then you have to turn the page for the rest of the sentence. It's not in a line on it's own so it can't be penalized like an orphan line. Can TeX be told, to resolve these by, say, breaking the page before that first word? **Note:** Although the answers given below are very informative, the general consensus had been that the best practice is to leave this for the proofreaders to spot, and then fix manually.


title: Multicolumn image

text: How can i span image across two columns in multicolumn environment? I want to create something like this:               c1 Image     c1 Image     c1 c2 c3     c1 c2 c3      (c1, c2, c3 = columns) It can be done in ConTeXt: http://wiki.contextgarden.net/Columns


title: Best practice to implement a boolean macro argument?

text: Sometimes I'd like a macro to depend on a boolean argument but I don't know about the best way to implement this. So far, I end up introducing a global (say) `\newif\ifextra` that is used inside the macro but that needs to be set each time before the macro is called.               \documentclass{minimal}          \newif\ifextra     \def\showcase{Show a sentence. \ifextra And a little more if asked to. \fi}          \begin{document}             \extratrue\showcase              \extrafalse\showcase     \end{document}      From a programming perspective it would be better to pass the flag as an argument rather than relying on a global flag. What is the best practice here? Addendum: egreg's answer highlights that this can also be understood as implementing two variants of a macro, like `\showcase` and `\showcase*`, where the flag is encoded into the name (technically it's not, but that is how it looks).


title: Variable white space between paragraphs

text: I am having trouble finding out why the white space between my paragraphs is variable. Sorry, I am not allowed to post images but sometimes there is no white space (like it should be), just an indent to denote that a new paragraph has started. While sometimes the paragraphs start with an indent AND there is (sometimes substantial and thus variable) white space between the last sentence of the previous paragraph and the first sentence of the new paragraph. In my tex file, there is no difference between what I do in the first and second examples of my text: just two hard returns to denote the start of a new paragraph. I was wondering whether it could be due to placement of figures and footnotes but I have no idea how to change it. I don't mind a little variable white space between paragraphs but the above example is too extreme for my taste. Thanks for your advice!


title: How to draw a top to bottom block diagram (flowchart) using the schemabloc package

text: I looked at a few examples for drawing a flowchart and so I picked the schemabloc package. As I've worked with it, I've noticed, all the blocks are linked left to right or right to left. Although blocks can be positioned above or below the main line, the arrows still connect to them at the midpoints of their left or right edges. My block diagram does not fit in that manner so I'd like to do a top to bottom block diagram. Is there anyway I can do that using `schemabloc`? so i have as an example:               \documentclass{article}     \usepackage{graphicx,schemabloc}     \usetikzlibrary{circuits}          \begin{document}         \begin{figure}     \begin{tikzpicture}     \sbEntree{start}     \sbBloc{block}{Block}{start}     \sbRelier[input]{start}{block}     \sbSortie{end}{block}     \sbRelier[output]{block}{end}     \end{tikzpicture}     \end{figure}          \end{document}      and that's it. It compiles for me on the desktop.


title: Read boxplot prepared values from a table

text: **Update:** Is there any possibility of drawing two box plots this way using a single datatable as in the updated MWE below? * * * I'm trying to use `pgfplots 1.8`'s shiny new boxplot feature. As I am also showing the boxplot data in a table, I have the values pre-computed in `R` and written to an external file. So now I am trying to use the `boxplot prepared` with a data table rather than hard-coded values, but with very little effect. My paltry first try at an MWE (taken nearly verbatim from section _5.9.1 Box Plots_ on p. 373 of the `pgfmanual 1.8`) is below. In essence, I was hoping to specify the column for the individual boxplot elements similar to the way you specify the `x` and `y` column when plotting a table (e.g. `\addplot table[x=dof,y=L2] {datafile.dat};`). However, I get a `! Package PGF Math Error: Unknown function 'lw' (in 'lw').`               \documentclass[crop=false]{standalone}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.8}     \usepgfplotslibrary{statistics}     \begin{document}     \begin{tikzpicture}     \begin{axis}[boxplot/draw direction=y]       \addplot+[         boxplot prepared={           lower whisker=lw,           lower quartile=lq,           median=med,           upper quartile=uq,           upper whisker=uw,         },       ]       table[y index=0] {         lw lq med  uq uw          5  7 8.5 9.5 10          4  5 6.5 8.5 9.5       };     \end{axis}     \end{tikzpicture}     \end{document}      The hard-coded equivalent to this would be               \documentclass[crop=false]{standalone}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.8}     \usepgfplotslibrary{statistics}     \begin{document}     \begin{tikzpicture}     \begin{axis}[boxplot/draw direction=y]       \addplot+[         boxplot prepared={           lower whisker=5,           lower quartile=7,           median=8.5,           upper quartile=9.5,           upper whisker=10,         },       ] coordinates{};     \end{axis}     \end{tikzpicture}     \end{document}      The `coordinates{}` is needed as `pgfplots` expects a list of outliers after the initial boxplot specification and baulks at an empty `table{}` statement.


title: Optical font sizes: how do I set a fixed value?

text: This is, for the moment, just an experiment with Minion Pro optical font sizes. I'm trying to produce a large letter `g` to compare the Caption, Normal, Subhead, and Display-size fonts. Here's the code:               % !TEX TS-program = XeLaTeX     \documentclass[a4paper,12pt,oneside]{article}     \usepackage{fontspec}     \begin{document}     \fontsize{72}{72}     \newfontfamily\fonta[SizeFeatures={{Size={5-120},Font=* Display}}]{Minion Pro}     \newfontfamily\fontb[SizeFeatures={{Size={5-120},Font=* Subhead}}]{Minion Pro}     \newfontfamily\fontc[SizeFeatures={{Size={5-120},Font=*}}]{Minion Pro}     \newfontfamily\fontd[SizeFeatures={{Size={5-120},Font=* Caption}}]{Minion Pro}          \fonta g \fontb g \fontc g \fontd g          \end{document}      but I get four identical letters `g`, and the only font in the `.pdf` is the Display-size font. Am I doing something wrong (and, if so, what)? Or do these "intelligent fonts" think they're more intelligent than I am (a distinct possibility, BTW)? * * * ### Update: I can reproduce @Herbert's answer. With LuaLaTeX, all four fonts are present. According to the log (trimmed), `fontspec` appears to be reporting the font definitions slightly differently. I have no idea how significant these differences are. For example: XeLaTeX:               . * 'normal' with NFSS spec.:     . <5-120>"Minion Pro Subhead/ICU:script=latn;language=DFLT;"     . * 'small caps' with NFSS spec.:     . <5-120>"Minion Pro Subhead/ICU:script=latn;language=DFLT;+smcp;"     . * 'bold' with NFSS spec.:     . <5-120>"Minion Pro/B Subhead/ICU:script=latn;language=DFLT;"     . * 'bold small caps' with NFSS spec.:     . <5-120>"Minion Pro/B Subhead/ICU:script=latn;language=DFLT;+smcp;"     . * 'italic' with NFSS spec.:     . <5-120>"Minion Pro/I Subhead/ICU:script=latn;language=DFLT;"     . * 'italic small caps' with NFSS spec.:     . <5-120>"Minion Pro/I Subhead/ICU:script=latn;language=DFLT;+smcp;"     . * 'bold italic' with NFSS spec.:     . <5-120>"Minion Pro/BI Subhead/ICU:script=latn;language=DFLT;"     . * 'bold italic small caps' with NFSS spec.:     . <5-120>"Minion Pro/BI Subhead/ICU:script=latn;language=DFLT;+smcp;"      LuaLaTeX:               . * 'small caps' with NFSS spec.:     . <5-120>"name:MinionProSubhead:mode=node;script=latn;language=DFLT;+smcp;"     . * 'bold' with NFSS spec.:     . <5-120>"name:MinionPro/BSubhead:mode=node;script=latn;language=DFLT;"     . * 'bold small caps' with NFSS spec.:     . <5-120>"name:MinionPro/BSubhead:mode=node;script=latn;language=DFLT;+smcp;"     . * 'italic' with NFSS spec.:     . <5-120>"name:MinionPro/ISubhead:mode=node;script=latn;language=DFLT;"     . * 'italic small caps' with NFSS spec.:     . <5-120>"name:MinionPro/ISubhead:mode=node;script=latn;language=DFLT;+smcp;"     . * 'bold italic' with NFSS spec.:     . <5-120>"name:MinionPro/BISubhead:mode=node;script=latn;language=DFLT;"     . * 'bold italic small caps' with NFSS spec.:     . <5-120>"name:MinionPro/BISubhead:mode=node;script=latn;language=DFLT;+smcp;"


title: Mathaccents, fontdimens, macros, oh my!

text: Why doesn't this work?               \def\circacc{%       \dimen0=\fontdimen5\textfont2       \fontdimen5\textfont2=-.5ex       \mathaccent\circ       \fontdimen5\textfont2=\dimen0     }$\circacc a$\bye      The last line produces an error (`! Missing { inserted.`), but why on earth when it worked _just two lines ago_?! If I change the macro to include an argument I can get it to work, but then the last `\fontdimen`-change gets applied before the accent has been typeset! I'm afraid I'm on TeX Wizard -lands now, and I'm lost. * * * **Update** : The first part of the question is now clear to me. However, the grouped version didn't work for me for the second (w/ args), is there something I'm still missing?               \def\circacc#1{       \dimen0=\fontdimen5\textfont2 \dimen1=\fontdimen5\scriptfont2 \dimen2=\fontdimen5\scriptscriptfont2       {\fontdimen5\textfont2=-.25ex \fontdimen5\scriptfont2=-.25ex \fontdimen5\scriptscriptfont2=-.25ex       \mathaccent\circ{#1}}       \fontdimen5\textfont2=\dimen0 \fontdimen5\scriptfont2=\dimen1 \fontdimen5\scriptscriptfont2=\dimen2     }$\circacc W$\bye      (produces the accent with the original x-height)


title: Modified /tikz/double that doesn't go all the way to the end of lines

text: I love using the `double` option to draw a line with a thicker, differently- coloured line underneath it. However, quite often I have several of these lines meeting at a point. They are all separate lines, but then the thicker parts of the lines overlap the thinner parts and the effect is spoiled. Ideally I'd like a modified version of the `/tikz/double` effect, which doesn't draw the thicker line at (say) the beginning and end 5% of the length of the curve. Is this possible? So the thinner, 'internal' line would be drawn as specified, but the thicker, 'underneath' line wouldn't be drawn for the entire length.


title: TikZ set node label position more precisely

text: This seems like it should be really easy but I can't seem to find it anywhere... I'd like to be able to fine-tune the positioning of a node label. I'm aware of the `\node[label=above/below/etc:{label}] (x) {};` syntax, but that doesn't seem to give you many options on where the label goes. I'd like to be able to place the label slightly closer or farther away, or maybe in a direction other than the 8 presets available. `\tikz[label distance=x]` isn't a good solution because I need it to be node- specific.


title: Fit table a bit outside of text margins

text: Following my post here, how could I use the command:               \resizebox{\linewidth}{!}{...}      to place a table a bit outside of the text margins? EDIT: At the moment this works fine for me. My only problem is that the height changes correspondingly which is something that I do not want.               \documentclass[12pt,a4paper]{article}     \usepackage{setspace}     \spacing{1.5}     % \raggedright          \usepackage[margin=1.3in]{geometry}          \usepackage[polutonikogreek,english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{textalpha}          \usepackage{amsmath}          \usepackage{graphicx}     \usepackage{float}          \usepackage{color}     \usepackage{soul}          \usepackage{adjustbox}          \newcommand{\head}[1]{\textnormal{\textbf{#1}}}     \newcommand{\greek}[1]{{\selectlanguage{polutonikogreek}#1}}          \begin{document}          \section{Introduction}          \begin{table}[H]         \begin{adjustbox}{width=1.3\textwidth,center}             \begin{tabular}{ll}                 \hline                 \multicolumn{2}{c}{\head{Fuels}} \\                 \hline                 \multicolumn{1}{l}{\head{Name}} & \multicolumn{1}{l}{\head{Numbes}} \\                 \hline                 \ttfamily XXXXXXXXXX & \ttfamily XXX \\                 \ttfamily XXXXXXXXXX & \ttfamily XXX \\                 \hline             \end{tabular}         \end{adjustbox}         \caption{Selected fuels}         \label{tab:SelectedFuels}     \end{table}          \end{document}


title: TikZ: halo around text?

text: I'd like to label my nodes with text that has a 'halo' around it of a different colour. Is this possible? The reason is that my label text covers different parts of my diagram with different background colours, so no single colour will make the label legible. I'd ideally like the text to be black, with a white halo.


title: How do I change the line spacing in WinEdts editor (options interface...)?

text: I managed to change the font size in Options Interface. Now, a want to enlarge the line spacing. How I do this?


title: Finding LaTeX source code for a common template

text: I often see documents formatted like the following: ![enter image description here](http://i.stack.imgur.com/et3Sp.png) and ![enter image description here](http://i.stack.imgur.com/A7by3.png) with sleek boxes and a nice outline at the top of each slide. I like this style; would anyone happen to know where I can find the source?


title: expandable optional parameter to enumerate environment

text: The MWE below, by using `paralist` package, is supposed to allow `\begin{enumerate}[...]` where `...` is flexible in "some way" (inherits from `enumerate`s above).               \documentclass[a4paper,10pt]{report}          \usepackage{paralist,xargs}          \newcommand\mwe[2]{[{\ref{#1}.}.#2]}          \begin{document}          \newenvironmentx{enumwe}[2][2=1]{%       \begin{enumerate}\mwe{#1}{#2}%       %\expandafter\begin\expandafter{\expandafter enumerate\expandafter}\mwe{#1}{#2}%       \ignorespaces%     }{\end{enumerate}%       \ignorespacesafterend%     }          \begin{enumerate}[{A}1]          \item \label{one} {\bfseries~Appendix One}            \begin{enumwe}{one}         \item text       \end{enumwe}          \end{enumerate}          \end{document}      However, the commented line seems a wrong attempt, while the MWE typesets wrong. The expanded result expected would be the following.               \begin{enumerate}[{A}1]     \item \label{one} {\bfseries~Appendix One}       \begin{enumerate}[{A1.}1.]         \item text       \end{enumerate}     \end{enumerate}      I appreciate any help or suggestions. P.S.: I actually need to expand a macro in the optional parameter to `enumerate` environment, like `\begin{enumerate}[\mwe{...}1.]`, but it's not working (the `??` occurs everywhere) and this MWE is my approach, but I got stuck with the weird error:               ! LaTeX Error: \begin{enumerate} on input line 21 ended by \end{enumerate}.


title: codes for some pictures

text: I'm writing a paper in mathematics which contains some pictures and diagrams. Since I am a beginner-user of LaTeX, maybe I can get direct help from experts here. I am not sure if you respect this way of asking, but I think it is a good way for me to learn things! For example, the following picture was taken from page 111 in _Homology Theory_ by James W. Vick: ![image](http://i.stack.imgur.com/mELgs.png)


title: suppress output

text: Would it be possible to make a wrapper script, or does there exist a sequence of flags -XYZ for latexmk (looking at the manual, it appears not), so that the command behaves in the following way:               ~/latexmk -XYZ bla.tex     ~/      if there are no errors in the file. (So latexmk gives exactly NO response), and               ~/latexmk -XYZ bla.tex     Error on line 54 in file bla.tex     ~/      if there are errors. It would be great to not see output that is useless.


title: Controlling Matrix like a shape in Tikz

text: Would it be possible to control a matrix in Tikz as accurately as possible as with regular shapes? For example, inside a Tikzpicture, I could simply control a shape's size by writing `\filldraw[fill=white] (6, 2) rectangle (8, 1) node[]{};` where the numbers represent respectively the **left, top, right and bottom side** of the rectangle. This way I can control how "tall" or long the rectangle is. I can't do the same with the matrix, as it only works using the syntax: `\node[] at (x, y)` However this is rather not precise as I'd like to be able to set the actual coordinates. What can I do? I have looked at the Tikz manual and on this site (and on the internet) but couldn't find anything. Here is the example of what I have and what I want: > ![enter image description here](http://i.stack.imgur.com/WRkMs.png) and here is the code:               \documentclass[10pt]{article}     \usepackage[a4paper, margin=1cm]{geometry}     \usepackage[utf8]{inputenc}     \usepackage{rotating}     \usepackage{amsmath}     \usepackage{pgfplots}     \usepackage{tikz}          \usetikzlibrary{arrows,backgrounds,snakes,shapes,shapes.multipart,positioning}     \pgfplotsset{compat=1.7}     \pagestyle{empty}          \begin{document}              \tikzstyle{typnode} = [midway, align=center, inner sep=0pt]         \tikzstyle{data} = [font=\scriptsize, inner sep=0pt, rotate=90, minimum size=0pt,text width=0.5cm]              \begin{tikzpicture}[x=6.4mm,y=5mm]                 \centering             \draw[|->, -latex, draw] (0,0) -- (15,0);            \draw[-, dashed] (-0.5,0) -- (0,0);               \foreach \x [evaluate=\x as \xear using int(1600+\x*10)] in {0,1,...,15}{                  \draw[-] (\x,0) node[below=7pt,anchor=east,xshift=0,rotate=45,font=\footnotesize] {$\xear$};                  \draw[] (\x,-0.2) -- (\x,0.2);                 \draw[] (\x+.5,0) -- (\x+.5,0.1);         }              \filldraw[fill=white] (6, 1.5) rectangle (13.1, 0.5) node[typnode]{...to here (1660-1731)};         \matrix[draw, fill=white] {\node[data]{1660}; & \node[text width=3cm,typnode]{from here...}; & \node[data]{1731};\\};             \end{tikzpicture}     \end{document}      Please note that I'm not concerned about the height of the node. The thing I really want to set are the **left and right side** so that the matrix fits the length denoted by the dates.


title: Is there any way to have a LaTeX compiler on a Mac without root access?

text: Long story short, I have limited install rights on my Mac. I believe the only limitation is that I can only write files inside my user directory. I also have limited read rights to files outside my user directory. So, is there a way to install LaTeX on a Mac without root access? I do know about online alternatives such as ShareLaTeX, but my internet coverage is spotty on occasion and I compile frequently to see what the final result is since I'm not very good at using LaTeX.


title: Displaying sections in table of contents/side bar of pdf viewer

text: I wasn't sure how to search for this as I'm not sure what's it's called. Apologies if this is a duplicate though. Sometimes when I open a PDF, the sidebar will list the table of contents and I'll be able to jump to a section or subsection by click on it's title in the pdf viewer's sidebar. Example: ![example](http://i.stack.imgur.com/gonsU.png) Other times, when I open up a long pdf, all I see in the sidebar are just the pages, listed in order, but with no other sort of organization. Non-example: ![non-example](http://i.stack.imgur.com/HiABg.png) > How do I construct my paper so that it works like the first example?


title: Underline multicolumns in tikz matrix

text: In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others): ![enter image description here](http://i.stack.imgur.com/JJ8hU.jpg) MWE from this question:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{matrix}               \def\totcvtext{$\begin{array}{c}{{\rm tot}\ {\rm comm}}\\[-.8ex]{\rm vol (words)}\end{array}$}          \makeatletter     \newdimen\multi@col@width     \newdimen\multi@col@margin     \newcount\multi@col@count     \multi@col@width=0pt          \tikzset{       multicol/.code={%         \global\multi@col@count=#1\relax         \global\let\orig@pgfmatrixendcode=\pgfmatrixendcode         \global\let\orig@pgfmatrixemptycode=\pgfmatrixemptycode         \def\pgfmatrixendcode##1{\orig@pgfmatrixendcode%           ##1%           \pgfutil@tempdima=\pgf@picmaxx           \global\multi@col@margin=\pgf@picminx           \advance\pgfutil@tempdima by -\pgf@picminx           \divide\pgfutil@tempdima by #1\relax           \global\multi@col@width=\pgfutil@tempdima           \pgf@picmaxx=.5\multi@col@width           \pgf@picminx=-.5\multi@col@width           \global\pgf@picmaxx=\pgf@picmaxx           \global\pgf@picminx=\pgf@picminx       \gdef\multi@adjust@position{%          \setbox\pgf@matrix@cell=\hbox\bgroup          \hfil\hskip-1.5\multi@col@margin          \hfil\hskip-.5\multi@col@width          % \gdef\multi@adjust@position{%     %        \setbox\pgf@matrix@cell=\hbox\bgroup     %        \hfil\hskip-\multi@col@margin     %        \hfil\hskip-.5\multi@col@width             \box\pgf@matrix@cell             \egroup           }%           \gdef\multi@temp{\aftergroup\multi@adjust@position}%           \aftergroup\multi@temp         }         \gdef\pgfmatrixemptycode{%           \orig@pgfmatrixemptycode           \global\advance\multi@col@count by -1\relax           \global\pgf@picmaxx=.5\multi@col@width           \global\pgf@picminx=-.5\multi@col@width           \ifnum\multi@col@count=1\relax            \global\let\pgfmatrixemptycode=\orig@pgfmatrixemptycode           \fi         }       }     }     \makeatother     \begin{document}     \begin{tikzpicture}     \matrix (mat) [matrix of nodes] {     L2A &|[multicol=2]| L2B     && |[multicol=2]| L2C & \\     L3A &   L3B &   L3C         &  \totcvtext & L3E \\     10  &   20  &   30          &   40  & 50 \\     };     \draw[thick,black,shorten >=0.5mm,shorten <=0.5mm] (mat-2-2.north west) -- (mat-2-3.north east);     \draw[thick,black,shorten >=0.5mm,shorten <=0.5mm] (mat-2-4.north west) -- (mat-2-5.north east);     \end{tikzpicture}     \end{document}      Note that height of other cells containing numbers should not be changed.


title: Passing more command line argument

text: I am new to latex. I would like to pass command line arguments (probably more) to `\newcommand` macro and expecting output like below.               if input is 1           /include {1.tex}            else if input is 2           /include {2.tex}     else if input is 3           /include {3.tex}          else if input is 1 and 2                     /include {1.tex}                   /include {2.tex}     else if input is 1 and 2  and 3                  /include {1.tex}            /include {2.tex}               /include {3.tex}       and so on. I have heard some `xkeyval, xargs` packages do like this. But i am not sure about its implementations. How can i give too many arguments to latex? How can i parse/differentiate the arguments and then pass accordingly?


title: LaTeX error file 'ulem.sty' not found in windows

text: while trying to read a file as PDF (`pdflatex`) I get this error:               LaTeX error: file 'ulem.sty' not found      I have searched far and wide on the web, but I can't figure out how to fix this. Things I have already tried:   * Reinstalling LyX   * Tools -> reconfigure Without any results unfortunatly. Any help would be appreciated! BTW: I am using MiKTex 2.9.


title: Sorting a clist in LaTeX3

text: I have a `clist` that I'd like to bubble sort. I'm sure this is a simple matter of something like `\clist_bubblesort:N` or something, but I don't know what the appropriate incantation is. A quick google didn't reveal anything obvious...


title: Gray box around figure with a separate gray box around caption

text: My university requires that all figures in a thesis follow this pattern: ![desired result](http://i.stack.imgur.com/F7nda.jpg) I'm very new to LaTeX, so far my best attempt has been this:               \begin{SCfigure}         \colorbox{darkgray}{              \begin{minipage}{14cm}                   \centering                   \includegraphics{inductor.jpg}              \end{minipage}         }         \caption{caption caption}     \end{SCfigure}      and the result is here: ![result so far](http://i.stack.imgur.com/pL5eG.jpg) My figure is not centered and the caption is off the page. Trying to create another minipage around caption does not work because the colored box somehow appears in between the figure and caption. Any help will be highly appreciated. Thank you!


title: "Undefined control sequence" error with fontspec

text: As a result of the most recent TeXLive update, an XeTeX document I'm working on no longer compiles. I've narrowed down the problem to the "Color" declaration of a font I define. Here is a minimal working example:               \documentclass{article}     \usepackage{fontspec}     \setmainfont[Color=000088]{Hoefler Text}     \begin{document}     This is a minimal working example.     \end{document}      This fails to compile with the following log:               This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012)     restricted \write18 enabled.     entering extended mode     (./mwe.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,     piedmontese, polish, portuguese, romanian, romansh, russian, sanskrit, serbian     , serbianc, slovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, u     ppersorbian, welsh, loaded.     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2012/texmf-dist/tex/latex/fontspec/fontspec.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/expl3.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3names.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/etex-pkg/etex.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3basics.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3expan.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3tl.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3seq.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3int.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3quark.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3prg.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3clist.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3token.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3prop.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3msg.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3file.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3skip.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3keys.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3fp.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3box.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3coffins.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3color.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3luatex.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3kernel/l3candidates.sty)     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ifpdf.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/fontspec/fontspec-patches.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/fixltx2e.sty)     *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \oldstylenums with arg. spec. 'm' on line 128.     *************************************************     ) (/usr/local/texlive/2012/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/euenc/eu1enc.def)     (/usr/local/texlive/2012/texmf-dist/tex/latex/euenc/eu1lmr.fd))     (/usr/local/texlive/2012/texmf-dist/tex/xelatex/xunicode/xunicode.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/tipa/t3enc.def     (/usr/local/texlive/2012/texmf-dist/tex/latex/euenc/eu1lmss.fd))     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphicx.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2012/texmf-dist/tex/xelatex/xetex-def/xetex.def))))     (/usr/local/texlive/2012/texmf-dist/tex/latex/fontspec/fontspec.cfg)))     ! Undefined control sequence.     <argument> \tl_length:n      {000088}==6     l.4 ...olor=000088,Mapping=tex-text]{Hoefler Text}          ?      It compiles fine if I omit the colour specification:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Hoefler Text}     \begin{document}     This is a minimal working example.     \end{document}      Here is the relevant bit of the `.log` file with the `\listfiles` command:               *File List*     article.cls    2007/10/19 v1.4h Standard LaTeX document class     size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     fontspec.sty    2013/02/25 v2.3 Font selection for XeLaTeX and LuaLaTeX     expl3.sty    2013/03/12 v4467 L3 Experimental code bundle wrapper     l3names.sty    2012/12/07 v4346 L3 Namespace for primitives     l3bootstrap.sty    2013/01/08 v4420 L3 Experimental bootstrap code     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)     l3basics.sty    2013/01/10 v4428 L3 Basic definitions     l3expan.sty    2013/02/03 v4458 L3 Argument expansion     l3tl.sty    2013/01/08 v4415 L3 Token lists     l3seq.sty    2013/01/12 v4434 L3 Sequences and stacks     l3int.sty    2013/01/13 v4444 L3 Integers     l3quark.sty    2012/11/04 v4268 L3 Quarks     l3prg.sty    2013/02/13 v4459 L3 Control structures     l3clist.sty    2013/01/08 v4414 L3 Comma separated lists     l3token.sty    2013/01/10 v4428 L3 Experimental token manipulation     l3prop.sty    2013/01/09 v4423 L3 Property lists     l3msg.sty    2013/01/08 v4412 L3 Messages     l3file.sty    2013/01/14 v4446 L3 File and I/O operations     l3skip.sty    2013/01/13 v4444 L3 Dimensions and skips     l3keys.sty    2013/02/24 v4461 L3 Experimental key-value interfaces     l3fp.sty    2013/01/19 v4449 L3 Floating points     l3box.sty    2013/01/08 v4411 L3 Experimental boxes     l3coffins.sty    2012/09/09 v4212 L3 Coffin code layer     l3color.sty    2012/08/29 v4156 L3 Experimental color support     l3luatex.sty    2012/08/03 v4049 L3 Experimental LuaTeX-specific functions     l3candidates.sty    2013/03/09 v4466 L3 Experimental additions to l3kernel     ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     xparse.sty    2013/03/12 v4467 L3 Experimental document command parser     fontspec-patches.sty    2013/02/25 v2.3 Font selection for XeLaTeX and LuaLaTeX          fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX     fontspec-xetex.sty    2013/02/25 v2.3 Font selection for XeLaTeX and LuaLaTeX     fontenc.sty     eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings     eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth     er characters in Unicode lower plane     eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live     xetex.def    2013/02/04 v0.95 LaTeX color/graphics driver for XeTeX (RRM/JK)          fontspec.cfg     t3cmr.fd    2001/12/31 TIPA font definitions      Any help would be inmensely appreciated!


title: How to typeset variables and other code?

text: > The variance of the signal `sig3` is 43.2. How should I typeset the above in LaTeX?


title: Texmaker Illegal unit of measure

text: I've got problems with my Texmaker on Windows 7... I changed some text in the document and configured the colors for my listings. Suddenly Latex throws an error by the optional parameter of the hyperref usepackage! After deleting this parameters theres an error on each comma on the text! I don't know what happend... The hole file is converted in utf-8, I saved it extra in notepad++ over again, but no success... Pleas help me, I don't know what happened, I'm desperated... The error:               !Illegal unit of measur (pt inserted. <to be read again> F linkcolor=magenta,      The header of the document:               \documentclass[a4paper,12pt,twoside,ngerman]{article}     \parindent0pt     \parskip6pt     % makeindex -s %.ist -t %.alg -o %.acr %.acn     % makeindex -s %.ist -t %.glg -o %.gls %.glo          \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel} % Paket für die neue deutsche Rechtschreibung     \usepackage{bera}     \usepackage{color}     \usepackage{xcolor}     \usepackage{listings} % Packet zum Erstellen von Listinings          \definecolor{lightgray}{HTML}{F3F3F3}          \colorlet{jsonPunct}{red!60!black}     \definecolor{jsonDelim}{RGB}{20,105,176}     \colorlet{jsonNumber}{magenta!60!black}          \definecolor{lightgreen}{HTML}{3F7F5F} % comments     \definecolor{purple}{HTML}{950055} % keywords     \definecolor{lightblue}{HTML}{3F7DE0} % javadoc     \definecolor{turquoise}{RGB}{5FC0C0}     \definecolor{darkblue}{RGB}{2A00FF}     \lstdefinelanguage{json}{     literate=      *{0}{{{\color{jsonNumber}0}}}{1}       {1}{{{\color{jsonNumber}1}}}{1}       {2}{{{\color{jsonNumber}2}}}{1}       {3}{{{\color{jsonNumber}3}}}{1}       {4}{{{\color{jsonNumber}4}}}{1}       {5}{{{\color{jsonNumber}5}}}{1}       {6}{{{\color{jsonNumber}6}}}{1}       {7}{{{\color{jsonNumber}7}}}{1}       {8}{{{\color{jsonNumber}8}}}{1}       {9}{{{\color{jsonNumber}9}}}{1}       {:}{{{\color{jsonPunct}{:}}}}{1}       {,}{{{\color{jsonPunct}{,}}}}{1}       {\{}{{{\color{jsonDelim}{\{}}}}{1}       {\}}{{{\color{jsonDelim}{\}}}}}{1}       {[}{{{\color{jsonDelim}{[}}}}{1}       {]}{{{\color{jsonDelim}{]}}}}{1},     }     \lstset{     language=Java,     keywordstyle=\color{purple}\bfseries,     commentstyle=\color{lightgreen},     morecomment=[s][\color{lightblue}]{/**}{*/}%,     }     %XML Style     \lstset{     language=XML,     keywordstyle=\color{purple}\bfseries,     commentstyle=\color{lightgreen},     morecomment=[s][\color{lightblue}]{/**}{*/}%,     }     % Allgmeiner Style für Listings     \lstset{     basicstyle=\footnotesize,     tabsize=2,     numbers=left,     numberstyle=\scriptsize,     stepnumber=1,     numbersep=8pt,     showstringspaces=false,     showspaces=false,     backgroundcolor=\color{lightgray},     frame=none,     rulecolor=\color{black},     aboveskip=1em,     belowskip=1.5em,     captionpos=b,     breaklines=true     }     % die folgendenen 3 Pakete sichern, dass Wörter nicht so oft am rechten Rand herausragen     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{microtype}     \usepackage{graphicx} % Paket zur Verwendung von Bildern. alternatif epsfig     \usepackage[     colorlinks=true,     linkcolor=magenta, % einfache interne Verknüpfungen !!!!HERE'S THE ERROR THROWN!!!!!     anchorcolor=black,% Ankertext     citecolor=green, % Verweise auf Literaturverzeichniseinträge im Text     urlcolor=cyan, % Farbe der URLs     backref % Back-Links zu den Kapiteln     ]{hyperref}     \usepackage{floatflt} % Paket Bildpositionierung     \usepackage{marvosym} % Paket zur Verwendung von manchen Sonderzeichen     % Paket zur Verlinkung des Inhaltsverzeichnisses, als (vor-)letztes laden (es muss zweimal compiliert werden), nur glossaries muss danach geladen werden     \usepackage{fancyhdr} % Paket für den Pagestyle fancy     \usepackage{dirtree} % Paket zum Erstellen einer Verzeichnisstruktur     \usepackage[     nonumberlist,   %keine Seitenzahlen anzeigen     acronym         %ein Abkürzungsverzeichnis erstellen     ]{glossaries}     % Entfernt den Punkt am Ende der Beschreibung beim Glossar     \renewcommand*{\glspostdescription}{}     %sammelt die Einträge     \makeglossaries          \title{title}     \date{}     \author{}     \pdfinfo{     /Title    (title)     /Author   (me)     /Creator  ()     /Producer ()     /Subject  ()     /Keywords ()     }     \begin{document}     ...     \end{document}


title: Subroutine in algorithm2e

text: I am looking for a tiny example of writing in `algorithm2e` an algorithm using a subroutine. The algorithm is called `algo`, and it recursively calls a subroutine called `proc`. It should be something like below in one environment:               Algorithm 1 algo()     1 xxx     2 xxx     3 proc()     4 return     Procedure proc()     1 xxx     2 return      I do not want to write these two things using two different algorithm environments. Can anyone show me an example?


title: Problems with french accents automatically understood by LaTeX

text: I am using `WinEdt` to write my thesis and I used               \usepackage[latin1]{inputenc}      to get the French accents to be understood automatically. It works fine for the first 2 chapters, but for some reason, when I add more chapters, it gives me this weird symbol whenever I use accents. This doesn't really make sense as the chapters are all joined to the document the same way! I really can't see what's wrong. Any idea? So here's what it looks like:               \documentclass[msc, index, hyperref, prelimtm]{theseUL1_2}      \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}      \usepackage{lmodern}         \usepackage[francais]{babel}     ...     \begin{document}     ...          \include{chap1/chap1}     \include{chap2/chap2}     \include{chap3/chap3}          \end{document}      The chapters are in different files all starting with               \chapter{name}     ...


title: How do I put text over symbols?

text: This is difficult for me to explain, but how do I put words over a symbol? For instance, I want to add words over an equal sign. Anyone know the command/syntax for that? Also adding `^` doesn't cut it..., I want the text to appear ON TOP.


title: Writing steps in an equation

text: What is the "best LaTeX practices" for writing equations with multiple steps? Feel free to recommend packages that might help. Do these methods work just as well within an enumeration? Here is what I currently do:               \documentclass{article}          \begin{document}          \begin{enumerate}          \item Using the previous property, $|\mathbf{x} + \mathbf{y}|^2$          \( = (\mathbf{x} \cdot \mathbf{y}) \cdot (\mathbf{x} \cdot \mathbf{y}) \)          \( = \sum_{i=1}^k (x_i + y_i)(x_i + y_i) \)     (by the definition of inner product          \( = \sum_{i=1}^k (x_i^2 + 2 x_i^{} y_i^{} + y_i^2) \)          \( = \mathbf{x} \cdot \mathbf{x} + 2 \mathbf{x} \cdot \mathbf{y} + \mathbf{y} \cdot \mathbf{y} \)          \( \leq |\mathbf{x} \cdot \mathbf{x}| + 2 |\mathbf{x} \mathbf{y}| + |\mathbf{y} \cdot \mathbf{y}| \)          \( \leq |\mathbf{x}| |\mathbf{x}| + 2 |\mathbf{x}| |\mathbf{y}| + |\mathbf{y}| |\mathbf{y}| \)     (by Property 4)          \( = (|\mathbf{x}| + |\mathbf{y}|)^2, \)          and since both sides are $\geq 0$, we can take the square root.          \end{enumerate}          \end{document}      The main problem is that, because of the `enumerate` environment, I can't indent each step of the equality, so that first term looks sort of separate...


title: What is the most convenient way to do general-arithmetic calculations involving lengths?

text: I know LaTeX can store at least two types of numbers: Dimensionless quantities (i.e. 1, pi, etc.) and lengths (i.e. `1pt`, `\textwidth`, etc.). _Is there some convenient, general way to do calculations, using more or less complicated arithmetic expressions that can involve both dimensionless quantities and lengths?_ For example, how can you most easily evaluate the expression `1/(1/a+1/b)`, where `a` and `b` are lengths, and store the result as a new length? Or how to calculate and store the hypotenuse of a right triangle, with `a` and `b` being the two shortest sides, `squareroot(a^2+b^2)`? And is it possible to calculate and store areas (e.g. `a*b`)? Is there some easy way to do calculations like these straight away, or do you have to convert lengths to dimensionless quantities by dividing them with, say, `1pt` (I just picked a reference length at random), before you can do that?


title: Can I use hanging indentations for my bibliography references with bibtex?

text: I have used `hangparas` from the hanging package, tried setting `bibhang`, setting `parskip` and `leftindent` to no avail. I have an author-year citation format and `plainnat.bst` and `savetrees` package if this matters... Most help I find on this topic suggests use of biblatex but as I have not yet made the switch. I still find bibtex's multiple bibliography style option very useful so would like to stay with bibtex for now. **Edit:** For example, I was hoping this would help, but it does nothing for the bibliography:               \begin{hangparas}{.25in}{1}     \bibliographystyle{plainnat}     \bibliography{references}     \end{hangparas}      I also tried               \setlength\parskip{\baselineskip}     \leftskip 0.1in     \parindent -0.1in     \bibliographystyle{plainnat}     \bibliography{references}      and               \setlength\bibhang{2em}     \bibliographystyle{plainnat}     \bibliography{references}      But there is no hanging indentation to be seen.


title: Contour plot labeling applied to ordinary 2D plots

text: I was trying to obtain the effect that I manually created below,shown with the letter `n`. Now, I know that this is customary to do in contour plots, hence I've checked the manual and saw that it is indeed possible with `pgfplots` ![enter image description here](http://i.stack.imgur.com/XxwBD.png) I thought: _OK, why don't you just fake a contour plot?_               \documentclass{article}     \usepackage{tikz,pgfplots}     \begin{document}     \begin{tikzpicture}[scale=0.7]         \begin{axis}[%     grid=both,no markers,scaled ticks = false,     tick label style={/pgf/number format/.cd,fixed,precision=3},     ylabel=Sheep, xlabel = Count]     \pgfplotstableread{     xdataa    y1dataa   y2dataa      0.0100    0.0909    0.0336     0.0120    0.0841    0.0307     0.0140    0.0777    0.0288     0.0160    0.0728    0.0258     0.0180    0.0701    0.0241     0.0200    0.0662    0.0223     0.0220    0.0627    0.0210     0.0240    0.0594    0.0200     0.0260    0.0570    0.0190     0.0280    0.0534    0.0176     0.0300    0.0509    0.0169     0.0320    0.0488    0.0160     0.0340    0.0466    0.0151     0.0360    0.0446    0.0142     0.0380    0.0429    0.0138     0.0400    0.0410    0.0132     }{\sometable}     \addplot table[x=xdataa,y=y1dataa] {\sometable};     \addplot table[x=xdataa,y=y2dataa] {\sometable};     \node[fill=white,rotate=-25,inner sep=1mm] at (15mm,34.5mm) {n};     \end{axis}     \end{tikzpicture}     \end{document}      I couldn't do it (the plots disappear for some reason whenever I define the `contour prepared` option) or I am simply blinded to see some magic option but had I been successful this would have the following immediate drawbacks:   1. I can't include any non-numerical labels such as `n` in the example.   2. If I had to use the same label for different curves they would automatically merged due to the common contour value.  I also came up with a solution using the `unbounded coords=jump` option to break the curve. But this is simply ugly and too pragmatic (even for me). Obviously, if `contour` plot can do it, there must be a way to hack into the mechanism to obtain the relevant code and carry it over to the regular 2D plot case. I tried to tweak the code but no avail. Is there a better and systematic way which reduces the manual labor especially adding another column?


title: Using scope to move objects using the same coordinate system as the objects themselves

text: > **Summary of answers** > > The question has been answered by TorbjørnT. with a comment. If using scope > with `xshift` it is necessary to specify the unit as `cm`. This is also > working if the entire picture is later scaled. Thanks! The included code is > now working as it should. - > > The solution provided by JLDiaz works just as well and does not requiere any > units! Here to image is moved using `shift={(x,z)}` (make sure to get all > the brackets). > > A third possible solution has been proposed by Ignasi, again as a comment to > the question. To me this approach using `pic` might be especially useful if > elements need to be repeated a few times in the same image. > > Thanks for all the good input! **The question** I am trying to make an illustration for a latex document and it is going quite good. I know the code could be a lot better but for now it is good enough for me. Well, mostly. Because the code is kind of purely written (or so I think) moving a group of objects is not all that easy. The solution I found (here) for this is `scope` which does work. However I am a bit unhappy with how it works. In the code below the object is rotated by 15 degree around the point (0,0) as expected. However, the `xshift=2` does not shift the entire `scope` by `2` on the same scale shifting everything manually by `2` would have. I know that the `axis` environment has it's own coordinate system that can be accessed via `(axis cs:10,10)`. Is there anything similar for `scope`? Might this be a solution that could be adapted (I could split the image - chair, table and computer - in separate parts I guess)?               \documentclass[tikz]{standalone}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}%[scale=0.750]     \tikzstyle{every node}=[font=\small]         % Temp stuff for construction only             \draw[step=.2, lightgray, very thin] (0,0) grid ++(15.0,8.0);             \foreach \s in {0,1,...,15.0}{                 \draw [lightgray](\s,0) -- (\s,-.1) node[below, lightgray]{\s};             }             \foreach \s in {0,1,...,8.0}{                 \draw [lightgray](0,\s) -- (-.1,\s) node[left, lightgray]{\s};             }     % The Inside of the house         \begin{scope}[xshift=2cm, rotate=15] % unit was not in original code for question!             % Table             \draw (11.9,0) rectangle ++(0.1,1.); % leg 1             \draw (12.8,0) rectangle ++(0.1,1.);    % leg 2             \draw (11.8,1.) rectangle ++(1.2,0.05); % Surface plate             % Computer (iMac) ;-)             \fill (12.72,1.45) circle (0.03); % The nob in the back             \draw (12.74,1.45) .. controls (12.8,1.25) and (12.8,1.22) .. (12.8,1.06) -- (12.55,1.06); % Stand             \draw [fill=white, rotate around={-10:(12.6,1.15)}] (12.6,1.2) rectangle ++(0.07,0.6); % the iMac             % Chair             \draw (11.1,0) -- ++(0.2,0.2) -- ++ (0.2,-0.2); % leg part 1             \draw (11.3,0.2) -- ++(0,0.45); % leg part 2             \draw (11.05,0.65) rectangle ++(0.5,0.05); % seat             \draw (11,0.75) rectangle ++(0.05,0.5); % back support             \draw (11.15,0.65) .. controls (10.95,0.57) and (10.95,0.75) .. (11,0.95); % connection seat - back         \end{scope}     \end{tikzpicture}     \end{document}      P.S.: Could anyone point me at a comprehensive guide to understand the different coordinate systems in `tikz`? I have not been able to find anything like that. * * * And this is the final image I meant to create. I know its not much and likely the code (the above is only part of it) could be written more efficiently but never the less I am very happy with the result. ![The final image](http://i.stack.imgur.com/Gg98K.png)


title: Use of \Tree with a macro

text: I am using the `qtree` to produce some trees, for example with this syntax `\Tree [.foo bar ]`. Now, I have automated some part of the tree and get troubles. When I place `[.foo bar ]` inside of a macro, qtree doesn't accept to generate the tree: `Use of \@subtree doesn't match its definition`. I am sure the solution is quite simple but I can't find it. Here is a sample code.               \documentclass{standalone}     \usepackage{tikz,qtree,tikz-qtree,tikz-qtree-compat}          \begin{document}     \newcommand{\inputtree}{[.foo bar ]}          %%%\Tree \inputtree %%This line doesn't compile     \Tree [.foo bar ]     \end{document}


title: Diagnosing errors inside newcommands

text: When I need to use something repeatedly within a document, I make my own command. E.g.:               \newcommand{\notification}[2]{      % line 2         Hello #1, your #2 pie is ready. % line 3     }                                   % line 4      Then I can use it in the document like so:               \notification{Mr. White}{pumpkin}   % line 6      However, if I make some mistake while coding the `newcommand`, it does not say "l.3"; it will say "l.6". See in the example below (I have added an extra "&"):               \documentclass{article}         \newcommand{\notification}[2]{             Hello #1, your #2 & pie is ready.         }     \begin{document}         \notification{Mr. White}{pumpkin}     \end{document}      The error message is as follows:               ! Misplaced alignment tab character &.     \notification #1#2-> Hello #1, your #2 &                                              pie is ready.      l.6     \notification{Mr. White}{pumpkin}      In this case, it is simple to diagnose, because I can quickly recognize the line `Hello #1, your #2 pie is ready.` and find it with a search; however, in more complex documents, `Hello #1, your #2 pie is ready.` might appear dozens of times, so I don't know where to look; or the reported error displays other code (which I will assume is underlying TeX code) not actually included within any of the code I wrote, so the messages seem of little help. What are some general steps one can take to aid in the identification of the source of errors of this type?


title: How can I have titles with normal font size with AUCTeX+Emacs?

text: I'm wondering how to modify the way AUCTeX show titles. By defaut, the titles are too big for me and they take too much place in my screen. ![enter image description here](http://i.stack.imgur.com/vCY8K.png) (ignore the red underlining created by flyspell set with a dictionary which is not English). I would like to have the same font size for everything in my document. I believe the color is sufficient to emphasize titles. I tried to set `font-latex-fontify-sectioning` to 'color' according to AUCTeX manual: > User Option: font-latex-fontify-sectioning > > Per default sectioning commands will be shown in a larger, proportional > font, which corresponds to a number for this variable. The font size varies > with the sectioning level, e.g. ‘\part’ (font-latex-sectioning-0-face) has a > larger font than ‘\paragraph’ (font-latex-sectioning-5-face). Typically, > values from 1.05 to 1.3 for font-latex-fontify-sectioning give best results, > depending on your font setup. If you rather like to use the base font and a > different color, set the variable to the symbol ‘color’. In this case the > face font-lock-type-face will be used to fontify the argument of the > sectioning commands. However, I obtained an error for the setting `'color'`: > custom-variable-set: This field should contain a number (floating point or > integer) I tried then to set this setting to 1. (the default is 1.1) with the idea that 1. should be the normal font size. I obtained this error (I cannot see my titles anymore): ![enter image description here](http://i.stack.imgur.com/ceUD5.png)


title: Avoid hyperref warnings in moderncv

text: Whenever I compile a CV with `moderncv`, I get four warnings by `hyperref`. There don't seem to be any serious problems connected to them, yet they bug me. I like my documents to compile without warnings. **How can I avoid these warnings?** (Preferably without patching `moderncv.cls` itself, I'd rather add a few lines in each of my CVs.) MWE:               \documentclass{moderncv}          \firstname{John}     \familyname{Doe}          \begin{document}      \maketitle          \cvline{always}{King of the World}          \end{document}      The warnings:               Package hyperref Warning: Option `pdfpagelabels' is turned off     (hyperref)                because \thepage is undefined.          Package hyperref Warning: Option `baseurl' has already been used,     (hyperref)                setting the option has no effect on input line 6.          Package hyperref Warning: Option `pdfpagemode' has already been used,     (hyperref)                setting the option has no effect on input line 6.          Package hyperref Warning: Option `pdfstartpage' has already been used,     (hyperref)                setting the option has no effect on input line 6.      * * * UPDATE: Version 0.19 (2012/02/06) of `moderncv` only produces these warnings, the latter of which appears to be new:               Package hyperref Warning: Option `pdfpagelabels' is turned off     (hyperref)                because \thepage is undefined.          Package hyperref Warning: Option `pdfpagelabels' has already been used,     (hyperref)                setting the option has no effect on input line 6.


title: Use array in loop in tikz

text: In general: I need to retrieve values from an array to submit those values as indices to a function. More specific: I want to create figures, which contain subfigures. These subfigures are loaded from mysubfigures.pdf. The order of the subfigures is saved in a seperate list `ggg`. I made a minimal example below. This is the part that doesn't work and where I need your help: `page=\ggg(\subfigure)` I want it to be like `page=64` when `\subfigure`is`1`, `page=61` when `\subfigure`is`2`, and so on. _(I have looked at some similar questions on stackexchange but I don't understand the answers.)_               \documentclass[class=minimal,border=0pt,tikz]{standalone}     \usepackage{tikz}     \usepackage{arrayjob}          \begin{document}          \newarray\ggg     \readarray{ggg}{64&61&41}     \ggg(1)              \foreach \subfig in {1,2,3}         {             %This is Figure \subfig             \includegraphics[page=\ggg(\subfig)]{./mysubfigures.pdf};         }          \end{document}


title: Extra space behind month for \today with \usepackage[norsk]{babel} in December

text: When using `\today` and `\usepackage[norsk]{babel}` (`babel <v3.8l>`) in December there is an extra space behind the month name. How do I get around this?               \documentclass{article}     \usepackage[norsk]{babel}     \begin{document}     \day12\month12\year2011     \today          12. desember 2011     \end{document}      ![12. desember 2011](http://i.stack.imgur.com/9UYBF.png) * * * ## Note 1 Javier Bezos writes that the issue is fixed in the forthcoming `babel`, version 3.9. ## Note 2 Version 3.9 of `babel` was released March 2013.


title: How to use tilde or space in includepdf filename?

text: I'm trying to include a pdf in a document, using `pdfpages` package, but I'm having troubles when filename contains tilde or space. e.g.               \includepdf[pages=-]{C:/Users/MYUSER~1/AppData/Local/Temp/mypdfpdf.pdf}          \includepdf[pages=-]{C:/Users/MYUSER FOO/AppData/Local/Temp/mypdfpdf.pdf}      I've tried to escape for example through `$\sim$` but it doesn't work... Is it possible to escape tilde/space in the filename ? Thanks in advance


Several times, the floatrow package uses `\newtoks` which (according to this website) means that a token register is allocated. An example code snippet is               \@ifdefinable\FR@everyfloat{\newtoks\FR@everyfloat}     \FR@everyfloat={\let\@footnotetext\@mpfootnotetext       \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@       \floatobjectset\floatfont}      Suppose I want to add something (e.g., `\setlength{\footnotesep}{0.2\baselineskip}`) to the definition of `\FR@everyfloat`. One way I successfully applied in this answer is to overwrite the original definition, i.e., write               \FR@everyfloat={\let\@footnotetext\@mpfootnotetext       \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@       \floatobjectset\floatfont       \setlength{\footnotesep}{0.2\baselineskip}}      However, I'd like to avoid duplicating the whole token list content; instead, I want to append material to the list the same way one would use `\g@addto@macro` (or `\appto` from the etoolbox package). However, my naïve approach to write               \g@addto@macro{\FR@everyfloat}{\setlength{\footnotesep}{0.2\baselineskip}}      doesn't work -- obviously, token lists must be treated different from macros. So: How does one append material to a token list?


title: Pst-Solides3D Transformation of a Cube with parameter

text: I'm working on the example given at 4.14.3. in the documentation on Pst- Solides3d : Transformation associated with the distance to the origin. The code is as follows               \documentclass[a4paper,10pt]{article}     \usepackage[utf8x]{inputenc}     \usepackage[english]{babel}      \usepackage[english,verbose]{layout}     \usepackage{pstricks-add}     \usepackage{auto-pst-pdf}     \usepackage{multido}     \usepackage{pst-solides3d}     \usepackage{fp}     \begin{document}     \begin{pspicture}(-3,-4)(4,3)      \psset{viewpoint=20 60 20 rtp2xyz,lightsrc=10 15 7,      Decran=20}       \pstVerb{       /gro {       4 dict begin       /M defpoint3d       /a 0.5 def       /b 1 a 3 sqrt mul sub def       /k M norme3d a mul b add def       M k mulv3d       end       } def}%            \psset{linewidth=.02,linecolor=gray}       \psSolid[object=cube,a=3,ngrid=9,transform=gro](0,0,0)%      \end{pspicture}     \end{document}      And transforms the cube accordingly. What I would like, is to be able to parameterize the procedure in a loop, for the parameter \a.               \documentclass[a4paper,10pt]{article}     \usepackage[utf8x]{inputenc}     \usepackage[english]{babel}      \usepackage[english,verbose]{layout}     \usepackage{pstricks-add}     \usepackage{auto-pst-pdf}     \usepackage{multido}     \usepackage{pst-solides3d}     \usepackage{fp}     \begin{document}     \multido{\iA=0+1}{15}{%     \FPeval{\iB}{\iA*0.5/15}%     \begin{pspicture}(-3,-4)(4,3)      \psset{viewpoint=20 60 20 rtp2xyz,lightsrc=10 15 7,      Decran=20}       \pstVerb{       /gro {       4 dict begin       /M defpoint3d       /a \iB\space def       /b 1 a 3 sqrt mul sub def       /k M norme3d a mul b add def       M k mulv3d       end       } def}%       \psset{linewidth=.02,linecolor=gray}       \psSolid[object=cube,a=3,ngrid=9,transform=gro](0,0,0)%      \end{pspicture}     \newpage     }     \end{document}      So that the parameter a varies from 0 to 0.5 (modulo 1 increment..) in 15 steps. But somehow pst-Solides3d doesn't like it when I put anything else than a number there after /a. Any solution ? For the sake of being perfectly clear : My goal is to animate a coordinate transformation on a cube. The transformation is given by the function /gro. The target transformed cube has a transformation of parameter /a = 0.5. /a = 0 doesn't transform the cube at all. So my goal is to generate pictures with /a ranging from 0 to 0.5, that is going from untransformed to fully transformed cube. Then I'll use animategraphics to animate the transformation. Edit: I have figured it out, all I was missing was a \space after \iB.


title: Can I calculate the difference between two relatively positioned nodes with TikZ using calc?

text: I have a chart with relatively positioned nodes. **How do I calculate the horizontal distance _x_ , between node "sub3" and node "key"** and multiply that value by 2 and use it for the positioning of node "bang2" such that it is aligned with node bang1. I tried using some of the code from page 54 of the TikZ Manual v2.10 to draw a circle at node "sub3" with a radius reaching to node "bang2" as a test to see if I can calculate this, but it failed. I know that the TikZ example uses absolute positioning rather than relative positioning. I assume this is why my test failed.               \documentclass[12pt]{standalone}     \usepackage{fontspec}     \usepackage{tikz}     \usetikzlibrary{arrows,positioning,shapes,backgrounds,fit,calc}           \begin{document}          \begin{tikzpicture}[node distance=3cm, auto]       \tikzset{         mynode/.style={rectangle,rounded corners,draw=black, top color=white, bottom color=red!50,very thick, inner sep=1em, minimum size=3em, text centered},         keynode/.style={rectangle,rounded corners,draw=black, top color=white, bottom color=orange!50,very thick, inner sep=1em, minimum size=3em, text centered},         bangnode/.style={shape=star, star points=20, star point ratio=1.65,draw=black, top color=white, bottom color=yellow!50,very thick, inner sep=2em, minimum size=3em, text centered,font=\bfseries},         myarrow/.style={->, >=latex', shorten >=1pt, thick},         mylabel/.style={text width=7em, text centered}      }                      \node[bangnode](bang1){Bang};        \node[keynode,below left=2cm and 2cm of bang1](key){Key Message};           \node[mynode,below right of=key](sub1){Sub Topic 1};           \node[mynode,below of=sub1](sub2){Sub Topic 2};           \node[mynode,below of=sub2](sub3){Sub Topic 3};     \node[bangnode,below right=2cm and 2cm of sub3](bang2){Bang};     %ARROWS     \draw[<->,bend left=45] (sub1)[]to(sub2);     \draw[<->,bend left=45] (sub2)to(sub3);     \draw[<->,bend left=45] (sub1)to (key);     \draw[<->,bend left=45] (sub2)to (key);     \draw[<->,bend left=45] (sub3)to (key);     %\draw (key) let                %   \p1 = ($ (sub3) - (key) $);                % in                %   circle ({veclen(\x1,\y1)});          \begin{pgfonlayer}{background}         \node [fill=blue!10,fit=(bang1) (bang2) (sub1)(sub2)(sub3)(key)] {};       \end{pgfonlayer}     \end{tikzpicture}          \end{document}        * I know about this answer about getting the halfway distance between nodes   * I also know about this answer about computing the distance between nodes   * I also know about this question for computing horizontal distance between nodes, but it is confusing and does not really answer my question ![Chart](http://i.stack.imgur.com/8sHOi.png)


title: Header and Footer in handout using pgfpages

text: I am trying to print out page number/total number of pages in the handout that I get from this code: This is my MWE:               \documentclass[11 pt, handout,xcolor=pdftex,x11names,table]{beamer}     \mode<beamer>{\usetheme{CambridgeUS}}     \usepackage{pgfpages}     \pgfpagesuselayout{2 on 1}[letterpaper,border shrink=10mm]     \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}          \begin{document}          \begin{frame}     \frametitle{First}     \begin{itemize}     \item check1     \item check 2     \end{itemize}     \end{frame}          \begin{frame}     Text 1     \end{frame}          \end{document}       I am well aware that I can do it using `pDfpages` as pointed out in Actual page number (and total number of pages) in the handout . However, the problem with using `pDfpages` is that it does not preserve the original document's bookmarks. I was wondering if this is possible to do using `pGfpages` or any other package?


title: Switch positions of startyear and endyear in moderntimeline

text: How can I switch in package `moderntimeline` the positions of `startyear` and `endyear` without breaking the layout? Would be nice to have the `startyear` below and the `endyear` on top. I'd like to simply change 2010 with 2007 in the following image: ![enter image description here](http://i.stack.imgur.com/RGVuF.png)


title: How do I put chapters into a LaTeX document?

text: I used the following LaTeX tag to make a chapter               \chapter{title here}      but it did not compile. The LaTeX compiler was talking about               Undefined control sequence      How can I get over this error?


title: OldStyle Numbers in Body Text Only—Lining Numbers Otherwise

text: My main font numbers are set to `OldStyle`. How can I set `Lining numbers` for:   * Titles (chapter, section, subsection, &c...),    * Beginning of enumeration,   * Page number, and   * Footnote numbers (but not footnote itself)?    MWE:               \documentclass{article}          \usepackage{fontspec}     \usepackage{enumerate}     \usepackage{biblatex}          \setmainfont[Scale=1.0,Numbers={OldStyle,Proportional},Ligatures=TeX]{Minion Pro}          \begin{document}          \section{Section}     Text with numbers; 123 456 seven \& eight.          \begin{enumerate}     \item Item1 with footnote.\footcite{001}     \end{enumerate}          \end{document}         Current Output:   ![Current output](http://i.stack.imgur.com/mruBP.jpg) _Note:_   1. Ignore that the actual footnote has not been properly compiled.   2. This is my first post; I apologise if it doesn't comply with guidelines. Please let me know if anything is wrong and I will make note for future reference.


title: Managing References Among Multiple Projects

text: I'm not sure it matters for this question but, in any event, I'm using TeXlipse as my latex editor and project management tool. Now, suppose one has two projects A and B that are built with separate output files, say, A.pdf and B.pdf. Further, suppose that theorems in B refer to theorems in A. Is there an established way to "link" these projects where the references in B to A resolve properly? For example, suppose that in project A on has the following:               \begin{theorem}\label{a_1}     ...     \end{theorem}      ` And in project B one writes               Here in project A we note the result \ref{a_1}      ` Is there a way for the compiler to "find" the item labeled "a_1" and display the appropriate theorem number? If these are PDF's that live in the same directory, I would also expect to be able to click on the link and be taken to the appropriate place in the referenced document.


title: How to process a comma separated list?

text: Using receipt of "LaTeX3: unable to convert space separated list into clist" I elaborated the following code for my needs:               \documentclass{book}      ...     \usepackage{expl3}          \begin{document}          \newcommand{\PrintAnswer}[1]{%     \InputIfFileExists{#1}{\refstepcounter{subsection}}{\typeout{*** #1 not found ***}}}          \ExplSyntaxOn     \cs_new:Nn\PrintAnswerList:n{       \clist_set:Nx\l_csv_clist{#1}       \clist_map_inline:Nn\l_csv_clist{         \typeout{**** Printing ##1.ans}         \ExplSyntaxOff         \PrintAnswer{##1.ans}         \ExplSyntaxOn       }     }     \PrintAnswerList:n{\inputfiles}     \ExplSyntaxOff          \end{document}       It is intended for conditional compilation of a textbook, every chapter of which (eg, 01.tex, 02.tex) writes answers to problems to the file named after the name of the chapter source file, (eg, 01.ans, 02.ans etc). Near the end of the book these files are read in by the macro `\PrintAnswer`. Usually, I compile only few chapters using the following trick to keep desired chapters in `\inputfiles` macro:               \typein[\inputfiles]{^^JEnter filename(s) for \protect\includeonly:}      All that works fine, but I was forced to switch off experimental syntax before `\PrintAnswer{##1.ans}` because otherwise answer files are not processed correctly (in particular, LaTeX complains that the commands for greek letters are not defined and hyphenation is broken). Therefore my question is **How can one rewrite the above code using user-level LaTeX3 commands?** I found `\SplitList` command in `xparse` package. Can it help?


title: Hide output, but maintain the cross-references

text: I am (losing my mind) trying to convert a TeX file to a Word with `latex2rtf`. The body translates well, but the tables don't. I use a lot of cross- references and out like to maintain them. My solution is to push the tables to the end of the document. I'd like to go further and suppress table output, but keep the cross-references. This would be one less step in my conversion process because I wouldn't have to cut the bad tables out of the Word document before appending back the good tables made outside of LaTeX. I tried the `comment` environment from the `verbatim` package, but this doesn't work because the cross-references don't survive. Is this possible? Or should I just accept that I can't script everything? Thanks!               \documentclass[12pt]{article}     \usepackage{verbatim}          \begin{document}     I would like to reference Table \ref{tab:1}, which is pushed to the end of      the paper with a {\tt clearpage} and commented out because it doesn't convert      correctly in {\tt latex2rtf} and I will find a solution outside of \LaTeX.          \clearpage     \begin{comment}     \begin{table}       \centering       \begin{tabular}{ l c r }         1 & 2 & 3 \\         4 & 5 & 6 \\         7 & 8 & 9 \\       \end{tabular}       \caption{This table is my white whale.}       \label{tab:1}     \end{table}     \end{comment}          \end{document}      * * * Edit: FWIW, my main problem with the tables in `latex2rtf` seems to be `ifmmode` macros, which cause frequent crashes.


title: Giving headlines a background color spanning across the entire typearea

text: I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background color. I would like this box filled with a single solid color to span across the entire typearea. This picture is a screenshot of an OpenOffice document where the headline has the formating, layout and color I want. ![Image showing example](http://i.stack.imgur.com/teNdj.png) ## Requirements on a solution   1. The resulting style is supposed to be used by others, meaning an equivalent latex output to the picture above shall be created by this code:              Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text           \subsubsection{This is a headline}          Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text Some Text Some Text     Some Text Some Text Some Text Some Text Some Text        2. If the section is supposed to be unnumbered one should be using `\subsubsection*`.   3. LaTeX still needs to be in charge of the whitespace between paragraphs and the blue box. ## What I have tried so far As far as I can google the headline together with the section numbering are a simple paragraph. Latex adds some skips before and after and squeezes in a few commands that modify the font(s). My ideas revolve around locking this paragraph in a `\colorbox`. The colorbox macro works like this: `\colorbox{color}{the content around which to draw a box filled with the specified color}`. My problem is I can't get a grasp on this paragraph. ### The easy 80% My work is based on koma-script and by redefining `\othersectionlevelsformat` and `\\(sub)*section`. I can draw two boxes, one surrounding the section numbering and another surrounding the section title. However this has 3 open issues:   1. the upper edges of the boxes are unaligned and the box with the title is slightly larger than the line with the numbering   2. The box around the title does not strech to the right end of the typearea   3. the box around the numbering doesn't grow if the title spans multiple lines (no surprise here) ### The hard 20% I tried to make latex put the section numbering into a `\savebox` I could access later and put as part of the title. That would eliminate the need for two boxes and solve all three of my problems at once, but that doesn't work. I only get to modify the title _before_ the actual numbering is done. So while I can put the numbering into a savebox, I can't do anything with it until it's too late. I tried putting the `\section ...` statement into a colorbox, but it doesn't like that and the document fails to compile with `! LaTeX Error: Something's wrong--perhaps a missing \item.` The same holds for saveboxes. I guess colorbox uses those. I tried putting the `\section ...` statement in a minipage and put a box around that. This has two issues. 1st: latex doesn't put any empty space above a section. 2nd: not only the section numbering and title have the background but also the empty space between section title and first paragraph. So how can one hack latex to do a section title formating as shown in the screenshot above?


title: Footnote separator for wrapped footnote

text: In a text I am writing I have a couple of quite long footnotes which start on one page and continue on the next one. In order to comply with style requirements the line separating the body text and the footnotes has to extend over the full width of the text if such a footnote begins there (and does not end on this page). Is there a way (e.g. package with this kind of option) to achieve this?