title: LaTeX3 -- What is the difference between the modules l3seq and l3clist?

text: LaTeX3 provides the two modules `seq` and `clist`. What is the difference? The module `clist` is introduced by > Comma lists contain ordered data where items can be added to the left or > right end of the list. The module `seq` is introduced by > LaTeX3 implements a “sequence” data type, which contain an ordered list of > entries which may contain any balanced text. What are the benefits and drawbacks of the modules?


title: \usepackage{enumitem} produces "Environment description undefined" error

text: If I run `pdflatex` on the following:               \documentclass[class=minimal,border=0pt]{standalone}     \usepackage{tikz}     \usepackage{varwidth}     \usepackage{upquote}     % \usepackage{enumitem}     \usetikzlibrary{arrows,calc,chains,shapes,scopes}     \renewcommand{\familydefault}{\sfdefault}          \begin{document}     \end{document}      I get no error. However, if I uncomment `\usepackage{enumitem}` then running `pdflatex` on the document produces the following error:               ! LaTeX Error: Environment description undefined.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.775 \renewenvironment{description}                                         [1][]     ?      Why is this, and what can be done about it?


title: Adding dimensions to TikZ pictures

text: How do you add dimension labels to TikZ pictures? Ideally, it would look something like this:               |<----- dimension ----->|      I would like to do this to show the measurement of both straight lines (i.e. sides of a polygon) and curved lines (i.e. circumference/arc length on a circle). Thanks in advance for your help!


title: Reducing Row Height in a Longtable

text: How can we change the line spacing in a long-table? I used package `setspace` and `\linestretch` command, but its not working. Minimal Example is attached.               \documentclass[english]{article}     \usepackage[T1]{fontenc}          \usepackage[latin9]{inputenc}          \usepackage{array}          \usepackage{longtable}          \usepackage{float}          \usepackage{lipsum}          %\usepackage{stepspace}          \makeatletter          \providecommand{\tabularnewline}{\\}          \makeatother          \usepackage{setspace}          \usepackage{babel}          \begin{document}          \renewcommand{\baselinestretch}{.8}               \lipsum{1}          \begin{longtable}{>{\raggedright}p{135pt}>{\raggedright}p{135pt}r}          \caption{dfkg kdlfgj dfjkg dfklgj sd}          \hline           \textbf{Country} & \textbf{District} & \textbf{Amount }\textbf{\scriptsize ('000'USD)}\tabularnewline          \hline           \endhead          Afghanistan & L & 6\tabularnewline          \hline      Australia & K & 2,9\tabularnewline          \hline      Austria & I & 3\tabularnewline          \hline      Bahrain & K & 3\tabularnewline      & L & 1\tabularnewline     \hline      Belgium & K & 1\tabularnewline      & L & 2\tabularnewline          \hline      Canada & I & 99,965\tabularnewline      & K & 9\tabularnewline      & L & 1\tabularnewline          \hline      Cayman I & I & 2\tabularnewline      & Ka & 1\tabularnewline          \hline      \textbf{Grand Total} &  & \textbf{2}\tabularnewline          \hline           \end{longtable}          \end{document}


title: Is there a spell check package for LaTeX?

text: I normally use my gedit spell check extension for the task, but wouldn't it be much better if you could fix any typos or otherwise during compilation time, in a sort of interactive mode?


title: Add subsection in ToC with memoir

