title: tikz clip rounded corners

text: How to apply this Tikz solution (Rounded corners only at one side of a TikZ node) to have the same effect on clipping? I want to clip things (images) using that rectangle with differently rounded corners. The result is clipped only with rectangle. Not with rounded corners. Thank you wery much!               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections}          \begin{document}          \makeatletter          \pgfkeys{/pgf/.cd,       rectangle corner radius north west/.initial=10pt,       rectangle corner radius north east/.initial=10pt,       rectangle corner radius south west/.initial=10pt,       rectangle corner radius south east/.initial=10pt     }     \newif\ifpgf@rectanglewrc@donecorner@     \def\pgf@rectanglewithroundedcorners@docorner#1#2#3#4#5{%       \edef\pgf@marshal{%         \noexpand\pgfintersectionofpaths           {%             \noexpand\pgfpathmoveto{\noexpand\pgfpoint{\the\pgf@xa}{\the\pgf@ya}}%             \noexpand\pgfpathlineto{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%           }%           {%             \noexpand\pgfpathmoveto{\noexpand\pgfpointadd               {\noexpand\pgfpoint{\the\pgf@xc}{\the\pgf@yc}}%               {\noexpand\pgfpoint{#1}{#2}}}%             \noexpand\pgfpatharc{#3}{#4}{#5}%           }%         }%       \pgf@process{\pgf@marshal\pgfpointintersectionsolution{1}}%       \pgf@process{\pgftransforminvert\pgfpointtransformed{}}%       \pgf@rectanglewrc@donecorner@true     }     \pgfdeclareshape{rectangle with rounded corners}     {       \inheritsavedanchors[from=rectangle] % this is nearly a rectangle       \inheritanchor[from=rectangle]{north}       \inheritanchor[from=rectangle]{north west}       \inheritanchor[from=rectangle]{north east}       \inheritanchor[from=rectangle]{center}       \inheritanchor[from=rectangle]{west}       \inheritanchor[from=rectangle]{east}       \inheritanchor[from=rectangle]{mid}       \inheritanchor[from=rectangle]{mid west}       \inheritanchor[from=rectangle]{mid east}       \inheritanchor[from=rectangle]{base}       \inheritanchor[from=rectangle]{base west}       \inheritanchor[from=rectangle]{base east}       \inheritanchor[from=rectangle]{south}       \inheritanchor[from=rectangle]{south west}       \inheritanchor[from=rectangle]{south east}            \savedmacro\cornerradiusnw{%         \edef\cornerradiusnw{\pgfkeysvalueof{/pgf/rectangle corner radius north west}}%       }       \savedmacro\cornerradiusne{%         \edef\cornerradiusne{\pgfkeysvalueof{/pgf/rectangle corner radius north east}}%       }       \savedmacro\cornerradiussw{%         \edef\cornerradiussw{\pgfkeysvalueof{/pgf/rectangle corner radius south west}}%       }       \savedmacro\cornerradiusse{%         \edef\cornerradiusse{\pgfkeysvalueof{/pgf/rectangle corner radius south east}}%       }            \backgroundpath{%         \northeast\advance\pgf@y-\cornerradiusne\relax         \pgfpathmoveto{}%         \pgfpatharc{0}{90}{\cornerradiusne}%         \northeast\pgf@ya=\pgf@y\southwest\advance\pgf@x\cornerradiusnw\relax\pgf@y=\pgf@ya         \pgfpathlineto{}%         \pgfpatharc{90}{180}{\cornerradiusnw}%         \southwest\advance\pgf@y\cornerradiussw\relax         \pgfpathlineto{}%         \pgfpatharc{180}{270}{\cornerradiussw}%         \northeast\pgf@xa=\pgf@x\advance\pgf@xa-\cornerradiussw\southwest\pgf@x=\pgf@xa         \pgfpathlineto{}%         \pgfpatharc{270}{360}{\cornerradiusse}%         \northeast\advance\pgf@y-\cornerradiusse\relax         \pgfpathlineto{}%            }            \anchor{before north east}{\northeast\advance\pgf@y-\cornerradiusne}       \anchor{after north east}{\northeast\advance\pgf@x-\cornerradiusne}       \anchor{before north west}{\southwest\pgf@xa=\pgf@x\advance\pgf@xa\cornerradiusnw         \northeast\pgf@x=\pgf@xa}       \anchor{after north west}{\northeast\pgf@ya=\pgf@y\advance\pgf@ya-\cornerradiusnw         \southwest\pgf@y=\pgf@ya}       \anchor{before south west}{\southwest\advance\pgf@y\cornerradiussw}       \anchor{after south west}{\southwest\advance\pgf@x\cornerradiussw}       \anchor{before south east}{\northeast\pgf@xa=\pgf@x\advance\pgf@xa-\cornerradiusse         \southwest\pgf@x=\pgf@xa}       \anchor{after south east}{\southwest\pgf@ya=\pgf@y\advance\pgf@ya\cornerradiusse         \northeast\pgf@y=\pgf@ya}            \anchorborder{%         \pgf@xb=\pgf@x% xb/yb is target         \pgf@yb=\pgf@y%         \southwest%         \pgf@xa=\pgf@x% xa/ya is se         \pgf@ya=\pgf@y%         \northeast%         \advance\pgf@x by-\pgf@xa%         \advance\pgf@y by-\pgf@ya%         \pgf@xc=.5\pgf@x% x/y is half width/height         \pgf@yc=.5\pgf@y%         \advance\pgf@xa by\pgf@xc% xa/ya becomes center         \advance\pgf@ya by\pgf@yc%         \edef\pgf@marshal{%           \noexpand\pgfpointborderrectangle           {\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}           {\noexpand\pgfqpoint{\the\pgf@xc}{\the\pgf@yc}}%         }%         \pgf@process{\pgf@marshal}%         \advance\pgf@x by\pgf@xa%          \advance\pgf@y by\pgf@ya%         \pgfextract@process\borderpoint{}%         %         \pgf@rectanglewrc@donecorner@false         %         % do southwest corner         \southwest\pgf@xc=\pgf@x\pgf@yc=\pgf@y         \advance\pgf@xc\cornerradiussw\relax\advance\pgf@yc\cornerradiussw\relax          \borderpoint         \ifdim\pgf@x<\pgf@xc\relax\ifdim\pgf@y<\pgf@yc\relax           \pgf@rectanglewithroundedcorners@docorner{-\cornerradiussw}{0pt}{180}{270}{\cornerradiussw}%         \fi\fi         %         % do southeast corner         \ifpgf@rectanglewrc@donecorner@\else           \southwest\pgf@yc=\pgf@y\relax\northeast\pgf@xc=\pgf@x\relax           \advance\pgf@xc-\cornerradiusse\relax\advance\pgf@yc\cornerradiusse\relax           \borderpoint           \ifdim\pgf@x>\pgf@xc\relax\ifdim\pgf@y<\pgf@yc\relax            \pgf@rectanglewithroundedcorners@docorner{0pt}{-\cornerradiusse}{270}{360}{\cornerradiusse}%           \fi\fi         \fi         %         % do northeast corner         \ifpgf@rectanglewrc@donecorner@\else           \northeast\pgf@xc=\pgf@x\relax\pgf@yc=\pgf@y\relax           \advance\pgf@xc-\cornerradiusne\relax\advance\pgf@yc-\cornerradiusne\relax           \borderpoint           \ifdim\pgf@x>\pgf@xc\relax\ifdim\pgf@y>\pgf@yc\relax            \pgf@rectanglewithroundedcorners@docorner{\cornerradiusne}{0pt}{0}{90}{\cornerradiusne}%           \fi\fi         \fi         %         % do northwest corner         \ifpgf@rectanglewrc@donecorner@\else           \northeast\pgf@yc=\pgf@y\relax\southwest\pgf@xc=\pgf@x\relax           \advance\pgf@xc\cornerradiusnw\relax\advance\pgf@yc-\cornerradiusnw\relax           \borderpoint           \ifdim\pgf@x<\pgf@xc\relax\ifdim\pgf@y>\pgf@yc\relax            \pgf@rectanglewithroundedcorners@docorner{0pt}{\cornerradiusnw}{90}{180}{\cornerradiusnw}%           \fi\fi         \fi       }     }          \makeatother          \begin{tikzpicture}     \clip [rectangle with rounded corners, rectangle corner radius south west=none,rectangle corner radius south east=none,rectangle corner radius north west=10,rectangle corner radius north east=10] (0,0) rectangle coordinate (clipname) (100,100);     \node [text width=100, inner sep=0pt] (mainpicnode) at (clipname)     {this i want to be clipped (originally its an image here)};     \end{tikzpicture}          \end{document}


title: list of newcounter

text: I've set up a `newcounter` in a LaTeX document:               \newcounter{example}[section]     \newenvironment{example}[1][]{\refstepcounter{example}\par\medskip        \textbf{Example~\theexample. #1} \rmfamily}{\medskip}      so that I can reference them throughout my document:               \begin{example}[title]     This is the first example. The counter will be reset at each section.     \end{example}      my question is, **how can I generate a list of all my examples?** In a similar way to a list of figures, I was hoping I could get a list of examples, with their titles, and the page number they appear on. **Is this possible?**


title: Use case for Latin Modern Math (LM Math)

text: Since July 2011, there has been a beta release of LM Math. Some people seem to be quite excited about this. The release announcement states that this release > ...completes the modernization of the Computer Modern family of typefaces > .... the modernization was incomplete without the math fonts of the Comupter > Modern family I understand many reasons to use the lmodern **text** fonts:   * better support for diacritics and non-english glyphs than CM (allowing hyphenation, etc). See this FAQ answer for more details;   * allowing correct search and copy/paste from the pdfs unlike the virtual font-based solutions (`\usepackage{ae}`, `\usepackage{zefonts}`);   * decent type 1 outlines, rather than EC-fonts' bitmapped type 3, or the slightly rough autotraced type 1 from CM-Super, etc;   * slightly improved metrics and diacritic positioning compared to EC, and a small number of redesigned/improved glyphs and ligatures;   * some additional shapes and weights compared to the bluesky/ams/y&y CM (eg: roman slanted smallcaps, light/dark/condensed typewriter). See the table at the end of this document. As far as I can tell, none of these advantages apply to the LM Math fonts. So my question is, why did the GUST team feel the need to produce new math fonts? As far as I can tell the only advantage that they quote on their release announcement is that they are "modern", but I fail to find "new" a compelling argument. Why would I use a newer, less-tested font (that, if it is anything like the other LM fonts, is likely less well-hinted than bluesky/ams/y&y CM)? _I understand that this in an early beta release, so it is not suprising that there is not much (any?) documentation or rationale accompanying the fonts, but I hope someone here knows the reason for them._ **EDIT:** I looked a bit harder, and I saw that my installation of the `lm` package, version 2.004, 30.10.2009 already includes math fonts. In LaTeX I can use them by default `\usepackage{lmodern}`, or not by `\usepackage[nomath]{lmodern}`. The README says that these 20 math fonts are "at the moment a duplicate of PL math fonts", which presumably refers to these fonts. So, presumably, this new LM Math release is to replace these PL math fonts with something else. So, in addition to my question about what was wrong with the bluesky/ams/y&y CM math I'd also be interested to know: what was wrong with the PL math fonts?


title: Where to put floats definitions?

