title: Some questions about chains

text: I'm trying to make the following diagram:               \begin{tikzpicture}[       start chain=1 going right,node distance=-0.15mm]     \node [on chain=1] at (-1.5,-.4) {f(};             \node [draw,on chain=1] {*};        \node [draw,on chain=1] {*};      \node [draw,on chain=1] {*};      \node [draw,on chain=1] {0};      \node [draw,on chain=1] {0};      \node [draw,on chain=1] {*};      \node [draw,on chain=1] {0};      \node [draw,on chain=1] {1};      \node [draw,on chain=1] {*};      \node [draw,on chain=1] {*};      \node [draw,on chain=1] {0};           \node [name=r,on chain=1] {$) = 0$};      \end{tikzpicture}      The problem I am running into is that the boxes around the *'s are slightly bigger than around the numbers 1,0. How can I insure that all the boxes are the same size? Also I'd like the variable x to appear above the center of the chain, what is the easiest way to do this? The only way I know right now is node at (x,y) command. I think there should be a way to name a node in the middle of the chain, and define a node to go directly above it, but I don't know the syntax for this.


title: Ugly whitespace with multicols

text: Why is there ugly whitespace in the first column? How do I remove it?               \documentclass{article}     \usepackage{amsmath}     \usepackage{multicol}          \begin{document}         \begin{multicols}{3}             \begin{align*}                 a = b             \end{align*}             \begin{align*}                 a = b             \end{align*}             \begin{align*}                 a = b             \end{align*}         \end{multicols}     \end{document}


title: up-to-date TeX distribution

text: In order to use the "LGRx package" I've been told in a previous question that I've made, that I should have an up-to-date TeX distribution. So, I wonder what is this and how can I install it to my PC? Note that my OS is the windows 7.


title: referencing a line in a proof

text: > **Possible Duplicate:**   >  How to link an equation in LaTeX I have the following mathematical statement:               \begin{equation}     \forall_{\epsilon > 0} \exists_{N_2} \text{  such that  } n>N_2 \implies |m_n^- - 0| < \dfrac{\epsilon}{2}     \end{equation}      Suppose this statement is labeled `(1)` by `\begin{equation}`. How can I quickly reference this without typing "`(1)`"? I would like to say something in my proof like: by `(1)` this is true. Is there a way to label and then reference these labels?


title: Fit a page to table

text: How can I fit a page to show an entire table (all I've seen here is the opposed, fit the table size to the page size. But, as I'll not print the result, I want to do the opposite) This is a sample of my table (I need use `longtable` because it uses 2 pages)               \documentclass[landscape, letter]{report}     \usepackage{ltxtable}     \usepackage[table]{xcolor}     \usepackage{colortbl}     \usepackage{multirow}     \usepackage[latin1]{inputenc}     \usepackage[left=0cm,top=.5cm,right=0cm]{geometry}     \usepackage{longtable}     \title{titulo}     \author{Rodrigo Coster - 1141783-01}     \begin{document}     \begin{center}\textbf{{\LARGE Relação de vagas autorizadas, providas e disponíveis}}\end{center}     \tiny     \begin{longtable}{cccccccccccccccccccccccccccccccccccccc}     \hline     \multirow{3}*{Cod.} & \multirow{3}*{Sec.} & \multicolumn{12}{c}{Categoria A} & \multicolumn{12}{c}{Categoria B} & \multicolumn{12}{c}{Categoria G} \\      & & \multicolumn{3}{c}{4h}  & \multicolumn{3}{c}{5h}  & \multicolumn{3}{c}{6h}  & \multicolumn{3}{c}{Total} & \multicolumn{3}{c}{4h}  & \multicolumn{3}{c}{5h}  & \multicolumn{3}{c}{6h}  & \multicolumn{3}{c}{Total} & \multicolumn{3}{c}{4h}  & \multicolumn{3}{c}{5h}  & \multicolumn{3}{c}{6h}  & \multicolumn{3}{c}{Total} \\     & & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D & A & P & D \\      \rowcolor{yellow} 187 & GP & \cellcolor{red} 5 & \cellcolor{red} 6 & \cellcolor{red} -1 &  0 &  0 &  0 &  0 &  0 &  0 & \cellcolor{red} 5 & \cellcolor{red} 6 & \cellcolor{red} -1 &  6 &  4 &  2 &  0 &  0 &  0 &  23 &  20 &  3 &  29 &  25 &  4 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 \\     \rowcolor{yellow} 912 & SMA &  46 &  35 &  11 &  0 &  0 &  0 &  24 &  15 &  9 &  70 &  50 &  20 &  10 &  8 &  2 &  0 &  0 &  0 &  26 &  10 &  16 &  36 &  22 &  14 & \cellcolor{red} 0 & \cellcolor{red} 6 & \cellcolor{red} -6 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 6 & \cellcolor{red} -6 & \cellcolor{red} 0 & \cellcolor{red} 12 & \cellcolor{red} -12 \\      825 & SMACIS &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 \\     \rowcolor{yellow} 925 & SMACIS & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 &  0 &  0 &  0 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 &  0 &  0 &  0 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 &  0 \\     \rowcolor{yellow} 83 & SMED &  151 &  8 &  143 &  0 &  0 &  0 &  0 &  0 &  0 &  151 &  8 &  143 & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 1 & \cellcolor{red} -1 & \cellcolor{red} 0 & \cellcolor{red} 3 & \cellcolor{red} -3 & \cellcolor{red} 0 & \cellcolor{red} 37 & \cellcolor{red} -37 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 6 & \cellcolor{red} -6 & \cellcolor{red} 0 & \cellcolor{red} 44 & \cellcolor{red} -44 \\     \rowcolor{yellow} 913 & SMF & \cellcolor{red} 0 & \cellcolor{red} 73 & \cellcolor{red} -73 &  0 &  0 &  0 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 73 & \cellcolor{red} -73 & \cellcolor{red} 0 & \cellcolor{red} 35 & \cellcolor{red} -35 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 37 & \cellcolor{red} -37 & \cellcolor{red} 0 & \cellcolor{red} 73 & \cellcolor{red} -73 & \cellcolor{red} 0 & \cellcolor{red} 10 & \cellcolor{red} -10 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 5 & \cellcolor{red} -5 & \cellcolor{red} 0 & \cellcolor{red} 15 & \cellcolor{red} -15 \\     \rowcolor{yellow} 7 & SMED &  0 &  0 &  0 &  0 &  0 &  0 &  67 &  0 &  67 &  67 &  0 &  67 & \cellcolor{red} 0 & \cellcolor{red} 8 & \cellcolor{red} -8 &  0 &  0 &  0 &  124 &  63 &  61 &  124 &  71 &  53 & \cellcolor{red} 0 & \cellcolor{red} 10 & \cellcolor{red} -10 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 51 & \cellcolor{red} -51 & \cellcolor{red} 0 & \cellcolor{red} 61 & \cellcolor{red} -61 \\     \rowcolor{yellow} 918 & SMS &  138 &  93 &  45 &  0 &  0 &  0 & \cellcolor{red} 2 & \cellcolor{red} 3 & \cellcolor{red} -1 &  140 &  97 &  43 &  93 &  43 &  50 &  0 &  0 &  0 &  13 &  2 &  11 &  106 &  47 &  59 & \cellcolor{red} 0 & \cellcolor{red} 17 & \cellcolor{red} -17 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 1 & \cellcolor{red} -1 & \cellcolor{red} 0 & \cellcolor{red} 19 & \cellcolor{red} -19 \\     \rowcolor{yellow} 166 & SMS &  0 &  0 &  0 & \cellcolor{red} 2 & \cellcolor{red} 5 & \cellcolor{red} -3 &  0 &  0 &  0 & \cellcolor{red} 2 & \cellcolor{red} 5 & \cellcolor{red} -3 &  0 &  0 &  0 &  103 &  52 &  51 &  0 &  0 &  0 &  103 &  54 &  49 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 &  0 &  0 &  0 & \cellcolor{red} 0 & \cellcolor{red} 2 & \cellcolor{red} -2 \\     \end{longtable}     \end{document}      As you can see, after using `\tiny`, one column is still missing.


title: verbatim subscript in mathmode

text: I want to produce a formula in Math-Mode which is something like               \pi_{film_title}(\sigma_{release_year > 2006}(film))      where `film_title`, `release_year`, and `film` are in verbatim so far I was using the `alltt` package, but the acclaimed `\sb` only produces subscripts in the usual math mode font. Any tips for that?


title: Is XeTeX a complete rewrite of LaTeX/TeX?

text: I have been looking into XeTeX for type-setting Unicode Text. I looked into the source code of it. XeTeX source distribution comes with Web2C. Is XeTeX a complete rewrite of TeX? If not, how did it accomplish the goal of adding the support for Unicode?


title: Converting TEX to TXT using Pandoc

text: I am trying to convert a .tex file into a .txt file, so that it could be directly copy pasted into environments that supports only MathJax. For example blogs, Mathematics Stackexchange, stackedit.io etc. But I am having problem with user defined enviornments like theorem, definition etc.               \begin{proof}     Example     \end{proof}      In a latex editor, the pdf would be rendered as > _Proof_ . Example But converting it to .txt using the code `pandoc -o output.txt input.tex` the output is rendered as > Example It is missing the headings. Similarly other-user defined environments also miss their respective headings. Is there some way to make Pandoc add the word "Proof" or heading corresponding to an environment at the beginning?


title: Use two different background images, one in odd pages and the other on even pages?

text: I would like to know if there is a code on preambule wich allows me to alternate 2 images, placing one of them as background on even numbered pages, and the other one the odd numbered pages. Actually I have one image for every page. I'm using in my preambule:               \usepackage[scale=0]{background}     \SetBgScale{1}     \SetBgAngle{0}     \SetBgOpacity{1}     \SetBgVshift{-7.1mm}     \SetBgContents{\includegraphics{image/hkbg.eps}}      And for the fisrt page, I have this line to prevent my background to appear in it:               \NoBgThispage


title: Using multiple { and }

text: It seems that using multiple `{{{` and `}}}` causes some problem to the latex document. Assume this line               \usepackage{color,soul}     \begin{document}        something \hl{I am referring to \cite{publi}} is good.     \end{document}      But I get this error               <inserted text>                  \par      l.180 ...something \hl{I am referring to \cite{publi}}      How can I fix that?


title: How to eat/gobble all following skips?