text: With memoir, it seems like that only chapter/section is shown in ToC, but I need to show subsection in ToC with memoir document. How can I do that? ![enter image description here](http://i.stack.imgur.com/UIsfq.png)               \documentclass[12pt,oneside]{memoir}          \title{Document}     \author{prosseek}     % }          \begin{document}     \frontmatter     \maketitle     \tableofcontents     \mainmatter     \chapter{The Domain Problem and Stakeholders}     \section{First}     abcdef.     \subsection{Sub}     def          \end{document}


title: change the angle of an edge of an automaton

text: I want to draw a transducer (automaton) that has the following characteristic. In every final state some edges leave those states with a letter label and don't go to any node. But i want to be able to define the angle of the edges. How can i do that?               \documentclass[12pt, a4paper, oneside, openany]{memoir}     \usepackage{fontspec}     \usepackage{xgreek}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsthm}     \setmainfont{Times New Roman}          %automata package     \usepackage{tikz}     \usetikzlibrary{automata, positioning}          \begin{document}         \begin{tikzpicture}[shorten >= 1pt, node distance = 3cm, on grid, auto]         \node [state, initial] (0) {0};         \node [state] (1) [above right=of 0] {1};         \node [state] (2) [below right=of 0] {2};         \node [state, accepting] (3) [above right= of 2] {3};              \path[->]             (0) edge                                  node           {a:a}           (1)      edge[bend right]               node[swap]{b:a}     (2)             (1) edge                                  node{a:a}                (3)             (2)  edge[bend right]               node{b:a}               (3)             (3) edge node [above] {a} +(2,0);              \end{tikzpicture}          \end{document}      Sorry for the bad alignment...So i have a state (3) which is an accepting one and I want two edges strart from three going nowhere. But i want them to be with different angles like one going upwards and one going downwards. I have managed to add one edge that goes nowhere               (3) edge node [above] {a} +(2,0);      but can get it to change the angle. And a second not so relevant and please excuse me for that. Can i add a caption on my automaton like               Figure 1     Example of transducer


title: different coordinate frames for anchors and backgroundpath in node shapes?

text: I want to create a triangle shape for flow diagrams, so far I succeeded but the anchors I have defined are badly placed. This seems to be wired as I have just copied and pasted the code from the computation of the background path (see MWE below). So my question is, is there a (hidden) canvas transformation going so that I am computing different things for anchors and for the background path? ATM the angle in the right lower corner is fixed to 60 degrees, as it has to be parallel to other such boxes. Remark: The `in' anchor should be placed on the middle of the bottom line, the`out' anchor on the middle of the slanted (right) line. Here also as in other node shapes (notably trapezium) one sees that the end of the connecting line is not fully reaching the border line of the node, but the gap is very small. Here is the code:               \documentclass{article}     %=======================================================================     % include macros     %-----------------------------------------------------------------------     \usepackage{tikz}     \usetikzlibrary{shapes, shapes.multipart, shapes.geometric}     \tikzstyle{string}=[line width=1.25pt]     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %     % state or program     %     \newlength\progsize     \setlength\progsize{0.2cm}     \newlength\minimumstatesize     \setlength\minimumstatesize{0.4cm}     %%     %%     %%     \makeatletter     \pgfdeclareshape{prog}     {% -- some dimensions        \saveddimen{\halftextwidth}{%            \pgf@x=0.5\wd\pgfnodeparttextbox            % get xsep            \pgfmathsetlength\pgf@xc{\pgfkeysvalueof{/pgf/inner xsep}}%            \advance\pgf@x by \pgf@xc%            % get minimum width            \pgfmathsetlength\pgf@xb{\pgfkeysvalueof{/pgf/minimum width}}%            \divide\pgf@xb by 2            \ifdim\pgf@x<\pgf@xb%               % yes, too small. enlarge...               \pgf@x=\pgf@xb%            \fi%          }        \saveddimen{\halftextheight}{%            \pgf@x=0.5\ht\pgfnodeparttextbox            % get ysep            \pgfmathsetlength\pgf@xc{\pgfkeysvalueof{/pgf/inner ysep}}%            \advance\pgf@x by \pgf@xc%            % get minimum width            \pgfmathsetlength\pgf@xb{\pgfkeysvalueof{/pgf/minimum height}}%            \divide\pgf@xb by 2            \ifdim\pgf@x<\pgf@xb%               % yes, too small. enlarge...               \pgf@x=\pgf@xb%            \fi%          }        % -- anchors        \savedanchor\centerpoint{%  midpoint on base line            \pgf@x=0pt             \pgf@y=0pt        }        \anchor{center}{\centerpoint}        \anchor{text}{%              % horrizontal midpoint of pgfnodeparttextbox              \pgf@x=-0.5\wd\pgfnodeparttextbox              \pgf@y=-0.5\ht\pgfnodeparttextbox              \advance\pgf@y by -0.5\dp\pgfnodeparttextbox              }        \anchor{in}{% use triangle corners as computed in \backgroundpath below              \pgf@xa=\halftextwidth        % (xa)              \pgf@xb=\pgf@xa                 \pgf@xc=\halftextheight                 \pgf@xc=1.732\pgf@xc                 \advance\pgf@xb by \pgf@xc % (xb)              \pgf@x=\pgf@xb                % (x) = (xb-xa)/2                    \advance\pgf@x by -\pgf@xa                 \divide\pgf@x by 2              %              %% same code as in \backgroundpath !!!!              \pgf@ya=2pt                   % (ya)                 \advance\pgf@ya by 0.5\ht\pgfnodeparttextbox                 \advance\pgf@ya by    \dp\pgfnodeparttextbox                 \pgf@y=-\pgf@ya    % (y) = (-ya)              }        \anchor{out}{% use trinagle corners as computed in \backgroundpath below              %% (x)              \pgf@xa=\halftextwidth        % (xa)              \pgf@xb=\pgf@xa                 \pgf@xc=\halftextheight                 \pgf@xc=1.732\pgf@xc                 \advance\pgf@xb by \pgf@xc % (xb)              \pgf@x=\pgf@xb                           \advance\pgf@x by -\pgf@xa                 \divide\pgf@x by 2         % (x) = (xb-xa)/2              %% (y)              \pgf@ya=2pt                     % (ya)                 \advance\pgf@ya by 0.5\ht\pgfnodeparttextbox                 \advance\pgf@ya by    \dp\pgfnodeparttextbox              \pgf@yc=\pgf@xb                % (yc)                 \advance\pgf@yc by \pgf@xa                 \pgf@yc=1.732\pgf@yc              \pgf@y=0.5\pgf@yc                 \advance\pgf@y by -0.5\pgf@ya   % (y) = (xc-ya)/2        }              %%        %%        \backgroundpath        {        %% -- compute the corners (A,B,C) of a trinagle with such that:        %%    AB horizonlat, AC vertical, and        %%    A: left bottom angle 90degrees (xa,ya)        %%    B: right bottom angle 60 degrees (xb,yb=ya)        %%    C: top angle 30 degrees (xc=xa,yc)              \pgf@xa=\halftextwidth          % (xa)              \pgf@ya=2pt                     % (ya)                 \advance\pgf@ya by 0.5\ht\pgfnodeparttextbox                 \advance\pgf@ya by \dp\pgfnodeparttextbox               \pgf@xb=\pgf@xa                 % (xb)  (yb=ya)                 \pgf@xc=\halftextheight                 \pgf@xc=1.732\pgf@xc         % tan(Pi/3) ~= 1.732                 \advance\pgf@xb by \pgf@xc              \pgf@yc=\pgf@xb                 % (yc)  (xc=xa)                 \advance\pgf@yc by \pgf@xa                 \pgf@yc=1.732\pgf@yc              %              \pgfpathmoveto{\pgfqpoint{-\pgf@xa}{-\pgf@ya}}              \pgfpathlineto{\pgfqpoint{-\pgf@xa}{\pgf@yc}}              \pgfpathlineto{\pgfqpoint{\pgf@xb}{-\pgf@ya}}              \pgfpathclose              %\pgfcircle{\centerpoint}{2pt}        }     }     \makeatother          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %=======================================================================     \begin{document}     %=======================================================================          \[\begin{tikzpicture}             \node[prog,draw,string,inner xsep=1pt,inner ysep=-1.5pt] (p1) at (0,0.5) {\texttt{t}};             \node[prog,draw,string,inner xsep=1pt,inner ysep=0pt] (p2) at (1,0.5) {\texttt{p}};             %             \draw[string] (p1.in |- 0.2,0) -- (p1.in);            \draw[string] (p2.in |- 0.2,0) -- (p2.in);             \draw[string] (p1.out) -- (0.5,1);             \draw[string] (p2.out) -- (1.5,1);       \end{tikzpicture}\]     \end{document}      and here is the (wrong) output: ![enter image description here](http://i.stack.imgur.com/vJZ3Q.png)


title: floatrow package, subfigures and cross referencing

text: I think the question has not been posted already. Here is my problem : I wanted several subfigures within one. I used "subcaption" package at first, as it's the newest. But it appeared that it's not possible to reposition the subcaption next to the figure (instead of below it). For that, I had to use "floatrow" package, which is incompatible with "subcaption" package. BUT, when I cross-reference the subfigure in the general figure caption, instead of 'blabla (a)', shows 'blabla 1(a)' (1 being the figure number). I don't want the figure number when I cross ref in the same fig ! Thanks a lot for any help !               \documentclass[10pt,a4paper]{report}     \usepackage[demo]{graphicx}     \usepackage{caption}     \usepackage{floatrow}     \usepackage{subfig}     \usepackage[english]{babel} % for table, doesn't matter here     \usepackage{setspace}          \begin{document}          \begin{figure}[h]            \sidesubfloat[]{\includegraphics[width=\linewidth,height = 5cm,keepaspectratio]{bigpicture1}\label{fig:sub_ref_1}}       \\[10pt]             \sidesubfloat[]{\includegraphics[width=\linewidth,height = 5cm,keepaspectratio]{bigpicture2}\label{fig:sub_ref_2}}     \caption{I want to cross ref. Now I can only obtain that : \ref{fig:sub_ref_1}, and that : \ref{fig:sub_ref_2} }     \label{fig:fig_1_label}           \end{figure}           \end{document}      ![Compiled :](http://i.stack.imgur.com/hTZCN.png)


title: How can the concatenation of two valid LaTeX documents fail to be valid?

text: The question in the title is confusing, because it doesn't make sense (though it's legal) to concatenate LaTeX documents; everything after the first `\end{document}` will be ignored. What I mean is that I had two wodges of text, `AAA` and `BBB`, such that               \documentclass{article}     \begin{document}     \title{\(u\)-substitutions}     \maketitle     AAA     \end{document}      and               \documentclass{article}     \begin{document}     \title{\(u\)-substitutions}     \maketitle     BBB     \end{document}      both compiled, but               \documentclass{article}     \begin{document}     \title{\(u\)-substitutions}     \maketitle     AAA     BBB     \end{document}      did not. In fact, it failed with an exceedingly strange error:               ! LATEX ERROR: BAD MATH ENVIRONMENT DELIMITER.      (Those of you who sometimes misplace braces will recognise that the error is not so strange—except that LaTeX usually doesn't shout about it.) Even more strangely, the error seemed to hop around randomly; for example, it moved to a different place if I pasted `AAA` _after_ `BBB`. Anyway, I couldn't whittle it down to a test case. In fact, my random commenting strategy revealed at one point that including               \usepackage[margin=2cm]{geometry}      removed the error—but what does that have to do with math delimiters? Well, I did figure out the answer, and actually laughed when I realised why the error message was in uppercase. According to Asking a question and answering it yourself straight away, it's OK to ask a question to which I know the answer, as long as I don't answer it right away; so I'll just sit tight.


title: How to have the algorithmicx comment symbol in algorithm2e?

text: I want to know how can I have the nice ▷ `$\triangleright$` comment symbol of `algorithmicx` in `algorithm2e`?


title: Comment a portion of an equation embracing it with a bracket

text: ![Comment a portion of an equation with a bracket and some text and/or formula](http://i.stack.imgur.com/4MwoV.png) I belive that the image says it all. I have searched on the Internet but apparently I don't use the correct keywords.


title: How to change the font formatting in the text and numbers of footnotes in ConTeXt?

text: I have a document with two different types of footnotes, `\noteone` and `\notetwo`, defined with this:               \definenote[noteone][footnote]     \definenote[notetwo][footnote]      For these two footnotes, I need to indepently set the fonts and font sizes, using `\ssa\bf`, `\cga\bf` etc., so they have a distinguishable appearance. Each type of footnote has three parts to be independently set:               - The number appearing in the body text.     - The number appearing next to the note, at the bottom of the page.     - The text appearing in the note at the bottom of the page.      I spent many hours in trial-and-error, while consulting the ConTeXt Garden's articles on http://wiki.contextgarden.net/Footnotes, http://wiki.contextgarden.net/Command/setupfootnotes, and the relevant material at http://wiki.contextgarden.net/Unexpected_behavior while trying to adjust the fonts. I found many commands that are used to adjust the settings:   * `\setupfootnotes`   * `\setupfootnotedefinition`   * `\setupnote`   * `\setupnotation` I also found that these commands can be adjusted with many settings:   * `bodyfont`   * `style`   * `numbercommand`   * `textcommand`   * `textstyle` I could not determine which were the proper ones to adjust the font settings for the footnote's number in the text, the footnote's number near the note at the bottom of the page, and the footnote's note text at the bottom of the page. How can I change the fonts and font sizes of the various components of footnotes in ConTeXt?


title: How can I get a curved arrow to break?

text: I have the following diagram in `xypic`:               \documentclass{article}     \usepackage{amsmath,amsthm}     \usepackage[all,cmtip,2cell]{xy}          \begin{document}          \[\xymatrix{     & K\Omega M \ar[rr] \ar[ld]_(.4){K\Omega F} \ar@{.>}'[d][dd]_-\simeq  &&  K\Delta M \ar[rr] \ar[ld]  && Kq\Delta M \ar[ld]  \\     K\Omega N \ar[rr] \ar@{.>}[dd]_-\simeq  &&  K\Delta N \ar[rr]  &&  Kq\Delta N  \\     & \Omega Kq\Delta M \ar@/_2pc/[rruu] \ar[ld]_-{\Omega Kq\Delta F} & \\     \Omega Kq\Delta N \ar@/_2pc/[rruu]     }\]          \end{document}      This renders like this: ![enter image description here](http://i.stack.imgur.com/nupNv.png) The curved arrow "on the background" should be broken twice, each time it crosses another arrow, to give the impression of really being in the background. How can I achieve that?


title: latexdiff hide the old version (the red crossed text)

text: My journal editor is asking for a file that highlights only additions to the document (don't ask me why). So, I don't want to see the red-crossed text (the old version or the discarded text) in the generated file by latexdiff, only the blue text (i.e. the new version or the added text). Additional, is it possible to change the blue text color to, let's say background yellow and black text on top (like a marker highlight).


title: To make chapter bigger in article

text: \documentclass{article}     \usepackage{pdfpages}          \begin{document}     \chapter{RAA renal hormones} \label{06222014204556} \includepdf[pages={-}]{06222014204556.pdf}     \end{document}       I get formatting of **RAA renal hormones** as plain text. If I change _documentclass_ to _book_ , then right format. **What is the right way to make the chapter look like a heading in the article?**


title: Wrapping text within align

text: I am writing Flashcards for the upcomming finals. To describe the equations I use the `align*` environment like this:               \begin{align*}         x_+ &: \text{ Molenbruch von Enzymen, bei denen funktionelle Gruppen protoniert sind}\\         x_n &: \text{ Molenbruch von Enzymen, bei denen die Ladung mehr oder weniger ausgeglichen ist}\\         x_- &: \text{ Molenbruch von Enzymen, bei denen funktionelle Gruppen deprotoniert sind }     \end{align*}      long descriptions are going over the margin. (using `a6paper`) is there any way to wrap the text within the `align*` environment other than this:               \begin{align*}         x_+ &:      \text{ Molenbruch von Enzymen, bei denen }\\             &:\quad \text{funktionelle Gruppen protoniert sind}\\         x_n &:      \text{ Molenbruch von Enzymen, bei denen}\\             &:\quad \text{die Ladung mehr oder weniger ausgeglichen ist}\\         x_- &:      \text{ Molenbruch von Enzymen, bei denen}\\             &:\quad \text{funktionelle Gruppen deprotoniert sind }     \end{align*}      It should provide the same behavior like centering and stuff, just with wrapping. Centering is important to make things clearer.


title: Why does \left break TeX rendering?

text: The following TeX breaks rendering, but if I remove the \left function, the TeX renders (but without the stretchy brace). I'm helping a colleague and I'm too new to LaTeX and TeX to know how to approach fixing this.               \ \ \small{w_{1}[n] } = \left{      \begin{array}{ll}       1 & \ \ \small{n=0,1,...,12}\\      0 & \ \ \text{otherwise} \\     \end{array}


title: pgfplots: Grid Lines below Filling

text: I want to fill the area between two curves and have the grid lines below the filling. Is this possible? (From Showing grid on top of plot fill with PGFplots? I thought `axis on bottom` might work, but this seems not to be a command.) Edit: The filling method is the one suggested in Fill the area between two curves calculated by pgfplots by Christian Feuersanger, and requires a recent version of `pgfplots`.               \documentclass{standalone}     \usepackage{tikz,pgfplots}          \pgfplotsset{compat=1.10}     \usepgfplotslibrary{fillbetween}          \begin{document}          \begin{tikzpicture}     \begin{axis}[axis lines = middle,         smooth,         no markers,         xlabel = {$x$},         ylabel = {$y$},         minor tick num =1,         grid=both,         domain=0:2,]             \addplot+[domain=0:1,samples=200,name path=A,black] {sqrt(x)};             \addplot+[domain=0:1,name path=B,black] {x};             \addplot[blue!50] fill between[of=A and B];     \end{axis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/2sxTS.png)


title: Generate a square and line

text: how should i write a command to automatically place a box on the left side wherein this box can contain text and beside the box are lines which depends on an argument.


title: Change the font size in longtabu table

text: I was searching here to find a way to change the font size from normal to \footnotesize for the longtabu tables. However, the answer in longtable question didn't work in my case. They made corrections for scriptbook style. Basically, the question is the same: I want to change the font size of the main text in table without changing the caption size. Here is the example I tried to use what have been suggested: {\footnotesize ... } But it makes the caption footnotesized. Here is the MWE:               \documentclass[12pt,oneside]{report}      \usepackage{tabu}     \usepackage{longtable}     \usepackage{booktabs, multicol, multirow}          \begin{document}     \chapter{Minimum Working Example}     Composition of samples     {\footnotesize     \begin{longtabu} to \linewidth{X[l3.0] X[c] X[c] X[c] X[c] X[c]}      \caption{Composition of samples} \\      \toprule     \textbf{Component} & \textbf{Text1} & \textbf{Text2} & \textbf{Text3} & \textbf{Text4} & \textbf{Text5} \\     \midrule     H$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     O$_2$   & 0.38  & 0.10  & 0.30  & 0.91  & 0.99 \\     C$_1$    & 11.98 & 11.30 & 10.98 & 11.94 & 11.09 \\     C$_2$    & 0.44  & 0.39  & 0.43  & 0.91  & 0.33 \\     N$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     S$_2$    & 0.81  & 0.81  & 0.81  & 0.11  & 0.83 \\     C$_3$    & 9.19  & 9.01  & 9.10  & 9.84  & 9.18 \\     H$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     O$_2$   & 0.38  & 0.10  & 0.30  & 0.91  & 0.99 \\     C$_1$    & 11.98 & 11.30 & 10.98 & 11.94 & 11.09 \\     C$_2$    & 0.44  & 0.39  & 0.43  & 0.91  & 0.33 \\     N$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     S$_2$    & 0.81  & 0.81  & 0.81  & 0.11  & 0.83 \\     C$_3$    & 9.19  & 9.01  & 9.10  & 9.84  & 9.18 \\     H$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     O$_2$   & 0.38  & 0.10  & 0.30  & 0.91  & 0.99 \\     C$_1$    & 11.98 & 11.30 & 10.98 & 11.94 & 11.09 \\     C$_2$    & 0.44  & 0.39  & 0.43  & 0.91  & 0.33 \\     N$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     S$_2$    & 0.81  & 0.81  & 0.81  & 0.11  & 0.83 \\     C$_3$    & 9.19  & 9.01  & 9.10  & 9.84  & 9.18 \\     H$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     O$_2$   & 0.38  & 0.10  & 0.30  & 0.91  & 0.99 \\     C$_1$    & 11.98 & 11.30 & 10.98 & 11.94 & 11.09 \\     C$_2$    & 0.44  & 0.39  & 0.43  & 0.91  & 0.33 \\     N$_2$   & 3.94  & 3.81  & 4.03  & 3.88  & 4.01 \\     S$_2$    & 0.81  & 0.81  & 0.81  & 0.11  & 0.83 \\     C$_3$    & 9.19  & 9.01  & 9.10  & 9.84  & 9.18 \\     \bottomrule     \end{longtabu}}          \end{document}


title: In moderncv \address, \email, \mobile are not working

text: This is my code               \documentclass[11pt,a4paper,sans]{moderncv}        \moderncvstyle{casual}                            \moderncvcolor{blue}                              %\usepackage{geometry}     \usepackage[utf8]{inputenx}     \usepackage[scale=0.75]{geometry}     \setlength{\hintscolumnwidth}{2.6cm}           \settowidth{\footerboxwidth}{\usebox{\footerbox}}%          \firstname{Stefania}     \familyname{Dakourou}     \title{Rs Fellow}     \address{Navarinou 31}{15124 Marousi,Athens}     \mobile{+30 698 4385057}         \begin{document}     %\maketitle     \makecvtitle     \end{document}      Errors: There is no error but an alert appears as "File not found". But when I take all away from address then the pdf shows up in the TexMaker. I posted this question earlier and got no where. Someone suggested to reinstall entire MikTex and I did that too. Its still not working.                *File List*     moderncv.cls    2012/10/31 v1.2.0 modern curriculum vitae and letter document c     lass       size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX         etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)       ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)      fontenc.sty        t1enc.def    2005/09/27 v1.99g Standard LaTeX file      lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.     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    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive     fancyhdr.sty             calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)        xargs.sty    2008/03/22 v1.1  extended macro definitions  (mpg)      xkeyval.sty    2012/10/14 v2.6b package option processing (HA)      xkeyval.tex    2012/10/14 v2.6b key=value parser (HA)     microtype.sty    2010/01/10 v2.4 Micro-typography with pdfTeX (RS)     microtype.cfg    2010/01/10 v2.4 microtype main configuration file (RS)     moderncvcompatibility.sty    2012/10/31 v1.2.0 modern curriculum vitae and lett     er compatibility patches       suffix.sty    2006/07/15 1.5 Variant command support     tweaklist.sty         moderncvstylecasual.sty    2012/10/31 v1.2.0 modern curriculum vitae and letter      style scheme: casual     moderncvstyleclassic.sty    2012/10/31 v1.2.0 modern curriculum vitae and lette     r style scheme: classic         umvs.fd     moderncvcolorblue.sty    2012/10/31 v1.2.0 modern curriculum vitae and letter c     olor scheme: blue     geometry.sty    2010/09/12 v5.6 Page Geometry        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)       ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     geometry.cfg     inputenx.sty    2011/05/27 v1.10 Enhanced input encoding handling (HO)     ix-alias.def    2011/05/27 v1.10 Alias list (inputenx)     inputenc.sty    2008/03/30 v1.1d Input encoding file         utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc        t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc       ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc       omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc     multibib.sty    2008/12/10 v1.4 Multiple bibliographies for one document.           Jn.aux           Cp.aux           Pt.aux     hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX     hobsub-hyperref.sty    2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO)     hobsub-generic.sty    2012/04/25 v1.12 Bundle oberdiek, subset generic (HO)       hobsub.sty    2012/04/25 v1.12 Construct package bundles (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)       bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)     uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)     letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)      hopatch.sty    2011/06/24 v1.1 Wrapper for package hooks (HO)     xcolor-patch.sty    2011/01/30 xcolor patch     atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)     atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)     refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)      hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)      auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)       pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive        puenc.def    2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)      hpdftex.def    2012/11/06 v6.83m Hyperref driver for pdfTeX     rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)        t1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     supp-pdf.mkii       mt-cmr.cfg    2009/11/09 v2.0 microtype config. file: Computer Modern Roman (     RS)       t1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern      nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section     gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)         MyCV.out         MyCV.out       ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern       omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern      omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern      omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern       mt-mvs.cfg    2006/07/05 v1.1 microtype config. file: Marvosym Euro (RS)       omslmr.fd     2009/10/30 v1.6 Font defs for Latin Modern      ***********


