title: Does TeX/LaTeX give a headstart with other programming languages?

text: I've seen many programmers here at tex.se, and I'd like to know how they view TeX/LaTeX as a programming language in relation to other languages, and whether it would boost my progress as a beginner using other (non-typesetting related) languages, that is of course in an abstract or semantic sense.


title: Default spacing after periods

text: In LaTeX, what is the default space that is inserted after a period `.` inside a block of text? What if I press `enter` (to start a new line in my GUI) after the period? Is it any different in the `memoir` class? Is there any way to change the default spacing?               \documentclass{memoir}     \begin{document}          This is my text block.  I pressed spacebar twice before this sentence.          This is my text block. I pressed spacebar once before this sentence, but the spacing is the same.          This is my text block.     I pressed enter once before this sentence, and now the spacing is different.          \end{document}


title: Example gallery of classes, macros, packages, etc.?

text: Is there an example gallery similar to http://texample.net/tikz/examples/ for mostly non-graphical classes, macros, CTAN contributions, etc.? E.g., a gallery of examples for the packages available at the CV Topic would be handy to select or rule out a package for use.


title: need inclusion arrow in commutative diagram

text: \documentclass[convert = false, tikz]{standalone}          \usepackage{float}          \begin{document}          \begin{tikzpicture}[every node/.style={midway}]       \matrix[column sep={4em,between origins}, row sep={2em}] at (0,0) {              \node(A) {$A$}  ; & \node(B) {$B$}; \\              \node(C) {$C$}  ; & \node (D) {$D$};\\       };       \draw[<-] (C) -- (D) node[anchor=east]{};            \draw[->] (A) -- (B) node[anchor=south] {};            \draw[->] (B) -- (D) node[anchor=west] {};            \draw[->] (C) -- (D) node[anchor=north] {};          \end{tikzpicture}          \end{document}      Here, I am trying to use an inclusion arrow between $A$ to $C$. Could you please suggest any idea for me? Thanks


title: Removing footer on last pages of a chapter

text: Using `scrpage2` with `scrbook`, how can I make it so that there is no footer on the last pages of a chapter (so that the white is not interrupted)?


title: How can I preclude copying & pasting of listings?

