title: Adjusting the size of an arrow

text: I would like to make the width of an arrowhead larger. Is there a simple way to do this without defining a new arrowhead type? For instance, I would like to be able to write something like \draw[->,arrow head width=20pt]. To see what I have in mind, and why, consider the following:               \documentclass{amsart}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \draw[->,line width=1pt] (0,0) to (1,0);     \end{tikzpicture}     \scalebox{.01}{     \begin{tikzpicture}     \draw[->,line width=100pt] (0,0) to (100,0);     \end{tikzpicture}     }     \end{document}      ![enter image description here](http://i.stack.imgur.com/FyAd7.png) I would like to be able to adjust the second picture so that it looks identical to the first picture. There are a number of elegant answers on other questions regarding ways of making arrowheads scale nicely and whatnot, but as you can see, I want more or less the opposite --- a solution that doesn't respond/adjust on its own, so I can tweak the size of the arrow manually. (As for why I am using a scalebox here, it has to do with tikz's inability to do floating point calculations, cf Avoiding `Dimension too large' and `ill- formatted floating point' errors in tikz)


title: Make text from external file uppercase

text: I would like to do something like               \uppercase{\input{filename}}      so that the text in the file `filename` is printed uppercase. (Above command complains about `FILENAME.tex` not to exist, apparently `\uppercase` is applied before `\input` is expended.)


title: How can I visualize Matrix operations?

text: I would like to visualize some matrix operations like that: ![enter image description here](http://i.stack.imgur.com/v06LD.gif) How can I do that (preferably something that also works for mathjax)?


title: How to decrease algorithm indent for package algpseudocode?

text: I would like to save some horizontal space by changing indent space for package `algpseudocode`. How can I do that? I think the variable I have to change is `\algorithmicindent` but I can't manage to do that.               \documentclass{article}     \usepackage{algorithm}% http://ctan.org/pkg/algorithm     \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx          \usepackage{caption}     \usepackage{subcaption}     \usepackage{tikz}     \begin{document}     \section{foo}     Text          \setlength\fboxsep{0pt}     \renewcommand\algorithmicindent{.5em}          \begin{figure}[!ht]       \fbox{       \begin{subfigure}[b]{.5\linewidth}         \centering         \begin{algorithmic}[0]           \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}             \State $r\gets a\bmod b$             \While{$r\not=0$}\Comment{We have the answer if r is 0}               \State $a\gets b$               \State $b\gets r$               \State $r\gets a\bmod b$             \EndWhile\label{euclidendwhile}             \State \textbf{return} $b$\Comment{The gcd is b}           \EndProcedure         \end{algorithmic}              \caption{Algorithm}\label{fig:alg}       \end{subfigure}%       }       \quad       \begin{subfigure}[b]{.5\linewidth}         \centering         \tikz\draw [fill=red!20] (0,0) rectangle (3,2);         \caption{tikz}\label{fig:tikz}       \end{subfigure}       \caption{Both}\label{fig:both}     \end{figure}          Text \ref{fig:alg} and \ref{fig:tikz} and \ref{fig:both}          \end{document}      *** Edit *** And the result of `\listfiles` is:                *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     algorithm.sty    2009/08/24 v0.1 Document Style `algorithm' - floating environm     ent        float.sty    2001/11/08 v1.3d Float enhancements (AL)       ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     algpseudocode.sty         algorithmicx.sty    2005/04/27 v1.2 Algorithmicx      caption.sty    2010/01/09 v3.1m Customizing captions (AR)     caption3.sty    2010/01/14 v3.1m caption3 kernel (AR)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     subcaption.sty    2008/08/31 v1.0b Adding subcaptions (AR)         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)      ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex     supp-pdf.mkii     pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf       grfext.sty    2010/08/19 v1.1 Managing graphics extensions (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Defining keys (HO)     kvoptions.sty    2010/12/23 v3.10 Keyval support for LaTeX options (HO)     kvsetkeys.sty    2011/04/07 v1.13 Key value parser (HO)     etexcmds.sty    2011/02/16 v1.5 Prefix for e-TeX command names (HO)     epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live      I'm using a mac. I have installed the latex packages using macports and those are the most recent versions available there.


title: How To Add MarVoSym Font to Context on Windows ?

text: I have context source file containing               \definefont[Dings][name:MarVoSym]      and I import it via \input . When I run **context** on my source, I always get               ! Font \**Dings**:=MarVoSym at 11.0pt not loadable: Metric (TFM) file not found      I wish I could recall how I made it working on Linux but this machine is **Windows with fresh TexLive 2010 installation** and I am kind of confused what to do.


title: pdflatex change my text format following after one figure, using this figure's format

text: I have a figure between some texts. The text after the figure appears to use the figure's format. which is "centered" and "scale=0.65". As well as the following sections appeared in the same page. Can anybody please help me. Thanks               \documentclass{article}     \usepackage{graphicx,color}     \usepackage{epstopdf}     \begin{document}               \section{Title}     \section{The Foundations}          \subsection{Markov Decision Processes \& Reinforcement Learning}     Some Text 1     \begin{figure}[ht]     \begin{center}     \includegraphics[width=90mm]{./Figures/can.eps}     \caption{A simple CAN topology.}     \label{fig:test}     \end{center}     \end{figure}     Some Text 2     \subsection{Subtitle}          Plain text.          \subsection{Another subtitle}          More plain text.               \end{document}      ![enter image description here](http://i.stack.imgur.com/va1BR.jpg)


title: Listings problem with quotes in a string

text: A single quote occuring inside a `listings` string seems to be interpreted as ending the string. Is there a way to avoid this from happening?               \documentclass[12pt]{article}     \usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}          \setlength{\parindent}{0cm}          \usepackage[english]{babel}          \usepackage{listings}          \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}          \begin{document}          \lstset{language=Matlab,             basicstyle=\ttfamily,             keywordstyle=\color{Blue}\ttfamily,             stringstyle=\color{Red}\ttfamily,             commentstyle=\color{Emerald}\ttfamily,             morecomment=[l][\color{Magenta}]{\#},             breaklines=true,             breakindent=0pt,             breakatwhitespace,             columns=fullflexible,             showstringspaces=false     }               \begin{lstlisting}     a=1;     if a==1         disp('Is 1')     elseif a==2         disp('Is 2')     else         disp('I don't know')     end     \end{lstlisting}          \end{document}      ![enter image description here](http://i.stack.imgur.com/iMjCf.png)


title: How to draw this circuit (or something similar) with circuitikz?

text: I've been playing around with `circuitikz`, and am really loving it so far. The only problem is that I really don't know how to adapt it when there a symbol that I want is not present. For example, I would like to draw the following circuit: ![A circuit](http://i.stack.imgur.com/Nfbxl.jpg) The specific problem that I am having is that I don't know how to terminate both ends with a +5V and -5V symbol. This is the best that I could come up with:               \documentclass{article}     \usepackage[american voltages,siunitx]{circuitikz}     \begin{document}     \begin{circuitikz}        \draw (0,0) to [battery,l=\SI{-5}{V}] (0,0)                    to [empty led,l=LED1] (0,3)                    to [R=\SI{510}{\ohm}] (0,5)                    to [battery,l=\SI{5}{V}] (0,5);                        \end{circuitikz}     \end{document}      Another related question: How do I flip the LED direction in the code above without starting from the top (0,5) and going to (0,0)? I tried something like `[empty led,l<=LED1]` but that didn't work. Thank you for any advice or suggestions!


title: font size scaling and node placement issues using pgfplots and tikzscale

text: From the `tikzscale` documentation I understand, that it is supposed to keep font sizes constant. However, this does not seem to apply to axis ticks or axis labels from `pgfplots`' `axis` environment. Also, node placement seems to be messed up. This is illustrated in the following example:               \documentclass[10pt,crop]{standalone}     \usepackage[english]{babel}     \usepackage{pgfplots}     \usepackage{tikzscale}     \usepackage{filecontents}     \pgfplotsset{compat=1.9}     \begin{document}     \begin{filecontents}{font-size.tikz}     \begin{tikzpicture}       \begin{axis}[       width=150pt,       height=150pt,       xmin=-1,xmax=1,ymin=-1,ymax=1,       xlabel=xlabel,       ylabel=ylabel,       ]       \addplot coordinates{        (-0.9,-0.9)       (0.9,0.9)       };       \node[anchor=west] at (axis cs:-1,0) {01};       \coordinate (a) at (axis cs:-1,0);       \end{axis}       \node[anchor=west,red] at (a) {02};     \end{tikzpicture}     \end{filecontents}          Some text in font size 10pt.     \input{font-size.tikz}     \includegraphics[width=250pt]{font-size.tikz}     \end{document}      ![enter image description here](http://i.stack.imgur.com/XSLkg.png)   In the first plot, created without `tikzscale`, all labels and nodes have the correct font size and node "02" is placed correctly. In the second plot, however, font sizes for the labels are obviously larger. The same holds for node "01". Interestingly, node "02" has the correct font size, but the placement is wrong. Is there a way to correctly scale the `axis` (or `groupplot`) environment while preserving the labels' and nodes' font sizes as well as placing nodes at the correct position?


title: how to plot a sequence of numbers (not co-ordinates as such) using pgfplots

text: I have a data file containing a sequence of numbers, to be plotted against integers starting from 1. So the x co-ordinate is the row number of the data in the file. How to plot this data using pgfplots? UPDATE1: my data file looks like this               %cmc curve of nist14G21600V0P8T1sumFuse.bin          73.037          75.2963          76.7407          77.8889          79.1111          79.8519          80.3333          80.7407          81.0741          81.4444      UPDATE 2: When the above data is plotted using the command               \addplot  table [x expr=\coordindex + 1,y index=0]{datafile.txt};      the x axis does not start with 1. It starts with 0. Any suggestions?


title: Vim-LaTeX with latexmk closes .tex at compilation

text: **Problem** When I compile a .tex document with \ll and there are no changes, I get a short prompt and then get back to my document. However when there are changes, I get two other files presented and after closing them I get back to the command prompt as the original document is closed. P.S.: The Vim-LaTeX documentation mentions a "cwindow" being opened but my search for that yielded no relevant results. **Details**               LaTeX Font Warning: Some font shapes were not available, defaults substituted.     [...]     Output written on paper.pdf (4 pages, 404964 bytes).     Transcript written on paper.log.     Latexmk: Found input bbl file 'paper.bbl'     Latexmk: Log file says output to 'paper.pdf'     Latexmk: Found bibliography file(s) [...]     Latexmk: All targets (paper.pdf) are up-to-date          Betätigen Sie die EINGABETASTE oder geben Sie einen Befehl ein      When I hit `return` as requested, I am presented with `fontenc.sty` and after closing that with `cleverref.sty`:               || (./cleveref.sty)     || ))     || (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd)     paper.tex|| LaTeX Font Warning: Font shape `T1/aer/m/it' undefined     paper.tex|| LaTeX Font Warning: Font shape `T1/aer/bx/n' undefined     paper.tex|| LaTeX Font Warning: Font shape `T1/aett/m/n' undefined     || [4] (./paper.aux)     paper.tex|| LaTeX Font Warning: Some font shapes were not available, defaults substituted.      After I close that, there is no other open file anymore and I am back at the command prompt. **Context** The relevant part of my .vimrc:               filetype plugin indent on     set grepprg=grep\ -nH\ $*     let g:tex_flavor = "latex"     let g:Tex_CompileRule_pdf = 'latexmk -interaction=nonstopmode -pdf $*'     let g:Tex_DefaultTargetFormat = 'pdf'      I use vim 7.4 with Vim-LaTeX (latexsuite 1.8.23, AUR package vim-latexsuite- git 20130127.789-1) and latexmk 4.39 on Arch Linux 3.15.8-1-ARCH.


title: Metapost compiler freezes when I add labels

text: I installed texlive-metapost in Linux Mint (similar to Ubuntu), and each time I compile a MetaPost figure which contains a label, the compiler finishes the job, but the picture is not saved as ps, i.e. I cannot open it. I am thinking that maybe mpost does not compile latex formulas, but the compiler still doesn't give a result even when the formulas do not contain Latex. What is the problem, and what can I do? I noticed that in the online live previewer which can be found here the mp file compiles with no problems. Is there a similar compiler for MetaPost, which can be installed (for which you write the code in the left side and in the right side you get the preview, like Gummi?)? Thank you.


title: can not print citations as numeric style

text: I want to print references at the end of the file and use citations as numerical style. However, I can not add bibliography style. When I use `\bibliographystyle{plain}`, or any other styles, I get this error > ! Package biblatex Error: '\bibliographystyle' invalid. Moreover, even though I use `\usepackage[style=numeric,backend=biber]{biblatex}`, style does not change to numerical. Also, when I try to cite something not in my bib file, it is cited as well. Like;               \documentclass[10pt,journal,cspaper,compsoc]{IEEEtran}          \usepackage[style=numeric,backend=biber]{biblatex}     \addbibresource{main.bib}          \begin{document}     \IEEEcompsoctitleabstractindextext{          \begin{abstract}     ABSTRACT HERE     \end{abstract}          \begin{keywords}     \end{keywords}}          \author{     ...     }          \title{title here...}     \maketitle          \IEEEdisplaynotcompsoctitleabstractindextext          \IEEEpeerreviewmaketitle          this article is not in the bib file \cite{sample1}.      this article is in the bib file \cite{sample2}.           %\bibliographystyle{plain}     \printbibliography[title=References]               \end{document}      Here is the pdf output. ![enter image description here](http://i.stack.imgur.com/OLFB6.png)


title: For child entries with crossrefs, how can I instruct biblatex to output only a reference to the parent entry in the bibliography?

text: When producing a bibliography using `biblatex` and the `alphabetic` style, I would like to produce actual cross-references between two `crossref`-entries. For example, if I have several `@inproceedings` entries that define `crossref={proc}` and I have a matching `@proceedings` entry, I would like to generate something along the lines of: > [Aut13a] Test Author. “Testing the second Title”. In: [EE13], pp. 10–20. > > [Aut13b] Test Author. “Testing the Title”. In: [EE13], pp. 1–10. > > [EE13] Senor Editor and Senora Editora, eds. My Proceedings. Any Publisher, > 2013. But the only result I am achieving so far is: > [Aut13a] Test Author. “Testing the second Title”. In: My Proceedings. Ed. by > Senor Editor and Senora Editora. Any Publisher, 2013, pp. 10–20. > > [Aut13b] Test Author. “Testing the Title”. In: My Proceedings. Ed. by Senor > Editor and Senora Editora. Any Publisher, 2013, pp. 1–10. > > [EE13] Senor Editor and Senora Editora, eds. My Proceedings. Any Publisher, > 2013. This is actually the same question as How can I print only Author-Date of the parent crossref in the bibliography entry of the child of the crossref? but the proposed answer there is just a work-around which would be very tedious for my rather large bibliography file. The behavior described above is standard BibTeX behavior for the `alpha` style, AFAIK. So I suspect this is just one of the approximately 10,000 configuration options of `biblatex` and I'm simply not aware of how to do it ;-) To get you guys going, here is an MWE:               \documentclass[]{article}          \usepackage[backend=biber,style=alphabetic]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{my.bib}     @inproceedings{inproc1,         Author = {Test Author},         Crossref = {proc},         Pages = {1--10},         Title = {Testing the Title}}          @inproceedings{inproc2,         Author = {Test Author},         Crossref = {proc},         Pages = {10--20},         Title = {Testing the second Title}}          @proceedings{proc,         Editor = {Senor Editor and Senora Editora},         Publisher = {Any Publisher},         Title = {My Proceedings},         Year = {2013}}     \end{filecontents}          \addbibresource{my.bib}          \begin{document}     Test \cite{inproc1} and \cite{inproc2}     \printbibliography     \end{document}


title: Diagrams with coloured boxes and arrows

text: I am trying to do the following diagram but seems that I can't understand the TikZ package: ![Diagram](http://i.stack.imgur.com/Fuoqc.png) How can i do it? Im using the following code:               \usepackage{tikz}          \usetikzlibrary{arrows, decorations.markings}           % for double arrows a la chef           % adapt line thickness and line width, if needed           \tikzstyle{vecArrow} = [thick, decoration={markings,mark=at position           1 with {\arrow[semithick]{open triangle 60}}},           double distance=1.4pt, shorten >= 5.5pt,           preaction = {decorate},           postaction = {draw,line width=1.4pt, white,shorten >= 4.5pt}]          \tikzstyle{innerWhite} = [semithick, white,line width=1.4pt, shorten >= 4.5pt]               \usetikzlibrary{positioning}          \begin{tikzpicture}     \matrix [column sep=7mm, row sep=5mm] {       \node (a) [draw, shape=rectangle] {Controlador de Solicitudes}; &       \node (b) [draw, shape=rectanble] {Receptor Satelital}; &       \node (c) [draw, shape=rectangle] {Decodificador}; \\       \node (d) [draw, shape=rectangle] {Almacenamiento de Informacion}; \\       \node (e) [draw, shape=rectangle] {Transmisor con GPRS}; \\       \node (f) [draw, shape=rectangle] {Servidor Web}; \\       \node (g) [draw, shape=rectangle] {Interfaz Web}; \\       \node (h) [draw, shape=rectangle] {Autentificacion}; \\          };     \draw[->, thick] (a) -- (b);     \draw[->, thick] (b) -- (c);     \draw[->, thick] (c) -- (d);     \draw[->, thick] (d) -- (e);     \draw[->, thick] (e) -- (f);     \draw[->, thick] (f) -- (g);     \draw[->, thick] (g) -- (h);     \draw[->, thick] (h) -- (f);     \draw[->, thick] (a) -- (e);     \draw[->, thick] (e) -- (a);     \end{tikzpicture}


title: What is the easiest way to decrease the linespread in a table of contents?

text: Using the scrartcl class for a report I am writing, I would like to have only the sections show up in the table of contents. Although I manage to do that, the linespread looks too big in my eyes, and I think this is a consequence of the reduced toc depth: ![alt text](http://i.stack.imgur.com/slm9g.png) For this reason, I would like to reduce the linespread locally. I tried to put a `{spacing}` around my code like this:               \begin{spacing}{0.5}        \setcounter{tocdepth}{1}        \rule{\textwidth}{1pt}        \vspace*{-1cm}        \tableofcontents        \vspace*{-0.5cm}        \rule{\textwidth}{1pt}     \end{spacing}      Which will not work, however. **What is the easiest way to decrease the linespread here?**


title: Remove the line between the caption and the table

text: I try to draw a table by using the following code:               \documentclass[]{sigplanconf}     \begin{document}     \begin{table}       \begin{tabular}{|l|}         \hline         A \\         B \\         C \\         D \\        \hline       \end{tabular}       \caption{Caption}     \end{table}     \end{document}      And the table is printed as follows (please ignore the brown background of letters). ![enter image description here](http://i.stack.imgur.com/Lj7Zm.png) Could anyone tell me how to delete the line between the caption and the table?


title: Nest StrLen and ifthenelse commands

text: Here is a sample of code I am working on:               \documentclass[10pt]{report}          \usepackage{xstring}     \usepackage{ifthen}     \begin{document}          \StrLen{123456}\\                                    %Prints 6           \ifthenelse{\equal{6}{6}}{TRUE}{FALSE}\\              %Prints True     %\ifthenelse{\equal{\StrLen{123456}}{6}}{TRUE}{FALSE} %Want to print true               \end{document}      I am trying to nest a command inside another command. In this case the `\StrLen` command inside the `\ifthenelse` command. Is there a way to get around the problem I am running into?


title: Documentation for pgfplots expressions?

text: Is there documentation for which functions work as `pgfplots` expressions (like sin, cos, exp, etc.) The `pgfplots` documentation doesn't seem to say anything on what you can/can't use.


title: Small bug in geometry.sty

text: **Complete** ![alt text](http://i.stack.imgur.com/b5h9i.png) * * * **Top Left Corner** ![alt text](http://i.stack.imgur.com/duMcW.png) * * * **Top Right Corner** ![alt text](http://i.stack.imgur.com/iEVqU.png) * * * **Bottom Left Corner** ![alt text](http://i.stack.imgur.com/KGG8z.png) * * * **Bottom Right Corner** ![alt text](http://i.stack.imgur.com/xCpvS.png)               \documentclass[dvipsnames,dvips,cmyk]{minimal}     \usepackage{xcolor,calc}     \usepackage[%     paperwidth=30mm,     paperheight=30mm,     textwidth=25mm,     textheight=25mm,     showframe]{geometry}     \setlength{\fboxsep}{5mm}     \setlength{\fboxrule}{5mm}     \usepackage{lipsum}     \begin{document}     \topskip0pt%     \noindent\color{red}\fbox{\parbox{\textwidth-2\fboxsep-2\fboxrule}{\color{green}\rule{5mm}{5mm}}}     \end{document}      * * * **EDIT 1:** Questions:   1. These asymmetric frame rules are intentionally made or bugs?   2. `\textwidth` equals to the horizontal distance between inner edges of the frame rules or outer edges of the frame rules? * * * **EDIT 2:**   1. I think the frame enclosing the text content is created partially/separately using 4 rules rather than using `\fbox` (with `\fboxsep` set to zero, of course). Can it be changed to use `\fbox` ?    2. If we use PSTrick's terminology in this discussion, I think the box enclosing the text content used `dimen=inner`, right? If it is right, then the `\textwidth` is measured as the horizontal distance between the inner edges of the box. Please kindly confirm whether or not my understanding is correct?  * * * **EDIT 3:** Except for the "asymmetric frame rules" produced by geometry.sty, my diagram below reproduce it with some annotations. The frame produced by geometry.sty seems to expand outward. Thus, the `\textwidth` equals to horizontal distance between the inner edges of this frame. Note: scale in mm. ![alt text](http://i.stack.imgur.com/w0ZXg.png) * * * This bug still exists.


title: aligning columns at decimal point in TikZ matrices

text: Is there a way to align numbers in a TikZ matrix at the decimal points, as is possible in normal tables (Aligning numbers by decimal points in table columns)? http://www.texample.net/tikz/builds/ says that a feature that "Added '/pgf/number format/assume math mode' to disable math checks. This allows to assemble tabulars, apply pgfmathprintnumber to each cell and use the dcolumn package to align at decimal separators (no documentation for that feature yet)" was made in June of 2008, but nothing else.


title: How to upload LaTeX manuscript, tables, figures, and auxiliary files to Elsevier's EES?

text: Can someone who has successfully submitted a LaTeX-based paper to the Elsevier Editorial System please describe the detailed steps needed, so that the paper builds correctly on EES, and can be approved? In particular, some or all of the following information (which I couldn't find in the EES help/documentation pages) would be helpful:   * Is there a minimum working example available somewhere, with a manuscript `.tex` file, separate table and figure files, and bibliography file? (plus whatever other files would be needed)   * Is there a way to test a document's build with one's local environment, such that if it works locally, will likely work at EES?   * If you start with a single `my-paper.tex` and `my-bibliography.bib` file and can build a PDF correctly from that, what's the process to break up those (two) files into the manuscript+tables+figures+aux pieces that EES can build from?


title: How to typeset keywords in svn-multi

text: I am using the svn-multi version 2.4d as version control for my LaTeX projects. However, I cannot get the various keywords typeset. Despite the invocation of `\svnid` and/or `\svnidlong`, things like `\svnrev`, `\svndate` etc contain only random noise. Is there anything else than svn checking, svn checkout and svn update that I need to do to make `\svnrev` etc contain correct information?


title: Aligning relatively positioned nodes in TikZ

text: \documentclass{standalone}      \usepackage{standalone}     \usepackage{amsmath}     \usepackage{amssymb}          \usepackage{tikz}     \usetikzlibrary{shapes, positioning}          \begin{document}     \begin{tikzpicture}         \tikzstyle{every node}=[font=\scriptsize]         \tikzstyle{apr}=[rectangle,                          align=center,                          text width = 3cm,                          node distance = 1cm,                          rectangle split, rectangle split parts=2,                          draw, fill=white]              \node(1) [apr]             {             \textbf{Lore Ipsum}\\ \textbf{Dolor}             \nodepart{second} {$                               \begin{aligned}                               x = &\: 10 \\                               y = &\: 20 \\                               \dot{x} = &\: 0                               \end{aligned}                               $}             };         \node(4) [apr, right = of 1]             {             \textbf{Lore Ipsum}\\ \textbf{Stupid Descenders}             \nodepart{second} {$                               \begin{aligned}                               x = &\: 10 \\                               \dot{x} = &\: 0                               \end{aligned}                               $}             };          \end{tikzpicture}     \end{document}      How can I make the tops of the nodes align instead of their centers? Here is the image: ![enter image description here](http://i.stack.imgur.com/Z89pj.png)


title: Fillable forms with hyperref

text: I am trying to create a form with a preselected choice.               \documentclass{article}     \usepackage{hyperref}          \begin{document}     \begin{Form}           \ChoiceMenu[default=y,radio,name=test1]{Question:}{yes=y,no=n}\\       \ChoiceMenu[default=n,radio,name=test2]{Question:}{yes=y,no=n}     \end{Form}     \end{document}      The pdf is generated with pdflatex Unfortunately, the default parameter does not work for the second form. ![enter image description here](http://i.stack.imgur.com/EUVvb.jpg) Btw. The PDF is wrong in evince/gimp. Maybe this is related. Here, the result is: ![enter image description here](http://i.stack.imgur.com/kmRBt.jpg)               $ pdflatex -version     pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)     kpathsea version 6.1.1     Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     There is NO warranty.  Redistribution of this software is     covered by the terms of both the pdfTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the pdfTeX source.     Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     Compiled with libpng 1.2.49; using libpng 1.2.49     Compiled with zlib 1.2.8; using zlib 1.2.8     Compiled with poppler version 0.24.3      How can I fix this? **update [2014-01-14]** If I uncompress the resulting PDF with               pdftk test.pdf output test2.pdf uncompress      and replace in test2.pdf the first occurence of               /V /Off     /T (test2)      by               /V /n     /T (test2)      then it works. It seems that the generated PDF is wrong.


title: putting (aux log out toc bbl bib blg) files in another directory with latexmk

text: Is it possible to put (aux log out toc bbl bib blg) files in another directory with latexmk?


title: Proofreading a LyX document

text: After writing a document in LyX I often convert to `pdf` and print for proofreading. The annoying part is that words that appear at a certain place in the pdf tend to appear in different locations in LyX (because LyX is not WYSIWYG). This forces me to make corrections on paper, then do "find" with a specific set of words to find the part of the paper I want to correct. Are there any tricks to doing this better? Is there a way to make LyX display things more in accordance with what they will look like in the pdf in terms of location? Per the answer below: I try to get it working with okular and lyx 2.0.5 on windows 7. It does not not seem to work. Could someone follow up and give me detailed step by step instructions?


title: Automated management of package options and loading order

text: > **This question led to a new package:**   >  `pkgloader`(CTAN, Github) LaTeX package conflicts are a common source of frustration: (1) (2) (3) (4) (5) (6). To quote Freek Dijkstra: > Package conflicts in LaTeX are a hell. I've been looking around, but I don't think anyone has worked on what would seem, to me, the obvious solution: a package which _automates_ conflict resolution for LateX packages. As it happens, my PhD research (Delta Modeling) matches this problem closely, so I've made a quick start on that package and I would like some feedback on the idea. The current version is temporarily stored in an SVN branch for another package. It depends on the `l3graph` package I'm working on, which is not ready for CTAN yet. The `l3graph` package offers a graph datastructure for `expl3` with facilities for detecting cycles and working with the transitive closure/reduction and topological order of graphs. ## Package Description The `pkgloader` package offers tools for resolving conflicts, and is backed by a database of known resolutions. For the average user, everything would _just work_. The user interface looks like this:               \documentclass{article}          \usepackage{pkgloader}          % List packages in any order you please     \usepackage{xltxtra}     \usepackage[xetex]{graphicx}          \LoadPackagesNow          \begin{document}     \end{document}      By redefining `\usepackage` (and friends), `pkgloader` gathers the list of packages (with options) that the user wants to load, then loads them in the right order at the `\LoadPackagesNow` command. The package order above (needs XeTeX) would immediately cause an error if not for `pkgloader`. It is able to prevent the problem because I've already included a modest list of package-ordering rules:               \Load {fancyhdr} before {hyperref}     \Load {fncychap} before {hyperref}     \Load {float}    before {hyperref}     \Load {hyperref} before {algorithm}     \Load {amssymb}  before {xunicode}     \Load {amssymb}  before {xltxtra}     \Load {graphicx} before {xltxtra}     \Load {graphicx} before {fontspec}     \Load {caption}  before {subfig}      These can also be added manually. ## Potential Features Fixing the package loading order is only the first (and simplest) step. With a bit of extra work we could add features like the following:   * A package ordering rule like: `\Load {cleveref} late` (or `early`)   * Facilities for package authors to include their own resolutions in a uniform way   * Automatic detection of cycles within the rules   * Accumulating and combining package options, with specific rules per package   * Adding extra 'glue code' to make two other packages behave (if they're both being loaded)   * Automatically resolving pretty much every conflict listed on Freek's page.   * For conflicts that cannot (yet) be resolved, at least show an error message rather than let things go wrong at a later stage. ## Question: What prior work is there? Specifically:   * Is there already another package that does (something like) this?   * Are there any specific pitfalls I should be aware of?   * Other than Freek's page, is there any kind of comprehensive list of known conflicts and resolutions? I think a package like this has the potential to be very useful to a lot of people, if I do this right. A package like this will have a very wide scope. I don't want to step on anyone's toes, so please help me do this right. I'd be happy to collaborate with the community on this - any feedback is welcome, so contact me if you're interested.


title: Long table with tiny sized for columns gives misaligned headers

text: This code gives me misaligned headers. Any idea how to fix it?               \documentclass{article}     \usepackage{longtable}     \usepackage{array}               \begin{document}     \begin{center}     \begin{longtable}{|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|>{\tiny}c|}     \caption{All the best classification results achieved by runs on the original data. In these runs [0-1] normalization is also tested.}\label{tab:resultsOriginalAllClassifiers}\\     \hline     Data &  Run &  Normalize & $TP\_{rate}$ & $FP\_{rate}$ & $TN\_{rate}$ & $FN\_{rate}$ & Precision & Recall & $F\_{measure}$ & AUC\\ \hline\hline \endfirsthead     \hline     Data &  Run &  Normalize & $TP\_{rate}$ & $FP\_{rate}$ & $TN\_{rate}$ & $FN\_{rate}$ & Precision & Recall & $F\_{measure}$ & AUC\\ \hline\hline \endhead     bt\_10x10\_alldevs & NaiveBayes & none & 0.8 & 0 & 1 & 0.2 & 1 & 0.8 & 0.888889 & 0.94\\ \hline     bt\_10x10\_alldevs & LibSVM & none & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1\\ \hline     bt\_10x10\_alldevs & LibSVM & [0,1]  & 0.9 & 0.1 & 0.9 & 0.1 & 0.9 & 0.9 & 0.9 & 0.9\\ \hline     bt\_10x10\_alldevs & J48 & none & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1\\ \hline     bt\_10x10\_alldevs & RandomForest & none & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1\\ \hline     wifi\_5x5\_TF101 & RandomForest & [0,1]  & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1\\ \hline     \caption{All the best classification results achieved by runs on the original data. In these runs [0,1] normalization is also tested.}     \end{longtable}     \end{center}          \end{document}


title: Hanging punctuation with \enquote

text: Following this advice on tex.sx, I'm using `csquotes`. And I'd like to have hanging punctuations, for instance that left-quotation marks are displayed in the margins. I focus on this point in this question. I did not manage to hangs punctuation in the `\enquote` command. I tried with   * the `hanging` package -- which is by the way not compatible with the `memoir` class, but this is not the subject   * the `microtype` package, that does not seem to hang the quote in my setting. MWE :               \documentclass{article}         % With the minimal class, nothnig is hanged ?     \usepackage{hanging}            % Package to hang the punctuation     \usepackage{csquotes}           % To manage proper quotations     \usepackage{microtype}     \begin{document}                % Quotes in the margin ?     {\hangpunct % The hanging command          ``text''                        % Yes           \enquote{text}                 % No          text            % For reference     }          ``text''                        % No          \enquote{text}                  % No          text            % For reference          \end{document}      Configuration :               pdfTeX, 3.1415926-2.4-1.40.13      hanging v1.2b     csquotes v5.1d      microtype v2.5a      Related questions :   * Microtype and LuaTeX: changing protrusion and hanging punctuation   * Wrong protrusion with csquotes and microtype   * What's the advantage of using csquotes over using an editor's auto-replacement for "? I saw on two blogs ( http://blog.tasuki.org/hanging-punctuation/ and http://visuel.ouvaton.org/Vmicrot.htm) that there was a possible way with `\pdfprotrudechars=1`, but I simply couldn't make it work.


title: How can one put labels over an image?

text: This question is slightly different from Drawing on an image with TikZ. What I'm asking is how can I put a vertex label, at a particular point (x,y), on an image of a graph in TikZ?               \begin{center}     \begin{tikzpicture}         \node[anchor=south west,inner sep=0 <--What is this?] at (0,0) {\includegraphics[scale=.5]{graph.png}};         \node[???]{$v_1$};     \end{tikzpicture}     \end{center}


title: Strange EPS to PDF translate error in MacTeX

text: I have an EPS file that was created with DataGraph. When this EPS is viewed with Photoshop or Preview (which converts it to PDF) it correctly shows the word "Interior": ![Cut from Preview](http://i.stack.imgur.com/8vFNi.jpg) However if I let MacTeX convert the EPS to PDF I obtain: ![Cut from the TeXShop pdf](http://i.stack.imgur.com/hSccY.jpg) This happens for all instances of "n" (lowercase only) so words like "Interaction" become "IAteractioA", but "Nature" stays the same. Creating an EPS with the DataGraph program has given me no issues in the past and it appears to be isolated to `epstopdf` as I believe Preview uses CLI's `pstopdf`. I will likely recreate the graph, but searching has not shown me anything similar so I am curious if anyone has an idea of what is happening.


title: LaTeX in blogger (Google)

text: I want to write equation as LaTeX in blogger so need to setup MathJax may be. If anyone have done this before then please suggest me what to do. At first I opened the temple >> HTML of that temple >> then entered the cole before                    <script src='http://cdn.mathjax.org/mathjax/latest/MathJax.js' type='text/javascript'>     MathJax.Hub.Config({      extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],      jax: ["input/TeX", "output/HTML-CSS"],      tex2jax: {          inlineMath: [ ['$','$'], ["\\(","\\)"] ],          displayMath: [ ['$$','$$'], ["\\[","\\]"] ],      },      "HTML-CSS": { availableFonts: ["TeX"] }     });     </script>       After saving I tried to run the latex equation but didn't work . :( ![enter image description here](http://i.stack.imgur.com/oVD9r.png) ![enter image description here](http://i.stack.imgur.com/cobHi.png) Thanks in advance


title: Ask for guidelines for building a Chinese chess with tikz

text: I want to build a showcase to demonstrate to my friends how powerful Tikz is. LOL But I am still new to Tikz, not sure how to handle this. I want to draw a Chinese chess (Xiangqi) with latex and tikz. See links on wiki or google image or this link, http://history.chess.free.fr/xiangqi- figures.htm ![enter image description here](http://i.stack.imgur.com/sgpXR.jpg) It could be simplified to this: ![enter image description here](http://i.stack.imgur.com/U3Zkm.jpg) with Chinese character circled. You see, this is a 5*9 grids on each side. And there a seven characters on each side. By using latex, I hope it can easily handle the game notations, for instance, if a Chariot (Che) is on the third row, seventh column, then I could simply do some macro programming to have something like "che{3,7}", which will give me great advantage in quickly generating high quality images during the gameplay. Any ideas where should I start? And any suggestions? Thanks


title: Hatching Package with Metapost

text: I am new in metapost and I am unsure as to re-define the **withcolor** command to revert back to the metapost default. I am trying to draw the cross section of a cylinder, where the inner circle is empty, but the outer marked with straight lines. Can you please help me? I am very tight with time! This is the code so far:               input hatching;          u := 1cm;     path circle;      circle = fullcircle scaled 10u;     outputtemplate:="%j%c.mps";     beginfig(1);      hatchfill circle withcolor (45, 5mm, -.5bp);     draw circle;     draw fullcircle scaled 5u; % This needs to be filled with color white     endfig;     end       This is what it looks like: ![enter image description here](http://i.stack.imgur.com/s7iV8.jpg)


title: Using counters and \ifthen in a macro: what's wrong?

text: I have ( _made_ , actually) a graphic of the forepaw-print of a bear that I want to use as a flourish mark at the end of chapters and a few other places. After finishing with the image, I created a mirror version, so that I had right and left paw versions, originally to see which looked better. The thought then came that it would be fun to alternate between the two at each occurrence, letting my bear, as it were, go for a walk through my book (on it's front paws, I know; let's not carry the notion _too_ far). For repeated inline graphics I use `\newcommand*` to create a "mini-macro" that does nothing but an `\includegraphic` of a given image in a particular size, mostly to be included in other macros; in this case, the two are called `\lbpimage` and `\rbpimage`, and by themselves they work fine. Now I need an intermediary macro to switch between the two. What I _intended_ is a `\newcommand`, \bearpaw, that would create another command (via `\renewcommand*`) called `\bpaw`, and then run it. Referencing a counter named _paw_ and using `\ifthen`, `\bpaw`is created with the intent of running one or the other of the "mini-macros" and then resetting _paw_ from 0 to 1 or _vise versa._ Of course, to be able to use `\renewcommand*` the _commandname_ needs to be pre-existing, so before `\newcommand*\bearpaw` I initialize `\bpaw` with a dummy version, `\newcommand*\bpaw{foo}` thus:               \documentclass[letterpaper,twoside,12pt,final]{memoir}          \usepackage{graphicx}     \usepackage{ifthen}          \newcommand*{\lbpimage}%       {\includegraphics[width=0.548in]{lbearpaw}}          \newcommand*{\rbpimage}%       {\includegraphics[width=0.548in]{rbearpaw}}          \newcounter{paw}%     Preset to zero by default.          \newcommand*\bpaw%       {foo}          \newcommand*\bearpaw%       {\ifthenelse{\equal{paw}{0}}%         {\renewcommand*\bpaw%           {\lbpimage%           \setcounter{paw}{1}}}{}%       \ifthenelse{\equal{paw}{1}}%         {\renewcommand*\bpaw%           {\rbpimage%           \setcounter{paw}{0}}}{}%       \bpaw}          \begin{document}          \bearpaw \bearpaw \bearpaw          \end{document}      And what I get is: > foo foo foo Clearly, my conditionals aren't working as I expected. What have I done wrong?


title: Rounding of decimal numbers: Looking for an elegant way in latex table

text: Is there a package to do the rounding numbers for latex tables? For example this table.               \begin{table}[htdp]     \caption{default}     \begin{center}     \begin{tabular}{c|c}     +1.98185942 & +0.14495331 \\     \end{tabular}     \end{center}     \label{default}     \end{table}%      I hope it could be as simple as:               \begin{rounding}[7.5f]     \begin{table}[htdp]     \caption{default}     \begin{center}     \begin{tabular}{c|c}     +1.98185942 & +0.14495331 \\     \end{tabular}     \end{center}     \label{default}     \end{table}%     \end{rounding}      Something like that. Thanks


title: biblatex + \mcite; add arbitrary text in references with subentries

text: In chemistry it's quite common to add prefixes to bibitems or even add notes to the references. See some example in literature to give you a hint what I mean. It is not created with LaTeX! ![](http://i.stack.imgur.com/64h1p.png) I've fiddled around with biblatex + biber and the `\mcite` and `\bibnote` comand, but came to no solution. I want to add some text in certain references with subentries before the bibitem. I created this MWE:               \documentclass[english]{article}     \usepackage{selinput}     \SelectInputMappings{adieresis={ä},germandbls={ß},Euro={€}}     \usepackage{babel}     \usepackage[T1]{fontenc}          \usepackage[%       citestyle=numeric-comp,       bibstyle=chem-angew,       sorting=none,       backend=biber,       mcite=true,       subentry,     ]{biblatex}     \usepackage{notes2bib}     \usepackage{filecontents}          \begin{filecontents}{example.bib}     @article{Boncella1984,     author = {Boncella, James M. and Andersen, Richard A.},     journal = {Inorg. Chem.},     pages = {432--437},     volume = {23},     year = {1984}     }          @article{Tilley1982,     author = {Tilley, T. Don and Andersen, Richard},     journal = {J. Am. Chem. Soc.},     pages = {1772--1774},     volume = {104},     year = {1982}     }     \end{filecontents}          \addbibresource{example.bib}           \begin{document}     \section{sec1}          This is some nice text I want to cite.\mcite{set1,*Boncella1984,*Tilley1982}     I want to add this note in references.\bibnote{test note}     Here I cite a single paper from the previous set.\cite{Tilley1982} This is how it should look like with included note.\bibnote{See, for example: \fullcite{set1}}          \printbibliography     \end{document}       ![](http://i.stack.imgur.com/FxPGB.png) I'm fine with the subentries how they're created in ref 1 by:               \mcite{set1,*Boncella1984,*Tilley1982}      and with citing members of the set by referencing just one key from the predefined set1:                \cite{Tilley1982}      I'm also fine with notes which I can add to references section like in ref 2 by:               \bibnote{test note}      But I also need to add some text before the bibitem in a certain reference. This should look like in ref 3. However,               \bibnote{See, for example: \fullcite{set1}}      gives me only an endnote followed by a copy of ref 1. This is not applicable as I have to define `set1` with `\mcite` before, which results of course in 2 referneces. Ref 3 is only for demonstration how it should look like. I'm not able to get a single reference which looks like ref 3. Something like               \bibnote{See, for example:\mcite{set1,*Boncella1984,*Tilley1982}}      doesn't work. It gives me 2 references. How can I create a reference with text followed by subentries? I also want to have the opportunity to cite single members of the set elsewhere, like in ref 1b. **Edit 1:**               This is some nice text I want to cite.\bibnote{some added text:\mcite{set1,*Boncella1984,*Tilley1982}}     I want to add this note in references.\bibnote{test note}     Here I cite a single paper from the previous set.\cite{Tilley1982} This is how it should look like with included note.\bibnote{more added text: \fullcite{set1}}      gives me the following: ![](http://i.stack.imgur.com/1wezT.png)               \bibnote{some added text:\mcite{set1,*Boncella1984,*Tilley1982}}      just adds the text followed by reference in brackets as you can see in ref 1 in the 2nd example. I just want to create a reference with subentries in which some text is followed by subentry (a). It should look like in ref 3. However, ref 3 is just constructed to give you the look. It can not be created as "stand alone" reference, only in combination with a second. **Edit 2:** as it seems still not clear. Apllying only this:               \begin{document}     \section{sec1}          This is some nice text I want to cite.\bibnote{some added text:\mcite{set1,*Boncella1984,*Tilley1982}}          \printbibliography     \end{document}       gives me the following output: ![enter image description here](http://i.stack.imgur.com/f38sc.png) in which 2 references are created instead of 1 desired and none looks the way I want it. **Edit 3:** Inspired by this question I created an example. However, the added note is of course after the corresponding bibitem as in the quoted question. How can I get the added notes before my bibitems, but still after the reference number [X]? I've got a huge document in which every chapter has its own references. Addition of notes seems to work, however not elegant. Since, my notes are work (chapter) related, I don't want to edit my *.bbl. However, the chosen way with `loadfiles` is not very elegant. But I'm still able to place my note in near of `\cite` commands. It would be not applicable to put all the notes in the preamble of the document or elsewhere. To repeat my question: How can I get the added notes in front of my bibiem applying the `\loadfiles` option to have them look like ref 3 in above examples?               \documentclass[english]{article}     \usepackage{selinput}     \SelectInputMappings{adieresis={ä},germandbls={ß},Euro={€}}     \usepackage{babel}     \usepackage[T1]{fontenc}          \usepackage[%      citestyle=numeric-comp,        bibstyle=chem-angew,        sorting=none,       backend=biber,       mcite=true,       subentry,       loadfiles=true,     ]{biblatex}     \usepackage{notes2bib}     \usepackage{filecontents}          \begin{filecontents}{example.bib}     @article{Boncella1984,     author = {Boncella, James M. and Andersen, Richard A.},     journal = {Inorg. Chem.},     pages = {432--437},     volume = {23},     year = {1984}     }          @article{Tilley1982,     author = {Tilley, T. Don and Andersen, Richard},     journal = {J. Am. Chem. Soc.},     pages = {1772--1774},     volume = {104},     year = {1982}     }     \end{filecontents}          \DeclareFieldFormat{annotation}{#1}     \renewbibmacro*{annotation}{       \IfFileExists{notes/note-\thefield{entrykey}.tex}{\par}{}       \printfile[annotation]{notes/note-\thefield{entrykey}.tex}     }          \AtEveryBibitem{     \csappto{blx@bbx@\thefield{entrytype}}{\usebibmacro{annotation}}     }          \addbibresource{example.bib}           \begin{document}     \section{sec1}     \begin{refsection}     This is some text I want to cite.\mcite{set1,*Boncella1984,*Tilley1982}     \begin{filecontents}{notes/note-set1.tex}     hello world     \endinput     \end{filecontents}     \printbibliography     \end{refsection}          \section{sec2}     \begin{refsection}          This is even more text I want to cite.\mcite{set2,*Boncella1984,*Tilley1982}          \begin{filecontents}{notes/note-set2.tex}     hello again     \endinput     \end{filecontents}     \printbibliography     \end{refsection}     \end{document}      ![enter image description here](http://i.stack.imgur.com/sDI3e.png)


title: Why don't pifonts work in align environment?

text: Minimal example:               \documentclass{article}     \usepackage{amsmath}     \usepackage{pifont}          \begin{document}     \begin{align}     \ding{172}     \ding{182}     \end{align}     \ding{172}     \ding{182}     \end{document}


title: include svg images with the svg package

text: I'm trying to use the `svg` package for inserting svg images in my latex file, as suggested in other questions. But now I ran into a problem: For example I have a image `figure1.svg`, if I write               \includesvg{figure1}      it will give an error says               ERROR: LaTeX Error: File `figure1.pdf_tex' not found.      But if I write               \includesvg{figure1.svg}      it will give another error says               ERROR: LaTeX Error: Unknown graphics extension: .svg.      How can I fix this problem? I'll prefer not having to convert all my `svg` files to `pdf_tex` files with some external program. * * * ## Update My LaTeX environment is latest the TeXLive 2013 on Windows 7. A MWE code would be               \documentclass{article}     \usepackage{svg}          \begin{document}          \begin{figure}[htbp]       \centering       \includesvg{figure1.svg}       \caption{svg image}     \end{figure}          \end{document}


title: turning printing of parts of text off and on?

text: This question: Turning parts of text on and off deals with turning some portions of the text off and on _completely_ -- but the method it uses (commenting) causes the labels in earlier parts of the text not to be defined. Is there a strategy for turning off _only the printing_ , so that the text is processed (and labels defined), but not added to the PDF? **Update 1** Here's a MNWE following the idea from ted in a comment (this must be run with `-interaction=nonstopmode`). It looks like the problem with this solution is that the savebox isn't robust to the `\section` command. If the savebox can be made more robust, then this approach could work.               \documentclass{article}          \newsavebox{\mybox}     \usepackage{hyperref}          \begin{document}          \section{Bla} \label{one}     Text before the tests.          \section{More Bla} \label{two}     Text before the tests. See Section \ref{one}.  (That's fine, everything normal...)          \savebox{\mybox}[0in][0in]{     You don't see this, do you?  But you \emph{can} see Section \ref{one} and Section \ref{two},  of course.          \section{Still More Bla} \label{three}     But you shouldn't see this either...     }\usebox{\mybox}          So far, this isn't working... See Section \ref{three}.          \end{document}      ![I see some stuff I wouldn't expect to see](http://i.stack.imgur.com/IUA06.png)


title: BibTeX style like [Jones90]?

text: Is there a "standard" BibTeX style which is like 'alpha' in all other respects but uses first author surname, (preferably) 2-digit year keys, so a citation for "Jones, Smith and Other" would show up like [Jones90], perhaps with a disambiguator like [Jones90a]? Ideally I don't want to manually hack `.bst` files since learning the language looks like a 2 week project by itself. I tried using http://www.witpress.com/downloads/authors/latex/witpress.dbj which does offer Jones90-like as an option, calling it "alf-f", but it asks dozens of very pernickety questions, meaning I'm very likely to screw something up; I've yet to find a `.bst` generator that allows you to say "I want a style like [standard] except for [attribute].


title: change editor expression

text: I'm trying to find my error when placing first the expression `In:` then `editorname` and at last `(Hrsg)` in the book selection. Like this: ![example](http://i.stack.imgur.com/fJlsX.jpg) MWE (There is an error at the end, which has got no effect and I couldn't find the source)               \documentclass{scrreprt}     \usepackage[latin1]{inputenc}     \usepackage[ngerman]{babel}     \usepackage[babel,german=quotes]{csquotes}     \usepackage[      bibstyle=ulm, citestyle=ulm     ]{biblatex}          \begin{filecontents*}{books.bib}     @BOOK{Buchner2005,       title = {Woyzeck / Leonce und Lena},       publisher = {Reclam},       year = {2005},       editor = {Burghard Dedner},       author = {Georg Büchner},       address = {Stuttgart}     }          \end{filecontents*}          \bibliography{books.bib}          \begin{document}     \cite[10--20]{Buchner2005}               \printbibliography          \end{document}      and cbx-file               % $Id: verbose-inote.cbx,v 1.7 2011/11/13 19:09:07 lehman stable $          \ProvidesFile{ulm.cbx}     [\abx@cbxid $Id: verbose-inote.cbx,v 1.7 2011/11/13 19:09:07 lehman stable $]          \ExecuteBibliographyOptions{labelnumber,autocite=inline}     \renewcommand*{\multicitedelim}{\addcomma\space}     \providebool{bbx:subentry}     \DeclareFieldFormat[article,book,collection,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1\addperiod}     \DeclareFieldFormat[article]{journaltitle}{#1}          \DeclareNameAlias{default}{last-first}     \renewcommand{\labelnamepunct}{\addcolon\space}     \AtEveryBibitem{\clearfield{month}}     %\renewbibmacro{in:}{}     \renewcommand*{\finalnamedelim}{%       \ifbibliography% NEW         {\addcomma\space}% NEW         {\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%             \addspace\bibstring{and}\space}}     \DeclareFieldFormat[book]{year}{\mkbibquote{#1\isdot}}          \DeclareFieldFormat{pages}{#1\isdot}          \DeclareFieldFormat{entrysetcount}{\mknumalph{#1}}     \newbibmacro*{cite}{%       \printtext[bibhyperref]{%         \printfield{prefixnumber}%         \printfield{labelnumber}%         \ifbool{bbx:subentry}           {\printfield{entrysetcount}}           {}}}          \newbibmacro*{textcite}{%       \iffieldequals{namehash}{\cbx@lasthash}         {\multicitedelim}         {\cbx@tempa          \ifnameundef{labelname}            {\printfield[citetitle]{labeltitle}}            {\printnames{labelname}}%          \addspace\bibopenbracket}%       \ifnumequal{\value{citecount}}{1}         {\usebibmacro{prenote}}         {}%       \usebibmacro{cite}%       \savefield{namehash}{\cbx@lasthash}%       \gdef\cbx@tempa{\bibclosebracket\multicitedelim}}          \DeclareCiteCommand{\cite}[\mkbibbrackets]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\parencite}[\mkbibbrackets]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\footcite}[\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\smartcite}[\iffootnote\mkbibbrackets\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\textcite}       {\let\cbx@tempa=\empty        \undef\cbx@lasthash}       {\usebibmacro{citeindex}%        \usebibmacro{textcite}}       {}       {\usebibmacro{postnote}%        \bibclosebracket}          \DeclareCiteCommand{\supercite}[\mkbibsuperscript]       {\iffieldundef{prenote}          {}          {\BibliographyWarning{Ignoring prenote argument}}%        \iffieldundef{postnote}          {}          {\BibliographyWarning{Ignoring postnote argument}}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\supercitedelim}       {}          \DeclareMultiCiteCommand{\cites}[\mkbibbrackets]{\cite}{\multicitedelim}     \DeclareMultiCiteCommand{\parencites}[\mkbibbrackets]{\parencite}{\multicitedelim}     \DeclareMultiCiteCommand{\smartcites}[\iffootnote\mkbibbrackets\mkbibfootnote]{\smartcite}{\multicitedelim}          \DeclareFieldFormat{edition}{%       \ifinteger{#1}         {\mkbibordedition{#1}~\printtext{Aufl}}         {#1}}          \renewcommand\mkbibnamelast[1]{\textsc{#1}} %Autor/Editorname in small caps     \renewcommand*{\newunitpunct}{\addcomma\addspace}          \endinput      and bbx-file               % $Id: ulm.bbx,v 0.1 2013/06/28 19:09:07 lehman unstable $          \ProvidesFile{ulm.bbx}     [\abx@bbxid $Id: ulm.bbx,v 0.1 2013/06/28 19:09:07 lehman unstable $]          \newbibmacro*{begentry}{}     \newbibmacro*{finentry}{\finentry}          \DeclareBibliographyDriver{article}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit\newblock       \usebibmacro{journal+issuetitle}%       \addcolon       \usebibmacro{note+pages}%       \newblock       \usebibmacro{date}     %  \setunit{\bibpagerefpunct}\newblock     %  \usebibmacro{pageref}%       \usebibmacro{finentry}}                    \DeclareBibliographyDriver{book}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock       \usebibmacro{editor}%       \addperiod       \printfield{edition}%       \newunit\newblock       \usebibmacro{publisher+location}%       \newunit\newblock       \usebibmacro{S.}       \usebibmacro{chapter+pages}%       \addspace       \usebibmacro{date}%       \usebibmacro{finentry}}               \DeclareBibliographyDriver{online}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \printfield{version}%       \newunit       \printfield{note}%       \newunit\newblock       \printlist{organization}%       \newunit\newblock       \usebibmacro{date}%       \newunit\newblock       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \usebibmacro{finentry}}          \DeclareBibliographyAlias{mvbook}{book}     \DeclareBibliographyAlias{bookinbook}{inbook}     \DeclareBibliographyAlias{suppbook}{inbook}     \DeclareBibliographyAlias{mvcollection}{collection}     \DeclareBibliographyAlias{suppcollection}{incollection}     \DeclareBibliographyAlias{mvproceedings}{proceedings}     \DeclareBibliographyAlias{reference}{collection}     \DeclareBibliographyAlias{mvreference}{reference}     \DeclareBibliographyAlias{inreference}{incollection}     \DeclareBibliographyAlias{suppperiodical}{article}     \DeclareBibliographyAlias{review}{article}     \DeclareBibliographyAlias{*}{misc}          \newbibmacro*{maintitle+title}{%       \iffieldsequal{maintitle}{title}         {\clearfield{maintitle}%          \clearfield{mainsubtitle}%          \clearfield{maintitleaddon}}         {\iffieldundef{maintitle}            {}            {\usebibmacro{maintitle}%         \newunit\newblock         \iffieldundef{volume}           {}  \usebibmacro{series+number}%             \newunit\newblock             \printfield{note}%             \newunit\newblock           {\printfield{volume}%                \printfield{part}%                \setunit{\addcolon\space}}}}%       \usebibmacro{title}%       \newunit}          \newbibmacro*{maintitle+booktitle}{%       \iffieldundef{maintitle}         {}         {\usebibmacro{maintitle}%          \newunit\newblock          \iffieldundef{volume}            {}            {\printfield{volume}%             \printfield{part}%             \setunit{\addcolon\space}}}%       \usebibmacro{booktitle}%       \newunit}          \newbibmacro*{journal+issuetitle}{%       \usebibmacro{journal}%       \setunit*{\addspace}%       \iffieldundef{series}         {}         {\newunit          \printfield{series}%          \setunit{\addspace}}%       \usebibmacro{volume}%     %  \setunit{\addspace}%     %  \usebibmacro{issue}%       \setunit{\addcolon\space}%       \newunit}          \newbibmacro*{volume}{%       \printfield{volume}%       \setunit*{\addcolon}%       }          \newbibmacro*{title+issuetitle}{%       \usebibmacro{periodical}%       \setunit*{\addspace}%       \iffieldundef{series}         {}         {\newunit          \printfield{series}%          \setunit{\addspace}}%       \printfield{volume}%       \setunit*{\adddot}%       \printfield{number}%       \setunit{\addcomma\space}%       \printfield{eid}%       \setunit{\addspace}%       \usebibmacro{issue}%       \setunit{\addcolon\space}%       \usebibmacro{issue}%       \newunit}           \renewbibmacro*{issue}{%       \iffieldundef{issue}           {}         {\printtext[parens]{%           {\printfield{issue}%            \setunit*{\addspace}}}%       \newunit}}          \newbibmacro*{series+number}{%       \printfield{series}%       \setunit*{\addspace}%       \printfield{number}%       \newunit}          \newbibmacro*{publisher+location}{%         \iflistundef{publisher}         {}       \printlist{publisher}%       \setunit*{\addcomma\space}       \printlist{location}%       \setunit*{\addcomma\space}%       \newunit}          \newbibmacro*{institution+location+date}{%       \printlist{location}%       \iflistundef{institution}         {\setunit*{\addcomma\space}}         {\setunit*{\addcolon\space}}%       \printlist{institution}%     %  \setunit*{\addcomma\space}%     %  \usebibmacro{date}%       \newunit}          \newbibmacro*{organization+location+date}{%       \printlist{location}%       \iflistundef{organization}         {\setunit*{\addcomma\space}}         {\setunit*{\addcolon\space}}%       \printlist{organization}%     %  \setunit*{\addcomma\space}%     %  \usebibmacro{date}%       \newunit}          \newbibmacro*{location+date}{%       \printlist{location}%     %  \setunit*{\addcomma\space}%     %  \usebibmacro{date}%       \newunit}          \newbibmacro*{chapter+pages}{%       \printfield{chapter}%       \setunit{\bibpagespunct}%       \printfield{pages}%       \addspace}          \newbibmacro*{note+pages}{%     %  \printfield{note}%       \setunit{\bibpagespunct}%       \printfield{pages}%       \addspace}          \ExecuteBibliographyOptions{labelnumber}          \providebool{bbx:subentry}          \DeclareBibliographyOption{subentry}[true]{%       \setbool{bbx:subentry}{#1}}          \DeclareNameAlias{author}{default}     \DeclareNameAlias{editor}{default}     \DeclareNameAlias{translator}{default}          \DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}     \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}     \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}          \defbibenvironment{bibliography}       {\list          {\printtext[labelnumberwidth]{%         \printfield{prefixnumber}%         \printfield{labelnumber}}}          {\setlength{\labelwidth}{\labelnumberwidth}%           \setlength{\leftmargin}{\labelwidth}%           \setlength{\labelsep}{\biblabelsep}%           \addtolength{\leftmargin}{\labelsep}%           \setlength{\itemsep}{\bibitemsep}%           \setlength{\parsep}{\bibparsep}}%           \renewcommand*{\makelabel}[1]{\hss##1}}       {\endlist}       {\item}          \defbibenvironment{shorthands}       {\list          {\printfield[shorthandwidth]{shorthand}}          {\setlength{\labelwidth}{\shorthandwidth}%           \setlength{\leftmargin}{\labelwidth}%           \setlength{\labelsep}{\biblabelsep}%           \addtolength{\leftmargin}{\labelsep}%           \setlength{\itemsep}{\bibitemsep}%           \setlength{\parsep}{\bibparsep}%           \renewcommand*{\makelabel}[1]{\hss##1}}}       {\endlist}       {\item}          \DeclareBibliographyDriver{set}{%       \entryset         {\ifbool{bbx:subentry}            {\printfield[bibentrysetcount]{entrysetcount}%         \setunit*{\addnbspace}}            {}}         {}%       \newunit\newblock       \usebibmacro{setpageref}%       \finentry}          \def\MKbibnamefirst#1{\expandafter\mkbibnamefirst@i#1..\@nil}     \def\mkbibnamefirst@i#1.#2.#3\@nil{#1}          \renewbibmacro*{name:last-first}[4]{%       \ifuseprefix         {\usebibmacro{name:delim}{#3#1}%          \usebibmacro{name:hook}{#3#1}%          \ifblank{#3}{}{%            \ifcapital              {\mkbibnameprefix{\MakeCapital{#3}}\isdot}          {\mkbibnameprefix{#3}}%            \ifpunctmark{'}{}{\addhighpenspace}}%          \mkbibnamelast{#1}\isdot          \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%          \ifblank{#2}{}{\addlowpenspace\mkbibnamefirst{#2}}}         {\usebibmacro{name:delim}{#1}%          \usebibmacro{name:hook}{#1}%          \mkbibnamelast{#1}\isdot          \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%     %     \ifblank{#2#3}{}{\addcomma}%          \ifblank{#2}{}{\addlowpenspace\MKbibnamefirst{#2}}%     %     \ifblank{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}     }}          \DeclareFieldFormat{parens}{\mkbibparens{#1}}     \renewbibmacro*{date}{\printtext[parens]{\printdate}}          \renewcommand*{\multilistdelim}{\addslash }          \renewbibmacro*{finentry}{}          \renewbibmacro*{in:}{%       \printtext{In:%         \bibstring{In}\intitlepunct}}          \newbibmacro*{S.}{%       \printtext{S. }}     \endinput          \renewbibmacro*{editor}{%       \ifnameundef{editor}         {}         {\usebibmacro{in:}%          \setunit{\addspace}          \usebibmacro{editor}%          \setunit{\addspace}%          \printtext{(Hrsg)%          \newunit}%       \usebibmacro{byeditorx}}


title: Did the source code of The LaTeX Companion compile with no warnings and no bad-boxes?

text: Not only out of curiosity, but also to know the extent to which one should delegate the document arrangement to LaTeX! And how much is too much for "manual work"


title: Configure Latexmk in TeXworks for automation of bibliography compilation

text: I've been using LaTeX for almost four years now, so one could perhaps think I would know how to do this. But I don't. I'm at a complete loss here trying to get `latexmk` and, eventually, `BibTeX` to work. I'm on a Windows using `TeXWorks`. I tried following this example, but with no luck. The issue is the last part - I've tried running it through `pdflatex`, then `BibTeX`and then `pdflatex` a couple of more times by simply changing in the drop-down menu. So I've been trying to get `latexmk` to work, but most guides lose me right away. I tried following the installation instructions, but realized Perl wasn't installed. So I installed Strawberry Perl. I didn't find `C:\local\bin` so I put the files somewhere else and did step 4. Typing in `perl --version` returns perl 5, version 18. By a similar check, `latexmk` is also installed (which may or may not be because I installed it via the Package Update thing in `MikTeX`). I then run               latexmk paper     latexmk -pv paper     latexmk -pv -ps paper      and the last line just pops up a window saying no program was found to open the file. So I try               ps2pdf paper.ps paper.pdf      but then there are no citations but only question marks. Then I also found this guide which would be neat to get working. But I don't know where to find `latexmk`, and I don't know where to find where to find it either! Maybe I explained my issue in too much detail, but for what it's worth I've at least tried to solve it on my own. Any help to get this working would be greatly appreciated.


title: Remove end marker from press release template in newlfm

text: I'm trying to remove the end marker `# # #` that gets printed automatically at the end of the press release template in the following newlfm example:               \documentclass[11pt,pressrelease]{newlfm}     \usepackage{charter}     \newcommand{\subtitle}{This is a subtitle.}     \makeletterhead{Uiuc}{\Cheader{\vspace{16pt}my title}}      \lthUiuc      \begin{document}     \begin{newlfm}     my body     \end{newlfm}     \end{document}      According to the documentation, the command `\PhrPREnd` is supposed to print it but I'm not calling it in my tex file nor in the `prsrls.tex` if I use one (not required). I tried to use that command thinking that I could override the printed markers with empty space but I'm getting the "Undefined control sequence" error. Any ideas?


title: A new blank page is created bofore the plot when inserting a plot into a landscape page using pdflscape

text: I am inserting a picture into a file. To make the page landscape, I used the "pdflscape" package, but it creates a blank page before the plot.               \documentclass{article}     \usepackage{pdflscape}     \begin{document}           \begin{landscape}          \includegraphics{1.png}       \end{landscape}        \end{document}      How can I get rid of the blank page?


title: How to build a table of sections and certain commands used in a section

text: I would like to create an list with some tuples (sectionname, property) so I can add them automatically to a table. Say I have:               \magictablecommand      \section{Test}        \property{Blup}     \section{Plop}        \property{Slup}      Then magictablecommand should expand as:               \begin{table}...        \begin{tabular}...           Test & Blup \\           Plop & Slup \\       I need some command, which on the first pass gather section, property pairs. And on the second pass expands magictablecommand (in the first pass it doesn't expand, I don't care really as long as it doesn't emit errors.). The biggest trouble I have is in determine how to gather the section, property pairs. The rest I can probably figure out. I would be quite happy with some kind of pointer.


title: PGF’s \foreach can’t replace in [start chain=\here]?

text: Here in TikZ/PGF, I need two lines of dots to connect them later. – I make those dots with chains in a `\foreach` loop. But I can’t get the naming to work in the loop. The code below works, but `NAMEHERE` should be `\chainName`. If I insert `\chainName` there, I get the fatal error `Argument of \tikz@lib@chain@strip has an extra }.`               \begin{tikzpicture}[         every node/.style={draw, fill, circle, inner sep=.5}     ]     \node (start-mybase) at (0,0) {};     \node (end-mybase) at (3,0) {};     \foreach \chainName in {start, end} {         \begin{scope}[start chain=NAMEHERE going above]             \chainin (\chainName-mybase);             \foreach \x in {2,...,5} {                 \node [on chain] {};             }         \end{scope}     }     % \draw (start-1) -- (end-3);     \end{tikzpicture}      How do I name the chains in a for-each-loop?


title: Biblatex/Biber problems with Texlive 2014 (no problems 2013)

text: I have a TEX file which works OK with Texlive 2013 but is no longer working on 2014 (using OSX). It gives no error in the 2014 edition, but it does not produce the expected output. Here is a minimal example that works with 2013 but not in 2014:               \documentclass[a4paper,12pt]{article}     \usepackage{hyperref}     \usepackage{fontspec}          \newfontfamily\arabicfont[Script=Arabic]{XB Zar}     \setmainfont[Numbers=OldStyle,Ligatures=Historic,Scale=1.3]{TeX Gyre Pagella}          \usepackage{polyglossia}     \setmainlanguage{english}     \setotherlanguage{arabic}          \usepackage[hyperref=true,natbib=true,style=authortitle,citestyle=authoryear-ibid,     sorting=nyt,autocite=footnote,backref=true,doi=false,isbn=false,url=false,     eprint=false,backend=biber,maxbibnames=30]{biblatex}          %% ARABIC NAME fields definition     \DeclareDatamodelFields[type=field, datatype=literal]{arabname}     \DeclareDatamodelFields[type=field, datatype=literal]{arabsurname}     \DeclareDatamodelFields[type=field, datatype=literal]{name}     \DeclareDatamodelFields[type=field, datatype=literal]{surname}     \DeclareDatamodelFields[type=field, datatype=literal]{rname}     \DeclareDatamodelFields[type=field, datatype=literal]{rsurname}     \DeclareDatamodelFields[type=field, datatype=literal]{lrname}     \DeclareDatamodelFields[type=field, datatype=literal]{hyear}     \DeclareDatamodelFields[type=field, datatype=literal]{sortaname}          %% ARABIC bibliography Driver     \DeclareBibliographyDriver{arabicname}{%     \usebibmacro{bibindex}%     \iffieldundef{name}{\textit{\printfield{rname}}}{      \iffieldundef{surname}{\textit{\printfield{name}}}      {\textit{\printfield{surname}}\addcomma\addspace      \textit{\printfield{name}}}}      \addspace      \iffieldundef{arabsurname}{\printfield{arabname}}      {\printfield{arabsurname}\addspace\printfield{arabname}}      \addspace      \printfield[parens]{year}      \addcomma\addspace      \usebibmacro{pageref}     }          \DeclareCiteCommand{\acite}     {}{\iffieldundef{name}{\printtext[bibhyperref]{\textit{\printfield{rname}}}}     {\iffieldundef{surname}{\printtext[bibhyperref]{\textit{\printfield{name}}}}     {\printtext[bibhyperref]{\textit{\printfield{name}}\addspace\textit{\printfield{surname}}}}}}     {}{}          \listfiles     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @arabicname{yusuf,     arabname = {\textarabic{الحجاج}},     arabsurname = {\textarabic{بن يوسف الثقفي}},     name = {al-Ḥajjāj},     surname = {\autocap{i}bn Yūsuf al-Thaqfī},     rname = {al-Hajjaj},     rsurname = {ibn Yusuf al-Thaqfi},     year = {661-714},     hyear = {40-95},     }     \end{filecontents}     \addbibresource{\jobname.bib}          \begin{document}          This is a special text cite \acite{yusuf}           \printbibliography     \end{document}      The output of the 2013 version is this: ![enter image description here](http://i.stack.imgur.com/0dUWe.png) And this is the 2014 output: ![enter image description here](http://i.stack.imgur.com/YFcEI.png)


title: how to make caption in a figure start a new line at left

text: I have a big description at times under a figure and the new lines in the caption start at the center instead from the left.How can i fix it?


title: How to blend two different documents?

text: > Below is document one with its associated `.lco` file: * * * `.lco` * * *               \ProvidesFile{standard.lco}[%             2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]         \usepackage[english]{babel}         \usepackage{fontspec}     \usepackage{fix-cm}      \usepackage{marvosym}     % ==================================================         % PERSONAL DATA     % ==================================================     \setkomavar{fromname}{From Name}     \setkomavar{fromaddress}{From Address}     \setkomavar{fromphone}{From Phone}     \setkomavar{fromemail}{From Email}     \setkomavar{place}{From Place}     \setkomavar{signature}{Signature(s)}     % ==================================================     % FORMATTING     % ==================================================     \defaultfontfeatures{Mapping=tex-text}     \setmainfont {Diavlo Light Regular}     \setsansfont {Gill Sans Light}     \renewcommand{\normalsize}{\fontsize{11}{16}\selectfont}     \newcommand\myname{%         {\addfontfeature{LetterSpace=15.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}     }     \newcommand\mytitle{%         \fontsize{21}{21}\selectfont\scshape Profession     }     \setkomavar{firsthead}{         \centering             \myname\\[5mm]             \mytitle     }     \setkomavar{firstfoot}{         \centering         \addfontfeature{LetterSpace=20.0}\scshape         {\renewcommand{\\}{\ {\large\textperiodcentered}\ }         \usekomavar{fromaddress}}\\         {\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}     }        \endinput      * * * Document 1 * * *               \documentclass[standard,letterpaper,pagesize,UScommercial9,foldmarks=false]{scrlttr2}%backaddress=plain     \usepackage[english]{babel}     \usepackage{fontspec}     \usepackage{fix-cm}      \usepackage{marvosym}     \begin{document}         \begin{letter}{             Master of Provisions            \\%         Company Name        \\%         Company Address             \\%             Company Address \\%         USA     }         \setkomavar{subject}{Business Proposal}         \opening{Dear Sir or Madam,}              Hello, and good evening \footnote{Note well this message. It's important}. I am a businessman, and I do business.          \closing{Regards}         \end{letter}         \end{document}      > Below is document two: * * * Document 2 * * *               \documentclass[standard]{letter}     \usepackage{invoice}     \address{Address \\ Address \\ Address \\ Address}     \signature{Pig Master}     \date{23. May 2009}     \begin{document}       \begin{letter}{Address \\ Address \\ Address \\ Address}         \opening{Invoice no. 1}         My greeting         \begin{invoice}{USD}{0}           \ProjectTitle{Project 1}%           \Fee{Development} {1000.00} {1}         \end{invoice}         \closing{I am a bumblebee}       \end{letter}     \end{document}      > I would like to know how to blend some of the features of document one and > its associated `.lco` file into document two; namely, how can the invoice > have the phone-email footer at the bottom? How can I get a document-wide > Diavlo Light Regular font? What about a water mark titled wm.jpg?


title: PDF reader on Linux capable of continuous updating

text: I am using `latexmk` on a Red Hat 5 machine. I use it as:               latexmk -pdf -pvc      I would like to have my PDF reader automatically update the PDF as it is changed. What PDF reader do I need for this? What settings should I use?


title: Is there a possibility to make reference to the line in the lstlisting environment?

text: I was wondering if it is possible to refer to the lines of the code enclosed in `lstlisting` environment rather than just manually write a number of the line I want to describe. I have never met with this feature, is this available?


title: How to create my own ref label system?

text: I want to add a hyperlink to sections where a file is discussed. Additionally the usage should be added to the index. In principle this is very close to the label ref system. A simple approach would be this               \newcommand{\labelfile}[1]{%     \hypertarget{file:#1}{}%     \index{file!#1}%     \csname doc@file@#1\endcsname%     }          \newcommand{\file}[1]{%     \ifcsdef{doc@file@#1}{%     \hyperlink{file:#1}{#1}%     }{%     \texttt{#1}%     }%     }      which would be used as               \section{about links in pdf}         The code is in \file{preamble/hyperref.tex}     ...     \section{preamble/hyperref.tex}     \labelfile{preamble/hyperref.tex}      It however does not work, because the label is created after the ref command. So I need to add everything to the aux file and read it again. However how do I implement that? Additionally I would like to have everything in the index as               files        preamble           hyperref.tex      That however requires to pass it to the index as               \index{files!preamble!hyperref.tex}      I however have it as               \index{files!preamble/hyperref.tex}      how can I replace the char `/` with `!` ?


title: Specific margin size in memoir

text: I am writing my thesis nowadays, and one of the few things the instructions have specific recommendations about is page size and margins. The page should be A4, and the margins should be: ( _I revised the description, hopefully in a clearer way_ )   * On the margin which will get binded the overall distance from the edge of the page to the text should be about 4cm;   * the rest of the sides should have about 1.5cm from the edge of the paper to the text. These spacing instructions include the margin which is part of the page, as well the additional space for binding. I am using the `memoir` document class, and I just couldn't get the hang of the spine, the fore-edge, etc. etc. I tried using the `geometry` package but it completely broke the compilation and I'm quite lost at the moment. I tried using `\setlrmarginsandblock` and that too broke the compilation. Both with several different error messages, amongst them: > You can't use `the character 1' after \the.\headheight ->15pt which, I suppose, means that some values are being overwritten at some point. I should also point out that I have added `\checkandfixthelayout` and that I am loading `fancyhdr` after that, which may (or may not) be a source of troubles. How can I solve this issue and have the margins the way I want them? Thanks! * * * I just measured a recent printout (before trying to do any changes) and the spacings are 4cm on top and bottom; 3cm on the side of the binding; 5cm on the other side.


title: Incompatibility between fixltx2e, subfigure and figure*

text: This minimal example:               \documentclass[twocolumn]{article}     \usepackage{subfigure}     \usepackage{fixltx2e}     \begin{document}     \begin{figure*}     asdf     \end{figure*}     \end{document}      gives the error:               Extra }, or forgotten \endgroup. [\end{figure*}]      when compiling with pdflatex. Is this a bug? Can this be fixed without changing packages? I'm aware that subfigure is deprecated.


title: Width of text in amsbook

text: I am writing my master thesis as `amsbook` and I am not quite satisfied with the width of my text. It is not wide enough. Does someone know whether you can change the width?


title: How to apply \cftafterpnum to specific entries (and add labels for columns of the TOC)

text: I'm trying to make a 3 column table of contents, which includes chapter name, page number, and a blank line for grading for a homework assignment. A previous question gave me the answer as to how to prepare this extra blank line using tocloft:               \documentclass[12pt]{report}     \usepackage{tocloft}     \renewcommand{\cftsubsecafterpnum}{\quad\rule{2cm}{0.4pt}}     \renewcommand{\cftsecafterpnum}{\quad\rule{2cm}{0.4pt}}     \setlength{\cftbeforesecskip}{10pt}     \setlength{\cftbeforesubsecskip}{10pt}     \newcommand{\mychapter}[2]{         \setcounter{chapter}{#1}         \setcounter{section}{0}         \chapter*{#2}         \addcontentsline{toc}{chapter}{#2}     }     \setcounter{secnumdepth}{0}     \begin{document}         \tableofcontents         \subsection*{Acknowledgements:}     Problem 1c: Jack Smith helps me with deriving this and that.          \clearpage             \mychapter{1}{Section 1.1 Problems}                 \section{Problem 1}                     \subsection{Part C}                 \section{Problem 1d}             \mychapter{2}{Section 1.2 Problems}             \mychapter{3}{Problem A}             \mychapter{4}{Problem B}     \end{document}      ![](http://i.stack.imgur.com/mLERL.png) However, I want `\quad\rule{2cm}{0.4pt}` to appear after the page number of problems A and B, but not the other chapters. E.g. I want to apply `\cftchapafterpnum` to specific entries if that's possible. If the way I've been doing this is inconvenient please let me know, especially if there's a way to get a title on each section, (i.e. label the vertical columns "chapter", "page", and "grade".) Also, elementary question I know, but how do you get chapters to appear on the same page? E.g. avoid automatically making chapters on separate pages in the report class?


title: How to cite a standard (ISO, etc.) in BibLaTeX?

text: I want to cite an ISO standard using BibLaTeX. All guidelines I found for BibTeX suggested using `misc` and replacing the `author` and `editor` fields by a `number` field which was then the full string denoting the ISO standard ("ISO 9241-210:2010" say). BibLaTeX won't display the `number` though. I found this German thread where it was suggested to copy the `misc` BibliographyDriver to a new `standard` type (as suggested by the section "2.1.3 Unsupported Types" of the BibLaTeX documentation) and replace               \usebibmacro{author/editor+others/translator+others}       by               \usebibmacro{series+number}      The result is a complete adapted copy of the `standard.bbx` file, renamed to `din.bbx` though. Is this the only/best solution? Can't I just change what I need and insert it somehow? * * * This link is not TeX-related but might be useful: http://www.garshol.priv.no/blog/47.html


title: siunitx: Decimal alignment with 'less than' sign

text: How can I align the p-values that contain the 'less than' sign in the last column in this table and also specify spacing between individual columns to improve the layout?               \documentclass{article}          %tables     \usepackage{booktabs}     \usepackage{longtable}     \usepackage{siunitx} %align numbers by decimal point          \begin{document}          \sisetup{table-format = -1.2}     \begin{longtable}[]{S[table-format=2.0]SSSS[table-format = 0.2]}     \caption{} \label{}\\     \toprule     {\textbf{Item}} & {\textbf{\textit{b}}} & {\textbf{\textit{t}}} & {\textbf{\textit{F}}} & {\textbf{\textit{R$^2$}}}\\     \midrule     \endfirsthead     \toprule     {\textbf{Item}} & {\textbf{\textit{b}}} & {\textbf{\textit{t}}} & {\textbf{\textit{F}}} & {\textbf{\textit{R$^2$}}}\\     \midrule     \endhead     \bottomrule     \endfoot     \endlastfoot     1 & -1.45{$^{***}$} & -7.44{$^{***}$} & 55.34 & .18  \\     11 & -.86{$^{*}$} & -2.09{$^{*}$} & 4.36 & .01  \\     12 & -1.79{$^{***}$} & -3.80{$^{***}$} & 14.47 & .05  \\     13 & -.56 & -1.34 & 1.80 & .00  \\     61 & -1.79{$^{***}$} & -5.85{$^{***}$} & 34.20 & .12  \\     62 & -1.00{$^{**}$} & -3.17{$^{**}$} & 10.05 & .04  \\     63 & -.27 & -.65 & .43 & {$<$0.001}  \\     64 & -.37 & -.97 & .94 & .00  \\     65 & -.34 & -.85 & .73 & .00  \\     66 & 1.05{$^{**}$} & 2.70{$^{**}$} & 7.30 & .02  \\     67 & -1.12{$^{**}$} & -2.90{$^{**}$} & 8.40 & .03  \\     72 & -.41 & -1.20 & 1.43 & .00  \\     73 & -.27 & -.82 & .67 & .00  \\     74 & 2.05{$^{***}$} & 4.99{$^{***}$} & 24.88 & .09  \\     75 & 1.61{$^{***}$} & 4.41{$^{***}$} & 19.46 & .07  \\     76 & .29 & .91 & .83 & {$<$0.001}  \\     \bottomrule     \end{longtable}          \end{document}


title: siunitx and 'e' notation in Tables with S column

text: I have a problem using `\sisetup{output-exponent-marker = \text{e}}` in my table. I use the S-columns provided from the siunitx package. It does change to the 'e' notation but it does not delete the `\times` before the 'e'. Here is a small extract of my LaTex file, with a small version of the table. I want to use the 'e' notation as this saves a lot of space, it will be a very large table finally. I hope someone can help. Many thanks in advance. Gerlind               \documentclass[fontsize=12pt,DIV14,BCOR15mm,oneside, headings=small,headsepline, appendixprefix,bibliography=totoc]{scrbook}          \usepackage[latin1]{inputenc}           % Zus{\"a}tzliche Sonderzeichen     \usepackage[UKenglish]{babel}       % English Language and Hyphenation          \usepackage{times}                          % Festlegung der Schrift     \usepackage[T1]{fontenc}                % Verwendete Zeichentabelle          \usepackage{rotating}          \usepackage[bf,footnotesize,width=.9\textwidth,format=hang]{caption}              \usepackage{array}          \usepackage{siunitx}          \usepackage{multirow} % Multirow command for tables          % To increase space of some rows in tables, especially needed in header row before \hline     \newcommand\T{\rule{0pt}{2.6ex}}       % Top strut     \newcommand\B{\rule[-1.2ex]{0pt}{0pt}} % Bottom strut          \usepackage{scrpage2}               \begin{document}          \begin{table}[htbp]     \begin{center}     \footnotesize     \sisetup{output-exponent-marker = \text{e}, table-format=+1.4e+2}     \begin{tabular}{ll|SS}     MRE Sample & $N$ & \multicolumn{1}{c}{$\mu_1 [Pa]$} & \multicolumn{1}{c}{$\alpha_1 [-]$}   \B \\  \hline     \multirow{3}{3cm}{Isotropic $10\%$ MREs} & 1 & 1.5030e+05 & 4.2384e+00 \T \\      & 2 & 6.7175e+05 & 8.4376e-01 \\     & 3 & 9.5378e-06 & 9.0545e-05  \B \\ \hline      \end{tabular}     \end{center}     \caption[]{Wrong scientific notation}     \label{tab:example}     \end{table}          \end{document}      ![enter image description here](http://i.stack.imgur.com/xmiba.png)


title: Springers svmult template - bibliography with bibtex?

text: I'm using Springers (free) `svmult` template to compose a book as editor with several individual contribution by different authors. Every author should be able to have his own bibliography at the end of his contributions. Technically, this is a master file (`editor.tex`) with many included files (`author1.tex`, `author2.tex` ...) In the author.tex template, there is the following advice:               %     %     % BibTeX users please use     % \bibliographystyle{}     % \bibliography{}     %     % Non-BibTeX users please follow the syntax     % the syntax of "referenc.tex" for your own citations     \input{referenc}      Now I tried several ways to use               \bibliographystyle{}     \bibliography{}      (of course with style and file specified):   1. only in the master file -> doesn't work   2. in each author file -> latex complains about more than one style/bibliography file found   3. the style in the masterfile, the bibliography in each author file - > prints the _complete_ bibliography at the end of each contribution, not only the bibliography for that contribution.  Now I'm a bit stuck - how can I realize one separate bibliography for each contribution in the book?


title: recursive multiple subscript and superscript with xparse

text: How can I define a new command with xparse, something like this:               \NewDocumentCommand\tensorkor{ m >{\SplitList{,}}o  >{\SplitList{,}}o }     {      ?????     }      that i can execute               $  \tensorkor{T}{^a,_b,_c,^r,^f}  $         which should result in a code like this               $  {{{{{T^a}_b}_c}^r}^f} $      This is tricky? I dont get it with `ProcessList{#1}`


title: Holiday diary with LaTeX

text: I want to write a diary of my holidays. I thought to use `part` to subdivide the diary by years, `chapter` to subdivide by holidays (places) and `section` to subdivide by days. This works quite well, but I think a package created for keep a diary would be better. My problem is that I want to add some (from two to five) photos each day and floating objects are not ideal for this type of document. Can someone tell me how better keep a diary with LaTeX? Is there any package?


title: Unindent code inserted with \lstinputlisting

text: Is it possible to unindent the code inserted using `\lstinputlisting`? In particular I'd like to be able to unindent by a fixed amount of whitespace. I have to write a relation on a OS scripting course and I'd like to include the sources of some `bash` scripts. I noticed that `gobble` is ignored by `\lstinputlisting` but I'd like to avoid to copy-paste the code and unindent it by hand. Is there any solution for this?