text: Is there a way to gobble all following skips? The opposite is possible with `\unskip`. I have a custom chapter layout (done in `memoir`) using `tikz`, and, for instance, the list of figures uses `\addvspace` to separate figures of different chapters--but if there are no figures in the first few chapters, there are a few `\addvspaces` piling up in the beginning, leaving me with an unwanted space. If you were to look at the beginning of the *.lof file, there would be in case of `memoir`:               \boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax      \defcounter {refsection}{0}\relax      \select@language {english}     \defcounter {refsection}{0}\relax      \select@language {english}     \addvspace {0.5\onelineskip }     \addvspace {0.5\onelineskip }     \contentsline {figure}{\numberline {2.1}{\ignorespaces The...      Note the two `\addvspace` lines before the first `\contentsline`. The following MWE reduces the problem to its essence, so it doesn't directly involve the LOF. The gray area shows the area where my chapter style puts the chapter title stuff. I did not include that, and I made the area gray to show the transition to the text after the chapter title area.               \documentclass{article}          \usepackage{lipsum}     \usepackage{tikz}     \usetikzlibrary{backgrounds}          \tikzset{every picture/.style={framed, inner frame sep=0pt,              background rectangle/.style={fill=gray}}}          \newcommand{\testchap}{         \noindent%         \begin{tikzpicture}             \pgfresetboundingbox             \useasboundingbox (0,0) rectangle (\textwidth, -5cm);         \end{tikzpicture}%         \par\nobreak\ignorespaces%  TODO: how to eat all following skips??     }          \begin{document}          \testchap     \addvspace{.5\baselineskip} % this should be without effect     \lipsum*[1-3]          \end{document}      The result looks like this: ![enter image description here](http://i.stack.imgur.com/EULPb.png) instead of this: ![enter image description here](http://i.stack.imgur.com/8egtf.png) Is a solution possible?


title: How to make math font huge

text: I would like to typeset a simple-to-medium-difficulty math formula on an A4/letter paper. It needs to be huge and preferably centered and portrait. I can take care of the paper size, the orientation — but not the centering and font size. Any resources you can recommend?


title: \TeX in small caps?

text: I'm writing a handout for an informal LaTeX course I'm running. I want to use small caps to highlight important words concepts etc. I mention the editor TeXshop, and since I think the names of editors are important, I put it in small caps:               \textsc{\TeX shop}      This doesn't work, since the `\TeX` macro ignores the small caps, basically. So I tried scaling it myself.               \textsc{\scalebox{0.8}{\TeX} shop}      But this doesn't work because extra space opens up between the `\TeX` and the `shop`. So I try to get rid of that space:               \textsc{\scalebox{0.8}{\TeX}\hspace{-0.4em} shop}      Which looks almost right. But not quite. So instead of messing around with tweaking the parameters, I was wondering if there was a better way to do this. I tried looking up the macro in `texdoc source2e` but my pdf reader's find function isn't case-sensitive, and searching the LaTeX source code for `\tex` is not helpful...


title: pgfplots: read data, calculate diagram

text: I'm trying to create a diagram with pgfplots. I have some data, which I'd like to have stored in the diagram code, alternatively (preferably not) in a separate file. What I need to do is to calculate the cumulative percentage of the data. In other words, each data point is calculated by summing each of the numbers in the y column from the previous lines, dividing them by the sum of all numbers in the y column, and multiply by 100. For example, data point 3 would be calculated by (0 + 435 + 111 + 51) / 646 * 100 = 92%. (646 is the sum of all numbers in the y column) Below are the numbers, and the diagram I'd like to create from them.               %x  y     0   0     1   435     2   111     3   51     4   23     5   10     6   5     7   5     8   3     9   3      ![Result wanted](http://i.stack.imgur.com/JShat.png) Thank you very much in advance!


title: Undefined control sequence in newtheoremstyle

text: I have the following piece of LaTeX code:               \newtheoremstyle{quest}         {20pt} % space above         {\topset} % space below         {} % body font         {} % indentation         {\bfseries} % theorem head font         {} % punctuation after theorem head         {0pt} % space after theorem head         {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)} \\} % head spec     \theoremstyle{quest}     \newtheorem{question}{Question}      The compiler complains that the `% head spec` line has "undefined control sequence" but I cannot figure out what is wrong with that line. Any help would be appreciated!


title: The problem of fancyhdr and leftmark /rightmark for the bibliography with biblatex

