title: Preventing math mode from parsing macro input as math?

text: ## Basic Problem I'm trying to produce a command sequence `\m` that   1. Is called from within math mode, with a single argument `list`   2. "Replaces" all instances `,` and `;` in `list` with `&` and `\\` (resp.)   3. Creates a `pmatrix` with output of 1 & 2 as its content For example, the code               \[         \m{a,b;c,d}\m{x;y}     \]      should expand to be equivalent to the following:               \[         \begin{pmatrix}a&b \\ c&d\end{pmatrix}\begin{pmatrix}x \\ y\end{pmatrix}     \]      After spending more time on this than I should have, I came up with the following partial solution to the problem using `xstring`:               \def\foo#1{         \StrSubstitute{#1}{,}{&}[\result]              \verbtocs{\bslashes}|\\|         \expandarg         \StrSubstitute{\result}{;}{ \bslashes }[\result]     }          \begin{document}         % Fairly complicated matrix input         \foo{a,b,c;d,e_{f,g},h;i,j_{1,e^n},k}         \[             \begin{pmatrix}                 \result             \end{pmatrix}         \]     \end{document}      This is close to what I was hoping for, but I haven't come up with a way to use `\foo` as a helper function for `\m` to get exactly what I want. I was thinking that defining `\m` in the preamble by               \def\m#1{         \foo{#1}         \begin{pmatrix}             \result         \end{pmatrix}     }      would work, but then even calling something as simple as `\m{a}` in math mode will produce errors. It looks as though math mode attempts to parse the definition of `\m` instead of letting `\m` fully expand, but my understanding of how this works is too limited to know how to fix my code. Is there a way to modify the definitions of `\m` and `\foo` to make them do what I want? Can I somehow escape math mode in the definition of `\m` to avoid these errors?


title: Upgrade to MacTeX 2011 without redownloading entire distribution?

text: Is it possible to upgrade from MacTeX 2010 to 2011 without downloading the entire package for new? I’ve tried starting the instructons for upgrading TeXLive at tug.org/texlive/upgrade.html, up to step 3 (so, I’ve duplicated `usr/local/texlive/2010` as `…/2011`), but with the next few steps, I’m worried about confusing the MacTeX “TeX Distibution” system preferences pane, since I don’t know how it finds/builds its list of installed TeX distributions. I had hoped it would find the duplicated copy and allow me to switch to it (which would presumably cover steps 4–6), but it’s not seeing a 2011 distribution. So… is it safe to proceed with those instructions, without breaking the MacTex preferences pane? Or is there some way one should handle things via that pane? Or is it best to just download MacTeX 2011 afresh?


title: How can I use `pgffor` to iterate through a database of keys and properly retrieve them

text: I would like to create a command that stores a database. I then want to iterate over the database and _print out_ the results to the document. This MWE shows two different approaches I've taken. But neither works.               \documentclass{article}     \usepackage{pgffor,pgfkeys}     \pgfkeys{/ae/breakfast/menu/.cd,       fruit/.initial = grape fruit,       bread/.initial = English muffin,       eggs/.initial  = hard boiled,     }          \def\allrecords{%%'       { fruit=apple,          bread=bagel,         eggs=scrambled       },       { fruit=orange,          bread=toast,         eggs=fried        }       }          \def\aeget#1{\pgfkeysvalueof{/ae/breakfast/menu/#1}}          \def\whatIordered{ I ordered \aeget{fruit}, \aeget{bread}, and \aeget{eggs}.}          \pagestyle{empty}     \begin{document}          \whatIordered          %<approach 1>% this fails: "whitespace" getting in the way     %%\foreach \x in \allrecords {\pgfkeys{/ae/breakfast/menu/.cd,\x}\whatIordered\newline}          %<approach 2>% this also fails: keys are misread     %%\foreach \x in \allrecords {\foreach \y in \x {\pgfkeys{/ae/breakfast/menu/\y}} \whatIordered\newline}          \end{document}      Is there a means of using `pgfkeys` and then _iterating_ over a database?


title: LaTeX command to pick root directory

text: I work on a folder with LaTeX files on two different computers. Dropbox syncs both folders, but the location of folders are different in different computers, so when I include a photo in one computer, it generates error in the other one as the paths are not the same. How can I make LaTeX to pick up the current path ?


title: Windows 8 TTF font problems

text: We are building a small app which produces a `.pdf` out of a TeX document. Therefore we copied the `pdflatex.exe` (`pdftex.exe`, `pdftex.dll`) and its configs and packages out of TeXlive 2013. To handle ttf fonts such as 'Verdana' or 'Times New Roman' we also copied `ttf2tfm.exe` to get our metric fonts. A small batch runs this commands:               ttf2tfm fonts/verdana.ttf -p T1-WGL4.enc     ttf2tfm fonts/arial.ttf -p T1-WGL4.enc     copy "fonts\verdana.tfm" verdana.tfm     copy "fonts\arial.tfm" arial.tfm     pdflatex example.tex      For each font we have a font definition (`.fd`) file like 'T1arial.fd'. This runs perfectly with fonts out of the Windows 7 font directory. Now we are on Windows 8 and we run this commands. Now, the pdf document is full of characters like ▯▯▯▯▯▯. We think this is a encoding problem. But what can we do? In our log we get > pdflatex.exe (file fonts/arial.ttf): glyph `[...]` for each character.


title: Showcase TeX Typography for TUG's Calendar

text: I'm making a calendar. The calendar will be for TUG, 2015. Last year I also made a calendar but because of time constraints most examples were graphics. Since this is a lot of work, I need your help. If you can/want to help out, the following are the requirements for contributions:   * Your contribution should not exceed 1 page of A4 size, in landscape or A5 size, portrait orientation.   * You should post your TeX solution as an answer to this question.   * If possible, please provide a hyperlink to the pdf output document.   * If you want to make your submission available for the calendar, you should make sure the document can be made available in a single page pdf that has a size that does not exceed A4/landscape. I will ask you for the pdf if I need it.   * Your submission may use user-defined packages and proprietary fonts. There is no need to make these available.   * Your submission should include a short description and a screenshot of the output. The following template may be useful to get started.               % save this document as example.tex     % compile this document with: pdflatex -shell-escape example.tex     \documentclass{article}          % Needed to make sure your page dimensions     % are the same as that of the calendar.     \usepackage[landscape,a4paper]{geometry}          \usepackage{tikz}     \usetikzlibrary{external}          \pagestyle{empty}          \begin{document}          \begin{tikzpicture}     \node[scale=10]{Your Art Here.};     \end{tikzpicture}          \end{document}      ![Example of Output](http://i.stack.imgur.com/vk7gF.png)   * **On 4 October, 2013 I decided to relax my question and also accept showcases of typography.**   * **On 12 November, I once more relaxed my question because I definitely don't have the time to make a tasty looking calendar on my own. There may be a prize for one or two submissions.**   * **Springer are kindly donating two copies of _LaTeX and Friends_.**   * **If there are enough submissions, I'll compile a calendar. Otherwise, I may have to cancel the project.**   * **There have been too few submissions so I am cancelling the calendar for 2014**. Peter Wilson has already implemented a TeX-based calendar so I don't see any real problem.   * Nicholas Hamilton and ChrisS have won a copy of the book. When the calendar is finished, I will post the code as an answer to this question. Hopefully, this will help people who want to do similar things. **FWIW** I decided not to award my bounty (500) today (2014-02-14) as I'd like to raise the standard a bit.


title: Warning when using a command as label argument for a list?

text: I'm having difficulties with a list where the label is defined as a command. Below is a minimal example:               \documentclass[a4paper, 11pt]{article}          \usepackage{enumerate}          \newcommand{\myLabel}{1)}          \newenvironment{myList}%       {%         \begin{enumerate}[\myLabel]       }       {%         \end{enumerate}       }                    \begin{document}          \begin{myList}       \item Item 1       \item Item 2       \item Item 3     \end{myList}          \end{document}      When I compile this, I get the following warning               LaTeX Warning: The counter will not be printed.              The label is: \myLabel  on input line 19.      and the generated list only has `1, 1, 1` as labels instead of `1, 2, 3`. Any idea how to work around this problem?


title: \SIlist with uncertainty AND units

text: Using the `siunitx` package, I want to create lists of values that have both uncertainties and units. They should appear in the document like this example: 4 ± 2 %, 3 ± 2 %, 2 ± 1 % and 3 ± 2% Here is how I was hoping to achieve this:               \documentclass{article}     \usepackage[separate-uncertainty=true,multi-part-units=single,list-units=repeat]{siunitx}          \begin{document}            % a single value with unit and uncertainty       \SI{84.10 \pm 6.99}{\percent}            % a list of values with units and uncertainties       \SIlist{4 \pm 2; 3 \pm 2; 2 \pm 1; 3 \pm 2}{\percent}          \end{document}      The single value turns out fine: > 84.10 ± 6.99 % However, contrary to my expectations, the list looks like this: > (4 ± 2) %, (3 ± 2) %, (2 ± 1) % and (3 ± 2) % It seems that the option `multi-part-units=single` has no effect inside the list, and instead the default `multi-part-units=brackets` is applied. I wasn't able find any hints on that in the documentation or elsewhere, and would be grateful, if someone could indicate were my error lies.


title: Can I modify the font shape on-the-fly in my chapter headings if I have used sectsty to format?

text: I am having problems formatting the text in my chapter headings. I used `sectsty` to modify all my headings to `\sffamily`, but I have some parts of the heading that should be in italics and I can't work out how to achieve this. Here's an example. It seems to work fine if I comment out the three lines relating to `sectsty`.               \documentclass[12pt, a4paper, oneside, fleqn]{report}          \usepackage{sectsty}          % put section headings in sans-serif font     \allsectionsfont{\sffamily}     \chapterfont{\LARGE\sffamily}          \begin{document}          \chapter{I want some \textit{Text In Italic} in my heading}          Where has the \textit{italic text} gone from my title?               \end{document}      Thanks in advance.


title: Bibliography referencing backwards, help