text: I always use floats for figures, tables, graphs, and any other object that is not part of the text. LaTeX do a really good job. Normally I put the definition when i use a withe line (after the paragraph that contains the reference to the float). It is correct? Where we have to put float definition (after the reference with `input`, at the end of the sentence, ...) to have the best positioning of float (decided by LaTeX, without options like `h`, `b`, ... that i never use)?


title: How remove dot after section number in ToC with babel's spanish?

text: I'm using the `book` document class and the `babel` package with the `spanish` option, I have a ToC like this: >   1. **CHAPTER NAME**   >  1.1. SECTION NAME   >  1.1.1. Subsection name   >  1.1.1.1. _Subsubsection name_ > How can I remove the dot after sections numbers, tables numbers on LoT and figure numbers on LoF?. P.S.: The Chapter number should have a dot. Here a MWE               \documentclass{book}     \usepackage[spanish,es-lcroman]{babel}          \setcounter{secnumdepth}{4}     \setcounter{tocdepth}{4}     \makeatletter     \def\@seccntformat#1{\csname the#1\endcsname\quad}     \makeatother          \begin{document}          \tableofcontents          \listoftables          \listoffigures          \chapter{CHAPTER NAME}          \section{SECTION NAME}          \subsection{Subsection name}          \subsubsection{Subsubsection name}          \begin{table}         My table         \caption{Table}     \end{table}          \begin{figure}         My figure         \caption{Figure}     \end{figure}          \end{document}      Note that I'm using the code:               \makeatletter     \def\@seccntformat#1{\csname the#1\endcsname\quad}     \makeatother      to remove the dot after sections number in the document.


title: Dump command as readable text?