text: There is the well know problem of empty marks with latex but fortunately there is a hack for the content to appear only once in the header; but for the bibliography with biblatex, it does not seem to work. The following is my setting and expose that References appears twice and does not listen to what I enter in `\markboth{WEWFE}{ONWOOQ}` just before printing it,                   \documentclass[a4paper, 11pt]{article}                             \pagestyle{fancy}         \fancyhf{}         \fancyfoot{}              \renewcommand{\sectionmark}[1]{\markboth{\thesection...{#1}}{}}         \renewcommand{\subsectionmark}[1]{\markright{\thesubsection...{#1}}}              \fancyhead[R]{\today \hspace{2ex} \thepage}         \fancyhead[L]{  \nouppercase{\leftmark}  }         \fancyhead[C]{   \nouppercase{\rightmark}  }              \usepackage[backend=biber]{biblatex}         \addbibresource{\jobname.bib}              \begin{filecontents}{\jobname.bib}         @article{KingZengHistoryGuide,           author        = {Gary King and Langche Zeng},           title         = {When Can History Be Our Guide?},           subtitle      = {The Pitfalls of Counterfactual Inference},           journaltitle  = {International Studies Quarterly},           volume        = {51},           date          = {2007-03},           pages         = {183-210},           url           = {http://gking.harvard.edu/files/abs/counterf-abs.shtml},           urldate       = {2012-06-05},           gender        = {pm},         }         @article{DBLP:journals/corr/abs-1008-2849,           author        = {Jan Wassenberg and Peter Sanders},           title         = {Faster Radix Sort via Virtual Memory and Write-Combining},           eprinttype    = {arxiv},           eprintclass   = {cs.DS},           eprint        = {1008.2849},           date          = {2010-09-06},           pages         = {1-8},         }         \end{filecontents}                   \begin{document}              %\markboth{}{}         \tableofcontents              \section{first section}                   Paid was hill sir high. For him precaution any advantages dissimilar comparison few terminated projecting. Prevailed discovery immediate objection of ye at. Repair summer one winter living feebly pretty his. In so sense am known these since. Shortly respect ask cousins brought add tedious nay. Expect relied do we genius is. On as around spirit of hearts genius. Is raptures daughter branched laughter peculiar in settling.                    \subsection{first subsection}                        Paid was hill sir high. For him precaution any advantages dissimilar comparison few terminated projecting. Prevailed discovery immediate objection of ye at. Repair summer one winter living feebly pretty his. In so sense am known these since. Shortly respect ask cousins brought add tedious nay. Expect relied do we genius is. On as around spirit of hearts genius. Is raptures daughter branched laughter peculiar in settling.                                   \subsection{second subsection}              Paid was hill sir high. For him precaution any advantages dissimilar comparison few terminated projecting. Prevailed discovery immediate objection of ye at. Repair summer one winter living feebly pretty his. In so sense am known these since. Shortly respect ask cousins brought add tedious nay. Expect relied do we genius is. On as around spirit of hearts genius. Is raptures daughter branched laughter peculiar in settling.                              \section{second section}              Paid was hill sir high. For him precaution any advantages dissimilar comparison few terminated projecting. Prevailed discovery immediate objection of ye at. Repair summer one winter living feebly pretty his. In so sense am known these since. Shortly respect ask cousins brought add tedious nay. Expect relied do we genius is. On as around spirit of hearts genius. Is raptures daughter branched laughter peculiar in settling.                              \nocite{*}              \markboth{WEWFE}{ONWOOQ}         \printbibliography                        \end{document}


title: placeins: options section and below

text: I am using the package `placeins` with the options `section` and `below` so the floats will appear in their sections below their section if on the same page; however, the float is appearing above its section which is on the same page. My document class is `article`. ![enter image description here](http://i.stack.imgur.com/TkNgb.png) So why aren't the floats obeying the options I have in place?


title: Blend/transparency styles in pstricks and TikZ

text: As depicted below, Illustrator offers various transparency styles: ![enter image description here](http://i.stack.imgur.com/GqgKO.png) It is my understanding that, at this point, pstricks and TikZ are both limited to the `normal` style listed above. Could the other styles be implemented as well or is there any unexpected limitation somewhere?


title: Constraint for a decoration: how to know result after decoration

text: My question is kind of extending of this answer. I want to decorate a path with text only when text fit the path, but also I want to know if decoration was success. I need to know this to be able to call decoration again with shorter text. I need this to implement solution for my question here. Currently I end up with modifying decoration along path myself using `\makeatletter .. \makeatother` in document preambule. I just copy text decoration implementation in my preambule and add the setting flag to the end of the `persistent precomputation = {..}` of the inital state in the following way:               \newif\iffit          \pgfdeclaredecoration{my text along path}{initial}{       \state{initial}[         width=+0pt,         next state=left indent,         persistent precomputation = {           ...           \ifdim\pgf@lib@dec@text@width<\pgfdecoratedpathlength             \global \fittrue           \else             \global \fitfalse           \fi         }]{}      And then I can use `\iffit` in my code to check if decoration if successful. Is there more elegant solution for such case?


title: Cite and sort author with lowercase prefix (biblatex)

text: How can I _both_ cite and sort an author with a prefix with a lowercase letter in the prefix? Everything in the MWE below is correct, except that I would like the initial `Van Helten` in the bibliography to appear as `van Helten` (note, I still want it to be sorted under `Helten`, as the MWE does).               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{filecontents}     \usepackage[style=authoryear]{biblatex}     \AtBeginDocument{\toggletrue{blx@useprefix}}     \begin{filecontents}{\jobname.bib}     @ARTICLE{vanhelten1891,         AUTHOR = "W. van Helten",         TITLE = "Grammatisches",         JOURNALTITLE = "Beiträge zur Geschichte der deutschen Sprache und Literatur",         YEAR = "1891",         PAGES = "455--488",         VOLUME = "15"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \cite{vanhelten1891}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/MlCyB.png)


title: How to write a TeX macro that accepts a number or a \count register as argument?

text: What's the most simple way, _in plain TeX_ , to define a `\macro` that can be used as:               \macro{10}          \macro{\mycount}      such that I can then assign the number to a `\count` and manipulate it? Note:               \def\macro#1{...\number#1 ...}      is _not_ what I want. In other words, how can I modify the following TeX code (see ex 10.4 of _The TeXbook_ ):               \def\tick#1{\vrule height 0pt depth #1pt}          \def\tmp{\hbox to 1cm{\hfil\tick4\hfil\tick8}}          \def\doticks#1{\count255=#1%     \ifnum\count255=1%         \tmp%     \else%         \advance \count255 by -1\relax%         \tmp\doticks\count255%     \fi}          \def\ruler#1{\vbox{\hrule\hbox{\tick8\doticks\number#1}}}      In such a way that:               \ruler{10}          \count255=10     \ruler{\count255}     \bye      outputs a page with two 10 centimetres rulers drawn on it? (current code gives a `Missing number` error).


title: Unwanted extra lines appearing in bibliography

text: When I compiled a very lengthy paper with a lengthy bibliography, I noticed that at some places in the bibliography, an extra line had been entered between entries: ![enter image description here](http://i.stack.imgur.com/89fdd.png) I tried to cut down the document and the bibliography to isolate what caused the thing by deleting pieces and compiling. This took me several hours, and the below example was the minimal example I came up with. What I'm trying to say is, I'm aware that the example isn't perhaps "minimal," but I really tried to make it as small as possible. I have seen this problem in my bibliographies with different fonts, but since the problem seems related to spacing, the problem only appear while using the bibliography in the minimal example if I compile it with the font Brill Roman, which can be downloaded here. I'm compiling with `xelatex` and `bibtex` with backend `biber` on Mac OS Mavericks. Does anyone know what might be the problem here? This is the document:               \documentclass[utf8,12pt,letterpaper]{article}     \usepackage{fontspec}     \setmainfont{Brill Roman}     \usepackage[authordate,strict,isbn=false,backend=biber,bibencoding=utf8,hyperref=true,noibid,annotation]{biblatex-chicago}     %The following is for automatic sorting of references (by Guido at http://tex.stackexchange.com/questions/84020/automatic-assignment-of-references-to-bibliography-categories-depending-on-origd) :     \defbibcheck{pre}{       \iffieldint{origyear}         {\ifnumless{\thefield{origyear}}{1911}           {}           {\skipentry}         }         {\iffieldint{year}           {\ifnumless{\thefield{year}}{1911}             {}             {\skipentry}           }           {\skipentry}         }     }          \defbibcheck{post}{       \iffieldint{origyear}         {\ifnumless{1910}{\thefield{origyear}}           {}           {\skipentry}         }         {\iffieldint{year}           {\ifnumless{1910}{\thefield{year}}             {}             {\skipentry}           }           {            \skipentry %comment out this line if unknown date check is not used.           }          }     }          \defbibcheck{dateunknown}{       \ifboolexpr{         test {\iffieldundef{year}}         and         test {\iffieldundef{origyear}}       }         {}         {\skipentry}     }     %End of automatic sorting     \addbibresource{bibliographySpacing2.bib}     \begin{document}     \nocite{*}     \part*{Bibliography}\addcontentsline{toc}{part}{Bibliography}     \printbibliography[heading=subbibintoc,check=dateunknown,title={Undated Works}] \clearpage \printbibliography[heading=subbibintoc,check=pre,title={Works Written Before 1911}] \clearpage \printbibliography[heading=subbibintoc,check=post,title={Works Written After 1911}]     \end{document}      And this is `bibliographySpacing2.bib`:               @book{Cawdry1604ATableAlphabeticall,         author = {Cawdry, Robert},         title = {A table alphabeticall},          address = {London},         publisher = {Edmund Weauer},         date = {1604}     }          @book{Klaproth1823Asia,         address = {Paris},         title = {Asia Polyglotta},         publisher = {A. Schubart},         author = {Klaproth, Julius},         date = {1823}     }          @book{Klaproth18261828Memoires,         author = {Klaproth, Julius},         title = {Mémoires relatifs à l'Asie, contenant des recherches historiques, géographiques et philologiques sur les peuples de l'Orient},         shorttitle = {Mémoires relatifs à l'Asie},         address = {Paris},         publisher = {Dondey-Dupré, père et fils},         date = {1826},%/1828},         volumes = {3}     }          @book{Laufer1908Skizze,         title = {Skizze der manjurischen Literatur},         date = {1908},         note = {extrait de la Revue orientale},         author = {Laufer, Berthold}     }          @book{LauferNDSkizze,         title = {Skizze der manjurischen Literatur},         note = {extrait de la Revue orientale},         author = {Laufer, Berthold}     }          @review{KuhnSherman1972ReviewContributionsToAHistoryOfAlphabetization,         author = {Kuhn, {Sherman M.}},         title = {\bibstring{reviewof} \mkbibemph{Contributions to a History of Alphabetization in Antiquity and the Middle Ages} \bibstring{by} Lloyd W. Daly},         shorttitle = {\bibstring{reviewof} \mkbibemph{Contributions to a History of Alphabetization}},         journal = {Medieval Academy of America},         year = {1972},         volume = {47},         number = {2},         pages = {300--3}     }          @book{KennedyGeorge1941SerianArrangementOfChineseCharacters,         author = {Kennedy, {George A.}},         title = {Serial Arrangement of Chinese Characters},         publisher = {Department of Oriental Studies, Yale university},     %    date = {1948},         date = {1941},     %    edition = {\autocap{r}evised 2\textsuperscript{nd} edition},         address = {\emph{S.l.}}     }          @book{Cawdry1604ATableAlphabeticall,         author = {Cawdry, Robert},         title = {A table alphabeticall},         address = {London},         publisher = {Edmund Weauer},         date = {1604}     }          @book{Cawdry1604ATableAlphabeticall,         author = {Cawdry, Robert},         title = {A table alphabeticall},         address = {London},         publisher = {Edmund Weauer},         date = {1604}     }          @book{Strahlenberg1730DasNordOst,         author = {Strahlenberg, {Philipp Johann von}},         title = {Das nord- und ostliche Theil von Europa und Asia},         address = {Stockholm},         date = {1730},         publisher = {In Verlegung des Autoris},         edition = {\autocap{m}icrofilm of printed edition}     }


title: texstudio: automatically close log if no errors

text: I would like the texstudio message window automatically hides if a compilation finishes without errors. I managed to find the way to do it in some old version, but forgot it now. Could you please advise where and what to change in options. Cheers


title: Corrupted eps figures - Tikz externalizes EPS figures correctly but Photoshop does not open them

text: **Original question** (In short, I am told the eps files are corrupted and I wuold like you to check if it's true. Go to **Update** to skip this part.) I use tikz and the externalize package in order to create high quality eps figures for a scientific journal. Although I manage to create the figures, compile the tex file with them and create the final pdf paper with such figures included, during the revision process of the journal the revisor replies (several times) to me asserting the eps figures are corrupted, and therefore he/she cannot produce the final pdf correctly. I include below the two tex files I use to produce one of the figures (Note that I do not provide them these files, but only the final eps output). 1) Could you please check if you get the eps correctly or corrupted? Just compile the MWE file, I usually do it compiling with latex, dvips, ps2pdf using TeXnicCenter. 2) Do you know any way to check from a eps file if it is corrupted? These eps files open correctly, but the proof-reader continues to tell me the files are corrupted. (Unfortunately, I couldn't upload here an eps file to test.) Here's the MWE               \documentclass{article}          \usepackage{graphicx}     \usepackage[usenames,dvipsnames]{xcolor} % in order to use color names     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{latexsym}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{color}     \usepackage{psfrag}     \usepackage{rotating}     \usepackage{pgf,pgfsys,pgffor}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage[caption=false]{subfig} %option caption=false for incompatibility with revtex     \usepackage{tikz}     \usetikzlibrary{arrows}     \usepackage{steinmetz}     \usepackage{trfsigns}     \usetikzlibrary{plotmarks, decorations.markings,decorations.shapes,shapes.geometric, intersections}          %\graphicspath{{./figure/}}          % New commands: quantum and others     \newcommand{\tr}[2][]{\textrm{Tr}_{#1} \left[ {#2} \right]}     \newcommand{\bra}[1]{\langle {#1} \vert}     \newcommand{\ket}[1]{\vert {#1} \rangle}     \newcommand{\pure}[1]{\vert {#1} \rangle \langle {#1} \vert}     \newcommand{\inn}[2]{\langle {#1} \vert {#2} \rangle}     \newcommand{\san}[3]{\langle {#1} \vert {#2} \vert {#3} \rangle}     \newcommand{\ave}[1]{\left \langle {#1} \right \rangle}                     % expectation     \renewcommand{\e}{\textrm{e}}                \newcommand{\imaginary}{\im}     \newcommand{\Span}{\textrm{span}} %  nota: ridefinire \span crea problemi con align!     \newcommand{\factor}{1}          \newcommand{\C}[1]{\mathcal{#1}}     \newcommand{\B}[1]{\mathbb{#1}}     \newcommand{\beq}{\begin{equation}}     \newcommand{\eeq}{\end{equation}}     \renewcommand{\d}{\textrm{d}} % differenziale          \newtheorem{prop}{Proposition}     \newtheorem{defin}{Definition}     \newtheorem{thm}{Theorem}     \newtheorem{cor}{Corollary}     \newtheorem{Lemma}{Lemma}     \newtheorem{prob}{Problem}     \newtheorem{remark}{Remark}     \newcommand{\proof}{\noindent {\bf Proof. }}     \newcommand{\qed}{\hfill $\Box$ \vskip 2ex}          \newcommand{\barg}{\bar{\gamma}} % quantum state trasmesso     \newcommand{\coherentTensorProduct}{\gamma} % quantum state nel prodotto tensore di stati coerenti     \newcommand{\g}{\xi}    % uantum state nello slot     \newcommand{\m}{\mu}    % operatore di misura locale     \newcommand{\M}{M}  % cardinalità     \newcommand{\Prob}[1]{\textrm{P} \left[ #1 \right]} % simbolo P[ ]     \newcommand{\p}{p} % probabilità congiunta, condizionata...     \newcommand{\q}{q} % probabilità congiunta, condizionata stati coerenti     \newcommand{\x}{x} % simbolo trasmesso     \newcommand{\y}{y} % simbolo stimato     \newcommand{\z}{z} % outcome     \newcommand{\barz}{\bar{\z}} % vettore di outcome     \newcommand{\barp}{\bar{\p}} % vettore di probabilità     \newcommand{\X}{\textrm{x}} \newcommand{\Y}{\textrm{y}} % base spazio di Hilbert     \newcommand{\inner}{\chi} % prodotto interno \inner = |<0|a>|^2 = |<\g_0|\g_1>|^2     \renewcommand{\o}{0} % outcome of local measurement     \renewcommand{\l}{1}     \newcommand{\newO}{\hat{\o}}     \newcommand{\newL}{\hat{\l}}     \newcommand{\Pc}{P_c}     \newcommand{\Pe}{P_e}     \newcommand{\povm}{\textrm{P}} % simbolo povm     \newcommand{\zM}{\textrm{z}} % realizzazione, contatore di \z     \newcommand{\f}{h} % funzione stima     \newcommand{\mx}{m} % rappresenta il simbolo con massima probabilità a priori     \newcommand{\fTable}{\J}%{T}     \newcommand{\ang}{\phi}     \newcommand{\angDP}{\pi}%{\varphi}     \newcommand{\nextS}{\textrm{children}}     \newcommand{\pro}{\wp} % probabilità per gli stati, densità di probabilità     \newcommand{\proj}{\Pi} % proiettore nello spazio di Hilbert degli stati coerenti          % Dynamic Programming     \newcommand{\s}{s}      % stato del sistema     \renewcommand{\S}{S}        % dominio stato     \renewcommand{\u}{u}        % controllo      \newcommand{\baru}{\bar{\u}} % sequenza di controlli     \newcommand{\U}{U}      % dominio controllo     \newcommand{\w}{w}      % disturbo     \newcommand{\W}{W}      % dominio disturbo     \newcommand{\E}[2][]{\operatorname*{\textrm{E}}_{#1}\left[ #2 \right]} % aspettazione E_#1[ #2 ]     \newcommand{\J}{J}      % funzionale           %-----------------------EXTERNALIZATION (DO NOT CHANGE)------------------------------------------------------------------%           %%set up externalization          \usetikzlibrary{external}     \tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error     -interaction=batchmode -jobname "\image" "\texsource" &&      dvips -o "\image".ps "\image".dvi &&     ps2eps "\image.ps"}}     \tikzexternalize[shell escape=-enable-write18]           %\usetikzlibrary{external}     %\tikzset{external/system call={pdflatex \tikzexternalcheckshellescape -halt-on-error      %-interaction=batchmode -jobname "\image" "\texsource" &&     %pdftops -eps "\image".pdf}}     %\tikzexternalize[shell escape=-enable-write18]          %-----------------------DOCUMENT------------------------------------------------------------------%     \begin{document}          \tikzsetnextfilename{figure3}     \input{fig3.tex}          \end{document}      and the fig3.tex file               %\tikzsetnextfilename{figure3}     % Set the overall layout of the tree     \tikzstyle{level 1}=[level distance=1.3cm, sibling distance=2cm]     \tikzstyle{level 2}=[level distance=1.3cm, sibling distance=1cm]     \tikzstyle{level 3}=[level distance=1.3cm, sibling distance=0.7cm]     \tikzstyle{level 4}=[level distance=.5cm, sibling distance=0.35cm]     % Define styles for bags and leafs     \tikzstyle{bag} = [circle,draw=black, line width=1pt,text width=1.7em, text centered]     \tikzstyle{bag2} = [line width=1pt,text width=1.8em, text centered]     \tikzstyle{end} = [circle, minimum width=1pt,fill,inner sep=0pt]     \tikzstyle{link} = [->,shorten <=1pt,>=stealth',line width=1pt]     \begin{tikzpicture}[scale=1.5,grow=right]%, sloped]     \node[ bag] {$\ang$}         child {             node[ bag] {$\ang^\l$}                         child {                     node[ bag] {$\ang^{\l\l}$}                         child{                             node[bag] {$\ang^{\l\l\l}$}                                 child{                                     node[end, label={right}:{$\barz=\l\l\l\l$}] {}                                                     %node[end, label={right}:{$\barz=\l\l\l\l \Rightarrow \y = 4 $}] {}                                     edge from parent[link]     %                               node[below] {\l}                                 }                                 child{                                     node[end, label={right}:{$\barz=\l\l\l\o$}] {}                                                     %node[end, label={right}:{$\z=\l\l\l\o \Rightarrow \y = 3 $}] {}                                     edge from parent[link]     %                               node[above] {\o}                                 }                             edge from parent[link]                             node[below] {$\l$}                         }                         child{                             node[bag] {$\ang^{\l\l\o}$}                                 child{                                     node[end, label={right}:{$\barz=\l\l\o\l$}] {}                                                     %node[end, label={right}:{$\barz=\l\l\o\l \Rightarrow \y = 4$}] {}                                     edge from parent[link]     %                               node[below] {\l}                                 }                                 child{                                     node[end, label={right}:{$\barz=\l\l\o\o$}] {}                                                     %node[end, label={right}:{$\barz=\l\l\o\o \Rightarrow \y = 2$}] {}                                     edge from parent[link]     %                               node[above] {\o}                                 }                             edge from parent[link]                             node[above] {$\o$}                         }                                     edge from parent[link]                     node[below] {$\l$}                 }                 child {                     node[ bag] {$\ang^{\l\o}$}                         child{                             node[bag2] {}%{$\vdots$}                         }                         child{                             node[bag2] {$\vdots$}                         }                                     edge from parent[link]                     node[above] {$\o$}                 }             edge from parent[link]         node[below] {$\l$}            }         child {             node[ bag] {$\ang^\o$}                         child {                     node[ bag] {$\ang^{\o\l}$}                         child{                             node[bag2] {$\vdots$}                                 %child{                                     %node[end, label=right:{$\vdots$}] {}                                 %}                                 %child{                                     %node[end, label=right:{$\vdots$}] {}                                 %}                                                           }                           child{                             node[bag2] {}%{$\vdots$}                         }                                    edge from parent[link]                     node[below]  {$\l$}                 }                 child {                     node[ bag] {$\ang^{\o\o}$}                         child{                             node[bag] {$\ang^{\o\o\l}$}                                 child{                                     node[end, label={right}:{$\barz=\o\o\l\l$}] {}                                                     %node[end, label={right}:{$\barz=\o\o\l\l \Rightarrow \y = 4$}] {}                                     edge from parent[link]     %                               node[below] {\l}                                 }                                 child{                                     node[end, label={right}:{$\barz=\o\o\l\o$}] {}                                                     %node[end, label={right}:{$\barz=\o\o\l\o \Rightarrow \y = 3$}] {}                                     edge from parent[link]     %                               node[above] {\o}                                 }                             edge from parent[link]                             node[below] {$\l$}                         }                                    child{                             node[bag] {$\ang^{\o\o\o}$}                                 child{                                     node[end, label={right}:{$\barz=\o\o\o\l$}] {}                                                     %node[end, label={right}:{$\barz=\o\o\o\l \Rightarrow \y = 4$}] {}                                     edge from parent[link]     %                               node[below] {\l}                                 }                                 child{                                     node[end, label={right}:{$\barz=\o\o\o\o$}] {}                                                     %node[end, label={right}:{$\barz=\o\o\o\o \Rightarrow \y = 1$}] {}                                     edge from parent[link]     %                               node[above] {\o}                                 }                             edge from parent[link]                             node[above] {$\o$}                         }                                     edge from parent[link]                     node[above] {$\o$}                 }               edge from parent[link]         node[above] {$\o$}           };     \end{tikzpicture}      **Update** I ask the revisor how he/she tested the figures, and he/she replies that they tried opening the figures with Photoshop, Illustrator and by making PDFs from the eps figures you provided. So I tried to open them with Photoshop and Illustrator and indeed I got the error "Could not complete your request because Photoshop was unable to parse the Postscript". Although on one hand one could blame Photoshop, I wonder if anyone could test with it the eps generated by the script, in order to understand if the problem is in the Tikz+Externalization generation of EPS, or in MY system configuration, or actually in Photoshop.


title: convex concave sign in tkz-tab

text: I'm a newby with both `tkz-tab` and `tikz`. I'd like to use `tkz-tab` to present the analysis of a function. Is there a way to draw symbols for convex and concave that span over the whole diagram's cell, in the way the arrow are drawn ? Up to now I've tried to use cup and cap symbols, but the result is not suitable. I would like to have something like a portion of a parabola. Here is a mwe :               \documentclass{article}     \usepackage{tkz-tab}     \usepackage{amsmath,fullpage}     \begin{document}     \begin{tikzpicture}     \tkzTabInit[lgt=2,espcl=1]{         $x$         /1,         $\sin(x)$   /1     }%      {         $-\pi$, $0$ , $\pi$      }%     \tkzTabLine{  , {\Huge \smile} , t , \frown , }     \end{tikzpicture}      \end{document}


title: Draw dots at the beginning and at the end of an arrow with xypic

text: I want to draw the following figure : ![enter image description here](http://i.stack.imgur.com/sowrh.png) I have compiled with following code to get it :               \documentclass{book}     \usepackage[all]{xypic}     \begin{document}      $\xymatrix{\vdots && \vdots \\      \downarrow && \downarrow\\     A \ar[rr] && B\\     \downarrow && \downarrow \\     \vdots && \vdots}$     \end{document}      which produces : ![enter image description here](http://i.stack.imgur.com/CfgeJ.png) How can I draw my desired diagram with 'xypic'.


title: How do you read LaTeX syntax

text: Coming from the programming language side, I am used to the very regular syntax of these languages. E.g. in Python a function call has to be like below:               callfun(arg1,arg2,key1=val1,key2,val=2)      This makes understanding the code easy. In LaTeX, I see much more free usages of syntax.               \multirow{3}{*}{\parbox{1cm}{...      or like               \acommand[options]{content}      which I find confusing. So far to me it seems writers of these `\command` s can define whatever syntax they want for their commands. Is that right? So, what are the rules of command syntax in latex?


title: Include TEXT from another file before generating PDF

text: I have a tex file which compiles fine and generates PDF without any problem. I need to include text (contents of a text file) from another .txt file at the end of tex file so that generated PDF would have this text in it. In other words, How can I call another file (text file) to include its contents in a tex file before generating PDF? Please advise, Thanks a lot!!


title: Problem in Kile editor so LaTeX file is not running

text: EDITED post: In the following Template http://www.latextemplates.com/template/masters- doctoral-thesis               \documentclass[11pt, a4paper, oneside]{Thesis} % Paper size, default font size and one-sided paper          \graphicspath{{Pictures/}} % Specifies the directory where pictures are stored          \usepackage[square, numbers, comma, sort&compress]{natbib} % Use the natbib reference package - read up on this to edit the reference style; if you want text (e.g. Smith et al., 2012) for the in-text references (instead of numbers), remove 'numbers'      \hypersetup{urlcolor=blue, colorlinks=true} % Colors hyperlinks in blue - change to black if annoying     \title{\ttitle} % Defines the thesis title - don't touch this          \begin{document}          \frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages          \setstretch{1.3} % Line spacing of 1.3          % Define the page headers using the FancyHdr package and set up for one-sided printing     \fancyhead{} % Clears all page headers and footers     \rhead{\thepage} % Sets the right side header to show the page number     \lhead{} % Clears the left side page header          \pagestyle{fancy} % Finally, use the "fancy" page style to implement the FancyHdr headers          \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page          % PDF meta-data     \hypersetup{pdftitle={\ttitle}}     \hypersetup{pdfsubject=\subjectname}     \hypersetup{pdfauthor=\authornames}     \hypersetup{pdfkeywords=\keywordnames}          %----------------------------------------------------------------------------------------     %   TITLE PAGE     %----------------------------------------------------------------------------------------          \begin{titlepage}     \begin{center}          \textsc{\LARGE \univname}\\[1.5cm] % University name     \textsc{\Large Doctoral Thesis}\\[0.5cm] % Thesis type          \HRule \\[0.4cm] % Horizontal line     {\huge \bfseries \ttitle}\\[0.4cm] % Thesis title     \HRule \\[1.5cm] % Horizontal line          \begin{minipage}{0.4\textwidth}     \begin{flushleft} \large     \emph{Author:}\\     \href{http://www.johnsmith.com}{\authornames} % Author name - remove the \href bracket to remove the link     \end{flushleft}     \end{minipage}     \begin{minipage}{0.4\textwidth}     \begin{flushright} \large     \emph{Supervisor:} \\     \href{http://www.jamessmith.com}{\supname} % Supervisor name - remove the \href bracket to remove the link       \end{flushright}     \end{minipage}\\[3cm]          \large \textit{A thesis submitted in fulfilment of the requirements\\ for the degree of \degreename}\\[0.3cm] % University requirement text     \textit{in the}\\[0.4cm]     \groupname\\\deptname\\[2cm] % Research group name and department name          {\large \today}\\[4cm] % Date     %\includegraphics{Logo} % University/department logo - uncomment to place it          \vfill     \end{center}          \end{titlepage}          %----------------------------------------------------------------------------------------     %   DECLARATION PAGE     %   Your institution may give you a different text to place here     %----------------------------------------------------------------------------------------          \Declaration{          \addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics          I, \authornames, declare that this thesis titled, '\ttitle' and the work presented in it are my own. I confirm that:          \begin{itemize}      \item[\tiny{$\blacksquare$}] This work was done wholly or mainly while in candidature for a research degree at this University.     \item[\tiny{$\blacksquare$}] Where any part of this thesis has previously been submitted for a degree or any other qualification at this University or any other institution, this has been clearly stated.     \item[\tiny{$\blacksquare$}] Where I have consulted the published work of others, this is always clearly attributed.     \item[\tiny{$\blacksquare$}] Where I have quoted from the work of others, the source is always given. With the exception of such quotations, this thesis is entirely my own work.     \item[\tiny{$\blacksquare$}] I have acknowledged all main sources of help.     \item[\tiny{$\blacksquare$}] Where the thesis is based on work done by myself jointly with others, I have made clear exactly what was done by others and what I have contributed myself.\\     \end{itemize}          Signed:\\     \rule[1em]{25em}{0.5pt} % This prints a line for the signature          Date:\\     \rule[1em]{25em}{0.5pt} % This prints a line to write the date     }          \clearpage % Start a new page          %----------------------------------------------------------------------------------------     %   QUOTATION PAGE     %----------------------------------------------------------------------------------------          \pagestyle{empty} % No headers or footers for the following pages          \null\vfill % Add some space to move the quote down the page a bit          \textit{``Thanks to my solid academic training, today I can write hundreds of words on virtually any topic without possessing a shred of information, which is how I got a good job in journalism."}          \begin{flushright}     Dave Barry     \end{flushright}          \vfill\vfill\vfill\vfill\vfill\vfill\null % Add some space at the bottom to position the quote just right          \clearpage % Start a new page          %----------------------------------------------------------------------------------------     %   ABSTRACT PAGE     %----------------------------------------------------------------------------------------          \addtotoc{Abstract} % Add the "Abstract" page entry to the Contents          \abstract{\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics          The Thesis Abstract is written here (and usually kept to just this page). The page is kept centered vertically so can expand into the blank space above the title too\ldots     }     \end{document}      In the abstract page it seems that the university and author name are automatically placed. I think they referred the university name here               \textsc{\LARGE \univname}\\[1.5cm] % University name     \textsc{\Large Doctoral Thesis}\\[0.5cm] % Thesis type      but I have not got that how university name appeared automatically on the abstract section. ![enter image description here](http://i.stack.imgur.com/dewNV.png)


title: doing 3x3 subplots with the colorbar located northside

text: I wanted to have my nine (2d) matlab plots shown as 3x3 subplots in latex with the colorbar located northside. I have no idea how to do this especially that I have the colorbar saved separately from the figures as .eps image. any one familiar with latex and matlab , please guide me through this. thanks,


title: Tikz externalization: Latex dvi/ps produces a4paper boundary-box around figure

text: I am successfully using tikz in combination with externalization and pdflatex for some time now. But now I need to switch to latex->dvi->ps. I followed the instructions from the tikz documentation and read a lot of user posts. I can compile the minimal example (see below) without any errors, but the external image (ps) generated by dvi2ps has the size of an a4-paper. Therefore latex places the figure after "Text before image" and "Text after image". Is it possible that the bounding box is not determined correctly? I've tried a similar scenario a couple of months ago on a Mac OS X system and it worked. Now, I am running a Windows system with the most recent MikTeX version (I updated all packages). Does anybody know, if it is a bug in dvips or in tikz? Or maybe I did something wrong. Thank you for your help! PS: I also tried a lot of other system calls (pdflatex -> pdftops) and everything from here: Export eps figures from TikZ without any success.               \documentclass[a4paper]{article}     \usepackage{tikz}     \usetikzlibrary{external}          \tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error     -interaction=batchmode -jobname "\image" "\texsource" &&     dvips -o "\image".ps "\image".dvi }}          \tikzexternalize          \begin{document}          Text before image.          \begin{figure}[h]     \centering         \begin{tikzpicture}         \clip (0,0) rectangle (1,1);         \draw[red] (0,0) -- (1,1);         \draw[red] (1,0) -- (0,1);         \draw[blue] (0,0) rectangle (1,1);         \end{tikzpicture}     \end{figure}          Text after image.          \end{document}      Edit: I tried the minimal example on another windows system and got the same a4paper box. Calling               dvips -E* -o "\image".ps "\image".dvi       instead of the code above leads to a figure without any bounding box. Therefore latex inserts the image on top of the text. It is also possible to change the format as an argument of dvips, but I do not intended, to specifiy a fixed bounding box as a general case.


title: How do I add a \vector to a table?

text: I am trying to make a table that shows how an element moves from location in the table to another. I would like to add a vector that starts at the first element and goes to the second element. How do I do this? I've tried putting the table in a picture but I get the error: Not in outer par mode.               \begin{figure}     \setlength{\unitlength}{1mm}     \begin{picture}(500,400)     \put(20,-10){\vector(1,-1){5}}     \begin{table}     \begin{tabular}[t]{ll}     \textbf{Something here} &  \\ \hline     A & F \\      B & A \\      C & G \\      D & H \\      E & I%     \end{tabular}     \end{table}     \end{picture}     \end{figure}      I want a vector pointing from A in left column to A in right column. And I've tried putting the picture in a cell but the `\vector` commands don't show up in the PDF. I have also searched Google but can't find how to do it. Can anyone help?


title: Getting a larger font (NOT \fontsize)?

text: I am trying to get some playing cards made with the help of the `allrunes` package. However, the package "only" comes with fonts up to 35pt installed. If I set `\fontsize` to something larger, `pdflatex` resets to the maximum installed size. How do I get larger glyphs? (Like, large enough to fill 1/6th of a page?) I know this should be comparatively easy, and I tried to google for it, but all I get are hundreds of references to `\fontsize` and `\Huge`, which doesn't help... :-\


title: Intersection (\cap) for ASL-abstract

text: For my submission of an abstract using the required abstract template of the Association of Symbolic Logic (http://aslonline.org/abstractresources.html) I do not get the intersection sign properly. Here is my minimal example, but the asl.cls-file provided by the link is needed for compilation:               \documentclass[bsl,meeting]{asl}          \usepackage [greek, english]{babel}     %\usepackage{amssymb}     %\usepackage[utf8]{inputenc}     %\usepackage[T1]{fontenc}     %\usepackage{textcomp}          %\usepackage{amsmath}     %\usepackage{amsfonts}          \AbstractsOn          \pagestyle{plain}          \def\urladdr#1{\endgraf\noindent{\it URL Address}: {\tt #1}.}               \newcommand{\NP}{}     \usepackage{verbatim}     \usepackage{teubner}                              \begin{document}          $\cap$          \end{document}


title: Spaces eaten up in bibliography after location and before colon

text: I'm very new LaTeX and currently trying to tweak my bibliography to fulfill my needs. This is what it looks like at the moment: "Frey, Christel: Erfolgsfaktor Vertrauen : Wege zu einer Vertrauenskultur im Unternehmen. 1. Aufl. Wiesbaden: Gabler, 2011. - isbn: 978-3-8349-2539-8." What I want is a space after the location (goal is: "... Wiesbaden : Gabler ..."). So far I found the "newbibmacro*{institution+location+date}" in the corresponing bbx-file:               \newbibmacro*{institution+location+date}{%     \printlist{location}%     \iflistundef{institution}     {\setunit*{\addcomma\space}}     {\setunit*{\addcolon\space}}%     \printlist{institution}%     \setunit*{\addcomma\space}%     \usebibmacro{date}%     \newunit}      But wherever I added "\space" or s.th. like that didn't change a thing. But nevertheless I am able to insert characters at the desired location. Only spaces are somehow "eaten up". I'm not sure what you need, so here's some additional information from my tex- file:               \usepackage[ngerman]{babel}     \usepackage[style=trad-plain, citestyle=authoryear-icomp, bibstyle=authortitle, maxcitenames=1, babel=other]{biblatex}     \usepackage[babel,german=guillemets]{csquotes}


title: How move each line in text

text: In steganography is an interesting way of conveying information. Each line is either raised by a few points or not raised at all. How will cause it to subsequent lines of text have been raised about the 4pt up? Map of lifts should be written as possible to change the data every time. Line shifting, change interline ![example image](http://i.stack.imgur.com/dMjMv.jpg)


title: Problem using latexdiff and pdflatex with custom command

text: Using latexdiff I have the problem, that by adding new `\section`, I get the following error by trying to run pdflatex.               ! Argument of \UL@word has an extra }.     <inserted text>                      \par      l.69 \subsection{\DIFadd{Some Text}}      Here you can see the redefined `\section` command...               \renewcommand{\section}{%     \@startsection{section}%     {1}     % Structure level     {0mm}   % Indention     {2ex plus 1ex minus 1ex}            % Pre-Margin     {0.5ex plus 0.5ex minus 0.5ex}      % Post-Margin     {\chapterheadfont\Large\bfseries}   % Style     }     \renewcommand{\subsection}{%     \@startsection{subsection}%     {2}     % Structure level     {0mm}   % Indention     {1.5ex plus 1ex minus 0.5ex}        % Pre-Margin     {0.3ex plus 0.3ex minus 0.3ex}      % Post-Margin     {\chapterheadfont\large\bfseries}   % Style     }      How can I fix the problem? It would work for me also to ignore the changed section names.


title: Avoiding empty page between a very full page and the index?

text: I'm getting an empty page between the last page of the book and the index. The reason seems to be an over-full last page of text. I'm already using **openany**. In the following example, all the "bla" lines are on the first page, the second page is blank (erroneously), and the third page contains the index. Commenting one line of "bla" fixes the situation: the first page contains the lines of "bla" and the second page contains the index. Is there anything else I can do? (Is this a bug I should report?)               \documentclass[a4paper,openany,twoside,notitlepage]{tufte-book}     \usepackage{makeidx}     \makeindex          \title{Test}     \author{Alex Schroeder}     \begin{document}          \maketitle% this prints the handout title, author, and date          \newthought{Test}\index{Test}.          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          bla          \printindex          \end{document}


title: tikz External: \tikzsetnextfilename and \tikzpicturedependsonfile

text: Consider the following MWE. If `\tikzpicturedependsonfile` is commented out, the code runs as expected. `A.dep` is created stating the dependency of `A.pdf` on `A.dat`. Now, lets try to add the tikz source file `A.tikz` as a dependency. However, if `\tikzpicturedependsonfile` is included in the code, then `\tikzsetnextfilename` does not have any effect and `main-figure0.pdf` is created instead of `A.pdf`. MWE:               \documentclass{report}     \usepackage{tikz,tikzscale,pgfplots,pgfplotstable}     \pgfplotsset{compat=1.7}     \usetikzlibrary{external}     \tikzexternalize[mode=list and make]     %     \begin{filecontents}{A.tikz}       \begin{tikzpicture}         \begin{axis}           \addplot [] table [header=false] {A.dat};         \end{axis}       \end{tikzpicture}     \end{filecontents}     %     \begin{filecontents}{A.dat}       1 1        2 2      \end{filecontents}     %     \begin{document}       \newcommand{\figFilename}{}       \renewcommand{\figFilename}{A}       \tikzsetnextfilename{\figFilename}       \tikzpicturedependsonfile{\figFilename.tikz}       \input{\figFilename.tikz}     \end{document}      The aim of this activity is to add the source file (`A.tikz`) for the `tikzpicture` to the dependency along with the data file (`A.dat`) which is added by default. Once this is achieved, any time a tikzpicture has been edited, it will get recompiled automatically.


title: Reference sorting within the .bst file

text: I am using a master thesis template which was prepared from my university. But when I compile my thesis, the references are sorting alphabetically instead of by appearance in the document. I have one `.bst` file. But I couldn't find any clue about "sorting" or "ordering" in the `.bst` file. So how could I change the sorting from alphabetically to appearance order in the file from my `.bst` file ?


title: elsevier class error

text: I've been trying LateX and Lyx out for a few days. Lyx is really a help for a new-comer and I had few troubles so far, except for some unknown errors when I was configuring elsarticle documentclass. I have installed Lyx, MacTex 2012, and already put the `elsarticle` bundle into `/usr/local/texlive/2012/texmf-local` and reconfigured Lyx. Then I tried selecting `elsarticle` in Lyx and the exported TeX code in Texmaker. They both gave error information. Here is a picture of the error info: ![link](http://wordsterence.files.wordpress.com/2012/12/screen- shot-2012-12-18-at-12-07-10-pm.png) The file in first line is `hyperref.sty` under `texmf- dist/tex/latex/hyperref`.               %% LyX 2.0.5 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass{elsarticle}     \usepackage{lmodern}     \renewcommand{\sfdefault}{lmss}     \renewcommand{\ttdefault}{lmtt}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \setlength{\parskip}{\smallskipamount}     \setlength{\parindent}{0pt}     \usepackage{amsmath}     \usepackage[unicode=true,pdfusetitle,      bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,      breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]      {hyperref}     \usepackage{breakurl}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.     \numberwithin{equation}{section}     \numberwithin{figure}{section}          \makeatother          \begin{document}     sds     \end{document}


title: The font "Kozuka" can somehow not be used in XeLaTeX on my system

text: This seems very weird to me, because the Kozuka fonts are the only ones that cannot be used. My system: Windows 8 64-bit, MikTeX 2.9 64-bit, TeXWorks 0.4.4 r.1003.               \documentclass[12pt]{article}          \usepackage{fontspec}     \defaultfontfeatures{Ligatures=TeX}     \setmainfont{Meiryo}          \begin{document}          Hello, world! わたしはにんげんです。          \end{document}      works and produces the expected output: Text containing Latin and Japanese characters. Using `\setmainfont{Arial}` instead of `\setmainfont{Meiryo}` also produces the expected output: Latin characters and squares instead of Japanese characters because Arial doesn't contain those characters. Using `\setmainfont{alkjsfd}` also produces the expected output: fontspec error: "font-not-found". But using `\setmainfont{Kozuka Gothic Pro R}` produces just an empty sheet of paper. I have no idea why.


title: Using package minted inside a multicol (multicol package)

text: I'm trying to list some code (package **minted** ) inside a multicol (package **multicol** ). ## Example Code:               \documentclass{article}          \usepackage{minted}     \usepackage{multicol}          \begin{document}            \begin{multicols}{2}         This is a listing inside a multicolom:         \begin{listing}           \begin{minted}{sql}             SELECT * FROM table1           \end{minted}           \caption{Some random SQL Query}           \label{lst:sql}         \end{listing}       \end{multicols}            This is a listing outside the multicolums:       \begin{listing}         \begin{minted}{sql}           SELECT * FROM table2         \end{minted}         \caption{Some other random SQL Query}         \label{lst:sql2}       \end{listing}          \end{document}      ## Output: ![output](http://i.imgur.com/pLpgr.png) ## Question: The first listing is missing, as you can see. When not using minted inside the listing environment the code shows up, but without the needed chaption/label. How can I use the minted listing environment inside a multicol with labels and chaptions?


title: Lightweight xelatex

text: On my winXP machine MikTEX installation folder is almost 500M. That's ok when I use it myself. I want to bundle installation package or pre-installed latex distribution (I need xeLaTeX especially) in my software. But pulling a 500M of stuff with my setup.exe is a bit more than I expected. Is there any way to exclude unneeded packeges and or parts of miktex to reduce it's size, while leaving classes that I use? Or maybe get a clean latex/xelatex install and try to compile my file and let package manager get required packaged from CTAN?


title: Contour plot of data, where the data is of the form x_i, y_i, f(x_i,y_i)

text: I would like to plot the following data in a contour plot using pgfplots: data.txt. The data is of the form x_i, y_i, f(x_i,y_i) and contains NaN values. I am able to plot this exact data in a surface plot using pgfplots. I have read Section 4.6.8 of the pgfplots documentation but I am still unclear on how to do this. This is my attempt at a MWE:               \documentclass{article}          \usepackage{tikz,pgfplots}     \pgfplotsset{compat = 1.8}          \begin{document}          \begin{tikzpicture}      \begin{axis}[ view = {0}{90} ]         \addplot3[ contour gnuplot ]                  file {data.txt};      \end{axis}     \end{tikzpicture}          \end{document}        The error I get is (the name of my file is plot_data.tex):               PGFPlots: reading {data.txt}     runsystem(gnuplot "plot_data_contourtmp0.script")...disabled (restricted).          ! Package pgfplots Error: sorry, plot file{plot_data_contourtmp0.table} could not be opened.      I receive the same error even when I replace all NaN values for zeros. **Edit** I have installed gnuplot. I use Miktex 2.9 with WinEdt 8.0. I have enabled shell escape with the option --tex-option=-shell-escape for the PDFTeXify that I always use. I get the same error as before, but now with some more descriptive text underneath:               Package pgfplots Warning: the current plot has no coordinates      (or all have been filtered away) on input line 35.           [warning /pgfplots/warning/plot without coordinates]          Package pgfplots Warning: You have an axis with empty range (in direction z).      Replacing it with a default range and clearing all plots. on input line 36.           [warning /pgfplots/warning/empty range cleared axis]


title: Macro after heading shall not allow page break.

text: In a previous question I needed a solution for the following problem: I had defined a command for inserting special custom notes in my document with the `fixme` package and if those notes followed a section heading, it was possible that there was a page break directly after the heading: Heading at the bottom of the page. A working solution was to add an `\mbox` to the command, like: `\newcommand{\N}[1]{\mbox{}\fxfatal*[inline=true,nomargin]{/#1/}{}}` Unfortunately, now I found an unwanted effect of that: When I typeset my document in "final" mode (when the `fixme` package should automatically remove all notes from the pdf, these commands \N{...} require space on the page and therefore create **big skips**. If I remove the `\mbox`, that's fine. **Question:** How can I modify the command, that it does not allow a page break between heading and the following text, but also does not produce empty paragraphs in final mode?               \documentclass[11pt, a4paper%,  halfparskip     twoside, autooneside, %doppelseitiges Layout, automatische Anpassung der Kopfzeile bei einseitigem Layout     headinclude, footexclude, %Parameter für Satzspiegelberechnung: Kopfzeile miteinbeziehen, Fußzeile ausschließen     %tocleft, listsleft, % Verzeichnisse ohne Einzug     liststotoc, bibtotoc, %TOC enthält Abb.- und Tab.-Verz. und Literaturverz.     tablecaptionabove, noonelinecaption, headsepline, halfparskip %Tabellenüberschrift über Tabellen, Trennlinine unter Kopfzeile, (halber) Abstand zwischen Absätzen     ]{scrreprt}          \usepackage[ngerman]{babel}          \usepackage{showkeys}          \usepackage[final]{fixme} %Ueberarbeitungsmarkierungen im Dokument     \fxsetup{theme=color, inline, targetlayout=color, author=} %Optionen für fixme-Package     \newcommand{\N}[1]{\mbox{}\fxfatal*[inline=true,nomargin]{/#1/}{}}     \newcommand{\Nmod}[1]{\fxfatal*[inline=true,nomargin]{/#1/}{}}          \raggedbottom          \begin{document}          \chapter{Chapter one}\label{chapp1}     \section{Section one in chapter one}     \N{my fatal note is here}     \subsection{Subsection one of section one in chapter one}     \subsubsection{Subsubsec}     \N{my fatal note is here}     Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur.               \section{Section two in chapter one}     \Nmod{my fatal note is here}     \subsection{Subsection one of section two in chapter one}     \subsubsection{Subsubsec}     \Nmod{my fatal note is here}     Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur.          \end{document}


title: Position tikz graph at the bottom of twocolumn page in memoir

text: According to section 10.4 of `memoir` manual double column ﬂoats may only be placed at the top of a page. However, I need a `tikz` graph at the bottom of the page. So I have tried using `minipage`(floating is not required), but have not been able to get this approach to work either - either the text flows through the graph, or the graph is not at the bottom of the page. What should I change to properly position a `tikz` figure at the bottom of the twocolumn page?               \documentclass[twocolumn,article]{memoir}          \usepackage{lipsum}     \usepackage{tikz}          \begin{document}          \section{First section}     \lipsum[1]          \begin{minipage}[b]{\textwidth}     \makebox[\textwidth]{%     \tikz\node[draw,fill=blue!20, minimum height = 4cm, text width=\linewidth] {};     }     \end{minipage}          \lipsum[2-9]          \begin{minipage}[b]{\textwidth}     \makebox[\textwidth]{%     \tikz\node[draw,fill=blue!20, minimum height = 4cm, text width=\linewidth] {};     }     \end{minipage}               \end{document}


title: Table wrapping in tables not working

text: I am having a problem with text wrapping in a long table. Here is a copy of my table:               \begin{longtable}[c]{l|b{2in}b{3in} b{2in}}          %\centering             %\begin{tabular}{llll}          Author and Year & Methods & Conformers found & Conclusion\\     \hline     \\     \citet{vishveshwara_77}&Single-point energy calculations at HF/4-31G of glycine rotamers generated at 60? intervals about C, C׃, and C bonds & Ip, IIp, IIIp&The lowest energy structure is Ip, giving energy order as Ip<IIp<IIIp\\       %\end{tabular}      \end{longtable}      I have tried many things but the second colon overruns the page. I have tried the rotating, sideways and supertable environment but none works. I am starting to think it is an incompatibility with some of the packages I am using because when I create a new file and past just the table it seems to work well. Here is a copy of my main file               \documentclass[letterpaper,12pt, twoside,openright]{book}     \usepackage[hmargin=1.2in, vmargin=1.2in]{geometry}     %\linespread{1.2}%     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{url,parskip}     \usepackage{amssymb}%     \usepackage[pdftex]{graphicx}     \usepackage[update,prepend]{epstopdf}     \usepackage{color}     \usepackage{longtable}     \usepackage{rotating}     \usepackage{tabularx}     \usepackage{floatflt}     \usepackage{dcolumn}% Align table columns on decimal point     \usepackage{makeidx}     \usepackage[hang,small]{caption}%samllcaptions     \setlength{\captionmargin}{25pt}     \usepackage{verbatim}%     \pagestyle{headings}      \usepackage{makeidx}     \usepackage{subfig}% for placing 2 figures on same line     \usepackage{tabularx}     \usepackage{pdfsync}     % some useful packages     \usepackage{lscape}%for landscape     \usepackage{amsmath,amssymb,amsfonts,amsthm}     \usepackage{graphicx}     \usepackage{bbm}     \usepackage{bm}% bold math     %\usepackage{setspace}% line spacing     \usepackage[version=3]{mhchem}%chemical symbols     %\usepackage[pdftex]{hyperref}%pdf bookmarks     \usepackage[bookmarks=true]{hyperref} %hyperref     \urlstyle{same}     \usepackage[square, comma, sort&compress]{natbib}     \bibpunct{[}{]}{,}{s}{}{;}     \usepackage{fixltx2e}% textscriping     \usepackage{soul}      Any help will be greatly appreciated. Thanks


title: \mathop in sums and limits

text: What is the \mathop command meant to be, officially? I see it used in indexes of sums and limits to improve the spacing, e.g.               \sum_{n\mathop = 1}^\infty a_n      Why doesn't it just format it like this automatically? It looks so much better.


title: \leftarrow does not work

text: I am trying to write a document in which for some reason some of the things like `\overleftarrow{example}` works but `\leftarrow` and `\rightarrow` etc. does not work. Any suggestions?


title: How to add a URL to a LaTeX bibtex file?

text: I'm using `bibtex` for my bibliography in LaTeX. I have some URL's I need to cite in the paper. How do I add URLs into the `.bib` file? A typical section in my `.bib` file looks like this:               @conference{eigenfacepaper,       title={{Face recognition using eigenfaces}},       author={Turk, M. and Pentland, A.},       booktitle={Proc. IEEE Conf. on Computer Vision and Pattern Recognition},       volume={591},       year={1991}     }      I tried some misc sections in `bibtex` but they don't show up in my document.


title: Draw arrow in picture

text: \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}%     \usepackage{lmodern}     \usepackage[nomarginpar, textwidth = 16cm]{geometry}     \usepackage[svgnames,x11names]{pstricks}%%, pdf     \usepackage{pstricks-add}     \usepackage{multido}     \usepackage{mathtools}          \pagestyle{empty}     \begin{document}               \psset{nodesep=2pt}     \newpsstyle{DblDash}{linestyle=dashed, dash=1pt 1.5pt, doubleline}     \begin{psmatrix}[mnode=r,colsep=0.6,rowsep=0.5]          & &[name=1] $D_5$ \\      && [name=2] $\{e,a,a^2,a^3,a^4\}$ &\\     [name=3] $\{e,ab\}$ &  [name=4] $\{e,a^2b\}$  &  && [name=5] $\{e,a^3b\}$ & [name=6]$\{e,a^4b\}$\\          & & [name=7] $\{e\}$     \ncline{11}{21}\ncline{12}{22}     \ncline{21}{32}\ncline{22}{32}          \ncline{1}{2}     \ncline{2}{3}\ncline{2}{4}\ncline{2}{5}\ncline{2}{6}     \ncline{3}{7}\ncline{4}{7}\ncline{5}{7}\ncline{6}{7}                    \end{psmatrix}          \end{document}       ![enter image description here](http://i.stack.imgur.com/3RDxR.png) I drew the arrows with microsoft paint but i want to draw them with latex. I look up online, and got this `\todo[inline, color=green!40]{This is an inline comment.}` but it tampers with the picture :'(. Any suggestions?` How can I add coordinates so that I can make the arrow point where I want to, sort of like the answer to this Drawing arrow with text using TikZ


title: Transparency does not work correctly with alignment?

text: I would like to uncover a set of equations line by line with and the covered equations should be transparent. The problem occurs when I want to align those equations: somehow the transparency stops at the `&`-sign. I attached a minimum working example of the problem, where you can see that only the arrow is transparent instead of the whole line. I've read the `beamer` User's Guide but I couldn't find any detailed information about the `\uncover`-command and known complications, but maybe somebody here is able to help me. I appreciate any help.               \documentclass[xcolor=dvipsnames]{beamer}     \mode<presentation>     \usetheme{Boadilla}     \setbeamercovered{transparent}          \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage{lmodern,amsfonts,amsmath,amssymb,amsthm}          \title{Dummy-Titel}     \subtitle{Dummy-Untertitel}     \author{Autor}          \date{\today}          \begin{document}          \begin{frame}         \begin{align*}             \uncover<1->{& a = b \wedge b = c \\}             \uncover<2->{\Rightarrow & a = c \\}         \end{align*}     \end{frame}          \end{document}


title: Removing extra space with \pmod command

text: When using the \pmod command as a subscript to a sum, I often encounter some extra unwanted space. For example, writing               \[ \sum_{n \equiv 1 \pmod{k}} ... \]      produces the following image: ![enter image description here](http://i.stack.imgur.com/q3mbU.jpg) Does anyone have any ideas to delete the extra white space between the 1 and the open parenthesis?


title: How to create roller coaster text?

text: I want to specify a curved base line (rising and falling like a roller coaster), then to have the text positioned such that it flows along that line. Is there a way to achieve this?


title: Differences between \stackrel and \stackbin

text: What are the differences between `\stackrel` and `\stackbin`? In what situations is it better to use one or the other?


title: biblatex in TeXnicCenter?

text: How do I "install" biblatex in texniccenter? The editor has either an option to use "BibTex" or not. How do I "hook" biblatex into it instead? Sorry I am completely lost in what I am doing here.


I'm submitting my assignment and get error from the automated format checker. First of all, I use:               \documentclass[letterpaper,twocolumn,10pt]{article}          Error: Leading too small: minimum 12pt, saw values as small as 11.9pt      Why do you think this problems occur? Can I force if it happens for some reason?


title: LaTeX word wrapping poorly

text: LaTeX is not word wrapping this anything close to sanely:               \documentclass{article}     \usepackage{graphicx}     \usepackage{wrapfig}     \usepackage{geometry}     \usepackage{lipsum}     \geometry{margin=1in}     \begin{document}     \begin{wrapfigure}{r}{3.2in}       \rule{3in}{5in}     \end{wrapfigure}     \raggedright     \parindent=0.5in          \lipsum[1]          %     Q 1     One of the greatest strengths of the Chase ad is that the information is     presented in two main different styles of text. One style, which presents the     narrative of the character in the ad, is handwritten, which personalizes the     story and catches the audience's attention. Since the ad campaign is for the     business card ``Ink'', it is fitting for the text to look like it is written by     hand and with a pen.          \end{document}      Which renders as: ![fail](http://i.stack.imgur.com/j7gdq.png) Notice the first line of the second paragraph, and be horrified. Why is that rendering like that? (Even the first paragraph is dubious...)


title: Loopy newcommand causes hanged processing

text: By a too quick search/replace of "mathcal" by "mc" I ended up with a loopy or recursive statement like               \newcommand{\mc}{\mc}      It seems to cause the compilation of my document to hang. Is this a known bug? (Why has it not been fixed?)


title: Displaying results using chessboard

text: When displaying results of a game using chessboard, a mysterious Z shows up. In the following code, I would like to display the result as "1-0", but it shows up as "Z1-0." How can I avoid this?               \documentclass{amsart}     \usepackage{chessboard}     \usepackage{skak}     \begin{document}     \newgame     \mainline{1. e4 1-0}     \showboard     \end{document}


title: LaTeX is truncating my theorem reference numbers. How do I correct this?

text: I will have a Theorem, Lemma or Corollary and it will be numbered, say for example, 2.2.3 ... Unfortunately, every reference back to ANY Theorem, Lemma or Corollary simply state 2.2 ... It seems to be truncating the last number! Here is code that represents what I've done so far...               \documentclass[12pt]{amsart}     \newtheorem{theorem}{Theorem}[section]          \begin{document}          \chapter     \section          \begin{theorem} This is the theorem.     \begin{proof} This is the proof.     \end{proof}     \end{theorem}     \label{thm-01}          Now we reference Theorem \ref{thm-01}          \end{document}      The theorem labels itself as Theorem 1.1.1 but when I reference it later in the document it reads "No we reference Theorem 1.1" Any suggestions on how to fix this?


title: Get a box with zero depth including some text

text: How to get a box including some text in text mode, which depth 0pt?


title: How to use \autoref to create a page link?

text: I am using the `hyperref` package and want to use the `\autoref{}` command to output the page of the referenced label (similar to `\pageref{}`). The label is not inside a figure, equation, etc., so by default `\autoref{}` creates a `section x.y` link, instead of a `page z` link that I would like. Is there a way to do this?


title: Which font(s) provide for good readability while being economic?

text: The best readability means the readers feel comfortable when reading the document. The most economic means the printing needs the lowest cost for ink. Again, which font provides the best readability and the most economic? ## Edit I don't know much about fonts whether they are TeX, TrueType and so on. As long as the fonts are available free of charge and most printing companies have them, I will use the fonts.


title: Multi-line equations with explanations on some lines

text: I would like something like this:               STH     = STH       REASONS Explained.     = STH       LOOOOOOOOOOOOOOOOOOONG             REASON     = STH.      How can I do this?


title: trapezium, how to calculate angles?

text: I like to draw the following picture: ![enter image description here](http://i.stack.imgur.com/5Mq8a.jpg) It is generated with following code:                   \documentclass[12pt,tikz,border=3mm]{standalone}         %    \usepackage{zfc-book-standalone}         \usetikzlibrary{arrows.meta,positioning,shapes}         %---------------------------------------------------------------%                 \begin{document}         \begin{tikzpicture}[         node distance = 0mm and 0mm,     L/.style = {line width=1mm, draw=gray,                 arrows={-Stealth[fill=gray,inset=0pt,length=0pt 1.2,angle'=90]},                 },     T/.style 2 args = {name=n#1,                        draw=#2, fill=#2!20,% draw and fill color                 trapezium,                  trapezium stretches body,                 trapezium left angle=105, trapezium right angle=75,                 inner sep=0mm, outer sep=0mm,                  text width=33mm, text height=4mm,                 rotate=-15,                        }                             ]     %--------      \node[T={1}{teal}]                          {}  (0,0);      \node[T={2}{teal},  below right=of n1.bottom left corner,                 anchor=top left corner]  {};     \node[T={3}{teal},  below right=of n2.bottom left corner,                 anchor=top left corner]  {};     %--------      \node[T={4}{cyan},  trapezium left angle=75, trapezium right angle=105,                 text height=3mm, %text width=33mm + 2.8977/2 mm,                 rotate=30,                 below left =of n3.bottom right corner,                 anchor=top right corner]         {};     %--------          \foreach \i [count=\xi from 4]  in {5,6,7}     \node[T={\i}{teal},below right=of n\xi.bottom left corner,                 anchor=top left corner]  {};     %--------          \foreach \i in {1,2,...,7}     \draw[L,shorten <=11mm,shorten >=11mm]                     \ifnum\i=4     (n4.east) -- (n4.west)                 \else     (n\i.west) -- (n\i.east)                 \fi;               %--------     \draw[red,ultra thin]   (n1.top  left corner) |- (n7.bottom  left corner)                             (n1.top right corner) |- (n7.bottom right corner);     %----------------         \end{tikzpicture}                 \end{document}      I read all relevant questions here, but didn't find solution, hot to determine angles in trapezium such that left shapes border will be aligned (see discrepancy pointed out with red line on the left of stack). **Questions:** Is there a way, beside guessing, to determine left and right trapezium for given rotate angle, trapezium width and height in such a way, that left (and right) shape borders are aligned, i.e. lie on vertical line? **Edit:** After reading again Drawing parallelogram with fixed angle, width and height?, as suggest 'percusse' I realise, that if I change in above MWE minimum width and height with fixed measures obtained by text width and text height, I solve most of problems: ![enter image description here](http://i.stack.imgur.com/UZozE.jpg) Still open is the following **question** : How to determine text width, that it will be independent from text height?


title: How to insert an image into a two-column document such that the text flows from TL, BL, TR and finally BR?

text: **I don't like the following:** ![enter image description here](http://i.stack.imgur.com/nS1AV.png) **I want the following:** ![enter image description here](http://i.stack.imgur.com/NsIiB.png) **Code:**               \documentclass[demo,12pt,a4paper]{article}     \usepackage[margin=2cm]{geometry}     \usepackage{multicol,lipsum,graphicx}     \title{Foo Bar Baz}     \author{Foo Bar Baz}     \date{\today}     \begin{document}          \maketitle          \begin{abstract}     \lipsum[1]     \end{abstract}          \begin{multicols}{2}     \lipsum[2]     \end{multicols}          \begin{figure}[hbpt]     \centering     \includegraphics[width=0.5\textwidth]{}     \caption{Foo Bar Baz}     \end{figure}          \begin{multicols}{2}     \lipsum[3]     \end{multicols}          \end{document}      How to insert an image into a two-column document such that the text flows from TL (top left), BL (bottom left), TR (top right) and finally BR (bottom right)?


title: Gradient fill around section headings

text: Trying to make a document that has gradient fill around section titles, that are not effected by margins, as such: ![enter image description here](http://i.stack.imgur.com/A4ace.jpg) I managed to get the gradient effect but I can't figure out how to get it to start from the leftmost part of the page. I get this: ![enter image description here](http://i.stack.imgur.com/uv2Pz.png) with this code:               \documentclass{article}     \usepackage[explicit]{titlesec}     \usepackage{tikz}     \usetikzlibrary{shapes,shadows,calc}     \usepackage{lipsum}     \usepackage[hmargin=0.5in,bmargin=1in,tmargin=1in,centering]{geometry}          \definecolor{gray}{RGB}{236,236,236}          \newcommand\SecTitle[4]{%     \begin{tikzpicture}       \node[inner xsep=0pt,minimum height=3cm,text width=0.7\textwidth,           align=left,left color=gray,right color=white, signal to=#1,font=\Huge,anchor=#2]                at (#3,0) {#4};     \end{tikzpicture}%     }     %\titleformat{command}[shape]{format}{label}{sep}{before-code}{after-code}     \titleformat{\section}     {\normalfont}{}{0em}     {\SecTitle{east}{west}{0\paperwidth}{#1}}          \begin{document}          \section{Test Section One}     \lipsum[2]     \section{Test Section Two}     \lipsum[2]     \clearpage     \section{Test Section Three}     \lipsum[2]     \section{Test Section Four}     \lipsum[2]          \end{document}        * How do I extend the gradient fill to the left so it hits the edge of the page without effecting the margin of the text.   * How do I indent the section heading so that there's space between the beginning of the gradient and the title.


title: \listoftheorems not appearing on pdfbookmark

text: I'm using thmtools \listoftheorems to generate a list of the theorems that I use in my thesis. So far so good, I've been able to put the list in my table of contents. However, there is no entry for the generated list on the pdf bookmarks, see the image bellow. Can you guys help me or point me to a location where I can fix this issue? ![not adding to the bookmarks](http://i.stack.imgur.com/ZXjSh.png) Minimal Sample:               % DOC CLASS     \documentclass[10pt,a4paper]{report}          % PACKAGES     \usepackage[pdftex,bookmarks=true]{hyperref}     \usepackage[utf8x]{inputenc}     \usepackage{lipsum}     \usepackage{amsthm}     \usepackage{thmtools}          % METADATA     \author{Marcos}     \title{TeX StackExchange Minimal Doc}          % THEOREM DEF     \declaretheorem[thmbox=M,name=Definition]{definition}          % DOCUMENT     \begin{document}         \maketitle              \pdfbookmark{Table of Contents}{contents}            \tableofcontents         \listoftheorems\clearpage              \section{First Section}         \begin{definition}[TeX StackExchange]             TeX StackExchange is a nice place! =)         \end{definition}         \lipsum                  \subsection{First Subsection}             \begin{definition}[StackExchange]                 StackExchange is a great platform too!             \end{definition}             \lipsum              \section{Second Section}         \lipsum          \end{document}      Thanks in advance, Marcos


title: \paragraphfootnotes with text colour

text: I am having some trouble with my footnotes becoming coloured in certain situations. In particular, I am wanting to use `memoir`'s `\paragraphfootnotes`, but all the footnotes for a page become coloured if coloured text crosses a page boundary. I am using pdfLaTeX.               \documentclass{memoir}     \usepackage{xcolor}          \paragraphfootnotes          \begin{document}          This\footnote{a footnote} is\footnote{another footnote} \textcolor{red}{some red     \newpage text} with a page break.          \end{document}      If I don't use `\paragraphfootnotes` (i.e. if I just use `\plainfootnotes`) then everything works properly, but that is not an option when I sometimes have 50+ very short footnotes on a single page. Is there some colour-resetting code missing from `memoir`'s implementation of `\paragraphfootnotes`? How can I fix this? Note: This problem also appears if I use `\twocolumnfootnotes`.


title: Prevent a part of the caption from appearing in the list of figures

text: I am using the 'article' class, 'figure' environment. My captions are divided in two parts:   * the information about the figure   * the credits of the figure (for which I use `\textfff{}`) In my list of figures, I would like to omit the second part. Would you have a solution, please?


title: Portable MiKTeX Packages Management

text: I have already installed MiKTeX 2.9 (Not a portable version) in my computer. I have already had portable MiKTeX 2.9 in my USB. I want to use my portable version. But it lack of some packages. Whenever it requires, I need the internet connection to download missing packages. I am really bored to download the missing packages one by one from time to time. Is there any trick to import all the packages from non-portable MikTeX to portable MikTex?


title: Adding ToC line manually within appendix

text: I'm trying to manually add the `chapters` of my appendix to the ToC, but the result is horrible. The page number is placed directly next to the chapter name, instead of using the regular format where the page number aligns right. My code:               \documentclass{article}     \usepackage{pgfplots}     \usepackage{geometry}     \usepackage[toc,page,title]{appendix}          \begin{document}     \tableofcontents     \section{Week 1 - Intro \textcolor{blue}{\textbf{R}}}     \begin{appendices}     \addcontentsline{toc}{chapter}{Appendix A}      \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}     \chapter{\large{\textbf{Appendix A - \textcolor{blue}{R} commando's}}} \\     \chapter{\large{\textbf{Appendix B - Begrippenlijst}}}     \end{appendices}     \end{document}      Screenshot of the code: ![Screenshot](http://i.stack.imgur.com/UzBfr.png) So what I want is to have the "regular" ToC format when adding these chapters to the ToC. All manuals I can find offer no explanation as to how the `\addcontentsline` command works, but I'm almost certain the solution lies in that command, specifically in the "entry" part of the command (third argument).


title: How should I use and refer to the same bib database from writing several different latex documents?

text: I have several papers using the same 10 papers as in reference. Is there any way that one can just set up one bib database and use it for reference for all latex documents? There has been some discussion on this solution previously, but I could not follow that. Can some one give straight-forward steps to set this up?


title: How not show on the Table of Contents the subsubsubsection?

text: I found this little snippet to get subsubsubsection:               % -- For subsubsubsections:     \setcounter{secnumdepth}{4}     \setcounter{tocdepth}{3}     \makeatletter     \newcounter {subsubsubsection}[subsubsection]     \renewcommand\thesubsubsubsection{\thesubsubsection .\@alph\c@subsubsubsection}     \newcommand\subsubsubsection{\@startsection{subsubsubsection}{4}{\z@}%                                          {-3.25ex\@plus -1ex \@minus -.2ex}%                                          {1.5ex \@plus .2ex}%                                          {\normalfont\normalsize\bfseries}}     \newcommand*\l@subsubsubsection{\@dottedtocline{3}{10.0em}{4.1em}}     \newcommand*{\subsubsubsectionmark}[1]{}     \makeatother      So I get sections like 8.1.1.a. It works well, but the problem is that I see thoses subsubsubsections on the table of content, and I don't want to see them: ![enter image description here](http://i.stack.imgur.com/rWZGi.png) How can I remove them from the TOC?


title: MiKTeX 2.9 64bit error with BulletsADF

text: I have this error               Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "TESI".tex          This is makeindex, version 2.15 [MiKTeX 2.9 64-bit] (kpathsea + Thai support). Scanning  input file TESI.idx....done (51 entries accepted, 0 rejected). Sorting entries....done (330 comparisons). Generating output file TESI.ind....done (100 lines written, 0 warnings). Output written in TESI.ind. Transcript written in TESI.ilg.          Trying to make PK font BulletsADF at 420 DPI...          Running miktex-makemf.exe...          miktex-makemf: The BulletsADF source file could not be found. Running ttf2pk.exe...          miktex-makepk: PK font BulletsADF could not be created.          Process exited with error(s)      but I'm able to compile the same .tex file with MacTeX on my mac. How can I deal with this?


title: Compiler gives hundreds of "invalid character" suddenly

text: I am writing my latex document in TexMaker and suddenly in one of the thousands of compilations I make there is a error and I cant get rid of it. The error is:               ! Text line contains an invalid character.      The "funny" thing is that the error is in line 2, where I haven't changed anything for weeks and it turn out that there are 100 errors like this in the compilation, each of them with 1 more invalid character. Starts with one and then every error gives +1 character more to the string. Weird. Has anyone had this error before? It is clear that the error is not because of the invalid character, it doesn't exist! Any ideas?


title: Why doesn't prefixing an estyle work

text: Prefixing a style to a previously created `/.estyle` using the current (June 2014) iteration of Mac Latex inserts a `\noexpand` before the original style. As you can imagine this causes chaos! Bug?