title: pstool + pgfplots + parskip conflict

text: I've recently observed extremely strange latex bug if `pstool` \+ `pgfplots` \+ `parskip` packages are used at the same time.               \documentclass{article}          \usepackage{pstool}     \usepackage{pgfplots}     \usepackage{parskip}          \begin{document}          \begin{figure}         \psfragfig{fig}         \caption{Figure Psfrag.}     \end{figure}          \end{document}       This code just inserts a psfrag figure, generated by matlabfrag extension. If these three packages are used, than the resultant output is cropped from below, see figure. However, once I remove `\usepackage{pgfplots}`, the problem is resolved and the output is perfect! Has anyone experienced this issue? Any suggestions how to resolve it? ![latex bug](http://i.stack.imgur.com/bM4p0.png)


title: Making \includeonlylecture{} only ignore frames but not global structure elements such as sections

text: I am presently preparing lecture notes in `beamer`. I have the lecture course structured into parts, sections etc and I would like use the numbering scheme consistently throughout the course. Without doing a lot of manual copy-and- paste stuff this implies for me that a single `.tex` file (maybe with includes here and there) for the entire course is the best solution. But of course this means that LaTeX always has to process a lot of stuff and I always get a PDF with the entire course, which is not really practical. To solve this, `beamer` class has the `\lecture` command and the accompanying `\includeonlylecture` command. However, if I use this, my structure will be broken, because Latex will ignore all structural elements (parts, sections, etc.) outside of the current lecture, producing new numberings for each lecture. Andrew's answer to Entire course with beamer provides an even more rigorous approach to the `\lecture` mechanism, but it will also ignore everything. Therefore my question: How can I make `\includeonlylecture{}` to only ignore `\frame` commands and frame environments? Here is a try of a MWE:               \documentclass[11pt, t, xcolor=dvipsnames, utf8x]{beamer}     \includeonlylecture{day2}          \begin{document}     \lecture{27. April 2014}{day1}     \part{one}       \frame{Ignore this....}       \section{one-one}     \lecture{24. April 2014}{day2}       \section{one-two}       \frame{Use this frame and let it be in section one-two}     \part{two}     \end{document}


title: Missing $ error and undefined control sequence, while all seems correct

text: I've written this code               \subsection*{Definitie 1}     \textit{Als $z$, $f(z)$ \in \mathbb{R}^{m}, dan is de M-de Frechet afgeleide van $f$, voorgesteld     door $f$^{(M)}$(z)$ een operator op \mathbb{R}^{m} \times \mathbb{R}^{m} \times \ldots \times \mathbb{R}^{m} (M maal)     , die lineair is in elk van de operandi met als waarde}      But I can't compile the document, as I get a "$ missing" and "Undefined control sequence" error. I've already checked this code a dozen times, but can't seem to find anything wrong. Any ideas?


title: How should one use \write18 with BibTeX

