title: Where to place a two-page table of contents / list of figures?

text: In my Master's thesis, I use `scrbook` and start every chapter on odd pages. Now both my table of contents and list of figures span exactly two pages. My question is therefore more related to style and "best practices" than to the technical implementation: _Would you recommend starting the table of contents and list of figures on an even or odd page?_ **On the one hand** , it is consistent with the whole document to start both of them on an odd page. I think it is also what the reader expects: every new chapter (or listing) starts on the odd, i.e., right page. **On the other hand** , listings exist for the purpose to provide an overview and should not be split over several (double) pages. Therefore, it can be beneficial to start them on even pages, because the reader does not need to turn the page to see the whole listing. I was wondering whether there are any style guidelines that make a concrete statement about this problem. I had a look into different books and noticed they usually start their table of contents on odd pages, but they also span more than two pages (hence they could not be fit into one double page anyways). Any information on this topic is appreciated.


title: Is there something like \renewcounter or \providecounter?

text: Is there a command that creates a counter or, if it already exists, redefines it? Thing is that I'm working with nested loops. The second loop is however in a command. This means if I want to use a second counter for the second loop, I need to define it before the first loop and give it as an argument in the command which seems a bit cumbersome. As example:               \newcommand\recursiveloop[2]{% do loop with counter #2, #1 times       \setcounter{#2}{0}       {\loop\unless\ifnum\value{#2}=#1         \stepcounter{#2}         % do something       \repeat}     }          \newcounter{loop}     % counter for first loop     \newcounter{recloop}  % counter for recursive loop          \loop\unless\ifnum\theloop=4  % start the first loop       \stepcounter{loop}  % counter loop +1       % do something       \recursiveloop{3}{recloop}  % call command to run second loop     \repeat      In this example it's of course not a big deal. But my command has already 3 arguments and more will be added.. Isn't there a way of (1) check if the counter exists to run the appropriate command: `\setcounter` or `\newcounter` or (2) a command that can do it by himself.


title: How can I change the whitespace above and below math displays?

text: I'm looking to squeeze an article written in LaTeX with amsmath to a set number of pages. In the text, I have a number of numbered math displays which I refer to throughout. However, they take up quite a lot of vertical space. I would therefore like to change the height of the whitespace above and below them. I have tried using negative, vertical spaces, but they have a tendency to mess up other stuff.


title: PGFplot shrinks after I add it the main TeX document with standalone package. What should I do?

