title: Error using \tikzexternalize and different graphical inputs

text: How can this issue be stated more precicely and finally solved? Having a large document and using \input{...} within figure enviorement for including gaphics by tikz and pdf's, png's. Each figure itself works fine by commenting out any others. After a stepwise uncommenting of figures and always deleting the external-output folders content, the error occurs at an simple figure... \includefigure{pics/name.pdf}. The folder structure is   * \folder\file.tex   * \folder\pics...pdf's,png's   * \folder\tikz...tikz's   * \folder\tikz\ext...pdf's,log's,dpth's  Commenting the \tikzexternalize lines in the preample, makes everything working fine, but - taking too much time.


title: tikz how to center text in a vertical rectangle

text: I am trying to put vertically rotated text inside a rectangle and I have not been able to get it centred vertically. Here is my minimal code and what I get. Any help would be appreciated.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{fit}          \begin{document}     \begin{tikzpicture}          \coordinate (dm1) at (0,3);     \coordinate (dm2) at (0,-3);     \node[rectangle,draw,minimum width=2cm,align=center] [fit = (dm1) (dm2)] (bx4) {\rotatebox{90}{\large Storage Advisor}};          \end{tikzpicture}     \end{document}]      1


title: How to fill random spaces with random circles in tikz?

text: Does anybody know how to efficiently draw either one of the following pictures in tikz? ![enter image description here](http://i.stack.imgur.com/fHmu3.jpg) Specifically the "Well Graded" interests me, as one would have to fill random spaces between circles - with different random smaller circles (of multiple sizes).                \documentclass{standalone}      % Possibly some code here           \begin{document}      % Possibly some code here           \begin{tikzpicture}      % Definitely some code here      \end{tikzpicture}           \end{document}      Thanks for your help and interest.


title: completion of math superscript/subscript in texshop

text: I updated to TeXShop 3.25 and have a minor problem with completion. In the previous version, typing `^` or `_` in math mode, I got automatically the brackets, that is, `a^` automatically gave `a^{}`. Now I do not. I checked the `CommandCompletion.txt` file. I checked that it worked adding e.g. `\frac{#INS}{#INS}`. But adding lines such as `^{#INS}` does not work. Any suggestions ? Thanks and sorry for the naivetè...


title: How to plot x^(1/3)?

text: I tried to export my Geogebra graphs into tikz-code. In General it works fine, but plot x^1/3 doesn't work:               \documentclass[10pt]{article}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows}     \pagestyle{empty}     \begin{document}     \definecolor{ccqqqq}{rgb}{0.8,0,0}     \definecolor{qqttcc}{rgb}{0,0.2,0.8}     \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \draw [color=cqcqcq,dash pattern=on 1pt off 1pt, xstep=1.0cm,ystep=1.0cm] (-4,-4) grid (4,4);     \draw[->,color=black] (-4,0) -- (4,0);     \foreach \x in {-4,-3,-2,-1,1,2,3}     \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};     \draw[->,color=black] (0,-4) -- (0,4);     \foreach \y in {-4,-3,-2,-1,1,2,3}     \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};     \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};     \clip(-4,-4) rectangle (4,4);     \draw[color=qqttcc, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)});     \draw[color=ccqqqq, smooth,samples=100,domain=-4.0:4.0] plot(\x,{((\x))^(1/(3))});     \draw [color=qqttcc](2.06,4.18) node[anchor=north west] {$f(x)=x^3$};     \draw [color=ccqqqq](2.06,1.18) node[anchor=north west] {$f(x)=\sqrt[3]{x}$};     \begin{scriptsize}     \draw[color=qqttcc] (-1.74,-7.16) node {$f$};     \end{scriptsize}     \end{tikzpicture}     \end{document}      > Error line 21: !Missing number, treated as zero. So plot has problems with the negative x I suppose, but I don't know. Any help would be great! I _googled_ it for nearly 1 hour - but no real answers. As suggestet it rotated and mirrored the graph - works great!:               \documentclass[10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows}     \pagestyle{empty}     \begin{document}     \definecolor{ccqqqq}{rgb}{0.8,0,0}     \definecolor{qqttcc}{rgb}{0,0.2,0.8}     \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \draw [color=cqcqcq,dash pattern=on 1pt off 1pt, xstep=1.0cm,ystep=1.0cm] (-4,-4) grid (4,4);     \draw[->,color=black] (-4,0) -- (4,0);     \foreach \x in {-4,-3,-2,-1,1,2,3}     \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize \x};     \draw[->,color=black] (0,-4) -- (0,4);     \foreach \y in {-4,-3,-2,-1,1,2,3}     \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize \y};     \draw[color=black] (0pt,-10pt) node[right] {\footnotesize 0};     \clip(-4,-4) rectangle (4,4);     \draw[color=qqttcc, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)});     \begin{scope}[yscale=-1,xscale=1]     \draw[rotate=90, color=ccqqqq, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)});     \end{scope}     \draw [color=qqttcc](2.06,4.00) node[anchor=north west] {$f(x)=x^3$};     \draw [color=ccqqqq](2.06,1.00) node[anchor=north west] {$f(x)=\sqrt[3]{x}$};     \begin{scriptsize}     \draw[color=qqttcc] (-1.74,-7.16) node {f};     \end{scriptsize}     \end{tikzpicture}     \end{document}


title: How can I use fancyhdr to style my BibTeX's page headings?

