title: "Missing \endcsname inserted" and other errors when trying to align title section

text: I want to somehow align section headings: unnumbered should be centerized; numbered should be aligned left and indented. I'm just trying to compile an example               \documentclass[12pt,a4paper,oneside]{article}     \usepackage[left=35mm,right=15mm,top=2cm,bottom=2cm,bindingoffset=0cm]{geometry}     \usepackage[utf8x]{inputenc}     \usepackage[russian]{babel}          \usepackage{cmap}          \usepackage{makeidx}     \makeindex          \usepackage{indentfirst}     \setlength{\parindent}{1.25cm}          \usepackage{setspace}     \onehalfspacing          \usepackage{titlesec}          \titleformat{\section*}{\normalfont\Large\bfseries\justifyheading}{\thesection}{1em}{}          \begin{document}         \section*{РЕФЕРАТ}     \end{document}      But I'm getting               ! Missing \endcsname inserted.     ! LaTeX Error: Missing \begin{document}.     ! Extra \endcsname.     ! Argument of \ttl@assign@i has an extra }.     ! Paragraph ended before \ttl@assign@i was complete.     ! Package keyval Error: \let \reserved@d =*\def \par .     ! Missing \endcsname inserted.     ! Missing number, treated as zero.     ! Illegal unit of measure (pt inserted).     ! Undefined control sequence.     ! Missing number, treated as zero.     ! Illegal unit of measure (pt inserted).     ! Extra \endcsname.     ! Undefined control sequence.     ! Too many }'s.     ! LaTeX Error: Command \CYRA unavailable in encoding OT1.      And - yes - is there a way to ONLY align sections not redefining a whole style? Should I use `\newcommand` instead and insert it in EVERY section?


title: Guidelines for constructing a table with few cells, but lot of description and math

text: As the title says, how to construct a table similar to the one shown below. ![enter image description here](http://i.stack.imgur.com/TmdIG.png) Note that I don't want anyone to construct this table for me. What I want to know is a general set of guidelines to use when I have lot of text and math environments inside table cells. The usual stuff is not working for me. I am not bothered about producing the colored lines and stuff. As of now, this is MWE of what I am trying to accomplish.               \documentclass{article}     \usepackage{amsmath}     \begin{document}           \begin{table*}[t]       \centering       \begin{tabular}{cc}     1sT Row 1st Cell Starts here I have math in this \\ $\begin{aligned}     c^{\star} \, = \, &\max_{{u}} \min_{k} {u}^H\left({D}\right){u} \nonumber \\      & s.t.~~{u}^H{u}=1    \end{aligned}$ & See references [1] for applications.      It also occurs in problems similar to [2],[3].   \\           2ND ROW 1st Cell STARTS HERE.\\ Optimizaton problems of the form     & Again some stuff here. But the problem is, as you can see the table is not neatly aligned.       \end{tabular}       \caption{List of Problems}       \label{tab:1}     \end{table*}           \end{document}      See how untidy the table looks!! ![enter image description here](http://i.stack.imgur.com/NaQTE.png)


title: How can I use multline within an align environment?

text: I've been looking around and I know that there are possibilities to mimic the `multline` environment within the `gather` or `align` environments, or by using `multlined` but not in a way that I like, I think. If I understood well, the `multline` environment has two features (for a two line equation):   * automatically put the upper part on the far left and the lower part on the far right   * automatically number the second line only Is it true that none of the features listed above are offered by one of the aligning solutions mentioned at the beginning of my message when two or more separate equations are involved? What I need could be coded as follows:               \begin{align}     &\begin{multline}      equation 1 part 1 \\ equation 1 part 2      \end{multline}\\     &\begin{multline}      equation 2 part 1 \\ equation 2 part 2      \end{multline}     \end{align}


title: Why isn't LaTeX indenting my paragraphs?

text: I am trying to get latex to indent the first line of each paragraph, but whatever I try I can't seem to get it to work as I would expect reading the documentation. I expect that since I am using the article documentclass and not setting `parindent` to 0, that the first line of each paragraph should be indented automatically. I even tried explicitly adding a \indent to the beginning of my paragraph and still nothing (see picture below). Does anyone know what's going on here? ![First paragraph not indented](http://i.stack.imgur.com/7sh92.png) Here's the code that produced the above output:               \documentclass[12pt,titlepage]{article}     \usepackage{url,graphicx,tabularx,array,enumitem,multirow}     \usepackage[fleqn]{amsmath}     \usepackage[top=.8in, bottom=1.2in]{geometry}     %\setlength{\parskip}{1ex} %--skip lines between paragraphs     %\setlength{\mathindent}{0pt}          \renewcommand{\title}[1]{\raggedright{\textbf{\LARGE #1}\\}}     \renewcommand{\line}{\begin{tabularx}{\textwidth}{X>{\raggedleft}X}\hline\\\end{tabularx}\\[-0.5cm]}     \newcommand{\leftright}[2]{\begin{tabularx}{\textwidth}{X>{\raggedleft}X}#1%     & #2\\\end{tabularx}\\[-0.5cm]}          \begin{document}     \begin{titlepage}     \vspace*{8cm}     \title{EEE64: Lab 1}     \line     \leftright{\today}{\textbf{Nicholas Winterer} \\ 210001755 \\ Lab Section 04 \\ Friday 1:00 pm}     \end{titlepage}          \tableofcontents          \pagebreak          \section*{Introduction}          \indent This first lab was intented to familiarize us with the EEE64 lab equipment: the Digilent Spartan-3E development board, solderless breadboards, LEDs, SIP resistor networks, and the 7400 series of logic ICs. We learned about each of the basic logic gates (the buffer, NOT gate, AND gate, OR gate, XOR gate, NAND gate, NOR gate, and XNOR gate) and constructed a truth table for each by simulating all possible permutations of inputs in \emph{logic.ly} and recording the output. We also learned how to hook up real logic gates (in the 7400 ICs) and interface them to real hardware such as switches and LEDs. Finally, we used our breadboards to construct a circuit where we interfaced a single pair of switches to four different logic gates, each displaying its output on a seperate LED


title: Tikz: How to combine orthogonal edge syntax with coordinate calculation?

text: I'm trying to combine the syntax for orthogonal edges `(p |- q)` with the syntax for calculation relative coordinates `($ (a) + (1,0) $)`. Example:               \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) + (1,0) $) |- node2.north);      However, I get an error:               Package pgf Error: No shape named ($ (node1 is known.      There is an obvious work-around in this case, but for educational purpose I'd like to understand why this syntax does not work, and how to solve the problem in general? Intuitively the documentation would suggest that I can simply combine these two syntaxes. **Update -- MWE:**               \documentclass{report}          \usepackage{tikz}     \usetikzlibrary{calc}          \begin{document}     \begin{tikzpicture}     \node at (0,  0) (node1) {Hello};     \node at (0, -2) (node2) {World};          % working:     \draw ($ (node1.south) + (1,0) $) to ( node1.south |- node2.north);          % not working:     \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) + (1,0) $) |- node2.north);          \end{tikzpicture}     \end{document}


title: Formatting dates “day month year” with biblatex

text: **What is the correct way to have “day month year” formatting in biblatex?** Given this document:               \documentclass{article}     \usepackage[backend=biber,dateabbrev=false]{biblatex}          \begin{filecontents}{references.bib}     @book{Book,       title = {This is a Title},       author = {Author, Some},       location = {The City},       publisher = {Publisher},       date = 2005,       month = feb,       day = 14,     }     \end{filecontents}     \addbibresource{references.bib}          \begin{document}     Citing \cite{Book}.     \printbibliography     \end{document}      The bibliography reads:   [1] Some Author. This is a Title. The City: Publisher, February 14, 2005. However, I would like:   [1] Some Author. This is a Title. The City: Publisher, 14 February 2005. Can I do that without fiddling with `\printdate`?   The manual mentions that the date format is language-specific, yet I do want to continue in American English, just with a “day month year” style in the bibliography.


title: Resources for PSTricks examples

text: What resources for PSTricks examples do you know? Please feel free to add nice work of your own here as well! Background: I am constantly looking for PSTricks examples to get ideas how to solve my problems, how to visualize things or what possibilities I have using PSTricks.


title: Conditional loading of tocloft causes errors

text: Looking for a way to customise a table of contents, I came across this recommendation to use `tocloft`. As per the suggestion (and the documentation), I've put a conditional in place which tests for the presence of `subfig` and loads the package appropriately. This Minimum [non-]Working Example:               \documentclass{article}     \@ifpackageloaded{subfig}         {\usepackage[titles,subfigure]{tocloft}}         {\usepackage[titles]{tocloft}}          \begin{document}         \tableofcontents         \section{Section 1}         Hello 1         \section{Section 2}         Hello 2         \section{Section 3}     \end{document}      Produces several errors including:               ./tocloft.tex:3: You can't use `\spacefactor' in vertical mode.     \@->\spacefactor      Removing the call to `\@ifpackageloaded` and explicitly specifying       and               Missing character: There is no è in font cmex10!     /usr/local/texlive/2011/texmf-dist/tex/latex/tocloft/tocloft.sty:35: You can't      use `\spacefactor' in vertical mode.     \@->\spacefactor       Looking around for a solution, the TeX FAQ suggests this is the result of the package using "... an internal command without taking 'precautions'". Explicitly calling either `\usepackage[titles,subfigure]{tocloft}` or `\usepackage[titles]{tocloft}` works as advertised and is how I'm currently working around the problem. I would, however, like to implement the conditional loading as a safety precaution. In an effort to learn more about (La)TeX internals, I'd like to know what's the root cause of this error. Is this a problem specific to my (MacTeX 2011) installation, or can others reproduce it? Also, what can be done to fix it in this particular incidence? Maybe the package's current maintainer could provide some insight into this.


title: sortname for editor messes up crossrefed entry

text: In the .bib-file there are two relevant entries -- the crucial point is `sortname`, for (by using `prefix=true`) I want to print **De** Jong, Irene J. F., René Nünlist und Angus M. Bowie but sort the collection without the "von"-part of de Jong's name: **J** ohnstone, Mark A. `book` De **J** ong, Irene J. F., Renee Nünlist und Angus M. Bowie `collection` **K** amtekar, Rachana `article`                 @Collection{JongNuenlistBowie:Narrators,        editor =  {Irene J. F. de Jong AND Ren{\'e} N{\"u}nlist AND                   Angus M. Bowie},        sortname = {Jong, Irene J. F. de AND Rene{\'e} N{\"u}nlist AND                   Angus M. Bowie},        gender =  {pp},        title =   {Narrators, Narratees, and Narratives in Ancient                   Greek Literature},        booktitle = {Narrators, Narratees, and Narratives in Ancient                     Greek Literature},        shorttitle = {Narrators},        language =  {english},        year =    2004,        titleaddon = {Studies in Ancient Greek Narrative, Volume~1},        booktitleaddon = {Studies in Ancient Greek Narrative, Volume~1},        series =  {Mnemosyne. Supplementum},        number =  257,        publisher = {Brill},        location ={Leiden AND Boston}     }          @InCollection{Morgan:PlatoNarrative,      author =    {Kathryn A. Morgan},      gender =    {sf},      title =     {Plato},      language =  {english},      crossref =  {JongNuenlistBowie:Narrators},      editor =    {Irene J. F. de Jong AND Ren{\'e} N{\"u}nlist AND                   Angus M. Bowie},      year  =     2004,      booktitle = {Narrators, Narratees, and Narratives in Ancient                   Greek Literature},      booktitleaddon = {Studies in Ancient Greek Narrative, Volume~1},      series =    {Mnemosyne. Supplementum},      number =    257,      publisher = {Brill},      location =  {Leiden AND Boston},      chapter =   28,      pages =     {357-76}     }      Now, biblatex uses the `sortname` of the `collection` also for the names of the author in a `crossref`\- ( _not_ `xref`-)entry and prints `Morgan, Kathryn A. 2004 »Plato«, Englisch, in de Jong u. a. (2004), Kap. 28, S. 357–76` after the De Jong-Collection and before the article by Kamtekar. **J** ohnstone, Mark A. `book` De **J** ong, Irene J. F., René Nünlist und Angus M. Bowie `collection` **M** organ, Kathryn A. `InCollection` **K** amtekar, Rachana `article` How can I use sortname for the editors but not for the authors in a collection? BTW: I use tlmgr with the latest updates, biber, and biblatex with the following option:               \usepackage[style=philosophy-modern, sortlocale=de, sorting=nyvt,             babel=hyphen, alldates=terse,             annotation=true, useprefix=true,             pagetracker=true, volnumformat=default, datezeros=false,              pagetracker=spread, bibencoding=auto,              publocformat= loccolonpub, backend=biber,             citetracker = constrict, ibidtracker=constrict,              opcittracker=constrict, idemtracker=constrict,              relatedformat=parens]{biblatex}