text: I would like to ask question concerning usage of PGFplots package (LaTeX). I have this problems: after inserting tex file using standalone package in my main document, part of pgfplot shrinks and font becomes very big in it. What You can recomend me to do with this problems? As for font it is possible to solve, if in preabmle set:               \font=\footnotesize      I think there should be another way to work in out. But my main concern is this shrinking of pgfplot. Part of main document:                  ...      \begin{figure}[h]         \addtocounter{totalfigures}{1}         \centering         \includestandalone[mode=tex,width=\linewidth]{figures/test_pgf}         \caption{Scheme for sub-pico second laser set-up.}         \label{fig:fs-set-up}         \end{figure}     ...      My standalone file looks like this:               \documentclass[tikz,14pt]{standalone}     \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,french,russian]{babel}     \usetikzlibrary{arrows,decorations.pathmorphing,shadows,calc,intersections}     \usepackage{pgfplots}     \usetikzlibrary{pgfplots.groupplots}     \pgfplotsset{width=8cm,compat=1.9}          \tikzset{     %Define standard arrow tip     >=stealth'     }     \begin{document}     \pgfplotsset{every axis/.append style={     font=\normalfont,     line width=1 pt,     tick style={line width=.6pt}}}     \begin{tikzpicture}      \begin{groupplot}[group style={             group size=1 by 2,             xlabels at=edge bottom,             xticklabels at=edge bottom,             vertical sep=12pt         },         xmin=-8,        xlabel={$\rm Delay\:time, \mu s$},         ]     \nextgroupplot[     ymin=0,     ymax=1.02,     enlargelimits=false,     ylabel={$\rm Norm.\: luminescenece, a.u.$},     ylabel absolute,     minor x tick num=4,     minor y tick num=4,     legend style={draw=none},     legend pos=outer north east,     ]     \addplot[black,mark=*,mark size=1pt] table [x index=0,y index=1] {test.dat};     \addplot[red,mark=x,mark size=0.2pt] table[x index=2, y index=3] {test.dat};     \legend {$d=1$,$Fit$}     \nextgroupplot[     ymax=0.011,     ymin=-.011,     enlargelimits=false,     ylabel={$\rm Residuals$},     ylabel absolute,     minor x tick num=4,     minor y tick num=1,     height=3cm,     ]     \addplot[black,mark=*,mark size=1pt] table [x index=0,y index=4] {test.dat};     \draw[ultra thin] (axis cs:\pgfkeysvalueof{/pgfplots/xmin},0) -- (axis cs:\pgfkeysvalueof{/pgfplots/xmax},0);     \end{groupplot}     \end{tikzpicture}     \end{document}      Finally this is what I got: ![Problem](http://i.stack.imgur.com/2XCek.png) P.S. If I compile standalone TeX file plot looks fine, font is OK. ![enter image description here](http://i.stack.imgur.com/vtP9V.png)


title: Is there a charts package for LaTeX?

text: I wanted to include some more or less complex charts into my LaTeX document. I have attached a picture that shows an example how it should like. Is there any charts package in LaTeX that allows me to include such charts in my document? Or do I have to do that with Excel or any other tool? ![enter image description here](http://i.stack.imgur.com/ebMg8.png)   Picture from the paper: The secret life of bugs: Going past the errors and omissions in software repositories


title: Algorithm over 2 pages

text: I am writing a few rather large pseudocode functions using `algorithm` and `algorithmic`, i.e. my code looks something like:               \begin{algorithm}                          \caption{Coolest Algorithm ever}               \label{findme}                               \begin{algorithmic} [1]                   % enter the algorithmic environment     \REQUIRE    Here are a few variables \\                 variable 2 \\                 variable 3      \ENSURE     this is the output \\                 output 2          \STATE $some cool code here$     \STATE $some cool code here$     \STATE $some cool code here$     \STATE $some cool code here$     \end{algorithmic}     \end{algorithm}      Unfortunately this code does not fit on one page and I am definitely not able to split it into some subfunctions or so (I already did that as far as possible). So now I need to split up the algorithm into two pages, but I have no idea how. The easiest way I can imagine is just to start a new algorithm on the new page, but this time letting the line counter start at line 35 or so instead of 1. But how can I do that? Please not that there is already a similar question here on this site, but it deals with the package `algorithmicx`.


title: How to break a pseudocode box between two pages

text: I am using the method here to generate my pseudocode, however my code is long and after running the tex file, instead of breaking the code box into two parts, it moves the whole code to the next page. I want to know how can I break it? Here is the code:               \documentclass[11pt,bezier]{article}     \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \usepackage{amssymb,amsfonts,xspace}     \usepackage{amsmath}     \usepackage{algorithm,fontspec}     \usepackage[noend]{algpseudocode}     \renewcommand{\baselinestretch}{1.1}     \textwidth = 15 cm \textheight = 20 cm \oddsidemargin =0.7 cm     \evensidemargin = 0 cm \topmargin = -0.2 cm     \parskip = 2 mm     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \newcommand*\Let[2]{\State #1 $\gets$ #2}     \algrenewcommand\alglinenumber[1]{         {\sf\footnotesize\addfontfeatures{Colour=888888,Numbers=Monospaced}#1}}     \algrenewcommand\algorithmicrequire{\textbf{Precondition:}}     \algrenewcommand\algorithmicensure{\textbf{Postcondition:}}                        \begin{document}         \begin{algorithm}           \caption{Counting mismatches between two packed DNA strings             \label{alg:packed-dna-hamming}}           \begin{algorithmic}[1]             \Require{$x$ and $y$ are packed DNA strings of equal length $n$}             \Statex             \Function{Distance}{$x, y$}               \Let{$z$}{$x \oplus y$} \Comment{$\oplus$: bitwise exclusive-or}               \Let{$\delta$}{$0$}               \For{$i \gets 1 \textrm{ to } n$}                 \If{$z_i \neq 0$}                   \Let{$\delta$}{$\delta + 1$}                 \EndIf               \EndFor               \State \Return{$\delta$}             \EndFunction           \end{algorithmic}         \end{algorithm}         \end{document}      P.S.I removed my text before it, which results in the shift.


title: How do I change properties of a cube in TikZ?

text: I am looking at an example from How to draw a cube with TikZ where all faces have a distinct color?               \documentclass{minimal}     \usepackage{tikz,tikz-3dplot}          \begin{document}       \tdplotsetmaincoords{70}{115}            \begin{tikzpicture}[scale=4,tdplot_main_coords]         \coordinate (O) at (0,0,0);         \tdplotsetcoord{P}{1.414213}{54.68636}{45}              \draw[fill=gray!50,fill opacity=0.5] (O) -- (Py) -- (Pyz) -- (Pz) -- cycle;         \draw[fill=blue,fill opacity=0.5] (O) -- (Px) -- (Pxy) -- (Py) -- cycle;         \draw[fill=yellow,fill opacity=0.5] (O) -- (Px) -- (Pxz) -- (Pz) -- cycle;         \draw[fill=green,fill opacity=0.5] (Pz) -- (Pyz) -- (P) -- (Pxz) -- cycle;         \draw[fill=red,fill opacity=0.5] (Px) -- (Pxy) -- (P) -- (Pxz) -- cycle;         \draw[fill=magenta,fill opacity=0.5] (Py) -- (Pxy) -- (P) -- (Pyz) -- cycle;       \end{tikzpicture}     \end{document}      I want to draw many cubes like these, I wanted to know which line changes the position of the center of the cube, and the orientation? I want all cubes to be of same size. what are x, y and z? are they values? are they being multiplied with P? --------edit----------- is there a package for TikZ where I can simply draw cubes by providing their size, color and position and orientation?


title: Remove header in a3 pages inside a4 doc

text: I have a longtable in a3 pages within an a4 document. I want to remove the headers since these pages are going to be one sided and the header is for a two sided document. I have tried different things but none seems to work. Thanks               \documentclass[11pt,a4paper,final]{book}        \usepackage[utf8]{inputenc}        \usepackage[spanish]{babel}        \usepackage{booktabs}        \usepackage{multirow}        \usepackage{longtable}        \usepackage{emptypage}         \usepackage[twoside, right=3cm, hmarginratio=1:1, top=4cm, bottom=2cm]{geometry}     \usepackage{url}     \usepackage{afterpage}     \usepackage{changepage}     \usepackage{titlesec}     \usepackage{appendix}               \usepackage{fancyhdr}     \pagestyle{fancy}     % with this we ensure that the chapter and section     % headings are in lowercase.     \renewcommand{\chaptermark}[1]{%     \markboth{#1}{}}     \renewcommand{\sectionmark}[1]{%     \markright{\thesection\ #1}}     \fancyhf{} % delete current header and footer     \fancyhead[LE,RO]{\bfseries\thepage}     \fancyhead[LO]{\bfseries\rightmark}     \fancyhead[RE]{\bfseries\leftmark}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \addtolength{\headheight}{0.5pt} % space for the rule     \fancypagestyle{plain}{%     \fancyhead{} % get rid of headers on plain pages     \renewcommand{\headrulewidth}{0pt} % and the line     }               \titleformat{\chapter}[display]     {\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{0pt}{\huge}    [\vspace{1ex}\titlerule]     \titlespacing*{\chapter}{0pt}{50pt}{60pt}                    \begin{document}          \newenvironment{hugepage}     {\clearpage \changepage{}{210mm}{}{}{}{}{}{}{}} % switch to A3      {\clearpage \changepage{}{}{}{}{}{}{}{}{}}          \afterpage{%     \begin{hugepage}     \pdfpagewidth=2\pdfpagewidth          \renewcommand{\appendixtocname}{Apéndices}          \cleardoublepage     \phantomsection     \thispagestyle{empty}     \appendix      \addappheadtotoc     \chapter{Huge Table}     \label{apenA}          \begingroup         \fontsize{7pt}{11pt}\selectfont         \begin{longtable}{| r | l | c | c | c | c | c | c | c | c | c| c | c | c | c | c| c|}             \caption{Huge table.} \label{tablatodas} \\                   \toprule                 {\multirow{3}[2]{*}{\textbf{c1}}} & {\multirow{3}[2]{*}{\textbf{c2}}} & {\multirow{3}[2]{*}{\textbf{cc3}}} & {\multirow{3}[2]{*}{\textbf{c4}}} & \multirow{3}[2]{*}             {\textbf{c5}} & {\multirow{2}[2]{*}{\textbf{c6}}} & {\multirow{2}[2]{*}{\textbf{c7}}} &  \textbf{c8} & \textbf{c9} &  \textbf{c10}                      & \multirow{2}[2]{*}{\textbf{c11}}  & \textbf{c12} & \multirow{3}[2]{*}{\textbf{c13}}& \multirow{2}[2]{*}{\textbf{c14}} & \multirow{2}[2]{*}{\textbf{c15}}          &  \textbf{c16} & \multirow{3}[2]{*}{\textbf{c17}} \\                  &   &   &  &  & {\multirow{2}[2]{*}{\textbf{b}}} &  {\multirow{2}[2]{*}{\textbf{b.}}} & \textbf{b} &  \textbf{b} &  \textbf{b}  & \multirow{2}[2]{*}{\textbf{b}} &  \textbf{b} &  & \multirow{2}[2]{*}{\textbf{b}}  &  \multirow{2}[2]{*}{\textbf{b}} &  \textbf{b} & \\                  &   &   &  &  &  &  & \textbf{c} & \textbf{c} & \textbf{c} &  & \textbf{c} &  &  &  &  \textbf{c} &  \\         \midrule         \endfirsthead              \multicolumn{17}{c}%         {{\bfseries \tablename\ \thetable{} -- Continuación}} \\              \toprule                 {\multirow{3}[2]{*}{\textbf{c1}}} & {\multirow{3}[2]{*}{\textbf{c2}}} & {\multirow{3}[2]{*}{\textbf{cc3}}} & {\multirow{3}[2]{*}{\textbf{c4}}} & \multirow{3}[2]{*}             {\textbf{c5}} & {\multirow{2}[2]{*}{\textbf{c6}}} & {\multirow{2}[2]{*}{\textbf{c7}}} &  \textbf{c8} & \textbf{c9} &  \textbf{c10}                      & \multirow{2}[2]{*}{\textbf{c11}}  & \textbf{c12} & \multirow{3}[2]{*}{\textbf{c13}}& \multirow{2}[2]{*}{\textbf{c14}} & \multirow{2}[2]{*}{\textbf{c15}}          &  \textbf{c16} & \multirow{3}[2]{*}{\textbf{c17}} \\                  &   &   &  &  & {\multirow{2}[2]{*}{\textbf{b}}} &  {\multirow{2}[2]{*}{\textbf{b.}}} & \textbf{b} &  \textbf{b} &  \textbf{b}  & \multirow{2}[2]{*}{\textbf{b}} &  \textbf{b} &  & \multirow{2}[2]{*}{\textbf{b}}  &  \multirow{2}[2]{*}{\textbf{b}} &  \textbf{b} & \\                  &   &   &  &  &  &  & \textbf{c} & \textbf{c} & \textbf{c} &  & \textbf{c} &  &  &  &  \textbf{c} &  \\         \midrule         \endhead              \bottomrule         \endfoot         \bottomrule         \endlastfoot               AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\     AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa & AAAaaaa \\          \end{longtable}%     \endgroup          \end{hugepage}}          \end{document}


title: A follow-up question on managing bibliography workflow

text: I felt this should be a follow-up question. If not, please remove it. The original question was Workflow for managing references?. I am using TeXStudio 2.5.2 in Windows 7, `biber` and `biblatex` for the bibliography. I have followed the excellent guide that @doctorate has provided, but I have found two minor flaws. When I copy an article from Zotero directly to a `.tex` document, or when I export to a `.bib` file, the names of the authors are not correct. For example names like: Gregoire and Chate have an accent on the e's and while they should be imported in the bibliography like this:               Gr\'{e}goire and Chat\'{e}      They are in fact copied with the accents, so when I compile my document I get random symbols on these names. Is there a way to correct this, or use a different tool? For now, these occurrences are not many, so I manually corrected everything and it works beautifully! :) The second part is that the field `urldate` actually imports a field: "Visited on XX/XX/XXXX" that was not there in the MWE. Again, I deleted the field in the `.bib` file and it works, I'm just wandering why it didn't show on that setup and it does in mine. As I am finishing my first ever LaTeX document and I am new to Tex.SE this is probably a final question for the meta. Are we allowed to use code other users provide as examples? Any suggestions are really welcome.


title: How to change this \renewcommand\section to prevent page break just after the title?

text: I am using the following command in my class (thanks to this answer):               \renewcommand\section{\@startsection{section}{1}{\z@}%                                     {3.25ex \@plus1ex \@minus.2ex}%                                     {-1em}%                                     {\normalfont\large\bfseries}*}      Now I had the problem that the section title happened to be the last thing on a page, and its corresponding text ended up in the next page. How to change this definition to prevent this problem to happen? I tried adding a `\nopagebreak` as last thing before `}`, with no success...


title: How to auto advance slides in beamer without full display mode?

text: To advance the slides automatically, after so many seconds, it seems that you need to have the full display mode (`Ctrl`+`L` on PC) while using `beamer`. How can I have the same effect when the PDF file does not occupy the whole screen but just is one of many windows? (Reason: I want to show something else at the same time as the slides.)


title: classicthesis margins

text: I am writing my master thesis with `classicthesis`. I am afraid margins are too wide and I was considering modifying them. I am definitely not a LaTeX guru so I surfed on the internet to find how much smaller I can make them to keep the it looking awesome. I came up with this:               \documentclass[10pt,a4paper,oneside,titlepage,%     headinclude,footinclude,BCOR5mm,%     numbers=noenddot,cleardoublepage=empty,%tablecaptionabove     ]{scrbook}     \usepackage[eulerchapternumbers,subfig,beramono,pdfspacing]{classicthesis}     \usepackage{arsclassica}     \areaset[5mm]{400pt}{699pt}     \setlength{\marginparwidth}{7em}%     \setlength{\marginparsep}{2em}%      Does it make sense for printing on one side only? Shouldn't the margins be different? Can I make them smaller?


title: Variable Input/Output node using a new command

text: How can I create a variable input/output node using a new command as in the following picture![VriableSizeNode](http://i.stack.imgur.com/TNndL.png) Say for example, I know that the node will have **n** inputs and **m** outputs, which I enter the name as an argument for the new command, and at the same time, use it easily to link a specific input to a specific output


title: Making and referring to variables with a key

text: I have a custom macro, `\somemacro{}{}`. In the macro, `#1` is set to a unique key (e.g. 11) and `#2` contains other data. This macro appears throughout my document:                   This is some text. \somemacro{11}{This is information about animals.}         \somemacro{15}{This is information about trees.} Here is some other text.     \chapter{Here is a new chapter}         \somemacro{17}{This is information about the sky.}         \somemacro{01}{This is information about space.}      Occasionally, I need to cross-reference the appearance of the macros, by referring to the key number. This is similar to `\ref` or `\pageref`, but the value will be a number referring to the order of appearance of that key. E.g. In the above, `#15` appears second, so `\whereiskey{15}` would return `2`. `#01` appears fourth in the document, so `\whereiskey{01}` would return `4`. To do this, I have created a counter `labelcounter`, which is incremented each time the macro is used. To create a variable that has a key and a value, I tried to create use a counter (as it is the only variable I know that has a name and a value), named for the value of the key:               \documentclass{article}     \newcounter{labelcounter}     \setcounter{labelcounter}{0}     \newcommand{\somemacro}[2]{         \stepcounter{labelcounter}         \newcounter{#1}         \setcounter{labelcounter}         #2     }     \newcommand{\whereiskey}[1]{         \arabic{#1}     }     \begin{document}         \somemacro{08}{This is some text.}         \somemacro{12}{This is some other text.}         \somemacro{10}{This is some more text.}         This number should say when \#12 appears: \whereiskey{10}.     \end{document}      This does not seem to work. When I try to compile, it reports,               Missing number, treated as zero. \somemacro{08}{This is some text.}.        * How can I get this to work?   * Is there a better approach?


title: Self loop in an undirected graph using TikZ

text: How can I create a self loop without a direction on the edge?               \path[every node/.style={font=\sffamily\small}]     (3)   edge[loop] node  {$e_{1}$} (3);      creates the loop I want but has a direction.


title: Seminar environment plus psfrag plus TeXshop -- I can't get all three to work together

text: A while ago, I discovered that TeXshop has trouble with producing slides that overflow the right margin in the seminar environment. I found a solution in this thread on latexcommunity -- use pdftex and insert               \setlength{\pdfhorigin}{1truein}     \setlength{\pdfvorigin}{1truein}     \makeatletter     \setlength{\pdfpagewidth}{\strip@pt\paperheight truept}     \setlength{\pdfpageheight}{\strip@pt\paperwidth truept}     \makeatother      I also have been happily using psfrag to decorate my figures. I have just tried to put some of those figures into a set of slides and found that psfrag wasn't inserting the required tex. From some googling, it looks like the key here is to use "TeX and DVI", not Pdftex. I see that this question may have some better answers, but I don't immediately see whether they solve the question. Here is an example:               \documentclass{seminar}      \usepackage{amsthm, amsmath, amssymb, amsfonts, graphics}     \usepackage{epstopdf, psfrag, pstricks}     \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}               \setlength{\pdfhorigin}{1truein}     \setlength{\pdfvorigin}{1truein}     \makeatletter     \setlength{\pdfpagewidth}{\strip@pt\paperheight truept}     \setlength{\pdfpageheight}{\strip@pt\paperwidth truept}     \makeatother          \begin{document}          \begin{slide}               {     \psfrag{1}{$x$}     \includegraphics{Test.eps}     }          \end{slide}     \end{document}      Create an eps file called Test.eps with the symbol 1 in it. If you compile with "TeX and DVI", the 1 will be replaced by x, but it will overflow the righthand margin. If you compile with "Pdftex", the margins are correct but the 1 is not replaced. Thanks!


title: Are there any good video tutorials for protex?

text: I just downloaded and installed MikTex and TexMaker today, and was wondering if you have any advice. I'm starting to read through various wikipedia tutorials, and other guides, but videos would be an immense help!


title: Unable to print the bibliography with memoir

text: I have the following layout in my document:               \usepackage{tikz}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[paper=letterpaper]{geometry}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsbsy}          \begin{document}     \DoubleSpacing     \maxtocdepth{subparagraph} % put everything into the ToC     \tableofcontents     \mainmatter     \chapter{XX}     \input{X}     \input{Y}     \input{Z}        \bibliography{thesis_bibliography.bib}     \end{document}      I can see that WinEdt parses the bibliography correctly (the cited entries show up on the left menu), and `PDFTeXify` (provided by WinEdt) has always compiled my document correctly including the bibliography. Why can't I print the bibliography? ## Update:   1. My citations are of the form `~\cite` or `\cite` and my entries in the file `thesis_bibliography.bib` are of the form: `@inproceedings`, `@article`, etc.   2. I noticed LaTeX complains because it thinks my bibliography is in a file called `thesis.bbl`, but above I have a line that says `\bibliography{thesis_bibliography.bib}`. Why does it think it's the wrong file?


title: Test if a paragraph has a page break in it?

text: I'm trying to use TikZ to make fancier frames. I'm using the clever `\tikzmark` thing that Andrew Stacey wrote to put nodes at the top left and bottom right of the body of an environment. Then I use these nodes to draw funky decorations. I'm sure I'm reinventing the wheel, but I'm learning so it's all good. I know what I want to do is possible because `mdframed` and `listings` both manage it, but their code is hard for me to read and it's not clear what the relevant part is... Now, this works fine until the environment spans a page. Then the nodes are on different pages, and when the end code of the environment comes to draw the decorations, it can't find the top left node (because its been shipped out on the last page). So what I'd like to do is have a different set of behaviours for when the environment is broken across a page. What are the simplest ways to test when a paragraph is broken like this?


title: Modify a \part entry in ToC with memoir

text: I would like to change how a "Part" title appears in the Table of Contents of a `memoir` document. In particular, I'd like to have the "Part Title" between two lines. Take the following minimal example:               \documentclass[b5paper,10pt,twoside,openright,final,english]{memoir}     \usepackage{lipsum}     \usepackage[english]{babel}          \makepagestyle{part}     \makeevenfoot{part}{}{}{}     \makeoddfoot{part}{}{}{}     \makeevenhead{part}{}{}{}     \makeoddhead{part}{}{}{}          \begin{document}     \tableofcontents          \chapter{Introduction}     \lipsum          \addtocontents{toc}{\protect\mbox{}\protect\hrulefill\par}     \part{Basics}     \addtocontents{toc}{\protect\mbox{}\protect\hrulefill\par}          \chapter{A Chapter}     \lipsum          \end{document}      How can I force the lines in the Table of Contents to be longer and change the distance within the "Part" title?


title: Put an image header in \documentclass{letter}

text: Is there is any possibility to put an image header in a `letter` class document? I can put a footer image and an image for my signature, but I want to put an image on the top of the letter.


title: Use a part of a path to make a cycle

text: I have two pathes the firt is to be fully drawed, but only a part of the second using intersection point with the first. Here an example: I want to draw only the upper part of the square (dashed) as close cycle to intersection points 1 and 3. But I have no idea how to do that. I usually use metapost and it will be a piece of cake to do that. I hope it is the same with pgf-tikz ;-)               \documentclass[a4paper]{article}     \usepackage[marginparsep=3pt, top=2cm, bottom=1.5cm, left=3cm, right=1.5cm]{geometry}          \usepackage{tikz}     \usetikzlibrary{calc,intersections}          \tikzset{small dot/.style={fill=black,circle,scale=0.3},}          \begin{document}     \begin{tikzpicture}          % drawed just for explanation     \draw[thin,dashed] (-1,-1)--(1,-1)--(1,1)--(-1,1)--cycle ;          \path[name path=carre] (-1,-1)--(1,-1)--(1,1)--(-1,1)--cycle ;     \draw[name path=paral,blue] (-1.5,-.5)--(.5,-.5)--(1.5,.5)--(-.5,.5)--cycle ;          \fill [red,     name intersections={of=carre and paral,     name=i,sort by=carre,     total=\t}]     [every node/.style={above left, black, opacity=1}]     \foreach \s in {1,...,\t}         {(i-\s) circle (1pt) node {\footnotesize\s}};          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/xq6XQ.png)


title: How to customize the default xelatex command in TexShop for OSX

text: I am trying to make use of the `minted` package for source code highlighting, and am running into an error telling me I need to install `pygmentize` combined with an message regarding the `\--shell-escape` flag. I confirmed that running               $ xelatex --shell-escape my.tex      will compile correctly, but compilation via TexShop doesn't seem to be calling this flag and I cannot find a way to set it correctly. In the TexShop preferences, I did check that the `pdfTeX` commands have the `\--shell-escape` flag set, but this does not seem to help or matter. If someone could point out to me the way to inform TexShop about this flag for `xelatex` I'd be grateful.


title: How to generate stem plots with TikZ like stem() in Matlab?

text: Given a set of (x,y) coordinates stored in a file, how could I generate a stem plot from those coordinates? I would like to achieve something similar as the matlab's stem function: http://www.mathworks.ch/help/techdoc/ref/stem.html I found a nice tutorial on how to generate 2d plots, but the points are interpolated: http://d.xav.free.fr/tikz/index.html


title: Draw inside nodes to get BPMN gateway shapes

text: This question is a follow up to How to draw inside a TikZ node, using node style? I am trying to get the `AND` and `XOR` gateway from BPMN as seen here http://www.omg.org/bpmn/Samples/Elements/Gateways.GIF As a starting point I found this style file https://github.com/sbadia/gdeploy/blob/master/francegrilles/tikz-bpmn.sty but to get the plus and x in the gateway I have to set them as text. That does not look nice at all... How would I draw a thick 'plus' for the `AND` gateway and add the same share rotated by 45° for the `XOR`? With 'thick' I mean that it is significantly thicker than the border of the shape. Also note that neither the plus nor the x actually reach the border of the surrounding shape. ![Reference showing BPMN Gateways](http://i.stack.imgur.com/mIauK.gif)


title: I wrote an article in Lyx but publishing journal wants it in TeX - Which steps do I take now?

text: I have written an article in LyX but have been requested to submit in the journals format (detailed TeX package is here) following their instructions from: http://cacm.acm.org/about-communications/author-center/author- guidelines/research-highlights-template/ Is it possible that you can give me the KISS edition of what to do with the package?


title: TexShop and pdflatexmk: "env: perl: No such file or directory "

text: on my (almost) freshly installed Mac with MacTex my TexShop cannot run the *mk scripts because of this error:               "env: perl: No such file or directory "      This is obviously a configuration issue with TexShop and perl (and shouldn't be to hard) but I can't seem to figure it out. What's wrong?


title: What font does \mathbf use?

text: I'd like to format some mathematics text with vectors using fonts consistent with the LaTeX conventions I've been using over the years. I know how to bold the text, but that doesn't change the output too much and I suspect I also have to change the font for consistency. What font does `\mathbf{x}` use? EDIT: for reference, the packages I am using are:               \usepackage{color}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{graphicx}     \usepackage{subfigure}     \usepackage{titlesec}     \usepackage{indentfirst}      but the AMS packages are probably the ones that are relevant.


title: Problem with \makebox and the unit in the dimensions

text: I want to superpose a text to some other object (in this aces a picture). My idea is to store the picture in `\mabox`, to display it with in a `\makebox` with 0 width and height, then to display the text thru a second `\makebox`, with width and height equal to those of `\mabox`. My attempt fails, because `\wd\mabox` delivers a length with unit, and `\makebox` expects a length without unit. How could i do it better?               \documentclass{article}     \usepackage{graphicx}     \usepackage{blindtext}          \begin{document}          \newsavebox\mabox     \sbox{\mabox}{\includegraphics[scale=0.10]{Pingouin}}     \makebox(0,0)[b]{\put(0,0){\usebox\mabox}}     \fbox{\makebox(\wd\mabox,\ht\mabox)[b]{\put(0,0){\parbox{\wd\mabox}{\blindtext}}}}          \end{document}


title: eledpar optional arguments in \pend

text: Currently I'm typesetting a document with facing pages. From time to time the text includes some figures, that need to be shown between the numbered paragraphs. In order to the fact that it would not be necessary to have line numbers for these figures, I put them into a `\parbox` as an optional argument to the `\pend` command. This works quite good within the document but TeX seems to have problems, if the last `\pend` also takes an optional argument. In this case I got 9 blank doublepages after the last leftsided page before the last rightsided page is printed and after that page again 9 blank doublepages appear. What is the reason for this behaviour and is there a workaround? I tried to fix it, putting the last `parbox` within a normal `\pstart \pend` section which may cause an unwanted numbering of the figure. Here is an MWE that produces this output:               \documentclass[11pt,a4paper,DIV=14,BCOR=12mm]{scrbook}     \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{typearea}     \usepackage[ngerman,latin]{babel}          \usepackage{blindtext}     \usepackage{eledmac}     \usepackage{eledpar}     \usepackage[demo]{graphicx}          \begin{document}     \begin{pages}     \begin{Leftside}     \selectlanguage{latin}     \beginnumbering     \pstart     \blindtext     \pend[{     %Notenbeispiel     \parbox[t][4,5cm][c]{\textwidth}{\begin{center}\includegraphics[width=0.4\textwidth]{bsp.png}\end{center}}     }]     \endnumbering     \end{Leftside}          \begin{Rightside}     \selectlanguage{ngerman}     \beginnumberingR     \pstart     \blindtext     \pend[{     \parbox[t][4,5cm][c]{\textwidth}{\centering\includegraphics[width=0.4\textwidth]{bsp.png}     }     }]     \endnumberingR     \end{Rightside}     \Pages     \end{pages}     \end{document}


title: Blank Space in Tex Macro Definition

text: I would like to implement a queue in the following way. A macro (variable?) `\queue` holds a string that may contain dots. Substrings separated by dots are the elements of the queue. Hence, the string "a.b.c" represents a queue with 3 elements, namely "a", "b" and "c". Then I want to define a macro that receives a queue as paramenter and return the queue without the first element. When I define it as               \def\firstout#1.#2{#2}      (without any blank spaces in the line above) or               \def\firstout #1.#2{#2}      (with one or several blank spaces between `\firstout` and `#1.#2{#2}`) it works well, that is, the following code returns "b.c" as desired:               \def\queue{a.b.c}     \expandafter\firstout\queue      But, if I define it as               \def\firstout#1.#2 {#2}      (with a blank between `\def\firstout#1.#2` and `{#2}`) or               \def\firstout #1.#2 {#2}      (with a blank after `\def\firstout` and another after `#1.#2`) then I receive the following error when I try to execute `\expandafter\firstout\queue`: > Paragraph ended before \firstout was complete. Why? What is the role of those blank spaces? If possible, please refer to some documentation also. **Note** : I am using TeXMaker on MikiTeX.


title: superscript issue in latex

text: I have 2 superscripts in 1 equation but one of these is floating higher than the other making it look messy. The code I have used is:                $\hat{\boldsymbol\beta}^T X^T$        The T is higher for the beta as the hat on top is forcing it higher: ![The two superscripts are not lined up nicely.](http://i.stack.imgur.com/okFsj.png) Is there any way of forcing the T back down to the normal superscript height? Full minimal example:               \documentclass{article}     \usepackage{amssymb,amsmath}          \begin{document}     $\hat{\boldsymbol\beta}^T X^T$     \end{document}


title: Combining Textstyle and Displaystyle

text: In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, which is the default behavior in displaystyle. The superscripts are often just a single number, and I would like them to appear as a superscript (not above the operator), which is the default behavior in textstyle. If I write something like               $$\Pr_{long subscript}\textstyle{^2}$$      I get the behavior I want, but the superscript 2 appears very far to the right because the subscript is so long. If I write instead               $$\Pr\textstyle{^2}_{long subscript}$$      the superscript looks fine, but the long subscript displays as a textstyle subscript (not underneath the operator as I would like). How can I get the long subscript to display underneath the operator and the superscript to display as a textstyle superscript immediately next to the operator?


title: LaTeX Listings Package, No Line Number for Comments

text: I am trying to get only the actual code to be line numbered rather than both code and comments. Example:               \lstset{basicstyle=\footnotesize, xleftmargin=40pt, frame =     single, numbers = left,caption = Test, label = list:Test}      \begin{lstlisting}[language = java,mathescape]     //Test comment     if( this = test)     print;     \end{lstlisting}     \vspace{2 mm}      Prints all line numbers for the comment as well. Thanks for your help.


title: Using \input vs. \scantokens in section title (with package hyperref)

text: I meet the following issue when trying to use `\scantokens` in section titles, together with the `hyperref` package (whithout this package, all is fine). `\protect\input...` can appear in a section title. But the same construction with `\scantokens` instead fails ("Second"): it appears that hyperref does not care about protection when creating a pdf string. Using `\unexpanded{\protect\scantokens{...}}` prevent expansion ("Fifth"), but if we leave out `\protect`, it crashes again ("Third"). Using two `\unexpanded` also works ("Fourth").               \documentclass{article}     \usepackage{hyperref}     \begin{document}     \tableofcontents     \section{\protect\input{data}}     % \section{\protect\scantokens{Second}}     % \section{\unexpanded{\scantokens{Third}}}     \section{\unexpanded{\unexpanded{\scantokens{Fourth}}}}     \section{\unexpanded{\protect\scantokens{Fifth}}}     \end{document}      (The file `data` only contains `First` (or whatever).) The example above compiles, but removing one of the `%` will make it fail. > Why do we need two levels of unexpansion/protection? Is there a neater way > to do this? Context: I have written a package (cprotect.dtx) that allows verbatim in the argument of most commands, by writing the argument to a file and `\input`ting it. Now, it would be nicer to use `\scantokens` rather than writing dozens of auxiliary files.


title: Automate replacement of `\not` when in `\bm` mode

text: Hendrik Vogt has provided a `\longnot` macro to alleviate the issues related to Interaction of \boldmath and \not. This seems to work fine, but I run into a snag when I try to automatically use `\longnot` instead of the usual `\not` when I am in `\bm` mode. This seemed like a very simple:               \let\not\longnot%      or               \def\not{\longnot}%      but these results in > TeX capacity exceeded, sorry [grouping levels=255] The MWE as is yields: ![enter image description here](http://i.stack.imgur.com/LAQ1u.png) When automated, the last `\subseteq` in red should be using the `\longnot` instead of `\not`. ## Code:               \documentclass{article}     \usepackage[paperwidth=7cm]{geometry}     \usepackage{parskip}% Eliminate the need for \noindent     \usepackage{bm,xcolor}          % http://tex.stackexchange.com/questions/98433/interaction-of-boldmath-and-not     \newcommand*\longnot{%       \mathrel{%         \mkern-0.75mu         \raisebox{-0.8pt}{$\not$}%         \mkern1.5mu         \raisebox{0.8pt}{$\not$}%         \mkern-0.75mu         }       }          \newcommand{\ColorRed}[1]{%         %\let\not\longnot%        Why can I NOT use one of these???         %\def\not{\longnot}%         \textcolor{red}{\bm{#1}}%     }%     \begin{document}     $\bm{A\not\subseteq B}$ versus $\bm{A\longnot\subseteq B}$     \par\smallskip     with color: \textcolor{red}{$\bm{R \longnot\subseteq T,\ x \longnot\le y$}}          Replace \verb|\not| with \verb|\longnot| when in \verb|\bm| mode:          $A \not\subseteq B$,     \ColorRed{$A \not\subseteq B$},     $A \not\subseteq B$.     \end{document}


title: Landscape figure float obscuring text

text: I am trying to insert a figure float in landscape orientation within an otherwise portrait-oriented document. The figure is inserting as it should, but for some reason it is obscuring a page of text where it is inserted. For some context: I am using LyX (v2.03) and a custom template for my school's thesis formatting requirements (available from http://cpbl.wordpress.com/2010/01/24/ubc-thesis-under-lyx-manuscript-based- thesis-under-latex/). I have two other such landscape environments in an earlier chapter within the same document (one table, one figure), and neither of them gives the same problem. The same code was used for all three to insert the landscape page. When I put the 'problem figure' in the place of the well- behaved landscape figure it seems fine, but copying the earlier figure into the same place as the 'problem figure' somehow does give the desired result with no missing text. Gradually re-introducing elements from the 'problem figure' shows that putting a reference to this figure in the text gives the problem, but I'm not sure how to fix this (the 'well behaved' figure is also referenced in the text, in the same way and the with the same placement relative to the figure, with no issues). Placing the code for the figure at the end of the preceding subsection results in all of the text being shown properly, but this means that my figure shows up before any reference to it, which is something I was told to fix for an earlier figure. Similarly, placing the code for the figure at the start of the next subsection shows all of my text and gives the reference before the figure, but means that my figure shows up much later in the text than the discussion of this figure (not necessarily fatal to this solution, but certainly not ideal either). Again comparing this to the 'well behaved' figure, the code for this one is also inserted at the end of the subsection preceding where it is referenced, but in that case the float happens to give the appropriate order of reference and figure in the final document. My question is; why am I losing this text, and why only in this case? I have tried to make a MWE, but can't get the problem to repeat. The following might at least give some idea of what packages are being used and what I am trying to do:               \documentclass[british,english]{ubcthesis}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage{graphicx}     \makeatletter     \usepackage{lipsum}     \usepackage{ifthen}     \usepackage{afterpage}     \usepackage{pdflscape}     \usepackage{float}     \usepackage[unicode=true,     linktocpage,     linkbordercolor={0.5 0.5 1},     citebordercolor={0.5 1 0.5},     linkcolor=blue,breaklinks]{hyperref}     \makeatother     \usepackage{babel}          \begin{document}     \setboolean{@twoside}{false}          \chapter{Chapter 1}          \lipsum          \afterpage{\begin{landscape}     \begin{figure}     \includegraphics{fig.eps}     \caption{a landscape figure\label{fig:a-landscape-figure}}     \end{figure}     \end{landscape}     }          \lipsum     \ref{fig:a-landscape-figure}     \lipsum          \chapter{Chapter 2}          \lipsum          \afterpage{\begin{landscape}     \begin{figure}     \includegraphics{fig.eps}     \caption{another landscape figure\label{fig:another-landscape-figure}}     \end{figure}     \end{landscape}     }          \lipsum     \ref{fig:another-landscape-figure}     \lipsum     \end{document}


title: How can I add text to an inline tikz pickture

text: I am drawing some icons in latex with tikz picture and right below my icon, I would like to add text like "EXIT" start from position (0,0):               \tikz[baseline=-0.5ex] {\draw[line width=3pt] (1,1.2)--(1,1)--(0,1)--(0,2)--(1,2)--(1,1.7); \draw[->, line width=1.5pt] (0.7,1.5)--(1.2,1.5)}      How can I do that without using nodes? I am not very comfortable with nodes.


title: What's the best way to reference examples?

text: I am writing a programming book on AWK in Latex and I have hundreds of code examples, for example,               awk '1; { print "" }'      I am curious how can I reference the example later in the book. At the current stage it's example #3, but if I add one before it, I'd like the numbering to update automatically, and I'd also like to make a clickable link in the final pdf, that would bring the user to the example. Thanks!


title: Acronyms and new glossary are not shown in \printglossary

text: I am using the following example in order to set up a memoir-file. The example is taken from: http://www.latex-community.org/forum/viewtopic.php?f=4&t=9423. While this seems to work for the people in the thread my .glo-file does only contain entries from definitions stemming from these commands.               \newglossaryentry{culdesac}{name=cul-de-sac,description={passage     or street closed at one end},plural=culs-de-sac}      Symbols and acronyms are not part of my Glossary-file somehow. How would it be possible to fix that? Moreover, is it possible to create a glossary without using the glossaries- package? I am using texMaker on a Mac OS X-system. Help would be much appreciated. Thanks in advance.               \documentclass[10pt]{memoir}               \usepackage[acronym,toc]{glossaries}     %%%%%%%%%%%%%%%%%%%%%%%%%%%     \newglossary[slg]{symbols}{sym}{sbl}{List of Symbols}          \makeglossaries          % The following definitions will go in the main glossary          \newglossaryentry{culdesac}{name=cul-de-sac,description={passage     or street closed at one end},plural=culs-de-sac}          \newglossaryentry{elite}{name={\'e}lite,description={select     group or class},sort=elite}          \newglossaryentry{elitism}{name={\'e}litism,description={advocacy     of dominance by an \gls{elite}},sort=elitism}          \newglossaryentry{attache}{name=attach\'e,     description={person with special diplomatic responsibilities}}          % The following definitions will go in the list of acronyms          \newacronym{led}{LED}{light-emitting diode}          \newacronym{eeprom}{EEPROM}{electrically erasable programmable     read-only memory}          % The following definitions will go in the list of symbols          \newglossaryentry{ohm}{type=symbols,name=ohm,     symbol={\ensuremath{\Omega}},     description=unit of electrical resistance}          \newglossaryentry{angstrom}{type=symbols,name={\aa}ngstr\"om,     symbol={\AA},sort=angstrom,     description={non-SI unit of length}}          \begin{document}          \glsaddall          \printglossary           \end{document}


title: How to disable inline preview in certain parts of document while editing?

text: I'm using AUCTeX+emacs, and have inline preview enabled (although it could apply to other preview enabled editor like TeXstudio). My document has a TiKZ plot generated using `gnuplot`, and it has lots of items (drawn lines). When generating inline preview in AUCTeX, the computer had a big swap thrashing as soon as it comes to the part with the figure plot. I don't need preview for the plot, as it won't display correctly anyway as a dvi output. So I want to disable preview only for this part. I confirmed that enclosing the figure with a `nopreview` environment will disable inline preview, but then it spouts out error when compiling normally. **Question:** What is the right way to disable preview on parts of the document?


title: How do I format titles that are smaller than \chapter title?

text: So I am writing a book on AWK, and the first \chapter is called "Line Spacing". In this chapter I a dozen of various line spacing methods, such as               1. Double-space a file.     2. Triple-space a file,     etc.      I am wondering how can I apply formatting to these methods so that each one of them looked like sub-title (smaller text, bold and numbered)? Here is what I mean, so I have a \chapter called "Line Spacing" and then I wish "1. Double-space a file." to be also in bold but smaller font so it looks like a sub-title, # Chapter 1: Line Spacing ... intro about what line spacing is ... ## 1. Double-space a file.               awk '1; { print "" }'      . . .


title: print hour & minutes in french style

text: I'm using `babel`, `datetime` & `siunitx` but I don't see an automatic way to mark and to write time in the french style. It's possible with plain hour with `datetime`: `SI{18}{\hour}` -> `18 h`. But for hours & minutes, I don't if exists something better than `14~h~27` -> `14 h 27`. An idea ?


title: XIV pages in page counts?

text: Is it possible to make biblatex output page counts for both the regular pages and the roman-numbered pages, for example: > Cook, Theodore Andrea. The Curves of Life : Being an Account of Spiral > Formations and Their Application to Growth in Nature, to Science and to Art; > with Special Reference to the Manuscripts of Leonardo da Vinci. — London : > Constable and Company, 1914. — xxx + 479 p. Here there are "30 pages + 478 pages" in total. Thanks!


title: No space after closing double quote

text: As the title says, there's no spacing after my closing quotes, I have boiled my huge preamble down to the following,               % Manual: http://ctan.org/tex-archive/macros/latex/contrib/memoir/memman.pdf     \documentclass[a4paper,oneside,article]{memoir}          \usepackage[utf8]{inputenc}     \usepackage[danish]{babel}     \usepackage[T1]{fontenc}     \usepackage{lmodern}          \begin{document}     Hello "I AM A" DUMMY SENTENCE     \end{document}      Which renders to               Hello "I AM A"DUMMY SENTENCE      And I would really like it to become               Hello "I AM A" DUMMY SENTENCE      I'm using the MikTex package for windows and my editor is TexMaker. I looked at the Spacing after closing double quotes in XeLaTeX but I don't think the solution applies since I don't think I'm loading any CJK packages.


title: How to put an angle on a specific point?

text: I would like to, for example, make an triangle with one angle of 50 degrees and the adjacent segments of 4cm, so I can do that with the following code:               \begin{pspicture}(0,0)(6,5)     \pstTriangle(0,0){a}(4;50){b}(4,0){c}     \end{pspicture}      But how can I do that if i want the triangle to start on point (1,0) for example? The following code will cause the BÂC angle (witch I want to have 50 degrees) to have more than 50 degrees, and the segment AC to have 3cm instead of 4cm, because the angle will be on (0,0) and not on (1,0) where the point A is!               \begin{pspicture}(0,0)(6,5)     \pstTriangle(1,0){a}(4;50){b}(4,0){c}     \end{pspicture}      So how can I make the angle be on the right place? I hope I was clear!


title: Parametric plot using pgfplots package

text: I want to make a parametric plot using pgfplot in LaTex. My equations are `\rho= K (sinh t-t)`   `P= 1/3 K (sinh t - 8 sinh (1/2) t +3t)` with `K=1\pi` I have written the LaTex code for equations , now please help me plot the graph               \documentclass[12pt,a4paper]{article}     \usepackage[a4paper, total={6in, 8in}]{geometry}         \usepackage[utf8]{inputenc}         \usepackage[T1]{fontenc}         \usepackage{fourier}         \usepackage{mathtools}     \usepackage{amsmath}     \usepackage[english]{babel}     \usepackage{graphicx}     \usepackage{marginnote}     \begin {document}          \underline {Chandrashekhar EOS (1935)} : \\     \begin{align*}     \overline \rho &= K ~\Big( \sinh ~t ~- ~t\Big)\\     \overline P &= \frac {1}{3} K ~ \Big(\sinh~t -~ 8~ \sinh \frac {1}{2} t  +~ 3t\Big)\\      K &= \frac {1}{4\pi}\\     \end {align*}     \end {document}


title: Creating PDF bookmarks in custom order

text: I use `hyperref` to create clickable PDF files. I have sections and subsections and they are all nicely in the PDF bookmarks. Now there are certain items in my document that I want to appear in the bookmarks but not within the hierarchy of the sections, because this is rather like a short glossary. Like the most important theorems in alphabetical order. I know I can create custom bookmarks using `\pdfbookmark`. They appear and clicking them puts me to the right page but they appear right where their page number puts them in the order of sections.   1. How can I decide where the bookmark appears? I would like to have them below the regular ones and ordered alphabetically (I can do the ordering myself once I know how to assign positions).   2. Ideally even: create a dummy bookmark called "glossary" where clicking does nothing but which has all the ones mentioned above hierarchically below it, so one is not overwhelmed by the number of bookmarks when one first opens the document.   3. And even further: I usually use `hyperref` with option `bookmarksopen=true`, is it possible in my new scenario, to have all the regular bookmarks open, but the glossary one closed? that would be the dream state for my document.


title: bracket covering only a part of a matrix

text: How can I write a matrix, with brackets that cover only rows/columns in a certain range, but still has the right indentation? What I would like: ![enter image description here](http://i.stack.imgur.com/eELh6.jpg) My current solution:               \[     \overset{     \begin{array}{lrccccc}         \hspace{-8mm}x_1 & \hspace{6mm} x_2 & \hspace{3mm} \cdot & \hspace{0mm} \cdot & \hspace{0mm} \cdot & \hspace{2mm} x_n &     \end{array}}     {\left[\hspace{-2mm}     \begin{array}{ccccccc}         a_{11}    & a_{12}    & \cdot & \cdot & \cdot & a_{1n}    &  b_1 \\         a_{21}    & a_{22}    & \cdot & \cdot & \cdot & a_{2n}    &  b_2 \\         \cdot     & \cdot     & \cdot & \cdot & \cdot & \cdot     & \cdot \\         \cdot     & \cdot     & \cdot & \cdot & \cdot & \cdot     & \cdot \\         \cdot     & \cdot     & \cdot & \cdot & \cdot & \cdot     & \cdot \\         a_{r1}    & a_{r2}    & \cdot & \cdot & \cdot & a_{rn}    &  b_r \\         a_{r+1,1} & a_{r+1,2} & \cdot & \cdot & \cdot & a_{r+1,n} &  b_{r+1} \\         \cdot     & \cdot     & \cdot & \cdot & \cdot & \cdot     & \cdot \\         \cdot     & \cdot     & \cdot & \cdot & \cdot & \cdot     & \cdot \\         \cdot     & \cdot     & \cdot & \cdot & \cdot & \cdot     & \cdot \\         a_{m1}    & a_{m2}    & \cdot & \cdot & \cdot & a_{mn}    &  b_m     \end{array}\hspace{-2mm}\right]}     \;\overset{\mbox{\large $\mathcal E$}}{\mbox{\Large $\sim $}}\;     \overset{     \begin{array}{lccccccccccc}         \hspace{-8mm}x'_1 & x'_2 & \hspace{1.5mm} x'_3 & \hspace{1mm} x'_4 & \hspace{2mm}\cdot & \hspace{0.5mm}\cdot & \hspace{4.7mm}\cdot & \hspace{4.mm} \cdot & \cdot & \cdot & \hspace{1.2mm} x'_n &     \end{array}}     {\left[\hspace{-1.5mm}     \begin{array}{lccccccccccc}          1    & a'_{12} & a'_{13} & a'_{14} & \cdot & \cdot & \cdot     & \cdot & \cdot & \cdot & a'_{1n} & b'_1 \\          0    &    1    & a'_{23} & a'_{24} & \cdot & \cdot & \cdot     & \cdot & \cdot & \cdot & a'_{2n} & b'_2 \\         \cdot &\cdot    & \cdot   & \cdot   & \cdot & \cdot & \cdot     & \cdot & \cdot & \cdot & \cdot   & \cdot \\         \cdot &\cdot    & \cdot   & \cdot   & \cdot & \cdot & \cdot     & \cdot & \cdot & \cdot & \cdot   & \cdot \\         \cdot &\cdot    & \cdot   & \cdot   & \cdot & \cdot & \cdot     & \cdot & \cdot & \cdot & \cdot   & \cdot \\         0     &\cdot    & \cdot   & \cdot   & 0     & 1     & a'_{r,r+1}& \cdot & \cdot & \cdot & a'_{r,n}& b'_r \\         0     &\cdot    & \cdot   & \cdot   & 0     & 0     & 0         & \cdot & \cdot & \cdot & 0       & b'_{r+1} \\         0     &\cdot    & \cdot   & \cdot   & 0     & 0     & 0         & \cdot & \cdot & \cdot & 0       & \cdot \\         0     &\cdot    & \cdot   & \cdot   & 0     & 0     & 0         & \cdot & \cdot & \cdot & 0       & \cdot \\         0     &\cdot    & \cdot   & \cdot   & 0     & 0     & 0         & \cdot & \cdot & \cdot & 0       & \cdot \\         0     &\cdot    & \cdot   & \cdot   & 0     & 0     & 0         & \cdot & \cdot & \cdot & 0       & b'_m     \end{array}\hspace{-2mm}\right]}     \]      I'm looking for less clumsy, more automatic solutions, that don't require the user to manually adjust the indentation (centering).


title: Modify default memoir chapter style

text: I'm using `memoir` and using its default chapter style. what I'm looking to do is to change the format from > chapter 1 > > chapter title to something like this: > chapter 1: chapter title I'm new to LaTeX and I've been struggling with this all day reading manual and searching the net EDIT: I forgot to mention that I would like the title to be centered as well


title: Beamer frames show a white line on top

text: I want to make a presentation with the `beamer` class. However, there appears an annoying white horizontal line on top of all pages except the first one. The line thickness is only about 1mm, but it looks ugly anyway. The bug can be seen in this short example:               \documentclass{beamer}          \RequirePackage{type1cm} % font          \useoutertheme{miniframes} % colored top to show the white line     \useinnertheme{default}      \usecolortheme{albatross} % dark color to show the white line             \begin{document}          \begin{frame} % no white line       \titlepage     \end{frame}          \section{section1} % white line     \begin{frame}{test}       test     \end{frame}          \section{section2} % white line     \begin{frame}{test2}       test2     \end{frame}          \end{document}      I would like to remove this white line.


title: How to run gnuplot/latex from inside texshop?

text: I was able to write a piece of code that drew a graph in `gnuplot` and then using `tikz` embedded that into my TeX document and run it via `Texshop`. I am not able to do that anymore. I need to run               pdflatex --shell-escape foo.tex      For my graphs to appear properly. Is there some setting I can enable in `TexShop` so I don't have to do this. I mean I want to be able to just hit type set from inside `TexShop` to do this. As I understand they have done away with the `\--shell-escape` flag in `TexShop` because of security vulnerabilities. Can anyone help?


title: Enumeration and Label issue with 'List of Equations / Table of Equations'

text: I finally managed to include a "List of Equations" in my LaTeX-Template. I use the Example from Lev Bishop here on Stackexchange . The code looks like this:               \documentclass[english]{article}     \setcounter{secnumdepth}{2}     \setcounter{tocdepth}{2}          \usepackage{amsmath}     \usepackage[unicode=true, pdfusetitle,  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,  breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref}           \makeatletter     \numberwithin{equation}{section}           % we use this for our refernces as well     \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}          % redefinition of \equation for convenience     \let\oldequation = \equation     \let\endoldequation = \endequation     \AtBeginDocument{\let\oldlabel = \label}% \AtBeginDocument because hyperref redefines \label     \newcommand{\mynewlabel}[1]{\myequations{#1}\oldlabel{#1}}     \renewenvironment{equation}{%     \oldequation     \let\label\mynewlabel     }{\endoldequation}          % try to make a List of Equations,     % error is most likely in the @currentlabelname above     \usepackage{tocloft}     \newcommand{\listequationsname}{List of Equations}     \newlistof{myequations}{equ}{\listequationsname}     \newcommand{\myequations}[1]{%     \addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}}     \setlength{\cftmyequationsnumwidth}{3em}          \makeatother          \begin{document}     \tableofcontents{}     \listofmyequations          \section{Brushless Motor Fundamentals}     \subsubsection{DC Motor Operation} Torque is generated in DC motors from the magnetic force, also known as the Lorentz force, which is produced when an electric current is passed through a coil in a magnetic field. This force is given by \ref{eq:Force}.          \begin{equation}      F=q[E+(v\times B)]     \label{eq:Force}     \end{equation}          where F is the force perpendicular to the coil, E is the electric field in the coil, v is the velocity of the charged particles in the coil, and B is the magnetic field. From mechanics, torque is            \begin{equation}     \tau=F\times r\label{eq:Torque}\end{equation}     If the electrical force in \ref{eq:Force} is ignored, and the remaining magnetic force is used in \ref{eq:Torque}, with the assumption that v is perpendicular to B, we find that     \begin{equation}     \tau=qvBrsin\theta     \label{eq:Magnetic}\end{equation}          \end{document}       But it still does not fit my problem perfectly: I do use Chapter Enumerations up to 3-4 Sublevels, like this:   1. Chapter 1.1 Subchapter 1.1.1 Subsubchapter etc. Unfortunately in this case, my Equations do get the same enumeration. So any equations in Chapter 1.1.1 are numbered (1.1.1.1), (1.1.1.2), (1.1.1.x) etc.. I'd prefer an enumeration, that only counts within the Chapter: (1.1), (1.2), (1.x), etc.. No matter what subchapter I am in. Anyone knows how to do that? Unfortunately I'm already a little overwhelmed by the used code for a List of Equations.


title: Emacs: using emacsclient

text: I always set up emacs running in server mode, and every time I update Ubuntu, the procedure to do this changes. Even though I have all the same setting in my `/.bash_aliases` and `/.emacs`, it will not work. I have emacs 24.3.x (whatever the most recent version is), I have AUCTeX cvs, and TeX Live 2013 installed. In my `./bash_aliases`, I have               emacs = 'emacsclient -t --alternate-editor='      The relevant information in my `/.emacs` is               ;; Start server and set directory                                                    (setq server-socket-dir (format "/tmp/emacs%d" (user-uid)))     (server-start)          (custom-set-variables      '(TeX-PDF-mode t)      '(TeX-show-compilation t)      '(TeX-newline-function (quote newline-and-indent))      '(TeX-source-correlate-method (quote synctex))      '(TeX-source-correlate-mode t)      '(TeX-source-correlate-start-server t))      Problems only occur opening LaTeX files. Sometimes it says another server is running and other times it says:               dustin@dustin:~/Documents/NUPOC/NUPOCSoln$ emacs SolnNUPOC.tex      emacsclient.emacs24: can't find socket; have you started the server?     To start the server in Emacs, type "M-x server-start".     Warning: due to a long standing Gtk+ bug     http://bugzilla.gnome.org/show_bug.cgi?id=85715     Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.     Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.     ("emacs")     Loading 00debian-vars...     Loading 00debian-vars...done     Loading /etc/emacs/site-start.d/50autoconf.el (source)...     Loading /etc/emacs/site-start.d/50autoconf.el (source)...done     Loading /etc/emacs/site-start.d/50cmake-data.el (source)...     Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done     Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...     Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...     Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alist     Loading paren...     Loading paren...done     Warning: no abbrev-file found, customize `abbrev-file-name' in order to make mode-specific abbrevs work.      Starting Emacs daemon.     Restarting server      I read in the manual a footnote that: * * * Some programs use a different environment variable; for example, to make TeX use ‘emacsclient’, set the TEXEDIT environment variable to ‘emacsclient +%d %s’. * * * There is no mention (that I can find) on where and how to set the TEXEDIT environment.   1. How do I set the TEXEDIT environment? or   2. How can I set up emacsclient to work? **This set up worked prior to having to re-install everything.**


title: Update Mac binaries on Ubuntu server with tlmgr (TeX Live 2011)

text: How can I update the Mac binaries of a TeX Live installation on a Ubuntu server? The setup is the following:   * I have a headless Ubuntu 11.10 server running on which I have installed TeX Live 2011. More specifically, I have installed the Linux (`x86_64-linux`), Mac (`x86_64-darwin`) and Windows (`win32`) binaries.   * I can access the server via `ssh` from my local network.   * I want to update the Mac part of the distribution. I can update the Linux binaries without hassle, as I am naturally able to execute the `tlmgr` within the `x86_64-linux` folder. If I connect to the server via `ssh` and try to run `tlmgr` from the `x86_64-darwin` directory I get an error, of course, because it is built for the wrong architecture. If I run “TeX Live Utility” from the MacTeX package (with paths accordingly set), the GUI shows me “Listing failed” and the log file reads               2012-01-24 12:12:15 +0000 Notice -[TLMOperation main][355]     tlmgr: Initialization failed (in setup_unix_one):     tlmgr: could not find a usable wget.     tlmgr: Please install wget and try again.     tlmgr: Initialization failed (in setup_unix_one):     tlmgr: could not find a usable xzdec.     tlmgr: Please install xzdec and try again.     Couldn't set up the necessary programs.     Installation of packages is not supported.     Please report to texlive@tug.org.      How can I get `tlmgr` to work correctly?


title: Inconsistent size of a block causes 2 blocks to be misaligned

text: I'm creating a presentation using beamer and I've detected a slight size inconsistency of a block located in a second column or minipage. I want to align two blocks with the same amount of bullets and lines using columns or minipage (actually both produce the same result), but the title bar of right block is bigger than the left one. This causes the blocks to be slightly misaligned. The theme I want to use is marburg, with the rose theme color. Here I provide a picture showing the phenomenon and the MWE code. ![Blocks misaligned](http://i.stack.imgur.com/lppqo.png)               \documentclass[serif]{beamer}          \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage[spanish]{babel}     \usepackage{mathpazo}     \linespread{1.05}      \setbeamertemplate{navigation symbols}{}      \usetheme[hideallsubsections,left,width=2cm]{Marburg}          \usecolortheme{rose}      \setbeamercolor{titlelike}{bg=structure,fg=white}          \begin{document}     \section{Lorem Ipsum}          \begin{frame}     \begin{minipage}{0.45\textwidth}         \begin{block}{\hfill Razones}              \begin{itemize}         \item Reducción del torque resistente.          \item Daños en la fuente original         \end{itemize}         \end{block}          \end{minipage}     \hfil     \begin{minipage}{0.45\textwidth}         \begin{exampleblock}{\hfill Expectativa}          \begin{itemize}         \item Reducción de canales de alimentación.         \item Tensión de alimentación estable.         \end{itemize}         \end{exampleblock}          \end{minipage}     \end{frame}          \end{document}      Any suggestions? Thanks in advance, Charlie


title: An Example from the Microtype Documentation

text: While exploring the depths of the microtype package with regard to LuaTeX I came across this innocent looking page 18 from the microtype.pdf 2.5 beta-08. ![enter image description here](http://i.stack.imgur.com/6pGlK.png) As the blue note in the margins hints a mouse click reveals the kerns and spacings ![enter image description here](http://i.stack.imgur.com/mf5ky.png) The final surprise comes be clicking on the words in the text. ![enter image description here](http://i.stack.imgur.com/HJY4M.png) Which is really neat! Of course, I want to know how it is done. As it is the official package documentation I immediately went for the dtx. However it does not give away its magic so easily. The relevant part in the dtx is:               \begin{verbatim}     \SetTracking       [ no ligatures  = {"\anchorarrow{nolig}"f},         spacing       = {60"\anchorarrow{ispace}"0*,-1"\anchorarrow{istretch}"00*,"\anchorarrow{ishrink}"},         outer spacing = {4"\anchorarrow{ospace}"50,2"\anchorarrow{ostretch}"50,1"anchorarrow{oshrink}"50},         outer kerning = {"\anchorarrow{okernbegin}"*,"\anchorarrow{okernend}"*} ]       { encoding = * }       { 1"\anchorarrow{lsamount}"60 }     \end{verbatim}      and then write:     \begin{verbatim}     Stop \textls{stealing sheep}!     \end{verbatim}          this is the (typographically dubious) outcome:          \lssample          \noindent     While the word `Stop' is not letterspaced, the space between the letters in     the other two words is expanded by the \showarrow[tracking]{tracking~amount}{red}     of 160/1000\,em\,=\allowbreak\,0.16\,em.      The definitions of the macros are of course not to be found. Instead a “bonus material” section in the preamble shows that               \InputIfFileExists{microtype-lssample.dtx}      it is in another file, unfortunately not included in the .zip. So the questions is still open. How is this achieved. The macros in the dtx hint that a general solution is at work here. I would suspected some Tikz overlay magic at work here. But as the positions are not determined until after the page is typeset the arrows must somehow come afterwards. And then how is the information passed on to the pdf viewer that they can be toggled by clicking on the words? * * * EDIT: Following Martin Schröder’s pointer I have learned, that the PDF Format since version 1.5 supports “layers” here called Optional Content Groups (OCG). In an older thread (2007) on comp.text.tex Michael Ritzert offered his `ocg.sty` for creating them in LaTeX directly. There is even a nice demonstration on TeXample that shows that the toggling is achieved by bits of JavaScript executed by Acrobat Reader. There is also a fairly recent package `ocgtools`. The question that remains is how to get the anchors in the page and let the arrows cris-cross over the typesetted material?


title: How to define macro that only makes argument substitution?

text: I am having some problems when I define a macro whose content has the `lstlisting` environment. For example, (assume `!` is the escape char inside the `lstlisting` environment)               \def\mycode#1{         \begin{lstlisting}         class Person {             private int !{\bf #1}!;             int getAge(){                 return !#1!;             }         }         \end{lstlisting}     }      When I use `\mycode{age}` I get an error. Is there any way to fix this (note that I've tried `lrbox` environment but without success)? What I really want is some macro definition stuff that simply replaces the arguments in the text and copies the resulting content to where the macro is called. That is, where the following line appeared               \mycode{age}      LaTeX would replace it by                  \begin{lstlisting}         class Person {             private int !{\bf age}!;             int getAge(){                 return age;             }         }         \end{lstlisting}      and start processing of `\begin{lstlisting} ... \end{lstlisting}`. This should be simple, but unfortunately it seems too complicated (at least for me).


title: How to convert SGML to (La)Tex

text: I find a great open source book -- _Advanced Bash-Scripting Guide_ , which has been published online in various formats but LaTex. Although it comes with an compiled PDF version, I prefer to compile myself from Tex file, in part because that PDF is really no-so-well formatted (at least, not Tex style). A seemingly workable way is **SGML to Tex** , can you guys suggest some tools to accomplish this conversion?


title: Script to extract and copy from LaTeX files

text: I have a large LaTeX document, one main and a lot of `\input{file}` for each chapter. For each of these files I would like to copy them and only keep the Theorems, in other words I'd like to extract and copy from `\begin{theorem}` to `\end{theorem}` only, or to comment out every thing that's not a theorem. I was hoping to run a python script for that. Has anyone done that (or seen it done) before? Any help is appreciated.


title: Conflict between texMemo.cls and isodate.sty?

text: This compiles properly:               \documentclass{article}     \usepackage[english,cleanlook]{isodate}          \begin{document}          \title{ISO package test}     \author{me}     \date{\today}          \maketitle          \end{document}      But this does not:               \documentclass{texMemo}     \usepackage[english,cleanlook]{isodate}          \memoto{you}     \memofrom{me}     \memodate{\today}     \memosubject{ISO package test}          \begin{document}          \maketitle          \end{document}      Since the document class is the only difference, I'm inferring that there's a conflict between the class and the `isodate` package. What is the conflict, and how, if at all, can I resolve it? Miscellaneous notes:   * The `texMemo` class is available here if you don't have it.   * I don't actually know how to diagnose package/class conflicts, so anything you tell me here is going to be new information.


title: How to remove unwanted header?

text: I've made a page of my book for the conclusion, is only one page so I don't want to make a true chapter for it because is only one page so I've used `\chapter*{}`. The problem is that the next page header has the header of the previous chapter so it seems a part of the previous chapter. I've made a MWE if you notice page 4 has the header of the Chapter 1. How can I fix it? How can I remove this wrong header?               \documentclass[12pt,a4paper]{book}     \usepackage{graphicx}     \usepackage[utf8]{inputenc}     \usepackage{lipsum}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \author{G M}     \title{How to remove unwanted heading?}      \begin{document}     \chapter[THIS IS THE FIRST CHAPTER NOT THE CONLCUSION]{Test}     \lipsum[3-10]     \chapter*{Conclusion}     \lipsum[10-20]     \end{document}


title: How do I stack two figures on top of each other, rather than side to side?

text: I'd like my figures to be one on top of the other, rather than next to each other, so that they are larger and spread along the page width. How do I do this? Here is my code:               \begin{figure}[H]     \centering        \begin{subfigure}[b]{0.3\textwidth}        \includegraphics[width=0.8\textwidth]{Nvariousg1}        \caption{}        \label{fig:Ng1}      \end{subfigure}     \begin{subfigure}[b]{0.3\textwidth}        \includegraphics[width=0.8\textwidth]{Nvariousg2}        \caption{}        \label{fig:Ng2}     \end{subfigure}     \caption{(a) Numerical solutions for the small-time system with a constant-curvature body shape showing the scaled leading-order veritcal reaction force $N_0$ versus the scaled body mass $M$ for various values of $g$. Again, $I=M$ for definiteness and $A=0.7$. (b) As for (a) but over a wider range of values of $M,I$.}     \end{figure}


title: Elementary question about new environment

text: I want to create new environment without a "closing argument". For example,               \MakeLowercase{\textsc{MAKE LOWERcase textsc}}      to have all text in small caps independently from upper- or lowercase inside the text. How can I create such an environment?


title: Command that changes its definition the nth time it's used

text: I need a command to behave differently the first time than the next times it's called. Right now I use `\newcommand\foo{First\gdef\foo{Next}}`, that is, it redefines itself the first time. Moreover, I need to “reset” its meaning at some point, so I define `\newcommand\resetfoo{\gdef\foo{First\gdef\foo{Next}}}`. But this seems to me rather difficult. May be there is an usual way of doing this, but I'm not aware of it (also, I know almost nothing about _expansion_ ). Which is the correct way of solving this kind of problem? ### Question As the question states, I need a more general way: some function to change its definition in its _n_ th “expansion” (I'm not sure I'm using the word in the right place). How would you solve this problem? I also need the necessary `\resetfoo`. In case it's not already done in some way, my idea is to have some command `\changedefinitionafter\foo{3}{OneTwoThree}{Next}` or something like that. `expl3` solution is also welcome. Here is a more general MWE.               \documentclass{scrartcl}          \newcommand\foo{First\gdef\foo{Next}}     \newcommand\resetfoo{\gdef\foo{First\gdef\foo{Next}}}          \begin{document}          \foo~\foo~\foo     \resetfoo~\foo~\foo          \end{document}      Also, tags and suggestions for the title of the question are welcome.


title: Figure in Revtex4

text: I'm using MiKTeX2.9 for writing paper:               \documentclass[twocolumn,aps,showpacs,prl,superscriptaddress]{revtex4}     ....     \usepackage{epsfig}     \usepackage{graphicx}      and I'm trying to place an eps figure left, so that the matching second column contains text. If I use:               \begin{widetext}     .....     \end{widetext}      I get blank matching right hand side. When using:               \begin{figure*}     \begin{minipage}{\textwidth}     \begin{flushleft}     \epsfig{file=figure1.eps,width=0.4\textwidth}     \caption{mycaption}     \label{fig1}     \end{flushleft}     \end{minipage}     \end{figure*}      I get figure flush left, but centered label, and no text in matching second column. Also, having problem with floating,i.e. placing figure on the right spot. Help, please.


title: How to pass figure position to keyval macro?

text: I want to wrap a macro around figure-env to make my document more readable. Here is minimal example of how it is now:               \documentclass[10pt,a4paper]{article}     \usepackage{keyval}          \makeatletter          \define@key{image}{pos}{\def\i@pos{#1}} % define key-val     \setkeys{image}{pos=!htbp} % set default     \newcommand{\image}[2][]{%       \begingroup%       \setkeys{image}{#1}% set passed key-vals       \begin{figure}[\i@pos] % use positon         \centerline{\includegraphics[width=\textwidth]{#2}}       \end{figure}       \endgroup%}          \makeatother     \begin{document}     \end{document}      but it seems that the default position `!htbp` is not set, because if i set it directly in `\begin{figure}[!htbp]` it works perfectly fine and the images are positioned correctly. **Edit:** I added `\begin{document}` and `\end{document}` as suggested in the comments to make it compileable. I appreciate you help.


title: Changing style of "Proof of..."

text: In reference to the answer in How to place all proofs automatically in appendix? I would like to change the style of "Proof of..." (proofs put in the end) to bold faces for instance, but I don't want to change the style of the other proofs along the text. How can I achieve that?               \documentclass[a4paper]{article}     \usepackage{etex,etoolbox}     \usepackage{amsthm,amssymb}     \usepackage{thmtools}     %\usepackage{environ}     \usepackage{indentfirst}     \usepackage{amsmath,amscd}     \usepackage{mathrsfs}     \usepackage{ulem}     \usepackage{bbm}     \usepackage{amsfonts}     \usepackage{hyperref}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{setspace}     \usepackage{color}     \usepackage[nameinlink]{cleveref}      \crefname{ineq}{inequality}{inequalities}     \creflabelformat{ineq}{#2{\upshape(#1)}#3}     \usepackage{enumitem} % do away with indentation on my lists     \crefname{lem}{Lemma}{Lemmas}     \crefname{prop}{Proposition}{Propositions}     \crefname{thm}{Theorem}{Theorems}     \crefname{cor}{Corollary}{Corollaries}     \crefname{ass}{Assumption}{Assumptions}     \crefname{df}{Definiton}{Definitons}               \makeatletter     \providecommand{\@fourthoffour}[4]{#4}     % We define an addition for the theorem-like environments; when     % \newtheorem{thm}{Theorem} is declared, the macro \thm expands     % to {...}{...}{...}{Theorem} and with \@fourthoffour we access     % to it; then we make available \@currentlabel (the theorem number)     % also outside the environment.       \def\fixstatement#1{%       \AtEndEnvironment{#1}{%         \xdef\pat@label{\expandafter\expandafter\expandafter           \@fourthoffour\csname#1\endcsname\space\@currentlabel}}}          % We allocate a block of 1000 token registers; in this way \prooftoks     % is 1000 and we can access the following registers of the block by     % \prooftoks+n (0<n<1000); we'll use a dedicated counter for it     % that is stepped at every proof     \globtoksblk\prooftoks{1000}     \newcounter{proofcount}          % We gather the contents of the proof as argument to \proofatend     % and then we store     % "\begin{proof}[Proof of <theoremname> <theoremnumber>]#1\end{proof}"     % in the next token register of the allocated block     \long\def\proofatend#1\endproofatend{%     \edef\next{\noexpand\begin{proof}[Proof of \pat@label]}%     \toks\numexpr\prooftoks+\value{proofcount}\relax=\expandafter{\next#1\end{proof}}     \stepcounter{proofcount}}          % \printproofs simply loops over the used token registers of the     % block, freeing their contents     \def\printproofs{%     \count@=\z@     \loop     \the\toks\numexpr\prooftoks+\count@\relax     \ifnum\count@<\value{proofcount}%     \advance\count@\@ne     \repeat}     \makeatother          % Here starts the example, with two theorem declarations         \newtheorem{thm}{Theorem}     \newtheorem{lem}[thm]{Lemma}     \fixstatement{thm}     \fixstatement{lem}               \begin{document}          \newtheorem{definition}{Definition}     \newtheorem{cor}[definition]{Corollary}          \begin{proof}[Proof of \cref{addition}]     (state your proof here)     \end{proof}          \begin{lem}\label{addition}     $1+1=2$     \end{lem}     \proofatend     It's quite clear.     \endproofatend          \begin{thm}     $1+2=3$     \end{thm}     \proofatend     Obvious from lemma \cref{addition}.     \endproofatend          \begin{cor}     $1+2=3$     \end{cor}          \appendix     \section[Proof of the Fundamental Theorem of Algebra]     {Proof of \cref{addition}}     \begin{proof}     Assume...     \end{proof}          \section*{Proofs}          \printproofs               \end{document}      PS.: There are too many packages being loaded because I want to make sure there are no conflicts with packages I'm using.


title: Acknowledgements footnote

text: I am trying to get a * instead of an arabic numeral for my acknowledgements footnote. I am using the template that the conference organizers provided and for some reason neither `\author` nor `\thanks` seem to work. I have tried the following but it changes all the footnotes from numerals to symbols (and I only want the first one to be an *).               \renewcommand*{\thefootnote}{\fnsymbol{footnote}}      I have also tried using `footmisc` with the `symbol*` option but I run into the same problem. Many thanks.


title: To write this norm equation better?

text: I have this norm               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{equation}     \lVert f \rVert_{L_{2}(\Omega)} = \text{sup}_{     \begin{cases}      v \in L_{2}(\Omega) \\     v \not= 0     \end{cases}     }     \frac{|(f,v)|} {\lVert v \rVert_{L_{2}(\Omega)}}     \end{equation}     \end{document}      which looks like ![enter image description here](http://i.stack.imgur.com/3lBhV.png) In the Johnson book about Finite Element methods the regulations are under the suprenum. However, I am not sure if this is the best way to present this. **How can you write this equation rigorously?**


title: Align summation symbols inside an align environment

text: I have the following piece of code:               \documentclass[]{article}     \usepackage{amssymb}     \usepackage{mathtools}     \usepackage{amsfonts}     \begin{document}     \begin{align*}     A      &=                      \sum\limits_{X \subseteq V}                      \sum\limits_{W \subseteq V^{\ast}(X)}                      \left| \mathcal{L} \left( X, W' \right) \right| \left|X'\right| \\            &\leq                      \sum\limits_{X \subseteq V}                      \sum\limits_{W \subseteq X'}                      \left| \mathcal{L} \left( X, W' \right) \right|\left|X'\right|,      \end{align*}     \end{document}      which looks like this ![align the sigmas!](http://i.stack.imgur.com/2JedN.png) What I'd like to do is this: without changing the first line at all, align both the second sigmas and the arguments inside them. Any ideas?


title: baposter headerbox title exceeds line in title and gets cropped

text: I have a three column poster and I need to have a certain headerbox with a title that spans over multiple lines. I managed to put more text than what can be held in a column, however I get a really big margin at the top of the title. This is what I did:               \headerbox{     \begin{minipage}[t]     Task-Based Programming \\     model and Runtime System     \end{minipage}     }     {boxheaderheight=0.06\textheight,name=significance,column=2, span=1,row=0}{...}      I tried playing with negative vertical space (both `\vspace` and `\vspace*`), however I could not fix it. Google hasn't helped either, I would really appreciate any suggestions.


title: Illegal parameter number with \docsvlist

text: I'm trying to define a macro that take as an input a CSV list and create an item list. `etoolbox` comes just handy for this and the macro I'm using is               \begin{itemize}        \renewcommand*{\do}[1]{\item[] #1}        \expandafter\docsvlist\expandafter{\participants}     \end{itemize}      where `\participants` is the CSV list of items to `itemize`. My problem is that when I insert this macro as a newcommand definition like               \newcommand{\listparticipants}{        \begin{itemize}      \renewcommand*{\do}[1]{\item[] #1}      \expandafter\docsvlist\expandafter{\participants}        \end{itemize}     }      I get the following error message               ! Illegal parameter number in definition of \listparticipants.     <to be read again>                     1     l.29 }      What am I missing?


title: Problem using package acronym

text: I am using `acronym` package to create the list of Acronyms. I am using `Acronym1.tex` containing the definition of all the acronyms. However here is the list of problems I am facing.   1. I have to sort the list manually every time I need a sorted list in the pdf. I am not aware of the options with `usepackage`. I am currently using              \usepackage[printonlyused,withpage]{acronym}        2. Is it possible to order the Acronym list? Currently what I am getting is > <short>:<Description>..........<Page Number> I would prefer something like this : > <short>\t<Description>..........<Page Number> Example:               \documentclass{article}     \usepackage[colorlinks]{hyperref}     \usepackage[printonlyused,withpage]{acronym}     \begin{document}          \section{Intro}     In the early nineties,\ac{TDMA}, \ac{IEEE} , \ac{GSM}, \ac{WPAN} \ac{FPGA}          \section{Acronyms}      \begin{acronym}     \acro{TDMA}{Time Division Multiple Access}     \acro{WPAN}{Wireless Personal Area Network}     \acro{GSM}{Global System for Mobile communication}     \acro{FPGA}{Field Programmable Gate Array}     \acro{IEEE}{Institute of Electrical and Electronics Engineers}     \end{acronym}          \end{document}      If you are using `acronym` package and know the options on how to use it, that will be really helpful. I could not find any relevant information, in the documentation.


title: how to compile to ps with texstudio?

text: i'm a beginner in LaTeX, I'm using texstudio, but I don't know how to compile to `ps`. I have some `.eps` files and use `psfrag` command.