text: Is it possible to dump the expanded form of a command as text? E.g. when I write a macro               \newcommand{\mytest}[1]{\texttt{#1}}      I would want to define a macro `\mydump` such that               \mydump{\mytest{Hello World}}      creates a literal text `\mytest{Hello World}` in the output file. When experimenting with custom macros, I sometimes run into rather unhelpful error messages. It would help a lot to be able to view level by level, how the problematic command is expanded. I know that there are commands like `\show`, but those are command line oriented. Usually however I will be working in a LaTeX editor, that by default doesn't even show the log file, e.g. TeXStudio or Emacs with AUCTeX. So a more practical solution would be to put similar information into the output pdf file. I tried to produce the needed output with something along the lines of combining `\verb` and `\expandafter`, but this gives no viable results (due to how LaTeX parses text into tokens and expands tokens as macros).


title: Error using \( ... \) environment inside \section argument

text: This seems to me like a possibly common problem, the solution of which is probably already been posted somewhere, unfortunately I'm not quite sure what key words i should use to find it. Anyway, to the problem: Something like this               \subsubsection{Spin-orbit coupling \( ciao \) }      will not usually pose a problem. However when i try to create a table of content with the               \tableofcontents      command i get the following error:               \contentsline {subsubsection}{\numberline {5.1.2}Spin-orbit coupling \relax $ ciao \relax \GenericError { }{LaTeX Error: Bad math environment delimiter}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}}{8}{subsubsection.5.1.2}      The table of contents seems to not be the problem by itself, because when i do not use commands as the one shown above everything works fine. Strangely enough, i can actually solve the problem by using instead of `\( stuff \)` the alternative `$stuff$`. Now, is this supposed to work this way? or is it some sort of bug? or (more likely) am i doing something wrong?


title: Compiling tikzmanual example with chains and branches

text: Does someone know how I must compile the example of the tikz/pgf user manual (v2.10) in section 28.5:               \usetikzlibrary{chains}          \begin{tikzpicture}[every on chain/.style=join,every join/.style=->,     node distance=2mm and 1cm]     { [start chain=trunk]     \node [on chain] {A};     \node [on chain] {B};     { [start branch=numbers going below]     \node [on chain] {1};     \node [on chain] {2};     \node [on chain] {3};     }     { [start branch=greek going above]     \node [on chain] {$\alpha$};     \node [on chain] {$\beta$};     \node [on chain] {$\gamma$};     }     \node [on chain,join=with trunk/numbers-end,join=with trunk/greek-end] {C};     { [start branch=symbols going below]     \node [on chain] {$\star$};     \node [on chain] {$\circ$};     \node [on chain] {$\int$};     }     }     \end{tikzpicture}      Like this I get               Line 6: Package tikz Error: Unknown chain ``chain''.


title: Minted custom label and reference

text: I use minted for listing Objective-C code and I need to replace the label text from Listing 1. to `Source Code #chapter_number#.#subsection_number#.#subsubsection_number#.#label_number#` like "Source Code 2.2.2.1. Starting the accelerometer". Also, I need to refer this like "Source Code 2.2.2.1.". How can I accomplish this? I tried:               \usepackage{minted}         \renewcommand\listingscaption{Source Code \thesubsection -}      But it isn't working when I try to use `\cref` or `\ref` or `\autoref` I got "listing 1 1". Thanks for your time and help!


title: Cross-referenced equation never becomes defined

text: I have a strange problem with cross-referencing my equations: no matter how often I run pdflatex they stay undefined. Other references do get resolved. Is there something wrong with the way I label my equation? Pdflatex does not complain about it (other than reporting it is undefined when trying to reference it). Edit: As requested below I made a minimal working example. From this I learned that the problem seems to be a conflict between the amsmath and ntheorem packages. Not including one of these solves the problem. Consider for example the following example:               \documentclass{article}     \usepackage{amsmath}     \usepackage[thmmarks]{ntheorem}          \begin{document}          \section{My Section}     \label{sec:MySection}          \begin{equation} \label{eq:MyEquation}     a = b     \end{equation}          Reference my section \ref{sec:MySection}.     Reference my equation \ref{eq:MyEquation}.          \end{document}      Which is rendered as: ![Not working](http://i.stack.imgur.com/D2lsA.jpg)


title: In the minted package, how do I enforce straight single quotes?

text: Basically I want               \mint{python}|'banana'|      to produce straight single quotes, rather than the curly ones it normally produces (in `pdflatex`).


title: Standard single quotes for code in listings

text: In my code, I have curved quotes (see screenshot). Can I replace them with vertical quotes? ![enter image description here](http://i.stack.imgur.com/I00xD.png) This is my formatting code:               \lstset{%     % General design     backgroundcolor=\color{lightgray},     basicstyle={\small\ttfamily},        frame=l,     % Code design     identifierstyle=\color{black},     keywordstyle=\color{blue}\bfseries,     ndkeywordstyle=\color{greenCode}\bfseries,     stringstyle=\color{ocherCode}\ttfamily,     commentstyle=\color{darkgray}\ttfamily,     % Code     language={JavaScript},     tabsize=2,     showtabs=false,     showspaces=false,     showstringspaces=false,     extendedchars=true,     breaklines=true,     captionpos=b,     % line-numbers     xleftmargin={0.75cm},     numbers=left,     stepnumber=1,     firstnumber=1,     numberfirstline=true,     }


title: Referencing tables in pandoc

text: Pandoc allows referencing images via inline Latex commands. However, it seems it does not work for tables. I'm aware of several workarounds, including manipulating a resulting TeX file manually, but is there a way, for example via inline Latex, to get pandoc to output Latex/PDF/... with automatic table references, like the following (which does not work):               See table \ref{example}.          ----------     my  table     --- ------     a   1     b   2     ----------     Table \label{example}: An example that does not work.


title: How to change default font style in math mode?

text: In my latex document I would like to change the default font style (i.e italic) of the math mode to normal shape. By now I am using **\mathrm** but is there a way to set the style of a specific math snippet? Something like this:               \begin{align}[font=\rmfamily]     ...     \end(align)


title: In a 2-columned document, how do you get a table to stretch across the entire width?

text: I'm working on a document that runs two columns of text down the page, like many scientific conference proceedings. However, I'd like for a table to run across the entire width of the page, as it is far too wide to fit into one column. How do I do this?


title: Convolve two 2D Gaussians using tikzfading - intensity issues

text: I would like to visualize the convolution of two 2D Gaussians (or something looking similar). To do this, I declare them in a tikzfadingfrompicture environment. However, to get the desired result and not a whole in the middle when the centres are too close to each other, I need to set the transparency range between transparent!50 and transparent!0, making the out-coming images very hard to see. Is there a way to increase the intensity? or rescale the transparency afterwards to make the images more black in this case? MWE:               \documentclass[border=2mm]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}      \usepackage{tikz}      \usetikzlibrary{fadings}      \usetikzlibrary{shadings}      \begin{document}      \tikzfading[name=fade in, inner color=transparent!100, outer color=transparent!0]     \newcommand\DetFading[4]{        % % 1+2: xy a, 3+4; xy coords b        \begin{tikzfadingfrompicture}[name=fadingpict]        \begin{scope}          \clip (#1,#2) circle(1.5cm); % clip away the non-overlapping parts          \clip (#3,#4) circle(1.5cm);          \fill [black,path fading=fade in] (#1,#2) circle(1.5cm);          \fill [black,path fading=fade in] (#3,#4) circle(1.5cm);        \end{scope}        \draw [draw=black,line width=2cm] (#1,#2) circle (2.4cm); % remove borders due to clipping        \draw [draw=black,line width=2cm] (#3,#4) circle (2.4cm);     \end{tikzfadingfrompicture}      \node [fill=white,inner sep=0pt,outer sep=0pt,rotate=0,minimum width=3cm,minimum height=3cm] at (#1,#2) (textnode) {};      \shade[fill=black,path fading=fadingpict,fit fading=false,fading transform={xshift=#1,yshift=#2},rotate=0] (textnode.south west) rectangle (textnode.north east); }           \tikzfading[name=fade in half, inner color=transparent!50, outer color=transparent!0]      \newcommand\DetFadingHalf[4]{ % % 1+2: xy a, 3+4; xy coords b      \begin{tikzfadingfrompicture}[name=fadingpict]          \begin{scope}             \clip (#1,#2) circle(1.5cm); % clip away the non-overlapping parts             \clip (#3,#4) circle(1.5cm);             \fill [black,path fading=fade in half] (#1,#2) circle(1.5cm);             \fill [black,path fading=fade in half] (#3,#4) circle(1.5cm);           \end{scope}           \draw [draw=black,line width=2cm] (#1,#2) circle (2.4cm); % remove borders due to clipping           \draw [draw=black,line width=2cm] (#3,#4) circle (2.4cm);         \end{tikzfadingfrompicture}         \node [fill=white,inner sep=0pt,outer sep=0pt,rotate=0,minimum width=3cm,minimum height=3cm] at (#1,#2) (textnode) {};         \shade[fill=black,path fading=fadingpict,fit fading=false,fading transform={xshift=#1,yshift=#2},rotate=0] (textnode.south west) rectangle (textnode.north east); }         \begin{tikzpicture}           \DetFading{0}{3cm}{1.5cm}{3cm}           \DetFading{0}{0cm}{0}{0cm}           \DetFadingHalf{3cm}{3cm}{4.5cm}{3cm}           \DetFadingHalf{3cm}{0}{3cm}{0} %\node at (3,4) {a};         \end{tikzpicture}         \end{document}      * * * result: ![enter image description here](http://i.stack.imgur.com/vDFsC.jpg)


title: Is Inverse Search possible after the PDF file has been modified (e.g. annotated) (with Auctex and Okular)

text: I have configured Okular and Auctex so that forward and inverse search work like a charm when I have the *.tex file open and after I compiled the PDF file. I do, however, often encounter a scenario where some other person comments, corrects or annotates this PDF file. Is there a way to configure okular (or any other PDF viewer) and emscas in a way that inverse seach is still working under these conditions? I.e. under conditions where I cannot recompile the PDF file?


title: Alignment horizontal subcaption and TikZ

text: I have a problem with the alignment of 2 plots. The Problem is I want the captions to be horizontal aligned. Also the x-axis should be horizontal aligned! Is there a way to do that?               \begin{figure}[!h]\centering       \subcaptionbox{Plot 1 \label{fig:ufMna}}{        \begin{tikzpicture}[baseline,xscale=10,yscale=10]         \draw [<->, thick] (0,0.5)node[left]{$U$} -- (0,0) -- (0.5,0) node[below]{$f$};     \draw[blue, ultra thick](0,0)--(0.25,0.25) --(0.4,0.25);     \draw[dashed]  (0,0.25)node[left]{$U_{max}$} -- (0.25,0.25);     \end{tikzpicture}     }          \subcaptionbox{Plot 2 \label{fig:ufMnb}}{        \begin{tikzpicture}[baseline,xscale=10,yscale=10]     \draw [<->, thick] (0,0.5)node[left]{$M$} -- (0,0) -- (0.5,0) node[below]{$n$};     \draw[blue, ultra thick, ] (0,0.25)--(0.25,0.25)--(0.4,0.05);     \end{tikzpicture}        }         \caption{Showing 2 Plots}     \label{fig:ufMn}        \end{figure}


title: ntheorem: vertical space between chapters in listtheorems?

text: I have a ToC and list of problems in the same document. I struggle to make them look the same. I solved all, but the following issue. In ToC (and LoF) there's a space between chapters. `listtheorems` doesn't have it. I guess there should be a way to patch it to get verical space between chapters.               \documentclass{book}          % =====================     %% XeTeX customization:          \usepackage{fontspec} % enagles loading of OpenType fonts     \usepackage{polyglossia} % support for languages          % fonts:     \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes     \setmainfont{Arial}     \setsansfont{Arial}     \setromanfont{Arial}     \setmonofont{DejaVu Sans Mono}          % Russian/English document:     \usepackage{xecyr}     \newfontfamily\cyrillicfont{Arial}          \setmainlanguage{russian}     \setdefaultlanguage{russian}     \setotherlanguage{english}               % =======================     %% hyperref and ntheorem:          \usepackage[hyperref]{ntheorem}     \theoremlisttype{all}          \makeatletter     \newtheoremstyle{problem}       {\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]}%       {\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]}     \makeatother     \theoremstyle{problem}     \newtheorem{problem}{Задача}[chapter]          \usepackage{hyperref}               \begin{document}               \tableofcontents          \chapter*{List of problems}     \listtheorems{problem}          \chapter{foo}          \begin{problem}[Short foo name]       Foo!     \end{problem}          \chapter{bar}          \begin{problem}[Short bar name]       Bar!     \end{problem}          \chapter{baz}          \begin{problem}[Short baz name]       Baz!     \end{problem}          \end{document}


title: memoir: pagestyle for index start on second page of index

text: I'm trying to change the page style for the index, but I can't find out why that does only become effective on page 2 of the index:               \documentclass{memoir}      \usepackage{kantlipsum}           \makepagestyle{index}        \makeheadrule{index}{\textwidth}{\normalrulethickness}        \makeevenhead{index}{\rightmark}{}{\leftmark}        \makeoddhead{index}{\rightmark}{}{\leftmark}        \makeevenfoot{index}{Index - \thepage}{even}{even}        \makeoddfoot{index}{odd}{odd}{Index - \thepage}           \makeindex      \begin{document}      \chapter{One}      \kant[1-5]      \newcount\ind\ind=1\loop\index{\the\ind}\advance\ind1\ifnum\ind<400\repeat      \clearpage      \pagestyle{index}      \printindex      \end{document}       Page 3 of the output show a centered 3 instead of: odd odd Index - 3


title: Placing the Head of a Curved Arrow of a Reaction Mechanism Slightly Above the Plus Sign

text: My Code is:               \documentclass[12pt,letterpaper]{report}     \usepackage{blindtext}     \usepackage[utf8]{inputenc}          \usepackage{chemfig}     \usepackage{tikz}     \usetikzlibrary{arrows.meta}     \tikzset{       elmove/.style={-{Stealth[#1]},shorten >=3pt,shorten <=2pt}     }          \begin{document}     \begin{center}     \schemestart     \chemfig{@{Cl}\lewis{0.2:4:6:,Cl}}     \chemsign{+}\arrow(--nb){0}[,.2]      \mbox{}      \arrow{0}[,.2]\chemfig{H-[@{b}]@{C}CH_3}      \schemestop     \chemmove{      \draw[elmove=right, bend right]       (Cl) ..controls +(30:7mm) and +(115:7mm) .. (nb) ;      \draw[elmove=left]       (b) ..controls +(90:7mm) and +(75:7mm) .. (nb) ;       \draw[elmove=right]       (b) ..controls +(-90:7mm) and +(-90:7mm) .. (C) ;      }      \end{center}\par      \end{document}      I wanted to reproduce this: ![enter image description here](http://i.stack.imgur.com/kSFjU.jpg) I got this so far: ![enter image description here](http://i.stack.imgur.com/nPchW.jpg)


title: Bibliography won't print

text: I'm new to this forum, so I apologize if the question has already been posted. I've now spent a few days trying to figure this out, but haven't been able to solve it. the broblem is that by bibliography won't print and I'm not sure why... I'm working in Texmaker. Thanks in advance!               \documentclass[10pt,a4paper, twoside=true]{scrbook}           \usepackage[margin=2.8 cm, top=2cm, bottom =4cm]{geometry}          \usepackage{titlesec}          \usepackage{graphicx}          \usepackage{fancyhdr}          \usepackage{setspace}          \usepackage[font=footnotesize,labelfont=bf,textfont=bf]{caption}          \usepackage{mhchem}          \usepackage{units}          \usepackage{caption}          \usepackage{subcaption}          \usepackage[english]{babel}          \usepackage{wrapfig}          \usepackage{lscape}          \usepackage{rotating}          \usepackage{epstopdf}          \usepackage{float}          \usepackage{placeins}           \usepackage[justification=centering]{caption}          \usepackage{hvfloat}          \usepackage{boxhandler}          \usepackage{array}          \usepackage{biblatex}          \bibliography{test}          \begin{document}          \frontmatter          \include{FrontPage}          \tableofcontents          \cleardoublepage          \thispagestyle{empty}               \thispagestyle{fancy}          \renewcommand*{\chapterheadstartvskip}{\vspace*{0mm}}          \renewcommand*{\chapterheadendvskip}{\vspace{0.4cm}}          \pagestyle{fancy}          \fancyhead[LO, RE] {\rule[-4ex]{0pt}{10ex}\scriptsize \textbf{xxx}}          \fancyhead[LE, RO]{\rule[-4ex]{0pt}{4ex}\includegraphics[scale=0.12]{Logo-01}}          \fancyhead[C]{\footnotesize Report no.:xxx}%\fancyhead[RE]{Right}     \headheight = 30pt           \setlength{\headsep}{0.8in}          \renewcommand{\headrulewidth}{0.1pt}          \fancyfoot{}          \renewcommand{\footrulewidth}{0.1pt}          \fancyfoot[LE,RO]{\thepage}          \fancyfoot[RE,LO]{\scriptsize www.xxx.xx}          \footskip 20pt          \setlength{\parindent}{0cm}          \setlength{\parskip}{0.5cm plus4mm minus3mm}     \mainmatter               \include{IntroductiontoDNME}          \include{Results}          \include{Discussion}          \include{Conclusion}          \backmatter     \nocite{Sumner}          \printbibliography          \include{Endpage}          \end{document}


title: Redefining contentsline with hyperref loaded

text: The latex code below fails to compile at the 2nd round of pdflatex. If I remove the hyperref package it compiles fine, however if it's there, it fails to compile and complains giving this error > (./master.out) (./master.out) (./master.toc) > [1{/var/lib/texmf/fonts/map/pdftex /updmap/pdftex.map}] [2] (./master.lot ! > Argument of \contentsline has an extra }. \par l.3 \contentsline > {table}{\numberline {1.1}{\ignorespaces My table's caption... How can I sove it?               \documentclass[twoside,a4paper]{memoir}     \usepackage{hyperref}          \renewcommand\mempostaddchaptertotochook{%       \addchaptertoloft{lof}%       \addchaptertoloft{lot}%     }     \def\addchaptertoloft#1{%         \addtocontents{#1}{%           \protect\xcontentsline{chapter}            {\chaptername\ \thechapter\protect\nopagebreak\protect\vspace{1ex}}{}}}     \makeatletter     \def\xcontentsline#1#2#3{\@ifnextchar\contentsline        {\contentsline{#1}{#2}{#3}}{}}      \makeatother               \begin{document}          \cleardoublepage     \tableofcontents     \cleardoublepage     \listoftables     \cleardoublepage          \chapter{Chapter}          \begin{table}       \centering       \caption{My table's caption}         \begin{tabular}{l c c}              \hline             column 1 & column 2 & column 3 \\             \hline             r1 & r2 & r3 \\             r1 & r2 & r3 \\             r1 & r2 & r3 \\             r1 & r2 & r3 \\             \hline         \end{tabular}     \end{table}          \end{document}


title: How do I typeset the name of this site in (La)TeX?

text: How do I typeset the name of this site (TeX.SE) in (La)TeX? And, what _is_ the name of this site? I thought `TeX - LaTeX` was technically correct, but another user suggested something similar to `\TeX{} -- \LaTeX`. _This question grew out ofthis other question about citing this site properly._ Related questions (this will help with keeping everything consistent and preventing misinformation):   * Correct hyphen to a dash in the "About" page [meta]   * Use dashes in page titles instead of hyphens [meta]   * How do I properly cite TeX.SE for its help in typesetting? [meta]


title: Automatic branching for versions and git

text: I am writing my PhD thesis and as I am not the least chaotic guy I also add notes for future reference. Surely, this means it is not _production grade_ , or how you would like to call it. There is a nice package called `versions` which takes care of the versions. We also have the helpful answers in Using latexdiff with git to use git. My goal now is to have something similar to versions but that the content is removed when for example it is in between `\advisorcannotsee` and `\allokay` and this would be checked out in the `advisor`branch. Preferably, only the main version should be compiled (or the one marked as to be compiled). Would such a thing already exist, or are there better solutions for this problem? Per request: **Example workflow:**   1. I have a git repository working on the working directory of my thesis which includes all my remarks using `\input` or whatever.   2. I have several branches other than the main branch, say `paper1` and `advisor` which contains the same as the main branch (which contains it all) but then pieces cut out.   3. I modify my document and I add things which are for my eyes only (main) and some which are for my advisor. I would like to use something like the versions package to mark parts which belong to where.   4. When done editing I commit my changes. As my modification has parts which belong to a different branch I would like to have that the version which is okay for the advisor gets "built" (pieces cut out) and commited to `advisor` and the whole thing to main.


title: How to create  Page-a-Day Calendar Template

text: Recently I got a page a day for math Puzzles. I was wondering if there is a LaTeX Template out there. I am trying to learn new Language and for that I thought to create page a day calender. Any help in this matter would be greatly appreciated.


title: Does anyone know if the listed prerequisites for TikZ's pgfplots package are slightly off?

text: Does anyone (not to specifically ask Christian) know if the prerequisite PGF/TikZ version listed in the PGFPlots manual is off by a bit? I've been trying to use `\tikzset{external/mode=list and make}` and then `make -f <texfile>.makefile` to generate my images externally. The images were not being created and I was getting an undefined control sequence error in the image log files. The PGFPlots manual for version 1.7 that I have said it needs PGF 2.0. I had version 2.0 from June 2, 2010 installed at the time. I just upgraded to PGF 2.10 and then my process worked. I also did not see the section "Externalization Library" in the PGF 2.0 manual, but it does appear in the 2.1 manual. EDIT: This is the code I had been testing with:               \documentclass{article}         \usepackage{tikz}         \usetikzlibrary{external}         \tikzexternalize[prefix=figures/]          \begin{document}     \tikzset{external/mode=list and make}         \begin{tikzpicture}             \node{root}                 child {node{left}}                 child {node{right}                     child {node{child}}                     child {node{child}}                 };         \end{tikzpicture}     A simiple image is \tikz \fill (0,0) circle(5pt);.     \end{document}       This code did not work with my 2010 version of PGF 2.0, but worked when I upgraded to PGF 2.1.


title: Problem with a very heavy EPS image - scatter plot too heavy as EPS

text: Using Stata, I produced a scatter plot of some variables. I saved the image as an EPS file. There are around a 1000 dots in the scatter plot - and this makes the EPS file to be 26MB. I need to use this image in my LaTeX file (I use TeXnicCenter and compile as `LaTeX => PS => PDF`). The problem is that it produces a PDF file that takes a long time to load the page displaying the image. I don't need this image to be super sharp - there is no real point in zooming it in too much. Furthermore, the PDF I get is quite heavy for a 16 pages document. Is there anything I could do to improve the loading time of the page with the drawing, and decreasing the size of the PDF file? For example,   1. Would it be an improvement if I convert the image to JPEG, PNG, or BMP? Would it decrease the image size?    2. Is there a way to tell LaTeX to keep using the EPS image, but decrease the quality of the image?


title: Is it possible to have multiple paragraphs inside a multicolumn using xcolor or a replacement?

text: I am getting information written by users in many lines, paragraphs, and I have to put those inside a table, I would like to know if it is possible to instruct LaTeX to accept paragraphs inside a column or maybe inside a multicolumn? If I try to process this               \documentclass{article}          \usepackage[utf8]{inputenc}      \usepackage{datetime}     \usepackage{array}     \usepackage{longtable}          \usepackage[table]{xcolor}     \usepackage{graphicx}          \usepackage[spanish]{babel}          \setlength{\parindent}{0pt}     \setlength{\parskip}{1em}     \setlength{\textwidth}{17cm}     \setlength{\textheight}{21cm}     \setlength{\columnsep}{1.5pc}               \newenvironment{rtinformation}{       \begin{longtable}{|m{7cm}|c|m{7cm}|}       }       {         \hline       \end{longtable}     }          \newcommand{\rtsingle}[1]{       \hline       \multicolumn{3}{|p{15cm}|}{#1}\\     }          \newcommand{\rttitlesubsection}[1]{       \hline       \multicolumn{3}{c}{ \bf{#1} } \\     }          \newcommand{\rtrowinfo}[2]{       \hline       #1: & & #2 \\     }          \newcommand{\rttitlesection}[1]{       \hline       \multicolumn{3}{c}{} \\       \hline       \multicolumn{3}{|>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{ #1 } \\       %\multicolumn{3}{|c|}{ #1 } \\     }               \begin{document}     \begin{rtinformation}       \rttitlesection{This is my section}       \rtrowinfo{¿Ha realizado alguna gestión respecto de este predio, ante otra entidad?}{Sí}       \rttitlesubsection{Descripción de gestión:}       \rtsingle{         There are               plenty              of paragraphs, the guilty is [table]xcolor       }          \end{rtinformation}     \end{document}      I get the error               ! Paragraph ended before \multicolumn was complete.     <to be read again>                     \par       It looks like `\usepackage[table]{xcolor}` is getting in the middle, is there a replacement for `xcolor` to put some colored rows in a table? If I comment the inclusion of the package and the lines               \multicolumn{3}{|>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{ #1 } \\     \rttitlesection{This is my section}      Then LaTeX is able to process many paragraphs. Is there a suitable replacement for `xcolor`?


title: Nested custom theorems using amsthm

text: I am having trouble nesting custom theorem environments in such a way that the inner environment does not inherit the characteristics (e.g. HEADFONT, etc.) of the outer environment. Possibly the reason is that I hacked a numbered paragraph environment where the numbering is in parentheses. The parentheses seem to persist in the inner environment. EXAMPLE:               \documentclass{article}          \usepackage{amsthm}          \theoremstyle{definition}     \newtheorem{defn}{Definition}[section]          \newtheoremstyle{parag}       {\topsep}   % ABOVESPACE       {\topsep}   % BELOWSPACE       {}    % BODYFONT       {}       % INDENT (empty value is the same as 0pt)       {\bfseries(} % HEADFONT       {)}         % HEADPUNCT       { } % HEADSPACE       {}          % CUSTOM-HEAD-SPEC     \theoremstyle{parag}     \newtheorem{pp}[defn]{}                   \begin{document}     \section{Products}          \begin{defn}         A definition outside the numbered paragraph.     \end{defn}          \begin{pp}         This is a numbered paragraph         \begin{defn}             A definition inside a paragraph has leading open parentheses         \end{defn}     \end{pp}          \end{document}


title: Is Dropbox an effective tool for version control of latex documents?

text: Sorry this question might seem a bit premature but I'm in a hurry... I was trying to do Version control of a latex project with dropbox. In my imagination Dropbox provides functions like showing which specific textlines have been changed or automatically merging files. Unfortunately I can't find any of those functions. Is recovering old files really everything Dropbox can provide? Which program do I need for accomplishing what I want?


title: Elsarticle: pagebreak before abstract

text: I am using the elsarticle template and according to the preparation rules the Abstract should be presented in page 2. Yet, the newpage is ignored. Any suggestion? Note that the Abstract is part of the frontmatter. Here it is the setup:               \documentclass[authoryear,preprint,review,12pt]{elsarticle}          \journal{Journal of Parallel and Distributed Computing}          \begin{document}          \begin{frontmatter}          \title{Title of the Paper {\Large (Regular Submission)}}          \author{Author 1}     \ead{author1@domain.com}     \author{Author 2}     \ead{author2@domain.com}     \address{Address}          \begin{abstract}          %% Text of abstract          \end{abstract}          \begin{keyword}     %% keywords here, in the form: keyword \sep keyword          \end{keyword}          \end{frontmatter}          % \linenumbers          %% main text     \section{Section 1}          \end{document}


title: Tkz-berge does not respond to node-distance specification

text: I'm having some issues with the latest version of the `tkz-berge` package: it seems to be ignoring `node-distance` specifications. If I compile this file (using example n. 39 from the `tkz-berge` documentation),               \documentclass{article}           \usepackage{tkz-berge}     \usetikzlibrary{positioning}                \begin{document}           \begin{tikzpicture}      \SetVertexNoLabel        \GraphInit[vstyle=Shade]      \begin{scope}[rotate=-45]         \grComplete[RA=6]{4}      \end{scope}     {\tikzstyle{every node}=[node distance=1.64 cm]      \NOEA(a2){a5}}      \Edge(a2)(a5)      \Edge(a1)(a5)     \end{tikzpicture}          \begin{tikzpicture}      \SetVertexNoLabel        \GraphInit[vstyle=Shade]      \begin{scope}[rotate=-45]         \grComplete[RA=6]{4}      \end{scope}     {\tikzstyle{every node}=[node distance=5.64 cm]      \NOEA(a2){a5}}      \Edge(a2)(a5)      \Edge(a1)(a5)     \end{tikzpicture}          \end{document}      I get two identical graphs, in spite of the different `node distance` specifications: ![enter image description here](http://i.stack.imgur.com/HiwY1.png) Any thoughts?


title: Question about arrow in diagram

text: how i can write using latex to find this: ![enter image description here](http://i.stack.imgur.com/KvewC.png) but with long arrows Thank you.


title: How to move section label to new page if it is at the end of the page

text: In my report, sometimes, the section label is getting completely at the bottom, or if sometimes not completely, after the section label, there is only one or two lines, like the picture below: ![enter image description here](http://i.stack.imgur.com/EUhDc.jpg) How do I move the section to a new page if after the section there is less than 5 lines to obtain a new page?


title: Pushing the whole block of text to a new page

text: I wrote a a command in latex which takes a source (from where the text came from) and a block of text to display it. Here is the command:               \newcommand{\quranVerse}[4]{         \\[1\baselineskip]         \underline{Source}\\         \begin{arab}         #4\\[1\baselineskip]         \end{arab}     }      But I'm getting a problem, sometimes when the text is at the end of the page, the source is being displayed on one page and the text is being displayed on a new page as follows. I want to push the whole block source+text to a new page is there is not enough space on one page ![enter image description here](http://i.stack.imgur.com/5UxLP.jpg)


title: how to add a comic strip as a epigraph

text: I'm placing a quote as epigraph of every chapter. But for one i would like to place a calvin and hobbes strip. Which is the best way to do so and keep complaining with the epigraph style?               \documentclass[11pt]{book}      \usepackage{epigraph}     \usepackage{epsf,graphicx,subfig}      \begin{document}          \chapter{Test chapter}     \epigraph{\includegraphics[width=.5\textwidth]{calvin.jpg}}{Bill Watterson}     chapter's text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text     \end{document}


title: Inserting matrix in Latexdraw

text: I am using LatexDraw for drawing a graph and its corresponding matrix and thereby generating the Pstricks codes.. But I am having problem in inserting the matrix. I have attached here the screen shot. ![enter image description here](http://i.stack.imgur.com/9N4Rx.jpg) I don't know whether a matrix can be inserted that way or not. Please provide me some suggestion.


title: Keeping first and last rows of a pgfplotstable with longtable on a page

text: I am using `pgfplotstable` along with `longtable`. Everything works good, but sometimes a single row can be on one page, which is kind of ugly. How can i keep the first 3 and last 3 rows of the table on one page? Thanks! * * * Here is the code I have been using so far:               \pgfplotstabletypeset[         begin table=\begin{longtable},         end table=\end{longtable},         every head row/.style={output empty row},         every first row/.append style={before row={%                 \caption{Runtime results in milliseconds of the algorithms \ref{alg:search-rg} and \ref{alg:search-rg-astar} tested on the potato network.}\label{tbl:results_potato}\\\hline%             Depth & \textsc{Bfs} & \textsc{Norm} & \textsc{NowmW} & \textsc{Heur}\\\hline                 \endfirsthead                 \multicolumn{\pgfplotstablecols}{c}{{\tablename\ \thetable\ -- continued}}\\\hline                 Depth & \textsc{Bfs} & \textsc{Norm} & \textsc{NowmW} & \textsc{Heur}\\\hline                 \endhead                 \hline                 \multicolumn{\pgfplotstablecols}{r}{Continued on the next page.}                 \endfoot                 \hline                 \endlastfoot             },         },         col sep=comma,         string type,         columns/Depth/.style={column name=Depth, column type={l}},         columns/Bfs/.style={column name=\textsc{Bfs}, column type={n{5}{3}}},         columns/Norm/.style={column name=\textsc{Norm}, column type={n{5}{3}}},         columns/NormW/.style={column name=\textsc{NormW}, column type={n{5}{3}}},         columns/Heur/.style={column name=\textsc{Heur}, column type={n{5}{3}}},     ]{potato.csv}      Basically, told pgfplotstable to use a longtable, remove its own heading creation to customize them.


title: Import tex graphics to my main tex document

text: I want to create various plots with tikz package. I don't want to have the code for the plots in my main tex document because it's pretty messy. Is there a way to keep the tex code to different documents and just import the generated plots?


title: weird interpretation of vertical spacing macros in contents of lrbox / minipage / colorbox

text: I know I have seen this typesetting problem before, but I cannot find a solution. latex can be quite counterintuitive. All I am trying to do is to create a \panel{} header-type macro that works inside a slightly-modified table. the \panel should increase the spacing from the previous tabular and reduce it to the next tabular. I have stripped down an example to show the issue. how does one define a \panel macro that does what is expected of it?               \documentclass{article}          \usepackage{color}     \usepackage{booktabs}          \newsavebox{\selvesteboxtwo}     \newenvironment{colboxfigtbl}       {        \begin{lrbox}{\selvesteboxtwo}%        \begin{minipage}{\dimexpr\columnwidth-2\fboxsep-4em\relax}}       {        \end{minipage}\end{lrbox}%        \begin{center}%          \fcolorbox{blue}{yellow}{\usebox{\selvesteboxtwo}}%%real life do more        \end{center}        }          \newenvironment{newtable}[1][]{%       \begin{table}%         \begin{center}%           \begin{colboxfigtbl}           }{%           \end{colboxfigtbl}%         \end{center}%       \end{table}     }          \newcommand{\panel}[2]{%       \par\bigskip%       \begin{center} \textbf{Panel #1:} #2 \end{center}%       \par\vspace*{-1.5\baselineskip}%     }          \begin{document}          \begin{newtable}            \panel{A}{This is a bad panel}            \begin{center}\begin{tabular}{l r} \toprule A & B \\ \bottomrule \end{tabular} \end{center}            \panel{B}{This is a better panel}            \begin{center}\begin{tabular}{l r} \toprule A & B \\  \bottomrule \end{tabular} \end{center}            \panel{C}{This is a better panel}            \begin{center}\begin{tabular}{l r} \toprule A & B \\  \bottomrule \end{tabular} \end{center}          \end{newtable}          \end{document}


title: Automatically applying wrapfig hotfix only when a section heading is the last thing on a page

text: I have the same problem as the user 'mrf' on Wrapfig and page breaks after section heading (see link for MWE and hotfix). Using wrapfig basically messes up the document flow such that section headings sometimes stand alone at the bottom of a page with the section content starting on the next page (which I don't expect to happen under normal circumstances). David Carlisle suggested the following hotfix (second line):               \section{Section}     \pagedepth\maxdimen     \begin{wrapfigure}[5]{R}{50mm}      While this hotfix works for a MWE, it seemingly forces a page break even when there is no need for one, creating bad page breaks and thus making the hotfix very impractical to administer and effectively no better than manually inserting page breaks as needed. My question: Is there a way that the hotfix can be applied automatically when a section heading is placed alone at the bottom of a page, and otherwise not?


title: Remove first name on in-text citation

text: I am trying to sort out the citation and bibliography for a paper, and make it conform with the style-sheet from my university, which is a version of the Chicago style. There are chicago-styles available both to Natbib and Biblatex, but I can't get any of the do do what I want: Display only last name on "in-text" citation (unless there are many different authors with same last name), and then the full name in my bibliography. Here's a MWE:               \documentclass[a4 paper,12pt]{report}     \usepackage{graphicx}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{times}          \usepackage[english]{babel}          \usepackage[     authordate,     backend=biber,     natbib,     maxbibnames=99,     ]{biblatex-chicago}          \addbibresource{mybib.bib}          \usepackage{csquotes}          \begin{filecontents}{mybib.bib}     @BOOK{orton,       title = {Survey of English Dialects},       publisher = {Leeds: Arnold},       year = {1962},       author = {Orton, Harold},       volume = {IV},       date-added = {2014-04-20 12:50:04 +0000},       date-modified = {2014-04-24 18:41:22 +0000}     }     \end{filecontents}               \begin{document}          This is a quote \citep{orton} .  And then the second quote by the same person     \citep{orton}          \printbibliography     \end{document}      As you can see if you try to run this, the in-text citation provides the full name like this (Orton, Harold 1962), while I simply want (Orton 1962). The bibliography looks fine. John


title: Page breaks within the cases environment

text: I am using the `cases` environment multiple times within the `align` environment, inputting fairly long equations. This creates a lot of white space, which I would like to get rid of. Any suggestions of how to page break within the `cases` environment, or a suitable alternative, would be most helpful. To be more specific, I know that inputting \allowdisplaybreaks in the preamble does not break the cases environment (as can be seen in the following MWE).               \documentclass[11pt,a4paper]{amsart}     \allowdisplaybreaks     \usepackage{enumerate,amssymb,amsmath}     \begin{document}          \begin{align*}     &\text{something}\\     &=     \begin{cases}     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     &\text{if A;}\\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     &\text{if B.}\\     \end{cases}     \\     &=     \begin{cases}     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     &\text{if A;}\\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     &\text{if B.}\\     \end{cases}     \\     &=     \begin{cases}     \displaystyle{+      \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     &\text{if A;}\\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     \\     \displaystyle{+     \sum_{i=1}^{\frac{1}{2}(k-6)}     \frac{n^2-2n(k-3i+6)-4i}{n(2k+7i)}     \binom{\frac{n}{2}}{i}     \binom{\frac{n}{4}}{k-6i-1}v^{k-2i}}     &\text{if B.}\\     \end{cases}     \end{align*}          \end{document}


title: Using beamerdefs.sty insert background wallpaper on title

text: I have one `.tex` file which uses a `beamerdefs.sty` file. I now want to have a background picture (only) on the title page, but the problem is, the begin document section starts later and if I try to insert it before in the tex file or in the `beamerdefs.sty` file it just does not appear. I added `\usepackage{wallpaper}` already, here the code:               % Type of the document     \documentclass{beamer}          % elementary packages:     \usepackage{graphicx}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english]{babel}     \usepackage{listings}     \usepackage{xcolor}     \usepackage{eso-pic}     \usepackage{mathrsfs}     \usepackage{url}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{multirow}     \usepackage{hyperref}     \usepackage{booktabs}     \usepackage{wallpaper}     % additional packages     \usepackage{bbm}          % packages supplied with ise-beamer:     \usepackage{cooltooltips}     \usepackage{colordef}     \usepackage{beamerdefs}     \usepackage{lvblisting}     \usepackage{eso-pic}     \usepackage{everyshi}     \usepackage{calc}     \usepackage{graphicx}     \usepackage{ifthen}          % Change the pictures here:     % logobig and logosmall are the internal names for the pictures: do not modify them.      % Pictures must be supplied as JPEG, PNG or, to be preferred, PDF     \pgfdeclareimage[height=3cm]{logobig}{hulogo}     % Supply the correct logo for your class and change the file name to "logo". The logo will appear in the lower     % right corner:     \pgfdeclareimage[height=0.7cm]{logosmall}{logo}          % Title page outline:     % use this number to modify the scaling of the headline on title page     \renewcommand{\titlescale}{1.0}     % the title page has two columns, the following two values determine the percentage each one should get     \renewcommand{\titlescale}{1.5}     \renewcommand{\leftcol}{0.6}          % Define the title.Don't forget to insert an abbreviation instead      % of "title for footer". It will appear in the lower left corner:     \title[title]{title}     % Define the authors:     \authora{Author\footnote[1]{footnote}} % a-c     \authorb{}     \authorc{}          % Define any internet addresses, if you want to display them on the title page:     \def\linka{}     \def\linkb{}     \def\linkc{}     % Define the institute:               \institute{\textbf{School of Business and Economics}\\      \vskip1em          insert here\\     Chairholder: professor\\     Supervisors: another one\\     \vskip1em     \vskip1em     \definecolor{darkblue}{RGB}{21,58,96}     \textcolor{darkblue}{\textit{text blab alblal bla text}}      \vskip1em      \small     date and time\\      \vskip1em     \footnotesize     \textit{$^1$insert footnote here}}     \normalsize               % Comment the following command, if you don't want, that the pdf file starts in full screen mode:     \hypersetup{pdfpagemode=FullScreen}          %Start of the document     \begin{document}          % create the title slide, layout controlled in beamerdefs.sty and the foregoing specifications     \frame[plain]{     \titlepage     }      so here comes the beamerdefs.sty file:               %########################################     % Do NOT modify, unless you know what you do!          \newcommand{\authora}[1]{\def\theauthora{#1}}     \newcommand{\authorb}[1]{\def\theauthorb{#1}}     \newcommand{\authorc}[1]{\def\theauthorc{#1}}          \newcommand{\titlescale}{1.0}     \newcommand{\leftcol}{0.6}     \newcommand{\rightcol}{0.4}          \titlegraphic{\hspace{20pt}\raisebox{14pt}{\pgfuseimage{logobig}}}          % predefined commands:     \newcommand{\quantnet}{\hspace*{\fill} \raisebox{-1pt}{\includegraphics[scale=0.05]{qletlogo}}\,}          \newcommand{\BBI}[1]{\textit{#1} on BBI:\raisebox{-5pt}{\includegraphics[scale=0.11]{BBI_logo}}}          \newcounter{mexample} % define a new counter for the examples     \setcounter{mexample}{0} % initialize counter     \renewenvironment{example}{\refstepcounter{mexample}\color{isegreen}Example \themexample \par\vspace*{0.5em}}{\vspace*{0.5em}} % redefine example          % next line = with each \Section the pagecounter is reset     \let\oldSection\section     \renewcommand{\section}[1]{\oldSection{#1} \setcounter{page}{1}}%          % next line = pagecounter is not reset when a new section starts     %\newcommand{\Section}[1]{\section{#1}}          %We want no bullets or triangles     %\useitemizeitemtemplate{-}     \useitemizeitemtemplate{$\boxdot$}     \usesubitemizeitemtemplate{$\blacktriangleright$~}     \usesubsubitemizeitemtemplate{\textbullet~}          %We set the colors of the enumarte and itemize environment     \setbeamercolor{enumerate item}{fg=black}     \setbeamercolor{itemize item}{fg=navyblue}     \setbeamercolor{itemize subitem}{fg=navyblue}     \setbeamercolor{itemize subsubitem}{fg=navyblue}          % We want the example environment in green          %\renewenvironment<>{example}{\begin{originalexample}\color{isegreen}}{\end{originalexample}}          \setbeamercolor*{example text}{fg=green!40!black}     \setbeamercolor*{block body example}{fg=green!40!black}          %===========>     % Depending on your graphic file you may need to change the 3.2 and -2.8 values,      % but the abs. difference of 0.4 is needed!     \useheadtemplate{%     \raisebox{-0.75cm}{\parbox{\textwidth}{%     \footnotesize{\color{isegray}%     \insertsection\ \leavevmode\leaders\hrule height3.2pt depth-2.8pt\hfill\kern0pt\ \thesection-\thepage}% was \thesection-\thepage}     }}}%          \usefoottemplate{% control footer layout     \raisebox{0.75cm}{\parbox{\textwidth}{\footnotesize{\color{isegray} \insertshorttitle\ \leavevmode\leaders\hrule height3.2pt depth-2.8pt\hfill\kern0pt\ \raisebox{-7pt}{\pgfuseimage{logosmall}}%     }}}}%          \usecaptiontemplate{% controls the layout of captions     \insertcaptionname~\insertcaptionnumber:~\insertcaption%      }               \usetitlepagetemplate{          \vbox{}          \begin{flushleft}            \Large\structure{{\color{isered}\scalebox{\titlescale}{\parbox{\linewidth}{\textbf{\inserttitle}}}}}%\scalebox{\titlescale}            \vskip1em\par          \end{flushleft}          \begin{flushleft}            \normalsize\theauthora\vskip0.5mm\par                 \normalsize\theauthorb\vskip0.5mm\par            \normalsize\theauthorc\vskip2.5mm\par               \end{flushleft}     \begin{columns}[onlytextwidth]          \begin{column}{0.7\textwidth}                {\normalsize\insertinstitute \\ {\color{iseblue}\href{\linka}{\linka}} \\ {\color{iseblue}\href{\linkb}{\linkb}} \\ {\color{iseblue}\href{\linkc}{\linkc}}}          \end{column}          \begin{column}{0.3\textwidth}                    \inserttitlegraphic % \cooltooltiptoggle{\textcolor{white}{$\boxdot$}}          \end{column}     \end{columns}     }          \useframetitletemplate{%          \begin{flushleft}            \Large\structure{\color{isered}\textbf{\insertframetitle}}            \par          \end{flushleft}}          %no navigationbar     %deprecated: \beamertemplatenavigationsymbolsempty      \setbeamertemplate{navigation symbols}{}           \newcommand{\weblink}[2]{         \href{#1}{\textcolor{linkblue}{#2}}}          \newcommand{\pointprog}[1]{         \href{\apssplace/#1.html}{\includegraphics[height=.9em]{qletlogo} \color{magenta}\texttt{#1.xpl}}}              \newcommand{\myprog}[2]{         \href{#1}{\includegraphics[height=.9em]{qletlogo} \color{magenta}\texttt{#2}}}      so where do I have to insert `\TileWallPaper{<width>}{<height>}{<filename>}` so that it works? Thanks a lot for your help!


title: How to properly typeset footnotes/superscripts after punctuation marks?

text: I find the spacing of footnote marks after punctuation marks quite unsatisfactory, especially with sans serif fonts and compared to the spacing after letters. Example follows: ![normal footnotes](http://i.stack.imgur.com/VGqNT.png) I came up with a little macro myself that tries to amend this manually.               \documentclass{article}     % URW Classico is a font that makes the issue apparent     \renewcommand{\sfdefault}{uop}     \renewcommand{\familydefault}{\sfdefault}     % define punctuation-aware footnote macro     \newlength{\punctuationfootlength}     \newcommand{\punctuationfootnote}[2]{#2\settowidth{\punctuationfootlength}%     {#2}\hspace{-\punctuationfootlength}\footnote{#1}}     % define a very small type area and don't care about margins     \setlength{\textwidth}{150pt}     \setlength{\textheight}{5\baselineskip}     \begin{document}     \noindent The three little pigs built their houses     out of straw\punctuationfootnote{not to be confused with hay},     sticks\footnote{or lumber according to some sources} and     bricks\punctuationfootnote{probably fired clay bricks}.     \end{document}      This will look like this: ![full compensation of punctuation marks](http://i.stack.imgur.com/KaJqc.png) I have to say, I didn't like this either. So I fiddled around a bit and set back the footnote marks by a half ![half-width compensation](http://i.stack.imgur.com/WJji3.png) and a third of the width of the punctuation mark. ![third-width compensation](http://i.stack.imgur.com/MZTvE.png) Personally, I like the look of the last (`-.3\punctuationfootlength`) the best. But I'm a bit concerned that nobody ever seemed to have shared my opinion on this and if anything put a hair space between a letter and a footnote mark but never decreased the kerning. So if any typography guru here could put me straight on this matter that would be great. I'm also happy about anyone's second or third opinion on this. * * * Edit: Originally I also asked for a better way to TeX this here. As this is a separate question however, I moved it here. * * * Edit 2: Jon's comment caused me to succumb to the temptation I had all along of trying an additional intermediate between solutions 2 and 3. It seems like a ridiculously small change but here is `-.4\punctuationfootlength`: ![enter image description here](http://i.stack.imgur.com/EZ2mG.png) Can't decide though. After a bit of pondering, I think I like the 3 a bit closer than the 1 which doesn't make things easier I guess.


title: "Table des Matières" instead of "Table of Contents"

text: Currently, I write a report in LaTeX. Everything goes well except a small problem that bothers me really. The report is written in English except for a summary in French that has to be written in French, for this reason I have imported the `\usepackage[french, english]{babel}`. By creating the table of Contents with the command `\tableofcontents`, the generated document shows _Table des Matières_ instead of _Table of Contents_. It translated the phrase into French! The packages I used:               \documentclass[english]{report}     \usepackage[latin1]{inputenc}     \usepackage{epstopdf}     \usepackage{amssymb}     \usepackage{url}     \usepackage{float}     \usepackage[colorlinks,breaklinks]{hyperref}     \usepackage[acronym]{glossaries}     \usepackage{algorithm}     \usepackage{minitoc}     \usepackage[toc,page]{appendix}     \usepackage{afterpage} %     \usepackage{microtype} % makes pdf look better     \usepackage[caption=false]{subfig}     \usepackage[french,english]{babel}


title: Drawing text in vertices using polygon regular tikz

text: I'm trying plot the regular polygon induced by the equation `x^(11)+1=0`. I've drawn the polygon and the circunference with this code:               \documentclass[a4paper]{article}          \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{tikz}     \usetikzlibrary{shapes.geometric}               \begin{document}          \begin{tikzpicture}[scale=3]     \draw [very thick,<->] (-1.5,0)--(1.5,0);     \draw [very thick,<->] (0,-1.5)--(0,1.5);     \draw[thick,red!90!black] (0,0) circle (1cm);     \node [draw, thick, blue!90!black,rotate=90,minimum size=6cm,regular polygon, regular polygon sides=11] at (0,0) {};              \end{tikzpicture}     \end{document}      Now, I want to add the text `w_i` to the i-th vertex. How can I do it?


title: LuaJIT and LuaTeX

text: Is it possible to change the Lua engine in LuaTeX to LuaJIT? Will it be as simple as replacing the Lua5.1 source code in the LuaTeX tarball with the LuaJIT source, or does it require (drastic) changes to the build system, or is it entirely not possible?


title: Prevent conversion to lowercase in bibtex

text: I am using the style ascelike.bst for my reference list, and it gives me almost what I want. Except it converts everything to lowercase > Vigdor, Jacob (2008). "The economic aftermath of hurricane katrina." _The > Journal of Economic Perspectives_ , 22(4): 135-54. I want titles within quotation marks and capitalised words > Vigdor, Jacob (2008). "The Economic Aftermath of Hurricane Katrina." _The > Journal of Economic Perspectives_ , 22(4): 135-54. Instead of protecting the titles with {} in the bib-file I try to modify the bst-file, the format.title looks like this:               FUNCTION {format.title}     { title empty$     { "" }     { "``" title "t" change.case$ *     }     if$     }      Suggestions?


title: Behavior of numbered \part in ToC

text: I have a document with several `\part` while I wrote all lower sections in `\paragraph`. In the ToC all is working as I which, just the `\part` parts (sorry for the wording...) are displayed in a strange way: LaTeX prints `plus 1.0fil` in the same line, right at the same spot the the numbering of the part. Why is that? Does anyone know how to get rid of that? Is my (lengthy) preamble guilty of this? The best would be to get rid of the numbering of the `\part`. I'd use \chapter, but in the text section it doesn't have the same formatting as `\part` (and frankly I haven't been able to understand why). As you might have understood from why and how I'm writing I'm not a LaTeX pro. I have some understanding of programming, but it didn't help to get me out of this. Sorry for the long file. I can't abridge it without possibly making it impossible to see what's going on. Looking forward to any comment. Here's my test file (most of it is preamble):               \AtBeginDocument{\newcommand{\version}{Version 0.0.1}}      % support copying from PDF and full text search     % (together with cmap.sty (v.i.):     \input glyphtounicode     \pdfgentounicode=1          \documentclass[%                ,abstracton % centered headline in abstract                ,smallheadings % small headlines               ,headsepline,         % Trennline zum Seitenkopf                  ]%                {scrartcl}  % KOMA-Script article class          \usepackage{cmap} % (v.s.)     \usepackage[T1]{fontenc}   % T1 font encoding     \usepackage[utf8]{inputenc} % utf8 input encoding (Linux/Mac), oder "applemac"     \usepackage{%       ,amsmath %für die schicken Pfeile mit Beschriftung       ,soul         % underline(, Sperren,  strike through...)       ,array        % extensions for tables       ,booktabs     %       "        "      "       ,supertabular % multi-page tables       ,longtable    %      "          "           ,xcolor       % use colours       ,colortbl     % colours in table cells       ,textcomp     % extra (special) signs       ,natbib       % layout of citations       ,calc         % calculation with LaTeX results and counters       ,url          % typeset urls       ,tocloft      % format tables (TOC, LOF, LOT)       ,graphicx     % include graphics       ,paralist     % extra list environments       ,multicol     % multi-column        ,ragged2e     % improve hyphenation with ragged typesetting       ,fixltx2e     % correct bugs and extends Latex2e       ,makeidx      % create index       ,tikz         % \fbox-replacement with tikz and replacement of PSTricks     examples       ,xspace % Leerzeichen nach Kontrollsequenz, z. B. \latex         }          \makeindex % generate .idx-file -> MakeIndex            % or xindy          \usepackage[english,ngerman]{babel} % language support     \usepackage[ngerman]{varioref}      % intelligent cross referencing     % TODO: careful with varioref!     \usepackage[right]{eurosym} % Euro-sign ( Euro-Symbol                             %  following number)          % page number directly following TOC-entry:     % \section level     \renewcommand{\cftsecleader}{}     \renewcommand{\cftsecafterpnum}{\cftparfillskip}     % \subsection level     \renewcommand{\cftsubsecleader}{}     \renewcommand{\cftsubsecafterpnum}{\cftparfillskip}     % decrease margin in front of TOC entries     \setlength{\cftbeforesecskip}{.4\baselineskip}     \setlength{\cftbeforesubsecskip}{.1\baselineskip}          % Neue Option fürlongtable, um Tabellen > \textwidth auf der Seite     % zu zentrieren unter     % Berücksichtigung des im Rand zur Verfügung stehenden Freiraums.      \makeatletter     \let\ORG@LT@array\LT@array     \def\LT@array[#1]{%       \if C#1%         \setlength{\@tempdima}{\oddsidemargin}         \addtolength{\@tempdima}{1in}         \LTleft=0pt plus 1fill minus \@tempdima         \LTright=\LTleft         \expandafter\ORG@LT@array\expandafter[\expandafter x\expandafter]%       \else         \@ReturnAfterFi{%           \ORG@LT@array[{#1}]%         }%       \fi     }     \long\def\@ReturnAfterFi#1\fi{\fi#1}     \makeatother          \usepackage[T1]{fontenc}     \IfFileExists{tgpagella.sty}{% Palatino         \usepackage{tgpagella}}{}               %Wenn man MinionPro hat...      %\usepackage{MinionPro}         % serif: Adobe MinionPro     %\usepackage{MyriadPro}         % sans : Adobe MyriadPro     %\usepackage[scaled=.92]{thesans} % typewriter: TheSansMono     %\linespread{1.05} % slightly increaseleading for MinionPro          \typearea{8} % Satzspiegelberechnung gemäß DIVcalc nach Laden des                  % Schrift-Pakets durchführen          % Optischer Randausgleich und font expansion, letzteres in 3er-Schritten     % bei maximalem Schrumpfen und Ausdehnen um 1,5%     \usepackage{microtype}      \microtypesetup{stretch=15,shrink=15,step=3}     \usepackage{lmodern}               \usepackage[toc]{multitoc} % TOC in mehreren Spalten setzen          % um Tabellenspalten mit Flattersatz zu setzen, muss \\ vor     % (z.B.) \raggedright geschätzt werden:     \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}     %     % Spalten mit Flattersatz:     % left justified:     \newcolumntype{L}[1]{>{\PreserveBackslash\RaggedRight}m{#1}}     \newcolumntype{M}[1]{>{\PreserveBackslash\RaggedRight}p{#1}}     % right justified (not used in document):     \newcolumntype{R}[1]{>{\PreserveBackslash\RaggedLeft}m{#1}}     \newcolumntype{S}[1]{>{\PreserveBackslash\RaggedLeft}p{#1}}     % centred (not used in document:     \newcolumntype{Z}[1]{>{\PreserveBackslash\Centering}m{#1}}     \newcolumntype{A}[1]{>{\PreserveBackslash\Centering}p{#1}}          % Tabellen mit grauem Header und grauer hline am Ende und entsprechend     % eingestellten Schriften (in diesem Fall nur fett); Verwendung über     % \hdrow (s.u.)     %     % left justified:     \newcolumntype{H}{>{\fontseries{b}\selectfont%         \columncolor[gray]{.8}[6pt][0pt]}l}     % centred (not used in document):     \newcolumntype{I}{>{\fontseries{b}\selectfont%         \columncolor[gray]{.8}[6pt][0pt]}c}     % right justified (not used in document):     \newcolumntype{J}{>{\fontseries{b}\selectfont%         \columncolor[gray]{.8}[6pt][0pt]}r}     %     \newcommand{\hdrow}[2]{%       \multicolumn{1}{#1@{}}{%         \raisebox{.1mm}{% Ausrichtung der Beschriftung           #2%         }\rule{0pt}{4mm}}% invisible line to increase the headline     }           % Alternative ohne \multicolumn und \columncolor, direkt über \rowcolor:     %\newcommand{\Hdrow}[1]{\rowcolor[gray]{.8}#1 \\\addlinespace}          \newenvironment{tabelle}[2][c]{         %       \renewcommand{\arraystretch}{1.2}     % Größere Abstände zwischen Zeilen       \sffamily\small                                       %         Serifenlose und kleine Schrift       \begin{longtable}[#1]{#2}       }       {\end{longtable}\renewcommand{\arraystretch}{1}% Abstände wieder                                                      % zurücksetzen        \normalfont % reset font       }          % Auch Abbildung und nicht nur die Nummer wird zum Link (abgeleitet     % aus Posting von Heiko Oberdiek;     % Verwendung: In \abbvref{label} ist ein Beispiel dargestellt     \providecommand*{\abbvrefname}{Abbildung}     \newcommand*{\abbvref}[1]{%       \hyperref[#1]{\abbvrefname}\vref{#1}%     }          %% Box, die den Rahmen in einem Zug zieht, was zu schöneren Ergebnissen     %% fährt als \fbox:     \newcommand*{\tikzbox}[1]{%       \tikz[baseline=(tikzbox.base)]        \node[draw, inner sep=\fboxsep+.5\fboxrule, line width=\fboxrule]         (tikzbox)         {#1};%     }          %% Sperrung mit pdfTeX >= 1.40.3     \usepackage{relsize}     % Sperrung und Verkleinerung von Versalien     \newcommand{\versal}[1]{\textscale{0.9}{\textls*[80]{#1}}}     % Sperrung von Gemeinen     \newcommand{\gemein}[1]{\textls*[70]{#1}}          % Seitenstil festlegen:     \usepackage[%                 automark % automatic actualisation of column titles                ]     {scrpage2}     % Linker Kopf leer:     \ihead{}      % Zentrierter Kopf:     \chead{typoshort -- Some important typographic rules, \version}     % Schrift in Kolumnentiteln klein und kursiv:     \setkomafont{pagehead}{\normalfont\small\itshape}     % Zeitenzahl in MinionPro:     \setkomafont{pagenumber}{\normalfont}     % Überschriften zentriert, blau und in Serifenschrift:     \addtokomafont{sectioning}{\centering\color{myblue}\rmfamily}     % \caption fett:     \addtokomafont{captionlabel}{\bfseries}     % Label der description-Umgebung in Serifenschrift:     \addtokomafont{descriptionlabel}{\rmfamily}          % footnotes in two columns     \usepackage{dblfnote}     % Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch):     \deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}}      % increase space between footnote paragraphs:     \setlength{\footnotesep}{.85\baselineskip}          \renewcommand{\footnoterule}{}             % no line     \addtolength{\skip\footins}{\baselineskip} % distance text to footnote     % Fuänoten immer ganz unten auf einer \raggedbottom-Seite     \usepackage{fnpos}          \raggedbottom     % Variable Seitenhähen zulassen          \usepackage[%       breaklinks               % Links überstehender Zeilenumbruch       ,colorlinks              % coloured links instead of boxes       ,citecolor=myblue        % colour for citations       ,linkcolor=myblue        % influences table of contents       ,urlcolor=myblue         % colour for URLs       ,bookmarks               % bookmarks for PDF-Viewer       ,bookmarksnumbered       % numbering for bookmarks       ,hyperfootnotes=false    % No links to footnotes       ,pdfpagelabels       ,pdfstartview=FitH,      % open document "Fit Width"       ,pdfpagemode=UseOutlines % show bookmarks in viewer       ,bookmarksopenlevel=2    % Gliederungstiefe der Bookmarks       ]        {hyperref}               % automatic links in PDF and some                                % hypertext-functionalities                % Farbdefinitionen:     \definecolor{myblue}{rgb}{0,.1,.6}     \definecolor{myblue2}{rgb}{0,.4,.6}     \definecolor{grau}{gray}{.4}          \usepackage[figure]{hypcap} % Links auf Gleitumgebungen springen nicht                             % zur Beschriftung, sondern zum Anfang der                             % Gleitumgebung      % 3-spaltiger Index     \makeatletter     \renewenvironment{theindex}{%       \begin{multicols}{3}[\section*{\indexname}][19\baselineskip]%         \setlength{\parindent}{0pt}\pagestyle{plain}\let\item\@idxitem}        {\end{multicols}}          % Ränder anpassen     \usepackage{anysize}     \marginsize{2.5cm}{2.5cm}{2.0cm}{2.0cm}  % links, rechts, oben, unten             % Seitenstyle     \pagestyle{scrheadings}     \clearscrheadfoot     \setheadwidth{textwithmarginpar}     \ihead{HämatoOnko Ultrakurz}    % Titel der Arbeit oben links     \ohead{\pagemark}           % Seitenzahl oben rechts     \renewcommand{\baselinestretch}{1.1}          %Inhaltsverzeichnis soll \paragraph zeigen...     \setcounter{tocdepth}{5}     \usepackage{blindtext}     % TOC Styles     \usepackage[tocflat]{tocstyle}     \usetocstyle{allwithdot}           \usepackage{enumitem}  %Reduziert space zwischen \items;                             \setlist{nolistsep}          %\usepackage{paralist}  % Alternative für engere Listen,      \makeatother          \usepackage{ellipsis}       % Korrekte Abstände um \dots (als letztes                 % Paket laden)     %---------------------------------------------------------------------     % Text     %---------------------------------------------------------------------               \begin{document}          \ifpdf         \DeclareGraphicsExtensions{.pdf,.jpg,.png}     \else         \DeclareGraphicsExtensions{.eps}     \fi          \title{HämatoOnko Ultrakurz}          \maketitle          \tableofcontents            % Inhaltsverzeichnis          \part{Allgemeines}          \paragraph{Hauptfunktionen der Zellen der Hämatopoiese}          \begin{itemize}     \item Thrombozyten:  Gerinnung     \item Leukozyten:  Spezifische und unspezifische Immunantwort     \item Erythrozyten: $O_{2}$-Transport     \end{itemize}          100 ml Blut enthalten ca. 15g Hb und 20 ml $O_{2}$. 1 g Hb     kann also 1,3 ml $O_{2}$ binden.          \part{Entwicklung}               \paragraph{Entwicklung und Reifung der Blutzellen}p          Alle drei Reihen von Blutzellen entwickeln sich (normalerweise im Knochenmark)     aus hämatopoeischen Stammzellen. Faktoren, die die Entwicklung lenken und beeinflussen sind:           \begin{itemize}     \item der Stammzellfaktor SCF\footnote{Auch stem cell factor, Kit-Ligand oder     steel factor. Hämatopoietischer Wachstumsfaktor.}       \item die Wachstumsfaktoren G-CSF\footnote{Colony stimulating factor: Zytokine, die das Wachtstum stimulieren (Wachstumsfaktoren). G: Granulozyten, M: Makrophagen, GM: Granulozyten+Makrophagen}, M-CSF, GM-CSF     \item   Interleukin\footnote{Zu den Zytokinen zählende Peptidhormone, die     körpereigene Botenstoffe der Zellen des Immunsystems.} 3 und 6      \item  Erythropoetin und Thrombopoetin\footnote{Auch Meg-CSF (Megakaryozyten) oder PGF (platelet growth factor) genannt.}.     \end{itemize}               \end{document}


title: Vertically stack parboxes in a cell of a table

text: I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular environment). The issue is that I have two par boxes line up horizontally when I need them vertically stacked. How to stack par boxes in a table?               \documentclass{article}     \usepackage{enumitem}     \usepackage{longtable}     \usepackage{booktabs}          \newcommand{\fuda}[2]{%     Function:%     \parbox[t]{3cm}{     \begin{itemize}[nosep]%     #1%     \end{itemize}     }     Data:%     \parbox[t]{3cm}{     \begin{itemize}[nosep]%     #2%     \end{itemize}%     }     }     \begin{document}     \begin{longtable}{p{0.3\textwidth}|p{0.7\textwidth}}     \caption[List of components]{List of functions and data allocated to each component} \label{d_plan} \\     \toprule     \textbf{Components} & \textbf{Functions and Data} \\\midrule     \textbf{Registration} & \fuda{     \item A     \item B     \item C     }{     \item  X     \item Y     \item  Z}     \\\bottomrule     \end{longtable}     \end{document}      ![enter image description here](http://i.stack.imgur.com/mqRxf.png)


title: Package loading speeds

text: Is there any benchmarking regarding which packages take more to load than others? Of course I know it depends on the computer you are running and perhaps even your Internet connection if you are loading them "on the fly", but that's why I'm asking for a benchmark... Does anyone has actually taken the time to measure what packages take more to load? Could this be considered a good point to speed up my work?


title: Unexpected result for child nodes: why they seem to be typeset in bold?

text: I was trying to draw something similar to: ![enter image description here](http://i.stack.imgur.com/jElSy.png) without the border around nodes and where arrows should have a line (with a given width to be visible) connecting the tail and the tip. My code is:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes.arrows,calc}           % knowing the angle starting from two coordinates     % by Altermundus:     % http://tex.stackexchange.com/questions/39293/coordinates-a-b-compute-b-a-and-angle-between-x-and-b-a     \newcommand{\pgfextractangle}[3]{%         \pgfmathanglebetweenpoints{\pgfpointanchor{#2}{center}}                                   {\pgfpointanchor{#3}{center}}         \global\let#1\pgfmathresult       }          % style of the arrow     \tikzset{stylefreccia/.style={single arrow, draw=none,fill=gray!80!black,minimum height=#1,minimum width=0.5cm}}          \tikzset{freccia/.code={     \coordinate (A) at (\tikzparentnode.south);     \coordinate (B) at (\tikzchildnode.north);     \pgfextractangle{\angle}{A}{B}      \node [stylefreccia=1cm,single arrow head indent=1ex,rotate=\angle] (x) at ($(\tikzparentnode.south)!0.5!(\tikzchildnode.north)$){}; % <= insert the node exactly in between parent and child node with the angle computed before     \draw[gray!20,draw,line width=2pt](x.tail)--(x.tip); % <= draw the line connecting tail and tip     }     }          \begin{document}     \tikzset{edge from parent/.style={freccia}}     \begin{center}     \begin{tikzpicture}[level distance=2cm,     level 1/.style={sibling distance=30mm},     level 2/.style={sibling distance=20mm},     level 3/.style={sibling distance=10mm}     ]     \node {root}     child {node {left}     child {node{child}}}     child {node {right}     child {node {child}}     child {node {child}}     };     \end{tikzpicture}     \end{center}     \end{document}      which actually gets the point because the output is: ![enter image description here](http://i.stack.imgur.com/CbSqM.jpg) My question is: why leaves seem to be typeset in bold?


title: Undo last vertical skip

text: I am trying to understand the sizes of boxes and skips so I decided I wanted to typeset text directly on top of some other text. I don't want to use `textpos` or anything like that. I am trying to figure out how big of a skip I need to get back to where I was. I would like the green, red and blue boxes to perfectly overlap.               \documentclass{article}     \usepackage{color}          \newbox{\boxA}     \newlength{\skipA}     \savebox{\boxA}{\parbox{\textwidth}{\color{green}Hello\par World}}     \settoheight{\skipA}{\usebox{\boxA}}%          \newbox{\boxB}     \newlength{\skipB}     \savebox{\boxB}{\parbox{\textwidth}{\color{red}Hello\par World}}     \settoheight{\skipB}{\usebox{\boxB}}%     \begin{document}         \usebox{\boxA}\par\vspace{-\skipA}         \usebox{\boxB}\par\vspace{-\skipB}         \parbox{\textwidth}{\color{blue}Hello\par World}     \end{document}      ![Output showing unaligned text](http://i.imgur.com/lJOJe.png?1)


title: Are math operator names like \gcd available in other languages?

text: I'm writing a text in Dutch in which I want to use the _greatest common divisor_. In English, I could use something like `$\gcd(123,321)$`. However, in Dutch, we call the function _grootste gemene deler_ , ggd. Of course, I could use `$\text{ggd}(123,321)$` (in fact, for this I wouldn't even need math mode, but suppose this is inside a larger equation). But isn't there a way to get the mathematical commands the translated?


title: Avoiding dot in true single-character middle name (abbrv-style)

text: One of my co-author's name has the pattern "Aaaa B Ccccc", where (due to transcription from Chinese) the "B" is indeed a single character (part of the given name). Now BibTeX (in `abbrv`-style) likes to render this as `A. B. Ccccc` (note the dot trailing the "B"), whereas I'd either like `A. Ccccc` or `A. B Cccccc`. I tried `Aaaa~B` or `B\`, but still no go. Any tips?


title: fancyhdr clearing first page of a chapter

text: Hi have already a working fancyheader, but it is also showing on the chapter beginning which I want to avoid (see attachment).                \pagestyle{plain} % reset page numbering to 1,2,3,..      \pagenumbering{arabic}      \setcounter{page}{1}                 \fancypagestyle{plain}      \fancyhf{}      \pagestyle{fancy}      \fancyhead{}      \fancyhead[L]{\textit{\sffamily\ifthenelse{\isodd{\value{page}}}{\leftmark}{\rightmark}}}      \fancyhead[R]{\textit{\sffamily\thepage}}      \fancyfoot[C]{}      \renewcommand{\headrulewidth}{0.1pt}      ![chapter begining](http://i.stack.imgur.com/p4fok.png) **Basically the cfoot ist not applying for the first page of a chapter.**


title: UPDATE LATEX missing file

text: my latex is already installed but at simulation some `tex\context\base\supp-pdf.mkii` file missing of `mptopdf` package, for update proxy **server adress and port no.**** and also proxy authentication **Name and password** required. What should I do?


title: Automatic coloring of numbers according to size

text: Scientific talks have their own culture, reporting the results, typically for me, in a table of the following form               1.7333    1.6472    1.5418    1.4682    1.5740     1.1525    1.2878    1.2652    1.3511    1.5102     1.2181    1.1500    1.2220    1.2425    1.5699     0.9786    1.1051    1.1472    1.3096    1.6757     0.9569    0.9190    1.0433    1.2924    1.4867      There is clearly a(n almost perfectly) monotonic pattern for rows and columns. Now for the naked eye, this is not the most quick way of capturing informing. I would like numbers that bigger in absolute value, to appear differently (either green vs red or light vs dark) than smaller numbers, such that the pattern becomes clear instantly. Is there a way of programming this in LaTeX?


title: List edition only if higher than 1st and location behind publisher

text: I am trying to customize biblatex to the needs of the requirements. At this point I am working on the `book`-class. The status quo is based on the MWE below. As I indicated in the title, I would like to have it like this: > **Smith, J. (2012):**   >  The Random Booktitle, 3rd ed., Springer, Berlin. Or if the edition were the 1st edition: > **Smith, J. (2012):**   >  The Random Booktitle, Springer, Berlin. I tried to use the `\newbibmacro` command as suggested, but I am pretty much just doing some t&e runs at the whole thing. So far I got this:               \renewbibmacro*{publisher+location}{%     \iflistundef{publisher}     {\setunit*{\addspace}}     {\setunit*{\addcomma\space}}     \printlist{publisher}     \setunit*{\addcomma\space}     \printlist{location}     \newunit}      I think I could add some stuff for the edition to this macro, but there would be no use to it. It rather "destroys" what I've achieved so far. **Please click here for a MWE.**


title: Where will a theorem be used?

text: I have once seen a book (Graph Theory by Reinhard Diestel) where the author flags his theorems by adding on the left/right of the page the reference number of later theorems where said theorem will be applied. A truly bidirectional cross-reference! I assume this is done automatically, but how? I have never seen a package for this. Here is a screenshot: ![screenshot from Diestel's book](http://i.stack.imgur.com/juV1v.png)


title: Invoking makeindex for nomencl

text: I have spent many many hours failing to implement nomencl for my PhD thesis. The problem seems to be with invoking makeindex and creating the .nls file I keep reading that I must invoke makeindex or write a Unix command:               makeindex filename.nlo  -s nomencl.ist -o filename.nls      But I don't know how to do this. I would be grateful for some instructions i.e. where do I type the command? I am using TeXShop 2.43.


title: Getting Started with Minion Pro, XeLaTeX and mathspec

text: I have just started using Minion Pro and `mathspec` for my work and now I have the following in my preamble:               \usepackage[MnSymbol]{mathspec}     \usepackage{xltxtra}     \defaultfontfeatures{Scale=MatchLowercase}     \setmainfont[Numbers=OldStyle]{Minion Pro}     \setallsansfonts[Numbers={OldStyle,Proportional},Scale=MatchLowercase]{Myriad Pro}     \setallmonofonts[Numbers=OldStyle,Scale=MatchLowercase]{Ubuntu Mono}     \setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Minion Pro}     \setmathsfont(Greek)[Scale=MatchLowercase]{Minion Pro}     \setmathrm{Minion Pro}     \exchangeforms{phi}      Now I have a number of questions:   1. What fonts can you use for `mathbb`, `mathcal`, `mathfrak`, ... I mean I don't even know what I have to choose from here.   2. I want Myriad Pro Bold whenever I have either math or text bold. How can I do that?   3. I have been playing around with the `mathspec` commands but often I get the "too many fonts" error. How do I keep track of how many fonts I have defined?   4. Also my mono font does not work. In other words `mathtt` is just `mathrm` in my text.


title: alignat inside align enviroment?

text: Why can't I nest an `alignat` environment in an `align` environment?               \begin{equation}       \label{eq:115}       \left\{         \begin{aligned}           \begin{alignat*}{2}             &U(x,y,z,t)=\int\frac{x'-x}{r^3}[& &(x'-x)u(x',y',z',t)\\             &                                &+&(y'-y)v(x',y',z',t)\\             &                                &+&(z'-z)w(x',y',z',t)]d\omega',           \end{alignat*}\\             V(x,y,z,t)=.....,\quad W(x,y,z,t)=..... .         \end{aligned}       \right.     \end{equation}      The following compiles, but the first "+" sign of the second equation line doesn't align up very well with the phantom "+" of the first equation:               \begin{equation}       \begin{dcases}         \label{eq:115}         {\begin{aligned}             U(x,y,z,t)=\int\frac{x'-x}{r^3}[&\phantom{+}(x'-x)u(x',y',z',t)\\                                             &+(y'-y)v(x',y',z',t)\\                                             &+(z'-z)w(x',y',z',t)]d\omega',           \end{aligned}}\\         V(x,y,z,t)=\ldots\ldots,\quad W(x,y,z,t)=\ldots\ldots       \end{dcases}     \end{equation}      thanks


title: Colors and legend in groupplots/barplot

text: In order to compare three items I use the `groupplot` command. For each item I have _n_ different criteria to compare. ![enter image description here](http://i.stack.imgur.com/Ljjg9.png) Is it possible to set the color for each criteria itself? Meaning the first bar in every group goes gray, the second pink etc.. The legend than should contain the _n_ compared criteria. And... how do I manage to let the whole tikz-picture have a width of `0.9\textwith`               \documentclass{standalone}     \usepackage{pgfplots,pgfplotstable}     \usetikzlibrary{pgfplots.groupplots}          \pgfplotstableread{     nr  fii faa foo     a   10  15  12     b   12  18  14     c   13  19  15     d   9   13  10     e   7   11  8     f   10  15  12     }\datatable          \begin{document}     \begin{tikzpicture}     \begin{groupplot}         [group style={columns=3},             ybar,             ymin=0,             ymax=20,             xtick=\empty,             tickpos=both]          \nextgroupplot[xlabel=fii]     \addplot [fill=blue] table [x expr=\coordindex, y=fii] {\datatable};     \nextgroupplot[xlabel=faa]     \addplot [fill=green] table [x expr=\coordindex, y=faa] {\datatable};     \nextgroupplot[xlabel=foo]     \addplot [fill=red] table [x expr=\coordindex, y=foo] {\datatable};          \end{groupplot}     \end{tikzpicture}     \end{document}