text: I haven't yet found a solution to this problem. Before using BibTeX, I styled my bibliographies with `fancyhdr`, which worked. I was able to write it directly into the bibliography environment:               \begin{thebibliography}{9}         \setcounter{page}{5}         \thispagestyle{fancy}              \bibitem{marketing}           Armstrong, Kotler, Saunders, Wong (2007):           Grundlagen des Marketing,           Pearson Education Deutschland GmbH,           München 2007     \end{thebibliography}      I now switched to BibTeX. Checking the BibTeX command `\bibliography{}`, I saw that it "just" inputs text from the `.bbl` file. There the environment definition can be found. But this does not help me. How can I define my bibliography's headers using `fancyhdr`? If not possible, how can I define them in another way? If you provide a fancy macro that does what I am looking for, please be so kind to tell me where I can look up those features so that I write it by myself next time. I sometimes look up commands via `\show\mycommand`. Are there more efficient ways? **I already have the correct fancyhdr definition, but I do not know how to apply it to my BibTeX bibliography.** I'd like to apply this ...               \pagenumbering{roman}     \setcounter{page}{5}     \fancyhead[LO]{\bfseries\rightmark}     \fancyhead[RE]{\bfseries\leftmark}     \renewcommand{\headrulewidth}{0.5pt}      ... to everything in:               \bibliography{mybibfile}      I'm using `natbib`. My `fancyhdr` definitions work well for every other part of my document. **Update: minimal working example** It is not so minimal, but it produces what I mean. _Please note that I use`\romanhdr` to switch to roman page numbers and a certain `fancyhdr`layout in the beginning and it works very well. How can I get it in the bibliography as well? If you compile my file and watch the bibliography, everything is different._ **`LaTeX`file:**               \documentclass[12pt, a4paper, oneside, onecolumn]{book}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[ngerman]{babel}     \usepackage[round]{natbib}          \usepackage{fancyhdr}     \pagestyle{fancy}     % with this we ensure that the chapter and section     % headings are in lowercase.     \renewcommand{\chaptermark}[1]{%     \markboth{#1}{}}     \renewcommand{\sectionmark}[1]{%     \markright{\thesection\ #1}}     \fancyhf{} % delete current header and footer     \fancyhead[LE,RO]{\bfseries\thepage}     \fancyhead[LO]{\bfseries\rightmark}     \fancyhead[RE]{\bfseries\leftmark}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \addtolength{\headheight}{0.5pt} % space for the rule     \fancypagestyle{plain}{%     \fancyhead{} % get rid of headers on plain pages     \renewcommand{\headrulewidth}{0pt} % and the line     }          %%--------------------------------------------------------------------------     %% DOCUMENT-SPECIFIC     %%--------------------------------------------------------------------------     \usepackage{tabularx}     \setlength{\oddsidemargin}{1.5cm}     \setlength{\topmargin}{-0.5cm}     \setlength{\textheight}{22.5cm}     \usepackage{acronym}     \usepackage{tocloft}     \usepackage{tocbibind}          \newcommand{\chp}[1]{\chapter{#1}\thispagestyle{fancy}}     \newcommand{\romanhdr}         {         \thispagestyle{fancy}         \renewcommand{\headrulewidth}{0pt}         \fancyhead[LO]{}         \fancyhead[RE]{}         }     \newcommand{\fancyhdr}{         \fancyhead[LO]{\bfseries\rightmark}         \fancyhead[RE]{\bfseries\leftmark}         \renewcommand{\headrulewidth}{0.5pt}         }          \begin{document}          \frontmatter          \pagenumbering{Roman}     \tableofcontents     \romanhdr     \clearpage          \chapter*{Abkürzungsverzeichnis}     \romanhdr     \addcontentsline{toc}{chapter}{Abkürzungsverzeichnis}     \clearpage     \listoffigures     \romanhdr     \clearpage     \listoftables     \romanhdr     \clearpage          \fancyhdr          \mainmatter % implies arabic pagenumbering     \chp{Introduction}     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non     proident, sunt in culpa qui officia deserunt mollit anim id est laborum.          \clearpage          \backmatter     \pagenumbering{roman}     \setcounter{page}{5}     \nocite{mybook1}     \nocite{mybook2}     \nocite{mybook3}     \nocite{mybook4}     \nocite{mybook5}     \nocite{mybook6}     \nocite{mybook7}     \nocite{mybook8}     \nocite{mybook9}     \nocite{mybook10}     \bibliographystyle{plainnat}     \bibliography{bibliography}     \end{document}      **`BibTeX` file:**               @book{mybook1,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook2,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook3,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook4,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook5,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook6,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook7,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook8,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook9,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }     @book{mybook10,         title = {This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title     that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs. This is my book title that I stretch so that I get two pages of bibliography in order to show that the layout of the header differs},         author = {myauthor},         year = {2010}     }      **This is correct:** ![Correct layout](http://i.stack.imgur.com/955b3.jpg) **This is wrong:** ![Wrong layout](http://i.stack.imgur.com/TMHvQ.jpg)


title: Properly refer to modular documents used as appendices

text: I have a set of documents which refer to one another. In the source, I find lines like `...as shown in Ref. \cite{myWriteupOnXYZ}.` I would like to use these documents in my Ph.D. thesis. Some of them will appear as appendices. This poses a problem, becuse one prefers to refer to appendices like this: `...as shown in Appendix \ref{appendix:XYZ}` or similar. Is there a nice way to handle this? The one idea I had was to `\label` the appendices and then `\ref` them in the `.bib` file for the thesis. This did make the Bibliography list the appendices as e.g.               [44] Appendix A     [45] Appendix B      but this is still kind of non-standard. # Minimal working example **ROOT-DIR/thesis.tex** This is the main thesis document.               \documentclass{report}          \usepackage{import}     \usepackage{appendix}          \begin{document}          Blah blah blah...     % The next line has a proper reference to an appendix     For details on how to make a banana milkshake, see appendix \ref{appendix:bananaMilkshake}.          \subimport*{./}{appendix}          \bibliographystyle{plain}     \bibliography{banana-docs/references}          \end{document}      **ROOT-DIR/appendix.tex** This defines the appendices. Note that the appendices are included from pre- existing documents.               \begin{appendices}          \chapter{How to Make a Banana Milkshake} \label{appendix:bananaMilkshake}     \subimport*{./banana-docs/}{bananaMilkshake-content}          \chapter{How to Peel a Banana} \label{appendix:peelBanana}     \subimport*{./banana-docs/}{peelBanana-content}          \end{appendices}      **ROOT-DIR/banana-docs/bananaMilkshake-content.tex**               % In this appendix, we want to refer to another appendix.     % However, this file is written so that it can be used apart     % from the thesis, i.e. in a situation in which there is no     % actual appendix.     % Therefore, the reference is done with `\cite` and we     % anticipate using a different `.bib` file for each project     % in which this file is used.          First, peel a banana \cite{Sank:peelBanana}.     Then put it in the blender.      **ROOT-DIR/banana-docs/peelBanana-content.tex**               Separate the top part and then pull the peel off in three sections.      **ROOT-DIR/banana-docs/references.bib**               @misc{Sank:peelBanana,       author = {Sank, Daniel},       title={Appendix \ref{appendix:peelBanana}}     }      # Discussion The effect of this is that in `bananaMilkshake-content.tex`, we get a line like this:               First, peel a banana [2].     Then put it in the blender.      and in the bibliography we get               [2] Daniel Sank. Appendix B      This is pretty good, but not what we want, as described above.


title: Would I use \catcode, tokens, or look outside of tex for a markdown-like parser solution?

text: My use case: a LaTeX template for courseware designed in a beamer presentation style. The template I'm designing is company-specific and the specificity of the company's presentation guidelines limits the type of content users of the template will be including. I am trying to create markdown-like shortcuts for beamer presentations, I am wondering if I should use \catcode altering, tokens, or just design an external parsing solution; I would like to isolate these shortcuts to environments that take specific content (courseware authors would be writing the content in plain text with syntax for bolding, coloring, italicization, itemization, numeration, but not much else). Is there a LaTeX solution that could make this happen? Would it be better not to meddle with such unorthodoxy? PS. I don't want suggestions of Pandoc or equivalent, I just want to know if this is a good or bad idea and why!


title: Add zeros after decimal marker

text: Consider the following code:               \documentclass{article}          \usepackage{booktabs}     \usepackage[locale = DE]{siunitx}          \ExplSyntaxOn       \cs_new_eq:NN \calc \fp_eval:n     \ExplSyntaxOff          \DeclareSIUnit\kroner{kr.}          \newcommand*\skyld[1]{       \calc{((1+\rente)^(#1)*(\rente*\start-\afbetaling)+\afbetaling)/\rente}     }               \begin{document}          \def\start{612600}     \def\afbetaling{68199}     \def\rente{0.02}          \begin{tabular}{       S[table-format = 2]       S[table-format = 6.2, round-mode = places, round-precision = 2]     }      \toprule       {$n$} & {$X(n)$}       \\       {---} & {\si{\kroner}} \\      \midrule        0 & \skyld{ 0} \\        1 & \skyld{ 1} \\        2 & \skyld{ 2} \\        3 & \skyld{ 3} \\        4 & \skyld{ 4} \\        5 & \skyld{ 5} \\        6 & \skyld{ 6} \\        7 & \skyld{ 7} \\        8 & \skyld{ 8} \\        9 & \skyld{ 9} \\       10 & \skyld{10} \\      \bottomrule     \end{tabular}          \end{document}      ![output](http://i.stack.imgur.com/j76f2.jpg) How do I add `00` as decimals to the first two numbers in the second column? (I know that the two numbers are integers but I would like two decimals nonetheless.)


title: Bar plots in sans serif font

text: I want to typeset my bar plots with a sans serif font (using LuaTeX). I tried many options that I found searching the manual and the internet. None of them solved my problem---using different fonts than CM; with CM it works! The same MWE shows different results in the PDF depending on the engine (PDFTeX vs. LuaTeX). MWE MinionPro, MyriadPro, pdflatex:               \documentclass{scrartcl}     \usepackage{%       sansmath%       ,MinionPro%       ,MyriadPro%     }      \usepackage{pgfplots}     \pgfplotsset{%       /tikz/font=\sansmath\sffamily     }     \usepackage{filecontents}     \begin{document}     \begin{tikzpicture}     \begin{axis}[       xbar,       xlabel={a--d},       symbolic y coords={a,b,c,d},       ytick=data,       nodes near coords, nodes near coords align={horizontal},       ]       \addplot coordinates {         (45,a)         (20,b)         (1,c)         (5,d)         };     \end{axis}     \end{tikzpicture}     \end{document}      Plot: ![Bar plot, MinionPro, MyriadPro, pdflatex](http://i.stack.imgur.com/EOq7K.png) MWE MinionPro, MyriadPro, lualatex               \documentclass{scrartcl}     \usepackage{%       sansmath%     }      \usepackage{fontspec}     \setmainfont[%       BoldFont={MinionPro-Bold}%       ,ItalicFont={MinionPro-It}%       ,BoldItalicFont={MinionPro-BoldIt}%       ,Numbers=OldStyle%     ]{MinionPro-Regular}          \setsansfont[%       Scale=MatchLowercase%       ,BoldFont={MyriadPro-Bold}%       ,ItalicFont={MyriadPro-It}%       ,BoldItalicFont={MyriadPro-BoldIt}%       ,Numbers=OldStyle%     ]{MyriadPro-Regular}     \setmathsf{MyriadPro-Regular}     \usepackage{pgfplots}     \pgfplotsset{%       /tikz/font=\sansmath\sffamily     }     \usepackage{filecontents}     \begin{document}     \begin{tikzpicture}     \begin{axis}[       xbar,       xlabel={a--d},       symbolic y coords={a,b,c,d},       ytick=data,       nodes near coords, nodes near coords align={horizontal},       ]       \addplot coordinates {         (45,a)         (20,b)         (1,c)         (5,d)         };     \end{axis}     \end{tikzpicture}     \end{document}      Plot: ![Bar plot, MinionPro, MyriadPro, lualatex](http://i.stack.imgur.com/g9wqU.png) Here are some of the pgfplotsset options I already tried (and noted down):               \pgfplotsset{%     %  ,tick label style = {font=\sansmath\sffamily}%     %  ,tick style = {font=\sansmath\sffamily}     %  ,every axis label = {font=\sansmath\sffamily}%     %  ,every axis/.style={font=\sansmath\sffamily}%     %  ,xticklabel={$\pgfmathprintnumber{\sansmath\tick}$}%       ,/tikz/font=\sansmath\sffamily     %  ,legend style = {font=\sansmath\sffamily}%     %  ,label style = {font=\sansmath\sffamily}%     }      Best regards Christoph


title: Using bbm fonts in Ipe

text: I'm trying to use bbm fonts (specifically, `mathbbm{1}`) in an Ipe image. I get the following error message: `An error occured during the Pdflatex run. The was an error reading the Pdflatex output`. Can anyone help with that?


title: How to I reduce space before and after HRule?

text: I have a command:               \newcommand{\HRule}{\rule{\linewidth}{0.2mm}}      and it produces a thickness I am happy with but the space before and after the line is far too large and taking up much of my document.. How can I change this?


title: Different alphabet with \alph

text: My language (Slovenian) uses a different alphabet that starts with a, b, c, č, d. I have the correct `babel` settings but `\alph{}` numbering still gives me a, b, c, d.               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[slovene]{babel}          \renewcommand\thesection{\alph{section}}          \begin{document}          \section{}     \section{}     \section{}     \section{}          \end{document}


title: \csname error in defining in loop

text: In following snippet I try to use TeX programming to define commands `\Ab`, `\Bb`, `\Cb` and so on. Strangely, I get `Missing \endcsname inserted` error. What is my mistake? I hadn't read TeXBook, so it is a bit of magic for me.               \input repeat.tex          \repeat\for{charcode}\from{`A}\by{1}\to{`Z}\do{%       \edef\letter{\char\charcode}       \expandafter\gdef\csname\letter b\endcsname{{\bf \letter}}     }          \bye


title: What is a good BPMN tool in Tikz

text: I'm looking for a nice package (or tool) to write BPMN diagrams directly into my documents. However, I had no luck so far. I found several tools that may help doing the diagrams, and then exporting to SVG or PDF directly. However, I want something more native to LaTeX, like Tikz. I found this question, but is deleted and I have no access to it. (Also, I'm not sure if this question doesn't belong here, and that is why that question got deleted in the first place. If that is the case, putting some kind of message in this question would be a good idea instead of just sending the question to oblivion.) Also, found a couple of initial directions, like:   * Draw inside nodes to get BPMN gateway shapes   * or this blog post But I couldn't find a full package that may help doing a full diagram, and easing the maintenance, or work load to start from scratch to create diagrams. **Any help or pointers on where to look are appreciated.**


title: Force horizontal edges between nodes in TikZ

text: In this code:               \usetikzlibrary{positioning, fit, calc, shapes, arrows}     \renewcommand{\figurename}{Figure}     \begin{figure}[!htb]         \centering         \begin{tikzpicture}             [title/.style={font=\fontsize{18}{18}\color{black!45}},             server/.style={rectangle, draw, fill=blue!23, rounded corners, minimum height=9em},             client/.style={rectangle, draw, fill=green!23, rounded corners, minimum height=2em},             dot/.style={circle, fill=black, minimum size=2pt, inner sep=0pt, outer sep=2pt},             link/.style={latex-latex}]             % Place nodes             \node [server, outer sep=8pt, align=center] (s1) at (5,8.3) {S1};             \node [server, outer sep=8pt, align=center] (s2) at (7.65,8.3) {S2};             \node [server, outer sep=8pt] (s3) at (10.3,8.3) {S3};             \node [draw=black!50, fit={(s1) (s2) (s3)}] (back) {};             \node [client] (c1) at (0,9.5) {C1};             \node [client] (c2) at ($(c1) + (270:1.15)$) {C2};             \node [client] (c3) at ($(c2) + (270:1.15)$) {C3};             \node [dot] (c4) at ($(c3) + (270:1)$) {};             \node [dot] (c5) at ($(c4) + (270:0.5)$) {};             \node [dot] (c6) at ($(c5) + (270:0.5)$) {};             \node [draw=black!50, fit={($(c1.north)+(0, 8pt)$) (c2) (c3) (c4) (c5) ($(c6.south)+(0, -7pt)$)}, inner sep=5.75pt] (front) {};             % Place edges         \end{tikzpicture}         \caption{Schema}     \end{figure}      I want to have a separate **horizontal** edge to connect each of the `C1`, `C2`, and `C3` with the rectangle node which contains `S1`, `S2` and `S3`, i.e. the `back` node in the code above. If I use `\path`, the edges are not horizontal, due to the coordinates of `C1`, `C2` and `C3` nodes do not line up with the `back` node. How should I do it?


title: how to no counting the cover and the abstract pages?

text: I was vieweing posts but, I can´t find the solution. I have a cover, an post-cover page, and an abstract page. How can I do to starting counting on the next page?


title: Combining diacritical mark is misaligned with luatex, but not with xetex

text: Consider the following code:               \documentclass{article}     \usepackage{fontspec}     \setmainfont[BoldItalicFont = {* Semibold Italic}]{Linux Libertine O}     \begin{document}     \textit{\textbf{V\char"0306}}     \end{document}      Why does this give the correct output with `XeLaTeX`, but not with `LuaLaTeX`? XeLaTeX: ![enter image description here](http://i.stack.imgur.com/JChKM.png) LuLaTeX: ![enter image description here](http://i.stack.imgur.com/7BCbH.png) (This question is a spin-off from Why choose LuaLaTeX over XeLaTeX?)


title: Error when using pgfplots and beamerposter

text: I'm trying to create a poster presentation using beamerposter, and it refuses to compile when I insert my pgfplots plot. I get the following error message               ! TeX capacity exceeded, sorry [input stack size=5000].     \end #1->\csname end#1                           \endcsname \@checkend {#1}\expandafter \endgroup \if@e...     l.18    \end{frame}      when I try to compile this code:               \documentclass{beamer}          \usepackage{beamerposter}     \usepackage{pgfplots}          \begin{document}     \begin{frame}     \begin{block}     \begin{tikzpicture}     \begin{axis}     \addplot coordinates {         (0,  .28138392)         (1, -.6979761)         };     \end{axis}     \end{tikzpicture}     \end{block}     \end{frame}     \end{document}      However, this code, where I've just removed the beamerposter package, works fine:               \documentclass{beamer}     \usepackage{pgfplots}          \begin{document}     \begin{frame}     \begin{tikzpicture}     \begin{axis}     \addplot coordinates {         (0,  .28138392)         (1, -.6979761)     };     \end{axis}     \end{tikzpicture}     \end{frame}     \end{document}      I'm running an up-to-date MikTex 2.9 on Windows 7.


title: Why do I need another pair of curly braces?

text: I have an error in this line of LaTeX.               \frac{ {{2}\choose{2}} {{1}\choose{1}} } { {1}\choose{1} }      The error notes               Ambiguous; you need another { and }.      I matched up the curly braces, and I don't think I need one though. What is going on?


title: Environment not defined

text: I am writing a thesis with the gatech-thesis class. This class defines an environment, `preliminary`. When I compile (in LyX or in TeXworks), I get an error that this environment is not defined. The class as a whole is clearly recognized, because the document compiles as it should when I comment out that environment. I'm using MikTeX for Windows 8.


title: Align position of a table exactly to another one

text: I have a problem. I just made a table which was very wide, so I decided to split it into two smaller ones. Turned out the 2nd half is a little bit smaller in width than the first one. Now I want these **two tables to be below each other, meaning with the exact same distance from the left.** Also the bigger of these is centered, but I don't want the 2nd and smaller one to be centered as well. I want it to be starting from the left at the same position as the bigger one. How can you do this in Latex? Here is the code of the two tables:               \documentclass[a4paper]{scrreprt}     \usepackage{setspace}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{booktabs}     \usepackage[labelfont=bf, labelsep=newline,singlelinecheck=false]{caption}     \usepackage{floatrow}          \KOMAoption{captions}{tableheading}     \setcapindent{0em}     \pagestyle{headings}          \begin{document}          \begin{table}[htpb]     \begin{floatrow}     \ttabbox{     \begin{tabular}{lccccc}     \toprule     ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE  \\     ABCDE &     ABCDE & ABCDE & ABCDE & ABCDE & ABCDE  \\     ABCDE &      ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\     \bottomrule     \end{tabular}     }      {     \caption{ABCDE table}\label{tab:ABCDE}     }     \end{floatrow}     \end{table}          \begin{table}[htpb]     \begin{floatrow}     \ttabbox{     \begin{tabular}{lccc}     \toprule     ABCDE & ABCDE & ABCDE & ABCDE &   \\     ABCDE &     ABCDE & ABCDE & ABCDE &  \\     ABCDE &      ABCDE & ABCDE & ABCDE &  \\     \bottomrule     \end{tabular}     }      {     \caption{ABCDE table}\label{tab:ABCDE}     }     \end{floatrow}     \end{table}               \end{document}      Thank you for any hints :)


title: Drivers other than "pdftex.def" are not supported - - Need advice

text: Hey I'm configuring my TeXMaker 4.0.3, I did this few times and never had such a problem like that! I have this message: ` Drivers other than "pdftex.def" are not supported.` PDF does not generate too. Any suggestions?


title: list of current labels in lyx

text: I would like to see all the currently created `labels` in my document in `LyX`. I am creating a `label` and this `label` already exists somewhere in my document. Lyx relabels my item adding a "-1" to it. When I do this again, it adds a "-2". I would like to clean all this up. How do I view and edit all current `labels` in my document?


title: Footcite number should count up

text: I'm currently working on a report... It says that every footnote should have a unique number, aka it should count up. But when I use `\footcite{Mandelbrot1987}` it will only count the numbers up per page. When I have two footcites on one page, it will be 1 and 2. But every new page it begins at 1 again, is there any way to change that? It should count globally, not per page. Litte Code:               \documentclass[fontsize=12pt,a4paper]{scrreprt}     \usepackage[       paper=a4paper,       left=30mm,       right=40mm,       top=30mm,       bottom=25mm,       includefoot,       foot=\baselineskip,       bindingoffset=0mm]{geometry}          \usepackage[ngerman]{babel}     \usepackage{graphicx}     \usepackage{fontspec}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{tabularx}     \usepackage{colortbl}     \usepackage{booktabs}     \usepackage{wrapfig}     \usepackage{float}     \usepackage{caption}     \usepackage{pdfpages}     \usepackage[backend=biber,style=authortitle]{biblatex}     \usepackage[babel,german=guillemets]{csquotes}     \usepackage{url}     \setmainfont{Calibri}     \linespread {1.5}     \title{Something}     \author{Someone}     \date{2013}     \addbibresource{literatur.bib}     \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps}     \begin{document}     \maketitle     \newpage     \tableofcontents     \newpage     \chapter{Einleitung}     \footcite{Barnsley1995}     \newpage     \chapter{Somethingelse}     \footcite{Barnsley1995}     \newpage     \chapter{More}     \footcite{Barnsley1995}     \newpage     \end{document}      And the Bib:               @BOOK{Barnsley1995,         AUTHOR = {Barnsley, Michael F. AND Meyer, Jens},         YEAR = {1995},         TITLE = {Fraktale. - Theorien und Praxis der deterministischen Geometrie.},         EDITION = {1. Aufl.},         ISBN = {978-3-860-25010-5},         PUBLISHER = {Spektrum-Akademischer Vlg},         LOCATION = {München},     }


title: Compilation blocked with tikz

text: I'm writing figure with several segments, and it looks like tikz does not like it. So I added:               \usepgfplotslibrary{external}      \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows}      \tikzexternalize      It worked well, and sudenly if I had only one more arc, compilation is blocked.               \write18 enabled.     entering extended mode      If I look in myFigure.log, I cannot see anything wrong. It ends with               Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is detected.     )     Package pdftexcmds Info: LuaTeX not detected.     Package pdftexcmds Info: \pdf@primitive is availabl       Since I do not have any error message, I really do not know where to look for. Here is an example of 2 figures that do not compile on my system:               \documentclass[11pt,a4]{article}     \usepackage{graphics}     \usepackage{url}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage[dcucite,abbr]{harvard}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.8}     \usepgfplotslibrary{external}     \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows}     \tikzexternalize          \textwidth 150mm \textheight 230mm \topmargin -20mm     \renewcommand{\baselinestretch}{1.25}     \marginparwidth 17mm     \oddsidemargin 7mm     \newcommand{\cvd}{\hfill\raisebox{3pt}{\fbox{\rule{0mm}{1mm}\hspace*{1mm}\rule{0mm}{1mm}}\,} \vspace{5mm}}     \newcommand{\proof}{\vspace{1mm}\noindent{\it Proof}\quad}     \renewcommand{\thefootnote}{\arabic{footnote}}     \newcounter{bean}          \date{}          \begin{document}     \pagestyle{empty}          \begin{figure}[h]\begin{center}          \begin{tikzpicture}[     init/.style={       draw,       circle,       inner sep=2pt,       font=\Huge,     }]     \matrix[row sep= 5mm, column sep=8mm] (m) {     \node [init] (x0) {}; & \node [init] (x1) {}; & \node[init] (x2) {}; & \node[init] (x3) {}; & \node[init] (x4) {}; & \node[init] (x5) {}; & \node[init] (x6) {}; & \node[init] (x7) {};\\     \node [init] (y0) {}; & \node [init] (y1) {}; & \node[init] (y2) {}; & \node[init] (y3) {}; & \node[init] (y4) {}; & \node[init] (y5) {}; & \node[init] (y6) {}; & \node[init] (y7) {};\\     \node [init] (z0) {}; & \node [init] (z1) {}; & \node[init] (z2) {}; & \node[init] (z3) {}; & \node[init] (z4) {}; & \node[init] (z5) {}; & \node[init] (z6) {}; & \node[init] (z7) {};\\     };          \node [init, left=of m] (s) {$s$};          \node [init, right=of m] (e) {$e$};          \path (s) edge[->, dotted] (x0);     \path (s) edge[->, dotted] (y0);     \path (s) edge[->, dotted] (z0);     \path (s) edge[->, dotted] (x1);     %\path (s) edge[->, dotted] (y1);     \path (s) edge[->, thick] (z1);     \path (s) edge[->, dotted] (x2);     %\path (s) edge[->, dotted] (y2);     \path (s) edge[->, dotted] (z2);     \path (s) edge[->, dotted] (x3);     %\path (s) edge[->, dotted] (y3);     \path (s) edge[->, dotted] (z3);     \path (s) edge[->, dotted] (x4);     %\path (s) edge[->, dotted] (y4);     \path (s) edge[->, dotted] (z4);     \path (s) edge[->, dotted] (x5);     %\path (s) edge[->, dotted] (y5);     \path (s) edge[->, dotted] (z5);     \path (s) edge[->, dotted] (x6);     %\path (s) edge[->, dotted] (y6);     \path (s) edge[->, dotted] (z6);     \path (s) edge[->, dotted] (x7);     %\path (s) edge[->, dotted] (y7);     \path (s) edge[->, dotted] (z7);          \path (x0) edge[->, dotted] (x1);     \path (x0) edge[->, dotted] (y1);     \path (x0) edge[->, dotted] (z1);     \path (y0) edge[->, dotted] (x1);     \path (y0) edge[->, dotted] (y1);     \path (y0) edge[->, dotted] (z1);     \path (z0) edge[->, dotted] (x1);     \path (z0) edge[->, dotted] (y1);     \path (z0) edge[->, dotted] (z1);          \path (x1) edge[->, dotted] (x2);     \path (x1) edge[->, dotted] (y2);     \path (x1) edge[->, dotted] (z2);     \path (y1) edge[->, dotted] (x2);     \path (y1) edge[->, dotted] (y2);     \path (y1) edge[->, dotted] (z2);     \path (z1) edge[->, dotted] (x2);     \path (z1) edge[->, thick] (y2);     \path (z1) edge[->, dotted] (z2);          \path (x2) edge[->, dotted] (x3);     \path (x2) edge[->, dotted] (y3);     \path (x2) edge[->, dotted] (z3);     \path (y2) edge[->, dotted] (x3);     \path (y2) edge[->, thick] (y3);     \path (y2) edge[->, dotted] (z3);     \path (z2) edge[->, dotted] (x3);     \path (z2) edge[->, dotted] (y3);     \path (z2) edge[->, dotted] (z3);          \path (x3) edge[->, dotted] (x4);     \path (x3) edge[->, dotted] (y4);     \path (x3) edge[->, dotted] (z4);     \path (y3) edge[->, dotted] (x4);     \path (y3) edge[->, thick] (y4);     \path (y3) edge[->, dotted] (z4);     \path (z3) edge[->, dotted] (x4);     \path (z3) edge[->, dotted] (y4);     \path (z3) edge[->, dotted] (z4);          \path (x4) edge[->, dotted] (x5);     \path (x4) edge[->, dotted] (y5);     \path (x4) edge[->, dotted] (z5);     \path (y4) edge[->, thick] (x5);     \path (y4) edge[->, thick] (y5);     \path (y4) edge[->, dotted] (z5);     \path (z4) edge[->, dotted] (x5);     \path (z4) edge[->, dotted] (y5);     \path (z4) edge[->, dotted] (z5);          \path (x5) edge[->, thick] (x6);     \path (x5) edge[->, dotted] (y6);     \path (x5) edge[->, dotted] (z6);     \path (y5) edge[->, thick] (x6);     \path (y5) edge[->, dotted] (y6);     \path (y5) edge[->, dotted] (z6);     \path (z5) edge[->, dotted] (x6);     \path (z5) edge[->, dotted] (y6);     \path (z5) edge[->, dotted] (z6);          \path (x6) edge[->, thick] (x7);     \path (x6) edge[->, dotted] (y7);     \path (x6) edge[->, dotted] (z7);     \path (y6) edge[->, dotted] (x7);     \path (y6) edge[->, dotted] (y7);     \path (y6) edge[->, dotted] (z7);     \path (z6) edge[->, dotted] (x7);     \path (z6) edge[->, dotted] (y7);     \path (z6) edge[->, dotted] (z7);          \path (x0) edge[->, dotted] (e);     %\path (y0) edge[->, dotted] (e);     \path (z0) edge[->, dotted] (e);     \path (x1) edge[->, dotted] (e);     %\path (y1) edge[->, dotted] (e);     \path (z1) edge[->, dotted] (e);     \path (x2) edge[->, dotted] (e);     %\path (y2) edge[->, dotted] (e);     \path (z2) edge[->, dotted] (e);     \path (x3) edge[->, dotted] (e);     %\path (y3) edge[->, dotted] (e);     \path (z3) edge[->, dotted] (e);     \path (x4) edge[->, dotted] (e);     %\path (y4) edge[->, dotted] (e);     \path (z4) edge[->, dotted] (e);     \path (x5) edge[->, dotted] (e);     %\path (y5) edge[->, dotted] (e);     \path (z5) edge[->, dotted] (e);     \path (x6) edge[->, dotted] (e);     %\path (y6) edge[->, dotted] (e);     \path (z6) edge[->, dotted] (e);     \path (x7) edge[->, dotted] (e);     \path (x7) edge[->, thick] (e);     \path (z7) edge[->, dotted] (e);          \node [left=of x0, xshift=-1cm] (A1) {A};     \node [left=of y0, xshift=-1cm] (A2) {B};     \node [left=of z0, xshift=-1cm] (A3) {C};          \node [above=of A1] (types) {Title 1};     \node [above=of m] (types) {Title 2};          \node [below=of z0, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{a}};     \node [below=of z1, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{b}};     \node [below=of z2, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{c}};     \node [below=of z3, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{d}};     \node [below=of z4, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{e}};     \node [below=of z5, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{f}};     \node [below=of z6, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{g}};     \node [below=of z7, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{h}};          \end{tikzpicture}          \end{center}\end{figure}          \begin{figure}[h!]\begin{center}          \begin{tikzpicture}[     init/.style={       draw,       circle,       inner sep=2pt,       font=\Huge,       %join = by -latex     }]     \matrix[row sep= 5mm, column sep=8mm] (m) {     \node [init] (x0) {}; & \node [init] (x1) {}; & \node[init] (x2) {}; & \node[init] (x3) {}; & \node[init] (x4) {}; & \node[init] (x5) {}; & \node[init] (x6) {}; & \node[init] (x7) {};\\     \node [init] (y0) {}; & \node [init] (y1) {}; & \node[init] (y2) {}; & \node[init] (y3) {}; & \node[init] (y4) {}; & \node[init] (y5) {}; & \node[init] (y6) {}; & \node[init] (y7) {};\\     \node [init] (z0) {}; & \node [init] (z1) {}; & \node[init] (z2) {}; & \node[init] (z3) {}; & \node[init] (z4) {}; & \node[init] (z5) {}; & \node[init] (z6) {}; & \node[init] (z7) {};\\     };          \node [init, left=of m] (s) {$s$};          \node [init, right=of m] (e) {$e$};          \path (s) edge[->, dotted, very thick] node {\textbf{7}} (x0);     \path (s) edge[->, dotted, very thick] node {\textbf{1}} (y0);     \path (s) edge[->, dotted, very thick] node {\textbf{2}} (z0);     \path (s) edge[->, dotted] (x1);     \path (s) edge[->, dotted] (e);     \path (s) edge[->, dotted] (z1);     \path (s) edge[->, dotted] (x2);     \path (s) edge[->, dotted] (z2);     \path (s) edge[->, dotted] (x3);     \path (s) edge[->, dotted] (z3);     \path (s) edge[->, dotted] (x4);     \path (s) edge[->, dotted] (z4);     \path (s) edge[->, dotted] (x5);     \path (s) edge[->, dotted] (z5);     \path (s) edge[->, dotted] (x6);     \path (s) edge[->, dotted] (z6);     \path (s) edge[->, dotted] (x7);     \path (s) edge[->, dotted] (z7);          \path (x0) edge[->, dotted, very thick] node {\textbf{7}} (x1);     \path (x0) edge[->, dotted] (y1);     \path (x0) edge[->, dotted] (z1);     \path (y0) edge[->, dotted, very thick] node {\textbf{7}} (x1);     \path (y0) edge[->, dotted] (z1);     \path (z0) edge[->, dotted, very thick] node {\textbf{7}} (x1);     \path (z0) edge[->, dotted] (y1);     \path (z0) edge[->, dotted] (z7);          \path (x1) edge[->, dotted] (x7);     \path (x1) edge[->, dotted, very thick] node {\textbf{1}} (y2);     \path (x1) edge[->, dotted] (z2);     \path (y1) edge[->, dotted] (x2);     \path (y1) edge[->, dotted, very thick] node {\textbf{1}} (y2);     \path (y1) edge[->, dotted] (z2);     \path (z1) edge[->, dotted] (x2);     \path (z1) edge[->, dotted, very thick] node {\textbf{1}} (y2);          \path (x2) edge[->, dotted] (y3);     \path (x2) edge[->, dotted, very thick] node {\textbf{2}} (z3);     \path (y2) edge[->, dotted] (x3);     \path (y2) edge[->, dotted, very thick] node {\textbf{2}} (z3);     \path (z2) edge[->, dotted] (x3);     \path (z2) edge[->, dotted] (y3);     \path (z2) edge[->, dotted, very thick] node {\textbf{2}} (z3);          \path (x3) edge[->, dotted] (y4);     \path (x3) edge[->, dotted] (z4);     \path (y3) edge[->, dotted] (x4);     %\path (y3) edge[->, dotted] (y4);     \path (y3) edge[->, dotted] (z4);     \path (z3) edge[->, dotted] (x4);     \path (z3) edge[->, dotted] (y4);     %\path (z3) edge[->, dotted] (z4);     %     %\path (x4) edge[->, dotted] (x5);     \path (x4) edge[->, dotted] (y5);     \path (x4) edge[->, dotted[ (z5);     \path (y4) edge[->, dotted] (x5);     %\path (y4) edge[->, dotted] (y5);     \path (y4) edge[->, dotted] (z5);     %\path (z4) edge[->, dotted] (x5);     %\path (z4) edge[->, dotted] (y5);     %\path (z4) edge[->, dotted] (z5);     %     %\path (x5) edge[->, dotted] (x6);     %\path (x5) edge[->, dotted] (y6);     %\path (x5) edge[->, dotted] (z6);     %\path (y5) edge[->, dotted] (x6);     %\path (y5) edge[->, dotted] (y6);     %\path (y5) edge[->, dotted] (z6);     %\path (z5) edge[->, dotted] (x6);     %\path (z5) edge[->, dotted] (y6);     %\path (z5) edge[->, dotted] (z6);     %     %\path (x6) edge[->, dotted] (x7);     %\path (x6) edge[->, dotted] (y7);     %\path (x6) edge[->, dotted] (z7);     %\path (y6) edge[->, dotted] (x7);     %\path (y6) edge[->, dotted] (y7);     %\path (y6) edge[->, dotted] (z7);     %\path (z6) edge[->, dotted] (x7);     %\path (z6) edge[->, dotted] (y7);     %\path (z6) edge[->, dotted] (z7);     %     %\path (x0) edge[->, dotted] (e);     %\path (y0) edge[->, dotted] (e);     %\path (z0) edge[->, dotted] (e);     %\path (x1) edge[->, dotted] (e);     %\path (y1) edge[->, dotted] (e);     %\path (z1) edge[->, dotted] (e);     %\path (x2) edge[->, dotted] (e);     %\path (y2) edge[->, dotted] (e);     %\path (z2) edge[->, dotted] (e);     %\path (x3) edge[->, dotted] (e);     %\path (y3) edge[->, dotted] (e);     %\path (z3) edge[->, dotted] (e);     %\path (x4) edge[->, dotted] (e);     %\path (y4) edge[->, dotted] (e);     %\path (z4) edge[->, dotted] (e);     %\path (x5) edge[->, dotted] (e);     %\path (y5) edge[->, dotted] (e);     %\path (z5) edge[->, dotted, very thick] node {\textbf{0}} (e);     %\path (x6) edge[->, dotted] (e);     %\path (y6) edge[->, dotted] (e);     %\path (z6) edge[->, dotted] (e);     %\path (x7) edge[->, dotted, very thick] node {\textbf{0}} (e);     %\path (y7) edge[->, dotted, very thick] node {\textbf{0}} (e);     %\path (z7) edge[->, dotted, very thick] node {\textbf{0}} (e);          \node [left=of x0, xshift=-1cm] (A1) {A};     \node [left=of y0, xshift=-1cm] (A2) {B};     \node [left=of z0, xshift=-1cm] (A3) {C};          \node [below=of z0, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{a}};     \node [below=of z1, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{b}};     \node [below=of z2, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{c}};     \node [below=of z3, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{d}};     \node [below=of z4, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{e}};     \node [below=of z5, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{f}};     \node [below=of z6, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{g}};     \node [below=of z7, xshift=-0.3cm, yshift=0.5cm]  {\rotatebox{60}{h}};          \end{tikzpicture}          \end{center}\end{figure}          \end{document}      This creates files test-figure0.dep, .dpth, .log, .md5 and .pdf, but for figure1, there are all but PDF. I use TeXShop to compile with 'pdflatex -shell-escape' as the default command


title: Make beamer `<+->` overlays start hidden

text: I usually have slides with constructs like the following:               \begin{frame}{A frame title}     What am I trying to do here?     \begin{enumerate}[<+->]        \item Show some stuff        \item Show more stuff incrementally        \item ...?        \item Profit!     \end{enumerate}          \only<+>{I'm just going to show this briefly}     \uncover<+->{...and then I'll replace it with this!}     \end{frame}      I'd like that to render _five_ slides - the first showing only the question, and the first list item showing up first on the _second_ slide. I can do this by adding `\addtocounter{beamerpauses}{1}` at the top of the slide, but then I have to do this on every slide... I tried to hook into the frame template to do it, but it didn't have any effect. What's the best way to do this?


title: Styles in TikZ trees not working as expected

text: I want to draw a "cut-out" region of a tree, and visually underline this by having dashed edges on top and on the bottom of my diagram (to symbolize the levels further up and further down). I am attempting to use styles defined in the options of the `\tikzpicture` environment, but failing to achieve the desired result, which would look something like this: ![desired result](http://i.imgur.com/NgKxzUm.jpg) For me, the "outermost" edges (which I want to be dashed) are just normal lines.               \documentclass{beamer}          \usepackage{tikz}          \begin{document}     \begin{tikzpicture}[       every node/.style={minimum size=4mm, inner sep=0.5mm},       normal/.style={circle,draw},       invis/.style={draw=none},       border/.style={ edge from parent/.style={dashed,draw} },       acc/.style={circle,thick,draw=green!50,fill=green!2},       rej/.style={circle,thick,draw=red!50,fill=red!20},       semithick]            node[invis] (root) {}         child[level distance=11mm] { node[border,normal] {x}           child {node[acc] {x1}             child {node[border,invis] {} }             child {node[border,invis] {} }             child {node[border,invis] {} }           }           child {node[rej] {x2} }           child {node[normal] {x3}             child {node[invis,border] {} }             child {node[invis,border] {} }             child {node[invis,border] {} }           }       };      \end{tikzpicture}     \end{document}      My first hunch was maybe a node could only have one style defined in its options, but even after swapping the two styles for the last tree nodes, it makes no difference. I also tried applying a style and setting an option in the same []-block, and it worked, so this doesn't seem to be the problem. I am aware that the author of TikZ notes in the manual that "placing node options at the right place is an arcane art", but (after carefully reading) I thought basically it worked like this:   * Options defined in a `node` are local in effect.   * Options defined in a `child` command are inherited to all of its child nodes. When trying to pass the `border` style to the `child` command as an alternative , I **do** get dashed edges which work for the bottom, but if I pass it to the first visible child node (x), all the lines in the tree are dashed (even the node outlines!) because of the inheritance mechanism. What am I doing wrong/ should I change to achieve the desired result?


How to compile a file to view in .pdf file in texStudio? I am using foxit reader as my pdf viewer. I can't compile after I text it. The below is the error display in the foxit reader after I compile it. > Check if the file was moved, renamed or deleted.


title: Different TileWallPaper on right and left side

text: I've A3 page layout, which is divided into two A4 paper layout. Currently there is same "TileWallPaper" used as background images on both A4 size layout of A3 paper. I'm looking for option to have different TileWallPaper on right & left side. Can you please suggest option for same? Same TeX file is mentioned below: Note Currently `image opt3.jpg` is used in both columns; I want to use `opt3_right.jpg` & `opt3_left.jpg` on A3 paper with two two columns of A4 size.               \documentclass[landscape,a3paper]{article}     \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}     \usepackage{multicol}     \usepackage{datapie}     \usepackage[T1]{fontenc}     \usepackage{graphicx}     \usepackage{tabularx}     \usepackage{nonfloat}     \usepackage{caption}     \usepackage{amsmath,amssymb}     \usepackage{lmodern}     \usepackage{textcomp}     \usepackage{ifpdf}     \usepackage{pdfpages}     \usepackage{wallpaper}     \TileWallPaper{0.5\paperwidth}{1\paperheight}{opt3}     \usepackage{datatool}     \DTLloaddb{names}{namelist-7.csv}     \usepackage{calc}     \usepackage{ifthen}     \usepackage{tikz}     \begin{document}     \begin{multicols}{2}     Test Document     Test Document     Text Again     Text Again 22     \pagebreak     \end{multicols}     \end{document}


title: Vertical centering inside an overprint

text: Is there an "easy" way to vertically center stuff in an `overprint` environment? Based on the current answer, this is my test document               \documentclass{beamer}     \usepackage{listings}     \long\def\opcenter#1{\vfill\smash{\begin{minipage}[c]{\linewidth}#1\end{minipage}}}     \begin{document}     \begin{frame}[fragile]       \begin{overprint}         \onslide<1>           \opcenter{A short paragraph}         \onslide<2>           \opcenter{A\\             longer\\             paragraph\\             with\\             a\\             few\\             lines}         \onslide<3>           \opcenter{             \begin{block}{Title}               A block \\               with\\               a\\               few lines             \end{block}           }         \onslide<4>           \opcenter{             One paragraph                  Plus something else           }          \onslide<5>            \opcenter{              \begin{lstlisting}     And verbatim stuff              \end{lstlisting}            }       \end{overprint}     \end{frame}     \end{document}      And the problem now is with paragraph breaks (a replacement for `\smash`?) and verbatim content (`listings`).


title: Image caption within \newfloat

text: I am using the `float` package to create my own floats. Now I also want to add an image with its own caption inside, but the caption belongs to the outer float. Is it possible to create something like a `figure` environment inside my float? I that already but it does not work inside the float.               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{graphicx}          \usepackage{blindtext}     \usepackage{float}     \usepackage{framed}          \newfloat{infobox}{tbp}{ext}          \begin{document}          \begin{infobox}       \begin{framed}         \blindtext               \includegraphics[width=0.85\textwidth]{dummy}         \caption{Caption for the image}       \end{framed}     \end{infobox}          \end{document}      ![sample output](http://i.stack.imgur.com/gTilH.png)


title: Creating a line separated gradient bar in Tikz

text: I am trying to create something similar to this in Tikz: ![enter image description here](http://i.stack.imgur.com/LKQNN.png) I have been looking at using the \shadedraw macro, but have not found a way to create the color spectrum. It seems possible if I stack multiple gradient- shaded rectangles on top of each other, but I would rather not use such a lengthy and ugly solution. Is there a way to recreate this PH-scale image in Tikz, ideally using few rectangles? (Note: the number labels are not necessary, as they will be replaced with horizontal lines anyway.)


title: Positioning labels on edges of tikz-qtree

text: I'm making a tree in a document with `tikz-qtree` and I managed to make the tree. I've also added labels to the edges, without any problems. However, the labels appear at the top of the edge, i.e. a lot closer to the parent node than the child node. I'd like to have the labels in the middle. How can I accomplish that? I checked out this question on positioning labels, but i can't figure out from the answer what it actually is they did... My code is as followed:               \begin{tikzpicture}[every tree node/.style={draw,circle},        level distance=1.25cm,sibling distance=1cm,        edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}]     \Tree     [.a         \edge node[auto=right] {$[a]$};         [.b             \edge node[auto=right] {$[b]$};            [.1 ]            \edge node[auto=left] {$[b]$};            [.2 ]             ]         \edge node[auto=left] {$[a]$};         [.c              \edge node[auto=right] {$[c]$};             [.3 ]             \edge node[auto=left] {$[c]$};             [.4 ]             ]     ]     \end{tikzpicture}      As provided in the answer, here the actual solution that I used (Note that Christian R.'s solution also works:               \begin{tikzpicture}[every tree node/.style={draw,circle},        level distance=1.25cm,sibling distance=1cm,        edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}]     \Tree     [.a         \edge node[auto=right,pos=.6] {$[a]$};         [.b             \edge node[auto=right,pos=.8] {$[b]$};            [.1 ]            \edge node[auto=left,pos=.8] {$[b]$};            [.2 ]             ]         \edge node[auto=left,pos=.6] {$[a]$};         [.c              \edge node[auto=right,pos=.8] {$[c]$};             [.3 ]             \edge node[auto=left,pos=.8] {$[c]$};             [.4 ]             ]     ]     \end{tikzpicture}      Giving as result: ![enter image description here](http://i.stack.imgur.com/T7YLz.png)


title: KOMA-Script and subcaption: wrong counting

text: I'm getting a to-me strange behavior when using `scrartcl` and `subcaption`. In particular, numbering is doubled for each table with the default option `captions=tableheading`. Here's an image (code at the end) with `captions=tablesignature`, notice how the counter only increase by one if the caption is below the table (I'm not suggesting any causality here): ![KOMA- Script, subcation and captions=tablesignature](http://i.stack.imgur.com/wopwM.png) Here's the output when I switch to `captions=tableheading`: ![KOMA-Script, subcation and captions=tableheading](http://i.stack.imgur.com/KiZvE.png) I looked through the manuals of `KOMA-Script`, `caption` and `subcaption` but I didn't find anything that would suggest this behavior. Is it a feature? It's appreciate any hint on why this occur. Here's the source               % bug(?), default setting for captions     \documentclass[captions=tablesignature]{scrartcl} %% same with scrreprt     % \documentclass[captions=tableheading]{scrartcl} % no bug     \usepackage{subcaption}     \setkomafont{caption}{\LARGE}     \begin{document}     \begin{table}     \caption{table one\label{tab:ind}}     \begin{subtable}[t]{.45\linewidth}     \caption{expenses}     \centering     \begin{tabular}{llr}     \hline     & Konto & \textsc{dkk}\\     \hline     & gnus & 3000\\     \hline     \textsc{(i)} & gnash & 146000\\     \hline     \end{tabular}     \end{subtable}     \qquad     \begin{subtable}[t]{.45\linewidth}     \caption{income}     \centering     \begin{tabular}{llr}     \hline     & Konto & \textsc{dkk}\\     \hline     & gnog & 100000\\     \hline     \textsc{(ii)} & gnus & 100000\\     \hline     \end{tabular}     \end{subtable}     \end{table}          \begin{table}     %% \caption{table two\label{tab:ind2}}     \begin{subtable}[t]{.45\linewidth}     \caption{expenses}     \centering     \begin{tabular}{llr}     \hline     & Konto & \textsc{dkk}\\     \hline     & gnus & 3000\\     \hline     \textsc{(i)} & gnash & 146000\\     \hline     \end{tabular}     \end{subtable}     \qquad     \begin{subtable}[t]{.45\linewidth}     \caption{income}     \centering     \begin{tabular}{llr}     \hline     & Konto & \textsc{dkk}\\     \hline     & gnog & 100000\\     \hline     \textsc{(ii)} & gnus & 100000\\     \hline     \end{tabular}     \end{subtable}     %% could also use \captionbelow     \caption{table two\label{tab:ind2}}     \end{table}          \begin{table}     \caption{table three}     \begin{subtable}[t]{.45\linewidth}     \caption{expenses}     \centering     \begin{tabular}{llr}     \hline     & Konto & \textsc{dkk}\\     \hline     & gnog & 370000\\     \hline     \textsc{(iii)} & gug & 552000\\     \hline     \end{tabular}     \end{subtable}     \qquad     \begin{subtable}[t]{.45\linewidth}     \caption{income\label{tab:ind3}}     \begin{tabular}{llr}     \hline     & Konto & \textsc{dkk}\\     \hline     & gmag & 100000\\     & glog & 218000\\     \hline     \textsc{(iv)} & gnus & 318000\\     \hline     \end{tabular}     \end{subtable}     \end{table}     \end{document}


title: Index not working

text: I'm working on a document. There's an index there, but for some reason when I change things in it it doesn't update the rendered outcome and I can't correct it. I tried erasing the `.ind` file, but then it just render the document without an index at all (instead of re-creating the index as I would have expected). What am I doing wrong? Specifics: there's a defs file that has:               \usepackage{makeidx}     \makeindex      the grand `.tex` file has:               \input{defs}     .     .     .     \printindex      But: when I change, for example `\index{Installing}` to `\index{installing}` the index keeps having "Installing" and not "installing". When I erase the `.ind` file and re-render it (even after ten times of trying) the document simply does not include an index at all and stops before it. There is no new `.ind` file being generated.


title: disabling font size trickery in amsart.cls

text: I know that the ams classes do a lot of font size stuff behind the scenes. Here's my problem: I use some custom fonts for my summation sign, and all that is normally necessary (in the plain old LaTeX `report` or `article` class) is the following line in the preamble:               \newcommand{\newsum}{\mathop{\vcenter{\hbox{\huge$\Sigma$}}}}      (yes, I know that TeX normally has different ones for text and math display) When I typeset a document using `amsart.cls`, I notice that the summation (and product) signs are smaller than they should be, and that the largest size defined is Huge. What do I need to do to get the summation signs in an `amsart.cls` to be the same as a regular LaTeX document? (pruning `amsart.cls` of the font size code is an acceptable answer, but I would rather not have to do something so extreme if there were just one or two lines I could modify)


title: What compilation steps are required for popular utilities and packages

text: I'm suggesting making this a community wiki. It should include packages and utilities that are used very often like   * `makeindex`   * `bibtex`, `biblatex`   * `makeglossaries`   * `synctex`   * ...


title: How can I replace fonts in XeTeX?

text: I'm using XeTeX because I want to use some fonts from my system. The next should work (I think). I have this:               \documentclass[a4paper,11pt,spanish]{article}     \usepackage[margin=2.5cm]{geometry}     \usepackage{babel}          \font\reenie="ReenieBeanie"     \font\cuprum="Cuprum"          \renewcommand{\sffamily}{\reenie}     \renewcommand{\familydefault}{\cuprum}          \begin{document}     ...     \end{document}      The compilation fails, although I get the document with the new font and some weird symbols arround it. What am I doing wrong?


title: Wrapfigure not wrapping a description list

text: I want to write my CV in LaTeX. I would like to wrap the figure of my photo with the text that describe my personal information. I would like to wrapfigure with a description text. I'm using the following code:               \begin{wrapfigure}{r}{1cm}       \includegraphics[height=20mm]{Foto-CV.jpg}     \end{wrapfigure}          \begin{description}       \item[Surname] \emph{my surname}       \item[Name] \emph{my name}       \item[Date of Birth:] aa/bb/cccc      \end{description}       When I do this, LaTeX wraps the figure with the text following the description not with the description itself. Is there something am I missing? Or maybe there is another package better suited for this... Thanks in advance for your help!


title: Unbold subsubsection title

text: I'm rather new to LaTeX, I am trying to get my `article` class document set up so that the `section` font is 16 pt and bold, the `subsection` is 14 pt and bold and the `subsubsection` is 14 pt and **not** bold. I managed to get all the right fonts and font sizes, I just cant get the `subsubsection` to be "unbolded". I heard about the `titlesec` package, but I am unsure of how to use this to unbold my `subsubsection` title. Here is some of my code: (I dont know how to make a minimal example, sorry)               \documentclass[a4paper, 12pt, final]{article}     \usepackage{fancyhdr}     \usepackage{titlesec}     \allsectionsfont{\fontfamily{phv}\selectfont}     \sectionfont{\fontfamily{phv}\fontsize{16pt}{16pt}\selectfont}     \subsectionfont{\fontfamily{phv}\fontsize{14pt}{14pt}\selectfont}     \subsubsectionfont{\fontfamily{phv}\fontsize{14pt}{14pt}\selectfont}


title: Move a figure a bit right

text: I'm trying to place include a pdf figure in a beamer presentation. I'm using               \begin{frame}{foo}     \includegraphics[scale=0.6]{bar}     \end{frame}      the figure is always placed a bit too much to the right. how can I move the figure a bit to the right? A quick & dirty solution is acceptable here.


title: Beamer - undefined control sequence

text: I have been using beamer for some time now with TexnicCenter. Recently I updated operating system to Windows 7, TexnicCenter and also MikTeX (I try to run the code with both MikTex 2.8 and MikTeX 2.9). Every presentation (even the old ones, which were working perfectly before updates) gives me an error warning and the created pdf file has extra slides with just numbers in the top left corner. The basic TeX file:               %%%%%%%%%%%%%%%%%%     \documentclass{beamer}     \usetheme{Warsaw}     %\mode<presentation>     \begin{document}     \begin{frame}{A frame}     abc     \end{frame}     \end{document}      %%%%%%%%%%%%%%%%%%      And the error message:               Undefined control sequence:     \beamer@frameslide ...duration=}\thispdfpagelabel     {\insertframenumber}\xda.....      Any ideas what is wrong? The log file can be found here. The code written above produce just on error message.


title: Image Quality (pgn, jpeg, PDF)

text: At the moment I am writing a document which will include a lot of screenshots. When I save and use the Screenshots as jpeg you can clearly see a loss of image quality. What is the best method for this? Print the screenshot as PDF? But then I would have to trim the pdf for each picture to it's actual size.


title: Displaying selected bibliographic items in the body of the text

text: I have to prepare a `beamer` presentation on the topic of citations and bibliographies. So I should be able to display selected bibliographic items in the slides as examples in most of the slides. I will be having a main `.bib` file. So how can I display selected bibliographic items in arbitrary places in the main body of the text? I am using `biblatex` with the `biblatex-mla` style.


This is related to Herbert's comment in answer for Which one is recommended to get cropped PDF and EPS graphics?. He said I can use `dvips -h hv______.pfb input.dvi` to embed font to the resulting PS file. But I don't know which font file corresponds to the font used by PSTricks grid labels. I have a list of font files with names begin with `h` as follows, but I don't know which one I must use. :-) ![enter image description here](http://i.stack.imgur.com/bABLR.png) Question: What is the file name of Helvetica font used by PSTricks grid labels? Note: I am using Windows 7 with TeX Live 2010 installed and my workflow is `latex->dvips->ps2pdf`. You may need this info.


title: Syncing feature between editor and pdf viewer not working

text: I'm using TeXStudio on Windows 7 with MikTeX. I don't know how to get the "Jump to source" command that appears in the mouse right-click menu, in the pdf viewer, once I compile a *.tex file with Quick Build. This feature is present and works well in TeXStudio under **UBUNTU 12.04**. How can I get it in Windows 7 too?


title: XeLaTeX cannot find bold version of URW Palladio L

text: I have downloaded and installed **URW Palladio L** which has become the free and open source variant of URW Palladio. I am using this font in my LaTeX by using XeLaTeX. XeLaTeX, however, does not find the bold font if it is needed. I have created a minimal example to demonstrate my problem.               \documentclass[11pt, a4paper]{scrreprt}         \usepackage[english]{babel}     \usepackage{fontspec}     \setmainfont{URW Palladio L}          \begin{document}         I am regular URW Palladio L.     \textbf{I am bold URW Palladio L, but XeLaTeX cannot find me.}     {\setmainfont{URW Palladio L Bold} I am bold URW Palladio L, however, I was forced to do that.}         \end{document}      After rendering this looks like so. ![Rendering that shows how the regular font works, the typical bold one is not found, and if the font is selected manually it works again](http://i.stack.imgur.com/AyHCj.png) As you can see, it only works if I select the bold version manually. I get the following error:               LaTeX Font Warning: Font shape `EU1/URWPalladioL(0)/bx/n' undefined     (Font)              using `EU1/URWPalladioL(0)/m/n' instead on input line 8.      While the font is there, it is not found by XeLaTeX. If I execute `fc-list | grep "URW Palladio L"` on my Ubuntu machine I get the following result:               /usr/share/fonts/type1/gsfonts/p052023l.pfb: URW Palladio L:style=Italic     /home/platzhirsch/.local/share/fonts/urw-palladio-l-roman.ttf: URW Palladio L:style=Regular     /usr/share/fonts/type1/gsfonts/p052004l.pfb: URW Palladio L:style=Bold     /usr/share/fonts/type1/gsfonts/p052003l.pfb: URW Palladio L:style=Roman     /usr/share/fonts/type1/gsfonts/p052024l.pfb: URW Palladio L:style=Bold Italic      What could be the reason for that mismatch, respectively what could I do to investigate this?


title: How to go deep and debug the real error?

text: (/usr/share/texlive/texmf-dist/tex/latex/thmtools/unique.sty     Package: unique 2012/05/04 v63     \uniq@channel=\write6     \openout6 = `main.unq'.          )          ! LaTeX Error: Missing \begin{document}.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.334 ]{definition}      How can I go deep to find what the real error is? `\begin{document}` is there in `main.tex`, and the code compiled just fine this morning.


title: Shear transform a "box"

text: Using the `graphicx` package, I can make any arbitrary box rotated using the `\rotatebox{...}{...}` command. Is there a comparable command in any package that lets me shear a box, i.e., producing a kind of general slanting?


title: how to change the word 'preface' in Scientific Workplace 5.5

text: I'm having a problem with the language in SWP 5.5. I am writting a text in spanish, so I am using the `\usepackage[spanish]{babel}` sentence at the beginning of the document and it works perfectly with all the format. However, the word 'Preface' still appears in english after the ToC in the pdf output. Any help is welcome.


title: Macro to check if an element is a member of a list, and access associative lists

text: Inspired from Macro to access a specific member of a list. I want to have a macro implementing the lisp functions `(member item list)` and `(assoc id alist)`. The first checks if an item is contained in a list, the second accesses the value with the given `id` in an associative list. The macro should be able to take a litteral list, or a macro. Usage should be like:               \ifassoc{42}{1,2,3}{if-found}{if-not-found}     \ifassoc{42}{\somelist}{if-found}{if-not-found}     \ifassoc{b}{a/1,b/2,c/3}{\assocresult equals 2}{if-not-found}     \ifassoc{b}{\otherlist}{\assocresult can be used here}{if-not-found}


title: Draw only part of a rectangle in Tikz

text: How can I draw only parts of a rectangle? I want to omit a small part of the rectangle to put some text in. As I'm using various complex rectangles, I do not want to construct own "open rectangles". Is there a way to do this? Maybe similarly to using an arc? * * * ### Currently, I'm using               \begin{tikzpicture}             \draw[rounded corners=3pt] (-5,-5) rectangle (5,5);             \node at (0,5) {text with line in the middle from rectangle};     \end{tikzpicture}      * * * ### I have already tried to clip the rectangle using an arc or leaving out some part of the rectangle using How can I invert a 'clip' selection within TikZ?, but both got too complex, fragile and did not work. There must be an easy way!? * * * ### Update: Since there are other drawings beneath, using filling color beneath the text is no solution. The following example is a simple one, in other pictures there is even more "lively a background" behind the text... ![exemplary rectangles](http://i.stack.imgur.com/EBQYr.jpg)


title: Space above chapter with titlesec

text: The following code gives me some space above the chapter title, that I'd like to avoid:               \documentclass{book}     \usepackage[showframe]{geometry}     \usepackage{titlesec}     \titleformat{\chapter}[frame]       {}       {\thechapter}       {0pt}       {}     \titlespacing*{\chapter}{0cm}{0pt}{0pt}[0pt]               \begin{document}     \chapter{Chapter Title}          Fancy text.          \end{document}      See this image: ![enter image description here](http://i.stack.imgur.com/bUUOy.png) The ellipse (added afterwards) is above the chapter title, but within the text area. When I do the same with section instead of chapter, everything is fine:               \documentclass{book}     \usepackage[showframe]{geometry}     \usepackage{titlesec}     \titleformat{\section}[hang]       {}       {\thesection}       {0pt}       {}     \titlespacing*{\section}{0cm}{0pt}{0pt}[0pt]          \begin{document}     \section{Section Title}          Fancy text.          \end{document}      ![section with titlesec](http://i.stack.imgur.com/RGzuP.png) What makes `\chapter` so special in this respect? Is there a way to avoid the space above the chapter title with the package `titlesec`?


title: How to make the arrow head still look nice for a short curved path?

text: \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-node,multido}     \psset{arcangle=90,nodesep=3pt,arrows=->}     \begin{document}     \multido{\n=3+-.75}{4}{%     \pspicture(3,3)     \rput[bl](0,1){\rnode[t]{A}{A}}     \rput[br](\n,1){\rnode[t]{B}{B}}     \ncarc{A}{B}     \endpspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/JMNnM.gif)


title: \setstretch command does not work

text: In the following example when I typeset, `\setstretch` does not work:               \documentclass{article}     \usepackage{setspace}          \begin{document}     bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla      {\setstretch{5.0}     bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla      }     bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla      \end{document}


title: algorithm2e, function, procedure, \par, error

text: This is fine:               \documentclass{article}     \usepackage[boxed]{algorithm2e}          \begin{document}          \begin{algorithm}         $x \gets x$\;         \caption{Identity}     \end{algorithm}          \end{document}      But this, which uses the predefined environment "function" (p. 4 of the manual)               \documentclass{article}     \usepackage[boxed]{algorithm2e}          \begin{document}          \begin{function}         $x \gets x$\;         \caption{Identity}     \end{function}          \end{document}      produces this error               Runaway argument?     Identity@\endcsname ##1{\FuncSty {\algocf@captname Identity@(}\ArgSty \ETC.     ./sandbox.tex:10: Paragraph ended before \algocf@captname was complete.     <to be read again>                         \par      l.10           ? r     OK, entering \nonstopmode...     ./sandbox.tex:10: Missing \endcsname inserted.     <to be read again>                         \par      l.10           )     ! Emergency stop.      I use TexShop which (I believe) compiles with               simpdftex latex --maxpfb --extratexopts "-file-line-error -synctex=1"      Any help would be appreciate, I am out of ideas.


title: Intersperced Step Numbering

text: Im looking for a package or a way to handle numbering for items arbitrarily spaced through out a document, that can then be referenced later in the document. My specific case is that I have a document of instructions, and I want to label all the measurement steps with a number (one that automatically increments like sections do), so I can reference that number on a page dedicated to recording measurement results. I cannot figure out how to make an environment to handle this because the items are not all together. Example of code.               \newenvironment{zz} %formating for section content, subsections, and their content                    {\list{}{                    \leftmargin=0.3in                    \rightmargin=0in                    \itemindent=0in                    \listparindent=0in                    }                    \item\relax}                    {\endlist}          \newenvironment{yy} %formating for subsubsections and their content                    {\list{}{                    \leftmargin=0in                    \rightmargin=0in                    \itemindent=0in                    \listparindent=0in}                    \item\relax                    }                    {\endlist}          \begin{document}     \HereIsSomeTitleStuff          \section{Instructions}     \begin{zz}     Its time for some background text. Leorium uipsume bla bla bla          \subsection{category A}          Here is some details on it.          More details and instructions          Measurement!!!!          More details          \subsection{category B}          Here is some details on it.          More details and instructions          Measurement!!!!          More details          \subsection {category C}          Here is some details on it.          More details and instructions          Measurement!!!!          More details          \end{zz}          \section{Intermediate part of the document}     \begin{zz}          Bla bla bla classified info goes here.          \end{zz}     \section{report forum}     \begin{zz}          space for first measurement          space for second measurement          space for third measurement     \end{zz}     \end document      See where I have "Measurement!!!!". I want those to be numbered in the final .pdf so I can reference the "step" number in the report form. `{zz}` is for paragraph formatting (indentation, hanging indentation).


title: Enumeration of equations in the double dollar math mode

text: How introduce enumeration of equations in the double dollar math mode (i.e. `$$...$$`)? Or even better, is it possible to make `$$...$$` as a particular math environment, e.g. `equation` or `align`?


title: Print business cards in LaTeX

text: I am trying to print a business card that I develop in LaTeX, using templates that I found on the web and combined to fit my needs. I am using XeLaTeX to compile it, since it uses different fonts. My problem: the template produces a single pdf file with the card, which has dimension 3.5" x 2" inches. I want to print several of this cards on each A4 page. Any suggestions? Thanks. (I am not a LaTeX expert)


title: How can I align entries in the column?

text: I have drawn the following picture in xypic![enter image description here](http://i.stack.imgur.com/I6vLk.png) and I would like to align in the right column the Hom term in the first row as well as direct product guys in the 2nd and 3rd rows exactly together. How can I do this? Because right now the diagram is looking odd. For those interested, here is my code:               \[\begin{xy} \xymatrix@C=5em@R=4em{  \Hom(X,\spec A) \ar[r]^\alpha \ar[d] &  \operatorname{Hom}(A,\Gamma(X,\mathcal{O}_X)) \ar[d] \\          \prod_i \Hom(U_i,A) \ar[r]^-{\beta_i} \ar@<-0.5ex>[d] \ar@<0.5ex>[d] &\prod_i \operatorname{Hom}\Big(A,\Gamma(U_i,\mathcal{O}_X|_{U_i}) \Big)  \ar@<-0.5ex>[d] \ar@<0.5ex>[d] \\          \prod_{i,j} \Hom(U_i \cap U_j,A) \ar[r]^-{\beta_{i,j}} & \prod_{i,j}  \operatorname{Hom}\Big(A,\Gamma(U_i \cap U_j,\mathcal{O}_X|_{U_i\cap U_j}) \Big)   }\end{xy}\]


title: Using xparse-defined command inside table

text: This is a followup to this question, I'm wondering why using my `tline` command below will not compile               \documentclass{article}     \usepackage{xparse,tabu}     \usepackage[table]{xcolor}          \NewDocumentEnvironment {trace} {} {%       \table         \tabu to \linewidth {|@{ }r@{::}l|l|X|}           A & B & C & D \\       }{%         \endtabu       \endtable     }          \newcommand{\commentcell}{\cellcolor[gray]{0.9}}     \newcommand{\linecell}{\cellcolor[gray]{0.75}}     \newcommand{\classcell}{\cellcolor[gray]{0.75}}     \newcommand{\methodcell}{\cellcolor[gray]{0.75}}     \newcommand{\codecell}{\cellcolor[gray]{0.75}}     \NewDocumentCommand \tline { o m m m m } {\linecell #2 & \classcell #3 & \methodcell #4 & \codecell #5 \\ %         \IfNoValueTF {#1}             {} % No comment was provided, skip creating a line             {\hline\multicolumn{4}{ |r| }{\commentcell #1} \\ }         \hline     }          \begin{document}          % This works     \begin{trace}      a & b & c & d     \end{trace}          % This fails with 'Missing Number'. Note that tabu definitely does not like the      % ending \\ caused by the \tline, but I know that I need to use \\ inside my      % tline command to cause a line break, so the question is how do I optionally     % create two rows inside tline without using \\, or is there a command tabu      % prefers to \\. I tried \newline with no luck     \begin{trace}      \tline{a}{b}{c}{d}     \end{trace}          \end{document}


title: autocite + mcite functionality in Biblatex

text: When using Biblatex's `autocite` command, I sometimes come across instances when I need to format the citations as a reference set. There is the option of using `mcite`, but then I lose the high level markup that autocite offers, .e.g. switching between `plain`, `inline` and `superscript`. If I use `autocite` or `autocites`, each reference would get it's own citation in the bibliography. Is there a solution that offers something like what I call `\mautocite` in this example?               \usepackage[backend=biber,mcite,subentry,autocite=plain]{biblatex}     ...     \begin{document}     Some text here\autocite{key1}. More text here\mautocite{set1,*key2,*key3,*key4}.           Cite a subentry\autocite{key3}.          \end{document      In the text, it would appear as > Some text here [1]. More text here [2]. > > Cite a subentry [2b]. And this would give two entries in the bibliography, where the second reference, [2], would be a set. Is there a way to get biblatex to do this?


title: Left align abstract, title and authors

text: I would like to re-align my title, authors and abstract to the left of the document. The example in this question is basically the output I want, but I do not want to use the memoir environment. MWE:               \documentclass[10pt]{article}     \usepackage[]{lipsum}          \usepackage{todonotes} % add [disable] to switch off          \title{Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit}     \date{}     \author{%         Author One$^{1}$, Author2$^{2}$\\         $^{1}$Institution 1, I 1 City, I 1 Country\\         $^{2}$Institution 1, I 1 City, I 1 Country\\         \underline{$^{1}$mail@domain.com}\\         \underline{$^{2}$mail2@domain.com }     }          \pagestyle{empty} % disables page numbers     \thispagestyle{empty} % single page disable page number          \begin{document}     \maketitle     \textbf{Abstract:} \lipsum[3]     \end{document}      gives me: ![This output](http://i.stack.imgur.com/FGi7u.png) but I would prefer it to look more like (in terms of alignment and font size - bonus): ![ideal](http://i.stack.imgur.com/eRQtK.png) I've tried various alignment options, but can't seem to get inside the \maketitle. Any suggestions appreciated, as I haven't done much with regards to forcing overrides on defaults. Would I use renewcommand? I've also tried               \begingroup     \let\center\flushleft     \let\endcenter\endflushleft     \maketitle     \endgroup      but the author section is then odd looking: ![flushleft](http://i.stack.imgur.com/0XNib.png)


title: Sorted output inside a tabular

text: Currently I'm trying to create an environment with several different `\item`-like commands. I want the arguments of the different commands to be ordered by their type. Basically the usage of               \begin{ordered}       \fruit{Apple}       \vegetable{Salad}       \vegetable{Bell Pepper}       \fruit{Strawberry}     \end{ordered}      should result in               Apple     Strawberry     Salad     Bell Pepper      With the following Code this can be done on a basic level               \newenvironment{ordered}{       \newcommand{\fruits}{}       \newcommand{\fruit}[1]{         \begingroup\def\temp{\renewcommand{\fruits}}         \expandafter\expandafter\expandafter\endgroup         \expandafter\temp\expandafter{\fruits{##1\\}}}       \newcommand{\vegetables}{}       \newcommand{\vegetable}[1]{         \begingroup\def\temp{\renewcommand{\vegetables}}         \expandafter\expandafter\expandafter\endgroup         \expandafter\temp\expandafter{\vegetables{##1\\}}}     }{       \fruits       \vegetables     }      However, If I want my ordered environment to open a tabular containing the fruits and vegetables I get problems:               \newenvironment{ordered}{       ...       \begin{tabular}{l}     }{       \fruits       \vegetables       \end{tabular}     }      Results in `! Missing } inserted. <inserted text> } l.31 \end{ordered}` Is there any way to use `\fruits` and `\vegetables` inside the ordered environment inside tabular?


title: Can I not use the align & operator within a \frac?

text: This code is causing LaTeX to throw an error: `Missing } inserted`. It appears to be because I put a `&` inside a `\frac` command (on line 4). I feel as though it should be possible to accomplish my goal.               \begin{align*}     A & + B \\     \frac{A}{C} & + \frac{B}{C} \\     \frac{A & + B}{C}     \end{align*}      Has anyone been frustrated by this before? How did you get around it?


title: Page number and logical pages

text: I used the following piece of code to put a box around each page in my report               \documentclass[12pt,a4paper,oneside,final,times]{report}          \AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{empty}}}      \usepackage{graphicx}     \usepackage[a4paper]{geometry}     \usepackage[english]{babel}     \usepackage{fancyheadings}     \usepackage{fancybox}     \usepackage{setspace}     \usepackage{fixltx2e}     \usepackage{amssymb,amsmath}     \usepackage{pgf}     \usepackage{pgfpages}     %\usepackage{fncychap}          \usepackage{lipsum,titletoc}     \usepackage{titlesec}     \usepackage{simplemargins}     \pgfpagesdeclarelayout{boxed}     {     \edef\pgfpageoptionborder{0pt}     }     {     \pgfpagesphysicalpageoptions     {%     logical pages=1,%     }     \pgfpageslogicalpageoptions{1}     {     border code=\pgfsetlinewidth{2pt}\pgfstroke,%     border shrink=\pgfpageoptionborder,%     resized width=.90\pgfphysicalwidth,%     resized height=.85\pgfphysicalheight,%     center=\pgfpoint{.53\pgfphysicalwidth}{.5\pgfphysicalheight}%     }%     }          \pgfpagesuselayout{boxed}     \pagestyle{fancy}      but this is causing my page numbers to be different from that of the toc. To be specific, page numbers in toc=page number on page +1. Any solution for this, please? The code is borrowed from this answer by Andrew Stacey


title: Toptesi class and sequential page numbering

text: I'm working on a final dissertation and I've been using the **_toptesi_** class provided by our university. The problem is that I wanted to manually add the glossaries package. Now, whilst I managed to insert properly the acronyms list in the right spot (both in the document and the table of contents) by adding this code to the **_toptesi.sty_** file:                \def\acronimi{%      \iffrontmatter\else\frontmattertrue\fi      \if@openright\cleardoublepage\else\clearpage\fi      \printglossary[type=\acronymtype]      \pagenumbering{roman}      \global\@topnum\z@      \@afterindentfalse      \addcontentsline{toc}{chapter}{Acronyms}            }        after the default code:               \def\frontmatter{\clearpage\ps@plain\pagenumbering{roman}%         \numeriromanitrue\frontmattertrue\@openrightfalse}     \def\mainmatter{\if@twoside\@openrighttrue\fi         \clearpage\ps@headings\pagenumbering{arabic}%         \numeriromanifalse\frontmatterfalse}     \AtBeginDocument{\frontmatter}     \figurespagefalse     \tablespagefalse     \def\sommario{%      \iffrontmatter\else\frontmattertrue\fi      \if@openright\cleardoublepage\else\clearpage\fi      \global\@topnum\z@      \@afterindentfalse      \@schapter{\summaryname}%      \addcontentsline{toc}{chapter}{\summaryname}%             }     \def\ringraziamenti{%      \iffrontmatter\else\frontmattertrue\fi      \if@openright\cleardoublepage\else\clearpage\fi      \global\@topnum\z@      \@afterindentfalse      \@schapter{\acknowledgename}%      \addcontentsline{toc}{chapter}{\acknowledgename}%             }          \renewcommand\chapter{%       \iffrontmatter\mainmatter\fi       \if@openright\cleardoublepage\else\clearpage\fi       \thispagestyle{plain}%       \global\@topnum\z@       \@afterindentfalse       \secdef\@chapter\@schapter}     \renewcommand\part{%       \iffrontmatter\mainmatter\fi       \if@openright\cleardoublepage\else\clearpage\fi       \thispagestyle{empty}%       \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi       \null\vfil       \secdef\@part\@spart}          \renewcommand\listoffigures{%         \if@twocolumn\@restonecoltrue\onecolumn\else\@restonecolfalse\fi         \if@openright\cleardoublepage\else\clearpage\fi         \global\@topnum\z@         \@afterindentfalse         \@schapter{\listfigurename}         \@mkboth{\listfigurename}{\listfigurename}%         \@starttoc{lof}%         \clearpage         \if@restonecol\twocolumn\fi         }     \renewcommand\listoftables{%         \if@twocolumn\@restonecoltrue\onecolumn\else\@restonecolfalse\fi         \if@openright\cleardoublepage\else\clearpage\fi         \global\@topnum\z@         \@afterindentfalse         \@schapter{\listtablename}%         \@mkboth{\listtablename}{\listtablename}%         \@starttoc{lot}%         \clearpage         \if@restonecol\twocolumn\fi         }       \renewcommand\tableofcontents{%      \if@twocolumn\@restonecoltrue\onecolumn\else\@restonecolfalse\fi      \if@openright\cleardoublepage\else\clearpage\fi      \global\@topnum\z@      \@afterindentfalse      \@schapter{\contentsname}%      \@starttoc{toc}%      \clearpage      \if@restonecol\twocolumn\fi         }     \def\indici{%      \iffrontmatter\else\frontmattertrue\fi                    \iftablespage                     {\addvspace{10pt}                     \let\saveaddvspace=\addvspace                     \def\addvspace##1{}                     \listoftables                     \let\addvspace=\saveaddvspace}                     \addcontentsline{toc}{chapter}{List of Tables}%             \fi             \iffigurespage                     {\addvspace{10pt}                     \let\saveaddvspace=\addvspace                     \def\addvspace##1{}                     \listoffigures                     \let\addvspace=\saveaddvspace}                     \addcontentsline{toc}{chapter}{List of Figures}%             \fi             \tableofcontents     %          \addcontentsline{toc}{chapter}{Index}%            }      it completely messes up the page numbering. Firstly, the acronyms page numbers are displayed as arabic instead of roman numbers (apart from the last page of the acronyms list which, surprisingly, exhibits a roman number). Secondly, the page numbering sequentiality is lost. Edit: here is a file package with all the necessary files to simulate this error Click here to download a working example ![Table of contents](http://i.stack.imgur.com/F4nu4.png) ![Passage from acknowledgements to acronyms](http://i.stack.imgur.com/GEH4t.png) ![Last acronym page with the return of the roman numbers](http://i.stack.imgur.com/izKJI.png)


title: Problem with url link-`~` is replaced by %257E

text: I am adding a url in my document using `\url{}`. The link, however doesn't lead to where it is suppossed to lead. My code is               \documentclass{article}     \usepackage{hyperref}     \begin{document}             \url{http://www.phy.duke.edu/~rgb/Class/phy319/phy319/node75.html}     \end{document}      The output is ![enter image description here](http://i.stack.imgur.com/x4a9G.png) If I click on it it takes me to http://www.phy.duke.edu/%257Ergb/Class/phy319/phy319/node75.html Notice that `~` is replaced by `%257E`. Any ideas on why is this happening or how could it be fixed?


title: How to identify the counter of Equation, Theorem, and Section

text: I asked before how to identify the counter of Equation and Theorem. A simple answer suggested there is               \newtheorem{thm}[equation]{Theorem}      A simple variation allows me to identify the Theorem and Section counter:               \newtheorem{thm}[section]{Theorem}      Is there a way to identify all three counters, Equation, Theorem, and Section?


title: How do I encode foreign characters so that they are searchable in the resultant PDF file?

text: This may be a PDF problem rather than a LaTeX problem, but as it involves pdfLaTeX output I'm hoping I won't get my wrist slapped too hard. I'm creating a bibliography, and inevitably some of the authors' names have accented or other foreign characters in them. I'd like to be able to search the PDF file for these authors, but I'm having problems with some of the characters. As an example, I've created a simple .tex file as follows:               \documentclass{article}     \usepackage[utf8]{inputenc}     \begin{document}     Some foreign characters: öøäéüæåñ     \end{document}      I can search successfully in the resultant PDF file for ö, ä, é, ü, å and ñ, either using those specific characters or an unaccented o, a, e, u or n. However, the PDF file will not find the ø or æ characters whether I copy and paste them into the search box from another programme, or whether I use `Alt`+`1``5``5` or `Alt`+`1``4``5`. The problem is compounded by the fact that some journals use a simple 'o' for ø or 'ae' for æ, so I'd like to get a search 'hit' for ø using either ø or o, and similarly a search hit for æ using either æ or ae. Is any of this remotely possible, or am I trying to be too clever?


title: Beamer template from pdf

text: I am trying to find out what is the beamer template that is being used in the following lecture slides. It looks very minimalistic and nice. Any help is appreciated