text: **Background**   Now that TeX Live 2010 has a restricted `\write18`, I figured it'd be reasonable to update my cv which uses the `bibunits` package to run BibTeX for each of the `.aux` files. Currently, I have a macro `\pubs` that typesets a label and then the bibliography (`\pubs` is used inside a `cvlist` environment from `currvita`, but that is not important here).               \makeatletter     \newcommand*\pubs[2]{%             \item[#1]             \begin{bibunit}%                     \nocite{#2}%                     \putbib             \end{bibunit}%             \IfFileExists{\@bibunitname.bbl}{}                     {Run \texttt{bibtex \@bibunitname}}%     }     \makeatother      It is used like `\pubs{Refereed papers}{foo,bar,baz}` to typeset the bibliography entries corresponding to the citation keys foo, bar, and baz (or it prints a helpful message if BibTeX hasn't been run). **Question**   How can I modify this to run `bibtex \@bibunitname` and then use the results in a sane way? One idea I had that mostly works is               \makeatletter     \newcommand*\pubs[2]{%             \item[#1]             \begin{bibunit}%                     \nocite{#2}%                     \immediate\write\@bibunitaux{\string\bibdata{\bu@bibdata}}%             \end{bibunit}%             \immediate\write18{bibtex \@bibunitname}%             \InputIfFileExists{\@bibunitname.bbl}{}                     {Run \texttt{bibtex \@bibunitname}}%     }     \makeatother      Here the `\putbib` has been replaced with a write of the `\bibdata` and `\IfFileExists` has become `\InputIfFileExists`. **When run, this complains that all of my citations are undefined, but the output looks fine.** In particular, all of the aux files are closed before they are read in from the `\InputIfFileExists`.


title: How to typeset LaTeX code inside a Table environment?

text: I wanted to typeset LaTeX code directly into my document, but without it doing something, i.e., I just want to show my code in the output. Now, I know there is the `verbatim` environment for code, as well as the `listings` package for this, but I am wondering what the best method for typesetting LaTeX code directly is (if there is one), without needing any extra packages. A few days ago I tried to do it inside a table, and I came up with this question: Print small TeX code verbatim and render it but still, they managed to do something different, as it automatically included the showcase. I just want to be able to write a LaTeX code snippet easily and inside a normal environment, say, `tables`. What is the best way to do it? ## MWE               \documentclass{report}          \usepackage{booktabs}          \begin{document}          \begin{table}[tbhp]     \centering     \caption{Citing with FEUPPHDTESES.STY}\label{tab:Citing}     \begin{tabular}{ll}     \toprule     Command & Result\\     \midrule     \texttt{citeplist}  & \verb\citeplist{peel_epidemiology_2011,espinoza2012inverse,espinoza2012optimization}\\     \texttt{citet}          & \verb\citet{peel_epidemiology_2011,espinoza2012inverse,espinoza2012optimization}\\     \texttt{citep}          & \verb\citep{peel_epidemiology_2011,espinoza2012inverse,espinoza2012optimization}\\     \texttt{citeyear}       & \verb\citeyear{peel_epidemiology_2011}\\     \texttt{citeauthor} & \verb\citeauthor{peel_epidemiology_2011}\\     \texttt{citetlist}  & \verb\citetlist{peel_epidemiology_2011,espinoza2012inverse,espinoza2012optimization}\\     \texttt{citeplist}  & \verb\citeplist{peel_epidemiology_2011,espinoza2012inverse,espinoza2012optimization}\\     \bottomrule     \end{tabular}     \end{table}          \end{document}


title: What is a good strategy for obtaining comments on a LaTeX document from non-LaTeX using collaborators?

text: **Context:** I prepare my scientific documents using LaTeX and compile to a PDF. I often need to seek comments on drafts from collaborators who do not use LaTeX. Most of these collaborators use Windows OS. Assume also that the collaborator does not need to edit the document. They only need to be able to add comments to the document. Most would be familiar with the commenting system in MS Word, for example. I'd like to be able to give the collaborator some clear instructions about what software and system they should use to comment on the draft. This should involve free software and an easy to use interface. **Question:** What is a good strategy for getting comments on draft documents when the collaborator does not know LaTeX? **Initial thoughts:** I know Adobe professional allows you to add comments to a PDF. However, some collaborators don't have this software and it costs money. I could send the raw LaTeX to the collaborator. However, given all the markup, the collaborator may find LaTeX source a bit mysterious. **UPDATE:** After posting I noticed Andrew Stacey's answer to a similar question. Along with a number of other good tips (such as printing and getting paper comments), he mentions jarnal, xournal, and gournal as free cross- platform PDF annotators. I'd be curious to know whether experts have found them adequate for the above mentioned purpose and whether any of them are to be preferred. Others mention FoXIt. And yet others discuss the option of exporting to MS Word or Open Office and using the reviewing system within these programs.


title: Tex with arabic letters and Pakoma

text: I'm working on books written in Arabic language, we build the book as XML file from which we generate Tex and PDF. My question is about page break, with Tex files written in English we use Pakoma program to open it, but Pakoma cant open Tex containing Arabic letters. Anyone can solve this?


title: Trouble marking angles with tkz-euclide

text: After hearing of latex a few months ago and using the tex stackexchange numerous times to figure out problems I was having, this is actually going to be my 1st question. I was trying to find a way to easily draw markings of angles. I came across a good answer here However when I use the `tkz-euclide` package with the `\tkzMarkAngle` command it creates an angle marking on the outside instead. (ie reflex angle) Here's a simple example               \documentclass{article}          \usepackage{tikz}     \usepackage{tkz-euclide}     \usetkzobj{all}          \begin{document}          \begin{tikzpicture}     \coordinate (A) at (0,6);      \coordinate (B) at (0,0);      \coordinate (C) at (6,6);       \draw (A)--(B)--(C)--cycle;     \tkzMarkRightAngle[size=.4cm](B,A,C)     \tkzMarkAngle[size=.4cm](A,B,C)     \end{tikzpicture}          \end{document}      This gives me ![enter image description here](http://i.stack.imgur.com/5f4Ps.png) `\tkzMarkRightAngle` works fine but I don't know why `\tkzMarkAngle` is doing what its doing. All the other examples I've seen have the acute angle being marked except for mine. Amy help is appreciated.


title: Displaying only part of an EPS picture

text: I am not sure it is exactly the best place to ask this question but maybe my problem admits a solution with tex. I have an EPS file but I would like to display only a part of this EPS. Changing the bounding box is not enough as the "hidden" part of the EPS will still get displayed anyway. Is there a way to tell Latex that I just want to display things inside the bounding box ? Or any other solution to my problem ? (PS: I don't want to convert my EPS to something else in the process as it reduces the quality) Thanks a lot


title: Vertical aligning text and vertical height of rows in longtable environment

text: I have now been working on fixing this problem for some time and I have read through some forums on the Internet and tried different things, but I can't solve this problem. I am looking to have some text vertically aligned at the bottom inside a long table, preferable with a line about the text for a signature. Furthermore I would like to have control over the minimum height of the rows. I've seen that I can align text vertically with the array package and from Vertical aligning in longtable environment it also seems to be possible inside a long table. I should probably also say that I am generating my tables with R's knitr package and xtable's `print.xtable()`. I have some working code here (and also a screenshot of what I currently have below the code).               \documentclass[12pt]{article}     \usepackage{longtable}     \usepackage[landscape]{geometry}     \usepackage{colortbl} %      \begin{document}          \begin{longtable}{cccp{6.6cm}p{3.6cm}p{3.6cm}}       \hline     Date & Event & Type & Note & Bank & Banrak Obama \\        \hline \endhead \rowcolor[gray]{.95}Sep 02 2012 & 005 & CPP & ww &John Doe, \#, '\# & Some Name \\        Sep 10 2012 & 006 & IND & Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. &John Doe, \#, '\# & Some Name \\         \rowcolor[gray]{.95} Sep 22 2012 & 002 & CON & I sat around thinking about my life. & John Doe, \#,  ID'\# & Some Name \\        Sep 23 2012 & 003 & OUT & Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\         \rowcolor[gray]{.95} Sep 23 2012 & 004 & OUT & Outreach, Fish. \& $\backslash$ \# Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\        Sep 23 2012 & 003 & OUT & Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\         \rowcolor[gray]{.95} Sep 23 2012 & 004 & OUT & Outreach, Fish. \& $\backslash$ \# Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\         \hline     \hline     \label{PN.df}     \end{longtable}          \end{document}      ![enter image description here](http://i.stack.imgur.com/DwvoR.png)


title: Undefined citation in Bibtex

text: I use the natbib package for my work and all my citations are working fine, except this one:               @article{tobin58,     author    = {Tobin, James},     title     = {Liquidity Preference as Behavior Toward Risk},     journal   = {Review of Economic Studies},     volume   = {25},     number   = {2},     pages    = {pp. 65--86},     year      = {1958}     }      In the bbl this translates to:               \harvarditem{Tobin}{1958}{tobin58}     Tobin, J.  \harvardyearleft 1958\harvardyearright , `Liquidity preference as     behavior toward risk', {\em Review of Economic Studies} {\bf 25}(2),~pp.     65--86.      And the error I receive:               Package Natbib warning: citation 'tobin58' on page 5 undefined on input line 196      I think the the setting of the environment is correct as other citations do work, nevertheless I also receive 2 errors:               File ended while scanning use of \harvarditem      I get this error on line `\bibliography{BibTeX1}`               LaTeX Error: \begin{thebibliography} on input line 1 ended by \end{document}      I get this error on line `\end{document}`               \clearpage     \bibliography{BibTeX1}     \bibliographystyle{agsm}          \clearpage     \appendix     \section{First Appendix}     Appendix     \end{document}      The syntax of my citation is identical to the working ones, I really can't find any syntax errors. Could you help me please? Do I need to provide you more information?


title: Closed curve in PSTricks

text: Consider the following example:               \documentclass{article}          \usepackage{pstricks-add}          \def\side{%       \psline(-2,2)(-1,2)       \psarc(0,2){1}{180}{0}       \psline(1,2)(2,2)       \psline(-1,1)(0,2)(1,1)     }          \begin{document}          \def\length{60}     \psset{unit=79pt}     \begin{pspicture}(-2,-2)(2.15,2.15)       \multido{\iA=0+90,\iB=-2+1}{4}{%        \psset{offset=12pt,nrot=:U}         \rput{\iA}(0,0){\side}         \pcline[linestyle=dotted]{|<*->|*}(\iB,2)(!\iB\space 1 add 2)         \ncput*{\length\,cm}         \pcline[linestyle=dotted]{|<*->|*}(!2 \iB\space 1 add)(2,\iB)         \ncput*{\length\,cm}       }     \end{pspicture}          \end{document}      ![output](http://i.stack.imgur.com/iUhwt.jpg) As can be seen, the curve in not closed. How do I do this (or at least make it look closed; I don't need to fill the inner, so making it look closed is actually enough)? Note: If someone has a 'simpler' solution than the ones already provided, I would be glad to see it.


title: xskakget fails with styleC

text: I'm trying to print chessboard after some moves. For that I'm using `xskakget` to get the move number and print it as caption. It is working fine as long as I use the default style or `styleA` for `\mainline` command. If I use `styleC` to print chess moves in tabular form, xskakget is failing for `opennr`. I'm getting the error missing $ inserted. What am I missing ? The minimal working example is here.               \documentclass[11pt]{book}     \usepackage{xskak}          \begin{document}     \newchessgame\mainline[style=styleC]{1. e4 e5 2. Nf3 Nc6}          \xskakset{moveid=2b}\xskakget{opennr}\xskakget{san}     \end{document}


title: moderncv \social commands

text: I would like to use moderncv `\social` commands without using moderncv as a document class. I tried using: `\usepackage{moderncv}` but then xelatex complains with: ! LaTeX Error: File `moderncv.sty' not found. I would like to use these icons you can find in this footer: ftp://ftp.ctan.org/pub/tex/macros/latex/contrib/moderncv/examples/template- es.pdf I'm using the MacTeX-2014 Distribution on my Mac.


title: Uninformative error message when using AUCTeX

text: I often have this error when using AUCTeX: "TeX-error: Error occured after last TeX file closed" However, when running for instance `pdflatex` on the command line, I have a proper error message. But the line number information is not always useful, especially if multiple files are included. I'd like to be able to see the error in Emacs.


title: Changing biblatex style for one slide

text: In a presentation created with the `beamer` class, I'm using               \usepackage[style=verbose,backend=bibtex]{biblatex}      and               \footcite{source}      `style=verbose` is required so that author, title and so on show up in the foot note and not just a number indicating the source. However, on one slide a give an overview of different algorithms, which requires a lot of citations. Only for this slide I'd like to use `\cite`, which should give me e.g. `[1]` in the text, but no footnote. The problem is that thanks to `style=verbose`, `\cite` inserts author, title and so on instead of a short number. How can I fix this?


title: connect nodes that it looks like circle

text: I have 3 nodes placed on a circle. These nodes are differently shaped. I want to connect them and want the arrows to look like a circle, because it is a repeating process. I can connect them with `bend left`, but that is not circle enough for me. I could mess around with `in=...` and `out=...`, but that is not a smart solution, because I would have to mess around every time I want such a picture. Here an example code:               \documentclass{article}          \usepackage{tikz}               \begin{document}         \begin{tikzpicture}              % three differently shaped nodes on a circle         \node [rectangle, draw, text width=3cm] (a) at (180:3cm) {Hello World! Hello World!};         \node [rectangle, draw, text width=2cm] (b) at (60:3cm) {Hello World!};         \node [rectangle, draw, text width=2cm] (c) at (300:3cm) {Hello World!};              % connectors between the nodes         \draw[->] (a) to [bend left] (b);         \draw[->] (b) to [bend left] (c);         \draw[->] (c) to [bend left] (a);              % the circle I wish the connectors to be placed on         \draw[dashed,red] circle [radius=3cm];              \end{tikzpicture}     \end{document}      I would like the connectors to be placed directly on the red dashed circle. Has anyone a smarter solution than try and error with `in` and `out`?


title: Problem with rowcolor in tables

text: Please help me.   I have a problem with this table. I have other tables in my document, but `rowcolor` worked fine. Particularly, this code of my table has something wrong.   I want the header colored with gray.               \documentclass{article}          \usepackage{xcolor}     \usepackage{color, colortbl}     \definecolor{Gray}{gray}{0.9}     \usepackage{caption}     \usepackage{multirow,array}          \begin{document}     \begin{table}[H]     \caption{Title}     \centering     \begin{tabular}{|>{\raggedright\arraybackslash}m{50mm}|>{\raggedleft\arraybackslash}m{20mm}|>{\raggedleft\arraybackslash}m{20mm}|>{\raggedleft\arraybackslash}m{20mm}|}     \hline     \rowcolor{Gray} \multicolumn{1}{|c|}{\textbf{Text}} & \multicolumn{1}{>{\centering\arraybackslash}m{20mm}|}{\textbf{Text}} & \multicolumn{1}{>{\centering\arraybackslash}m{20mm}|}{\textbf{Text}} & \multicolumn{1}{>{\centering\arraybackslash}m{20mm}|}{\textbf{Text}}\\         \hline         \rowcolor{Gray} \textbf{Descripción} & \textbf{Nº} & \textbf{Sueldo mes} & \textbf{Total Año}\\\hline     \textbf{Text} & Text & & Text\\     \textbf{Text} & Text & & Text\\     \hline     \end{tabular}          \end{table}          \end{document}      ![image](http://i.stack.imgur.com/jIw55.png)


title: ascii and siunitx packages collide

text: I want to load both the `ascii` package and the `siunitx` package. The problem is that both define a symbol `\SI`. Is there any way to make both packages work together?


title: XeLaTeX and EPS figure with consistent fonts

text: I'm using Miktex 2.9 and XeLaTeX plus some EPS figures. For consistent fonts along the document, I used to play with psfrag or directly use pstricks. I'm facing the situation where none of the above works. Instead, I'm now using the `\put` command to place labels on EPS figures. I'd like to know others possibles approaches : Inkscape? tikZ? Thank you


title: What is the default font in latex beamer?

text: What is the default font in LaTeX beamer. I want to use it in an ooffice master layout.


title: Package to create TikZ Figures from R

text: I am wondering if there is a recommended package in order to create TikZ figures in R. In the paste I have used Matlab2TikZ to create TikZ figures in MATLAB - and I was hoping that there would be something similar for R.


title: Why is lstlisting splitting my XML tags?

text: I have a little problem with this ambient. I have some XML to insert into my document and the thing that really bugs me is that the new line breaks a closing tag in two. I indicated to the environment that I am using XML but to no use. This is the code:               \begin{lstlisting}[language=XML]     <ce:bib-reference id="BIB14">         <ce:label>[14]</ce:label>         <ce:other-ref>             <ce:textref>W. Mitchell, How weak is the closed, unbounded filter?, Preprint.</ce:textref>         </ce:other-ref>     </ce:bib-reference>     \end{lstlisting}      The tag `</ce:textref>` is split into `</` on the first line and `ce:textref>` on the second. This is my preamble:               \documentclass[10pt,a4paper,titlepage,twoside,openright]{book}     \usepackage{listings}     \lstset{basicstyle=\footnotesize\ttfamily,breaklines=true,escapeinside={~*}{*~}}      Here is a screenshot of the output: ![enter image description here](http://i.stack.imgur.com/2qcZG.png)


title: Is there a way to set distance between bottom of one line and up of other?

text: This is my minimal working code:               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[english,french,russian,swedish]{babel}     \begin{document}       \selectlanguage{french}            \begin{center}       \fontsize{23pt}{25pt} \textbf{TH\'{E}SE} \\[8mm]       \normalsize  PR\'{E}SENT\'{E}E A\\[7mm]       \Large\textbf{L'UNIVERSIT\'{E} BORDEAUX 1}\\[10mm]       \end{center}          \end{document}      What I need to do? I need to have exact size of font for every line and distance between bottom of upper line to up of line located below should be fixed. For fisrt two lines it should be 8 mm, then 7 and 10 at last. I've found how to set distances:               text \\[<distance>]      But it does not provide me what I need. My second question concerns the:               \fontsize{23pt}{25pt}      Why I can not set font size bigger than 23pt, I would like to have bigger. And why second parameter does not effect behavior at all? Thank you in advance.


title: How to handle wide columns with \backslashbox?

text: I'm using the package `slashbox` and my left column is reasonably wide, how can I tune the diagonal line (created by `\backslashbox`) such that it starts and ends in the corners of the cell? Example code:               \documentclass[11pt]{article}     \usepackage{slashbox}     \usepackage{pict2e}     \begin{document}      \begin{table}[ht!]       \centering       \begin{tabular}{ *{4}{|c}|}         \hline        \backslashbox{foo}{bar} & test & header & header \\        \hline        relatively wide column& b & $3$ & $4$ \\        ds & c & $1$ & $4$ \\        \hline       \end{tabular}      \end{table}     \end{document}      Result: ![alt text](http://i.stack.imgur.com/ZPizq.png)


title: Equations in section heading/title

text: For reasons that are beyond me, the following MWE               \documentclass{scrreprt}     \usepackage{classicthesis-ldpkg}     \usepackage{bm}     \usepackage{amsmath}          \begin{document}          \section{The values of $\beta$ for which $\omega_i \mid \bm{\omega}     \mid^{-\beta}$ is defined at the origin}          \end{document}      fails to compile with the following error:               ! TeX capacity exceeded, sorry [input stack size=5000].     <to be read again>                        \HyPsd@@LetCommand     l.9 ...a} \mid^{-\beta}$ is defined at the origin}      I've tried increasing the amount of memory available to pdfLatex but that doesn't solve the problem. I've also googled to no avail. Is there a workaround for this problem.


title: Modifying a template fancy chapter

text: I am using roughly the following setup               \documentclass[11pt]{book}     \usepackage{hyperref}                        \usepackage[bf]{caption}      \usepackage{subcaption}     \usepackage{amssymb}     \usepackage[fleqn]{amsmath,mathtools}     \usepackage{fancyhdr}     \usepackage[Lenny]{fncychap}          \begin{document}     *some stuff*     \mainmatter     \input{Chapters/Chapter1}     etc.     \end{document}      I think the "Lenny" chapter style looks really nice. I would only like to change one minor detail: the title of the chapter is not printed boldfaced. For every chapter it is easy to change this: I simply write \chapter{{\bf TITLE}}. However, I would also like to have this for the Table of Contents and "Symbols" pages. How to do this?


title: Is it possible to create 3D-Images with optical distortion and transparency effects?

text: Is it possible to create 3D-Images like this one: ![enter image description here](http://i.stack.imgur.com/krQWe.png) with LaTeX (preferably tikz)? How do you do it? Are there good tutorials / documentations? (I have seen some examples from tikz-3dplot, but these images always have axis (e.g. this or those) and the colors don't look as nice as in the image above)


title: XeLatex under Ubuntu

text: I want to setup the `XeLaTeX` option to run some tex source files, however it is not listed where it should be.      I am using `TexLive` (last version) with `TexMaker` on Ubuntu Desktop 12.10.      Or is this option available only if I run `TexLive` on Windows ?


title: How to independently set the font properties of each component in section titles in ConTeXt?

text: I want to make two-line chapter titles such as this:               Chapter 1     Animals      I found instructions in this article about titles at the ConTeXt wiki. I want to adjust the font properties of each line though. With this code, I expected it would set "Chapter 1" to roman, size "c" text and set "Animals" to sans serif, size "d" text:               \setuplabeltext[en][chapter=Chapter~]     \define[2]\placechapter{         \framed[align=raggedleft]{         {\rm #1} \crlf                 {\tfd #2}     }     }     \setuphead[chapter][style={\ss\tfc}, command={\placechapter}]          \starttext     \chapter{This is the title.}              This is some text.          \stoptext      Somehow though, the code is ignoring my font commands. How can I independently set the font properties of each line in a two-line section title?


title: Adding style files

text: My question is related to Where do I place my own .sty files, to make them available to all my .tex files? but the solutions don't work and the comments are very cluttered with not all comment information added to the answers (I did read the comments). I have Ubuntu 12.04 and the most recent TeX Live. My directory is located at `/usr/share/texmf/tex/latex`. I added a folder called `style` to place Jubob's Matlab style file he created. On the linked thread, they say only older versions need to run `texhash`. I can tell you not running and running texhash doesn't work. When I didn't run texhash, TeX Live couldn't find the style file. When I run `texhash`, it says               directory not writeable skipping... done.      I ran `sudo texhash` as well but the output is the same. How can we add a style file and make it available on the whole system in LaTeX with the current version of TeX Live. From @DavidCarisle's comment, I have               dustin@dustin:~$ kpsexpand '$TEXINPUTS'.:{/home/dustin/.texlive2013/texmf-config,     /home/dustin/.texlive2013/texmf-var,     /home/dustin/texmf,     !!/usr/local/texlive/2013/texmf-config,     !!/usr/local/texlive/2013/texmf-var,     !!/usr/local/texlive/2013/../texmf-local,     !!/usr/local/texlive/2013/texmf-dist}/tex/{kpsewhich,generic,}//


title: Installing pdflatex

text: I've been working with miktex for a while, recently I installed texlive instead, and found pdflatex for each manager is different, I'd like to unninstall pdflatex from the texlive manager and install pdflatex from miktex. Where do I find the it? I need it because of the option -include-directory=DIR Where to download pdflatex.exe?


title: Modern LaTeX template

text: I have been looking for modern LaTeX templates, and have found several that I like but only from pdf-finished versions. All the LaTeX templates I could find from previous responses where still with the old LaTeX fonts. More specifically, does someone knows where can I access the template for a similar kind of design: http://politicalscience.stanford.edu/sites/default/files/documents/KarlEoE.pdf or http://pubs.aeaweb.org/doi/pdfplus/10.1257/jep.27.4.3 If you look closely at these links, you willl notice that these more recent LaTeX publications have been using a more grayish font, does anyone know what font color should I be using to obtain that tone? Thanks, AG


title: How to change output of bibitem?

text: I wish to write a report with 2 reference lists, one with the references quoted in text, and the other one with my own papers. I would like the first list to look as usual [1],[2],... but I wish the second list to be like [P1],[P2],... How can I do this easily? * * * I was thinking in something simpler. One of the lists is generated with               \begin{enumerate}[label={\bf P\arabic*}]       and then the entries are listed with               \bibitem{paper1} ...        so that I can recall them later with `\cite{paper 1}`, etc. The list appears correctly labelled, _i.e._ P1, P2 ..., but when I call a reference using `\cite` I get [1],[2], which shouldn't be. Is there a way to get [P1], [P2],... just using enumerate and `\cite`?


title: Bibliography sorted in order of use, and a publications section sorted by date

text: I'm using biblatex with biber already, so this should be possible. What I'm trying to get is:   * A full bibliography (superscript number style, numbered in order of appearance, nice and easy) and   * A list of my publications etc. These may or may not appear in the bibliography. I use a `refsection` environment for this. The MWE below does this, but the list of publications should be in date order without affecting the sort order of the main bibliography. How do I do specify a sort order just for a `refsection`?               \documentclass{article}     \usepackage[         sorting=none,         firstinits=true,         maxbibnames=100,         style=numeric-comp,         sortcites=true,         backend=biber,         defernumbers=true,         natbib     ]{biblatex}     \begin{filecontents}{\jobname.bib}     @misc{me_poster,         title="a poster",         author="Me",         keywords="me",         year=2013     }     @article{me_article,         title="a journal article",         author="Me",         journal="journal of stuff",         year="2012",         keywords="me"     }     @article{AuthorA_article,         title="An Article",         journal ="journal of applied stuff",         author="Author, A",         year="1999"     }     @book{AuthorB_book,         title="A book",         author="Author, B",         year="1666"     }     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}         \section{Body}             Some people said some stuff.\supercite{AuthorA_article, AuthorB_book}         \section{My publications}             \begin{refsection}%                 \DeclareFieldFormat{labelnumberwidth}{#1}%                 \nocite{*}%                 \printbibliography[omitnumbers=true,keyword=me,title={Publications and presentations},heading=bibintoc]%             \end{refsection}%         \printbibliography     \end{document}      ![output of above code](http://i.stack.imgur.com/zUPpq.png)


title: endfloat shifts chunks of text to the end

text: I am trying to use \endfloat to shift all of the figures to the end of the document. However, some text, several paragraphs typically immediately after some figures also get shifted to the end of the document. Anyone else have this issue, or a solution? General schema:               \documentclass{article}     \usepackage{endfloat}     \usepackage{graphicx}     \usepackage{natbib}     \usepackage[T1]{fontenc}     \usepackage{lineno}     \usepackage{setspace}     \doublespacing          \begin{document}           \begin{figure}     % \begin{SCfigure}         \centering         \includegraphics[height=.8\textheight]{fig_ch4-stimuli.jpg}         \caption{Exemplars of stimuli used in the experiment. The label for each pattern was generated by the appearance of the stimulus. ``L'' and ...}         \label{Fig:stimuli}     % \end{SCfigure}      \end{figure}          \end{document}


title: Comment in a box and reference abilities

text: I am aware in Latex you can box text, which is what I need to do. However can you also label this box for reference, and similarly give it a caption, like you would for a photo? An example of boxing is here, but it does not include referencing and labelling abilities How to put a framed box around text + math enviroment Thanks


title: How to isolate / confine / contain a new font inside of a \NewEnviron (new environment using eviron package))

text: I have a situation here. I am designing an IPA Vowel Chart and I have created a new font environment for the IPA characters using the IPA font _Doulos SIL_ like this: **\newfontfamily{\ipafont}{Doulos SIL}** Now I would like to use this command in the title to write "IPA" phonetically in the IPA alphabet inside of **\NewEnviron{heading}** using the _environ_ package (found just before _\begin{document}_ ). **Problem** Upon adding the **\ipafont{}** command to a line, instead of the brackets containing the font to be changed, the command simply applies itself to the rest of the line, messing up my nice title. See the code and picture below:               %%% -*- mode:latex; mode:font-lock; -*-     \documentclass[12pt,a4paper]{article}     \usepackage{fontspec}     \usepackage{geometry}     %HEADER FOOTER     \usepackage{fancyhdr}     \lhead{\textsc{Sounds in American English}} \chead{\textsc{}} \rhead{\textsc{}      \lfoot{\textsc{created on \today \space \currenttime}} \cfoot{\textsc{}}} \rfoot{\textsc{-\thepage-}}     \renewcommand{\headrulewidth}{0.1pt}      \renewcommand{\footrulewidth}{0.1pt}     \pagestyle{fancy}%ADD HEADER FOOTER TO PAGE EXCEPT TITLE PAGE     %USE THISPAGESTYLE{EMPTY} BELOW MAKETITLE OR {FANCY}     \usepackage{datetime}     \usepackage{vowel}     \usepackage{soul} % use this (many fancier options)     \usepackage{tabularx}     \usepackage{pdflscape}     %\setmainfont{Doulos SIL}     \newfontfamily{\ipafont}{Doulos SIL}%ADD FONT IN PREAMBLE, USAGE IN BODY: \otherfont{some text}     %OR {\fontspec{Zapfino} different text} IN BODY FOR ONE-TIME USE               %HIGHLIGHTER CODE     \usepackage{tikz}     \usepackage{amsmath}          \makeatletter     \newenvironment{btHighlight}[1][]     {\begingroup\tikzset{bt@Highlight@par/.style={#1}}\begin{lrbox}{\@tempboxa}}     {\end{lrbox}\bt@HL@box[bt@Highlight@par]{\@tempboxa}\endgroup}          \newcommand\btHL[1][]{%       \begin{btHighlight}[#1]\bgroup\aftergroup\bt@HL@endenv%     }     \def\bt@HL@endenv{%       \end{btHighlight}%          \egroup     }     \newcommand{\bt@HL@box}[2][]{%       \tikz[#1]{%         \pgfpathrectangle{\pgfpoint{0pt}{0pt}}{\pgfpoint{\wd #2}{\ht #2}}%         \pgfusepath{use as bounding box}%         \node[anchor=base west, fill=orange!30,outer sep=0pt,inner xsep=0.2em, inner ysep=0.1em,  #1]{\usebox{#2}};       }%     }     \makeatother          \newcommand{\tikzhighlight}[2][red]{%       {\btHL[fill=#1!10,draw=#1,rounded corners]#2}%     }               \newcommand{\BlankCell}{}     \newcommand{\ex}[1]{\small{\tikzhighlight[blue]{#1}\hspace{.5em}}}     \newcommand{\oex}[1]{\small{\tikzhighlight[yellow]{#1}\hspace{.5em}}}     \newcommand{\vl}[1]{\Large{[\ipafont{#1}}]}               \usepackage{tikz}     \usetikzlibrary{calendar,shapes,backgrounds}     \usepackage{environ}          \NewEnviron{heading}{\begin{figure}[h!]\centering\begin{tikzpicture}[align=center,background rectangle/.style={fill=white!05},framed]\node  {\BODY};\end{tikzpicture}\end{figure}}               \begin{document}     %\maketitle     \thispagestyle{fancy}     % \nopagebreak[4]     \begin{landscape}     \begin{heading}     \Large IPA [\ipafont{aɪ pʰiː eɪ}] Vowel Chart for\\\Large Californian English     \end{heading}         \begin{center}         {\vowelhunit=8.5em             \begin{vowel}                 %\putcvowel[l]{i}{1}                 \putvowel[l]{\vl{i} \ex{b\textbf{ea}d}}{0pt}{0pt}             \putcvowel[r]{\vl{y} \ex{\st{f\textbf{üh}len}}}{1}             \putcvowel[l]{\vl{e} \ex{b\textbf{ay}ed}}{2}             \putcvowel[r]{\vl{ø} *}{2}             \putcvowel[l]{\vl{ɛ} \ex{b\textbf{e}t,b\textbf{e}d}}{3}                \putcvowel[r]{\vl{œ} *}{3}                 \putcvowel[l]{\vl{a} *}{4}                 \putcvowel[r]{\vl{ɶ} *}{4}             \putcvowel[l]{\vl{ɑ} \ex{p\textbf{o}d}}{5}                 \putcvowel[r]{\vl{ɒ} *}{5}                 \putcvowel[l]{\vl{ʌ} \ex{b\textbf{u}d}}{6}                 \putcvowel[r]{\vl{ᴐ} \ex{b\textbf{o}y (diphthong)}}{6}                 \putcvowel[l]{\vl{ɤ} *}{7}                 \putcvowel[r]{\vl{}o \ex{b\textbf{o}de}}{7}                 \putcvowel[l]{\vl{ɯ} *}{8}                 \putcvowel[r]{\vl{u} \ex{b\textbf{oo}ed}}{8}                 \putcvowel[l]{\vl{ɨ} *}{9}                 \putcvowel[r]{\vl{ʉ} *}{9}                 \putcvowel[l]{\vl{ɘ} *}{10}                 \putcvowel[r]{\vl{ɵ} *}{10}                 \putcvowel{\vl{ə} \ex{\textbf{a}bout,\textbf{a}bove}}{11}                 \putcvowel[l]{\vl{ɜ} \oex{b\textbf{u}st} *}{12}                 \putcvowel[r]{\vl{ɞ} *}{12}                 \putcvowel[l]{\vl{I} \ex{b\textbf{i}d}}{13}                \putcvowel[r]{\vl{Y} *}{13}                 \putcvowel{\vl{ʊ} \ex{g\textbf{oo}d}}{14}                 \putcvowel{\vl{ɐ} *}{15}                 \putcvowel{\vl{æ} \ex{b\textbf{a}d}}{16}             \end{vowel}                 }%         \end{center}     \tikzhighlight[blue]{CA English} \hspace{.5em}\tikzhighlight[green]{OH English}     \end{landscape}     \section*{Vowels}     \begin{tabularx}{\textwidth}{l}     /i/ as in seat \\     /ɪ/ as in sit \\     /eɪ/ as in cake \\     /ɛ/ as in met \\     /æ/ as in cat \\     /ɑ/ as in father \\     /ə/ as in bun \\     /ɔ/ as in law \\     /oʊ/ as in boat \\     /ʊ/ as in wood \\     /u/ as in two \\     /ər/ as in heard \\     /aɪ/ as in mine \\     /aʊ/ as  in mouse \\     /ɔɪ/ as in boy \\     \end{tabularx}       \end{document}      ![IPA Vowel Chart](http://i.stack.imgur.com/HLrPP.png)


title: Layout for seminar paper; justified, font, size, spacing

text: I just started university and decided to graduate from Word for writing my papers, thesises and so on. But I have some problems with probably the most simple things... I got this template: here the template and I have to change the layout to the following criteria: DIN A4 Margin: left: 2.5cm, right: 3cm, top: 2.5cm, bottom: 2.5cm Font: Serif font for example Times New Roman Size: 12pt, 10pt for tables, footnotes etc. Spacing: 1 1/2 and 1 in footnotes Text has to be justified.               % Präambel     \documentclass[11pt,a4paper,oneside,     liststotoc, % Tabellen- und Abbildungsverzeichnis ins Inhaltsverzeichnis     bibtotoc, % Literaturverzeichnis ins Inhaltsverzeichnis aufnehmen     titlepage, % Titlepage-Umgebung statt \maketitle     headsepline, % horizontale Linie unter Kolumnentitel     %abstracton, % Überschrift beim Abstract einschalten, Abstract muss dazu in {abstract}-Umgebung stehen     DIV12, % auskommentieren, um den Seitenspiegel zu vergrößern     %BCOR6mm, % Bindekorrektur, die den Seitenspiegel um 6mm nach rechts verschiebt,     ]{scrreprt}          \usepackage{ucs} % Dokument in utf8-Codierung schreiben und speichern     \usepackage[utf8x]{inputenc} % ermöglicht die direkte Eingabe von Umlauten     \usepackage[english]{babel} % deutsche Trennungsregeln und Übersetzung der festcodierten Überschriften     \usepackage[T1]{fontenc} % Ausgabe aller zeichen in einer T1-Codierung (wichtig für die Ausgabe von Umlauten!)     \usepackage{graphicx} % Einbinden von Grafiken erlauben     %\usepackage{amsmath}     %\usepackage{amsfonts}     %\usepackage{amssymb}     \usepackage{mathpazo} % Einstellung der verwendeten Schriftarten     \usepackage{textcomp} % zum Einsatz von Eurozeichen u. a. Symbolen     \usepackage{listings} % Datstellung von Quellcode mit den Umgebungen {lstlisting}, \lstinline und \lstinputlisting     \usepackage{xcolor} % einfache Verwendung von Farben in nahezu allen Farbmodellen     \usepackage[intoc]{nomencl} % zur Erstellung des Abkürzungsberzeichnisses     \usepackage{fancyhdr} % Zusatzpaket zur Gestaltung von Fuß und Kopfzeilen     \usepackage[a4paper, left=2.5cm, right=3cm, top=2.5cm, bottom=2.5cm]{geometry} % Hier die Seitenränder einstellen     \usepackage{showframe}     \usepackage{setspace}     \onehalfspacing     %\renewcommand*{\chapterheadstartvskip}{\vspace*{-\topskip}}     \renewcommand*{\chapterheadstartvskip}{\vspace*{-1.1cm}} % Vertikalerabstand top      I used geometry to set the site layout to DIN A4 and to set the margins. For the 1 1/2 spacing I used \onehalfspacing. In the documentclass I have got 11pt because 12pt look far too big... For a serif font I used \fmfamily. Are this changes correct? How do I use justified text and how can I use a font with the right size as in 12pt/Times New Roman in Word?


title: TIKZ drawing Gaussian Blur

text: I am a complete newbie to latex and have been working on thesis. At the moment, I am trying to draw this ![Guassian](http://i.stack.imgur.com/1qX1X.png) and have no idea how to start. I did some google and found out that tikz is very popular for graphics. Can this be done with tikz? If so, can you point me to the right direction please, I have been working on this for the last couple days.


title: Framed environment covers caption of figure in afterpage

text: I'm using packages `framed` to create my own quote environment with a nice frame. However, when using the package `afterpage` to shift a figure to the next page and the first thing on the next page is a frame, than the frame covers the caption of the figure. This does not happen if there's some text between the figure and the frame. ![caption covered, if no text between picture and frame](http://i.stack.imgur.com/oLfo2.jpg) How can I change my framed environment so that it does not cover the caption? MWE:               \documentclass[12pt,a4paper,twoside,openany,fleqn]{book}          \usepackage[ngerman]{babel}     \usepackage{lipsum}     \usepackage{xcolor}     \usepackage{framed}     \usepackage{changepage}     \usepackage{afterpage}          \definecolor{lightgray}{HTML}{F0F0F0}     \definecolor{darkerlightgray}{HTML}{E0E0E0}          \newenvironment{myQuote}{%         \OuterFrameSep=0pt % space before and after box       \def\FrameCommand{%             \fboxsep=6pt %padding thickness         \fcolorbox{darkerlightgray}{lightgray}%       }%       \MakeFramed{\hsize\linewidth\advance\hsize-\width\FrameRestore}%       \noindent% disable indenting first paragraph       \begin{adjustwidth}{}{7pt}%       \vspace{-0.5\parskip}%     }     {%       \vspace{2pt}\end{adjustwidth}\endMakeFramed\vspace{-\parskip}%     }          \renewenvironment{quote}{\begin{myQuote}\em}{\end{myQuote}}          \begin{document}     \chapter{First Chapter}          \lipsum[2]          \afterpage{         \begin{figure}[htp]             \rule{\textwidth}{0.2\textheight}                 \caption{my first figure}         \end{figure}     }          \lipsum[6]          \begin{quote}         Quote OK     \end{quote}          \lipsum[6]          \begin{quote}         Quote not OK (caption is covered)     \end{quote}          \lipsum[1]          \afterpage{         \begin{figure}[htp]                 \rule{\textwidth}{0.2\textheight}                 \caption{my second figure}         \end{figure}     }          \lipsum[1-2]          \begin{quote}         Quote OK     \end{quote}          \lipsum[1]          \end{document}


title: cleveref and titlesec, \section issues.

text: I have some problems with `cleveref` and `titlesec`, providing a minimal working example below:               \documentclass{report}     \usepackage{titlesec} %% <-- the issue as far as i know, but i need the package     \usepackage{hyperref}     \usepackage{cleveref}     \begin{document}     \chapter{ninjas are okay}     some text \cref{app:ninja_bkg} bla bla and \cref{app:ninja_fail}     \appendix     \chapter{ninja background}     \label{app:ninja_bkg}     ninjas originated from ???     \section{ninja fail}     \label{app:ninja_fail}     usually ninjas dont fail, but sometimes they do     \end{document}      where the line in the middle produces: > some text appendix A bla bla and **section** A.1 But I want: > some text appendix A bla bla and **appendix** A.1 If I remove the `titlesec` package everything works fine, but sadly I need it. Guessing `titlesec` redefines `\section`, but I'm not enough of a latex-hacker to fix it =/


title: How to convert a preprint pdf into something more readable?

text: I'm talking about a pdf document that was created via LaTeX (probably pdflatex) but the tex source of which is not available. I'd appreciate a solution that is less manual than trying to convert the pdf to tex and then changing the style (if that even works, the only answer there suggests it's far from functional). **edit** with more readable I meaning changing the style in the original but unknown tex source such that I obtain a pdf that looks like e.g. a publication instead. This would of course in the ideal case include the pages renumbered etc. - so maybe it's impossible to achieve without texifying the pdf somehow first... * * * **edit2** For those interested in this, a SU question about batch cropping pdfs mentions two tools that might be useful: briss, which crops borders (so that a two pages per page printing remains readable) and k2pdfopt which even rearranges a document's structure (untested).


title: How to create a simple title list/page in tex?

text: Are there any standard tex style wrappers that can help to create a title page for diploma or coursework? My main objective is to get some shortcuts for creating title, author name etc. Some help on the table of contents would be appreciated, too.


title: How can I place dot2tex graphs next to each other?

text: I have two dot2tex graphs that have a relatively large height and small width. The combined width of the graphs is considerably smaller than the text width. For example:               \documentclass[12pt]{scrbook}          \usepackage{dot2texi}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}          \begin{document}          \begin{figure}       \centering       \begin{dot2tex}[dot,options=-tmath --autosize --cache]         digraph {         u[label="u"];         }       \end{dot2tex}       \begin{dot2tex}[dot,options=-tmath --autosize --cache]         digraph {         v[label="v"];         }       \end{dot2tex}     \end{figure}          \end{document}      Compile with               pdflatex --shell-escape test.tex These graphs should be placed next to each other like if they were in a table spanning the entire text width and each of them centered in its own column. Unfortunately, none of the approaches mentioned in Putting two images next to each other that are 0.5\textwidth wide has worked for me so far, both fail with error "! Argument of \verbatim@ has an extra }." at the end of the `centerline` or `makebox` directives. I tried aligning the graphs using a table as described in How to force a table into page width? but could not get any of the approaches to work. I could not find the right options for `tabularx` to get my desired result, both `tabu` and `tabularx` fail with "! Forbidden control sequence found while scanning use of \verbatim@." Is it expected that these packages don't play nice with dot2tex? And is there any other way to achieve what I am trying to do? * * * To clarify what the problem is:               \begin{figure}       \centering       \begin{tabularx}{\textwidth}{XX}       \begin{dot2tex}[dot,options=-tmath --autosize --cache]         digraph {         u[label="u"];         }       \end{dot2tex}       &       \begin{dot2tex}[dot,options=-tmath --autosize --cache]         digraph {         v[label="v"];         }       \end{dot2tex}       \end{tabularx}     \end{figure}      This should give me the layout I want. However, upon compiling this yields the following error message:               ! Forbidden control sequence found while scanning use of \verbatim@.


title: Problem with \titleprefixword

text: I'm trying to make a songbook with `Songs` Package. The songs are in Spanish and I want to use the `\titleprefixword` macro to avoid sorting my song titles starting with the articles (El, La, Los, Las). This is the code and I think eveything is correct but it's obviously not because it's not working:               \documentclass[letterpaper]{article}     \usepackage[bookmarks]{hyperref}     \usepackage[chorded]{songs}     \usepackage[utf8x]{inputenc}     \usepackage[spanish]{babel}     \usepackage{xpatch}     % \includeonlysongs{2}          \setlength{\oddsidemargin}{0in}     \setlength{\evensidemargin}{0in}     \setlength{\textwidth}{6.5in}     \setlength{\topmargin}{0in}     \setlength{\topskip}{0in}     \setlength{\headheight}{0in}     \setlength{\headsep}{0in}     \setlength{\textheight}{9.1in}     \settowidth{\versenumwidth}{1.\ }     \pagestyle{empty}          \titleprefixword{El}     \titleprefixword{La}     \titleprefixword{Los}     \titleprefixword{Las}     \titleprefixword{Un}     \titleprefixword{Una}          \authsepword{y}     \authbyword{por}     \authignoreword{Desconocido}          \ifchorded       \newcommand{\stopchords}{\chordsoff}       \newcommand{\resumechords}{\chordson}     \else       \newcommand{\stopchords}{}       \newcommand{\resumechords}{}     \fi          %\makeatletter     %\xpatchcmd{\SB@@@beginsong}     %  {\SB@addtoindexes\songtitle}     %  {\SB@addtoindexes{\songtitle\ifx\songauthors\empty\else\ (\songauthors)\fi}}     %  {}{}     %\makeatother          \newindex{titleidx}{cbtitle}     %\indexsongsas{titleidx}{\thepage}     \newauthorindex{authidx}{cbauth}     \newscripindex{scripidx}{cbscrip}          \begin{document}          \showindex{Índice Completo de Canciones y Temas}{titleidx}          \songsection{Himnario de la Iglesia Reformada en Venezuela}     \begin{songs}{titleidx,authidx,scripidx}           \beginsong{La Cruz Excelsa}[       by={Isaac Watts},       sr={Números 21:4-9; Marcos 15:1-47; Romanos 5:6-11; Filipenses 2:1-13; Salmos 34:2; 1 Corintios 1:17-31; 1 Pedro 2:19-25},       ititle={(salvación)},       ititle={(cruz)},       ititle={(entrega)},       ititle={(sacrificio)},       ititle={(muerte de Cristo)}]          \beginverse       \[D]La cruz ex\[^\gtab{Dmaj9}{200220}]celsa al \[Em]con\[A]tem\[D]plar     \[D]Do Cristo a\[G]llí \[D/F#]por \[E7]mí mu\[A]rió,     \[D]De todo \[Dmaj9]cuanto es\[Em]ti\[A]mo a\[D]quí,     \[D]Lo más pre\[G]cio\[D/F#]so \[Em]es \[A]su a\[D]mor.     \endverse     \beginverse      ^No busco \[Dmaj9]gloria ^ni ^ho^nor     ^Sino en la ^cruz ^de \[Bm7]mi ^Se^ñor,     ^Las cosas ^que me en^can^tan ^más     ^Las sacri^fi^co ^por ^su a^mor.     \endverse     \stopchords     \beginverse      De su cabeza, manos, pies,     Preciosa sangre allí corrió;     Corona vil de espinas fue     La que Jesús por mí llevó.     \endverse     \beginverse      El mundo entero no será     Dádiva digna de ofrecer.     Amor tan grande, sin igual,     En cambio, exige todo el ser.     \endverse     \resumechords     \endsong          \beginscripture{Salmos 34:2}     \Acolon Mi alma se gloría en el Señor;     \Bcolon lo oirán los humildes y se alegrarán.     \endscripture     \end{songs}               \showindex{Índice de Autores y Compositores}{authidx}     \showindex{Índice de Referencias Bíblicas}{scripidx}          \end{document}      Any ideas on how to make it work!?


title: How do I use locale numbering for page numbers, footers etc.?

text: I am new to LaTeX and was wondering if it is possible to use another language for page numbers (and any other automatic numbering). I read here: http://www.personal.ceu.hu/tex/pagestyl.htm               \pagenumbering          \pagenumbering{num_style}          Specifies the style of page numbers. Possible values of num_style are:          arabic: Arabic numerals     roman: Lowercase roman numerals     Roman: Uppercase roman numerals     alph: Lowercase letters     Alph: Uppercase letters       But is there a way to specify my own locale numbering (Khmer, the language of Cambodia in my case)? Khmer is in Unicode, and the numbers 1-10 are as follows: ១ ២ ៣ ៤ ៥ ៦ ៧ ៨ ៩ ១០ And if this is possible, will it work in any distribution of LaTeX or only some? After looking around some, I found this solution for Thai: http://thailatex.wordpress.com/2010/07/12/thai-number-for-xetex/ Perhaps it can be re-written for Khmer... Thanks for your help, Nathan


title: Aligning equations by row and column -- with vertical lines

text: I want to include two sets of equations side-by-side in a table. Here is my example:               \documentclass{article}     \usepackage{amsmath}     \newcommand{\eqnbox}[2]{       \begin{minipage}[c]{#1\linewidth}\begin{equation*}\begin{aligned}             #2           \end{aligned}\end{equation*}\end{minipage}     }     \begin{document}     \begin{center}     \begin{tabular}{c|c}     first set & second set\\     \hline     \eqnbox{.3}{       x &= \frac{1}{2}\\       y &= \frac{1}{3}\\       z &= 3     } &     \eqnbox{.3}{       x &= 2\\       y &= 3\\       z &= 3     }     \end{tabular}     \end{center}     \end{document}      I have tried   1. aligning the rows but putting each equation in `$$`, but then I cannot align vertically by the `=` sign.   2. laying out the entire table using `align`, but then cannot put a vertical line down the middle.    3. adjusting the height of the box by using the height argument to `minipage`, e.g. `\begin{minipage}[c][30pt]{#1\linewidth}`, or enclosing the `minipage` environment within `raisebox`, e.g., `\raisebox{0pt}[30pt][30pt]{}`. No luck so far -- any suggestions?


title: Tabular inside longtable

text: I need a `longtable` like this table shown in HTML: ![enter image description here](http://i.stack.imgur.com/QQoJz.png) but when I use `\multirow`, the data inside the `\multirow` is continued inside the next cell. I have tried with the following               \begin{longtable}{|>{\bfseries}p{0.18\textwidth}|>{\bfseries}p{0.1\textwidth}|p{0.18\textwidth}|p{0.18\textwidth}|p{0.18\textwidth}|p{0.18\textwidth}|}        \hline        \multicolumn{2}{|l|}{}  &  \textbf{QR Codes}  &  \textbf{PDF417}  &  \textbf{DataMatrix}  & \textbf{Maxi Code}   \\        \hline        \multirow{3}{*}{Datacapacity}  &  Numeric  &  7.089  &   2.710  &    3.116  &    138  \\ \cline{2-6}                                       &  Alphanumeric  &  4.269  &  1.850  &  2.355  &  93  \\ \cline{2-6}                                       &  Bytes  &  2.953  &  1.018  &   1.556  &  \\        \hline        \multicolumn{2}{|l|}{Pros}     &  \parbox{\columnwidth}{Great capacity \\ High read}  &  Great capacity  &  Little size  & High read  \\        \hline     \end{longtable}      I hope somebody in here can help me, and if you can help with the `\parbox`-problem too, it could be great. **UPDATE** Now I only have the problem with what I previously named the `\parbox`-problem, as you can see on the last row in this picture: ![enter image description here](http://i.stack.imgur.com/S8iKS.png) Now my LaTeX looks like this               \begin{longtable}{|>{\bfseries}l|>{\bfseries}l|*{4}{p{0.14\textwidth}|}}        \hline        \multicolumn{2}{|l|}{}  & \textbf{QR Koder}  & \textbf{PDF417}  & \textbf{Data\-Matrix}  & \textbf{Maxi Code}  \\        \hline        ...        Data-  & Numerisk  & 7.089  & 2.710  & 3.116  & 138  \\  \cline{2-6}        \multirow{2}{*}{kapacitet}  & Alfa-  & 4.269  &  1.850  & 2.355  & 93  \\             & numerisk  &  &  &  &  \\  \cline{2-6}             & Bytes  & 2.953  & 1.018  & 1.556  &  \\        \hline        \multicolumn{2}{|l|}{Hovedtræk}  & \begin{tabular}[t]{@{}l@{}}Stor kapacitet \\ Lille udskriftsstørrelse \\ Høj læsehastighed \end{tabular}  & Stor kapacitet  & Lille udskriftsstørrelse  & Høj læsehastighed  \\        \hline     \end{longtable}      Does anybody in here have an idea how to solve this?


title: Layer between a node and its text

text: My question is similar to Transparent node with opaque text? . The difference is that i want the red circle to be above the green rectangle and below the word "Node". And also I do not want to draw the node twice. (the image is from the other question, what i want to achieve is similar to the first image) ![example](http://i.stack.imgur.com/P6hQY.png) Here is a MWE:               \documentclass{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}         % desired effect:         \node [right,fill=green] {Node};         \node [fill=red,circle,minimum size=6mm,inner sep=0mm] {};         \node [right] {Node};              % undesired effect:         \node at(2,0) [right,fill=green] {Node};         \node at(2,0) [fill=red,circle,minimum size=6mm,inner sep=0mm] {};     \end{tikzpicture}     \end{document}      I think I am looking for a layer between a node and its text. (Sorry if it should have not been posted as a separate question, I was uncertain). Here is a longer MWE showing what i want to achieve finally:               \documentclass{beamer}               \usepackage{tikz,xparse}     \usetikzlibrary{matrix,backgrounds}               \definecolor{color3}{rgb}{0,1,0}     \definecolor{color2}{rgb}{1,0,0}     \definecolor{color1}{HTML}{999999}          \pgfdeclarelayer{myback}     \pgfsetlayers{myback,background,main}          \tikzset{myfillcolor/.style = {draw=#1,fill=#1!50,rounded corners,line width=2pt}}          \begin{document}          \NewDocumentCommand{\fhighlight}{O{color2} m m}{     \draw[myfillcolor=#1] ([shift={(.1cm,-.1cm)}]#2.north west)rectangle ([shift={(-.1cm,.1cm)}]#3.south east);     }               \begin{frame}{Test frame}     \begin{tikzpicture}     \matrix [         ampersand replacement=\&,         matrix of nodes,         nodes={inner sep=0,text centered,opacity=.5,text opacity=1},         every even row/.style={nodes={                     rectangle,                     draw,                     minimum size=0.8cm,                     fill=color1,                     font=\Large,                     text height=2ex,                     text depth=.25ex,                     text centered,                     }},             column 10/.style={nodes={text width=1cm}},             row 1/.style={minimum height=0.5cm},             row 5/.style={minimum height=0.5cm}         ]         (m)     {         \& x\& x\&\&\\         |[fill=none,fill=color1!50, dashed]|~\&x\&x\&x\&x\\         |[text height=0.2cm]|~\\         |[draw=none,fill=none]|$x:$\&x\&x\&x\&x\\         \& x\&\&\&\\     };     \begin{pgfonlayer}{myback}     \only<2>{\fhighlight[color2]{m-2-2}{m-4-5}}     \only<3>{\fhighlight[color3]{m-2-1}{m-4-4}}     \end{pgfonlayer}          \end{tikzpicture}     \end{frame}          \end{document}      In the example, i want the red and green rectangles NOT to be transparent or opaque, but instead bright, and to be placed over the gray boxes but under the text


title: Frequently loaded packages: Differences between XeLaTeX and LuaLaTeX

text: Adding the missing member to pdfLaTeX vs. XeLaTeX and pdfLaTeX vs. LuaLaTeX, here's the last of the big three: XeLaTeX vs. LuaLaTeX. Where would a typical template for XeLaTeX differ from one for LuaLaTeX? Two areas coming to my mind in which it would be nice to get some detailed information on what's advisable to use, or what's currently usable to which degree with which compiler are:   1. `microtype`   2. `babel` vs. `polyglossia` Since I don't expect there to be too many packages to list here, it might also sense to mention which packages _both_ XeLaTeX and LuaLaTeX users typically make use of, but _not_ pdfLaTeX users, i.e. the common denominator (?) of the other two questions in the "trinity". For the general differentiation between XeLaTeX and LuaLaTeX see Differences between LuaTeX, ConTeXt and XeTeX. Also related: Considerations when migrating from XeTeX to LuaTeX?


title: References with section and subsection name?

text: I declare sections and subsections as such in my document:               \section{1}     \label{sec:1}          \subsection{a}     \label{sec:1a}      These are formatted using the _titlesec_ package to display "Problem 1" and "Part a" respectively. When I reference a given subsection using the `\ref{label}` command, it displays something like `1.1`, which are clearly the values of the section/subsection counters. What I want however, is **to display something like`1a` in references, where the`1` and the `a` respectively take their values from the section/subsection names**. I have tried using the _nameref_ package to do this, but it only displays the `a` part, and there doesn't seem like a way to have the name of the section (containing the subsection) printed as well. Any suggestions are welcome -- either in raw LaTeX, modifying `\nameref`, or using some other package.


title: Unwanted back-referencing in bibliography

text: I am getting page number of thesis after completion of each reference how do I remove it. I am using code for bib as follows               \bibliographystyle{plainnat}     \renewcommand{\bibname}{References} % changes default name Bibliography to References     \bibliography{References/references} % References file      Example--               [1] Apache. Jena api, 2012. **7**     [2] Donald E. Knuth. Web Servies essentials. O’reilly, 2007. **7**     [3] J. Mogul H. Frystyk L. Masinter P.Leach T. Berners-Lee R.Fielding,     J.Gettys. Hypertext transfer protocol–http/1.1. http://www.w3.org /Pro-     tocols/rfc2616/rfc2616.html, pages 57–76, 1999. **7**      Here page number 7 is problem


title: Problem with boxes in tdclock

text: I have problem with `tdclock`. In one post I saw, it can be removed by some commands. Can anyone help me how to do that. Do I need to put those commands in CMD or some other? Please help me.


title: Adding dot leaders in index

text: How do I get the indexing (which I have set to 1 column) to use dot leaders? I have seen questions relating to `tocloft`, but this is for the TOC and not the index. Is there an idxlayout command I can use? My index is of judgments and cases, which often have numbers as part of their citation, so instead of this: The Prosecutor v Mitar Vasiljevic, Appeals Judgment IT-98-32-A, 1 I would prefer this: The Prosecutor v Mitar Vasiljevic, Appeals Judgment IT-98-32-A.................1 (where the final "1" is the page number which has been indexed) My MWE is:               \documentclass[bibliography=totoc,a4paper,openright]{scrbook}          \usepackage[backend=biber, style=oscola, indexing=cite]{biblatex}     \addbibresource{testingbiblio.bib} %necessary for Oscola     \usepackage[style=british]{csquotes} %necessary for Oscola          \usepackage[noautomatic,nonewpage]{imakeidx}     \makeindex[name=ICTY, columns=1, title={International Criminal Tribunal for Former      Yugoslavia}]     \indexsetup{level=\chapter*} %no page break with chapters     \indexsetup{level=\section*} %no page break with sections          \newcommand{\startindices}{%     \chapter*{TABLE OF CASES}     \let\latexcleardoublepage\cleardoublepage     \def\cleardoublepage{%     \def\cleardoublepage{%     \global\let\cleardoublepage\latexcleardoublepage}}%     }          \begin{document}          Blah blah.\footcite{Vasiljevic}          \startindices     \chapter*{International Tribunals}     \printindex[ICTY]          \end{document}      My minimal bib database is:               @jurisdiction{Vasiljevic,     title = {The Prosecutor v Mitar Vasiljevi\'{c}, Appeals Judgment},     shorttitle = {Vasiljevi\'{c} Appeal},     date = {2004-02-25},     number = {IT-98-32-A},     court = {Appeals Chamber},     pagination = {paragraph},     tabulate = {ICTY},     keywords={ICTY}     }