title: Separate font for chapter and text

text: I need to use a serif font - eg Times (New Roman) or Palatino - for the main text and a sans serif font - eg Helvetica or Arial - for headings and labelling diagrams, etc. How do I get this format ? In my class file, I have this:               \RequirePackage{sectsty,caption}     \ifthenelse{\boolean{sansheadings}}     {\allsectionsfont{\sffamily}      \renewcommand{\@chapterfont}{\sffamily}      \renewcommand{\captionfont}{\sffamily}      \renewcommand{\headfootstyle}{\normalsize\sffamily}}     {}      Ideally I want to use Tahoma or Verdana (sans serif) for chapter titles and serif fonts (Charter or Palatino) in the remaining text. How do I get this?


title: Twoside margin width. How to take into account binding?

text: I came here to understand why latex had this "odd" habit to set the outer margin wider than the inner in two sided documents. As many have asked before me, I expected the inner margin to be wider to take into account the binding space. From the answer to those questions I discovere that the outer margin should be wider that the inner and that the inner margin does NOT takes into account the binding space (since it's not universal but depends on the binding type). NOW… I need to give the print shop a PDF version of the thesis ready to be printed. When I went there today he told me that usually the inner margin is wider to take into account the binding and to be equal to the outer once it's bond. I accept the "outer margin is wider" standard, but I need to add a bit of binding space to my pages. How do I do it? It's the first time I print a two sided document. If I told something wrong feel free to teach me how to setup (maybe also outside of latex) correctly a two sided document. Thank you very much


title: how to use boldface (from another package) while using ebgaramond font

text: I wanted to use the ebgaramond font and I can get it to work using 'latex' however, there is no boldface font available with this package. Is it possible to set up the LaTeX document such that it will get the boldfaced font from some other package (eg. times or euler, etc.)? Many thanks!


title: Underscore not showing up in lstlisting

text: I have the following code:               \begin{lstlisting}         path/usearch -cluster_otus inp.fasta -otu_radius_pct distInPercent         -otus outGroups.fasta -fastaout outpUSEARCH.fasta     \end{lstlisting}      The underscore in `otu_radius_pct` doesn't get printed at all if I set `basicstyle=\ttfamily`. If I do not use `basicstyle=\ttfamily`, though, the underscore shows up and everything is fine. What could be the reason for that?


title: Making Tikz automatic node placement work

text: I have found some tikz code that uses a development build (past 2.10) and I am trying to get it to work (I sense that I am doing something rather silly). For what is it worth, I confirmed that the correct version of tikz is being used via the method suggested in the second answer to this question. I am attempting to use the following code:                 \documentclass[12pt]{article}       \usepackage{tikz}       \usetikzlibrary{positioning,graphs}       \begin{document}       \begin{tikzpicture}           \begin{graph} [circular placement,branch right,nodes={draw,circle},edges=  {>=latex}] {     "0,0,0,0" <->         { "1,0,0,0"<->             {"1,1,0,0"<->              {"1,1,1,0"<->"1,1,1,1","1,1,0,0"}             ,"1,0,1,0"<->                 {"1,1,1,0","1,0,1,1"<->"1,1,1,1"},             "1,0,0,1"<->                 {"1,1,0,1","1,0,1,1"}             },         "0,1,0,0"<->             {"1,1,0,0","0,1,1,0","0,1,0,1"<->                 {"1,1,0,1","0,1,1,1"}             },         ,"0,0,1,0"<->             {"1,0,1,0","0,1,1,0","0,0,1,1"}<->                 {"1,0,1,1","0,1,1,1"<->"1,1,1,1"},         ,"0,0,0,1"<->             {"1,0,0,1","0,1,0,1","0,0,1,1"}         }     };     \end{graph}     \end{tikzpicture}     \end{document}      It generates the following graph: ![enter image description here](http://i.stack.imgur.com/wAVLx.png) I am looking for this: ![enter image description here](http://i.stack.imgur.com/qEVyK.png) Is there a way to generate that using the automatic node positioning from tikz? If not, how can it be done with the "older" syntax? **Note:** I am using the 2012-11-04 build of tikz if that matters.


title: Missing \endgroup inserted error in a table

text: I am getting 'Missing \endgroup inserted morekeywords={class,run}]' on line 16 while running the tex. I am using TexStudio. How can I solve that problem?               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{listings}          \begin{document}          \clearpage          \begin{tabular}{|p{.4\textwidth}|p{.4\textwidth}|}          \begin{lstlisting}[basicstyle={\scriptsize\ttfamily},     identifierstyle={\color{black}},     tabsize=2,language={[AspectJ]Java},     numbersep=8pt,numbers=left,xleftmargin=0.5cm,frame=tlbr,framesep=2pt,framerule=0pt,     morekeywords={class,run}]          class PrintHelloThread ext Thread {         void run(Dummy x) {             out.println("Hello world")         }     }     class X ext ProxifiedObject {         PrintHelloThread thread         void main(X x) {             x.thread := new PrintHelloThread;             x.thread.start(0);             x.thread.join(0);         }     }     \end{lstlisting}     &     \begin{lstlisting}[     basicstyle={\scriptsize\ttfamily},     identifierstyle={\color{black}},     tabsize=2,     language={[AspectJ]Java},     numbersep=8pt,     numbers=left,     xleftmargin=0.5cm,frame=tlbr,framesep=2pt,framerule=0pt,     morekeywords ={class,run}     ]     class PrintHelloThread ext Thread {         void run(Dummy x) {             out.println("Hello world")         }     }     class X ext ProxifiedObject {         PrintHelloThread thread         void main(X x) {             x.thread := new PrintHelloThread;             x.thread.start(0);             x.thread.join(0);         }     }     \\     \end{lstlisting}     \end{tabular}     \end{document}


title: TeXShop, BibDesk, URLs not shown and extra citation numbers?

text: I am using TeXShop and BibDesk on Mac and even though I add "webpage" entries to BibDesk, they don't show up in TeXShop.![added entry](http://i.stack.imgur.com/vjgw8.png) ![fail](http://i.stack.imgur.com/IyyXj.png) Also, I get these extra citation numbers at the end of my document: ![why](http://i.stack.imgur.com/Zyerk.png) when I don't have anything after the references. ![enter image description here](http://i.stack.imgur.com/T4vBZ.png) What is wrong? I have the correct packages, I think: ![enter image description here](http://i.stack.imgur.com/SjKwr.png) EDIT: I was able to get rid of the extra reference numbers by adding a `\nocite{*}` and deleting the references. FME:               \documentclass{llncs}     \usepackage{graphicx}     \usepackage{booktabs}     \usepackage{url}          \begin{document}          \nocite{*}     \bibliographystyle{plain}     \bibliography{PANs}          \end{document}      and in the PANs.bib file, I have               @article{nfcforum,         Author = {NFC Forum},         Date-Added = {2014-05-05 12:12:03 +0000},         Date-Modified = {2014-05-05 13:39:56 +0000},         Lastchecked = {5 May 2014},         Title = {What is NFC?},         Url = {http://nfc-forum.org/what-is-nfc/},         Urldate = {5 May 2014},         Year = {2014}}


title: Draw arc from end of one arc with different center

text: I need to draw an arc from A to dashed vertical line taking C2 as center. First arc center is C1.               \documentclass[10pt,a4paper]{scrbook}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}     \node at (0:0){C1};     \node at (90:1){C2};          \draw[dashed] (0:0) -- (90:6);          \draw (90:2) arc (100:-130:2)node{A};          \end{tikzpicture}          \end{document}


title: What do the first two numbers in the pdfborder option of hyperref do?

text: for example,`\hypersetup{colorlinks=false,frenchlinks=true,pdfborder={0 0 2}}` makes the border 2 pixels, but what do the first two numbers do? I tried several values, but could see no difference.


title: How to preserve files downloaded by install-tl

text: Which is the best way to preserve files downloaded by install-tl (e.g. install-tl-20140417) to skip their download the next time install-tl is invoked and told to download from a mirror (this might include invokation with a command line argument, linking directories, etc.)? It would be nice if different versions of packages are preserved (very similar to the apt cache). I don't care about the space used/wasted by old versions on the local system, but about the internet traffic. The download of newest versions of the packages should occur automatically during installation though. EDIT 2: http://www.tug.org/texlive/doc/install-tl.html doesn't say anything about storage of downloaded binaries. I assume they are moved from `/tmp/xzy/` to the installation destination as they are. One option might be using `-in- place` from the SVN repository. EDIT 1: Currently the invokation of `install-tl` with `--help` is buggy (at least in my case after a failed previous installation). I reported this to tex-live@tug.org (see http://tug.org/pipermail/tex-live/2014-May/035206.html).


title: Why \@ifnextchar doesn't work correctly within of a unicodechar definition?

text: Consider the following code:               \documentclass{article}          \usepackage{amsmath}     \usepackage{newunicodechar}          \makeatletter         \newunicodechar{∑}{\@ifnextchar_{\sum}{\@ifnextchar^{\sum}{\Sigma}}}     \makeatother          \begin{document}              Incorrect ({\bf why?}):         \[             ∑_1^{100} \qquad             ∑_{100}^1 \qquad             ∑          \]              Correct:          \makeatletter         \[             \@ifnextchar_{\sum}{\@ifnextchar^{\sum}{\Sigma}}_1^{100} \qquad             \@ifnextchar_{\sum}{\@ifnextchar^{\sum}{\Sigma}}^{100}_1 \qquad             \@ifnextchar_{\sum}{\@ifnextchar^{\sum}{\Sigma}}         \]         \makeatother          \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/6Rtjy.png) When I use a unicode symbol "∑", the output symbol is invisible, however, when I write explicitly the code of the definition of the unicode symbol "∑", the output is correctly. **Why? Any solution?**


title: Making matrix elements larger vertically

text: Currently I have a matrix like this:               \documentclass{article}          \usepackage{amsmath}          \begin{document}          \begin{equation*}       \nabla\Psi \times \mathbf{\hat{\theta}} / r       =       \begin{pmatrix}         \frac{\partial \Psi}{\partial r} \\         0 \\         \frac{\partial \Psi}{\partial z} \\       \end{pmatrix}       \times        \begin{pmatrix}         0   \\         1/r \\         0   \\       \end{pmatrix}     \end{equation*}          \end{document}      and this is what it looks like: ![enter image description here](http://i.stack.imgur.com/Wgm1k.png) The matrix elements seem to be compressed vertically slightly because they are partial differentiations and therefore quite large. Is there any way to increase the size of the matrix elements vertically so they don't seem as compressed? I have looked around online.


title: How to exceed left margin with longtable

text: I'm trying to make a longtable that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the `adjustwidth` environment the `longtabu` does not align correctly. The left margin stays fixed and the right margin gets out of the page. This in contrast, if I do the exact same thing to make a `tabu` (instead of `longtabu`), it works perfectly. I think using the adjustwidth is the best way to go, but I can't manage to get it working. Second possibility: I've found a solution using the `fullwidth` package. That package does the trick on small `longtable`s, but freezes when I'm trying to do it on my big longtable. The command `\setlength\LTleft{-2cm}` didn't work as well. The final option I tried was to use `geometry`. But that changes the margin of the whole page thus making a page break which I'm not interested in. The code I used for this was               \newgeometry{left=1.2cm}     \begin{longtable}     long table stuff     \end{longtable}     \restoregeometry      Here's an example of what I want contra what I get               \documentclass[a4paper]{article}     \usepackage{longtable}     \usepackage{chngpage}     \usepackage{lipsum}     \usepackage{tabu}          \begin{document}     \section{This is the original textwidth.}     \lipsum[1]          \section{This is the width I need for my longtabu}     \begin{adjustwidth}{-1in}{-1in}     \begin{tabu} to \linewidth {*{13}{|X[l]} |}     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     \end{tabu}     \end{adjustwidth}          \section{This is what happens}     \begin{adjustwidth}{-1in}{-1in}     \begin{longtabu} to \linewidth {*{13}{|X[l]} |}     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 \\     \end{longtabu}     \end{adjustwidth}          \end{document}


title: How to change the border of mdframed?

text: I want to change the border color of the mdframe box. By default it take black.               \documentclass{article}     \usepackage{xcolor}     \usepackage{mdframed}     \newtheorem{mdtheorem}{Theorem}      \newenvironment{theorem}%      {\begin{mdframed}[backgroundcolor=lightgray]\begin{mdtheorem}}%      {\end{mdtheorem}\end{mdframed}}      \begin{document}      \begin{theorem}     Sample     \end{theorem}      \end{document}         1. My Default output is, ![enter image description here](http://i.stack.imgur.com/33R6L.png)   2. My Expected output is, ![enter image description here](http://i.stack.imgur.com/CtVI2.png) Any one suggest me the correct. I am new to LaTeX.


title: Change node distance using a macro and include a label to the background next to the nodes

text: * * * the picture doesn't fit onto an A4 page. So what I would like to change/add is:   * the node distance   * the font size   * a vertical text which groups nodes together   * a number infront of each node as the "step number"   * a bigger distance between the "groups"    * a better way to code maybe as a macro, so when I have to include a node I don't need to change all the numbers * * * This is how far I got but the distance between the first and second node is different to the rest. I also used in my original document:               \documentclass[12pt, oneside,openright]{mpreport}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{textcomp}     \usepackage[scaled=0.9]{helvet}     \usepackage{ngerman}     \usepackage[babel,german=quotes]{csquotes}      but for the picture I had to use `\"u` for ü and so on... * * * ## Here's the code:               \documentclass{article}          \usepackage{tikz}          \usetikzlibrary{positioning,shadows,arrows,backgrounds,fit}          \begin{document}          \begin{figure}          \begin{tikzpicture}         [schritt/.style=            {draw, fill=gray!10,    text width=22em, minimum width=25em, minimum height=1.5em, drop shadow, rounded corners, font=\small},          pfeil/.style=              {<-,shorten <=1pt,>=stealth',semithick},          hintergrund/.style=    {draw, dashed, fill=gray!40,rounded corners}]              \newcommand{\beschr}[1]{\hfill\textit{#1}};                  %   Bauteil einlegen             \node   (1)         [schritt]                           {Frg 1\beschr{Freigabe Einfahrt Bauteil}};                       \node   (2)         [schritt]   [below=1]       {MZ 11 V\beschr{Sauger ein}}                 edge                [pfeil]     (1);                                                                                \node   (3)         [schritt]   [below=2]       {Frg 2\beschr{Freigabe Ausfahrt Bauteil}}                 edge                [pfeil]     (2);                 %   Arbeitsstellung             \node (4)           [schritt]   [below=3]       {MZ 12 V\beschr{Spanner Innenblech vorw\"arts}}                 edge                [pfeil]     (3);             \node (5)           [schritt]   [below=4]       {M1 \& M2 V\beschr{B\"ugel M1 \& M2 vorw\"arts}}                 edge                [pfeil]     (4);             \node (6)           [schritt]   [below=5]       {M3 \& M6 V\beschr{B\"ugel M3 \& M6 vorw\"arts}}                 edge                [pfeil]     (5);             \node (7)           [schritt]   [below=6]       {M4 \& M5 V\beschr{B\"ugel M4 \& M5 vorw\"arts}}                 edge                [pfeil]     (6);             \node (8)           [schritt]   [below=7]       {MZ 13 V\beschr{Klemmeinheit l\"osen}}                 edge                [pfeil]     (7);             \node (9)           [schritt]   [below=8]       {MZ 14 V\beschr{Niederhalteraufnahme vorw\"arts}}                 edge                [pfeil]     (8);             \node (10)      [schritt]   [below=9]       {MZ 15-19 V\beschr{Niederhalteraufnahmen vorw\"arts}}                 edge                [pfeil]     (9);             \node (11)      [schritt]   [below=10]  {MZ 21-22 V\beschr{Niederhalterzustellungen vorw\"arts}}                 edge                [pfeil]     (10);             \node (12)      [schritt]   [below=11]  {MZ 23-24 V\beschr{Niederhalterzustellungen vorw\"arts}}                 edge                [pfeil]     (11);             \node (13)      [schritt]   [below=12]  {MZ 20 V\beschr{Sperrventil vorw\"arts}}                 edge                [pfeil]     (12);                  %   Falzvorgang             \node (14)      [schritt]   [below=13]  {M7 Pos 1\beschr{Hauptantrieb zur Vorfalzposition}}                 edge                [pfeil]     (13);             \node (15)      [schritt]   [below=14]  {M7 Pos 4\beschr{Hauptantrieb zur Grundstellung}}                 edge                [pfeil]     (14);             \node (16)      [schritt]   [below=15]  {MZ 25-30 V\beschr{Vorfalzantriebe vorw\"arts}}                 edge                [pfeil]     (15);             \node (17)      [schritt]   [below=16]  {M7 Pos 3\beschr{Hauptantrieb zur Falzposition}}                 edge                [pfeil]     (16);                  %   Grundstellung             \node (18)      [schritt]   [below=17]  {M7 Pos 4\beschr{Hauptantrieb zur Grundstellung}}                 edge                [pfeil]     (17);             \node (19)      [schritt]   [below=18]  {MZ 25-30 R\beschr{Vorfalzantriebe r\"uckw\"arts}}                 edge                [pfeil]     (18);             \node (20)      [schritt]   [below=19]  {MZ 23-24 R\beschr{Niederhalterzustellungen r\"uckw\"arts}}                 edge                [pfeil]     (19);             \node (21)      [schritt]   [below=20]  {MZ 21-22 R\beschr{Niederhalterzustellungen r\"uckw\"arts}}                 edge                [pfeil]     (20);             \node (22)      [schritt]   [below=21]  {MZ 20 V\beschr{Sperrventil r\"uckw\"arts}}                 edge                [pfeil]     (21);             \node (23)      [schritt]   [below=22]  {MZ 15-19 V\beschr{Niederhalteraufnahmen r\"uckw\"arts}}                 edge                [pfeil]     (22);             \node (24)      [schritt]   [below=23]  {MZ 14 V\beschr{Niederhalteraufnahme r\"uckw\"arts}}                 edge                [pfeil]     (23);             \node (25)      [schritt]   [below=24]  {MZ 13 V\beschr{Klemmeinheit r\"uckw\"arts}}                 edge                [pfeil]     (24);             \node (26)      [schritt]   [below=25]  {M4 \& M5 V\beschr{B\"ugel M4 \& M5 r\"uckw\"arts}}                 edge                [pfeil]     (25);             \node (27)      [schritt]   [below=26]  {M3 \& M6 V\beschr{B\"ugel M3 \& M6 r\"uckw\"arts}}                 edge                [pfeil]     (26);             \node (28)      [schritt]   [below=27]  {M1 \& M2 V\beschr{B\"ugel M1 \& M2 r\"uckw\"arts}}                 edge                [pfeil]     (27);             \node (29)      [schritt]   [below=28]  {MZ 12 V\beschr{Spanner Innenblech r\"uckw\"arts}}                 edge                [pfeil]     (28);                  %   Bauteilentnahme             \node   (30)        [schritt]   [below=29]      {Frg 1\beschr{Freigabe Einfahrt Bauteilentnahme}};                 edge                [pfeil]     (29);             \node   (31)        [schritt]   [below=30]      {MZ 11 V\beschr{Sauger ein}}                 edge                [pfeil]     (30);                                                                                \node   (32)        [schritt]   [below=31]      {Frg 2\beschr{Freigabe Ausfahrt Bauteilentnahme}};                  %   Hintergrund             \begin{pgfonlayer}{background}                 \node   [hintergrund, fit=(1)(2)(3), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Bauteil einlegen}] {};                 \node   [hintergrund, fit=(4)(5)(6)(7)(8)(9)(10)(11)(12)(13), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Falze in Arbeitsstellung}] {};                 \node   [hintergrund, fit=(14)(15)(16)(17), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Bauteil einlegen}] {};                 \node   [hintergrund, fit=(18)(19)(20)(21)(22)(23)(24)(25)(26)(27)(28)(29), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Falze in Grundstellung}] {};                 \node   [hintergrund, fit=(30)(31)(32), label={[rotate=90,xshift=1.5cm,yshift=0.5cm]left:Bauteilentnahme}] {};             \end{pgfonlayer}          \end{tikzpicture}     \caption{Prozessablauf}     \label{abb:Prozessablauf}     \end{figure}               \end{document}


title: how to produce output with Texnic center 2.02?

text: I installed TXCSetup_2.02Stable_x64 and basic miktex-2.9.5105-x64 in my computer. The installation was successful. But when I tried to build a project I already made with my previous version TXCSetup_1StableRC1 with output pdf, it didn't show the output instead it says "Cannot execute the command." Could anyone please help me with this problem. I don't know what to do.


title: wrong font variant (very swashy) in XeTeX and LibreOffice but not in Font Viewer

text: I have acquired an otf font (Aphrodite Pro) to print some wedding invitations; don't be alarmed, it is quite swashy as it is. But, what i get using the default variant are the contextuals of that font on all positions in a word. It is also the variant I see, when I type stuff in Libre Office writer. Going through the variants doesn't change anything. This problem is not really xelatex related, though my invitations are written in xelatex. You can have a look at the font here: Aphrodite Pro **Font Forge** : when looking at the otf file using FontForge I see that the character I get when I type 'r' is not the one deposited at U+0072 but one that is located at the bottom of the FontForge page without a unicode number, it is labelled as "r_bye" and has a hex code of 0x1004c. _So my question_ : How can I make the font bahave and display sensible characters? (Maybe I use the words "font variant" incorrectly, because i see the contextuals and not a variant) An example:                \documentclass[a6paper,pagesize]{scrartcl}      \usepackage{fontspec}      \usepackage{microtype}      \usepackage{polyglossia}      \usepackage{graphicx}      \usepackage{amsmath}      \usepackage[usenames]{xcolor}      %\addtokomafont{section}{\rmfamily}           \setmainfont{Aphrodite Pro}      %\setmainfont{Linux Libertine O}           \setdefaultlanguage{german}           \begin{document}      \pagestyle{empty}      \vspace*{-3cm}      \hspace*{-3cm}{\color{gray}\fontsize{140}{1em}\selectfont\&}      \vspace*{-1cm}           \section*{Dear \$\{person\}}           Text abcdefg RRRR rrrr           \end{document}      What I get is: ![Result converted from pdf](http://i.stack.imgur.com/5B3G9.png)


title: Curly brackets in table cell for language manual

text: I try to make a table for language manual. Could anybody help me to manage curly brackets in the cells of a table? Like this: ![enter image description here](http://i.stack.imgur.com/vEhKF.jpg) I tried to do it like here but I could't manage it.


title: caption for listings in margin

text: The `floatrow` package enables one to put in the margin captions for figures and tables, but it seems there is missing the possibility of doing the same for the `lstlisting` environment from `listings` package. A workaround is to put the `lstlisting` in a figure (see sample). But this doesn't allow us to keep the page breaking for long code listings. Is there a way to put `lstlisting` captions in the margin? I've looked inside the `floatrow` package to see if I can extend it, but I don't know how.               \documentclass{memoir}     \usepackage{listings}     \usepackage{floatrow}     \floatsetup[figure]{margins=hangright,capposition=beside,capbesideposition={top,left},floatwidth=\textwidth}          \begin{document}     \begin{figure}       \begin{lstlisting}              This is a test       \end{lstlisting}       \caption{This is a test.}     \end{figure}     \end{document}      The `caption` package has a way to put `Fig X:` inside the margin (see below), but putting the third argument within `llap` doesn't seem to work.               \DeclareCaptionFormat{llap}{\llap{#1#2}#3\par}     \captionsetup{lstlisting}{format=llap,labelsep=quad,singlelinecheck=no}


title: Biber: get it working, cite-keys but no bibliography

text: After searching for a few days now I'm getting closer but I still can't get a bibliography (APA) in my Latex document. I'm using biber in texworks on mac os 10.8.4. After running pdflatex - biber - pdflatex, I get no bibliography in the resulting pdf, only the cite-keys are reproduced. This is a short version of my document:               \documentclass[12pt, a4paper]{book}     \usepackage{fancyhdr, graphicx, color}     \usepackage[dutch]{babel}     \usepackage[backend=biber, style=apa, sortcites=true]{biblatex}                          \DeclareLanguageMapping{dutch}{dutch-apa}            \addbibresource{database-nl-orig.bib}     \usepackage{csquotes}             \begin{document}     loewie \textcite{PoA}     \printbibliography     \end{document}      This is my .bib file:               @online{PoA,     author = {{Port~of~Antwerp}},     title = {De haven natuurlijker: beeldbank},     date = {2007-03-15},     url = {http://www.havenvanantwerpen.be/beeldbank},     urldate = {2010-09-20},     }      Does anyone see anything wrong in my code? What could be the problem? I also can't find a .blg file in the folder. This is what biber tells me:               Use of uninitialized value $bcf in substitution (s///) at script/biber-darwin line 235.     Use of uninitialized value $filename in -e at /var/folders     /42/cj12320j365bfxqs05tt4wjr0000gn/T/par-6c6f657769656d6168696575/cache-    2169e3f0bedf1bef28697a8d0c819f68e31dab72/inc/lib/Biber/Utils.pm line 116.     Use of uninitialized value $filename in concatenation (.) or string at /var/folder/42/cj12320j365bfxqs05tt4wjr0000gn/T/par-6c6f657769656d6168696575/cache-2169e3f0bedf1bef28697a8d0c819f68e31dab72/inc/lib/Biber/Utils.pm line 137.     INFO - This is Biber 1.6     INFO - Logfile is '.blg'     Use of uninitialized value $filename in concatenation (.) or string at /var/folders/42/cj12320j365bfxqs05tt4wjr0000gn/T/par-6c6f657769656d6168696575/cache- 2169e3f0bedf1bef28697a8d0c819f68e31dab72/inc/lib/Biber/Utils.pm line 146.     Entity: line 1: parser error : Document is empty     %%     ^     INFO - Reading '/usr/local/texlive/2012/texmf-dist/tex/latex/tools/.tex'


title: introduce a line break in a long equation

text: \documentclass[12pt,twoside,a4paper,openright]{report}     \usepackage[portuguese]{babel}     \usepackage[utf8]{inputenc}     \usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead, headheight=15.8pt]{geometry}     \usepackage{mathtools}     \usepackage{amsmath}                    \begin{document}     \begin{equation}     \label{equacao_silica}     \binom{\text{Quantidade}}{\text{Sílica (\% (w/w))}}       = 100 - \left[\binom{\text{Perda de Massa}}{\text{(580\degree C-900\degree C)}          \times \frac{100,1}{44}} - \binom{\text{Perda de Massa}}{\text{(30\degree C-200\degree C)}}          -  \binom{\text{\% Resíduos}}{\text{GCC}} \right]\\     \end{equation}          \end{document}      How I can introduce a line break in this equation ?


title: Making beamerarticle display 2 slides from the same frame

text: I'm trying to display 2 different slides in the from the same frame in beamer article format. Here's an example:               \documentclass{article}     \usepackage{beamerarticle}     \usepackage[english]{babel}          \begin{document}     \mode*          \begin{frame}[label=test]     \only<1->{Slide 1}     \only<2->{Slide 2}     \only<3->{Slide 3}     \only<4->{Slide 4}     \end{frame}               \againframe<beamer:0| article:3>{test}          \end{document}      Is there a simple way to get "Slide 1" shown and then "Slide 1 Slide 2 Slide 3" shown in beamer article format?


title: Change \headheight in Beamer, Copenhagen

text: I want to increase the \headheight in Beamer, Copenhagen. I tried, `\setlength{\headheight}{10in}`, did not seem to work.


title: Problem with option border of class standalone

text: I tested a MWE given in question Standalone producing cropped / truncated formulae. Following the documentation (page 9) I used the class option `border={left right bottom top}` with `left=right=top=0pt` and `bottom=20pt` (20pt only to show the effect here). With the version 2012/09/15 v1.1b of `standalone` and the following MWE I get no 20 pt margin at the bottom of my picture. What is the problem? MWE:               \documentclass[%     % border=1pt       border={0pt 0pt 20pt 0pt} %left right bottom top     ]{standalone}% http://ctan.org/pkg/standalone     \begin{document}     $2^5 = x_5 \times y^8$     \end{document}


title: How to use color in `caption` package?

text: I am using `caption` package to customize captions in my thesis. My current code is:               \usepackage[width=0.6\textwidth ,font={small, sf,it},labelfont=bf,     labelsep=endash, format=plain,labelsep=period]{caption}      but I'd like to add color to caption label. Something like image below: ![Caption](http://img24.ir/uploads/1365940937491.png)


title: Why doesn't Pandoc convert citations correctly from Markdown to LaTeX?

text: Consider the following markdown fragment:               Connecting these native implementations to the Python world is enabled     by the [Cython](http://cython.org/) toolchain  [@behnel2011cython].       I use pandoc to convert from markdown to LaTeX:               pandoc --chapters ../Source/Chapters/Content.md -o ../Example/Chapters/Content.tex      This is converted to LaTeX and produces the following output:               Connecting these native implementations to the Python world is enabled     by the \href{http://cython.org/}{Cython} toolchain~     {[}@behnel2011cython{]}.       Why is the citation not handled appropriately? It should be easy to simply convert it to `~\cite{behnel2011cython}`. Did I forget to give pandoc some flag for this?


title: Lyx - Appendix problem

text: If I add an appendix at the end of my document, for example after the Bibliography, by choosing Chapter, Lyx will display Appendix A, what I do not want, as I have only one Appendice and I want to display Appendice (without the A). So, I select Chapter*, then I type Appendice, and in the PDF, the title Bibliography will appear in top of all pages of the Appendice.


title: How to make logarithmic axis "readable"?

text: How can I make a logarithmic axis more readable? I have many plots that look similar to this one: ![enter image description here](http://i.stack.imgur.com/QpRPT.png) The problem is in the y axis. Anyone can imagine what 10^5 represents, or 10^6. It is not so easy with the other yticks. I can not use a linear axis, since if I do so the difference between the functions represented is not visible anymore. What feature of pgfplots could I use to make LaTeX write 1.58e6 instead of 10^6.2, 3.98e5 instead of 10^6.2, etc? Here is a MWE:               \documentclass[]{article}          \usepackage{graphicx}     \usepackage{pgfplots, pgfplotstable, filecontents}     \pgfplotsset{compat=newest,width=13.5cm}          \begin{document}          \begin{figure}[h]     \centering     \begin{tikzpicture}     \begin{axis}[     xmode=log,     ymode=log,      log basis x={2},      log basis y={10},      ytickten={4.6,4.8,...,7},     ymajorgrids,     height=7cm,width=14.5cm,                                     xlabel = xLabel,     ylabel = yLabel,     y label style={at={(axis description cs:-0.07,.5)},anchor=south},     xticklabel style={text height=1.5ex}, % To make sure the text labels are nicely aligned     xtick=data     ]      \pgfplotstableread{mwe.dat} \tableRAW     \foreach \p in {6,10,14,18,22,30,34,38,42,46} {\addplot table [y index = \p] from \tableRAW;}     \end{axis}      \end{tikzpicture}     \caption{Caption}     \end{figure}          \end{document}      The mwe.dat has the following content, for instance:               ProblemSize N[512]_[128]__T N[512]_[128]_O  N[512]_[128]_B  N[512]_[128]_C  N[1024]_[128]_E_T   N[1024]_[128]_O N[1024]_[128]_B N[1024]_[128]_C N[2048]_[128]_E_T   N[2048]_[128]_O N[2048]_[128]_B N[2048]_[128]_C N[4096]_[128]_E_T   N[4096]_[128]_O N[4096]_[128]_B N[4096]_[128]_C N[8192]_[128]_E_T   N[8192]_[128]_O N[8192]_[128]_B N[8192]_[128]_C N[16384]_[128]_E_T  N[16384]_[128]_O    N[16384]_[128]_B    N[16384]_[128]_C    N[128]_[128]_E_T    N[128]_[128]_O  N[128]_[128]_B  N[128]_[128]_C  N[256]_[128]_E_T    N[256]_[128]_O  N[256]_[128]_B  N[256]_[128]_C  N[512]_[128]_E_T    N[512]_[128]_O  N[512]_[128]_B  N[512]_[128]_C  N[1024]_[128]_E_T   N[1024]_[128]_ON[1024]_[128]_B  N[1024]_[128]_C N[2048]_[128]_E_T   N[2048]_[128]_O N[2048]_[128]_B N[2048]_[128]_C N[4096]_[128]_E_T   N[4096]_[128]_O N[4096]_[128]_B N[4096]_[128]_C     256 0.97228 1.02851e+06 21.4983 0.03109 0.97389 1.02681e+06 22.4082 0.04458 0.85456 1.17019e+06 20.3105 0.06449 0.6619  1.5108e+06  13.0575 0.0108  0.67471 1.48212e+06 13.1551 0.17767 0.67388 1.48394e+06 13.39530.01469  0.65627 1.52376e+06 15.5989 0.05612 0.72857 1.37255e+06 13.5689 0.01491 0.92109 1.08567e+06 11.6451 0.04136 0.99086 1.00922e+06 8.48264 0.03864 0.98233 1.01799e+06 8.44543 0.03509 0.98701 1.01316e+06 8.539090.03407     512 1.07073 933942  24.8693 0.11453 1.03132 969631  25.0253 0.00683 0.99106 1.00902e+06 23.7109 0.0312  0.96503 1.03624e+06 20.9663 0.04173 0.86419 1.15715e+06 13.4905 0.02369 0.87189 1.14693e+06 14.0297 0.00568 0.724331.38059e+06  15.1526 0.04204 0.90113 1.10972e+06 13.4288 0.09596 1.11974 893064  16.1055 0.01536 1.50563 664173  11.7053 0.01135 1.77749 562591  8.597   0.14894 1.78091 561510  8.66193 0.02654     1024    1.11973 893072  25.9047 0.01732 1.10779 902698  26.5268 0.00224 1.08851 918687  24.1258 0.11408 1.12235 890987  24.4282 0.00397 1.20571 829386  21.3686 0.19148 1.26128 792845  14.4341 0.03939 0.84159 1.18823e+06 16.65320.0232   1.02138 979067  13.2784 0.15388 1.43999 694449  15.0922 0.14563 1.76639 566126  13.4751 0.0054  2.69765 370693  13.3329 0.38205 3.36242 297404  8.93883 0.14005     2048    1.19361 837794  27.6662 0.01022 1.1495  869943  27.6528 0.056   1.14584 872722  23.7522 0.01878 1.25679 795677  24.428  0.122   1.34877 741416  24.415  0.02426 1.65895 602790  22.1781 0.13764 0.91282 1.09551e+06 18.54360.00182  1.12933 885480  14.0755 0.01297 1.65897 602783  14.5747 0.05213 2.40369 416027  13.1842 0.11423 3.15759 316697  13.4233 0.02508 5.05221 197933  11.7823 0.01389     4096    1.32566 754341  28.9796 0.18622 1.23941 806835  29.674  0.00617 1.2321  811622  27.3659 0.04763 1.34405 744019  23.8127 0.0095  1.59149 628341  24.1053 0.0044  2.24884 444673  25.0658 0.14431 1.00368 996333  20.6166 0.006351.28812  776325  15.1566 0.01053 1.83921 543711  16.1332 0.01447 2.81505 355233  12.8139 0.03186 4.40357 227088  12.8754 0.01846 5.91251 169132  13.439  0.02888     8192    1.65467 604350  36.9892 0.03403 1.39874 714929  31.556  0.0343  1.33747 747680  28.1655 0.0432  1.4603  684790  24.3148 0.06718 1.77654 562891  23.5358 0.06063 2.62917 380348  26.2985 0.03223 1.27283 785650  25.8913 0.021211.42514  701685  17.9831 0.0196  1.99235 501919  18.3988 0.02879 3.10529 322031  13.4503 0.04553 5.23139 191153  13.1992 0.25768 8.41015 118903  13.3096 0.33291     16384   1.78045 561655  36.5921 0.09871 1.69525 589883  38.6196 0.10832 1.47453 678182  29.9039 0.23807 1.57552 634711  28.4095 0.0993  1.94293 514686  24.4086 0.05438 2.90079 344733  26.786  0.09028 1.44748 690855  28.3414 0.075061.68019  595170  23.6952 0.08263 2.31482 431999  20.5626 0.45375 3.31934 301264  14.6222 0.19763 5.76202 173550  13.5533 0.2047  9.99136 100086  13.3392 0.45562     32768   1.88014 531875  37.0423 0.36639 1.87151 534327  41.2633 0.59267 1.77574 563145  35.9772 0.3406  1.73167 577477  29.444  0.32351 2.11832 472072  25.8418 0.34864 3.08201 324463  27.9683 0.38472 1.69134 591247  31.7095 0.315451.90899  523837  27.6826 0.47064 2.63369 379695  26.4278 0.30212 3.51509 284487  16.8641 0.40678 6.12792 163187  15.0831 0.49327 11.227  89070   17.5178 0.50585     65536   1.99541 501150  39.2376 0.97965 2.11309 473240  38.9739 0.85585 1.92737 518841  38.8971 0.79071 2.04267 489555  35.6165 0.7208  2.23172 448084  29.9107 0.81979 3.26429 306345  30.0811 0.81524 1.75929 568411  33.4318 0.81611.98472   503849  28.562  0.70891 2.78507 359057  28.1771 0.98133 4.11666 242915  21.5141 0.73537 6.37485 156866  16.3491 0.49165 11.8903 84101   18.9686 0.70702     131072  2.21894 450665  41.3931 3.56014 2.2088  452734  40.4699 3.17495 2.23575 447277  38.7189 2.43021 2.2738  439792  37.1943 2.34785 2.60879 383319  35.4009 1.99836 3.34132 299282  31.831  1.76457 2.00429 498929  34.285  2.492292.22912  448607  26.9544 2.33051 3.07903 324777  31.6439 2.24561 4.42664 225904  23.1791 2.27318 6.79527 147161  20.4874 2.02689 12.8124 78049   27.7722 2.37168     262144  2.62945 380307  41.5732 9.95812 2.56275 390205  43.4339 8.8167  2.49363 401021  40.9032 5.81198 2.57011 389088  37.4565 4.92038 2.89366 345583  36.5665 4.47881 3.75893 266033  37.8185 4.3511  2.16293 462335  34.2238 7.096932.43386  410869  30.4305 5.94276 3.23885 308751  33.8836 5.24693 4.52934 220782  22.8621 4.84698 7.71618 129597  23.1346 4.65529 13.0328 76729   24.1635 4.74844     524288  3.17954 314510  49.4433 19.7045 2.71247 368667  43.4528 15.9456 2.77835 359925  40.6722 13.4277 2.9079  343890  39.2715 10.2547 3.25927 306817  36.9935 9.09368 4.1093  243350  40.1475 8.65571 2.37853 420427  32.8675 14.46572.69804  370639  29.5104 13.7364 3.46947 288228  33.5227 12.5016 4.91092 203627  23.8064 9.78272 8.04862 124244  23.5891 9.04645 13.1739 75907   24.3282 9.25118     1.04858e+06 3.41797 292571  50.2035 25.2329 3.18887 313590  50.3884 25.2264 3.00674 332586  41.8184 26.6924 3.2022  312285  40.5863 27.495  3.6855  271333  38.4739 28.9153 4.63748 215634  40.7343 29.5919 2.78837 358632  43.1375 21.04533.02078  331040  32.7593 23.5182 3.85434 259447  34.108  25.8087 5.19604 192454  25.6156 27.7838 8.22863 121526  24.0932 25.1218 14.8478 67350   24.4182 29.1166     2.09715e+06 3.74751 266843  51.689  31.0401 3.53613 282795  52.208  32.766  3.30274 302778  42.156  37.4918 3.55384 281385  41.3582 45.5133 4.09515 244191  38.5735 54.6245 5.27339 189631  40.4359 60.7951 3.22626 309956  48.8833 25.41263.42453  292010  35.6319 30.445  4.07128 245622  32.6033 37.1324 5.38778 185605  26.4322 41.9166 8.59486 116348  24.7167 38.584  15.1875 65843   22.5894 49.4032     4.1943e+06  3.94776 253308  51.6652 42.4162 3.84623 259994  53.76   36.6812 3.84898 259809  52.4399 44.5894 3.94163 253702  42.1453 56.8887 4.54418 220061  39.9494 72.8677 5.69155 175699  42.5106 85.9424 3.4007  294057  46.91   31.63   3.68056 271697  40.7103 35.6234 4.6235  216286  46.854  43.6437 5.54189 180443  28.4925 52.7722 8.77397 113973  26.8077 48.7628 15.3429 65176   24.394  62.0138     8.38861e+06 4.45432 224501  53.2226 51.6686 4.32302 231319  54.5407 45.1471 4.30989 232024  53.5507 49.7948 4.54465 220038  49.0005 65.3684 5.11556 195482  41.4991 83.9613 6.23269 160444  42.6107 101.735 3.67634 272009  53.5884 36.32053.92525  254760  41.8977 39.4851 4.86561 205524  44.886  48.8251 6.20439 161176  33.1251 59.0889 8.97228 111454  27.3635 55.796  15.6522 63888   24.7134 69.1079


title: A dotted circle: control size of dots and distance between them

text: My MWE is:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{calc}          \begin{document}          \begin{tikzpicture}     \draw[red,dotted] (0,0) circle (2);     \draw[black,thick] (5,0) circle (2);     \end{tikzpicture}     % <<dashed>> can be used in place of <<dotted>>     % %<<\draw (a,b) \polygon{c}{d}>> can be used in place of <<\draw[black,thick] (a,b) circle (d)>>          \end{document}      How do I control the size of dots or dashes on the first circle (make them larger or thicker maybe?) and how do I also control the distance between the evenly spaced dots, that is, how dots are spaced around the circle, without manually placing nodes or arcs of a definite size in a circle formation? How do I do this in a way that also works for polygons? Also, for future reference, how to I replicate this in pstricks, not just tikz? [P.S.:-- I hope the question is not a duplicate but I have not been able to find an identical question.]


title: page margins not respected after A3 page insertion in A4 document

text: I am inserting an A3 page in an A4 document but the margins are not respected (and neither does a page number appear), after the A3 page. Test code below:               \documentclass[11pt,twoside,a4paper,pagesize]{report}     \usepackage{nextpage}     \usepackage{afterpage}     \usepackage[margin=2cm]{geometry}     \usepackage{comment}     \usepackage{typearea}     \usepackage{lipsum}     \usepackage[absolute]{textpos}          \begin{document}          \lipsum          \afterpage{ % Insert after the current page     \clearpage          \KOMAoptions{paper=a3}      \recalctypearea          A3 stuff          \clearpage     \KOMAoptions{paper=A4,pagesize}     \recalctypearea     }          \clearpage              \lipsum          \end{document}


title: Center longtable parts vertically on page

text: I am using `\longtable` to split tables into two parts which are displayed on two pages in a double page layout. I do not let `longtable` break the table, but instead use `\newpage` on a line where it makes sense My "normal" tables are centered vertically on the page. In contrast, the `longtable` parts begin at the upper margin so that there is some space left under them. I would like to add space before the table (including the caption) and before the second part of the table. Preferably, I would be able to add vertical space before both parts in a way that their respective \toprules align horizontally.


title: package gentium-tug: cannot find font in map file(s)

text: Trying the new package gentium-tug with the file               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{gentium}               \begin{document}     Olá     \end{document}      I get this               Cannot find font ec-gentiumplus-regular in map file(s).      My questions are:   1. Using tlmgr for installing the package shouldn't take care of updating the “map” files with the information about the new font?   2. Can I update the "map" files with updmap-sys --enable Map=gentium.map (I'm not sure about the name of the map file)?


title: What are the effects of an empty group, {}?

text: In order to have a syntactic space after a no-argument command, one is taught to delimit the command token with an empty group (`{}`), like this: `\somecommand{} more LaTeX material`. However an empty group isn't without meaning: in math mode, `\({} + a\)` is typeset differently from `\( + a\)`. Also, `\(\somecommand{} + a\)` and `\(\somecommand + a\)` are interestingly different. (Insert for example `\empty` or `\allowbreak` for `\somecommand` here.) (An explanatory note: Spaces don't matter in math mode, so since in `\(\somecommand + a\)` the `\somecommand` eats up the following space, I would have expected the two to yield identical results. An explanation for why these two are different is given here.) This makes me wonder about what else one might need to pay attention to when using empty groups. **What are the effects of an empty group and where might one use one?**


title: How to debug error message from luaotfload-database.lua

text: I am beginning to think it was a really bad idea to update to TeXLive 2013. Since this update almost none of my old documents compile any longer. Does anyone have any idea what LuaLaTeX is trying to do when giving this error:               ! LuaTeX error ...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:890:      attempt to perform arithmetic on field '?' (a nil value).     <to be read again>      \f      l.133      _i.e,_ where do I start the debugging process this time?


title: How to make a thick line connect completely with the side of a box in TikZ?

text: In my figure, I have a thick line that connects with the side of a box. However, the line does not connect completely with the box. Also, the line covers part of the box (which I don't want). So, I want the lower edge of the line to connect completely with the box, and prevent the upper edge of the line to cover part of the box. It probably says how to deal with this in the PGF manual but I can't find it (and since I don't know the terminology for this, I can't search for it either). ![enter image description here](http://i.stack.imgur.com/95jzx.png) Here is minimal example for the figure above.               \documentclass{standalone}          \usepackage{tikz}          \begin{document}     \begin{tikzpicture}       \node [draw, minimum size = 1cm] (box) {};       \draw [line width = 5pt] (2cm, 2cm) -- (box.east);     \end{tikzpicture}     \end{document}


title: How to add the word "Figure" to the list of figures?

text: I have a problem when trying to add the word "Figure" before the actual number in the list of figures. I guess it will be the same for all languages, since the langauge setting will make it in my language automatically. But what I have so far is only the number like the upper line, and it should be like the second line (which was poorly made with paint, just in case you wonder). ![enter image description here](http://i.stack.imgur.com/LLGRF.png) Here is the code I am using for figures so far:               \begin{figure}[ht]     \centering     \includegraphics[width=1.0\textwidth]{imageName.png}     \caption[CaptionText]{CaptionText\footnotemark.}     \end{figure}     \footnotetext{CaptionTextn. Available under \url{www.nowhere.com}, seen on Date.}


title: How can I include Mathematica code in a document?

text: I want to include some Mathematica code in a LaTeX document. It's along the lines of `f[a_,b_]:=a^2+b^2+4b^3+25a*b*c ;` However, when I build my PDF, the `_` and `^` always render. Is there a way to get it to just show up as it shows above?


title: Pgfplots: tick labels with zerofill except for 0 tick

text: The standard `pgfplots` notation for tick labels is without final zeros when no needed but the standard one for scientific papers is to have all ticks with the same number of digits after the dot a part for the 0 that is often print simply as `0`. I am able to set the same precision for all ticks but I would like to print the `0` simply as `0` and not for example `0.0`, how can I do that? The first image is the `pgfplots` default, the second one is what I am able to do and the third is what I desire to do. ![enter image description here](http://i.stack.imgur.com/WBG1A.png) **Minimal code for the second image**               \documentclass{article}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}    [ymin=0, ymax=2,                 xmin=0.2, xmax=2,                 y tick label style={                     /pgf/number format/fixed,                     /pgf/number format/fixed zerofill,                     /pgf/number format/precision=1},                 ]         \addplot[only marks] {x};     \end{axis}     \end{tikzpicture}     \end{document}


title: Drawing of Euro Symbol Using PSTricks

text: I have drawn the following figure, showing a Euro symbol:               % http://upload.wikimedia.org/wikipedia/commons/5/57/Euro_Construction.svg          \documentclass{article}          \usepackage{pstricks}     \usepackage{expl3}          \ExplSyntaxOn       \cs_new_eq:NN \calc \fp_eval:n     \ExplSyntaxOff               \begin{document}          \psset{       unit = 0.8,       linejoin = 1     }          \begin{pspicture}(-7.5,-6)(4.26,6)      \pscustom[        fillstyle = solid,        fillcolor = yellow!70      ]{       \psline(\calc{6*sin(2*acot(6/5*sec(2/9*pi)+tan(2/9*pi)))},               \calc{6*cos(2*acot(6/5*sec(2/9*pi)+tan(2/9*pi)))})%              (\calc{5*cos(2/9*pi)},\calc{5*sin(2/9*pi)})       \psarc(0,0){5}{40}{\calc{90+round(acosd(3/10),9)}}       \psline(\calc{-sqrt(91)/2},1.5)%              (\calc{75/2*cos(2/9*pi)/(6+5*sin(2/9*pi))},1.5)%              (\calc{65/2*cos(2/9*pi)/(6+5*sin(2/9*pi))},0.5)%              (\calc{-3/2*sqrt(11)},0.5)       \psarc(0,0){5}%              {\calc{ 90+round(acosd(1/10),9)}}%              {\calc{270-round(acosd(1/10),9)}}       \psline(\calc{-3/2*sqrt(11)},-0.5)%              (\calc{55/2*cos(2/9*pi)/(6+5*sin(2/9*pi))},-0.5)%              (\calc{45/2*cos(2/9*pi)/(6+5*sin(2/9*pi))},-1.5)%              (\calc{-sqrt(91)/2},-1.5)       \psarc(0,0){5}{\calc{270-round(acosd(3/10),9)}}{320}       \psline(\calc{ 5*cos(2/9*pi)},\calc{-5*sin(2/9*pi)})%              (\calc{ 5*cos(2/9*pi)},\calc{-sqrt(36-25*cos(2/9*pi)^2)})       \psarcn(0,0){6}%              {\calc{270+round(atand(5*cos(2/9*pi)/sqrt(36-25*cos(2/9*pi)^2)),9)}}%              {\calc{270-round(acosd(1/4),9)}}       \psline(\calc{-6*cos(1/4)},-1.5)%              (-7.5,-1.5)%              (\calc{5*cos(2/9*pi)/(6+5*sin(2/9*pi))-15/2},-0.5)%              (\calc{-6*cos(1/12)},-0.5)       \psarcn(0,0){6}%              {\calc{270-round(acosd(1/12),9)}}%              {\calc{ 90+round(acosd(1/12),9)}}       \psline(\calc{-6*cos(1/12)},0.5)%              (-7.5,0.5)%              (\calc{5*cos(2/9*pi)/(6+5*sin(2/9*pi))-15/2},1.5)%              (\calc{-6*cos(1/4)},1.5)       \psarcn(0,0){6}%              {\calc{90+round(acosd(1/4),9)}}%              {\calc{round(atand(sec(2/9*pi)/10*(36-25*sin(1/18*pi)+60*sin(2/9*pi))%                                 /(6+5*sin(2/9*pi))),9)}}%      }     \end{pspicture}          \end{document}      ![output](http://i.stack.imgur.com/hKkeh.jpg) Is there a way of drawing the same figure using PSTricks without all the hard- coded values? (See the link for how to make a geometrical construction of the symbol.)


title: Beamer pause and grey not in order

text: I have a slide that is produced by the following codes:               \begin{frame}[plain]     \begin{itemize}     \item Current work 0     \item Future works 1     \item Future works 2     \begin{center}     \includegraphics[scale=0.35]{xxx.pdf}     \end{center}     \end{itemize}     \end{frame}      Now I want to display the first item "Current work 0" and the graphics `xxx.pdf` at the same time, while grey out the two "Future works". Then on the next slide I want to display the two "Future works" items and grey out "Current works" and the graphics. Is there any way to achieve that?


title: Problem balancing two column memoir

text: I have a problem using `\balance` on this document:               \documentclass[a4paper,10pt,twocolumn]{memoir}     \usepackage[utf8]{inputenc}     \usepackage{lipsum}     \usepackage{balance}          \balance          \begin{document}          \lipsum[1-10]          \end{document}      I have no problem with `book` and `article`, but with `memoir` document class the first line of text is moved down, like in the the MWE: ![the problem](http://i.stack.imgur.com/DRtTv.png) I can't use `multicols` because it can not handle float on single column. I'm using `pdflatex` on Fedora 17. Anyone have some suggestions?


title: How to draw a "Mexican hat potential" using 3dplot?

text: I would like to make a Mexican hat potential (like this one from Wikipedia) ![enter image description here](http://i.stack.imgur.com/NtRmr.png) drawing through TikZ, and I am sure the function to use is straightforward, but I have not managed to find the right solution myself... ! I am using this as a starting point, just need the right function...               \tdplotsetmaincoords{70}{135}     \tdplotsetpolarplotrange{90}{180}{0}{360}     \begin{tikzpicture}[line join=bevel,tdplot_main_coords, fill opacity=.7]     \tdplotsphericalsurfaceplot[parametricfill]{72}{36}%     {4}{black}{\tdplottheta}%     {\draw[color=black,thick,->] (0,0,0) -- (20,0,0) node[anchor=north east]{$x$};}%     {\draw[color=black,thick,->] (0,0,0) -- (0,20,0) node[anchor=north west]{$y$};}%     {\draw[color=black,thick,->] (0,0,0) -- (0,0,3) node[anchor=south]{$z$};}%     \end{tikzpicture}      Any hints will be gratefully appreciated!! * * * Thanks again! I now have a little problem getting the axis right. I want them placed in the middle of the plot, but I cannot seem to get the labels correct? Also, I would like to rotate the axis so that the x,y arrows point towards us, and the z up as it is now. Any tips? This is what I have now:               \pgfplotsset{        standard/.style={         axis x line=middle,         axis y line=middle,         axis z line=middle,         enlarge x limits=0.15,         enlarge y limits=0.15,         enlarge x limits=0.15,         every axis x label/.style={at={(current axis.right of origin)},anchor=north west},         every axis y label/.style={at={(current axis.above origin)},anchor=north east},         every axis z label/.style={at={(current axis.above origin)},anchor=south}     }     }          \begin{tikzpicture}      \begin{axis}[      standard,             colormap={blackwhite}{gray(0cm)=(1); gray(1cm)=(0)},             samples=30,             domain=0:360,             y domain=0:1.25,             zmin=0,             zmax=2,             xlabel=$\mathcal{RE}\,(\phi)$,             ylabel=$\mathcal{IM}\,(\phi)$,             zlabel=$V$,             yticklabels={,,},             xticklabels={,,},             zticklabels={,,}         ]          \addplot3 [surf, shader=flat, draw=black,  z buffer=sort] ({sin(x)*y}, {cos(x)*y}, {(y^2-1)^2});           %\addplot3 [surf, shader=flat, draw=black, fill=white, z buffer=sort] (x^4-x^2, y^4-y^2, 1);         \end{axis}     \end{tikzpicture}      It produces the following figure: ![enter image description here](http://i.stack.imgur.com/NtRmr.png) But as you see the axis labelling is not optimal, and the axis is rotated the wrong direction.. Thanks so much so far!


title: How remove empty line between two subsections?

text: I am going to insert an image between two subsections. When the image is big, it shifts to next page and remain an empty line between subsections. how can i remove this empty line? and, also i put an image in a two columns format as follows:               \begin{center}            \begin{figure*}[ht]              \centering              \includegraphics[width=\textwidth]{Images/Algorithm}              \caption{Caption}              \label{fig:label}            \end{figure*}          \end{center}      My picture is big (in size of A4) and it goes to last page of my paper. I copied this part of code in any space of my paper, but it shift again to last of page of my paper.!! What can I do to hold it in my favorite page?


title: Mismatching symbol size in cases environment with acronym package

text: I'm running into trouble using the acronym package when I set math formulas in the cases environment. Looking at the following MWE, you will notice that inside the arccot "gamma" and "p" are smaller than the clickable "a" and "y" whereas outside, y and gamma are sized correctly. I've traced the problem down to the cases environment, but have no idea how to fix it. Any ideas?               \documentclass[12pt]{book}     \usepackage{amsmath}     \usepackage[printonlyused,withpage]{acronym}     \usepackage[hidelinks]{hyperref}     \begin{document}     \begin{equation}         \begin{cases}             \text{arccot}\left(\frac{\gamma{}^2-\acs{a}\cdot\acs{y}}{p}\right) & \acs{y}<=|\gamma{}|         \end{cases}     \end{equation}     \begin{acronym}         \acro{a}[\ensuremath{a}]{half width of the superconducting strip}         \acro{y}[\ensuremath{y}]{cartesian coordinate}     \end{acronym}     \end{document}      Rendered MWE: ![MWE](http://i.stack.imgur.com/MNDGd.png)


title: anti-clockwise pathed curve for connecting nodes

text: I have a question which is no doubt simple to most people but I have been struggling with it for a while now. I have the following code:               \begin{tikzpicture}          % Add information on the process above the thermocline     \node [text width=1cm,align=center,font = \scriptsize] (A) at (7.5,6) {A};     \node [text width=1cm,align=center,font = \scriptsize]  (B) at (6.5,5.5) {B};     \node [text width=1cm,align=center,font = \scriptsize] (C) at (7.5,4.75) {C};     \node [text width=1cm,align=center,font = \scriptsize]  (D) at (8.5,5.5) {D};          \draw [->] (A.west)--(B.north);     \draw [->] (B.south)--(C.west);     \draw [->] (C.east)--(D.south);     \draw [->] (D.north)--(A.east);          \end{tikzpicture}      which returns: ![enter image description here](http://i.stack.imgur.com/Mqzgk.png) How can I alter these lines so they are curved, furthermore I would like it to be almost a circle where the nodes are written on top of the curved path thus resulting in gaps in the circle where these nodes are placed.


title: Prevent empty line after tabular environment

text: I have a question related to Empty line after a tabular environment. I have a document using package `lineno` to enumerate lines. The rendered document enumerates a line exactly after any `tabular` environment. Is there an empty line after the `tabular` environment? If there is one, how can I erase it? Example:               \documentclass[10pt,english,final,a4paper]{book}     \usepackage{lineno} % Line numbers          \begin{document}     \linenumbers     1st Para: Bablabla...     \begin{table}[htpb]     \begin{flushleft}     \begin{tabular}{|l|c|c|}     \hline     Mass & $m_1$ & 2.18 \\     Length & $l_1$ & 0.335\\     Center of mass (fraction of length) & $f_1$ & 0.39\\     Joint limits (relative angles) & elbow, shoulder & $[-7,100]$, $[0,160]$\\     \hline     \end{tabular}     \caption{\label{tab:} Parameters.}     \end{flushleft}     \end{table}          2nd Para: blablabla     \end{document}       The rendered document shows a 2 after the table. Erasing the new line in the second paragraph does not solve the "problem".


title: How to output any unicode character?

text: I have used a hack to output `€`:               % WTF: LaTeX has no € symbol!     % See here: http://en.wikibooks.org/wiki/LaTeX/Special_Characters#Euro_.E2.82.AC_currency_symbol     \usepackage[utf8]{inputenc}             % The input file is in utf-8     \usepackage{marvosym}                   % This package provides some symbols. The € is \EUR{}     \DeclareUnicodeCharacter{20AC}{\EUR{}}  % Now we link the € symbol to the escape sequence      Which is bad enough. Now I am trying to output the `°` character, but no idea how to do that. Is there a generic method to output any unicode character supported by the font?


title: How can I automatically insert a command in a BibTeX-generated bbl file?

text: This question asks how to keep a code in a bbl file. Fortunately, the root cause could be found and solved without fiddling with the bbl file. Several answers pointed out that the bbl file should not be changed and that there are (usually) better ways to accomplish whatever is the goal. However, there are situations in which modifying the bbl file is the only option. In this case, I need to balance the columns on the last page of an article using the ACM sig-alternate LaTeX class. The "official" solution, suggested by the authors of the sig-alternate style, is to modify the bbl file and insert the command `\balancecolumns` in the position where the column break should occur. Naturally, I would like to avoid modifying it directly and instead find a maintainable way of getting the column break. None of the solutions I have found work in my case (I know that they work in some cases, but I now have a paper where they don't). I have tried the `balance` package, the `flushend` package, experimented with the `multicol` package, fiddled with the page height, ... At this point, the most maintainable solution really does seem to be to somehow get the ACM sig-alternate class command `\balancecolumns` into the bbl file automatically. Is there any way I can accomplish this by editing the BibTeX file or the LaTeX file? It's fine if I have to specify myself where the break should occur, but I would not like to modify temporary files such as the bbl file. Do I have to resort to programmatically editing the file with sed or something?


title: How to place the chapter number behind the chapter title in KOMA script

text: I have the following layout for my chapter title and number: ![The current layout](http://i.stack.imgur.com/dkP0u.png) I reached this using the following code:               \renewcommand*{\chapterformat}{%       \fontsize{60}{68}\selectfont\color{Gray}\thechapter\autodot\enskip}          \addtokomafont{chapter}{%       \renewcommand*{\raggedsection}{\raggedleft}}      What is the best way to move the chapter number (2 in this case) to the right end of the same line, so that it overlaps with the chapter title? (I want the title to be on top). If possible, I want the method to integrate well with KOMA script, for example by redefining `\chapterformat` like I did above.


title: Help on a bug of table

text: I have problem in marking a table. I want to get rid of this line out there.               \begin{table} [htp]     \begin{center}     \caption{AAA}      \begin{tabular}{|c|c|c|c|c|c|} \hline     \multicolumn2{|c|}{\multirow{2}{*}{BUG}} & \multirow{2}{*}{B} & \multicolumn3{|c|}{A} \\ \cline{4-6} \tspacer          & & & {$m = 1$} & {$m = 2$} & {$m = 3$}\\ \hline \tspacer     \multirow{2}{*}{$n_all$} & {STD} & {158} & {132} & {62} & {56} \\ \cline{3-6} \tspacer     & {HL} & {132} & {61} & {46} & {34} \\ \cline{3-6} \tspacer     & {STR} & {50} & {32} & {30} & {32} \\ \hline     \end{tabular}     \end{center}     \end{table}      ![enter image description here](http://i.stack.imgur.com/6MsmP.png)


title: How to assign a random value to opacity key in PostScript phase rather than TeX phase?

text: I want to have a random opacity but I don't want to use `fp` package. Shortly speaking, is it possible to pass PostScript expression to `opacity`? Here is the minimal not-working example to save your time.               \documentclass[pstricks,border=12pt]{standalone}     \SpecialCoor     \begin{document}     \begin{pspicture}[showgrid](-2,-2)(2,2)         \psframe*[linecolor=gray,opacity={!Rand}](2,2)     \end{pspicture}     \end{document}      ## Warning ! `Rand` had been tacitly modified from its original behavior (producing a random real number between 0 and 0.5 inclusive) to a new behavior (producing a random real number between 0 and 1 inclusive). If you are new to `Rand`, it is good; no code needs to be updated in your existing code.


title: Omit page number from first page of chapter when using quotcap

text: I am using quotchap as well a pre-existing PhD format cls file. On the first page of every chapter, the page number is placed at the bottom rather than at the top and the last line of the page overwrites the page number. Is there a way to move the page number lower, up to the top, or remove one line from the text? (I had tried using fancyhdr to do the trick but it seems to have no effect - possibly because I am using the pre-existing cls file...?) Thanks for any help!


title: Where to save graphics.cfg file

text: following the instructions at http://kile.sourceforge.net/Documentation/html/build_epsgraphics.html I could manage to get pdflatex to convert eps files into pdf on the fly. As a test I've saved the graphics.cfg files in the same directory as my test.tex files and would now like to move it into my local tree so that it will be used by default for my other tex documents. If my local texmf tree is in $HOME/texmf what should be the exact path where to save the graphics.cfg file? (As you might have guessed I'm using tex-live on a Ubuntu machine) Thanks a lot for your help, Cheers, Luca


title: Producing an empty argument

text: I've been using Herbert's answer in Check for empty macro argument to check if an argument is empty. I was wondering if it is possible to expand Herbert's solution to also detect if a macro argument is `\empty`. Failing this, I was hoping to learn a way to set a macro in so that `\ifempty` will behave like I want. The following code shows that `\ifempty` correctly detects an empty macro argument, but does not consider `\empty` to be an empty argument. Then, I give a couple of unsuccessful attempts to define an empty macro.               \documentclass{article}          \makeatletter     \def\ifempty#1{%         \if\relax\detokenize{#1}\relax%             \expandafter\@firstoftwo         \else             \expandafter\@secondoftwo         \fi}     \makeatother          \begin{document}          \ifempty{}{1. empty}{1. nonempty}          \ifempty{\empty}{2. empty}{2. nonempty}          \def\z%     \ifempty{\z}{3. empty}{3. nonempty}          \def\z{}%     \ifempty{\z}{4. empty}{4. nonempty}          \end{document}


title: Style/class tutorials

text: What are some good **tutorials** on writing custom styles (classes) that clearly explain commands used and some of the features that TeX has to offer in the way of styles?


title: Document class creation tutorial

text: Do you know any tutorial for create document class? I create my own documentclass by editing book class but not everything works fine. Thanks for help.


title: How to highlight all identifiers starting by '@'?

text: I would like to highlight any expression made of letters and that starts with one @. The use of `moredelim=*[s][\color{blue}]{@}{\ }` works only in case like `@name` is followed by one space. The following code nearly works except that I do not want the parenthesis to be colored in case like `@decorator(x=3, y='some text')` because that is `@decorator(` which is caught.               moredelim=[s][\bfseries\color{gray}]{@}{\ },     moredelim=[s][\bfseries\color{gray}]{@}{(},      The use of `moredelim=[s][\bfseries\color{gray}]{@}{(}` is not a good solution because the search is done on several lines... :-(


title: Creating a title page using \vspace or \vskip

text: I'm creating a title page and I'm asking if it's more convenient to use `\vspace` or `\vskip` to have distance between title, author and other elements in the page.


title: Detexify couldn't help me find >— and —<, can you?

text: These symbols are like arrow, except the arrow heads are inverted. Some ASCII art: >-- or --< Could you help?


title: Box height intruding into previous line. Why?

text: I decided I wanted to try my hand at providing a bit curvier answer to A better notation to denote arcs for an American high school textbook than what Werner provided. I also thought it would a good opportunity to practice a few of the tricks I've learned over the past year since I posted my original question. Here's my approach:               \documentclass{article}     \usepackage{tikz}          \makeatletter          \newsavebox\ae@frown@box     \savebox\ae@frown@box{\tikz \path[fill] (0,0) to [out=50,in=130]                                              (2,0) to [out=150,in=30]                                              cycle;}     \def\ae@frown{\usebox{\ae@frown@box}}          \newsavebox\ae@tmp@box     \newcommand\arc[1]{%       \sbox\ae@tmp@box{#1}%%       \ooalign{%%         \raisebox{\ht\ae@tmp@box}{%%           \resizebox{\wd\ae@tmp@box}{!}{%%             \ae@frown}}%%         \cr         #1}}          \makeatother          \pagestyle{empty}     \begin{document}          Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae,     aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli     appellantur. Hi omnes lingua, institutis, legibus inter se differunt.     \arc{OK}\      \arc{ABC}\      \fbox{\arc{Too much}}          \end{document}      ![enter image description here](http://i.stack.imgur.com/TLqSb.png) The effects are not entirely as I expected. For two or three letter arc names I'm fine with the appearance, but somehow the height is not being taken into account when the paragraph is being formed. At first I thought the boxes' heights weren't being calculated incorrectly. That's when I threw in the `\fbox{...}`. But `\fbox` seems to get the height correct. Even more interestingly (or so I think) is that if I use the following text               Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae,     aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli     appellantur. Hi omnes lingua, institutis, legibus inter se differunt.     \arc{OK}     \rule{2pt}{1in}      ![enter image description here](http://i.stack.imgur.com/Bh7bV.png) There height of the rule is also somehow ignored. Clearly I'm doing something wrong. Can someone explain what's happening here? Post script: I did not use Werner's `\setbox9=....` approach because I'm not entirely sure I understand that approach (I'm not sure whether I might be overwriting something with that approach).


title: About alignment of mathematics formulas

text: How can I implement the alignment like in the following image? ![https://docs.google.com/open?id=0B1kX_CbBVoMtSDQ0bVFaZ1JURS1lbXFPandBS01CZw](http://i.stack.imgur.com/zZl4q.png) Because the usual `\begin{align*}` and `\end{align*}` command can not work, so I hope you can help me! Thanks! Wait for your elegant codes or solutions...


title: Enumerated list with blue circles and number inside it

text: I am creating a manual for an application and I would like to provide step by step directions of the application. For the step numbers, I would like to use big, blue circles with white numbers in it. Thus I was thinking if I can modify the bullet style, I would be able to achieve such list. I read few similar questions and it looks like it will have to use the `enumitem` package and the likes. Probably, there would be a new command for a big circle. I just don't know how to pull everything together. Example: ![example](http://i.stack.imgur.com/j0N2T.jpg)


title: Curious behaviour of vertical space in one and two column document

text: When I use the first code (in a two-column document) the vertical space between the text and the `gather` environment is small. When I use the starred version or a one-column document then the space becomes bigger. Why is that happening. Can\Should I fix it?               \documentclass[12pt]{article}     \usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}          \usepackage{multicol}          \setlength{\parindent}{0cm}          \usepackage[fleqn]{amsmath}     \setlength{\mathindent}{0cm}          \usepackage{unicode-math}          \everymath{\displaystyle}          \title{}     \author{}     \date{}          \allowdisplaybreaks          \begin{document}     \raggedcolumns          \begin{multicols}{2}     Hello there     \begin{gather*}     \begin{aligned}     &x+y=0\\     &y=0     \end{aligned}\\     \begin{aligned}     &z+x=0\\     &z=0     \end{aligned}     \end{gather*}     \end{multicols}          \end{document}      ![enter image description here](http://i.stack.imgur.com/ybqqz.png) When I use `\begin{multicols*}{2}`: ![enter image description here](http://i.stack.imgur.com/qhhZu.png) And when I don't use multiple columns: ![enter image description here](http://i.stack.imgur.com/aK2vW.png)


title: LyX: Changing layout inside table cell

text: I'm using LyX to write a simple report. I had some paragraph written as a "description list", when I thought that it may look better as a table instead. I created a table, and when I copied the text inside the table cell, it kept the "Description" layout, and is still shown as such. I want to change that back to a plain layout, but the drop down widget to select the layout is disabled. Similarly, keyboard shortcuts say "command disabled". Other than editing the .lyx file manually, is there any better way to do this?


title: TeX daemon for Windows

text: A simple question (in theory): is there any (La)TeX distribution for Windows that is capable of running as a daemon? I am not aware that either MiKTeX or TeX Live are capable as running as daemons on Windows, but are there any other solutions? Failing this, if I wanted to hack an existing TeX distribution to run as a daemon, what would be the best approach? A few features that the daemon should have, ideally:   * One-time loading.   * Load the preamble separately, so multiple documents can be generated without reloading the preamble.   * Run as a Windows Service. (optional)   * Callable as a library/API. (optional)   * Input TeX and output DVI/PNG via standard I/O or pipes. (optional) Any information or suggestions on the subject would be much appreciated. **Edit 1:** Specifically, I am also rather curious how the _preview-latex_ package for EMACS works. This seems to have a very similar usage in mind to what I intend. **Edit 2:** I've just recalled that the Instant Preview feature of LyX also closely represents what I want to achieve. Additionally, this seems to work on Windows. An explanation/overview of this system and the daemon it uses would be very helpful.


title: Confused with whether or not I have to use \the

text: I got confused with whether or not I have to use `\the`.   1. `\the` in `\special{papersize=\the\paperwidth,\the\paperheight}` is mandatory.   2. But `\the` in neither `\begin{pspicture}(\the\paperwidth,\the\paperheight)` nor `\psframe[linecolor=red](\the\paperwidth,\the\paperheight)` is mandatory.               \documentclass{minimal}     \usepackage{pstricks}     \paperwidth=72.27pt     \paperheight=72.27pt          \hoffset=-72.27pt     \voffset=-72.27pt     \topskip=0sp     \parindent=0sp          % it works     \special{papersize=\the\paperwidth,\the\paperheight}          % it does not work     %\special{papersize=\paperwidth,\paperheight}               \begin{document}     % it works     \begin{pspicture}(\the\paperwidth,\the\paperheight)     \psframe[linecolor=red](\the\paperwidth,\the\paperheight)     \end{pspicture}     %     % it also works     %\begin{pspicture}(\paperwidth,\paperheight)     %\psframe[linecolor=red](\paperwidth,\paperheight)     %\end{pspicture}     \end{document}      What is the rule whether or not I have to use `\the`?


title: How to number floats in sequence with theorems?

text: I like having all my theorems, examples, defintions etc. numbered in a single sequence. Is it possible to have LaTeX number my floating figures in sequence with them as well? I.e.: > **Theorem 1.1** A theorem! > > (A pretty picture)   >  Fig. 1.2: caption. > > **Definition 1.3** A definition. I presume this would be pretty difficult to implement because of how floats, well, float! But hopefully there's some clever package that does it. I'm using amsthm, so solutions compatible with that would be most useful, but I'm certainly still interested in other answers.


title: pgfplots sample colors from colorbar

text: I would like to get the color definition from a sample of colors in a pgfplots colormap using for example the RGB model. When I choose `colormap/bluered` with `colorbar style={samples=10}` I need to have the xcolor definition of those particular colors to plot different curves. Is there an automatic way to generate these color specifications from the colormap definition?


title: How to display only certain lines of a paragraph?

text: From reading Knuth's _TeX Book_ (Chapter **14 How TeX Breaks Paragraphs into Lines** ), I understand that entire paragraphs are read in and then "massaged" by the "line-breaking algorithm" in an optimal way (p 91): > One of typesetting system's chief duties is to take long sequences of words > and to break it up into individual lines of the appropriate size. ... TeX > chooses breakpoints in an interesting way that considers each paragraph in > its entirety; the closing words of a paragraph can actually influence the > appearance of the first line. As a consequence, I assume that it flushes out the lines on-by-one after performing the optimization on a per-paragraph basis. Is it possible to interrupt this flushing of lines and say only output specific lines of the paragraph? I guess, almost similar to the way paragraphs are broken across pages. For example, by means of defining an environment (say) `showlines` that one can use in the following way:               \begin{showlines}[lines=2]       One of typesetting system's chief duties is to take long sequences        of words and to break it up into individual lines of the appropriate size.        \TeX\ chooses breakpoints in an interesting way that considers each paragraph        in its entirety; the closing words of a paragraph can actually influence        the appearance of the first line.     \end{showlines}      And TeX would only output the first two lines of the traditional output (possibly discarding the rest): ![A paragraph of text](http://i.stack.imgur.com/yDu2m.png) Note: Of interest here is to preserve the typesetting after line-breaking optimization has occurred, even in the case of hyphenation, since the tie should be with the shipout of lines. Of course, if there is another method of doing this (for example, possible sub-optimal line-breaking on a line-by-line basis), that would also work. As a bonus, not just allowing to show the _first`n` lines_ as in the example above (via `[lines=n]`), but allowing to show any combination of lines from the paragraph using notation like: `[lines={1,4-5}]` or `[lines={-2}]` for the last two lines.


title: Problem copying text from pdf - spaces being stripped

text: I have the following minimal working example:               \documentclass{book}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}          é canção          \end{document}      I need to use the utf8 argument in order to have special characters in a simpler way and I need the T1 argument in order to copy the special characters correctly from pdf. The problem is, when I copy the text from the pdf reader (I am using Foxit Reader) the space won't come out with the text, resulting in `écanção` being copied (notice that the space didn't come out with the text). How to solve this?


title: Biber exits with code 25 but no error message

text: Biber 1.8 has mysteriously stopped working for me:               % biber --trace mytest || echo "Failed with code $?"      INFO - This is Biber 1.8     INFO - Logfile is 'mytest.blg'     INFO - Reading 'mytest.bcf'     INFO - Using all citekeys in bib section 0     INFO - Processing section 0     INFO - Looking for bibtex format file 'mytest.bib' for section 0     INFO - Decoding LaTeX character macros into UTF-8     INFO - Found BibTeX data source 'mytest.bib'     Failed with code 25      As you can see, there is no error message. I keep my document in a git repository, and so I was able to test it with some older versions, which fail in the same way, although they used to work (with the same version of Biber). I'm using TeXLive 2014, installed with MacPorts, which reports the version as "1.8_0+perl5_16". I managed to narrow down the .bib file to a single line that causes the problem, and include these files below. By inserting print statements into the .pm files, I discovered that the failure happens while mappings are being applied to the data read from the .bib file. Specifically, it happens when `biber_decode_utf8` in Biber/Utils.pm calls `decode_utf8` with a 6 element string consisting of the letters "Citta" followed by the grave accent combining mark (U+0300). Another question on Biber problems suggests deleting the cache, but `biber --cache` tells me that I'm not using the binary version of Biber, so there's no cache. This question about a SIGSEGV on Linux suggests rebuilding the dependencies of the package. I did `sudo port build depof:biblatex-biber`, which had no effect. I've also rebooted, and uninstalled and reinstalled biblatex-biber twice (with MacPorts). Any suggestions? Here follow the files with which I can reproduce the problem: mytest.bib:               %% This BibTeX bibliography file was created using BibDesk.     %% Saved with string encoding Unicode (UTF-8)           @incollection{archivi,         Address = {Citt{\`a}}}      mytest.bcf is too big to include here. I've posted it as a Gist.


title: include pdf pages in a latex document as appendix

text: I am writing a report and would like to include as appendix another document which is in pdf format.


title: Is it possible to place a chunk within a chunk?

text: I am asking this question because I need to loop a `\section` tile by a chunk and place the according result in the section using another chunk. Here is an example of one circle: # The chunk for \section:               <<echo=FALSE, results='asis'>>=     match<-match     i<-70 h     s<-match[i,2]     s1<- paste0("\\section {",gsub("_","\\\\_",s),"}")     cat(s1)     @      # The chunk for result:               <<echo=F,message=FALSE,results='hide', warning=FALSE>>=     def<-def.list[[match[i,1]]]     dat<-dat.list[[match[i,2]]]     @      This chunk the result (raw data) is hide. <>= print(Xreport[[def, dat]],tabular.environment='longtable') @ These two chunks work well for `i=70`, my question is how to make it work through a looping for `i in 1:70`? The `\section` can be looped by the below chunk and how to put the results between each loop?               <<echo=FALSE, results='asis'>>=     match<-match     for (i in 1:70){        s<-match[i,2]        s1<- paste0("\\section {",gsub("_","\\\\_",s),"}")        cat(s1)       }     @


title: siunitx: bold single numeric cells + mathspec

text: I need to bold and align numeric values in a table while using both `mathspec` and `siunitx` packages. I've looked at siunitx: Bold single numeric cells for bold and alignment in a `tabular` environment with the `siunitx` package, however this breaks when specifying `\setallmainfonts(Digits){Helvetica}` with the mathspec package. The MWE below shows proper numeric fonts in the displayed math (from the "Digits" specification), the `3.060` is properly aligned, the decimal is properly bold, but the digits are not bold. If the `\setallmainfonts(Digits){Helvetica}` is commented, then the table data is correctly bold and aligned, but then the display math digits revert to CM. Does anyone know how to reconcile these two?               \documentclass{article}     \usepackage{etoolbox}     \usepackage{siunitx}     \usepackage{booktabs}          \usepackage{mathspec}     \setallmainfonts(Latin,Greek)[Ligatures=TeX]{Helvetica}     \setallmainfonts(Digits){Helvetica}          \robustify\bfseries          \begin{document}          \begin{table}     \begin{tabular}{S[table-format=3.3,detect-weight]}        \toprule        {Header 35} \\        \midrule          \bfseries 3.060\\        100.59\\        0.64\\        0.52\\        \bottomrule     \end{tabular}     \end{table}          This is the number 2.     \[\int_{-\infty}^{\infty} 2 x^{2}_{i} dx \]          \end{document}


title: Using overbrace in xymatrix

text: My TeX code is not compiling correctly (the overbrace is causing the error). How I can fix my file? Here's what I have:                \usepackage{amssymb}      \usepackage{mathrsfs}      \usepackage{amsmath}      \usepackage{stackrel}       \usepackage[all,cmtip]{xy}       \usepackage{multicol}       \usepackage{mathtools}                \begin{document}                \[      \xymatrix@-1pc{      \stackrel{1}{\bullet} \ar[rr] & & \bullet & \overbrace{\cdots}^{N} & \bullet \ar[rr] & & \stackrel{k}{\bullet} \\       }      \]                      \end{document}


title: How to vertically shift the = sign?

text: I want to define a command that prints the `=` sign with its lower line touching the baseline, that is directly sitting on the baseline, any suggestion?