text: When I include code snippets in my documents, my lazier readers, i.e. students `:)`, are often tempted to just copy and paste those snippets instead of typing them themselves. However, there are risks associated with that practice.                          ![enter image description here](http://i.stack.imgur.com/faX4X.png) Copying and pasting of listings is the subject of numerous questions on the site; at the time of writing this question, the search `copy paste [listings] is:question` returns at least ten questions relevant to that problem. The answers to those questions show that the problem remains, by and large, unsolved.   * There are workaround to ensure that white space doesn't disappear in the process, but none work across all PDF viewers.   * Even worse: you run the risk of picking up nasty spurrious invisible characters that you really don't want; see Why does compiling this .dtx produce a blank page at the beginning? for an example. Therefore, instead of letting my readers run the risk of saving an imperfect copy of one of my listings to their "clipboard", I'd like to preclude them from copying anything from my listings. _Niet_. _Nada_. _Nichts_. _Rien du tout!_ Because I still want to make the source code available to them, though, I plan to embed it in the PDF instead. How can I preclude my readers from copying my listings? **Notes** :   1. My question is related to Mangling listings source code. However, I cannot afford to export the listings as raster images only to import them back as graphics is not an option, because I want to keep the listings in vectorised format.   2. Also, I do not want to encrypt the whole PDF as in Is it possible to produce a PDF with un-copyable text?. I simply want to forbid copying of my listings.   3. I don't care that OCR can be used to recover my listings. I suspect most of my users wouldn't know how to use OCR or wouldn't do it just to avoid having to type a listing themselves.


title: Tabbing/horizontal placement with labeled equations

text: I have a string of equations, each with a label that I would like to format nicely. I want the equation labels to be at the same horizontal position and the start of the equation to be at the same horizontal location. Additionally, I want each equation to have a label. There seem to be a large number of ways this could be done, but I can't get anything to work correctly. A tabbing seems to not work with equations. Also tried putting the equation in a \vbox with tabbing, but that kills the formatting. Example:                     Label:           Equation           Longer label:    Equation           Lab:             Equation      What I'm working with               %+++++++++++     \begin{equation}     \label{e:failuniaxlocal}     Uniaxial Local Buckling: MOS=\frac{\sigma_Y}{\sigma}-1     \end{equation}     %+++++++++++               %+++++++++++     \begin{equation}     \label{e:failuniaxlocal}     Uniaxial Local Buckling:     \end{equation}     %+++++++++++          %+++++++++++     \begin{equation}     \label{e:failshearlocal}     Shear Local Buckling:     \end{equation}     %+++++++++++          %+++++++++++     \begin{equation}     \label{e:failinterlocal}     Uniaxial-Shear Interaction:     \end{equation}     %+++++++++++          %+++++++++++     \begin{equation}     \label{e:failstffbck}     Stiffener buckling: MOS=\frac{pi^2 H_{22}}{P L^2}-1     \end{equation}     %+++++++++++          enter code here


title: What is the difference between normal text and Roman/upright?

text: What is the LaTeX command to have Roman/upright characters?


title: achemso package: referencing multiple figures

text: I am using the `achemso` package to submit a paper to Environmental Science and Technology. When I include a reference to a figure (`\ref{Fig1}`), the figure number appears preceded by the word "Figure." I would like to reference "Figures 1-2", but using `\ref{Fig1,Fig2}` gives an error and `\ref{Fig1}-\ref{Fig2}` gives "Figure 1-Figure 2."


title: Why does MS Word's algorithm for vertical positioning of super- and subscripts not conform to TeX's ?

text: Microsoft Office has, since 2007, used a formula layout algorithm based on the algorithm Knuth described in appendix G of the TeXbook. But there's an apparent divergence in the final output from the description. The algorithm that MSOffice uses is allegedly based on that as described in the _Open Type Math Table_. Precise details of this can be found in the paper **Open Type Illuminated** by Ulrik Vieth (obtainable from the Netherlands' TUG at http://www.ntg.nl/maps/38/03.pdf). For a screen resolution of 96dpi and a font size of 11pt, the algorithm says to shift the superscript baseline relative to the original baseline by 5 pixels, and the subscript by 3 pixels (up and down, respectively). (For a more precise description of what the algorithm says in this case, please see http://i.stack.imgur.com/ckGL5.png.) The figure below contains a blown up view of various renderings, with Word's view on the left, the algorithmic reconstruction in the middle, and TeX's rendering on the right: ![renderings of a^y_y](http://i.stack.imgur.com/BEwcV.png) The three horizontal lines are not from the figures, but are added to highlight the difference and parallelisms between them. As can be seen in the image, the result obtained for the formula `$a^y_y$` following the algorithm described above is different from the result obtained from MS Word. As can also be seen, the algorithm conforms to TeX's implementation fairly well (given the inaccuracies inherent in producing these diagrams, "fairly well" could mean "precisely" here). Is there another algorithm at work here? Has Knuth's algorithm been superseded? Or is it simply that when placing the superscript `y` then MSWord chooses to place the _bottom_ of the `y` at the superscript baseline instead of the baseline of the `y`?


title: lstlisting, tt fonts, and alignment.

text: I (mostly) love the listings package, which I have started migrated to from verbatim for code listings. I prefer to continue to use teletype for code, and so I changed my default listing configuration to:               \lstset{         keywordstyle=\color{blue}       , basicstyle=\ttfamily       , commentstyle={}       , columns=flexible       , numbers=left       , showstringspaces=false       }      However, there is one small annoyance/tradeoff that I cannot seem to put how I would like. With columns=flexible, alignment between lines is not longer very good, so things that you expect and want to align vertically no longer do, whereas in verbatim anything that's aligned in the latex source is aligned in the output. On the other hand, changing columns to a non-flexible option fixes the alignment issue, but at the expense of strange (in my opinion, and also ugly) spacing between characters (more space than verbatim). Is there any way to get both verbatim-like inter-character spacing and maintain vertical alignment? Here is a complete example that exhibits the problem when I compile (texlive- core 2010.22154-1 on Arch). I want the "::" for f and f' to be aligned.               \documentclass{article}     \usepackage{color}     \usepackage{listings}          \lstset{         keywordstyle=\color{blue}       , basicstyle=\ttfamily       , commentstyle={}       , columns=flexible       , numbers=left       , showstringspaces=false       }           \begin{document}          \begin{lstlisting}[language=Haskell,numbers=none]       f  :: Int -> Int -> Int       f' :: Int -> Int     \end{lstlisting}           \begin{verbatim}       f  :: Int -> Int -> Int       f' :: Int -> Int     \end{verbatim}          \end{document}      Any help would be much appreciated.


title: Retrieve the current font, scale it, and change the font to that version

text: I'm using Plain TeX (and `eplain`, if that matters). I would like to be able to generically scale the current font, no matter how the current font has been set. For example, I want to write a macro               \def\VandV{V\hskip-3pt{\abitsmallerthanthecurrentfont\&\hskip-3ptV}      and I want `\abitsmallerthanthecurrentfont` to make the ampersand a bit smaller. IIRC, In LaTeX, without packages, one can use `\Large` and `\tiny` and such to affect the size of the current font. But I'm not using LaTeX. Can this be done in a straightforward way without oodles of modifications to Plain TeX?


title: URLs with % signs in them in bibtex files: how to get corect links after compiling with biber/biblatex

text: I have a bibtex file entry with a URL field so:               url = {{http://links.jstor.org/sici?sici=0025-570X\%28198912\%2962\%3A5\%3C291\%3AHRATQS\%3E2.0.CO\%3B2-8}}      where I have manually escaped each percent sign with a backslash. It compiles correctly with biblatex/biber but the resulting hyperlink in the document still has the escaped percentage sign and does not link correctly to the website. Is there a workaround for this problem? Thank you.


title: Creating pseudo anchors in TikZ drawing

text: I have a complex TikZ sub-drawing (I call it “object”) that I use over and over in many figures. It's way more complex than what's called a “shape” in the TikZ/pgf context and contains itself several nodes. It has some connection points like the anchors of a shape, and I define them with `coordinate (object name_connection name)`. If it would be real anchors of a shape, I could use the syntax `(object name.connection name)`, but that's not possible in standard tikz (also stated in the manual). Is there a way to circumvent this and give a name containing a “.” to a coordinate? It would help to have cleaner code and to stay closer to the TikZ/pgf syntax. The example below illustrates what I mean. It's kind of **minimal** working example, my original code is at the moment approx. 200 lines of code.               \documentclass{article}          \usepackage{tikz}          \pgfkeys{       /object/.cd,       left node/.style={draw,red},       right node/.style={draw,blue},     }          \def\object[#1](#2,#3)#4;{       \pgfkeys{/object/.cd,#1}       \begin{scope}[shift={(#2,#3)}]         \node [/object/left node] (#4_left) at (-1,0) {#4};         \node [/object/right node]  (#4_right) at (1,0) {#4};         \draw (#4_left) -- (#4_right);         \draw (#4_right) -- ++(.5,.5) coordinate (#4_connection b);         \draw (#4_left) -- ++(-.5,-.5) coordinate (#4_connection a);       \end{scope}     }          \begin{document}     \begin{tikzpicture}       \object[](0,-1){A};       \object[left node/.append style={green}](0,1){B};       \begin{scope}[orange]         \draw (-2,0) -- (A_connection a);         % \draw (-2,0) -- (A.connection a);         \draw (A_connection b) to[out=45,in=225] (B_connection a);         % \draw (A.connection b) to[out=45,in=225] (B.connection a);       \end{scope}     \end{tikzpicture}     \end{document}      Related: Complex objects in TikZ: pgfkeys scope and best practice


title: syntax error when using tex4ht on Latex file that uses the standalone package

text: When I try to use htlatex to convert a latex file to html, where the latex file uses the `standalone` package, a syntax error is thrown from the file `keyval.tex`. The Latex file works fine with pdflatex and with latex. So the issue seems to be a `tex4ht` only or some incompatibility between `tex4ht` and the `standalone` package. I send an email on this to the `tex4ht` mailing list, but there was no resolution. I am hoping someone here can help. I tried to find what is the problem myself, but my Latex skills are not good enough to debug this and I have no idea why this happens. It is a very simple set up. Just one small latex file. That is all. htlatex reports an error in                  /usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex      at line 227 (end of file) that there is an extra `\else` Here is the file, and the command and the error message.               \documentclass{book}%     \usepackage{standalone}% this causes an error with htlatex     \begin{document}       hello     \end{document}      This the command used               htlatex main.tex           This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      restricted \write18 enabled.     entering extended mode     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo     aded.     (./main.tex (/usr/share/texlive/texmf-dist/tex/latex/base/book.cls     Document Class: book 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo))     (/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty)     (/usr/share/texmf/tex/generic/tex4ht/usepackage.4ht)     (/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)     (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex     (/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex)))     ! Extra \else.     l.227     \else          ?       When commenting out the standalone package, the error goes away. specs:               4ht.c (2009-01-31-07:34 kpathsea)     >latex -v     pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      There is no other way to convert this to html. I tried Latex2html and it does not support this package.               ..     Warning: No implementation found for package: standalone.      *** preamble done ***      I tried latexml and it also does not support this. I tried plastex and it also does not support this.               >plastex main.tex     plasTeX version 0.9.1      ( /usr/lib/pymodules/python2.7/plasTeX/Packages/book.pyc )      ( /usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.sty     WARNING: unrecognized command/environment: ifstandalone


title: Make ins and outs longer on ports in ciruitikz

text: I have the following using circuitikz. I would like to make the lines going from the vertical 2 lines to the inverters be longer. I could create the small sections of lines myself, but I was wondering if there is way to define the length of the in and out pins on the ports (inverters in my case).               \documentclass{article}     \usepackage[siunitx]{circuitikz}     \usepackage{pgf}     \usepackage{tikz}     \date{}     \begin{document}     \begin{figure}[ht]       \centering       \label{fig:lol}       \begin{circuitikz}                   \draw (0,0) node[scale=0.5,not port] (not0){};         \draw (0,1) node[scale=0.5,not port] (not1){};         \draw (0,2) node[scale=0.5,not port] (not2){};         \draw (0,3) node[scale=0.5,not port] (not3){};         \draw (0,4) node[scale=0.5,not port] (not4){};         \draw (0,5) node[scale=0.5,not port] (not5){};              \draw (not5.in) -- (not4.in) -- (not3.in) -- (not2.in) -- (not1.in) -- (not0.in);         \draw (not5.out) -- (not4.out) -- (not3.out) -- (not2.out) -- (not1.out) -- (not0.out);            \end{circuitikz}       \caption{Controlling the hard disk.}     \end{figure}     \end{document}


title: How to create an equation library, to be called like bibtex?

text: I am newby in LateX, but I want to create an stand alone document to be used as a equation library where I can select my equations by calling them by name, and finally produce a list of equations used in the working document, or a glossary with the equation and description. Thank you in advance.


title: How do I make multiline headers that don't run into the rest of the document?

text: I have been trying to figure out how you make headers that are more than 3 lines tall without running into the main body of the document, but have so far been unsuccessful. I know that I could simply put space after the header inside the document, but that's be a pain to do on every page. This is what I have: `               \documentclass[a4paper,12pt]{article}     \usepackage{indentfirst}     \usepackage{amsmath}     \usepackage{fancyheadings}          \pagestyle{fancyplain}          \lhead{\begin{small}Prof. _________\\Spring 2013\end{small}\\ so \\ keep \\ it}     \chead{\begin{small}\textbf{MEE: ________}\\Homework II\footnote{This document was made using \LaTeX\ and the amsmath package.}\end{small}\\ if \\ typing \\run}     \rhead{\begin{small}____________\\Due ______________\end{small}\\ I \\ will\\ over?}     \renewcommand{\headrulewidth}{0pt} %removes line under header     \renewcommand{\headheight}{\baselineskip}          \begin{document}          \begin{enumerate}     \item This is a homework problem. The header is overlapping this text in this current setup \\     \\     \item This is another problem. The header probably also overlaps this one. \\     \\     \end{enumerate}          \end{document}      ` Edited for completeness


title: Drawing and inserting mathematical symbols on a Dia generated graph

text: I use graph via Dia to draw graphs. But I want to insert an equation or symbol on the graph. Is there any way to put an equation symbol such as `$\alpha$` or `$\beta$` on the graph? I have inserted latex into the dia directly, and it is showing like this: ![enter image description here](http://i.stack.imgur.com/wF3ex.png) EDIT:![enter image description here](http://i.stack.imgur.com/C1Gg1.png)


title: How to add number in a circle?

text: I want to add some numbers at 3 places in Venn program. But I don't know how to do that.               \documentclass{letter}     \usepackage[english]{babel}     \usepackage{tikz}     \def\secondcircle{(210:1.75cm) circle (2.5cm)}     \def\thirdcircle{(330:1.75cm) circle (2.5cm)}     \begin{document}     \begin{tikzpicture}     \begin{scope}     \clip \secondcircle;     \fill[cyan] \thirdcircle;     \end{scope}     \draw \secondcircle node [text=black,below left] {$B$};     \draw \thirdcircle node [text=black,below right] {$C$};     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/OWiqe.png)


title: Idemtracker between article or inbook and book with cite command in biblatex

text: I have a problem when I cite an article following a book, it seems that the idemtracker doesn't work for documentclass as article or inbook. Example : biblioessai.tex :               \documentclass[a4paper,12pt]{book}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[style=verbose-trad2,citestyle=verbose-trad2,backend=biber,uniquename=false,citepages=suppress]{biblatex}     \usepackage{csquotes}     \usepackage[french]{babel}     \addbibresource{essai.bib}          \begin{document}     \cite{article1}          \cite{article2}          \cite{book}     \end{document}      essai.bib :               @article{article1,     author = "My Author",     journal = "A Journal",     title = "Titletitle",     date = "2005",     pages = "49-62",     volume = "12",     number = "1-2"     }          @book{book,     address = "Address",     author = "My Author",     origyear = "1994",     pagetotal = "349",     publisher = "A publisher",     title = "An other title",     year = "2004"     }          @article{article2,     author = "My Author",     journal = "A Journal",     title = "An other article",     date = "2008",     pages = "51-63",     volume = "1",     number = "15"     }      After compilation i have : > My Author. _Titletitle_. Dans : A Journal 12.1-2 (2005)   >  My Author. _An other article_. Dans : A Journal 1.15 (2008)   >  My Author. _An other title_. Address : A publisher, 2004 And what I would like : > My Author. _Titletitle_. Dans : A Journal 12.1-2 (2005)   >  Idem. _An other article_. Dans : A Journal 1.15 (2008)   >  Idem. _An other title_. Address : A publisher, 2004 Any idea? Thanks


title: Beamer \pause in LaTeX minted

text: How can I `\pause` in the middle of a minted source code in Beamer?               \documentclass[12pt]{beamer}          \usepackage{minted}          ...          \newminted{csharp}{bgcolor=gray!25,fontsize=\footnotesize,mathescape}          ...          \begin{frame}[fragile]         \begin{csharpcode}         public class Objet         {             public int Attr1 { get; set; };                  % I want to \pause here                  public int Attr2 { get; set; };         }         \end{csharpcode}     \end{frame}      I want to show the audience just a part of the code in a first frame and the following in a second frame. It's useful because if I show everything they will not be able to focus on what I am talking about in the first place.


title: How to \input the part between \begin{document} and \end{document} from another LaTeX file?

text: Sometimes I want to `\input` some LaTeX code, which belongs to a standalone LaTeX file. I would like to input the part between `\begin{document}` and `\end{document}`, while skipping the other part.


title: Avoid large spaces between text and equations

text: I use the options               \renewcommand{\baselinestretch}{1.25}     \setlength{\parskip}{0pt}     \setlength{\parindent}{0pt}       in the preamble of my document and most of the time the document looks like intended. Once in a while though, especially when I use multiline-equations, I get huge spaces right before and after the equation and the surrounding text, for example: ![enter image description here](http://i.stack.imgur.com/JVaZs.png) Is there any way I can avoid that without removing the `\parskip` option?


title: Large table (ca. 30 columns) covering one or several double pages?

text: For the appendix of my Ph. D. thesis I need to typeset some very big tables containing raw data. They have about 30 columns and might have enough lines to not fit vertically on one (double)page. Is there a package which allows to create a table which covers a whole double page (in width), so columns 1-15 on left page and columns 16-30 on right page and that even with one or more pagebreaks? I know about `longtable`, but I didn't find an option which allows that. _The lines of both tables should be vertically aligned, however it might be a good idea to **repeat** the ("characteristic") **first column** also on the right page for clear identification of each line._ (Sure I could also split it up into more than one table but I would prefer to have all data for each measured part in one line.) Further **practical questions** :   * are there recommendations for such a case?  e.g.   * would one caption on the first left page be enough?   * normally I would make my tables with the `booktabs` package and avoid horizontal lines between "normal" table lines, however in this case it could be helpful to help the eye group the lines, maybe by groups of 3 (that would make sense for my data9 to help the eye follow the lines...    * how can I reduce the outer margins (only) for those large tables to use most of the pagewidth?


title: How to include both English and Telugu content in Latex where the majority of the content is English?

text: I am trying to use `polyglossia` and `fontspec`.               \usepackage{fontspec}     \setmainfont{Pothana2000}     \usepackage{polyglossia}     \setdefaultlanguage{english}     \setotherlanguage{telugu}          \begin{document}     \begin{telugu}      చేయి అనగా మానవులు, కోతులు మరియు లెమూర్లకు గల శరీరభాగమునకు వేళ్లు     కలబాహ్యంగము. కోలా చేతికి ఎదురెదురుగా వున్న రెండు బొటనవ్రేళ్లు వుంటాయి కాబట్టి దాని శరీరభాగాన్ని     కూడా చేయి లేక 'పా'లు అంటారు.     \end{telugu}      It works fine but I can't get English text in here. When put some English content it is not displayed at all. If have to get some English content, I need to use some new font family and the process is really convoluted. I would like the default script be English with whatever default font comes with the LaTeX class I use for a paper and have the Telugu script just for a small paragraph with the `Pothana2000` or any other nice font that I can use with XeLaTeX in Windows. Any ideas are much appreciated.


title: What is the difference between LaTeX and HTML?

text: Every now and then I need to compare LaTeX to HTML to someone, and it can be hard to give a succinct answer that demonstrates the purpose of both, and why one wouldn't want to abuse one for the purpose of the other. Also, the differences cover several areas, such as target medium, layout vs markup, and so on. Perhaps this would be a good place to collect a few answers for later reference.


title: Add a 3mm margin to every side of an A5 document

text: I am writing an A5-sized booklet (148x210mm). I used a template that I found online that uses the following options for document class:                   \documentclass[a5paper,pagesize,10pt,bibtotoc,pointlessnumbers,normalheadings,DIV=10,twoside=false]{scrbook}      Everything works beautifully and I am very happy. Unfortunately my printing shop needs the document with an additional 3mm margin on every side which will be cut off in the end (so they want a 154x216mm document). Is there any simple way how I can add these 3mm without completely messing up my layout? I'd also be happy about useful suggestions outside of TeX, anything that goes beyond "Create a 154x216mm Photoshop file, paste each individual page in the middle of it, save it and put all the new, larger pages together in a single document" Thank you very much! -BW


title: Blank Column in the left part of the document

text: ![enter image description here](http://i.stack.imgur.com/b4cfH.png) I would like to reproduce the code from the output shown in the picture.               \documentclass[a4paper, 11pt]{article}     \pagestyle{empty}     \usepackage[utf8]{inputenc}     \usepackage[english, russian]{babel}     \usepackage{amssymb, amsthm, latexsym, amsmath, textcomp, amsfonts,mathtext,cite,enumerate,float}     \usepackage{indentfirst}     \usepackage[T2A]{fontenc}     \usepackage{geometry} %способ ручной установки полей     \geometry{top=2cm} %поле сверху     \geometry{bottom=2cm} %поле снизу     \geometry{left=3cm} %поле справа     \geometry{right=1cm} %поле слева     \begin{document}          \begin{center}     Министерство образования и науки Российской Федерации\\     Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования\\     Петрозаводский государственный университет (ПетрГУ)\\     Математический факультет\\          Кафедра информатики и математического обеспечения     \end{center}     \vbox{\vspace{1.3cm}}     \begin{center}     Промежуточный отчет о выполнении курсовой работы     \end{center}     \begin{center}     \begin{LARGE}     Анализ производительности беспроводной сети \\     802.11     \end{LARGE}     \end{center}     \vbox{\vspace{0.5cm}}     \begin{center}     \makebox[15em][l]{Выполнил:}\\     \makebox[15em][l]{студент 3 курса группы 22303 П. Г. Петров}     \end{center}     \vbox{\vspace{0.21cm}}     \hfill\parbox{5cm}{     \hspace*{2cm}\hbox to 0cm{\raisebox{-1em}{\small{\it подпись}}}\hspace*{-2cm}\hrulefill \\ }          \begin{center}     \makebox[15em][l]{Научный руководитель:}\\     \makebox[15em][l]{к.ф.-м.н., доцент И.И.Петров}\\     \hbox to 12cm{Оценка руководителя: \hfil \rule{5cm}{0.5pt}}     \end{center}     \vbox{\vspace{0.5cm}}     \hfill\parbox{5cm}{     \hspace*{2cm}\hbox to 0cm{\raisebox{-1em}{\small{\it подпись}}}\hspace*{-2cm}\hrulefill \\ }     \vspace{16mm}\noindent     \begin{center}     \makebox[15em][l]{Представлен на кафедру}\\      \end{center}     \begin{flushright}     "\rule{0.9cm}{0.5pt}"\rule{5cm}{0.5pt} 2013 г.\\     \end{flushright}     \vspace{5mm}\noindent     \begin{flushright}     \hfill\parbox{6.5cm}{     \hspace*{1cm}\hbox to 0cm{\raisebox{-1em}{\small{\it подпись принявшего работу}}}\hspace*{-1cm}\hrulefill \\ }     \end{flushright}     \vspace{16mm}\noindent     \vspace{\fill}          \begin{center}     \Large     Петрозаводск          2013     \end{center}          \end{document}


title: How do I make appear no-numbered sections in the hyperlinks (bookmarks) of a PDF?

text: I am using `\section*{}` to get unnumbered sections in a document. I need to get those sections in the bookmarks of the resulting PDF but they don't show up. In addition, if the first section is unnumbered, none of the sections below appear either on the PDF.


title: A variant of \includeonly

text: Is there a way to have pdfLaTeX emit separate PDF files for each `\include`d file, and somehow massage the `\include`/`\includeonly` mechanism so that when using the `\includeonly` command those files are inserted in the resulting PDF file, but only the `\includeonly`ed files are actually recompiled? My main use of the `\includeonly` mechanism is to speed up compilation when working on part of the document, but it results in the end PDF to not be complete —this is a bit annoying if one needs to refer to things in the excluded parts, for example. A modification of the mechanism as vaporously sketched above would solve this.


title: Texmf tree with MikTeX + Vista32?

text: This post is a follow-up to my post Using `subfiles` package with `.sty` files. Answering that post, a couple people suggested I build a local texmf tree. I've hunted around and it seems that this is unique to Linux systems. Q: What is a (local?) texmf tree (or it's equivalent on MikTeX + Vista32 systems)? I have my `C:\Users\brianjd\AppData\Local\MiKTeX\2.8\miktex`. Q: Would a texmf directory be built there and then pointed to by `TEXINPUTS`? Or does a texmf directory just refer to any directory pointed to by `TEXINPUTS`?


title: How to delete/undefine macros in Context?

text: How can one delete or undefine macros in Context? Is there a difference if i've used `\def` or `\define` to create a macro?


title: Text column in array

text: I am trying to do something that seems relatively simple but I can't get it to work. Basically, I would like one of the columns in my math mode array to be text, so I am trying to use pre and post processing `>{}` and `<{}` like so               \documentclass{article}     \usepackage{amsmath}     \begin{document}         \begin{align}         \begin{array}{{>{\text\bgroup}c<{\egroup}}@{:}c@{=}c}         a & x^2 & x^2 \\         b & y^2 & y^2 \\         c & z^2 &  z^2         \end{array}         \end{align}     \end{document}      This leads to an "illegal character in array arg" error. What is the right way to do this?


title: Transition from LaTeX to Plain TeX

text: For several reasons I need to typeset in Plain TeX, however I have always worked with LaTeX. So how hard will this be? I basically need something like the book or report documentclass (with toc, chapters, sections, Theorems, ..., appendices, index, bib, ...). Most of the things I have learned about LaTeX have come from examples, can somebody direct me to a complete example of a book typeset in Plain TeX?


title: Table Reference Format and Hyperlinks

text: I'm using hyperref package and refer to hundreds of tables from the appendix. My labels for tables look like: `\label{table:some-numbers}`. I then refer to it from the main text as `\ref{table:some-numbers}`. What I get is a lot of identically-looking hyperlinks in the PDF, with the same visible text like A.3 -- even though the specific table is actually A.145 and the hyperlink in fact takes me there! Why does the visible text in the hyperlink box looks the same for many tables, as if it were a section number, not the table number, and how do I make it coincide with the actual table number?


title: Strange interaction between hyperref, listings and animate

text: I am trying to have a `listing` inside an `animate` environment. However I can't manage to do it if the `hyperref` package is loaded. This is a MWE, obviously in the real application I need `hyperref` for other parts of the document. **Is there a workaround? Some option in`hyperref` for example?**               \documentclass{article}     \usepackage{animate}     \usepackage{listings}     \usepackage{hyperref} % comment this line to make the example work     \begin{document}     \begin{animateinline}[autoplay, loop]{5}     \begin{lstlisting}     listing inside animate     \end{lstlisting}     \newframe     text in frame     \newframe     \end{animateinline}          \begin{lstlisting}     listing outside animate     \end{lstlisting}          \end{document}      The error is               ! LuaTeX error (ext4): destinations cannot be inside an XForm.     <argument> ... resources {\the \pdfpageresources }\@anim@box                                                        \xdef \@anim@lastxform {\t...      The error is really an interaction between the three packages. `listing` works outside the `animate` or without `hyperref`. `animate` works without `listings` or without `hyperref`. Possibly related: Hyperref adds vertical space to listings which gives me the idea that `listings` uses some `hyperref` feature if the package is previously (?) loaded. Something like this is described in the Section 5.3 in the `listings` package manual.


title: How to print, with biblatex, the bibliography with the whole content of my bib-file?

text: Should be an obvious question but Google fails to asnswer it :) I am trying to fine-tune the biblatex output. To test the result, I would like to see how it works for all entries in my bib-file. Is it possible to achieve this without copying all keys manually?


title: How to include a second file only if environment variable is set?

text: I have a LaTeX document which exists in two versions, a short version and the long version. The long version has an additional chapter inserted in the middle of the document. What I want to do, is if I have an environment variable set, include the additional file at the relevant point. So I am doing this (in pdflatex):               \documentclass{book}     \usepackage{etoolbox}     \usepackage{catchfile}     \newcommand{\getenv}[2][]{%       \CatchFileEdef{\temp}{"|kpsewhich --var-value #2"}{}%       \if\relax\detokenize{#1}\relax\temp\else\let#1\temp\fi}     \getenv[\INCLUDE]{INCLUDE}     \begin{document}     First paragraph of first file.          Value of the INCLUDE envvar is as follows: \INCLUDE          \ifstrequal{\INCLUDE}{yes}{\input{file2}}{}          Last paragraph of first file.     \end{document}      I know it can read the environment variable correctly, so I can see the problem is with the conditional, but not sure exactly what I am doing wrong. When I run this with INCLUDE=yes, the value yes is printed, but file2's contents does not appear. (This is like this question, but that question does not address environment variables. I got my environment variable code from this answer, but since I can print the environment variable correctly, I don't think that is the problem.)


title: How to define/attach acronym to figure without showing it in the text?

text: I use the `acronym` package to manage my acronyms. Is it possible to attach an acronym definition to the LaTeX code of an included figure (PDF, not LaTeX figure)? That is, I want to make sure my LaTeX code generates a warning when it doesn't find the acronym in the acronym definition list. However, it should not be displayed (i.e., I don't want to define/display it in the caption) For example something like:               \begin{figure}     \includegraphics[width=\columnwidth]{fig_10.pdf}         \begin{usedacronymsbutnotshown}             \acs{MWE}         \end{usedacronymsbutnotshown}     \caption{Blablabla}     \label{fig:pnet:10}     \end{figure}          Overview of all acronyms in my document:          \begin{acronym}     \acro{HDTV}{High-definition Television}     \acro{MWE}{Minimum Working Example}   %If line not here, I would get a compile warning     ...     \end{acronym}


title: Footnote in \setarrayelement with memoir class

text: I'm using the `memoir` document class. I have problems storing a `\footnote` command using `\setarrayelement`. Here's a simple document:               \documentclass{memoir}          \newarray{aaa}{1}{1}     \setarrayelement{aaa}{1}{name\footnote{fn}}          \begin{document}          \getarrayelement{aaa}{1}{\x}          \x          \end{document}      I want the `\x` to expand to `name\footnote{fn}`, but I never get that far. I get this error message in `\setarrayelement`:               ! Use of \@pr@videpackage doesn't match its definition.     \@ifnextchar ... \reserved@d =#1\def \reserved@a {                                                       #2}\def \reserved@b {#3}\f...     l.4 \setarrayelement{aaa}{1}{name\footnote{fn}}      Curiously, if I add `\usepackage{forloop}`, which I'm also going to use in my document, after `\documentclass{memoir}`, the error message changes to               ! Argument of \reserved@a has an extra }.     <inserted text>                      \par      l.5 \setarrayelement{aaa}{1}{name\footnote{fn}}      How can I store a footnote in `\setarrayelement`? I presume that I need to somehow postpone the expansion of `\footnote` until `\x` is used, but how do I do that?


title: Vertical space between caption and main text

text: I am trying to adjust the vertical space between my captions and the main body of text below it. It is likely to be packages interfering with each other, but I am not sure which. Herbert suggested including these commands into my preamble, and I have removed the caption package completely as it seems to be superseded by the `floatrow` package included with `chemstyle`.                \captionsetup{           justification=centering,           singlelinecheck=false,           font=small,labelfont=bf,labelsep=space}         \floatsetup{captionskip=6pt}         \renewcommand\FBbskip{20pt}      But it seems as though `\FBbskip` is only having an effect on the first image float. I have updatd the MWE below so that this is clear, using `\FBbskip` at 20pt so you can clearly see the difference in vertical space between the two schemes. Also. I am still unclear what these settings do:               \captionsetup{skip=5cm}     \addtolength\belowcaptionskip{20.0cm}     \addtolength\abovecaptionskip{20.0cm}      Commenting them out doesn't seem to have an effect, and setting them to extreme values doesn't seem to do anything either? Should I just remove them? MWE using Herbert's solution, hopefully you can see the difference in vertical space surrounding the two schemes?                \documentclass[11 pt]{report}          \usepackage[T1]{fontenc}     \usepackage{bera}       \usepackage[scaled]{berasans}      \usepackage[scaled]{beramono}      \usepackage{textcomp}           \usepackage[utf8]{inputenc}      \usepackage[english]{babel}          \usepackage[left=1in, right=1in, top=.75in, bottom=.5in, includeheadfoot,   headheight=13.6pt]{geometry}     \usepackage{setspace}          \usepackage{achemso}          \usepackage{graphicx}      \usepackage{times,mathptmx}     \usepackage[version=3]{mhchem}          \usepackage[runs=2]{auto-pst-pdf}     \usepackage{chemstyle}     \usepackage{chemnum}     \usepackage{chngcntr}          \usepackage{titlesec}     \usepackage{sectsty}     \usepackage{balance}      \usepackage{lastpage}     \usepackage[toc, page, header]{appendix}      \usepackage{fancyhdr}      \usepackage[plain]{fancyref}            \captionsetup{       justification=centering,       singlelinecheck=false,       font=small,labelfont=bf,labelsep=space}     \floatsetup{captionskip=6pt}     \renewcommand\FBbskip{20pt}          \linespread{1.8} %1.5 line spacing          \parindent=0pt      \parskip=8pt           \renewcommand{\captionfont}{\sffamily}{\small}     \renewcommand{\captionlabelfont}{\bf}     \renewcommand\thescheme{\arabic{scheme}}     \counterwithout{scheme}{chapter}     \renewcommand\thefigure{\arabic{figure}}     \counterwithout{figure}{chapter}          \begin{document}     \captionsetup{skip=5cm}     \addtolength\belowcaptionskip{20.0cm}     \addtolength\abovecaptionskip{20.0cm}     \onehalfspace               \chapter[Introduction]{Introduction}     \chaptermark{Introduction}     \label{ch:introduction} % label for referring to chapter in other parts of the thesis     \section[Importance]{Importance}\label{C1:Intro}          Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text     Text Text Text           \begin{scheme}[ht]     \centering     \includegraphics[scale=0.2]{cat}     \caption{}     \label{scheme}     \end{scheme}          Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text     Text Text Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text     Text Text Text           \begin{scheme}[ht]     \centering     \includegraphics[scale=0.2]{dog}     \caption{}     \label{scheme}     \end{scheme}          Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text     Text Text Text Text Text            \end{document}


title: Font installation issue with chessfs

text: Ah, fonts again! I need to use a chessboard in one of my articles, probably using skak or chessboard, but I'm not even there yet. Consider the following example:               \documentclass{article}     \usepackage{chessfss}     \begin{document}      A simple \sympawn to get me started.     \end{document}      Resulting in > Font SkakNew-Figurine at 600 not found So, clearly it's a font issue. I am using TeXLive on a Win7 machine, by the way. What am I missing?


title: Bibtex wont update/compile

text: I'm using bibtex to do my references but it has stopped compiling correctly. It happened when working on a different LaTeX file (not using the same bibtex file and not in the same folder) and has been messing up on multiple LaTeX files since. I'm using:               \bibliographystyle{unsrt}     \bibliography{FINAL}      The error I get is:               Process started: bibtex.exe "FINAL"          Process exited with error(s)      I've deleted temp files and recompiled and I don't have any other .bib files in the same folder. It seems to be happening for different LaTeX files in different folders, which makes me think it may be an issue with bibtex? The bibtex file is in the same folder as the .tex file. Anyone have any suggestions?


title: numbers in BibTeX entries: syntax highlighting vs. reality

text: The following example has one relevant entry for this question, the `year` field.               @INPROCEEDINGS{1181437,         author={de Oliveira, W.R. and De Souto, M. C P and Ludermir, T.B.},         booktitle={Neural Networks, 2002. SBRN 2002. Proceedings. VII Brazilian Symposium on},         title={Turing machines with finite memory},         year={2002},         month={},         pages={67-72},         keywords={Turing machines;finite automata;neural nets;noise;DTM;FSA;TM;Turing         computability;computational equivalence;finite state automaton;finite-memory Turing machine;limited weight precision;neural networks;noise;Analog computers;Automata;Biology computing;Computer networks;Humans;Magnetic heads;Neural networks;Neurons;Turing machines;Writing},         doi={10.1109/SBRN.2002.1181437},     }      When I put the BibTeX entry as posted, my editor will recognise the left hand side of the `=` and perform syntax highlighting, but do nothing for the right hand side. If I remove the curly brackets to make the field `year=2002,`, my editor recognises the number 2002 and performs adequate syntax highlighting. For the regular expression detecting numbers for syntax highlighting, dealing with `{}` is not that big of a deal. So I am wondering: is this just an issue with my editor, or does BibTeX treat naked numbers, i.e. `year=2002,` differently from enclosed ones, i.e. `year={2002},`? I can see why you need `{}` for data with spaces and I understand `author={Some Name}` vs. `autor={{Some Name}}`, but neither helps understanding the brackets around simple numbers ...


title: More space between certain rows in a table

text: So my problem is this: some variables in my table have multiple categories, while others do not. However, I'd like to have more space between the separate variables, but **not** between the rows which have the different categories of a variable. As an example, I'd like there to be a bigger gap between "Students registered" and "Gender(%)", but a small gap between "Male and Female". Likewise, I'd like a gap (same as between "Students registered and Gender") between "Female" and "Race(%), but a smaller one (same as between Male & Female) between White/Black/Coloured/Indian/Asia. Then a bigger gap (same as between Students Registered/Gender & Gender/Race) between Indian/Asian with Financial Aid. ![enter image description here](http://i.stack.imgur.com/uJ0KU.png) My MWE (don't worry about the column widths looking funny, I can change those myself!)               \documentclass{article}     \usepackage{booktabs}     \usepackage[flushleft]{threeparttable}     \usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments     \renewcommand\arraystretch{1.4}     \begin{document}     \begin{table}[H]     \renewcommand\arraystretch{1.4}     \begin{threeparttable}     \caption{Summary Statistics}     \label{table:ssna}     \begin{tabular}{p{0.30\textwidth} p{0.15\textwidth} p{0.15\textwidth} p{0.15\textwidth} p{0.15\textwidth} p{0.15\textwidth}}     \toprule     & \multicolumn{5}{c}{\bfseries Cohort} \\     \cmidrule(l){2-6}     & 2006 & 2007 & 2008 & 2009 & 2010 \\     \midrule     {\bfseries Students registered} & 1535 & 1584 & 1767 & 2037 & 1518 \\     {\bfseries Gender (\%)} & & & & & \\     Male & 61.1 & 64.5 & 57.7 & 55.5 & 55.3 \\     Female & 38.9 & 35.5 & 42.3 & 44.5 & 44.7 \\     {\bfseries Race (\%)} & & & & & \\     White & 43.3 & 43.4 & 40.6 & 36 & 39.8 \\     Black & 29.8 & 33.4 & 34.8 & 38 & 35.4 \\     Coloured & 16 & 13 & 13.8 & 12.9 & 11.5 \\     Indian/Asian & 10.8 & 10.1 & 10.8 & 13.1 & 13.4 \\     {\bfseries Financial Aid (\%)} & 19.5 & 22.3 & 25.2 & 29.9 & 24.5 \\     {\bfseries AD Programme (\%)} & 24 & 20.3 & 18.6 & 20.6 & 21.9 \\     \bottomrule     \end{tabular}     \begin{tablenotes}     \small     \item Source: UCT Institutional Planning Department     \end{tablenotes}     \end{threeparttable}     \end{table}     \end{document}


title: How to ignore some items in a numbering environment?

text: I have a environment to number the paragraphs in it, if I have to ignore some paragraphs in the environment which needn't be numbered, eg: I want to ignore numbering of the `\lipsum[6-7]`, how to make it? The whole codes of the environment are here:                \documentclass{book}     \usepackage{mparhack}   % get marginpars to always show up on the correct side (need to compile twice)     \usepackage{lipsum}     % for dummy text          % change this to get the formatting you want     \newcommand{\parnum}{\bfseries\arabic{parcount}}     \newcounter{parcount}     \newenvironment{parnumbers}{%     \par%        \everypar{\stepcounter{parcount}\leavevmode\marginpar[\hfill\parnum]     {\parnum}}%     \setcounter{parcount}{0}%to restart numbering in every environment     }{}          \begin{document}     \begin{parnumbers}     \lipsum[1-4]     \end{parnumbers}          \begin{parnumbers}     \lipsum[5-8]     \end{parnumbers}          \begin{parnumbers}     \lipsum[9-10]     \end{parnumbers}          \end{document}


title: Font selection in XeTeX for specific characters

text: I just ran into another issue, I like to use gill sans very much but the number 1, lower case L and upper case I are almost indistinguisable. On the other hand I like Helvetica numbers. Is there a way to use Gill Sans for all non-numeric characters and Helvetica only for numbers [0 9] ?


title: Alignment of siunitx S-column looks bad with big numbers

text: I have to put a bunch of numbers into a lab report, and I currently use `siunitx` with `tabular` and the `S` column type. It looks great for small numbers and large column heads. However, for small heads and long numbers that extend only to the right of the decimal separator, it lokks pretty bad: ![](http://wstaw.org/m/2013/10/31/x.png) How could I have the head centered over the whole number, not centered above the comma? The table is too wide for the page, although it could be smaller.


title: pdf/Tikz Undefined Control Sequence

text: I am drawing a Picture using TikZ with two `\draw` commands.   The first one works but on the second LaTeX claims               ! Undefined control sequence. l.44 \draw (0,2) -- (-.5,2);      **What can I do to fix that...**   _Thanks in the preface_ **EDIT: MWE**               \begin{figure}[htbp]     \centering     \begin{tikz}         % First the house         \draw [thick,color=gray] (0,0) -- (0,2) -- (1,3) -- (2,2) -- (2,0) -- cycle (0,2) -- (2,2);         % This command doesnt work...         \draw (0,1) -- (-.5,1);     \end{tikz}     \end{figure}


title: Arabtex transliteration encoding mistake

text: In arabtex package I found a transliteration encoding mistake. Every time I write letters with kasra and shadda, it will be fatha.               \documentclass[11pt]{scrartcl}     \usepackage{arabtex}     \begin{document}     \setarab     \centering     \large     \fullvocalize     \verb!sayyidinA!\quad \<\huge sayyidinA>\\\medskip     \verb!kulli!\quad \<\huge kulli>\\\medskip     \verb!.salli!\quad \<\huge .salli>     \end{document}      Anyone know how to write it correctly?


title: Table Border Options

text: \begin{tabular}{|c|c|c|}     Column 1 & Column 2 & column3 \\     \hline     second row & & \\     \hline     \end{tabular}      Please help me with table border options. Using `|` I can draw thin solid vertical lines and `\hline` draws thin solid horizontal lines. I would like to achieve thick outer border, thin dotted lines of various size and color in the table. In short I would like to achieve similar functionality of attached screenshot of MS word table options in `LaTeX`. Also the reason for asking this is to put all table borders related answers at one place Thanks for your help. ![enter image description here](http://i.stack.imgur.com/WiqTu.jpg)


title: Problem drawing Kiviat diagram

text: From  this post, I started to play with TikZ/PGF to draw a Kiviat Diagram froma a file .dat Suppose to have two file table1.dat and table2.dat live these               %table1     column1 column2      8.109115e-001 3.446073e+000      3.971423e+000 3.740758e+000      1.556075e+000 2.252708e+000      2.642666e+000 4.191069e-001      8.282436e-001 1.144885e+000      3.009910e+000 4.566687e+000      1.314856e+000 7.618901e-001      3.270395e+000 4.129085e+000           %table2     colonna1 colonna2 colonna3 colonna4      4.073618e+000 4.785835e+000 3.393676e+000 3.474143e+000      4.528960e+000 2.426878e+000 3.788701e+000 1.585497e+000      6.349341e-001 4.001402e+000 3.715662e+000 4.751110e+000      4.566879e+000 7.094317e-001 1.961135e+000 1.722304e-001      3.161796e+000 2.108806e+000 3.277389e+000 2.193722e+000      4.877020e-001 4.578678e+000 8.559334e-001 1.907792e+000      1.392491e+000 3.961037e+000 3.530230e+000 3.827584e+000      2.734408e+000 4.797462e+000 1.591642e-001 3.976000e+000      4.787534e+000 3.278703e+000 1.384615e+000 9.343630e-001      4.824443e+000 1.785584e-001 2.308570e-001 2.448822e+000      7.880654e-001 4.245647e+000 4.856589e-001 2.227931e+000      4.852964e+000 4.669966e+000 4.117289e+000 3.231565e+000      Here it is the explained code:               \documentclass{report}          \usepackage{tikz}     \usetikzlibrary{calc}          \usepackage{pgfplotstable}          \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength{\PreviewBorder}{5mm}     \pagestyle{empty}          \makeatletter     \newcommand{\Kiviat}[5]{     % #1 - Table file     % #2 - List of the axis label. His lenght cannot be higher that the number of column of the table.     %      It can be lower     % #3 - Color list. His lenght cannot be higher that the number of column of the table.     %      It can be lower     % #4 - Pitch of th grid lines     % #5 - Axis line width                     % LOAD TABLE     % The table must be n x m where each n column is the m plot in function of the angle.     % The first row(labeled by pgfplots table like 0) must contain the name of every column     \pgfplotstableread{#1}\table               % COMPUTETATION OF TABLE DIMENSION     %->number of axis     \pgfplotstablegetrowsof{\table}     \pgfmathsetmacro{\axisNumber}{\pgfplotsretval-1}     %\show\axisNumber          %-> number of the column to compute     \pgfplotstablegetcolsof{\table}     \pgfmathsetmacro{\columnNumber}{\pgfplotsretval-1}     %\show\columnNumber          % LOAD AXIS LABEL     \def\namesAxis{#2}     \foreach \x[count=\kk] in \namesAxis{}          \pgfmathparse{\kk<=(\axisNumber+1)}     \ifnum\pgfmathresult=0     \errmessage{The number of labels is greater that number of column of the table loaded}     \fi          % LOAD COLOR LIST     \def\listaColori{#3}     \foreach \mese[count=\numeroColori] in \listaColori{}     %\show\numeroColori          \pgfmathparse{\numeroColori<=(\columnNumber+1)}     \ifnum\pgfmathresult=0     \errmessage{Il numero dei colori è maggiore delle colonne dei dati}     \fi          % COMPUTE THE MAXIMUM ELEMENT INTO THE TABLE TO COMPUTE THE RADIUS OF KIVIAT DIAGRAM     % -> starting value     \def\maxRadius{0}          \count1=0%\columnNumber     \count2=0%\axisNumber     \countdef\val=0     \def\maxRadius{0}          \loop     \ifnum\count1<\columnNumber     \advance\count1 by 1          {\loop     \ifnum\count2<\axisNumber     \advance\count2 by 1          \pgfplotstablegetelem{\count2}{[index]\count1}\of\table          \pgfmathparse{\maxRadius<\pgfplotsretval}          \ifnum\pgfmathresult=1     \pgfmathsetmacro{\maxRadius}{\pgfplotsretval}     \node (Max) at (0,\maxRadius){};     \fi     \repeat}               \count2=0     \repeat     % now the value of the maximum value into the table is stored in coordinate y of (Max) point in pt units.     % It must be converted in unit less number in centimenter and saved into \radius variable          \pgfextracty{\pgf@x}{(Max)}     %pgfmathsetmacro{\radius}{}     \pgfmathsetmacro{\radius}{ceil(abs(\pgf@x)*2.54/72)}                         % COMPUTE THE GRID LINES NUMBER     \def\pitch{#4}     \pgfmathsetmacro{\numberTick}{\radius/\pitch}               % AXIS LINE WIDTH     \def\lwidth{#5}          % COMPUTE OF THE ANGLE BETWEEN THE AXIS     \pgfmathsetmacro{\ang}{360/(\axisNumber+1)}          % COMPUTE OF TICK RADIUS     \pgfmathsetmacro{\tickRadius}{1.5*\lwidth}               % GRID DRAWING     \begin{pgfscope}     \pgfsetlinewidth{.5pt}     \pgfsetstrokecolor{gray!50}     \foreach \altezza in {0,1,...,\numberTick}{     \pgfmathsetmacro{\dist}{\altezza*\pitch}     \foreach \axis in {0,1,...,\axisNumber}{     \ifnum\axis=0     \pgfpathmoveto{\pgfpointpolar{\ang*(\axis+1)}{\dist cm}}%     \else     \pgfpathlineto{\pgfpointpolar{\ang*(\axis+1)}{\dist cm}}     \fi}     \pgfpathclose     \pgfusepath{stroke}     }     \end{pgfscope}          % AXIS  and CIRCLE TICK DRAWING     \foreach \axis in {0,1,...,\axisNumber}{     \draw[->, line width=\lwidth pt] (0,0)--++(\ang*\axis:{\radius+1});     \foreach \tickPosition in {1,...,\numberTick}{     \fill (\ang*\axis:\pitch*\tickPosition)circle(\tickRadius pt);     }     }          % TICK DRAWING     \foreach \tick in {1,2,...,\radius}{     \node[anchor=south west] at (\tick,0){\tick};     }          % AXIS LABELING     \foreach \axis[count=\kk] in \namesAxis{     % \ang between 270 and 360     \pgfmathparse{(\ang*(\kk-1))<360&&(\ang*(\kk-1))>270}     \ifnum\pgfmathresult=1     \def\anchor{north west}     \fi          % \ang between 180 and 270     \pgfmathparse{(\ang*(\kk-1))<270&&(\ang*(\kk-1))>180}     \ifnum\pgfmathresult=1     \def\anchor{north east}     \fi          % \ang between 90 and 180     \pgfmathparse{(\ang*(\kk-1))<180&&(\ang*(\kk-1))>90}     \ifnum\pgfmathresult=1     \def\anchor{south east}     \fi          % \ang between  0 and 90     \pgfmathparse{(\ang*(\kk-1))<90&&(\ang*(\kk-1))>0}     \ifnum\pgfmathresult=1     \def\anchor{south west}     \fi          % \ang nei 4 punti cartinali     % east     \pgfmathparse{(\ang*(\kk-1))==0}     \ifnum\pgfmathresult=1     \def\anchor{west}     \fi     % nord     \pgfmathparse{(\ang*(\kk-1))==90}     \ifnum\pgfmathresult=1     \def\anchor{south}     \fi     % west     \pgfmathparse{(\ang*(\kk-1))==180}     \ifnum\pgfmathresult=1     \def\anchor{east}     \fi     % south     \pgfmathparse{(\ang*(\kk-1))==270}     \ifnum\pgfmathresult=1     \def\anchor{north}     \fi          \node[anchor=\anchor] at ({\ang*(\kk-1)}:{\radius+1}){\axis};     }                              % FILE PLOTTING     \pgfplotstableforeachcolumn\table\as\nomeColonne{%     \begin{pgfscope}          % color definition     \pgfmathsetmacro{\cucu}{\pgfplotstablecol+1}     \foreach \var[count=\kk] in \listaColori{     \ifnum\kk=\cucu     \pgfsetstrokecolor{\var}     \fill[shift={(\radius cm+2 cm,-\pgfplotstablecol cm+\radius cm)},\var] (0,0)rectangle(.5,-.5);     \node[shift={(\radius cm+2 cm,-\pgfplotstablecol cm+\radius cm)}, anchor=west] at (.5,-.25){\nomeColonne};     \breakforeach     \fi     }               \foreach \axis in {0,1,...,\axisNumber}{     \pgfplotstablegetelem{\axis}{[index]\pgfplotstablecol}\of\table     \pgfmathsetmacro{\data}{\pgfplotsretval}     \ifnum\axis=0     \pgfpathmoveto{\pgfpointpolar{\ang*\axis}{\data cm}}%     \else     \pgfpathlineto{\pgfpointpolar{\ang*\axis}{\data  cm}}     \fi     }     \pgfsetlinewidth{2pt}     \pgfclosepath     \pgfusepath{stroke}     \end{pgfscope}}     }     \makeatother               \begin{document}          \begin{tikzpicture}%[scale=.65]     \Kiviat{table1.dat}     {row1,row2,ro3,row4,row5,ro6,row7,row8}     {red,orange}     {.5}     {1}     \end{tikzpicture}          \begin{tikzpicture}%[scale=.65]     \Kiviat{table2.dat}     {row1,row2,row3,row4,row5,row6,row7,row8,ro9,row10,row11,row12}     {red,orange,green!50!black,yellow!70!black}     {.5}     {1}     \end{tikzpicture}          \end{document}      These are the results![Table1](http://i.stack.imgur.com/reyEC.jpg) ![enter image description here](http://i.stack.imgur.com/UN3Za.jpg) For sure is not the best and more efficient code possible to write but it is a beginning. Indeed, there is a big problem. If i scale the tikzpicture, not every component is scaled in the right way. I'd like to introduce some pgfkeys to play with much more input. Can somebody help me? Many thanks in advance


title: biblatex: linking entries with one biber run

text: I'm currently tring to link two different entries, a text and its translation, so that they are output together. The entry of the translation is given in the field "usera". If more code is needed, let me know, for the moment I'll just give an abstract explanation. So we have `@inbook{original, … usera = {translation}} and @inbook{translation, …}`. Which gives something like: > Author: Title, location year [translated as: Title, location year]. In the bibliography I do the output of the translation with a modified version of `\fullcite`. This is probably a brutal solution, but it works. Except for two problems:   * Currently I need two runs of LaTeX and biber. Since the `\fullcite` is only called when the bibliography is written, the system doesn't know of the entry `translation` in the first run. I tried all kind of ways to hand the content of `usera` over to `biblatex` in the first run, but I failed.   * Once LaTeX and biber have run twice, I get two entries for translation – one as a part of the bibliography entry of original, and then a separate one for original itself. I know that I could filter this by using categories in the document, but I'd like to come up with a solution where translation isn't printed by default


title: biblatex: separator for citing multiple sources, some of them with page, some not

text: I'm using biblatex for my references. Normally, if I use `\cite{source1, source2, source3}`, I get a citation like               [3, 45, 98]      If I now want to give a page number for one of them, it looks confusing imho, as I should get (did not try it out up to now, honestly)               [3, 45, 78, p. 23f, 98]      So imho it would make sense to change one of the separator from a comma to e. g. a semicolon like:               [3; 45; 78, p. 23f; 98]      **Question 1:** Does that make sense, or are there other conventions for citing sources with and without page numbers together? (Up to now I collected the citations without page number in one `cite` command and added singular `\cite[][p. xy]{}` commands for those with page numbers., so I'd get:                [3, 45, 98][78, p. 23f]      ) the `\cites[]{}[]{}[]{}` could also do that, but it also uses the same separators for entries and postnotes. **Question 2:** How could I change the separator globally for those number- citations from comma to semicolon in biblatex?


title: How do I use "John et. al. 1990 " citation for more than two authors?

text: I am trying to use natbib for citation. Whenever I am trying to use more than two authors for citation instead of using "et. al. " , citation becomes number format instead of author year citation. I am using it as               \usepackage[longnamesfirst, authoryear]{natbib}       and               \bibliographystyle{plainnat}


title: How to order 3 images horizontally?

text: I use the following code to include three images:               \begin{figure}[h]     \includegraphics{delete_gesture.png}     \caption{Awesome Image}     \label{fig:awesome_image}     \end{figure}          \begin{figure}[h]     \includegraphics{ok_gesture.png}     \caption{Awesome Image}     \label{fig:awesome_image}     \end{figure}          \begin{figure}[h]     \includegraphics{settings_gesture.png}     \caption{Awesome Image}     \label{fig:awesome_image}     \end{figure}      Now the images are ordered vertically. I want them horizontally. I tried to use `columns` or `multicols` but couldn't find a solution. Any hint?


title: Output latexindent auxiliary files to a different directory

text: I just started using Notepad++ and SumatraPDF for my LaTeX stuff. When compiling a `.tex` file using `pdflatex`, one can specify an option `-output-directory=<folder>` to save all the auxiliary files in `<folder>`. Is there a way to make `latexindent` do something similar? That is, when I run `latexindent.pl -w foo.tex`, I want it save the backup and log files in a folder that I specify.


title: How to set an Inline figure matching the text height?

text: I want to put a very small figure inline with text. The figure must have the same height as the line it is positioned in. I have this:               Some text... \includegraphics[height=\baselineskip]{picture.png} ... some more text.       This, however, makes the figure slightly too large, filling the whole space up to the bottom of the line above. I want the figure to be only as high as the capital letters of my font. What's the right way to do this?


title: prevent color from overlapsing cell border

text: All question I have looked to doesn't help me to solve my problem. Here's my code :               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[frenchb]{babel}     \usepackage{color}     \usepackage{colortbl}     \usepackage{longtable}     \usepackage{lmodern}     \usepackage[table]{xcolor}     \usepackage{multirow}     \usepackage{pdflscape}          \usepackage{hyperref}     \newcommand*{\thead}[1]{\multicolumn{1}{|c|}{\bfseries #1}}          \begin{document}               \newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}     \begin{landscape}     \begin{longtable}{|>{\raggedright\arraybackslash}p{3cm}|p{7cm}|c|p{7cm}|}     \hline     \cellcolor{gray!30} \centering \bfseries Flux de\par substance étudié &      \cellcolor{gray!30} \centering  \bfseries Mécanisme \par environnemental &      \cellcolor{gray!30} \bfseries Unité &      \multicolumn{1}{|p{7cm}|}{\cellcolor{gray!30} \centering \bfseries Remarques\par(RECORD)} \\     \cline{1-4}     \cellcolor{green!50}  & %     \cellcolor{green!50} \'Emission  de CO2 liée à l'épandage de chaux &     \cellcolor{green!50}  &     \\     \cline{2-2}     \cellcolor{green!50} \multirow{-2}{*}{CO2} &      \cellcolor{green!50}![enter image description here][1] \'Emission  de CO2 liée à l'épandage d'urée &     \cellcolor{green!50} \multirow{-2}{*}{$kg/ha$} &     \\     \hline     \end{longtable}     \end{landscape}     \end{document}      Here's what I get : ![enter image description here](http://i.stack.imgur.com/80ZnP.png) Table cell color overlaps cell border but I want the borders to be always visible. The answers given to questions I read doesn't helped as the people who give the solution doesn't explain well the code they give. How can I solve my problem?


title: Using listings' escapebegin/escapeend with short commands

text: I'm building `beamer` slides with code set using `listings` and I want to draw arrows to parts of the code. To achieve that I have a zero width command that defines a named PGF coordinate (given as the argument), here called `libraryCommand`. Now the problem: I want to have a pretty syntax, so I use `escapeinside`, which _should_ allow me to write `QhereW` to create a coordinate called `here`. Instead of writing the full command. The argument that's passed to `libraryCommand` has to be wrapped between two commands, I use the environment for that. It works outside the `lstlisting`. But inside, I get `Missing \endcsname inserted: \end{^lstlisting}`.               \documentclass{scrartcl}     \usepackage{listings}     \lstset{         % escapeinside={Q}{W}, % uncommenting this fails.         escapebegin=\begin{wrapThat},         escapeend=\end{wrapThat}     }     \newcommand{\libraryCommand}[1]{((#1))}     \newenvironment{wrapThat}{\wrapToEnd}{}     \long\def\wrapToEnd#1\end{\libraryCommand{#1}\end}     \begin{document}       foo \begin{wrapThat}bar\end{wrapThat} baz       \begin{lstlisting}         foo QbarW baz       \end{lstlisting}     \end{document}      So, how could I get this to work? I can't see what special thing they do in the DTX...


title: Drawing flow diagram in LaTeX using TikZ

text: I need to draw the following diagram using TikZ package in LaTeX ![enter image description here](http://i.stack.imgur.com/sja3g.jpg) I wrote the following code so far:               \documentclass[border=10pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{arrows}     \begin{document}         \begin{tikzpicture}[auto, node distance=2cm,>=latex']             \tikzstyle{block} = [draw, rectangle];             \tikzstyle{rblock}=[draw, shape=rectangle,rounded corners=0.5em];             \node [rblock] (start) {Start};             \node [block, right of=start] (acquire) {Acquire Image};             \node [block, right of=acquire] (rgb2gray) {RGB to Gray};             \node [block, right of=rgb2gray] (otsu) {Localized OTSU Thresholding};             \node [block, below of=otsu] (gchannel) {Subtract the Green Channel};             \node [block, left of=gchannel] (closing) {Morphological Closing};         \end{tikzpicture}     \end{document}      But the result I get is really bad and all the boxes are on top of each other. Please note, in my code "Subtract the Green Channel" node is below "Localized Otsu Thresholding" but that is also fine, flow diagram can flow either way but preferably the one shown in image. Could someone please tell me what I'm missing? How can I fix the length of box and let text within them span multiple lines? If possible an someone provide me LaTeX code that could draw flow diagram as shown in image? Any help would be appreciated. Thanks everyone who answered. I've got this far: ![Progress so far](http://i.stack.imgur.com/I4Ugo.jpg) The code I used is below:               \begin{tikzpicture}[>=latex']         ikzset{block/.style= {draw, rectangle, align=center,minimum width=2cm,minimum height=1cm},         rblock/.style={draw, shape=rectangle,rounded corners=1em,align=left,minimum width=1.5cm,minimum height=0.75cm},         input/.style={ % requires library shapes.geometric                                                                                draw,           trapezium,           trapezium left angle=60,           trapezium right angle=120,           minimum width=2.0em,           align=center,           minimum height=1.5em         },       }               \node [rblock] (start) {Start};       \node [block, right =1.75em of start] (acquire) {Acquire Image};          \node [block, right =1.75em of acquire] (rgb2gray) {RGB to Gray};     \node [block, below =1.75em of rgb2gray.south] (otsu) {Localized OTSU \\ Thresholding};     \node [block, left =1.75em  of otsu] (gchannel) {Subtract the Green \ Channel};     \node [block, below left =1.75em of gchannel] (closing) {Morphological \\ Closing};     \node [block, right =1.75em of closing] (NN) {Sign Detection \\ Using NN};     \node [input, right  =1.75em of NN] (limit) {Speed \\ Limit};     \node [coordinate, right =1em of otsu.east] (otsu_right) {};  %% Coordinate on right and middle                                                                                %% paths                                                                                \path[draw,->] (start) edge (acquire)       (acquire) edge (rgb2gray)       (rgb2gray.east) -| (otsu_right) -- (otsu.east)       (otsu) edge  (gchannel)     %  (gchannel) edge (closing)                                                                                %  (closing) edge (NN)                                                                                %  (NN) edge (limit)                                                                                ;     \end{tikzpicture}      I'm using two column paper style therefore you fit things in, I've putting less number of boxes each line. I want that `RGB to Gray` node should be right aligned with `Localized OTSU` node and `Morphological opening` node left aligned with `Subtract Green Channel` node. I Please help. Thanks!


title: Two figures in one page of two columns style

text: I want to insert two pictures in one page. Each picture should be expanded in two columns. So far the only thing that I can do is to insert one picture expanded in two columns but I can't put two pictures.               \documentclass[twocolumn]{article}     \usepackage{lipsum}     \usepackage{stfloats}     \begin{document}          \lipsum[1-5]     \begin{figure*}[t]     \centering\rule{0.8\textwidth}{0.3\textwidth}     \caption{A nice figure}     \end{figure*}     \lipsum[1-10]          \lipsum[1-5]     \begin{figure}[h]     \centering\rule{0.8\textwidth}{0.3\textwidth}     \caption{A nice figure}     \end{figure}     \lipsum[1-10]          \end{document}


title: Automatically adjusting size of a box based on other content

text: The following code creates chapter titles with a red bar of adjustable height. Currently, I have to potentially adjust the height for each chapter based on the included mini table of contents. Is there any way to automatically calculate the height of that mini table of contents and use that value to set the height of the red bar.               \documentclass[11pt,openany]{memoir}     \usepackage{titletoc}     \usepackage{lipsum}          \usepackage{color,calc}     \definecolor{ChapRed}{rgb}{.600,.100,.100}          \setsecheadstyle{\color{ChapRed}\large\bfseries}          %% adapted from BlueBox style, pp:43-44     % http://mirror.csclub.uwaterloo.ca/CTAN/info/latex-samples/MemoirChapStyles/MemoirChapStyles.pdf     \newcommand{\RedBarLength}{5em}          \newsavebox{\ChpNumBox}     \makeatletter     \newcommand*{\thickhrulefill}{%     \leavevmode\leaders\hrule height 1\p@ \hfill \kern \z@}     \newcommand*\BuildChpNum[2]{%     \begin{tabular}[t]{@{}c@{}}     \makebox[0pt][c]{#1\strut} \\[.5ex]     \colorbox{ChapRed}{%     \rule[-\RedBarLength]{0pt}{0pt}%     \rule{1ex}{0pt}\color{white}#2\strut     \rule{1ex}{0pt}}%     \end{tabular}}     \makechapterstyle{RedBox}{%     \renewcommand{\chapnamefont}{\large\scshape}     \setlength{\beforechapskip}{-30pt}     \setlength{\midchapskip}{10pt}     \setlength{\afterchapskip}{30pt}     \renewcommand{\printchaptername}{}     \renewcommand{\chapternamenum}{}     \renewcommand{\printchapternum}{%     \sbox{\ChpNumBox}{%     \BuildChpNum{\chapnamefont\@chapapp}%     {\chapnumfont\thechapter}}}     \renewcommand{\printchapternonum}{%     \sbox{\ChpNumBox}{%     \BuildChpNum{\chapnamefont\vphantom{\@chapapp}}%     {\chapnumfont\hphantom{\thechapter}}}}     \renewcommand{\afterchapternum}{}     \renewcommand{\printchaptertitle}[1]{%     \usebox{\ChpNumBox}\hfill     \parbox[t]{\hsize-\wd\ChpNumBox-1em}{%     \vspace{\midchapskip}%     \thickhrulefill\\[10pt]     {\chaptitlefont \textcolor{ChapRed}{##1}}\\     \startcontents[chapters]     \printcontents[chapters]{}{1}{\color{ChapRed}}     }}%     }     \chapterstyle{RedBox}          \begin{document}     \tableofcontents     \chapter{A chapter}     \section{Section}     \lipsum[1]     \section[Short title for this section]{Section 2 with a very, very long title which probably takes more than one line}     \lipsum[1]          \renewcommand{\RedBarLength}{19em}   %% How to automate this ?          \chapter{Second chapter}     \section{Section}     \lipsum[1]     \section{Another section}     \lipsum[1]     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \section{Another section}     \end{document}


title: siunitx: Alignment Problems with numbers in parenthesis

text: The example given below gives me a strange offset in 4th decimal place in the parenthesis. Interestingly, this problem arose only after I updated my Miktex 2.8 to Miktex 2.9. I don't know whats causing this is slight shift in the last decimal point in the second row. ![enter image description here](http://i.stack.imgur.com/A5NTk.png) Here is the code for above output.               \documentclass[12pt]{article}          \usepackage{amsfonts}     \usepackage{amsmath,array}     \usepackage[detect-all]{siunitx}     \usepackage[margin=1 in]{geometry}     \usepackage{booktabs, longtable}     \usepackage[english]{babel}          \begin{document}     \begin{table}[htbp]     \footnotesize      \centering          \sisetup{input-symbols=(), table-figures-integer = 3, table-figures-decimal = 4, table-number-alignment = center}           \begin{tabular}{lSSSSSS}          \toprule                 & {\bf (A)} & {\bf (B)} & {\bf (C)} & {\bf (D)} & {\bf (E)} & {\bf (F)} \\     \hline \midrule          & 0.0016*** & 0.0013*** & 0.0015*** & 0.0015*** & 0.0009** & 0.0009** \\               & (0.0005) & (0.0005) & (0.0006) & (0.0006) & (0.0004) & (0.0005) \\          &       &       &       & 0.1324*** & 0.1202*** & 0.1203*** \\               &       &       &       & (0.0131) & (0.0118) & (0.0118) \\      &       &       &       & -0.0549*** & -0.0569*** & -0.0569*** \\               &       &       &       & (0.0023) & (0.0024) & (0.0024) \\         \hline \bottomrule         \end{tabular}     \end{table}     \end{document}


title: PSTricks to SVG

text: I would like to make block diagrams using the pst-sigsys package (as demonstrated here: http://squobble.blogspot.com/2009/12/drawing-beautiful- block-diagrams-in_04.html). I can do that and export to PDF or PS and the like. What's the best way to get the blocks rendered on a web page? I am thinking SVG. How can I accomplish that?


title: error message when trying to 'latex makebst'

text: In trying to create a customized bibliography style, I have attempted to run the command _latex makebst_ (and alternatively _tex makebst_ ) but to no avail. Instead, I get the following error message:               ! I can't write on file 'makebst.log'.       Plase type another transcript file name:       ! Emergency stop       No pages of output.        I am using Version 3.1415926 (MiKTeX 2.8), for what it's worth. Any suggestions/insight on how to correct for this error?


title: Having all links underlined with dotted line

text: so I'm trying to figure out how to have all links underlined with a dotted line. The furthest I got with this and this is:               \documentclass{article}     \usepackage{xcolor,soul,lipsum}     \usepackage[hidelinks]{hyperref}     \usepackage{tikz}      \def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true       \def\@pdfborderstyle{/S/U/W 0}     \newcommand{\udot}[1]{%     \tikz[baseline=(todotted.base)]{     \node[inner sep=-1pt,outer sep=0pt] (todotted) {#1};     \draw[dotted] (todotted.south west) -- (todotted.south east); }%}%     \newcommand{\myhy}[2]{\udot{\hyperref[#1]{\color{black}\setulcolor{white}\ul{#2}}}}     \begin{document}     \section{To See}\label{tosee}     \vskip2cm     This is \myhy{tosee}{just to see} what it looks like\footnote{\lipsum[1]}. \lipsum[1-2]     \end{document}      The problem is I want to have formatted in this way every singe link in a document (including links to footnotes, webpages, etc.). Any ideas?


title: Unexpected citation behavior: biblatex with biber and authoryear

text: The citation style `authoryear-comp` is designed to output citations of the form '(Doe, 1992)'. (See p. 62 of the `biblatex` documentation.) This has worked as expected for me, even when using Biber as backend. Recently, however, the behavior of `authoryear-comp` with `biblatex` does not match this. Instead of outputting citations of the form (Doe, 1992), it is simply printing the _title_ and the year of the corresponding entry. Here's a minimal example:               \documentclass{article}          \usepackage[style=authoryear-comp,backend=biber]{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @article{Bli74,       author = {Blinder, Alan S.},       year = {1974},       title = {The economics of brushing teeth},       journaltitle = {Journal of Political Economy},       volume = {82},       number = {4},       pages = {887--891},       }     \end{filecontents}          \bibliography{\jobname}          \begin{document}          This paper is very good: \cite{Bli74}.          \printbibliography          \end{document}      And the generated pdf: ![Output using biber and authoryear-comp](http://i.stack.imgur.com/q7OTK.png) Again, if I don't call Biber, `biblatex` behaves as expected given the citation style. I'm using pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011), and `biblatex` v1.7. I get the same results using XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011). Thoughts?


title: Plotting 3D polyhedra, which package?

text: I have been using TikZ a lot but only for 2D plots. I was hoping I could use the 3D package for plotting regions on the (x,y,z) plane given by linear inequalities (currently I'm using Mathematica for these 3D plots but I wanted to have more control over the plot options) but it seems that this is not the case. **Is there any alternative to TikZ-3D that is able to plot set of points (x,y,z) such that 0 is less or equal than min(x,0)+min(x,y,0)+z ?** By that I mean: 1) Can it plot 3D level sets? and 2) If the function is a binary function: 1 in a set similar to the one described above and zero elsewhere, will it be able to do the level sets plot in minutes (say less than one hour)? EDIT: "tikz-3dplot does not, in general, consider polygons, surfaces, or object opac- ity" so I'm changing the question to allow for gnuplot, PStricks or Asymptote (I'm not familiar with both of these packages) or any tool that allow me to control the plots specifications with greater detail. I'm attaching a 3D plot I did with Mathematica:![enter image description here](http://i.stack.imgur.com/ePSIJ.jpg)


title: different before/after placeholders for \movie from multimedia package in beamer

text: When one uses               \movie[]{ \includegraphics[]{} }{}      to set an image as the placeholder before a video begins in a slide, is there a way to set a different image that appears after the video plays? I am using Ubuntu and have found that Okular is the only viewer that allows me to play video embedded by beamer. It reverts to my original placeholder once the video completes. I would really like it to hold the final view from the video if possible, because ultimately that is what I want anyway. However, I have access to the final image since I am making the videos myself from a series of images so a solution that throws up an image right after the video plays is also fine.


title: Title Page with TikZ that fits on A4 Paper Size

text: Using the following TikZ code or background image, I would like to add some information to it and use as my title page such that it fits perfectly on an A4 paper size.               \begin{tikzpicture}     \shadedraw [left color=red,right color=blue] (0,0) rectangle (10,13);     \end{tikzpicture}      I would like to add:   1. My book's title centered around the top: "This is my Book's Title" in white text.    2. Then below that the author, also centered and in white: "Author XY". I am using the standard book class.   3. And finally down below the date also in white and centered. How can I achieve this? Thanks in advance.


title: Cross Reference Enumeration from a Different Document

text: I'm working on a Design document that is based on a Requirements document that is subject to change. The Design document must reference Requirements in an enumerated list from the Requirements Document. My requirements document has something like this:               \documentclass{article}     \usepackage{graphicx}     \usepackage{mathtools}     \begin{document}     \begin{enumerate}         \item Requirement 1  \label{Req1}         \item Requirement 2:         \begin{enumerate}             \item Requirement 2a \label{Req2a}             \item Requirement 2b \label{Req2b}         \end{enumerate}     \end{enumerate}     \end{document}      My design document looks like this:               \documentclass[hidelinks]{article}     \usepackage{graphicx}     \usepackage{geometry}     \usepackage{fancyhdr}     \usepackage{amsmath, amsthm ,amssymb}     \usepackage{graphicx}     \usepackage{enumerate}     \usepackage{hyperref}     \usepackage{xr}          \begin{document}     \externaldocument{../requirements/Requirements.tex}          \section{Functional Requirements}     Functional Requirements are things the system must do. These are: \\          \begin{tabular}{| l | l |}         \hline         Requirement & Subsystem(s) implementing the requirement \\ \hline         \ref{Req1} & Graphical Front End \\ \hline          \end{tabular}          \end{document}        I'd like to see the number that is given to the item in the enumeration show up in the \ref{Req1} space. But what I see now are two question marks. What am I missing?


title: network operation of texmaker

text: Is it possible to open texmaker with a specified texmaker.ini file unique to the (linux) user? We serve texmaker from a central file server, and the only way that I have found to allow users to save their individual settings is to save a texmaker.ini file, then upon opening texmaker, reload the saved texmaker.ini file.


title: How to get the the dot symbol in Chemistry?

text: How to get this dot in the picture? ![enter image description here](http://i.stack.imgur.com/G8DF5.png)


title: Vertical alignment of a tabular in an equation

text: I am using the package `sgame` to format normal form games. The games are commonly formatted inside a `figure` but I would like to use them in an `equation`. I am having a problem with the vertical spacing of punctuation. Here is the code I use:               \documentclass{article}          \usepackage{color}     \usepackage{sgame}     \gamemathtrue          \begin{document}          \begin{equation}     \begin{game}{3}{2}       & F     & O    \\     F & 2, 2  & 0, 1 \\     O & 0, 0  & 1, 3 \\     P & 0, 0  & 1, 3     \end{game}     .     \end{equation}          \end{document}      Here is the result: ![result](http://i.stack.imgur.com/gkUsV.png) I like the alignment of the equation number but not of the period. I would like to have the period aligned with the text in the last row of the table. The distance is `0.3\baselineskip` from the bottom horizontal line but it is not a fixed distance from the baseline. This is what I am after: ![enter image description here](http://i.stack.imgur.com/4a0iP.png)


title: Setting the right linespread for kpfonts

text: Is this the right `linespread` for `kpfonts`?               \PassOptionsToPackage{nomath,oldstylenums,oldstyle,noamsmath,notextcomp}{kpfonts}     \RequirePackage{kpfonts}     \linespread{1}


title: Using language Portuguese on Appendices throws unsupported control sequence

text: I am trying to compile my work under MikTex 2.9 windows 7 and/or Kyle 2.1.2 The appendices are throwing an unsupported control sequence error when I try to compile with the langage set to Portuguese. This is my preamble where the packages are loaded.               \usepackage[brazil,american]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{indentfirst}     \usepackage{natbib}     \usepackage{url}     \usepackage{xcolor,graphicx,url}     \usepackage[utf8]{inputenc}     \usepackage{amsmath,amssymb,amsthm}     \usepackage{epstopdf,placeins}     \usepackage{glossaries}     \usepackage{caption}     \usepackage[toc,page]{appendix}      If I set the language to English, document compiles ok. The error message points to the .out file:               \BOOKMARK [0][-]{section*.40}{Refer\352ncias}{}% 35     \BOOKMARK [0][-]{Ap�ndice.1.A} <-------------- this line is throwing the error      Tried to compile it on Kyle (linux) and on Windows (MikTex), and both have the same error. Only difference is the character `ê` is printed on the .out file in Linux, and windows has that stupid question mark encoding error thing. If I switch languages before calling the appendices chapters, everything runs fine. Also, if I override the `\def\appendixname{Ap\^endice}%` from the PT babel file without the accent, it compiles just fine. How can I compile the appendices in Portuguese (keeping the correct spelling of the word) without that error?


title: Multiple side-by-side signatures in letter

text: I am attemting to add three side-by-side signature to a `scrlttr2` letter by using a `minipage` environment in the signature definition. I am getting an error: `Extra }, or forgotten \endgroup` pointing me to the closing line. The error goes away if i do without the minpages. Here's the MWE:               \documentclass[%     paper=letter,     pagesize,     fontsize=10pt,     standard     ]{scrlttr2}          \usepackage{filecontents}     \setkomavar{fromname}{Sender's Name}     \setkomavar{fromaddress}{Some street\\in some town\\with zip code}     \begin{filecontents}{standard.lco}         \setkomavar{signature}{%          \begin{minipage}[b]{0.33\linewidth}         First name\\         Position 1         \end{minipage}         \begin{minipage}[b]{0.33\linewidth}         Second name\\         Position 2         \end{minipage}         \begin{minipage}[b]{0.33\linewidth}         Third name\\         Position 3         \end{minipage}     }          \@setplength[1]{sigindent}{0.01\textwidth}     \end{filecontents}               \begin{document}     \begin{letter}{%     Recipient's name,\\     Some position\\     More address info     }          \opening{Dear Recipient}     \lipsum[1-2]          \closing{Sincerely,}          \end{letter}     \end{document}      The document renders correctly, even though the compilation fails. Am I going the right way about this?


title: Biblatex: have "and" in the citation but "&" in the bibliography

text: I'm starting using BibLatex/biber to process my bibliographic entries in Latex. Using the authoryear style as a start, I tweak in order to comply to editorial style of the journal I'll submit my paper to. One of the tweaks is to replace the default "and" by an ampersand (&) before the last author in the bibliography, using the following code:               % Add a comma and replace "and" with "&" before last coauthor     \renewcommand*{\finalnamedelim}{%        \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%        \addcomma\addspace\&\space}      Unfortunately this code does also replace the "and" in citations, contrary to what the journal wants for citations. My question is, how to replace "and" by "&" only in the bibliography? It seems like biblatex-dw has this option but my document doesn't compile with this style.


title: Using memoir and minitoc

text: I am writing a little book with the `memoir` class and I would love to add little table of contents at the start of each chapter. I found that I could use the `minitoc` package, but it doesn't seem to work. I tried `mtcpatchmem.sty` by importing `\usepackage{mtcpatchmem}` (with `mtcpatchmem.sty` in my root directory) but it still does not work. Is there a solution, or workaround? If there are any workarounds, I would like it to look like the `minitoc` package, since I really like the style.               \documentclass{memoir}          \usepackage[utf8]{inputenc}     \usepackage[francais]{babel}     \usepackage[T1]{fontenc}          \usepackage{minitoc}          \usepackage{shorttoc}     \usepackage{lipsum}          \usepackage{libertine} %MikTeX says this is depreciated, alternative?     \renewcommand*\oldstylenums[1]{{\fontfamily{fxlj}\selectfont #1}}          \title{Hello, World}          \begin{document}     \maketitle     \newpage     \shorttableofcontents{Les Grandes Lignes}{0}     \tableofcontents          \part{Introduction}          \chapter{Merci}     This does not work.     \minitoc          \section{Contenu}     \lipsum[1]          \section{Hello}     \subsection{Bye Bye}     \end{document}      PS: I am well aware there is a similar question, but it never really had a real answer. Also, I am using MikTeX 2.9.


title: Bibtex and index of authors

text: Is there any way of automatically creating an author index based on citations via bibtex?


title: Compile to the actual location of a file

text: So I'm really new to Latex and using python to compile a document, using "output\pdflatex test1" However the compiled files are created in the main directory, not the subdirectory of output, where the `.tex` file is. Would love any help on this matter please! Cheers!


title: Custom macro for multicolumn with & without xparse

text: The following example has two normal LaTeX `\newcommand` macros and two xparse `\NewDocumentCommand` for specifying multicolumn text. The only difference between each pair of commands is one has the alignment character as part of the macro and one does not. However, the xparse version that requires the alignment character to be outside of the macro does NOT work and results in `Misplaced \omit.` error.               \documentclass{article}     \usepackage{xparse}          \newcommand{\MulticolumnA}[3]{&\multicolumn{#1}{#2}{#3}}     \newcommand{\MulticolumnB}[3]{ \multicolumn{#1}{#2}{#3}}          \NewDocumentCommand{\MulticolumnX}{m m m}{&\multicolumn{#1}{#2}{#3}}     \NewDocumentCommand{\MulticolumnY}{m m m}{ \multicolumn{#1}{#2}{#3}}          \begin{document}     \[     \begin{tabular}{lllllll}         {a} \MulticolumnA{4}{l}{A-abcdefghijkli}\\         {a}&\MulticolumnB{4}{l}{B-abcdefghijkli}\\         {a} \MulticolumnX{4}{l}{X-abcdefghijkli}\\         %{a}&\MulticolumnY{4}{l}{Y-abcdefghijkli}\\         {col1}&col2&{col3}&{col4}&{col5}\\     \end{tabular}     \]     \end{document}      Above compiles as is, but does not compile if the one line is uncommented.


title: scrpage2: unnumbered headings with \addsec get the wrong automarks

text: Here's my code:               \documentclass{scrbook}          \usepackage[english]{babel}     \usepackage{blindtext}          \usepackage[markuppercase]{scrpage2}     \pagestyle{scrheadings}     \automark[chapter]{part}          \begin{document}          % This works as expected     \part{Ancient writing and its influence}     \chapter{The origin of writing}     \section{Introduction}          \blindtext[15]          % But this doesn't     \addpart{Modern writing and its influence}     \addchap{The end of writing}     \addsec{Conclusion}          \blindtext[15]          \end{document}      The problem is that the headmarks in the unnumbered document half keep running like `[section]{chapter}` and I want them running like `[chapter]{part}`. What am I doing wrong?


title: \nocite{*} problem using moderncv with multibib

text: I am recently using the `moderncv` template with `multibib` package for writing my cv. The problem that I encounter is as the following:               \documentclass[11pt,a4paper,sans]{moderncv}      \moderncvstyle{casual}       \moderncvcolor{blue}     \usepackage[scale=0.75]{geometry}     \usepackage{multibib}     \newcites{j}{Journals}          \begin{document}     \makecvtitle          \section{Publications}     \nocitej{wang2012}     \bibliographystylej{plain}     \bibliographyj{publications}     \end{document}      When I try to compile BiBTeX first, it also shows the error message: "Process exited with error(s)" and nothing else.... I do this on a Windows7 system, any suggestions? If not using the multibib package, everything works out fine, which means:               \documentclass[11pt,a4paper,sans]{moderncv}      \moderncvstyle{casual}       \moderncvcolor{blue}     \usepackage[scale=0.75]{geometry}     %\usepackage{multibib}     %\newcites{j}{Journals}          \begin{document}     \makecvtitle          \nocite{*}     \bibliographystyle{plain}     \bibliography{publications}     \end{document}


title: How to create equally spaced columns in a table with centered number blocks, which themselves are aligned on the decimal marker?

text: I've searched around this site and also alot with Google, but did not find exactly a solution to my problem: I want to create a table width equally (and automatically) spaced columns. These columns contain numcerical values, which should be aligned at the decimal marker. In each column, the whole number block shall then be centered with respect to the column. I've tried using S columns of the siunitx package with the table-number- alignment=center option and fideling around with table-format=n.m. However, this only works, if in all columns there occurs at least once a number having +n integers or m decimal places. Here a short example of my efforts, the vertical line are only for vizualization:               \documentclass{article}          \usepackage{booktabs}     \usepackage{tabularx}     \usepackage{siunitx}     \begin{document}          \begin{table}\small       \centering       \sisetup{       table-number-alignment = center,       table-format=+2.3       }       \begin{tabularx}{\textwidth}{       @{}c|*{7}{S|}@{}       }       \toprule         Text & aa & bb  & cc &  ff &  gg  &   hh   &   kk    \\       \midrule         Text & 1    &  0.115 &  0.086 & 1.41  &  0.23  &  0.092 &  6.82    \\         Text & -32  &  5.3   & -36    & 0.01  &  50.1  &  0.7   & -18.8   \\       \bottomrule       \end{tabularx}       \caption{Example}     \end{table}     \end{document}      Column "cc" looks as it should, because it matches the +2.3 figure-format, while columns "bb" or "hh" look somewhat strange. I want these numbers to be centered, too. Is it possible to get the desired look using the siunitx package?