text: I am finishing my first latex setup for my thesis and I decided to test out the figures and tables and how to control them together with the referencing and bibliography. Everything was going fine; the first time I cited references and corss-referenced material the bibliography compiled in the order in which citations appear in the text (desired result), then I played around with the figures and suddenly my bibliography is compiling from the bottom up (figures/tables first). I must be making a rookie mistake, but I reproduced the same effect in an MWE of my stripped down thesis setup below. Please could someone explain why it is doing this all of a sudden? I am currently using `sharelatex.com` as my editor. Thank you.               \documentclass[     bibliography=totoc,     headings=big,     captions=tableheading,     chapterprefix=true% like in standard class "report"     ]{scrreprt}     \usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}     \usepackage{xcolor}     \usepackage{graphicx}     \usepackage{minitoc}          \setcounter{secnumdepth}{3} % number subsubsections     \setcounter{tocdepth}{3} % list subsubsections          \begin{document}     \dominitoc     \tableofcontents     \listoffigures     \listoftables          \addtokomafont{chapterprefix}{\raggedleft}          \addtokomafont{section}{\huge}     \addtokomafont{subsection}{\Large}     \addtokomafont{subsubsection}{\large}          \renewcommand*{\chapterformat}{%     \mbox{\scalebox{1.5}{\chapappifchapterprefix{\nobreakspace}}%     \scalebox{4}{\color{gray}\thechapter\autodot}\enskip}}          \setcounter{chapter}{6}\setcounter{page}{199}     \newpage\setcounter{page}{212}          \chapter{Conclusions}     \dictum[Sun Tzu]{If you know the enemy and you know yourself %\\     you need not fear the results of a hundred battles.}          \minitoc          \section{Summary of Achievements}     Text goes here          \subsection{Papers Submitted}     Text          \subsubsection{I want to go into the TOC}     Testing stuff out \cite{Guittonneau201071}          \begin{table}[htbp]     \caption{This is an example table \cite{Li2012}}     \centering     \begin{tabular}{llll}     This & is & an & example.\\\hline     This & is & an & example.     \end{tabular}     \label{example.table}     \end{table}          So this continues with the Table~\ref{example.table}          \begin{figure}     \setcapindent{1em}     \fbox{\parbox{.95\linewidth}{\centering{\KOMAScript}}}     \caption{Example \cite{Fu2009789} with slightly indented caption     starting at the second line}     \end{figure}          \bibliographystyle{plain}     \bibliography{bibliography}          \end{document}      The bib references I used are the following:               @article{Song20084290     ,   author  = {M.S. Song and B. Huang and M.X. Zhang and J.G. Li}     ,   title   = {Formation and growth mechanism of ZrC hexagonal platelets synthesized by self-propagating reaction}     ,   journal = {Journal of Crystal Growth}     ,   year    = {2008}     ,   volume  = {310}     ,   number  = {18}     ,   pages   = {4290 - 4294}     ,   issn    = {0022-0248}     ,   doi = {10.1016/j.jcrysgro.2008.07.016}     ,   url = {http://www.sciencedirect.com/science/article/pii/S0022024808005678}     ,   keywords    = {B1. Zirconium carbide}     }          @article{Guittonneau201071     ,   author  = {Fabrice Guittonneau and Abdesselam Abdelouas and Bernd Grambow}     ,   title   = {HTR Fuel Waste Management: TRISO separation and acid-graphite intercalation compounds preparation}     ,   journal = {Journal of Nuclear Materials}     ,   year    = {2010}     ,   volume  = {407}     ,   number  = {2}     ,   pages   = {71 - 77}     ,   issn    = {0022-3115}     ,   doi = {DOI: 10.1016/j.jnucmat.2010.09.026}     ,   url = {http://www.sciencedirect.com/science/article/pii/S0022311510005027}     }          @article{Fu2009789     ,   author  = {Hongzhi Fu and Weimin Peng and Tao Gao}     ,   title   = {Structural and elastic properties of ZrC under high pressure}     ,   journal = {Materials Chemistry and Physics}     ,   year    = {2009}     ,   volume  = {115}     ,   number  = {2–3}     ,   pages   = {789 - 794}     ,   issn    = {0254-0584}     ,   doi = {10.1016/j.matchemphys.2009.02.031}     ,   url = {http://www.sciencedirect.com/science/article/pii/S0254058409001163}     ,   keywords    = {Ab initio calculations}     }          @article{Li2012     ,   author  = {Qinggang Li and Haijun Zhou and Shaoming Dong and Zhen Wang and Ping He and Jinshan Yang and Bin Wu and Jianbao Hu}     ,   title   = {Fabrication of a ZrC–SiC matrix for ceramic matrix composites and its properties}     ,   journal = {Ceramics International}     ,   year    = {2012}     ,   number  = {0}     ,   pages   = { - }     ,   issn    = {0272-8842}     ,   doi = {10.1016/j.ceramint.2012.01.023}     ,   url = {http://www.sciencedirect.com/science/article/pii/S0272884212000260}     ,   keywords    = {ZrC precursor}     }


title: Decrease horizontal space in moderncv's cvdoubleitem

text: When labels are too small, the `\cvdoubleitem` macro in moderncv creates way too much space between the first description and the second label: ![enter image description here](http://i.stack.imgur.com/Byndu.jpg)               \documentclass[11pt,a4paper]{moderncv}          \usepackage[utf8]{inputenc}     \moderncvtheme[blue]{classic}          \firstname{}     \familyname{}          \begin{document}     \section{Cool Stuff}     \cvdoubleitem{$15\times$}{Lorem ipsum dolor sit amet, consetetur sadipscing elitr.}{$6\times$}{Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}     \end{document}      I like to decrease the yellow space by increasing the description columns. Thank you for any hints how to achieve this!


title: How to debug LuaLaTeX no longer finding ttf font

text: I just updated texlive and now LuaLateX no longer finds two `ttf` fonts situated in the same folder as the .tex file. Before I updated it all worked fine. Clumsy as I am I was having a `latexmk` session open in a terminal during the update and I am wondering if perhaps this could have broken some font cache, i.e. something similar to here? But on the other hand I am unsure as to whether it is using the font cache for fonts in the local folder? I tried `mkluatexfontdb` but that shouldn't really have any effect on files in local folder should it? Can someone suggest what to try next? btw I am now running version: `beta-0.76.0-2013061817 (TeX Live 2013) (rev 4627)`


title: Indent ONLY the first paragraph of a section/subsection/subsubsecion

text: I need to indent only the first paragraph of each section/subsection/subsubsection. Is it possible in a more clever way than using the `indentfirst` package and `\noindent` on each non-first paragraph?


title: Table with non-standard multicolumns

text: I want to typeset this table: ![enter image description here](http://i.stack.imgur.com/MU46b.png) As you see, it's hard to use `multicolumn` here. I tried 2 consecutive tables: ![enter image description here](http://i.stack.imgur.com/SLjTi.png)               \documentclass{article}     \usepackage[a5paper]{geometry}     \usepackage{tabularx}     \usepackage{lipsum}     \usepackage{array}     \setlength{\parindent}{0cm}     \begin{document}          \begin{tabularx}{\textwidth}{ | X | X | }       \hline       1 & 2\\       \hline     \end{tabularx}     \begin{tabularx}{\textwidth}{ |m{20mm} | X|m{20mm}| }       1 & 2 & 3\\       \hline     \end{tabularx}     \end{document}      But there is a gap between them. Any suggestions about typesetting the top table?


title: KOMA-script scrreprt: Chapter Heading Size Customisation

text: This is a continued question from my previous thread I am setting up LaTeX to write my thesis using `scrreprt`. I have implemented with success all the advised and suggested solutions and have tried to tinker to achieve the final desired aesthetic change which was **increasing the chapter name size**. Currently I am more than happy with the size of the chapter and chapter number, but I wasn't able to figure out the right way to control the chapter name. I used `\addtokomafont{chapter}{\Huge}` but could see no big change. I couldn't work out how to use a `\scalebox`. I also looked into using the `\othersectionlevelsformat{sectioning name }{}{counter output }` the KOMA- Script manual states on pg 97 that `\renewcommand` can be used to define formatting commands and that the original definitions in the `KOMA-Script` classes are:               \newcommand*{\partformat}{\partname~\thepart\autodot}     \newcommand*{\chapterformat}{%     \chapappifchapterprefix{\ }\thechapter\autodot\enskip}     \newcommand*{\othersectionlevelsformat}[3]{%     #3\autodot\enskip}      However I wasn't able to make use of this command effectively, could you please help, thank you in advance. Please find below my current MWE, thank you in advance for any help.               \documentclass[     bibliography=totoc,     headings=big,     captions=tableheading,     chapterprefix=true% like in standard class "report"     ]{scrreprt}     \usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}     \usepackage{xcolor}     \usepackage{graphicx}     \usepackage{minitoc}     \usepackage{setspace}          \setcounter{secnumdepth}{3} % number subsubsections     \setcounter{tocdepth}{3} % list subsubsections          \begin{document}     \dominitoc     \tableofcontents          \addtokomafont{chapterprefix}{\raggedleft}          \addtokomafont{section}{\huge}     \addtokomafont{subsection}{\Large}     \addtokomafont{subsubsection}{\large}          \renewcommand*{\chapterformat}{%     \mbox{\scalebox{1.5}{\chapappifchapterprefix{\nobreakspace}}%     \scalebox{4}{\color{gray}\thechapter\autodot}\enskip}}          \setcounter{chapter}{6}\setcounter{page}{199}     \newpage\setcounter{page}{212}          \chapter{Conclusions}     \dictum[Sun Tzu]{If you know the enemy and you know yourself %\\     you need not fear the results of a hundred battles.}          \minitoc          \section{Summary of Achievements}     Text goes here          \subsection{Papers Submitted}     Text          \subsubsection{I want to go into the TOC}     Testing stuff out          \bibliographystyle{plain}     \bibliography{bibliography}          \end{document}


title: How can I follow input links in auctex

text: Is it possible to do the following with AucTeX: Suppose you have a master file (`master.tex`) like:               \documentclass{minimal}     \begin{document}        \input{fileA}        \input{fileB}     \end{document}      and for example `fileA.tex` looks like:               Some text          %% Local Variables:     %% coding: utf-8     %% TeX-master: "master.tex"     %% End:      Now I am looking for an easy way to navigate between the master and input files, so I need the following:   1. Click (with modifier) on `\input{fileA}` in the master file to open `fileA.tex` or just switch to its buffer if it exists. Alternatively to clicking: move point to `fileA` an press some key sequence to do the same.   2. When you are `fileA.tex`: Press a key sequence to open the master file or just switch to its buffer if it exists and move the point to the line `\input{fileA}`. Same with `\include` instead of `\input`. So, how can I do this or something similar in AucTeX?


title: configure git to work with latex (i.e. use dots instead of lines as reference points)

text: Normally git is great, but if I use it for a written type of document (report/novel) and do a correction reading, it has to rewrite almost the entire document, because most paragraphs are likely to change. But still only 10% if the sentences get changed. Therefore I was thinking it would be great if one could make git reference sentences rather than lines. Is that possible? edit: some more motivation: Having git using newlines as reference works quite well with academic articles, because paragraphs tend to be relatively short (hence changes are still locally captured if git replaces a paragraph). _For a more prosaic text_ , however, the correction (especially at later state) might be subtle but the paragraphs tend to be quite long. _Therefore replacing an entire paragraph in git makes it difficult to spot the correction later on in the logs._ Regarding making a new line after each sentence, I think that destroys the optical structure of the text appearing in the latex document. Especially if the editor has wordwrap enabled. Just have a look of the text above split into new lines:               Having git using newlines as reference works quite well with academic articles,      because paragraphs tend to be relatively short      (hence changes are still locally captured if git replaces a paragraph).      For a more prosaic text, however,      the correction (especially at later state) might be subtle but the paragraphs tend to be quite long.      Therefore replacing an entire paragraph in git makes it difficult to spot the correction later on in the logs.          Regarding making a new line after each sentence,      I think that destroys the optical structure of the text appearing in the latex document.     Especially if the editor has wordwrap enabled.


title: Dynamically add row depending on the values using PgfplotsTable

text: Consider the rows in table `testdataExisting.dat`:   * If `type=0`, `vala` must be put in a row. `valb` should not be displayed.   * If `type=1`, `vala` must be put in a row and `valb` must be put in the subsequent row with the same id, possibly via using `multirow`.  My MWE:               \documentclass[parskip]{scrartcl}     \usepackage[margin=15mm]{geometry}     \usepackage{pgfplotstable}     \pgfplotsset{width=10cm,compat=1.6}     \usepackage{filecontents}               \begin{filecontents}{testdataExisting.dat}     id vala valb type     1  24   75   0     2  56   87   1     3  11   46   0     \end{filecontents}          \begin{filecontents}{testdataGenerated.dat}     id val  type     1  24   0     2  56   1     2  87   1     3  11   0     \end{filecontents}      \begin{document}     Table 1           \pgfplotstabletypeset[col sep=space,columns={id,vala,valb,type},]{testdataExisting.dat}          Table 2           \pgfplotstabletypeset[col sep=space,columns={id,val,type},         columns/type/.style={string type,column type=r},      ]{testdataGenerated.dat}      \end{document}      Output: ![](http://i.stack.imgur.com/UbTbI.jpg) Here is a solution of another problem that is similar to this problem. I could not adapt that solution for this problem. I was not able to handle addition of a new row which is triggered depending on the values. I need a solution using PgfplotsTable.


title: \tcbox inside of tabu sticks out

text: I use \tcbox inside of tabu environment cells. As you see at the screenshot, the tabu is enclosed in tcolorbox as well. So, tabu doesn't measure the size of the content in the cells, when the content is a \tcbox-ed, making the row of one-line height. How to fix this? How to tell tabu to expand the row, without manual setting of the row height? The source code below has another chinese and cyrillic characters than in the screenshot, but the structure is the same.               \begin{tcolorbox}[title=Металл, colback=badcolor, colbacktitle=jincolor]         \begin{tabu}{X[-1c]|X[-1c]|X[-1c]X[l]}             \tabucline-             \multirow{1}{*}{\tcbox{6}} &             \multirow{1}{*}{\tcbox{⬆戊} } &             Мистик в могиле &                  \tabularnewline             \tabucline-         \end{tabu}     \end{tcolorbox}      ![Screenshot](http://i.stack.imgur.com/FsYx5.png)


title: What is the default command for quick build in texmaker?

text: Does anyone know what the default command for quick build in texmaker is? I changed it before but now I want it back to default and I can't remember what it was.


title: Can I make an environment that defaults to include \item\relax tags in front of paragraphs?

text: This certainly sounds lazy, but my use case is designing a crude template for power point presenters to use in converting their content to a company's specific presentation standard, without their having to learn latex to actually use the highly specified template I design. I am simplifying commands like `\textit{}` in the same way, which I may do with the `\begin{itemize}\end{itemize}` command, but not requiring an `\item` macro would be very valuable and practical in the scope of the company's standards (in the many cases where I would use this code) which stipulate (though not explicitly in TeX terms):   1. That a sentence in content, or paragraph, will always be a separate bullet (`\item`), insuring that automating the macro would strictly be reducing the use cases to those allowed by the writing guidelines   2. The same rule applies to all sub-points, so all sub itemizations need to follow this rule strictly as well   3. The same rule applies to all enumerations too, except enumerations should only occur after an item In theory, I would:               \documentclass{beamer}          %Define environments in the preamble%          %Design an environment          \newenvironment{content}{          \section{automated_heading}           \begin{itemize}[option-to-skip-\item?}          %If it couldn't be an option, I'd include the script here%          \input{contentlocation.tex}          }{          \end{itemize}     }      Inside `contentlocation.tex`:               \begin{content}           This is its own item, written out and on and up. Several sentences comprise this paragraph          But this paragraph  is its own item and always should be its own item, this limitation is hard-coded into the guidelines          \begin{itemize} %Or its shortcut macro%          This is a sub-point, requiring no \item tag either, only the itemize enclosure          \end{itemize}          \begin{enumerate} %Or its shortcut macro%          So this is the fourth item, but it is enumerated. All it needs is an enumerate enclosure. It is not solely an enumeration, it will always need an itemize enclosure to begin with, and follow a main point from this itemized list          \end{enumerate}          \end{content}


title: How can I get the word "Chapter" to be typeset in chapter headings (scrbook)?

text: I am using the `scrbook` class, and I want the word "Chapter" to appear in the heading of the chapter, instead of just the number. How can I do it? I tried               \renewcommand{\chaptername}{Chapter}      but that does not work.


title: Customizing Equation-Numbering / Labeling in IEEEeqnarray

text: I'm trying to label a set of functions as a specific number (9.125), like how equations are usually labeled with `\begin{equation}` or `\begin{IEEEeqnarray}`. I have been using `\tag{}` (with a customized number like 9.034 inside the `\tag`, so each equation is individually labeled with my own choice of text/writing) for most of my document and I don't want to have to change all those again just so I can get this one section right (40 page document!). This is what I want to be labeled (9.125):               \begin{IEEEeqnarray}{LR}     \frac{a}{b}+\frac{c}{d}=0,\qquad&\qquad\frac{e}{f}-\frac{g}{h}=0 \\[10pt]     \frac{i}{j}+\frac{k}{l}=0,\qquad&\qquad\frac{m}{n}+\frac{o}{p}=0     \end{IEEEeqnarray}      I know commands like `\IEEEyesnumber` and I'm aware of people changing the labels of subsections and what not inside `IEEEeqnarray`. I just want to give this equation (no sub-equations or etc) a customizable label, where it functions the same way as `\tag`. I don't even want to "reference" it like a label throughout the text, that's not even necessary, I just want the number 9.125 in brackets to appear to the side exactly like it would in `\begin{equation}\tag{9.125}`. How can I accomplish this? If it is of any use, which I don't think it should be, my preamble is as follows:               \documentclass[12pt]{article}     \usepackage{IEEEtrantools}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage[pdftex]{graphicx}     \usepackage[width=16.00cm, height=22.00cm]{geometry}      Any help would be appreciated!


title: Origin and formation to the ERROR ‘Dimension too large’

text: When I tried to compile:               \documentclass{standalone}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \draw[very thin, red] (0,0) circle (2);     \foreach \i in {0, 1, 2, ..., 46} \draw[very thin, red] ({360 * \i / 100}:1) circle (1);     \end{tikzpicture}     \end{document}      I got:               ! Dimension too large.     <recently read> \pgfmath@x           l.6 ...thin, red] ({360 * \i / 100}:1) circle (1);          I can't work with sizes bigger than about 19 feet.     Continue and I'll use the largest value I can.      And if I turn `46` to `45`, say `\foreach \i in {0, 1, 2, ..., 45}`, that code will pass the compiling. It seems that some value I was trying to calculate is larger than the TeX engine can handle. After searching TeX.SX for about half an hour, I got this, this and this. These questions have been solved, however, the origin and structure of the problem still remain unclear. Hence, I decide to raise this question: what is the limit (its origin and formation), and how can I avoid it. Any clues would be appreciated.


title: How to align the conditions in a hierarchical structure?

text: I know how to align the conditions on the left side of the conditions with either aligned, cases, or array if there is only one level. However, I can't figure out how to do so in a hierarchical structure of conditions with more than one level. For example, the following Latex code would only align all the conditions on the right side:               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{equation*}     \text{Start}      \left\{\begin{aligned} \text{Do A,} \quad \quad\quad \quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\text{if a happens} \\     \text{otherwise} \left\{\begin{aligned} \text{Try B,}         \quad \quad \quad \quad \quad \quad \quad\quad\quad \text{if b occurs}\\     \text{Try C} \left\{\begin{aligned} \text{Perform C1}  \quad \quad \text{if           c increases}\\     \text{Perform C2, } \quad \text{if c decreases}     \end{aligned} \right.     \end{aligned} \right.     \end{aligned} \right.     \end{equation*}     \end{document}      So the question is, how to align all the "if" conditions?


title: changing the (new) "addyear" style option in "biblatex-dw"

text: Dear great LaTeX folks, since recently, the great biblatex-dw-style offers the "addyear" option, providing the year after the title in citation short form - in parentheses. Which means, after a first citation such as this: > Marc Vogel: _Durch Technik gutzumachen, was Technik frevelte. Zur Polivalenz > der "Technik" bei Theodor W. Adorno_. Würzburg: Königshausen und Neumann > 2012 (= Epistemata Philosophie 508). > > Thorsten Ries: Vom Ende des Empedokles. In: _DVjs_ 75.2 (2001), S. 251-287. the next citation would be: > Marc Vogel: _Durch Technik gutzumachen, was Technik frevelte_ (2012), S. x-y > > Thorsten Ries: Vom Ende des Empedokles (2001), S. x-y In the Germanistik tradition of citing, the following would look a little more common: > Marc Vogel: _Durch Technik gutzumachen, was Technik frevelte_. 2012, S. x-y > > Thorsten Ries: Vom Ende des Empedokles. 2001, S. x-y The period after the title can be achieved thu the following command:               \renewcommand*{\titleyeardelim}{.\addspace}      My question is: How can I get rid of the parentheses? Any help greatly appreciated!


title: pdflatex testpage produces wrong margins for a4paper

text: On my Mac running TeXlive 2012 when I do               pdflatex testpage     \papertype=a4paper     \doublesided=n      and open the resulting PDF file in preview, I can see that the margins are completely wrong in the produced PDF. ![margins are wrong](http://i.stack.imgur.com/1DxBT.png) If I leave out the a4paper and do               pdflatex testpage     \papertype=     \doublesided=n      I get a PDF with the expected layout, as shown here: ![correct margins](http://i.stack.imgur.com/XRTdn.png) What am I doing wrong here and how can I make pdflatex perform correctly while using the correct paper size? I have also done the same test with xelatex, with exactly the same results.


title: LaTeX not recognizing \end found in a \newcommand

text: I'm trying to both start and end a table with \newcommand. I'd like to switch to using `\EndTableSetupFourColumns` (as it removes several warnings and is easier to understand for other readers) but for some reason LaTeX does not seem to recognize the `\end{tabu}` found within, so I have to insert it manually as seen below. This problem seems to be limited to tabu - when I was using tabulars I did not have this issue. I looked through the tabu documentation and could not find anything that would indicate this wouldn't work. Looking at \end{tabu} in \newcommand shows that it won't work, however, it is something I'd like to work around for code readability, if nothing else. MWE:               \documentclass{article}          \usepackage[table]{xcolor}     \usepackage{longtable,tabu}          \newcommand{\TableSetupFourColumns}{%     \rowcolors{2}{gray!25}{white}     \begin{tabu} to \textwidth {lccX}         \rowcolor{gray!50}}          \newcommand{\EndTableSetupFourColumns}{%     \end{tabu}}          \begin{document}          \section{Test 1}     This is text.\par \noindent     \TableSetupFourColumns         Test            & test  & test  & test\\     \end{tabu}     %\EndTableSetupFourColumns          \end{document}


title: Moving the equation number up

text: In what's below, the equation numbering is annoying and forcing it to move up would be a solution. Anyway what are your suggestions to fix this without modifying the equations?               \documentclass[11pt]{book}     \usepackage[latin1]{inputenc}     \usepackage[a4paper,top=3.5cm,bottom=3cm,left=3.6cm,right=3.6cm]{geometry}     \usepackage{lipsum}     \usepackage{amsmath}     \begin{document}     \lipsum[4]     \begin{equation}\begin{aligned}     ac_1 &= a_1c_1 \\     a^2c_2 &= a_1c_2 + a_2c_1^2 \\     a^3c_3 &= a_1c_3 + 2a_2c_1c_2 + a_3c_1^3 \\     a^4c_4 &= a_1c_4 + a_2(c_2^2+2c_1c_3) + 3a_3c_1^2c_2 + a_4c_1^4 \\     a^5c_5 &= a_1c_5 + a_2(2c_1c_4+2c_2c_3) + a_3(3c_1^2c_3+3c_1     c_2^2) + a_4(c_1^3c_2+3c_1^2c_2) + a_5c_1^5 \end{aligned}     \end{equation}     \lipsum[4]     \end{document}


title: fill in the blank between two curves and arrow which shows the change

text: In continue to my previous question, concave curve in tikz, I would like to know how can I achieve the yellow area of the next figure and the little arrow in it? I don't care about how small the arrow would be, but I'd like its appearance in my figure. ![enter image description here](http://i.stack.imgur.com/8u6Z4.png) My code so far is:               \documentclass[tikz,border=100pt]{standalone}     \begin{document}     \begin{tikzpicture}      \draw (0,3) to[out=0,in=90] (3,0);         \draw[->, very thick] (-.1,0) -- (5,0);         \draw[->, very thick] (0,-.1) -- (0,5);     \draw[green] (0,4) to [out=0, in=90] (4,0);     \end{tikzpicture}     \end{document}


title: How to use the color package with dvips option together with the graphicx package?

text: I have a problem with the bounding box of my graphics. Example 1 below, where I only include a PNG image works fine. Example 2 below, where I also have `\usepackage[dvips]{color}` in order to include a PS file, does not work - the PNG image is blown up! ### Code example 1               \documentclass{article}     \usepackage{graphicx}     \begin{document}     \begin{figure}[htbp]         \includegraphics[scale=0.7]{irg.png}     \end{figure}     \end{document}      ### Code example 2               \documentclass{article}     \usepackage{graphicx}     \usepackage[dvips]{color}     \begin{document}     \begin{figure}[htbp]         \includegraphics[scale=0.7]{irg.png}     \end{figure}     \begin{figure}[htbp]             \includegraphics{irg2.ps}      \end{figure}      \end{document}


title: How to make a document occupy more pages?

text: As opposed to this question: Squeezing scientific paper to fit within page limits, I would like to find as many ways to make a document become longer without adding any real text. The motivation for this is that for example a mathematical thesis is usually very thin and it might not look good. The "rules" are following:   * The document should still "look good" (I mean, triple line-spacing or `\textwidth=0.3\paperwitdh` are not the options).   * The typography should be correct in the final document. I would like the ideas to be accompanied by a package name or a code snippet that allows them. _I know that the question might be vague and allows lots of "stupid" solutions. But I hope that everybody feels what they would use and what they would not._


title: "! Missing } inserted." error when using the xeindex packege

text: In the following example, when I use the word `foo` in the `\IndexList` command (with some other words, **not lonely** ), I'll get the following error:               ! Missing } inserted.     <inserted text>                      }     l.7 \section{foo}      The same error will also occur when I use the `tabular` environment. (I've not tried any other commands and environments, so maybe the error appears in there, too.) Here is my code:               \documentclass{article}     \usepackage{xeindex}     \makeindex     \IndexList{mylist}{hello,foo and bar,hi}     \begin{document}     \section{foo}     \newpage     %\begin{tabular}{c}     %foo      %\end{tabular}      \printindex     \end{document}      How can I solve this problem?


title: Composite images inside a figure in LaTeX?

text: I would like to have a figure that overlays a transparent png on top of a pdf. What is the best way to composite images inside a LaTeX figure? I would like to avoid compositing these images using separate image editing software beforehand, if possible.


title: Empty page with number at the end of chapter

text: My thesis document is having an empty page at the end of the chapter. The page is numbered too. Any ideas what could have caused this ?


title: How to fill the mark in pgfplot legend

text: I would like to create a graph using pgfplots. I don't like the legend symbol used for ybars and decided to go with a line legend entry and squares instead. How can I fill these marks, so that they have the same color as my bars? Thanks               \documentclass{article}     \usepackage{caption}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage{tikz}          \begin{document}     \begin{figure}     \begin{tikzpicture}     \begin{axis}     [ybar,     xtick=data,     width=6cm,     height=5cm,     ymin=0,     ymax=0.7,     xmin=0.5,     xmax=6.5,     axis y line=left,     axis x line*=bottom,     xtick= {1,2,3,4,5,6},     bar width=4pt,     ytick={0,.1,.2,...,.7}     ]     \addlegendimage{line legend,only marks,mark = square,color = black, fill =white}     \addlegendimage{line legend,only marks,mark = square,color = black, fill =gray}     \addlegendimage{line legend,only marks,mark = square,color = black, fill =black}     \addplot[xshift = 6pt,legend image post style={xshift=-6pt},color=black, fill =white, error bars, y dir=plus, y explicit]     coordinates{     (1,0.076844808) +- (1,0.043434089)       (2,0.282802471) +-(2,0.143136578)};          \addplot[xshift = -3pt,legend image post style={xshift=3pt},color=black,fill= gray, error bars, y dir = plus, y explicit]     coordinates{     (3,0.026724427) +-(3,0.019038655)     (4,0.061169214) +-(4,0.024462018)        (5,0.249852624) +-(5,0.047167041)        (6,0.064414295) +-(6,0.045149736)};          \addplot[xshift = -3pt,legend image post style={xshift=3pt},color=black, fill = black, error bars, y dir=plus, y explicit]     coordinates{     (3,0.082127485) +- (3,0.045713902)               (4,0.045611378) +- (4,0.018401772)     (5,0.299014506) +- (5,0.044026995)     (6,0.253207511) +- (6,0.320369411)     };     \legend{no, g/m, s}     \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}


title: How to outsource \hypersetup to an external file?

text: I use the hyperref package and defined custom settings as follows:               \usepackage{color}     \usepackage[dvipsnames]{xcolor}     \usepackage{url}     \usepackage{hyperref}          \hypersetup{         bookmarks=true,         % show bookmarks bar?         unicode=false,          % non-Latin characters in Acrobat’s bookmarks         pdftoolbar=true,        % show Acrobat’s toolbar?         pdfmenubar=true,        % show Acrobat’s menu?         pdffitwindow=false,     % window fit to page when opened         pdfstartview={FitH},    % fits the width of the page to the window         pdftitle={My title},    % title         pdfauthor={Author},     % author         pdfsubject={Subject},   % subject of the document         pdfcreator={Creator},   % creator of the document         pdfproducer={Producer}, % producer of the document         pdfkeywords={keyword1} {key2} {key3}, % list of keywords         pdfnewwindow=true,      % links in new window         colorlinks=true,        % false: boxed links; true: colored links         linkcolor=red,          % color of internal links         citecolor=green,        % color of links to bibliography         filecolor=magenta,      % color of file links         urlcolor=OliveGreen     % color of external links     }      I saw here that I can somehow put these settings into an external file to slim down the preamble. I created a `hyperref.sty` and moved the `\hypersetup{}` part in there. I noticed that it is considered in the compilation process, however, it fails. **Question:** What is the proper way to externalize the options for the _hyperref_ package?


title: How to separate definitions from the following text?

text: Using the `definition` theorem style from `amsthm` does not enable the reader to separate between text that belongs to the definition and the text following it. Example:               \documentclass{scrbook}     \usepackage{amsthm}     \theoremstyle{definition}     \newtheorem{defi}{Definition}          \begin{document}            \begin{defi}         Some Definition.       \end{defi}            Some text.     \end{document}      **Do you have any advice how to make the border between some definition and the following text more clear?** Are there any standard solutions which look professional at the same time? What is your experience? I could think of different solutions:   1. Adding something like the `\qed` symbol at the end of each definition. But in my view q.e.d would be semantically wrong in this context.   2. Changing the font in any way, e.g. making it italic like in the theorem environment. On the other hand, this would make the definition style useless...   3. Adding some extra space. I don't like this solution...


title: Why don't my TikZ lines join?

text: I'm new to TikZ and have produced the following figure ![enter image description here](http://i.stack.imgur.com/bOvvt.jpg) This is what I want except the fact the arrowed lines do not all join in the centre of the diamonds for some reason, why is this? and how can I make them all join up? The code I used is:               \documentclass{standalone}     \usepackage{tikz}     \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{latexsym}     \usepackage{amsthm, mathrsfs}     \newcommand{\scri}{\mathscr{I}}     \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{decorations.markings}      \usetikzlibrary{calc}     \usepgflibrary{arrows}          \begin{document}          %Arrows in centre     \tikzset{->-/.style={decoration={      markings,      mark=at position #1 with {\arrow[scale=1]{>}}},postaction={decorate}}}               \begin{tikzpicture}[>=open triangle 90]     \node (I)    at ( 4,0) {};     \node (II)   at (-5,0) {};                         \path % Four conners of the right diamond         (I) +(90:4)  coordinate[label=90:$i^+$]  (Itop)            +(-90:4) coordinate[label=-90:$i^-$] (Ibot)            +(180:4) coordinate (Ileft)            +(0:4)   coordinate[label=0:$i^0$] (Iright)            +(45: 2.825)   coordinate (Imidtr)            +(225:2.825)   coordinate (Imidbl)            +(135:2.825)   coordinate (Imidtl)            +(-45:2.825)   coordinate (Imidbr)            ;        ;          \draw  (Ileft)  --                node[midway, below, sloped] {$H^+$}            (Itop)   --                node[midway, above right]    {$\scri^+$}              node[midway, below, sloped] {$\bar{v}=\infty$}            (Iright) --               node[midway, below right]    {$\scri^-$}               node[midway, above, sloped] {$\bar{u}=-\infty$}             (Ibot)   --               node[midway, below, sloped]    {$H^-$}            (Ileft)  -- cycle;           %draw arrowed mode lines     \draw[->-=.5] (Imidbr) -- (I);     \draw[->-=.5] (I) -- (Imidtl);        \draw[->-=.5] (I) -- (Imidtr);              %REPEAT FOR THE DOWN MODES       \path % Four conners of the other diamond         (II) +(90:4)  coordinate[label=90:$i^+$]  (IItop)            +(-90:4) coordinate[label=-90:$i^-$] (IIbot)            +(180:4) coordinate (IIleft)            +(0:4)   coordinate[label=0:$i^0$] (IIright)            +(45: 2.825)   coordinate (IImidtr)             +(225:2.825)   coordinate (IImidbl)            +(135:2.825)   coordinate (IImidtl)            +(-45:2.825)   coordinate (IImidbr)            ;      % draw other diamond     \draw  (IIleft)  --            node[midway, below, sloped] {$H^+$}        (IItop)   --            node[midway, above right]    {$\scri^+$}           node[midway, below, sloped] {$\bar{v}=\infty$}        (IIright) --           node[midway, below right]    {$\scri^-$}           node[midway, above, sloped] {$\bar{u}=-\infty$}        (IIbot)   --           node[midway, below, sloped]    {$H^-$}        (IIleft)  -- cycle;           %draw modes:      \draw[->-=.5] (IImidbl) -- (II);      \draw[->-=.5] (II) -- (IImidtl);         \draw[->-=.5] (II) -- (IImidtr);                        \end{tikzpicture}      \end{document}


title: how to control indentations in code

text: I have a java code which I want to add to a frame. How do I set the options in `lstset` to make sure that beamer keeps the original indentions in the code. For example in the below code the comments are pushed to the left and even the call to function `bar()` is pushed to the left.               \documentclass{beamer}     \usepackage{listings}     \usepackage{color}          \definecolor{pblue}{rgb}{0.13,0.13,1}     \definecolor{pgreen}{rgb}{0,0.5,0}     \definecolor{pred}{rgb}{0.9,0,0}     \definecolor{pgrey}{rgb}{0.46,0.45,0.48}          \lstset{language=Java                     ,showspaces=false                     ,showstringspaces=false                     ,tabsize=2                     ,commentstyle=\color{pgreen}                     ,keywordstyle=\color{pblue}                     ,stringstyle=\color{pred}                     ,basicstyle=\scriptsize\ttfamily                     ,breaklines=false     }          \begin{document}          \begin{frame}[fragile]{foo}         \begin{lstlisting}         public static void main(String[] args)         {             System.out.println("Hello");                  //comment 1             blah blah;             blah blah;                   //comment 2             blah blah;             blah blah;             foo();                    bar();         }         \end{lstlisting}     \end{frame}               \end{document}      ![enter image description here](http://i.stack.imgur.com/VHPfd.png)


title: Miktex Package Installation

text: I recently installed MiKTeX with the texmaker editor and cannot figure out how to update the packages. When I attempt to use the subfigure package with the following preamble               \documentclass[a4paper,12pt]{article}     \usepackage[english]{babel}     \usepackage{graphicx}     \usepackage{subfigure}      I then get a prompt to install a new package, which I then set to the online directory at ctan. I then get the following error:               ! LaTeX Error: File `subfig.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read >      How do I properly install packages to miktex? I'm absolutely confused. Thanks in advance for any help.


title: File `datatool.sty' not found

text: I am making a latex document with class {article} I want to make a page for glossaries I added the below in my preamble               \usepackage{datatool}     \usepackage{datatool-base}     \usepackage{glossaries}      But I am still getting the error               File `datatool.sty' not found. \usepackage      I am using MiKTeX and TeXstudio. Can someone please advice what I else needs to be added or changed to make this work?


title: Displaying special character (which name I don't know)

text: I'm writing a summary of a lecture that I'm visiting at the moment. Today, I encountered a symbol, which I did not know and even not know how to write on a computer. Since the summary is written in LaTeX, I decided to post the question here. Unfortunately, since I don't know how the symbol's called, I can't research on my own. This is the symbol: ![enter image description here](http://i.stack.imgur.com/GlxZQ.png) EDIT: As in the picture, I assume that this is not a simple block quote symbol. Additionally, the subject environment where I found the symbol is the programming language C.


title: Using \footnote in a figure's \caption

text: Maybe this is an easy one, but I struggled with this now too long :) I want to have a footnote in a caption of a figure, see the example.               \begin{figure}[!ht]       \caption{a figure caption\footnote{where i got it from}}       \label{somelabel}       \begin{center}            \pgfuseimage{...}       \end{center}     \end{figure}      The compilation error reads as follows               ! Argument of \@caption has an extra }.     <inserted text>                  \par      l.192 ...i got it from}}      The actual tex code for my figure with the answer of Leo               \pgfdeclareimage[width=6cm]{aba.medcenter}{aba.medcenter}          \begin{figure}[!ht]       \begin{minipage}{\textwidth}         \caption[Medcenter Monthly Medication System]{Medcenter\textsuperscript\textregistered Monthly Medication System\footnote{Quelle Bild: http://www.amazon.com/dp/B000RZPL0M}}         \label{aba.medcenter}         \begin{center}           \pgfuseimage{aba.medcenter}         \end{center}       \end{minipage}     \end{figure}      leads to the error               ! LaTeX Error: Command \itshape invalid in math mode.      in the same line. If I comment out the foot note, everything compiles fine. `\textsuperscript\texttrademark` isn't the problem, too.


title: How to make a footnote on the figure or table caption

text: Another problem has occurred. I just want to make a footnote on the caption of the figure, but it doesn't works. I can make a footnote just before `\end{figure}`, but it doesn't looks good. So can anyone of you please help me? I have tried a lot of different methods from the internet, but nothing has helped. So please help me.


title: Diagnosing the "too many math alphabets" error

text: I recently hit up against TeX's "too many math alphabets" error. I'm trying to diagnose what is using up my math alphabets, as I can't work out where they are going. Of course, I could just start commenting out sections, but given that this document is 100 pages long, that could take a _long_ time. I'd like to know what packages might be loading math alphabets, and what things count as being from different math alphabets. My document compiles if I replace               \DeclareFontFamily{OT1}{pzc}{}     \DeclareFontShape{OT1}{pzc}{m}{it}%                   {<-> s * [1.2] pzcmi7t}{}     \DeclareMathAlphabet{\mathpzc}{OT1}{pzc}%                                      {m}{it}      with               \let\mathpzc\mathcal      but the following compiles without complaint:               \documentclass{article}     \usepackage{kpfonts}     \usepackage{amsmath}     \usepackage[matha]{mathabx}     \DeclareFontFamily{OT1}{pzc}{}     \DeclareFontShape{OT1}{pzc}{m}{it}%                   {<-> s * [1.2] pzcmi7t}{}     \DeclareMathAlphabet{\mathpzc}{OT1}{pzc}%                                      {m}{it}          \begin{document}     $X \mathbf{X}\mathbb{X}\vDash\mathpzc{X}\alpha\displaystyle\sum \subset \top\mathcal{X}$     \end{document}      This document includes (as far as I can tell) all the kinds of math alphabets I took myself to be using. So I am missing something. Something else is using extra math alphabets and I'm not sure how to work out what. What other things count as being different alphabets? What else loads math alphabets? * * * Here's something weird. I do this with a version of my main file and I get this:               (0:~jkpmn7t at 12.0pt)     (1:~jkpmi at 12.0pt)     (2:~jkpsy at 12.0pt)     (3:~jkpex at 12.0pt)     (4:~jkpmia at 12.0pt)     (5:~msam10 at 12.0pt)     (6:~msbm10 at 12.0pt)     (7:~jkpsyc at 12.0pt)     (8:~jkpexa at 12.0pt)     (9:~lasy10 at 12.0pt)     (10:~cmex10 at 12.0pt)     (11:~jkpssmn7t at 12.0pt)     (12:~jkpttmn7t at 12.0pt)     (13:~jkpbn7t at 12.0pt)     (14:~jkpsyd at 12.0pt)     (15:~jkpmn7t at 12.0pt)      Note that `0` and `15` appear to be the same font… ### Edit I asked a followup question to this one.


title: How to float box of text on the right side without leaving a gap throughout the rest of the document?

text: ## Problem I am trying to create a document where a box of text will float on the right side. The rest of the text within the document should flow around the box. My searches have lead me to `wrapfigure`, but it doesn't seem to work the way I expected. In my first example below I use `wrapfigure` without specifying a number of lines and the page doesn't wrap at all. It essentially creates two columns because there is a large gap for the rest of the document. The second page isn't showed, but it has a gap the whole way down. The second example shows the same code except I specify the number of lines on `wrapfigure`. It only wraps for 3 lines which is what I expect, but it does it for every paragraph in the document. Again, the second page isn't shown. I want all text to be the full width of the document except for the areas where the box is. This seams like it shouldn't be too difficult, but I haven't figured it out yet. ## `wrapfigure` (default number of lines) ### Code               \documentclass[10pt]{article}     \usepackage[margin=0.5in]{geometry}     \usepackage{float}     \usepackage{wrapfig}     \usepackage{framed}     \usepackage{lipsum} % for dummy text only     \usepackage[alpine,misc]{ifsym}     \textheight=9.0in     \pagestyle{empty}     \setlength{\tabcolsep}{0in}          \usepackage{hyperref}          \newcommand\invisiblesection[1]{%       \refstepcounter{section}%       \addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}%       \sectionmark{#1}}               \begin{document}          \begin{wrapfigure}{r}{2.1in}          \footnotesize     \begin{framed}          \invisiblesection{\textit{Side Bar}}     \subsection*{Side Section A}          \lipsum[1]          \end{framed}     \end{wrapfigure}          {\Huge Title}\\     \textit{\small subtitle}          \pagebreak[1]     \section*{Section 1}          \lipsum[1-4]          \pagebreak[1]     \section*{Section 2}          \lipsum[1-4]     \end{document}      ### Example ![Example with default number of lines page 1](http://i.stack.imgur.com/jmO5v.png) ## `wrapfigure` (3 number of lines) ### Code               \documentclass[10pt]{article}     \usepackage[margin=0.5in]{geometry}     \usepackage{float}     \usepackage{wrapfig}     \usepackage{framed}     \usepackage{lipsum} % for dummy text only     \usepackage[alpine,misc]{ifsym}     \textheight=9.0in     \pagestyle{empty}     \setlength{\tabcolsep}{0in}          \usepackage{hyperref}          \newcommand\invisiblesection[1]{%       \refstepcounter{section}%       \addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}%       \sectionmark{#1}}               \begin{document}          \begin{wrapfigure}[3]{r}{2.1in}          \footnotesize     \begin{framed}          \invisiblesection{\textit{Side Bar}}     \subsection*{Side Section A}          \lipsum[1]          \end{framed}     \end{wrapfigure}          {\Huge Title}\\     \textit{\small subtitle}          \pagebreak[1]     \section*{Section 1}          \lipsum[1-4]          \pagebreak[1]     \section*{Section 2}          \lipsum[1-4]     \end{document}      ### Example ![Example with 3 number of lines page 1](http://i.stack.imgur.com/AMWEu.png)


title: Address book form

text: I want to create an environment (or any other command) for entering addresses. For example, I want something like this:               \newaddress     \home     \name{John Doe}     \phone{123-456-7890}     \address{100 1st Street, New York, NY}     \makeaddress      Then it prints following a certain format like:               \usepackage{wasysym} % Just for \XBox and \Square          \begin{description}     \item[Address Type:] \XBox Home, \Square Work     \item[Name:] John Doe     \item[Phone:] 123-456-7890     \item[Address:] 100 1st Street, New York, NY     \end{description}      How can I do this? I am open to any form of environment, command, or anything else.


title: Check if macro argument has specific prefix

text: I'm writing a math paper, and I've got macros which take labels of theorems, corollaries, etc. as arguments. I'm wondering, is there a way to check if the label starts with a particular prefix? That is, a command `\reftitle` which does "Theorem" for `\reftitle{thm:122}`, "Corollary" for `\reftitle{cor:124}`, "Statement" for `\reftitle{stmt:122}`. The idea is the macro needs to check if the argument starts with `cor`, `thm`, etc. I'm very new to macros in LaTeX, but I haven't been able to find how to do this. Anybody have ideas?


title: How do I change the standard "math font"?

text: What I can tell, the font you get, it looks like the standard, "bookish" font, only tilted. How can I get a monospace font with a straight spine, e.g., the font you get with `texttt`? I'm happy with everything else, including the interface, so, when set up, I don't want to invoke this in any other way than the standard `$ ... $` dance.


title: Expandable, standard TeX only way to compare balanced token lists

text: Is there a (reasonably) efficient macro that does something similar to `\long\def\comparets#1#2{\def\aa{#1}\def\bb{#2}\ifx\aa\bb true\else false\fi}` except is expandable (i.e. `\newcomparets{<tokens1>}{<tokens2>}` would expand into either 'true' or 'false', including inside `\edef`)? I am looking for a 'pure' TeX (i.e. no extensions, such as e-TeX) solution. I have looked at `l3tl` macros but they seem to use e-TeX. The solution should work with arbitrary token sequences (including ones containing various flavors of 'funny spaces' and braces and arbitrary control sequences). I cannot seem to find a way to do this without performing several passes.


title: What is vtex LA font set and can you get it from internet

text: Any one have experience with VTEX. There seems a VTeX/Free(I guess its a free version of the commercial one VTEX) On their website, it's said VTEX come with EC/TC font set http://www.micropress-inc.com/fonts/ecfonts/ecmain.htm Also, it come with the LA font set(cyrillic font set) http://www.micropress- inc.com/fonts/lafonts/lamain.htm The VTEX/Free have the ec font set by searching the internet. But I can't find the LA font set in the internet. Any one have any thought?


title: Issue with \newenvironment and framed and quotation

text: \documentclass[a4paper,10pt]{article}     \usepackage{framed}     \usepackage{lipsum}     \newenvironment{nb}        {\begin{framed}\begin{quotation}}        {\end{framed}\end{quotation}}     \begin{document}        \begin{nb}        \lipsum        \end{nb}     \end{document}      this code doesn't work on my pc, a Windows 7 32 bit installation with miktex, and i can't figure out where i'm wrong with this. As you can see i'm trying to create a new environment that can help me to keep my text as simply as possible giving me the ability to present the text inside the environment in a frame as quotation. this is the complete output, my file is named test.tex and is encoded in UTF8:                 pdflatex test.tex       This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)       entering extended mode       (C:\Users\windows\Documents\latex\test\test.tex       LaTeX2e <2011/06/27>       Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar       abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,       croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga       lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland       ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat       vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm       an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,       romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis       sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u       senglishmax, welsh, loaded.       ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"       Document Class: article 2007/10/19 v1.4h Standard LaTeX document class       ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))       ("C:\Program Files\MiKTeX 2.9\tex\latex\framed\framed.sty")       ("C:\Program Files\MiKTeX 2.9\tex\latex\lipsum\lipsum.sty")       (C:\Users\windows\Documents\latex\test\test.aux)       ! Extra }, or forgotten \endgroup.       \endMakeFramed ...eight \z@ \penalty -100 \egroup                                                         \begingroup \fb@put@frame ...       l.10   \end{nb}            ?


title: How to typeset gotos and labels using LaTeX pseudocode environments?

text: Is there any way to typeset gotos and labels using LaTeX pseudocode environments (`algorithmic`, `pseudocode`, `clrscode`, `algorithm2e`, etc.)? Automatic and correct indentation of labels would also be highly appreciated.


title: Overrule numeric-comp sorting for one \cite command

text: I am using biblatex with the numeric-comp citation style, which sorts&compresses citations. E.g. `\cite{C,A,E,B} ... \cite{D}` becomes "[1-3,5] ... [4]" (with 1=A, 2=B, 3=C, 4=D and 5=E). In general this suits me fine, however there is one citation in my document where I would like biblatex to respect the order in which I specify the references. E.g. `\cite{C,A,E,B}` should become "[3,1,5,2]". Does anyone know a way to do this?


title: How do I create separate columns in LaTeX without text flow?

text: I want to make a document with two columns, with each column separate. In other words, I have two separate columns in which I can type, without text flowing from one column to another. My desired use for this is to create 'Questions' on the left column and 'Answers' on the the right column. If there was also a way to align the questions with the corresponding answers, that would be great.


title: Set \strut height

text: I'm using quite a few `\colorbox` and `\colorfbox` in a document but they weren't sitting at the same heights (because some words contained g and this seemed to push the box down. The solution I found (in another stackoverflow question actually) was to use `\strut`. Only problem with that is that it defaulted to being very high. I couldn't figure out how to shrink the height (I'm very new to Latex) and was wondering if there's a simple way to specify the height of the `\strut` command? For example I have `\colorbox{newredred}{{\color{white}{\strut\tt fun}}}`. Is what I'm asking possible? Please remember, I'm very new to LaTeX and don't really understand much about the renewing commands or setting custom commands.


title: Tikz, centering object and correcting an arrow in flowchart

text: i placed the circle with the word Start in the center of picture using positioning library:               \node[start] (start)  {start};     % row 2     \node[block] (measurement) [below of=start] {Add new measurement, \\ $y_k$ to buffer};     \node[left=6cm of measurement] (level three) {};       my question is if it possible to place Start circle in the center of the page in a more accurate way instead of guessing where the center is? (e.g. 0.5\textwidth) my second question, i would like to correct line from _Number of regression_ to _regression solution false and ..._. It should pass above the diamond and connect the diamond from the east side like the 3 other arrows. **EDIT** A solution to the array (vector) problem:                \path [line,rounded corners] (i > 0 1.south) |- node[above right,midway] {$i=0$} ($(if 2.east) + (0.5,2)$) -- ($(if 2.east) + (0.5,0)$) -- (if 2.east);      simply creating an addition virtual point around _if 2_ position, using _**calc**_ library. A solution for centering the _Start_ circle i still havent found. **END EDIT** here is an example code i used:                 \documentclass[]{scrbook}            \usepackage[english]{babel}       \usepackage[utf8]{inputenc}       \usepackage[T1]{fontenc}       \selectlanguage{english}            \usepackage[]{amsmath,amssymb,amsthm}       \usepackage[landscape,a4paper,left=30mm,right=20mm,top=20mm, bottom=20mm]{geometry}       \usepackage{mathtools}            \usepackage{tikz}       \usetikzlibrary{shapes,arrows,matrix,decorations.pathreplacing, shapes. geometric,calc,positioning}              \begin{document}       \tikzset{decision/.style={diamond, aspect=2, draw, fill=blue!20, text badly centered, inner sep=0pt,align=center}}            \tikzset{block/.style={rectangle, draw, fill=blue!20, text centered, rounded corners, align=center}}       \tikzset{line/.style={draw, very thick, color=black!50, -latex'}}       \tikzset{start/.style={shape=circle,draw,minimum size=1.2cm, draw=blue!80, fill=blue!20, text centered, align=center}}       \tikzset{decision answer/.style={near start,color=black,auto}}       \tikzset{datashape/.style={ trapezium, draw, trapezium left angle=60, trapezium right angle=-60}}            \begin{tikzpicture}[node distance=1.5cm, auto, >=stealth, every node/.style={ auto, font=\footnotesize, anchor=center, >=stealth}]          % row 1     \node[start] (start)  {start};     % row 2     \node[block] (measurement) [below of=start] {Add new measurement, \\ $y_k$ to     buffer};     \node[left=6cm of measurement] (level three) {};     % row 3     \node[decision] (reg_status) [below left of=level three, node distance=3cm] %     {Regression\\status};%     \node[block] (update_goodness) [right of=reg_status,node distance=4cm] %     {update\\Goodness of Fit\\$\chi_\mathrm{red}^2$};%     \node [decision] (line_pass) [right of=update_goodness,node distance=4.5cm]%     {Is \\ $\left|\delta \right| < \left( 3.5\cdot \sigma_{\varepsilon} + %     \sigma_{\hat{\beta}_k}\right)$\\ and \\ $\chi_\mathrm{red}^2 < 1.6$};     \node [block] (update_beta_k) [right of=line_pass,node distance=5.5cm] %     {Update estimated values\\$\chi_\mathrm{red}^2$, $\hat{\beta}_k^i$ and %     $\operatorname{Cov}$};     % row 4     \node [block] (Reg_False) [below of=line_pass, node distance=2.3cm]%     {Set regression status\\equal False};     % row 5     \node [block] (create_replica) [right of=Reg_False,node distance=4cm]     {Create a replica of\\current regression solution\\$i \to i+1$};     \node [block] (Update_replica) [right of=create_replica,node distance=4cm]     {Clean buffer,\\Update:\\$\hat{\beta}_k^{i+1}$, $\operatorname{Cov}_k^{i+1}$ and %     $\chi_\mathrm{red}^2$};     % row 6     \node [decision] (i > 0 1) [below of=reg_status,node distance=4cm]     {Number\\of\\regression};     \node [block]    (update estimate) [right of=i > 0 1,node distance=5cm]     {Update estimated values \\ $^{i+1}\chi_\mathrm{red}^2$, $\hat{\beta}_k^{i+1}$ and %     $\operatorname{Cov}_k^{i+1}$};     % row 7      \node [decision] (if 2) [below of=Update_replica,node distance=5cm]     {Is \\ regression solution false \\ and \\ sufficent number of measurements};           \begin{scope}[every path/.style=line]        \path [line] (start)-- (measurement);        \path [line,rounded corners] (measurement) -| (reg_status);        \path [line] (reg_status) -- node[above,midway] {True} (update_goodness);        \path [line] (reg_status) -- node[near start,right] {False} (i > 0 1);        \path [line] (update_goodness) -- (line_pass);        \path [line] (line_pass) -- node[above,midway] {Yes} (update_beta_k);        \path [line] (line_pass) -- node[right,midway] {No}  (Reg_False);        \path [line] (Reg_False) -- (create_replica);        \path [line] (create_replica) -- (Update_replica);        \path [line] (i > 0 1) -- node[above,midway] {$i>0$} (update estimate);        \path [line,rounded corners] (update_beta_k.east) -| ($(if 2.east) + (0.5,0)$) |- (if 2.east);        \path [line,rounded corners] (Update_replica.east) -| ($(if 2.east) + (0.5,0)$) |- (if 2.east);        \path [line,rounded corners] (update estimate.east) -| ($(if 2.east) + (0.5,0)$) |- (if 2.east);        \path [line,rounded corners] (i > 0 1.south) |- node[above right,near start]%                 {$i=0$} ($(if 2.east) + (0.5,0)$) |- (if 2.east);      \end{scope}     \end{tikzpicture}     \end{document}      Here is a picture of what the above _TeX_ code return ![enter image description here](http://i.stack.imgur.com/ucosi.png)


title: How do I remove logo from a footline in Beamer?

text: In PaloAlto theme a logo is inserted into the footline. It is too big and doesn't look good. How can I remove it, without destroying all the template?               \documentclass{beamer}      \usepackage{beamerthemelined}      \usetheme{PaloAlto}      \setbeamertemplate{navigation symbols}{}           \logo      {         \includegraphics[height = 0.8cm]{Slonko.png}         \includegraphics[height = 0.8cm]{logo_pw_white_v2.png}      }      \title [App]{Application}      \author[a]{author1 \inst{1}}      \institute{\inst{1} Institute}      \date{}           \begin{document}              \frame{\titlepage}           \end{document}      ![Title page](http://i.stack.imgur.com/Hkjzk.png) I want to have logos in the sidebar and remove them from the footline.


title: Cite pop-up in Texstudio doesn't show up anymore

text: I'm using TeXstudio 2.5.2 together with Jabref 2.9.2 and BibLaTeX. Everything in my document works fine except that when I enter `\cite` no pop-up with all the bibliography entries shows up. The weird part is that it didn't work at first, then after a hint of a colleague it did and now it doesn't work anymore. Now I know, that this isn't the biggest problem in the world (especially when you're using Jabref, since there's a button to push a citation to your TeX file) but sometimes it would be nice to have the popup. Below I have a minimal "working" example (obviously if one adapts the directories) - what I'm doing is, is calling the `\printbibbliography` command in an external `.tex` file called `Verzeichnisse` (which is then called by the the input command) - this is due to said tip of my colleague which acutally worked at first. Does anymone have an idea to make this thing work (again)?               \documentclass[a4paper, parskip, 11pt, chapterprefix, numbers=noenddot]{scrbook}          \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage[backend=biber,style=alphabetic,sorting=anyt,maxalphanames=1,maxnames=99,     maxcitenames=2,natbib=true]{biblatex}          \renewcommand*{\labelalphaothers}{}     \addbibresource{Bibliography.bib}          \input{Kapitel/Verzeichnisse}          \begin{document}     \end{document}


title: Knitr and tikzDevice not working together with article options

text: I have a problem with `knitr` and `tikzDevice`, like someone before me. (See tikzDevice is not getting sizes right (knitr) .) He used `dev.args` to get rid of this error, but if I run this code through `knitr` (with `rstudio`), the fontsize is still messed up. `dev.args=list(pointsize=12)` doesn't work for me. The only thing that works, is to remove `a4paper,12pt`. Any ideas on what I did do wrong?               \documentclass[a4paper,12pt]{scrartcl}     \begin{document}          \begin{figure}     <<dev='tikz', dev.args=list(pointsize=12)>>=     x<-1     plot(x)     @     \end{figure}          \end{document}


title: changing caption for wrapfigure

text: I am using wrapfigure to include both a table and a picture. However, because it's in wrapfigure, the table caption comes out labeled as "Figure X" rather than table x. Is there any way I can get around this? Thank you! Here's a snippet of my direct code!               \begin{wrapfigure}{l}{8.5cm}     \begin{tabular}{|c|c|c|c|c|}         \hline         Cluster  & Start & End & Muts. in Cluster & P-Value    \\ \hline         1 & 751   & 858 & 4 & 1.35E-04 \\          2 & 719   & 751 & 2 & 2.41E-03 \\          3 & 790   & 858 & 2 & 2.82E-03 \\         \hline     \end{tabular}     \caption{The three most significant clusters found in EGFR for the 2GS7 structure.}     \label{tab:EGFRClust}          \includegraphics[width = 0.5\textwidth]{EGFRDrawing.eps}     \caption{The 2GS7 structure color coded by region: 1) cluster 1 - orange, 2) cluster 2 - blue and 3) cluster 3 - yellow. The boundary $\alpha$-carbon amino acids of 719, 751, 768, 790 and 858 are shown as purple spheres.}     \label{fig:EGFR-2GS7}     \end{wrapfigure}


title: Making bold tick labels in tikz

text: How do I make the tick labels bold? Here's a minimal example:               \documentclass[tikz,convert]{standalone}     \usetikzlibrary{datavisualization}     \begin{document}     \begin{tikzpicture}       \datavisualization[scientific axes,                           x axis = {attribute=x,label,length=8.4cm},                          y axis = {attribute = y, label},                          visualize as scatter,                          all axes = grid]       data{x,y         0, 3.655         2.40, 13.64         4 , 23.58         5, 44};     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/eZ8TD.png)


title: Repeating figures in an appendix

text: For a paper I'm working on they want to have an appendix with all the figures from the main text. That is, figures should be in the main text (for publication), but they should be repeated in an appendix (for easy reviewing). Is there any package that does this? If not, how would I go about renewing the figure environment to create such an appendix?


title: Spacing after Section

text: I have some `subsubsection`-titles that break the line and some that don't. The spacing after the title is different for those two cases. I am currently using so many packages and stuff (`titlsec` is one of them) and I tried to find a MWE that reproduces the problem:               \documentclass[twocolumn]{article}     \usepackage{lipsum}     \RequirePackage[explicit]{titlesec}          \titleformat{name=\subsubsection,numberless}           {\normalsize\sffamily\bfseries}           {}           {0em}           {\parbox[t]{\linewidth}{\raggedright#1}}           []       \titlespacing*{\subsubsection}{0pc}{1.7ex \@plus2pt \@minus1pt}{0pt}          \begin{document}          \subsubsection*{Some long long long long text that should break the line}     \lipsum[2]          \subsubsection*{some other text}     \lipsum[2]          \end{document}      Does anyone have any idea why this weird spacing may occur?


title: What does \p@ mean in some code?

text: I have found the source code within `octavo.dtx` (from the `octavo` package) and it has some parts called `\p@`. I have searched throughout the document, but cannot understand what this is defined as or what it does and it is too short a term to do a Web search. Is this specific to the document or common to TeX? Here is a portion of the code:               \if@titlepage              \newcommand\maketitle{\begin{titlepage}%              \let\footnotesize\small              \let\footnoterule\relax              \let\footnote\thanks          %    \end{macrocode}          %    The title itself is centered vertically, with a little offset brought by          %    a |\vskip|.          %    \begin{macrocode}              \null\vfil              \vskip 60\p@          %    \end{macrocode}        * What does the `\p@` do?


title: Creating a Word Index for a Book

text: I'm writing a book using `memoir` with a lot of technical words. I want to have an index at the end, which, for each word or term I choose, will refer the reader to the relevant pages. Is there any efficient way to build this index as I write?


title: Endfloat compilation error

text: Why is the following MWE giving me an error? I want use endfloat to number the tables in each chapter with I, II, III etc. I also want to print a list of tables and figures at the end of each chapter rather than the end of the document. Also, I can't get the table that is on a landscape page in the document to display as landscape on it's own page in the list of tables at the end. The table is very wide, so I need to keep it on a landscape page on its own.               \documentclass[a4paper,12pt,twoside]{book}     \usepackage{pdflscape}          \usepackage[]{endfloat}     \renewcommand{\theposttable}{\Roman{theposttbl}}     \renewcommand{\thepostfigure}{\Roman{postfig}}     \renewcommand{\thefigure}{\Roman{figure}}     \renewcommand{\thetable}{\Roman{table}}          \begin{document}          \chapter{This is Chapter 1}     Some text in chapter 1.  See my figure \ref{tab:table1}.          \begin{table}     \caption{First Table} \label{tab:table1}     \end{table}          \let\cleardoublepage\clearpage     \chapter{This is Chapter 2}     Some text in chapter 2.  See my figure \ref{tab:table2}.          \begin{landscape}     \begin{table}     \caption{First Table} \label{tab:table2}     \end{table}     \end{landscape}          \end{document}


title: pgfplots: marks in table as ellipse with size of error bars, area of uncertainty?

text: Is it possible, and if yes how, to plot a table with `pgfplots` where the marks are ellipses with the major and minor semiaxes being the size of the error? Such that a data point is displayed as its own "area of uncertainty". Fading-out towards the edges of the ellipses would be a nice plus but is purely optional. Unfortunately I can't provide an "already-tried-it-this-way example", because I have absolutely no idea where to start here.


title: Can individual items in an itemize list be labelled and hyperref linked?

text: If I try to label items in a list as in               \documentclass{article}          \usepackage{hyperref}          \begin{document}          \begin{itemize}     \item blah \label{list:blah}          \pagebreak          \item foo \label{list:foo}          \pagebreak     \end{itemize}          reference to blah \ref{list:blah}     \pagebreak     reference to foo \ref{list:foo}          \end{document}      Then the links back to the items all go back to the beginning of the list. Is there a way to make each list item be separately labelled?


title: How do I install a font relative to a document?

text: I am working on a new LaTeX template for our lab and would like to use some non-standard fonts. Is there a way to access font files relative to a document? For example, an ideal directory structure would look something like:               /grants       /templates         /fonts         /classes       /<individual grant documents>      Then, the whole thing can be stored in a version control system and shared/accessed from the many machines around the lab. I have been unable to find any way to do this so far. I don't necessarily need to access TTF fonts or anything special, just some non-standard ones specifically for LaTeX.


title: What's the best Linux tool to do math formulas with LaTeX?

text: I'm using kile in Linux, but, unfortunately writing math with it is very hard. I'd like a tool to write math formulas in a easy way, like "Basic Math Input" in Mathematica software. Is there a good one?


title: What makes nodes gradually move down?

text: Please carefully consider the following diagram. What makes the `\psframebox` nodes gradually move down? ![enter image description here](http://i.stack.imgur.com/YEUZp.png)               \documentclass[preview,border=15pt]{standalone}     \usepackage{pst-node}     \addtopsstyle{gridstyle}{griddots=0}     \psset     {         framearc=0.5,         framesep=0.5,         linewidth=0.5,         colsep=1,         rowsep=1,            mnode=r,     }          \def\A{\psframebox{\pspicture(2,1)\psframe*[linecolor=blue](2,1)\endpspicture}}     \begin{document}     \begin{preview}     \pspicture[showgrid=top](6,20)     \rput[tl](1,20){%     \psmatrix         \A  \\         \A  \\         \A  \\         \A  \\         \A  \\     \endpsmatrix}     \endpspicture     \end{preview}     \end{document}


title: Can't find tikz subfiles

text: I've the following project structure:               ./main.tex     ./ch1/ch1.tex     ./ch1/tikz1/tikz1.tex      The main.tex looks like:               \documentclass{book}     \begin{document}     \subfile{./ch1/ch1.tex}      \end{document}      The ch1.tex looks like:               \documentclass[../main.tex]{subfiles}     \begin{document}     \begin{figure}[H]     \centering     \subfile{./tikz1/tikz1.tex}     \end{figure}     \end{document}      When I run the ch1.tex everything is ok, it finds the tikz1.tex, but when I run the main.tex it can't find the tikz1.tex.


title: Upquote: Error in symbols-a4.pdf?

text: > • To replace ‘ and ’ with the more computer-like (and more visibly distinct) > ` and ' within a verbatim environment, use the upquote package. Outside of > verbatim, you can use \char18 and \char13 to get the modified quote > characters. (The former is actually a grave accent.) ( http://mirror.ox.ac.uk/sites/ctan.org/info/symbols/comprehensive/symbols-a4.pdf ) However, pdflatex/xelatex on               \documentclass{article}     \begin{document}     \Huge \char13      \end{document}      produces ![enter image description here](http://i.stack.imgur.com/dz3KY.png) What's happening?


title: Specifying font size in a \newcommand?

text: I'm typing up a document in which I'd like to the margin's note font to be footnote size. This is my code:               \documentclass[12pt]{article}     \usepackage{outlines,marginnote}     \usepackage[top=1cm, bottom=1.3cm, left=5cm, right=0.75cm, heightrounded, marginparwidth=4.6cm, marginparsep=3mm]{geometry}     \reversemarginpar     \newcommand{\mn}{\marginnote}     \pagestyle{empty}          \begin{document}     \begin{flushleft}     \Large \underline{Chapter 8 \textsc{Lipids}}       \end{flushleft}          \section*{Lipids}     \begin{outline}[enumerate]       \1 What is a lipid? \mn{{\footnotesize How's it different from the other functional groups?}}     \end{outline}          \end{document}      As it can be seen from my MWE, I had to specify the font size while making the margin note, but I want `\footnotesize` to assumed automatically. I'm thinking this can be done by modifying my `\newcommand` for margin note. I tried playing around with it, but nothing worked. If anyone could point me in the right direction, I'd really appreciate it.


title: biblatex control file version newer than expected

text: **Edit** : I found the solution - see below for details. I'm having a problem running biber (see below).               $ biber  thesis-base     INFO - This is Biber 0.9.9     INFO - Logfile is 'thesis-base.blg'     INFO - Reading 'thesis-base.bcf'     WARN - Warning: Found biblatex control file version 2.5, expected version 1.7     INFO - Found 21 citekeys in bib section 0     INFO - Processing bib section 0     INFO - Looking for bibtex format file 'referenser.bib' for section 0     INFO - Decoding LaTeX character macros into UTF-8     INFO - Finished Decoding LaTeX character macros into UTF-8     INFO - Found BibTeX data source 'referenser.bib'     INFO - Sorting list 'MAIN' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Writing 'thesis-base.bbl' with encoding 'UTF-8'     INFO - Output to thesis-base.bbl     INFO - WARNINGS: 1      I'm Ubuntu (3.11.0-12-generic) with Texlive installed from the website. As far as I can tell `tlmgr` is fully upated (revision 31673). Running `tlmgr update --all` does not resolve this problem. And I, as a result, cannot compile the LaTeX file. Please advice. **Edit** : found a solution (I include a long description for those who repeat the mistake): I had originally installed both texlive and biber as ubuntu packages. When I realised texlive didn't play well, I removed the texlive package and installed it directly using the `www.tug.org/texlive` website but I forgot to also remove the biber package (as it's included with texlive). My PATH environment variable was set to: `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/texlive/2013/bin/x86_64-linux` which meant the outdated ubuntu version of biber was used rather than the newer texlive version. I solved this by verifying ubuntu biber was installed:               # which biber     /usr/bin/biber     # dpkg -S /usr/bin/biber     biber: /usr/bin/biber      and then simply removing the ubuntu version:               # apt-get --purge remove biber      and it's working flawlessly now. (current biber version is 1.8).


title: Can I easily reformat a document to place figure legends on a separate page?

text: I am submitting an article to a journal with the following requirement: > Figure legends should be listed one after the other, as part of the text > document, separate from the figure files. Currently, my figure captions are in the format               \caption[short caption]{full caption}      And I only want the `full caption` to appear. Can I insert the complete figure legends in a list of figures, and exclude them from the figure itself? (Edit: without changing the behavior of table captions?)


title: A figure-like environment that can contain many subfigures and break over pages: How to align double-column starts after the thing properly?

text: I have a problem similar to post 11059, i.e., I need a figure-like environment that can contain an arbitrary number of sub-figures. These may take so much space that the figure may span over multiple pages, i.e., be something like a figure series. Additionally, this environment should work in both single- and double-column documents. Since I did not find a package that can do that, I tried to make one myself and I think I am almost there. You can find my current solution approach, the "`figureSeries`" package at my blog. There I discuss my idea in detail, list the currently unfixed problems, and provide everything for download (LaTeX package, sources, examples). To describe my (currently incomplete) approach fully here seems to be too much, especially if I wanted to include code and examples. Thus, I think I leave the details on my website and give only a short outline introducing the main ideas and the problem. (I hope I do not violate any community rules by doing so.) Anyway, my solution idea works as follows: Like Hendrik Vogt in post 11059, I make a `center` environment instead of a `figure`. I make it (almost) float by using the command `\afterpage` from the `afterpage` package. Inside the environment (or, actually, command body), the subfigures are rendered as `\subcaptionboxs` (from the `subcaption` package. Spacing between the subfigures is achieved via `\strut\hfill\struts`, so the number of subfigures per row doesn't matter, they will still be distributed nicely. That's all that needs to be done in the single-column case. For the double-column case, things get more complex: I first switch the `\onecolumn`, since such a series of figures only makes sense at full page width. `\onecolumn` causes a page break, but that can be defused by putting the figure series into an `\afterpage` (it starts on the next page, hence there is a page break anyway). After the the figure series, I switch back to `\twocolumn`, which would case a page break as well (potentially in the middle of a page, ugly). In order to avoid that, I temporarily `\let\clearpage\relax`. This in turn messes up the beginning of the following text: The text of the now starting left column begins right under my figure, but in the right column, it starts at the page top (and writes over my figures!). In order to avoid that, I calculate the occupied space of my figure via `\pagetotal` and then `\afterpage` a `\vspace` of the same size into the beginning of the right column. That works _almost_ well: The two columns now often start at the same vertical offset, but sometimes are a bit off... I still need to work on that and welcome any feedback. **That, basically, is my question: How can I properly align the starting lines of the two columns beginning after my figure series vertically? Is there a way to make my method work reliable?** Anyway, as you see, that is a bit too complex to put everything here. Since I would really appreciate help to get this to work right, I wrote a detailed description and included my code and examples at my blog. If the problems with my solution can be fixed, I would post an update here and release it to ctan.


Tabular content spilling over right column margin. What's going on here? How can I fix it? ![enter image description here](http://i.stack.imgur.com/bOiIH.jpg)               \documentclass[a4paper,12pt]{article}          \author{Peter Cao}     \date{}     \usepackage[font=small,labelfont=bf,tableposition=top]{caption} %apparently needs to come first or options clash with other packages will occur          \usepackage[x11names,dvipsnames]{xcolor} %for use in color links                    \usepackage[hyphens]{url}     \usepackage[colorlinks=true,linkcolor=Blue4,citecolor=blue]{hyperref}     \usepackage[hyphenbreaks]{breakurl}     \usepackage{a4wide}     \usepackage{graphicx}          \usepackage[version=3]{mhchem}          \usepackage[T1]{fontenc} %for > and < in text mode     \usepackage{tikz}     \mhchemoptions{arrows=pgf-filled}          \usepackage{booktabs} %for top, middle and bottomline          \usepackage{multirow} %multi column and row spanning          \usepackage{amsmath}               \usepackage{cite}          \usepackage{multirow}     \usepackage{tabularx}                         \usepackage{siunitx}          \usepackage{fancyhdr}     %\usepackage{fancyheadings} seems to be obsoleted by fancyhdr          \usepackage{comment}     \usepackage{multicol}               \usepackage{lastpage}          \newcommand{\ignore}[1]{} %a null macro which gobbles up comments, and thus acts as a tool for in-line commenting.               \usepackage{blindtext}                         \begin{document}          \begin{multicols}{2}          \subsection*{Results}          {\small     \begin{tabularx}{\columnwidth}{l | c | c}     \toprule     Characteristic & \multicolumn{2}{c}{Result}\\      \cmidrule(l){2-3}      & Seaweed isolate & Coral isolate \\     \cmidrule(r){1-1} \cmidrule(l){2-3}     Cell shape & Rod & Rod\\     Gram stain & $-$ & $-$\\     Oxidase & $+$ & $-$\\     Catalase & $+$ & $-$\\     MSA & Growth & No growth\\     Anaerobic & Growth (weak) & No growth\\     Motility & & \\     Indole production & & \\     Hugh \& Leifsons & & \\     \bottomrule     \end{tabularx}     }          \blindtext          \end{multicols}          \end{document}      **Updated version demonstrating shrinkage issues:**               \documentclass[a4paper,12pt]{article}          \usepackage{booktabs} %for top, middle and bottomline     \usepackage{multirow} %multi column and row spanning     \usepackage{multicol}     \usepackage{graphicx}          \begin{document}          \begin{multicols}{2}          \subsection*{Results}               {\noindent     \resizebox{\columnwidth}{!}{%     \begin{tabular}{@{} l c c @{}}     \toprule     Characteristic & \multicolumn{2}{c}{Result}\\      \cmidrule{2-3}      & Seaweed isolate & Coral isolate \\      \midrule     Cell shape & Rod & Rod\\     Gram stain & $-$ & $-$\\     Oxidase & $+$ & $-$\\     Catalase & $+$ & $-$\\     Anaerobic & Growth (weak) & No growth\\     Motility & & \\     Indole production & & \\     Hugh \& Leifsons & & \\     MSA & Growth & No growth\\     Growth in absence of salt & & \\     Colony pigmentation & White & White \\     \bottomrule     \end{tabular}     }     }                    \end{multicols}          \end{document}      ![enter image description here](http://i.stack.imgur.com/cHBKk.jpg)


title: Bullet and number indenting in list

text: I would like to make a custom indenting for lists:   1. Bullet or number is indented 1.2 cm from the left margin   2. Text (all lines) is indented 1.8 cm from the left margin I am trying to use the `enumitem` package. It is easy to indent text with `leftmargin` option, but I can not succeed with bullet/number indenting. I have tried different values for `itemindent`, `labelindent`, `labelwidth` and `labelsep` but have not achieved the result I am looking for. Here is MWE.               \documentclass{article}          \usepackage{enumitem}     \setlist{noitemsep, topsep=0pt, parsep=0pt, partopsep=0pt, leftmargin=1.8cm}          \begin{document}          \noindent Here is some text.          \begin{itemize}         \item \( y_i = 1 \) if individual \( i \) is employed is employed is employed is employed is employed is employed is employed is employed is employed is employed,         \item \( y_i = 2 \) if individual \( i \) is unemployed is unemployed is unemployed is unemployed is unemployed is unemployed is unemployed is unemployed,         \item \( y_i = 3 \) if individual \( i \) is inactive is inactive is inactive is inactive is inactive is inactive is inactive is inactive is inactive.     \end{itemize}     \noindent \rule{1.2cm}{1pt}$\bullet$ \par     \noindent \rule{1.8cm}{1pt} \par          \begin{enumerate}         \item \( y_i = 1 \) if individual \( i \) is employed is employed is employed is employed is employed is employed is employed is employed is employed is employed,         \item \( y_i = 2 \) if individual \( i \) is unemployed is unemployed is unemployed is unemployed is unemployed is unemployed is unemployed is unemployed,         \item \( y_i = 3 \) if individual \( i \) is inactive is inactive is inactive is inactive is inactive is inactive is inactive is inactive is inactive.     \end{enumerate}     \noindent \rule{1.2cm}{1pt}3 \par     \noindent \rule{1.8cm}{1pt} \par          \noindent Here is some text.          \end{document}


title: Possible to avoid re-compilation of unmodified part of LaTeX document?

text: I have some TikZ code in my LaTeX document. Whenever I edit other parts in the LaTeX document, I recompile it. But repeating recompiling unmodified TikZ code can be time-consuming. I was wondering if there is some way to avoid re-compilation of unmodified part of LaTeX document? If such methods exist, do they apply not just to unchanged TikZ code but also unchanged non-TikZ code? Thanks and regards!


title: Could I be able to left-align the following equations? (Please note that one of which is mult-lined)

text: \documentclass[11pt,a4paper]{article}         \usepackage{blindtext}         \usepackage{mathtools}         \DeclareMathOperator{\sgn}{sgn}         \begin{document}     \begin{flalign*}      &D=     \sum_{\epsilon(1,2,3)}\epsilon(1,2,3)a_{11}a_{22}a_{33}.&\\     &\end{flalign*}     \begin{multline*}     D=     \epsilon(1,2,3)a_{11}a_{22}a_{33}+\epsilon(1,3,2)a_{11}a_{23}a_{32}+     \epsilon(2,1,3)a_{12}a_{21}a_{33}+\\     \epsilon(2,3,1)a_{12}a_{23}a_{31}+\epsilon(3,1,2)a_{11}a_{21}a_{31}+     \epsilon(3,2,1)a_{13}a_{22}a_{31}.     \end{multline*}     \end{document}