title: How can I have numbering for chapters only?

text: I would like to have the chapters only with numbers, but not inferior divisions like sections and subsections (using the book document class in LaTeX). All divisions should be present in the TOC. I don't care if parts are numbered since I don't use them. Is there a simple and convenient way to get this result?


title: make section headings invisible?

text: Simple question here: how to make section headings invisible, but still get the correct list of sections in the TOC and headers ? e.g. on page 10, if I do a `\section{New section}`, I must not see the text "X. New section", but I still want the section to be in the TOC and in the `\rightmark` of the following pages, until a new section of course. I'm using a minimalistic document (class article, with no package that are used to adjust section headings style)


title: Some tricky issue with chapter in TOC

text: Again I'm asking for help, for a tricky issue, as for me. It is demanded from me that in the TOC I must write chapter-level headings without page number and dot filling. So, I'm using **tocloft** package to manage my ToC. And I used the following command to fullfill the demands:               \cftpagenumbersoff{chapter}      BUT =) I need my bibliography to be included in ToC as a chapter-level heading, but with the page number. I am using the bibtex to manage my bibliography. I wrote the following code, that to my opinion should work:               \cftpagenumberson{chapter}     \addcontentsline{toc}{chapter}{Библиографический список}     \bibliographystyle{gost71u2003}     \nocite{*}     \bibliography{GSTBib}      I thought that it would turn the page numbers on for the chapter-level, but it did not. It has no page number aligned to the right. How can I manage this issue?


title: Position of page numbers at the bottom in the whole document

text: I have a problem with the page numbers in my Master thesis and have been searching for a solution for a few hours now but since these problems are very individual and specific I was not able to find a solution that met my specific needs. Since i need to hand in my thesis in two days no more time is left for further research on this topic and hence i decided to ask this question right here. I am writing my thesis with the class               \documentclass[11pt, a4paper, twoside]{Thesis}      and I am using the fancyhdr package with the following specifications               \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}      \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}     \chead{}\lfoot{}\rfoot{}\cfoot{}     \pagestyle{fancy}      This is doing the following:   1. The page number is located at the outer side of each page, except on pages where a new chapter begins. There the page number is in the center of the bottom.   2. The chapter title is located on the inner side of each page, except on pages where a new chapter begins. There the chapter title is left out.   3. On each page the page number and the chapter title is underlined, except on pages where a new chapter begins. On such pages there is no rule at all. What my specific need is:   1. The page number should be located at the outer side of the bottom of each page, also on pages where a new chapter starts. Above the page number there should be a rule.   2. The chapter title should be located at the outer side of the top of each page, except on pages where a new chapter starts. It should be underlined by a rule.


title: How to do a half-page turn under a fixed display item

text: Suppose you have a displayed item (in my case a video) at the top of a page and you want to have it present there for the next several pages. So you need to turn the bottom half page while the top half persists independently of the bottom part. How can this be done?


title: Add a brace on the left side of a group

text: I can't figure out how to place the brace on the opposite side, that is on the left of the group of equations, when following the answer in this link: How to put a brace on the right, not left, to group cases? What should be changed in the solution?


title: Tikzpicture as background to pdfpages

text: I want to implement the answer here: Can I add tikzpictures to pages included with pdfpages. But I want the tikzpicture under the included pdf pages, not over it. Is there a straightforward way to set what is drawn first?


title: Problematic rendering of mark=+ in pgfplots

text: Consider the following MWE:               \documentclass{article}     \usepackage{pgfplots}     \usepackage{tikz}          \pgfplotsset{compat=1.5.1}          \xdef\doPlotCoords{}     \foreach \r in {0,1,...,10}{%       \xdef\tempCoords{} %       \foreach \c in {0,1,...,10}{ %         \xdef\tempCoords{\tempCoords (\r,\c)\space}       } % end \foreach \c       \let\addplot\relax       \xdef\doPlotCoords{ \doPlotCoords       \addplot+[color=blue,mark=+,mark options={blue},] coordinates{ \tempCoords };}     } % end \foreach \r     \typeout{\meaning\doPlotCoords}          \begin{document}     \begin{tikzpicture}     \begin{axis}[only marks]     \doPlotCoords     \end{axis}     \end{tikzpicture}          \end{document}      The output for me is like this (click for full size): ![test71.png](http://i.stack.imgur.com/rmBLmm.png) Note that the `+` marker symbols in the first columns (0-4) are symmetric, then in columns 5-9 they are asymmetric, and then in column 10 they are symmetric again? And this is apparently not an anti-aliasing problem (the full-size image is 300 dpi rendering of the pdf) Even worse, if I comment out the `\begin{axis} %[only marks]`: ![test72.png](http://i.stack.imgur.com/rPuElm.png) ... then somehow columns 5-9 are dashed, and the rest arent?? What is going on here - and how could I get the plot to show all `+` markers the same everywhere (symmetrical as in the first column), and all lines between them the same as well?


title: Defining an Environment that Takes an Argument

text: I want to define a new environment that will take a text argument, and use it as a title.               \documentclass{article}     \usepackage{amsthm}          \newenvironment{titleproof}     {\begin{proof} \textbf{Title of the Proof} \newline}     {\vspace*{0.5\baselineskip} \end{proof}}          \begin{document}     \begin{titleproof}          Here is my proof.          I want to be able to write something like ``begin\{titleproof\}\{New Title\}''     to customize the title of each different proof.          \end{titleproof}     \end{document}      CLARIFICATION I want to be able to do this in general, not just for the `proof` environment. Here is a more clear MWE:               \documentclass{article}          \newenvironment{titleenv}     {\textbf{Title of the Environment} \newline}     {\vspace*{0.5\baselineskip}}          \begin{document}     \begin{titleenv}          Here is my environment.          I want to be able to write something like ``begin\{titleenv\}[New Title]''     to customize the title of each different proof.          \end{titleenv}     \end{document}


title: How to make "callouts" or "standout blurbs" among a larger body of text?

text: I'm not sure what the word I need to search for is, to find help if this question has already been answered. ![Cosmo](http://i.stack.imgur.com/ofm0t.jpg) In magazines it's common to pick out words from the middle of a body of text and repeat them in larger font, with the rest of the text flowing around the "`\mbox{}`". ![callout blurb](http://i.stack.imgur.com/WCndN.png) How do I make such floating "standout" text—not necessarily in red circles? What is the proper phrase to search for that identifies this way of emphasising short bits of text?


title: hangparas and href: hyperlinks running onto new lines, but not indenting

text: How can I get the text in the hyperlinked text in the second paragraph to follow the same hanging paragraph indent as the first? I've tried putting a new `hangparas` environment inside the `href` block, but that just generates a `\pdfendlink cannot be used in vertical mode` error. I've posted what I hope is a complete example below.               \documentclass[12pt]{report}      \usepackage{breakurl}     \usepackage{hanging}     \usepackage[breaklinks]{hyperref}     \begin{document}     \begin{hangparas}{0.25in}{1}     This is a demonstration that, normally, the hanging text mode will work perfectly, no matter what kind of silly text I put in it.          \href{http://google.com}{This is a demonstration that, normally, the hanging text mode will not work perfectly when I put some kind of URL inside it, and I don't know why.}     \end{hangparas}     \end{document}


title: Detecting \global, \long, \outer, \protected

text: Is there a way to detect whether or not the next assignment is going to be `\global`, `\long`, `\outer`, or `\protected`? That is, is it possible to write a command `\detectmodifiers` such that code like               \def\otherdef{%       \detectmodifiers       preprocessing       \ifglobal\expandafter\global\fi       \iflong\expandafter\long\fi       \ifouter\expandafter\outer\fi       \ifprotected\expandafter\protected\fi       \def     }      does the right thing (defines an `\otherdef` command that acts the same way as `\def`, but does some preprocessing first)?


title: Space node values evenly

text: I'd like to space out the node values on the bars so that they are clearly visible. What do you recommend for the ones that are partially hidden? Can I do this automagically? Also I'd like to use the plot coordinates rather than the cumulative values of probability. Where abouts is that in the pgfplots handbook? ![enter image description here](http://i.stack.imgur.com/cnzDo.png)               \documentclass[tikz,border=12pt]{standalone}     \usepackage{pgfplots}     \usepackage{subfig}     \usepackage{tabularx}     \usepackage{verbatim}     \pgfplotsset{compat=newest}        %\usepgfplotslibrary{external}     %\tikzexternalize     %\documentclass{article}     %\usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \usetikzlibrary{calc,     arrows,decorations.pathmorphing,     backgrounds,fit,positioning,shapes.symbols,chains}     \usetikzlibrary{decorations.pathreplacing}     \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}     %     \begin{document}          \begin{tikzpicture}     \begin{axis}[     ybar stacked,     legend style={at={(0.5,-0.50)},     anchor=north,legend columns=-1},     ylabel={Probability},     symbolic x coords={{Direct Care}, Housekeeping, Mealtimes, {Medication Round},     Miscellaneous,{Personal Care}},     xtick=data,     ymax=1,     x tick label style={rotate=45,anchor=east},     every node near coord/.style={           check for zero/.code={             \pgfkeys{/pgf/fpu=true}             \pgfmathparse{\pgfplotspointmeta-.1}             \pgfmathfloatifflags{\pgfmathresult}{-}{                \pgfkeys{/tikz/coordinate}             }{}             \pgfkeys{/pgf/fpu=false}           }, check for zero, yshift=-5pt, font=\footnotesize},         nodes near coords={\pgfmathprintnumber[precision=2]{\pgfplotspointmeta}},         nodes near coords align={center}     ]     \addplot+[ybar,bar width=20pt] plot coordinates {({Direct Care},0.258883249)     ({Housekeeping},0.176470588)     ({Mealtimes},0.19047619)     ({Medication Round},0.207207207)     ({Miscellaneous},0.222222222)     ({Personal Care},0.615384615)     };     \addplot+[ybar,bar width=20pt] plot coordinates {({Direct Care},0.015228426)     ({Housekeeping},0.235294118)     ({Mealtimes},0)     ({Medication Round},0.027027027)     ({Miscellaneous},0)     ({Personal Care},0.153846154)     };     \addplot+[ybar,bar width=20pt] plot coordinates {({Direct Care},0.152284264)     ({Housekeeping},0.058823529)     ({Mealtimes},0.333333333)     ({Medication Round},0.351351351)     ({Miscellaneous},0.180555556)     ({Personal Care},0.153846154)     };     \legend{{Handwash only},{Gloves only},{Alcohol rub only}}     \end{axis}     \end{tikzpicture}     \end{document}


title: 3D arc in Asymptote

text: I constructed the technical figure embedded below. I wonder how to draw red arc to denote angle `$\alpha$` between two blue vectors. (Actually, I add the desired output using Inkscape.) ![enter image description here](http://i.stack.imgur.com/BSTxZ.jpg) The Asymptote code is pasted below.               import three;     import graph3;     size(200);          pen solid=linetype(new real[]);     pen longdashed=linetype(new real[] {10,8});     pen dashed=linetype(new real[] {3,8});          currentprojection=perspective(1/2,-1/4,1/4.4);          pen bg=gray(0.9)+opacity(0.1);     draw(surface((0,0,0.5)--(1,0,0.5)--(1,1,0.5)--(0,1,0.5)--cycle),bg);          draw((0,0,0)--(1,0,0), solid);     draw((0,0,0)--(0,1,0), longdashed);     draw((1,0,0)--(1,1,0), solid);     draw((0,1,0)--(1,1,0), longdashed);     draw((0,0,1)--(1,0,1), solid);     draw((0,0,1)--(0,1,1), solid);     draw((1,0,1)--(1,1,1), solid);     draw((0,1,1)--(1,1,1), solid);     draw((0,0,0)--(0,0,1), solid);     draw((1,0,0)--(1,0,1), solid);     draw((1,1,0)--(1,1,1), solid);     draw((0,1,0)--(0,1,1), longdashed);     draw((0.5,0,0.5)--(0.5,1,0.5));     draw((0,0.5,0.5)--(1,0.5,0.5));     draw((0,0,0)--(1,1,1),dashed);     draw((1,0,0)--(0,1,1),dashed);          // Blue vectors     draw((0.5,0.5,0.5)--(1,1,1),blue,Arrow3);     draw((0.5,0.5,0.5)--(1,0.5,0.5),blue, Arrow3);


title: How can I highlight SPSS Syntax code with the listings package?

text: I'm writing my master thesis at the moment and I want to add some code listings to the appendix. The code is written in "Syntax", the programming language of SPSS Statistics. Is there a way to enable syntax highlighting for SPSS Syntax code in `listings`? Or is it possible to define words by myself that are highlighted afterwards? I'm working with Lyx, if that matters. Ideally, the typeset listing should look something like this: ![enter image description here](http://i.stack.imgur.com/st8ao.png) Here is some sample code:               USE ALL.          *Filter für Gültige.          COMPUTE gueltig=0.         EXECUTE.          IF ((Ernsthaftigkeit1nurmalgucken5ernsthaftdabei > 2) AND (Alter < 75) AND (Aufmerksamkeit1abgelenkt5konzentriert > 2) AND (Musik1keine2Hobby3Profi > 0)) gueltig=1.         EXECUTE.         FILTER BY gueltig.          *Filter für deutsch erkannt (Audio und Verständnis korrekt).     USE ALL.          RECODE erkannteSprache ('d'=1) ('de'=1) ('Detsch'=1) ('deusch'=1) ('deustch'=1) ('Deutch'=1) ('deutsc'=1) ('deutscg'=1) ('deutsch'=1) ('Deutsch'=1) ('DEUTSCH'=1) ('Deutts'=1) ('german'=1) ('German'=1) ('German.'=1) ('Gernab'=1) (ELSE=0)     INTO deutscherkannt.         EXECUTE.          FILTER BY deutscherkannt.          *Filter für deutsche Sprache.         USE ALL.         RECODE ausgewählteSprache ("de"=1) (ELSE=0) INTO deutsch.         EXECUTE.                 *Filter für auszuwählende Fälle.         USE ALL.          COMPUTE auswahl=0.     EXECUTE.         IF ((gueltig=1) AND (deutscherkannt=1)) auswahl=1.         EXECUTE.         FILTER BY auswahl.


title: Maintaining table format with space between rows

text: I want to put spaces between rows in a table however my current implementation cuts off the vertical lines. I know I can replace `\\\`with `{} \ {} \ {} ...`, but is there a more elegant solution?               \begin{table}     \begin{tabular}{l | c c c c | c c c c}     \multicolumn{1}{c}{} & \multicolumn{4}{c}{Initial Conditions} & \multicolumn{4}{c}{Final Conditions} \\     Scenario No. & Latitude & Longitude & Altitude & Airspeed & Latitude & Longitude & Altitude & Airspeed \\ \hline     1-01 & 44.251100 & -75.760474 & 5000 & 75 & 45.095869 & -75.773706 & 1580 & 75 \\     1-02 & 44.251100 & -75.760474 & 5000 & 75 & 45.998808 & -75.744519 & 1580 & 75 \\      \\     1-03 & 44.222150 & -75.395867 & 5000 & 75 & 45.095869 & -75.773706 & 1580 & 75 \\     1-04 & 44.222150 & -75.395867 & 5000 & 75 & 45.998808 & -75.744519 & 1580 & 75 \\     \\     1-05 & 44.084742 & -75.893425 & 5000 & 75 & 45.095869 & -75.773706 & 1580 & 75 \\     1-06 & 44.084742 & -75.893425 & 5000 & 75 & 45.998808 & -75.744519 & 1580 & 75 \\     \bottomrule     \end{tabular}     \end{table}      ![enter image description here](http://i.stack.imgur.com/cfZR8.png)


title: Tikz: Drawing an arrow with three lines

text: I'm currently using tikz to draw an arrow with two lines using this style:               doublearrow/.style={draw, color=black!75, draw=black!50, thick, double distance=2pt, ->, >=stealth}}      The documentation does not say if it's possible to have an arrow with three lines. I've seen it in papers before and I guess it is probably also done with Tikz as the arrow tips are the same. Any idea how to do it?


title: Write a line without listing inside a list

text: How can I write a line without listing inside a list like below ![enter image description here](http://i.stack.imgur.com/Dqi3L.png)


title: How to add a copy of moderncv footer to an article document class?

text: I want to create an article document with a footer like the one in moderncv, see image. Does anyone know how I can accomplish this? It doesn't necessarily have to be exactly the same as in moderncv, but something similar. ![footer](http://i.stack.imgur.com/Dejk0.png)


title: No indent in the first paragraph in amsart?

text: I would like to remove all the first indentations in amsart, so I am seeking for an "indentfirst=false" command. Note that amsart do indents the first paragraphs by default (so the suggested solutions of 'No indent in the first paragraph in a section?', i.e. 'do nothing' are not relevant here).


title: memoir class and \titleGM title page style with custom dimensions

text: I'm attempting to format a textbook that I'm writing using the memoir document class and am running into some problems with the `memoir` class and the `\titleGM` custom title page style. Here is my preamble:               \documentclass[9pt,extrafontsizes,oneside]{memoir}          \setstocksize{9in}{6in}     \settrimmedsize{\stockheight}{\stockwidth}{*}     \settypeblocksize{7.5in}{4.5in}{*}     \setlrmargins{0.75in}{*}{*}          \chapterstyle{bringhurst}          \fixthelayout          \usepackage{lipsum}          % Font and Typography Settings          \usepackage{concrete}     \usepackage{euler}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[babel=true]{microtype}      And here is the definition of the `\titleGM` command that I'm attempting to use:               \makeatletter     \newlength\drop     \newcommand*{\titleGM}{%     \thispagestyle{empty}     \begingroup% Gentle Madness     \drop = 0.1\textheight     \vspace*{\baselineskip}     \vfill     \hbox{%     \hspace*{0.2\textwidth}%     \rule{1pt}{\dimexpr\textheight-28pt\relax}%     \hspace*{0.05\textwidth}%      \parbox[b]{0.75\textwidth}{%     \vbox{%         \vspace{\drop}         {\Huge\bfseries\raggedright\@title\par}\vskip2.37\baselineskip         {\Large\bfseries\@author\par}         \vspace{0.5\textheight}     }% end of vbox     }% end of parbox     }% end of hbox     \vfill     \null     \endgroup}     \makeatother      The problem that I seem to be having is that the title page drops off the bottom (the vertical line goes down into the margin, and the title page doesn't seem to fit the text dimensions very well. Does anyone know how to modify this titlepage style?


title: Table Configuration

text: I'm new to LaTeX, and I'm currently struggling with trying to create a table for a lab report. The table has to look like this: ![enter image description here](http://i.stack.imgur.com/GMc9r.png) I have tried looking at the `\tabular`, `\tabulary` and `\tabularx` environments, but I just can't seem to figure out how to set up that first row. Can anyone give me some tips on how I can best set up the right hand side so that it has 2 rows as shown, whilst the left hand side takes up one row that is equal in height? This is what I've tried, but to no avail:               \begin{tabular}[C]{6}     \hline     \multirow{2}{*}{Configuration}      \multirow{2}{*}{Flow rate (L/hour)} &     \multicolumn{2}{*}{Water Temperatures (\degree C)}      \multicolumn{2}{*}{Pipe Surface Temperatures (\degree C)}     \end{tabular}


title: Table width and Header

text: I would like to create a table as: ![enter image description here](http://i.stack.imgur.com/Hj2ss.jpg) It is a complicated table both in size and style: I have tried the following code:               \documentclass{article}          \usepackage{booktabs}          \begin{document}     \begin{table}         \begin{tabular}{|l|lll|ll|l|ll|}         \hline          Name   of bus stop         & Number of passengers & ~     & ~          & ~      & ~     & Growth in Bike-and-ride users (\%) & Share of bike-and-ride users & ~     \\         ~                           & Before               & After & Growth (\%) & Before & After & ~                                 & Before                       & After \\ \hline         Zevenbergen-Drie Hoefijzers & 28                   & 28    & 0          & 23     & 18    & -18                               & 82                           & 65    \\         Oosterhout-Europaweg        & 32                   & 47    & 47         & 4      & 14    & 250                               & 13                           & 30    \\         Oosterhout-Napoleonlaan     & 195                  & 211   & 8          & 10     & 17    & 90                                & 5                            & 8     \\         Oosterhout-Elkhuizenlaan    & 127                  & 123   & -3         & 14     & 27    & 80                                & 11                           & 22    \\         Oosterhout-Busstation       & 409                  & 647   & 58         & ~      & 220   & 35                                & 41                           & 34    \\         Werkendam-Sleewijk          & 129                  & 184   & 43         & 92     & 127   & 32                                & 71                           & 69    \\         Raamsdonkveer Busstation    & 448                  & ~     & ~          & ~      & ~     & ~                                 & ~                            & ~     \\         Total                       & 1368                 & 1718  & 26         & 520    & 618   & 20                                & 38                           & 36    \\ \hline         \end{tabular}     \end{table}     \end{document}      And as a result an unlike table is created: ![enter image description here](http://i.stack.imgur.com/crXJq.jpg)


title: Plot the \coordindex in alphabetic order

text: I need to replace the index numbers in the plot by alphabetic sequence. For example, on the following graph instead of 0,1,2,..., I want to see a,b,c,...               \documentclass{standalone}     % This file is an extract of the PGFPLOTS manual, copyright by Christian Feuersaenger.     %   http://pgfplots.sourceforge.net/pgfplots.pdf     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pagestyle{empty}     \usepgfplotslibrary{patchplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[view/h=120,xlabel=$x$,ylabel=$y$]          % replicate the vertex list to show \coordindex:          \addplot[only marks,nodes near coords={\coordindex}]     coordinates {(1,1) (2,2) (3,1)};          \addplot [red,mark=square] coordinates {(1,1) (2,2) (3,1)};          \end{axis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/bFsFB.jpg) My idea is to replace `\coordindex` with sum of the `\coordindex` and ascii code of "a" 97. But I don't know how to implement this.


title: Undefined Control Sequence due to TikZ-Tokens

text: I have a question concerning this minimal example:               \documentclass{minimal}       \usepackage{tikz}       \usetikzlibrary{petri}          \begin{document}       \begin{tikzpicture}          \node[place, tokens=2] (p) {};       \end{tikzpicture}     \end{document}      This gives me the following two errors:               ! Undefined control sequence.     \pgfutil@font@tiny ->\tiny           l.8     \node[place, tokens=2] (p) {};          ?      ! Undefined control sequence.     \pgfutil@font@tiny ->\tiny           l.8     \node[place, tokens=2] (p) {};          ?       If I set `tokens=3` I'll get accordingly the error three times, if I remove the tokens, everthing is fine. Can anyone, please, at lest tell me where to look for the error?


title: Unable to use transitions with TikZ-UML

text: While trying to compile a small state diagram using `TikZ-UML` I'm getting the following error:               ! Undefined control sequence.     \tikzumlfont ->\small           l.10 \umltrans{initial}{state1}      Code:               \documentclass{minimal}     \usepackage{tikz}     \usepackage{tikz-uml}     \begin{document}          \begin{tikzpicture}     \umlstateinitial[x=0, y=0, name=initial]     \umlbasicstate[x=5, y=0, name=state1]{state1}     \umlstatefinal[x=10, y=0, name=final]     \umltrans{initial}{state1}     \umltrans{state1}{final}     \end{tikzpicture}          \end{document}      It works fine if I remove the transition `\umltrans{state1}{final}`.


title: In pgfplots, font=\small throws undefined control sequence

text: I would like to reduce the label font size in a pgfplot. When I do `x tick label style={rotate=90, anchor=east},` the file compiles, when I do `x tick label style={font=\small,rotate=90, anchor=east},` to reduce the font size, I get               ! Undefined control sequence.     \tikz@textfont ->\small           l.14 \end{axis}                    \end{tikzpicture}     ?       **Where is the problem?** I've seen this expression working in hundreds of examples on the web. * * * Full code:               \documentclass{minimal}          \usepackage{tikz}     \usepackage{pgfplots}     \usepackage[scaled]{helvet}     \usepackage[T1]{fontenc}     \usepackage{verbatim}          \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif          \usetikzlibrary{plotmarks}          %%%<     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \PreviewEnvironment{verbatim}     \setlength\PreviewBorder{5pt}     %%%>          \begin{document}          \begin{tikzpicture}\begin{axis}[     title = { Title },     ymin=0, xbar, bar width=10cm /  67.5 , width=10cm, xtick={1,..., 27 },     xticklabels={%     Sample 1 ,     Sample 2,     Sample 3,     }, x tick label style={font=\small,rotate=90, anchor=east}, ylabel={Concentration [pg / $10^5$ cells]},]     \addplot[fill=black,draw=black,ybar,error bars/.cd,y dir=both,y explicit] coordinates {     ( 1 , 0.0 ) +- ( 0.0 , 0.0 )     ( 2 , 3.38661354582 ) +- ( 4.78939480701 , 4.78939480701 )     ( 3 , 1.05696969697 ) +- ( 1.49478088047 , 1.49478088047 )     };     \end{axis}\end{tikzpicture}          \end{document}


title: Writing a backslash in the \texttt environment

text: How do you go about writing a backslash in the `/texttt` environment? The `$\backslash$` trick makes the font inconsistent. The reason I am asking is that I am writing some introductory computer science material and need to talk about different escape characters in `printf` and other functions. The verbatim environment adds new lines while I would like my finished product to be strictly inline.


title: Editing Table in LateX

text: Below is a table I want it to appear it the top page of a two column page. But its not looking good so if anyone could please assist me.               \begin{table*}[t]     \centering\setlength{\tabcolsep}{.3\tabcolsep}     \begin{tabularx}{\linewidth}{|*2{>{\centering\hsize=1.6666\hsize}X|}*8{>{\centering\arraybackslash\hsize=.83333\hsize}X|}}     \hline     {\bf Point of Comparison} & {\bf Microsoft Kinect} & {\bf Asus Xtion} \\     \hline     Hardware Compatibility & Stable work with various hardware models & Does not work with some USB controllers (especially USB 3.0) \\     \hline     View Adjustment & Has motor that can be controlled remotely by the application & No motor, allow only manual positioning \\     \hline       Size & 12" x 3" x 2.5" & 7" x 2" x 1.5" \\     \hline     Weight &     3.0 lb &     0.5 lb \\     \hline     Power Supply & USB + ACDC power supply &        USB \\     \hline     Power Consumption & 12 watts & below 2.5 watts  \\     \hline     Distance of Use & between 0.8m and 4m in normal field of view      & between 0.8m and 3.5m \\     ~& between 0.4m and 3m in narrow field of view &~\\     \hline     Field of View & 57\degree horizontal, 43\degree vertical & 58\degree Horizontal, 45\degree Vertical \\     \hline     Vertical tilt range  &     $\pm$27\degree & Not applicable \\     \hline     Frame rate & 30 frames per second (FPS) & 30 frames per second (FPS) \\     \hline     Depth Image Size - Resolution  &  640 x 480 pixels &  640 x 480 pixels \\     \hline     OS Platform Support & Xbox 360 & Microsoft Windows      \\      & Microsoft Windows & Linux\\     &  Linux & MacOS\\     & MacOS & \\      \hline     Programming Language & C++/C\# (Windows)      & C++/C\# (Windows) \\     & C++(Linux) & C++(Linux)\\     & JAVA & JAVA\\     \hline     \end{tabularx}     \caption{Comparison between Microsoft Kinect and Asus Xtion Specifications}     \label{tab:template}     \end{table*}


title: picture width problem

text: I need to make the picture with the width of one column in two column paper, and I wrote `\linewidth` but it doesn't work as shown below; it's smaller than the width and also it is very small. I need to make it bigger; any help? ![my photo](http://i.stack.imgur.com/fMCRG.png)               \begin{figure}[H]     \centering     \includegraphics[width=\linewidth]{Data/classoutput.eps}\label{pic10}     \caption{Caption}     \end{figure}


my script produces this error:               Runaway argument?     \section *{Serumnatrium} \par \ib {Zweck}{ \el { * Wasserverteilung *\ETC.     ! File ended while scanning use of \@xs@testcase.     <inserted text>                      \par       Unfortunately, I can't create a minimal example that produces the error. As far as I understand, there must be an emtpy space that's interpreted as argument(?) but I can't find the position that causes the error, since I have some macros that are forwarding the arguments to some others. I found that post: \IfStrEqCase having problem with last optional parameter, added `\tracingmacros=1` and got a 140MB log file. But I don't know how to interprete the data. What I am looking for in the file? Edit: I suppose the error might be connected with a macro that has 3 arguments in definition but is sometimes called with just 2, when the 3 one isn't needed.


My compiled math font family is not like a default one(e.g., the font used in MahtJaX), but it is same as the text font family. My example code and it's complied one are shown below.               \documentclass[xcolor=x11names,compress]{beamer}          \usepackage{graphicx}     \usepackage{tikz}     \usepackage{palatino}          \useinnertheme{default}     \usefonttheme{serif}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \begin{document}          \begin{frame}{Example}     \begin{definition}     Let $R\subseteq S\timesT$ be a relation.\break     The domain of R is defined as:\break     $\operatorname{Dom} \left({\mathcal R}\right) := \left\{{s \in S: \exists t \in T: \left({s, t}\right) \in \mathcal R}\right\}$\break     and can be denoted $\operatorname{Dom} \left({\mathcal R}\right)$.     \end{definition}     \end{frame}          \end{document}      ![enter image description here](http://i.stack.imgur.com/TETpP.png) This definition is from the webpage of Proofwiki. How to change the font family to default for math codes in beamer?


title: Fill style that looks like hand-drawn / hand-filled with crayon

text: How to generate in LaTeX (TikZ or something similar) the following image: ![crayon fill for cylinder](http://i.stack.imgur.com/csXcr.jpg) ![crayon fill for triangle](http://i.stack.imgur.com/h8R84.jpg) This was not drawn by hand, as far as I known, but with some Mac tool.


title: Biblatex-chicago and bibliography compilation problem

text: Taking all your comment into consideration this is my problem. I am writing my PhD dissertation on a Macbook using OSX Mactex2013 and textMate. Every now and then I have an issue with compiling the bibliography with bibtex. It seems that bibtex does not find the bib file as it gives the "exited with status 2" message. But this happens only once every now and then, and when it does I have to search for hours on the internet and the tex stack exchange to find possible solutions. The curious thing is that it happens without me doing nothing: for instance, it was working fine before Christmas, then I left it all for about 3 weeks. When I came back and opened my file WITHOUT ANY CHANGE IN IT, I could not make bibtex work once again. I have tried what worked before: delete the .aux files etc.; delete some strange code lines that suddenly appeared at the beginning of the document and that were creating the issue; try to change some packages. Nothing works apparently. I've made this minimum example, and it still does not work (bibtex "exited with status 2"): the references (`\autocite` command) are not recognised and transformed into the full citation. Minimum Working Example:               \documentclass{scrbook}     \bibliography{Bibliography2.bib}     \usepackage{csquotes}     \usepackage[notes,natbib,isbn=false,backend=biber,hyperref=true]{biblatex-chicago}          \begin{document}     \include{Chapters/Introduction}     \end{document}


title: subfigures don't appear in list of figures

text: I've a problem with using `subfigure`s. I want to list their caption in the list of figures. In my opinion this should not be a problem. I have read the `subfigure` package description http://www.tex.ac.uk/ctan/obsolete/macros/latex/contrib/subfigure/subfigure.pdf allready but I can't get it. Here is my minimal example:               \documentclass[                 fontsize = 12pt,                 paper = a4                 ]                 {article}          \usepackage{subfigure} % Um mehrere Bilder nebeneinander          \begin{document}          %-------------------------------------------------------------          \begin{figure}%     \centering     \subfigure[First.]{...}\qquad     \subfigure[Second figure.]{...}\\     \subfigure[Third.]{\label{3figs-c}...}%     \caption{Three subfigures.}     \label{3figs}     \end{figure}               %-------------------------------------------------------------               \listoffigures     \end{document}      Another thing what is important maybe ist the `*.lof` File, although it looks quite complete to me:               \contentsline {figure}{\numberline {1}{\ignorespaces Three subfigures.}}{1}     \contentsline {subfigure}{\numberline {(a)}{\ignorespaces {First.}}}{1}     \contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Second figure.}}}{1}     \contentsline {subfigure}{\numberline {(c)}{\ignorespaces {Third.}}}{1}      I allready deleted all NOT- `*.tex` Files and recompiled the `*.tex` File. I am using Windows, MiKTeX 2.9 and TeXmaker. Please ask if you need more information! I hope you can give me some input!


title: nested equations numbering

text: Is there a way of playing with `align`, `alignat`, `numcases` etc environments that produces aligned and numbered equations which look like this :               Blahblah text before equations :                A = B  \iff  C = D             (1)                             { C_1 = D_1       (2)                  \iff  {                        { C_2 = D_2       (3)                       \iff  E = F             (4)          Blahblah text after equations      Any suggestion greatly appreciated. * * * it looks like the numcases environment from the cases package would do the job. but it seems not allowed inside an align environment. the following minimal example won't compile. with :               \documentclass{article}     \usepackage{amsmath,cases}     \begin{document}     \begin{align}     A = B &\iff C=D\\     &\iff       \begin{numcases}{}         C_1 = D_1\\         C_2 = D_2       \end{numcases}\\     &\iff E=F     \end{align}     \end{document}      i get :               (/usr/share/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-dist/tex/latex/base/size10.clo))     (/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/share/texmf-dist/tex/latex/cases/cases.sty) (./attempt.aux)     ! Missing \endgroup inserted.     <inserted text>                      \endgroup      l.12 \end{align}          ?


title: Is it possible to convert a beamer presentation directly to an a0 Poster?

text: Suppose I have a Beamer presentation with 20 slides, and I need to make a poster out of them in 5 minutes. Is it possible to have Beamer output the slides into a 5x4 grid on an a0 sized pdf? I'm not really sure how I'd go about doing this, but I have a hunch that it should be possible. Any thoughts?


title: Can I count text as another category using TeXCount?

text: I am using TeXCount to perform a word count. I am using `%TC:macro \macroname n` (http://app.uio.no/ifi/texcount/faq.html#newmacro) to treat macros differently (for example I have a 'to-do' macro). Can I count the contents of these macros and put this count in a custom category for HTML output? Their `other` option ("count text as other text") puts the count in the same category as captions, etc. which is undesired. MWE:               \documentclass[a4paper]{minimal}     \newcommand\todo[1]{\textcolor{red}{#1}}     \begin{document}     \todo{Insert some text here.}     \end{document}      Given a 'to-do' macro `todo` which simply colours the enclosed text in red, I seek a TeXCount command like `%TC:macro \todo [my_category]` which counts the number of words enclosed in `\todo` and associates it with `my_category`. It should produce something like the following.               File: mwe.tex     Encoding: ascii     Words in text: 0     Words in headers: 0     Words outside text (captions, etc.): 0     Number of headers: 0     Number of floats/tables/figures: 0     Number of math inlines: 0     Number of math displayed: 0     Number of words in my_category: 4     Subcounts:       text+headers+captions (#headers/#floats/#inlines/#displayed/#my_category)     0+0+0 (0/0/0/0/4) _top_      I appreciate that this may not be possible. Thanks.


title: biblatex: Setting maxbibnames option truncates to first name + et al., not to the maxbibnames value

text: I'm using: `biblatex` 1.7.1; `biber` (0.9.6 I guess) and working on LyX on Kubuntu 12.04. For example, I'm setting in my `.bbx` file the value to `6`:               \ExecuteBibliographyOptions       {         maxbibnames = 6     }      But in the reference list the references aren't truncated after 6 names as I would expect but rather displays only 1 name + et al. (only for entries with more than 6 authors, of course). But if I set it to say `maxbibnames =99` then I get the full list of authors. The style I'm basing on calls for `authoryear.bbx` which truncates itself to the first name + et al. if there are more than 6 authors. Why is that?


title: beamer color changes from slide to slide

text: I have a problem with colors that is rather weird. I wrote this presentation in beamer, and while I set all the color of the text with               \setbeamercolor{text1}{fg=SeaGreen!80!black}      and I use them with               \usebeamercolor[fg]{text1}      I realized that the color of the text changes from slide to slide, I mean something like 'green' instead of 'seagreen', regardless of the fact that I use always the same command to set the color. I don't manage yet to replicate this problem with a minimal example. Does anybody have any thoughts about what it could be? Edit: I realized this is a problem only visualizing with acroread, instead evince shows the correct colors. Do you think this is a genuine problem with acroread, or it is due to the fact I did something wrong in my tex file?


title: Straight and non-straight parent-child connections in tikz-qtree

text: I want to acheive something of this sort, (without the bounding boxes): ![Binomial tree diagram](http://i.stack.imgur.com/hl9IF.png) Here, the first child has a straight line from the parent, and the following ones are diagonal. What tikzset settings will allow that, or how would I go about acheiving this, and where can I learn more about it for the future? currently I have:               \tikzset{every tree node/.style={minimum width=2em,draw,circle},              blank/.style={draw=none},              edge from parent/.style=              {draw, edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}},              level distance=1.5cm}      which I got from a post on tex.sx without knowing too much about how it works.


title: TikZ, node with multiple lines around

text: I want to draw a circle node using tikz that has more than two lines around. I found this question: TikZ - multi-color double circle node with its very good accepted answer. Unfortunately, I have no idea how to extend it to more than two lines.


title: Show journal abbreviation in reference list with biblatex/biber

text: This question was previously asked by Yotam who got an answer from Andy Thomas saying he should edit the `biber.conf` file in order to use biber's regular expressions capacities. I tried this with my setup: `biblatex` 1.7.1; `biber` and working on LyX on Kubuntu 12.04. I didn't have any `.biber.conf` file on my home dir so I just created one and wrote into it:               <map>       <bibtex>       BMAP_OVERWRITE 1         <globalfield journal>           BMAP_MATCH Applies\sand\sEnvironmental\sMicrobiology           BMAP_REPLACE "Appl Environ Microbiol"         </globalfield>       </bibtex>     </map>      The result was that I didn't get any reference list at all.   Where's my error here?


title: Typesetting a small function with Big parameters

text: I have a small function that needs to take big parameters. Right now I think that the function part looks too small and implicitly suggests it might be some kind of multiplication instead of an evaluation.               \newcommand{\rect}{\mathrm{\textbf{rect}}}     ...     \(\left[(\rect_\ell) \ast (f\ast g)\right]\left( x+\frac{2i-1}{2k},y+\frac{2j-1}{2k}\right)\)      It looks like this & I think its ugly: ![enter image description here](http://i.stack.imgur.com/aYVVm.png)


title: bclogo: logo do not display with in pdflatex

text: Could you help me please? I am trying to get a `.pdf` file with bclogo but I receive a latex message error: > ! LaTeX Error: File `bc-fleur' not found.See the LaTeX manual or LaTeX > Companion for explanation.Type H for immediate help.... \end{bclogo} ## I use miktex 2.9 with windows 8.1 !               \documentclass{article}     \usepackage{fancyvrb}     \usepackage[tikz]{bclogo}     \usepackage{xcolor}     \definecolor{grisbleu}{RGB}{224,224,224}          \begin{document}     \begin{bclogo}[couleur=grisbleu!90,logo=\bccrayon, couleurBord = grisbleu , couleurOmbre = grisbleu, epBarre=2.5]{Code}     \begin{Verbatim}[formatcom=\color{red},fontfamily=courier,fontsize=\small,fontseries=b]          tab<-read.table("grandtable.txt")          #pour ne  lire qu'une colonne#          tab$V5          \end{Verbatim}               \end{bclogo}%          \end{document}


title: LaTeX packages minted and scrhack

text: I'd like to use the `minted` package and the `scrhack` package in the same LaTeX document, that is:               \usepackage{scrhack}     \usepackage{minted}      However, I get the following error:               /usr/local/texlive/2013/texmf-dist/tex/latex/minted/minted.sty:215: Package scrhack Error: extension `lol' already in use. [...t{listing}{h}{lol}[\minted@float@within]}]      Edit: The problem was that I used the package `classicthesis` and included both, `listing` and `minted`. I cannot completely replicate the error, but this MWE has a very similar error message:               \documentclass{scrreprt}          \usepackage{scrhack}     \usepackage{minted}     \usepackage{listings}                    \begin{document}              Hello, World!          \end{document}      The error message is:               There were errors in your LaTeX source          /usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/listings.hak:136: Package tocbasic Error: file extension `lol' cannot be used twice . [}]      Now, I removed `listings` (and all related parts) in the `classicthesis- config.tex` file and everything works fine. I don't think, that I'll need both packages, so my problem is solved.


title: Kind of spurious space

text: I'm trying to write a `\spaced` macro: it takes a string as parameter, decompose that string and then recompose it spreading avery token from the others according to a given `\spreadratio`. Here are the macro along with an MWE:               \catcode`\@=11          \font\sc="Latin Modern Roman Caps:mapping=tex-text,+onum"          \chardef\box@temp@la=0     \dimendef\dimen@temp@la=0     \dimendef\dimen@temp@lb=2     \toksdef\toks@temp@ga=1          % \boxit is only aimed to highlight the problem.     % If you wanna see the MWE without boxing just comment this     % definition and uncomment the following one.     \def\boxit#1{\vbox{\hrule\hbox{\vrule#1\vrule}\hrule}}     %\def\boxit#1{#1}          \newcount\spreadratio \spreadratio=100          % The interface of \spaced is the following:     %     %    \spaced[<number>]{<token list>}     %     % where the optional parameter is the amount of \spreadratio     % other than the predefined one.     \def\spaced{\futurelet\firsttok\@spaced}          \def\@spaced{%       \if\firsttok[\let\next\@paramspaced       \else\let\next\@simplespaced\fi       \next}          \def\@paramspaced[#1]#2{{\spreadratio=#1\dosp@ced{#2}}}          \def\@simplespaced#1{\dosp@ced{#1}}          \def\dosp@ced#1{{\setbox\box@temp@la\hbox{#1}%       % the size of the \hbox is changed according       % to the value of \spreadratio       \dimen@temp@la\wd\box@temp@la \dimen@temp@lb\dimen@temp@la       \divide\dimen@temp@lb by\@m       \multiply\dimen@temp@lb by\spreadratio       \advance\dimen@temp@la by\dimen@temp@lb       \global\toks@temp@ga={}%       \@split{#1}%       \setbox\box@temp@la\hbox to\dimen@temp@la{\the\toks@temp@ga}%       \box\box@temp@la}}          \def\@split#1{\@@split#1\end}          \def\@@split#1{%       \ifx#1\end         \global\toks@temp@ga=\expandafter{\the\toks@temp@ga\unskip}%         \let\next\relax       \else         \global\toks@temp@ga=\expandafter{\the\toks@temp@ga#1\hfil}%         \let\next\@@split\fi       \next}          \catcode`\@=12          \noindent     \boxit{The music}\par\noindent     \boxit{\spaced{The music of Steve Reich}}\par\noindent     \boxit{\spaced[300]{The music of Steve Reich}}\par\noindent     \boxit{{\sc The music of Steve Reich}}\par\noindent     \boxit{\spaced{\sc The music of Steve Reich}}\par\noindent     \boxit{\spaced[300]{\sc The music of Steve Reich}}\par\noindent     % Note that here are no spaces between '\it' and the word 'The'.     \boxit{{\it{}The music of Steve Reich}}\par\noindent     \boxit{\spaced{\it{}The music of Steve Reich}}\par\noindent     \boxit{\spaced[300]{\it{}The music of Steve Reich}}\par\noindent     \boxit{\spaced{The music of Steve Reich}}\par\noindent     \end      The result is the following. ![enter image description here](http://i.stack.imgur.com/N1PpG.jpg) As you can see (note the space before the word 'the') when the first token of the mandatory parameter is a macro (just like `\sc` or `\it`), `\spaced` adds a kind of spurious space before the second token. I can't imagine where that space comes from, and I'm not able to eliminate it. Where can be my fault?


title: tikz-timing with non-linear rise time?

text: Is there a good way to draw signals in tikz-timing with a non-linear rise time? I didn't see any direct means. I have a very manual solution (drawing bezier curves between tikz-timing anchors), but it is tedious and I'm hoping that someone more familiar with tikz / tikz-timing can point me to a more general / automated way of doing this:               \documentclass{article}          \usepackage{color}     \usepackage{       tikz,       tikz-timing,     }     \usetikzlibrary{positioning}     \pagenumbering{gobble}          \begin{document}       \centering       \begin{tikztimingtable}[timing/wscale=3.0,timing/slope=.3]         SCL & HHHHH           L N(cl1){.5S} {.5S} [white]{0H}[black] N(ch1){.5H}{.5H}           L N(cl2){.5S} {.5S} [white]{0H}[black] N(ch2){.5H}{.5H}           L N(cl3){.5S} {.5S} [white]{0H}[black] N(ch3){.5H}{.5H}           \\         SDA & HHHHL           {.1L} N(dl1){.5S} {.5S} [white]{0H}[black] N(dh1){.5H}{.5H} {.9H}           {.1H} L {.9L}           {.1L} N(dl2){.5S} {.5S} [white]{0H}[black] N(dh2){.5H}{.5H} {.9H}           \\                  & \\       \extracode       % Draw rising curves         \begin{scope}           [color=red]           \draw (cl1.south) ..               controls               ([xshift=.2em,yshift=.9em] cl1) and               ([xshift=-.2em,yshift=-.1em] ch1) ..             (ch1.north);           \draw (cl2.south) ..               controls               ([xshift=.2em,yshift=.9em] cl2) and               ([xshift=-.2em,yshift=-.1em] ch2) ..             (ch2.north);           \draw (cl3.south) ..               controls               ([xshift=.2em,yshift=.9em] cl3) and               ([xshift=-.2em,yshift=-.1em] ch3) ..             (ch3.north);           \draw (dl1.south) ..               controls               ([xshift=.2em,yshift=.9em] dl1) and               ([xshift=-.2em,yshift=-.1em] dh1) ..             (dh1.north);           \draw (dl2.south) ..               controls               ([xshift=.2em,yshift=.9em] dl2) and               ([xshift=-.2em,yshift=-.1em] dh2) ..             (dh2.north);         \end{scope}              \begin{pgfonlayer}{background}           \begin{scope}[semithick,dashed]             \vertlines[color=red]{12}             \vertlines[color=gray]{15,21,...,\twidth}           \end{scope}         \end{pgfonlayer}              \begin{scope}           [font=\bf\sffamily,shift={(-3.0em,0)},anchor=east,color=blue]           \node at (  0,  -0.5) {Traditional};         \end{scope}              \begin{scope}           [font=\bf\sffamily,shift={(-1,3.5)},anchor=north,align=center]           \node at (13, 0) {Start};           \node at (19, 0) {1};           \node at (25, 0) {0};           \node at (31, 0) {ACK};         \end{scope}       \end{tikztimingtable}          \end{document}      ![Shortened I2C Waveform](http://i.stack.imgur.com/Eqn04.png)


title: Calculating Beamer presentation progress excluding appendix

text: ## Problem description In trying to calculate the progress of a Beamer presentation, one can use               \pgfmathtruncatemacro{\prog}{100*(\insertpagenumber)/(\insertdocumentendpage)}      where `\prog` tracks the percentage value of the progress. To take into account that a presentation may possibly contain an appendix, and to exclude slides therein from the calculation of `\prog`, I naturally thought that one can simply change `\insertdocumentendpage` to `\insertpresentationendpage`, or `\insertappendixstartpage-1` when an appendix does exist. However, doing so results in an error: > Package PGF Math Error: Unknown operator `=' or `=4' (in > '100*(3)/({\beamer@tempcount =4\relax 0})'). If `\insertappendixendpage` is used, there is no error (but the value of `\prog` will be wrong). The following MWE contains no appendix, so the four `\insert<...>`s should have the same value. However, uncommenting either of the last two frames results in the abovementioned error.               \documentclass{beamer}          \begin{document}          \frame{         \pgfmathtruncatemacro{\prog}{100*(\insertpagenumber)/(\insertdocumentendpage)}         progress = \prog     }          \frame{         \pgfmathtruncatemacro{\prog}{100*(\insertpagenumber)/(\insertappendixendpage)}          progress = \prog     }          % \frame{     %     \pgfmathtruncatemacro{\prog}{100*(\insertpagenumber)/(\insertappendixstartpage-1)}      %     progress = \prog     % }          % \frame{     %     \pgfmathtruncatemacro{\prog}{100*(\insertpagenumber)/(\insertpresentationendpage)}      %     progress = \prog     % }          \end{document}      ## Question Why is this the case, and how can I correct it? * * * ## Edit (based on Tom Bombadil's long comment) Try adding this outside of a frame:               \typeout{======================================}     \show\insertdocumentendpage     \typeout{======================================}     \show\insertpresentationendpage     \typeout{======================================}     \show\insertappendixstartpage     \typeout{======================================}      The equal signs are just there so it's easier to find in the _.log_ file. This will return               ======================================     > \insertdocumentendpage=\long macro:     ->\beamer@endpageofdocument .     l.27 \show\insertdocumentendpage     ======================================     > \insertpresentationendpage=\long macro:     ->{\ifx \beamer@startpageofappendix \@empty \beamer@tempcount =\beamer@endpageo     fdocument \relax \else \beamer@prevpage \beamer@startpageofappendix \relax \fi     \the \beamer@tempcount }.     l.29 \show\insertpresentationendpage     ======================================     > \insertappendixstartpage=\long macro:     ->{\ifx \beamer@startpageofappendix \@empty \beamer@tempcount =\beamer@endpageo     fdocument \relax \else \beamer@tempcount =\beamer@startpageofappendix \relax \f     i \the \beamer@tempcount }.     l.31 \show\insertappendixstartpage     ======================================      Apparently, the problem is related to the fact that `\insertdocumentendpage` just returns a value, while `\insertpresentationendpage` and `\insertappendixstartpage` return an expression that needs to be evaluated first. So the question can be refined to either   * How can one force `\pgfmathparse` to evaluate this first? or   * How can one save the result of such an expression in a macro?


title: how to have the journal name shown when I cite a paper in beamer?

text: I am writing a `beamer` presentation and I would like citations to appear (in the text!) like "Doe et al., Journal of Latex Greatness, 2007". Instead if I use only the `\cite{}` command (together with `apalike` bibliography style). I only get the author and date [Doe et al., 2007]. Do you have any ideas? I use a large `bibtex` file that stores all the relevant information.


title: Two-Headed Arrow Over Formula

text: I have a quantified formula. I want to show what happens when the order of quantifiers is reversed. To do this, I like to use a two-headed arrow over the formula, like this: ![](http://i.stack.imgur.com/wc6P6.png) Is it possible? I don't care if you use graphical packages (like TikZ), as long as I can place the arrow in the right place.


title: Split the Table of Contents in two pages

text: Let's say I'm writing a document with 6 chapters. I want to force the table of contents to be split between two pages. The first page would list the first 4 chapters, the second page would list the last 2 chapters. How can I do that? If it matters, assume the document class is report.


title: Setting up a LaTeX document using the Uggedall or tufte-latex templates

text: I’ve used LaTex before for a while, but (1) it’s been ages, and (2) I’ve only really had to import minor packages for a basic template. Having come across templates/classes like Uggedal’s and `tufte-latex`, I want to take it one step further. The problem is that I have either completely forgotten how to do this or have never had to do anything like it. I use Windows 7 with MikTeX and TeXnicCenter, and can’t find anything telling me what to do, or how to do it properly. It may be a lot to ask, but could someone write a step-by-step guide to using the templates and writing a simple example document free of a slew of LaTeX errors? It doesn’t seem like a simple slam dunk, and I should probably throw files like .cls into some system folders.


title: Shifting a path horizontally between nodes

text: With the following extract, how can I x-shift the second edge (edge2) between n1 and n2 so that it doesn't overlap with the first? Also, is there a way to add text to each of the edges so that they don't overlap? ![enter image description here](http://i.stack.imgur.com/2ujEw.png)               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{chains}     \usetikzlibrary{arrows}          \begin{document}     \begin{tikzpicture}     [node distance=0mm, text height=1.5ex, text depth=.25ex,     attribute/.style={rectangle,minimum size=8mm,very thin,draw=black!50,font=\ttfamily},     link/.style={thin, to path={-- ++(0,8mm) -| (\tikztotarget)}, >= triangle 45, shorten >= 0pt}]     \node (n1) [attribute] {\small NODE1};     \node (n2) [attribute, right=of n1] {\small NODE2};     \path (n1) edge [->, link] (n2);     \path (n1) edge [->, link] (n2); %this edge to x-shift     \end{tikzpicture}     \end{document}


title: Citet and citep not working with hyperlink

text: > **Possible Duplicate:**   >  Citep only works as cite? I used bibtex/natbib to compile my thesis, but unfortunately `\citet` and `\citep` don't connect with the hyperlink. In short:   1. `\cite{KEY}` gives me ==> {KEY}   2. `\citet{KEY}` gives me ==> Jones et al. {KEY} <===only KEY is hyperlinked   3. `\citep{KEY}` gives me ==> {KEY}    4. `\citeauthor{KEY}` gives me ==> Jones et al. <===hyperlinked but no date I really don't want to use any of the above and tried doing something like `\citeauthor{KEY}(\citeyear{KEY})` <==== curly brackets not hyperlinked. Can anyone suggest a better way to do this? I want the citations to appear as: Jones et al. (2004) or (Jones et al. 2004) fully hyperlinked.


title: Proclaim command with multiple paragraphs

text: In page 131 of "TeX for the Impatient", it says the followings for `proclaim` command:               \proclaim ⟨argument⟩.␣⟨general text⟩\par          This command ``proclaims'' a theorem, lemma, hypothesis, etc.     It sets <argument> in boldface type and the following paragraph in     italics. <argument> must be followed by a period and a space token,     which serve to set off <argument> from <general text>.     <general text> consists of the text up to the next paragraph     boundary, except that you can include multiple paragraphs by putting them     within braces and ending a paragraph after the closing right brace.      Maybe I'm not understanding these well, since when I wrote the following               \proclaim Theorem 1.     {What I say is not to be believed.          What I say is not to be believed.}\par      I get an error from TeX. What is the correct usage of `proclaim` with multiple paragraphs?


title: renewcommand in a newcommand

text: I have a command `\putansline{1}{2}` that inserts `1` line of dots and prints the total score as `[2]`. I want to define a new command that if issued, will redefine this command so that it prints only the score. Here's what I have for this new command:               \newcommand{\hideanslines}{%       \renewcommand{\putansline}[2]{[#2]}     }%       I get an `illegal parameter number` error for this new command though. How can I define this new command `hideanslines` so that after I issue it, putansline can only print the points and not the lines?


title: How can I scale a TiKZ image created in MATLAB in my Tex File?

text: I'm currently having trouble scaling TiKZ figures in LaTeX and wondering if anyone can help figure out what was going on, or suggest a smarter way to do things. I'm currently creating plots in MATLAB 2012a and then saving these as .tikz files using the matlab2tikz package. After I have created the .tikz file (i.e. test.tikz), I use the following code to include it in my TeX document.               \begin{figure}         \centering         \newlength\fheight          \newlength\fwidth          \setlength\fheight{3cm}          \setlength\fwidth{3cm}         \input{test.tikz}         \caption{testing}         \label{fig:test}     \end{figure}      Although I am able to include the picture, I can't seem to rescale it. In particular changing the fheight and fwidth from {3cm} to another figure does not seem to make any difference. I'm also a lost in terms of finding the appropriate documentation for this approach to including figures in TeX files. Should I be checking out pgfplots or tikz? And should I be using the \input command or the \begin{tikzpicture} syntax.


title: Using Beamer bullets in poster

text: I am creating a LaTeX poster with the Baposter template, and would like to use the Beamer 3D bullet as my `itemize` bullet, like the one shown below: ![enter image description here](http://i.stack.imgur.com/vwtFK.png) Is there any way to achieve that?


title: Two types of page number in each page

text: In a report, I would like to place a page number at the bottom, running 1, 2, 3,... as is usually the case with a document: 1 for the 1st page; 2 for the 2nd page, ... However, in each Chapter of this document, I would like to put another page number at the top. For example, in Chapter II, 2-1 at top right on the 1st page of Chapter II and 47 at the bottom if Chapter II begins in the 47th page from the beginning, 2-2 at top left on the 2nd page of Chapter II and 48 at the bottom, and so forth. Please tell me a set of proper TEX commands for this 2 different types of page numbers for each page.


title: Connect UML classes both with connectors on the east with pst-uml (or others)

text: I want to connect UML classes both on the east side with `pst-uml`. Sadly the documentation is french and `/usr/share/texmf-dist/tex/latex/pst-uml` did not help neither. **Concept** (Dia) ![Concept](http://i.stack.imgur.com/OPduD.png) **Current status** (`pst-uml`, `texlive-pstricks 2011.22586-1`) ![Current status](http://i.stack.imgur.com/Qb8YW.png) **Source**               \documentclass[a4paper,12pt]{article}          \usepackage{fullpage}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{pst-uml}          \begin{document}          \begin{center}     \begin{pspicture}(10,3)\psgrid         \rput[r](4,1){\rnode{lorem}{             \umlClass{LoremText}{}         }}              \rput[l](6,2){\rnode{ipsum}{             \umlClass{IpsumText}{}         }}              \rput[l](6,1){\rnode{dolor}{             \umlClass{DolorText}{}         }}              \ncEVE[armA=1]{lorem}{ipsum}         \ncputicon{umlHerit}              \ncline{lorem}{dolor}         \ncputicon{umlHerit}              \ncEXN[armA=1]{ipsum}{dolor} % update me         \nbput[npos=0]{1}         \naput[npos=3]{0..*}         \naput{do sth.}         \ncputicon{umlAgreg}     \end{pspicture}     \end{center}          \end{document}      Please ignore the multiplicity (above/below line), because I did not adjust it on the concept.


title: What Unicode Font is Best Suited for Math Symbols using Font-Locking under Emacs?

text: I recently installed Emacs + AucTeX on MS Windows using the pre-configured binary available from this CTAN webpage and everything works quite well with the latest MikTeX installation and Ghostscript 8 (both of which need to be installed separately). This is by far the easiest method I have found for getting all of these programs installed and working together under Windows. One of Emacs' many useful features is "font-locking," which allows certain character sequences in the document to display on-screen as user-specified Unicode symbols. For example, typing the sequence **\alpha** in the document can be displayed (using the font-locking mechanism) as the Greek letter form _alpha_ on the screen (but not stored as such in the file on disk) if this symbol is available in the font being used for this purpose under Emacs. This capability is very useful when one cannot directly use the Unicode document encoding format for the file on disk (say for compatibility reasons) but still wants to see the Unicode glyphs that correspond to various LaTeX symbols when displaying the document in the Emacs editor window. An older package that enables this instant on-screen translation of sequence names to corresponding Unicode glyphs under Emacs is called x-symbol. A more recent package (available on this reddit page) that appears to accomplish the same thing is called _latex-pretty-symbols.el_ , which works quite well with the above-described installation. Unfortunately, many Unicode fonts that are available under Windows appear to support only a meager subset of the LaTeX math symbols that one routinely uses, including the fonts suggested by Xah Lee on his Unicode emacs blog and on this Penn State webpage. **Question:** What options are there for Unicode fonts under Emacs (MS Windows) that contain all of the routinely used LaTeX math symbols? One would think that perhaps the Computer Modern fonts themselves might exist in some form (encoding + format) that would allow them to be used from within Emacs, and if so has anyone had success using them for this purpose? How about the STIX fonts? The Cambria Math fonts can be used from within Emacs, but subscripts and superscripts do not display properly when typing them inside math blocks. Is it somehow possible to configure AucTeX to position sub/superscripts vertically in a visually acceptable manner when using Cambria Math, or is the format of this relatively new font from Microsoft somehow incompatible with what Emacs + AucTeX can handle under Windows at the moment? **Edit:** The information on this page helps explain why Emacs is having trouble rendering the Cambria Math font. Apparently Microsoft is utilizing extensions to the OpenType format for math symbols that Emacs (as well as various legacy apps like Word 2000) cannot properly handle. A more detailed explanation is provided by Murray Sargent on his blog.


title: Eliminate page number in Beamer

text: I'm a new beamer user and after days I finally chose ea theme I like, but it has number pages included and I don't want them to be shown... Does anybody know haw to eliminate the page numbers in a Beamer presentation if the theme you have selected uses them by default??


title: How to put Text in two lines inside a box

text: \rightline{\fbox{LEMA 2: $(a^m-1,a^n-1)=a^d-1$\newline onde, $d=(m,n)$}}      This command generates this ![enter image description here](http://i.stack.imgur.com/jM6KN.gif) I wanted to pass this `onde d = (m, n)` to the line below, but keeping within the box ... How to do it?


title: Techniques for comparing the shapes of a particular glyph in different fonts

text: I would like to compare the shape of a particular symbol in many different fonts. Let us assume for the sake of simplicity that the symbol is non- composite, that is it is a glyph straight from a particular font. Let us also assume some default font size (say `10pt`, but it doesn't really matter). Say I would like to compare all paragraph signs (`\P`) across a number of fonts that are installed by default for (La)TeX. (I would like to find all fonts with a hollow paragraph symbol. With `\usepackage{tgschola,textcomp}` I get a hollow one; the default symbol is a glyph with a filled bowl.) **What are some techniques, tricks, and caveats for exploring a symbol across fonts?** I am aware of different font formats, so this question is complex and a bit open-ended. I am also assuming that any answers will need to make simplifying assumptions. A similar question has in fact been asked: Comparing many maths fonts


title: How to create an array with both vertical and horizontal braces around the elements

text: I want to create the matrix shown bellow in Latex. ![Matrix that I want](http://i.stack.imgur.com/me0wh.png) I have the horizontal curly brackets figured out, I can use `undermat{}{}` for that. I do not however know how to insert the vertical curly brackets around row 1 and rows 2-4, or how to insert the centered caption bellow the array. Can someone please help me do this? Here is my code so far with the horizontal curly brackets.               \documentclass{article}          \newcommand\undermat[2]{%       \makebox[0pt][l]{$\smash{\underbrace{\phantom{%         \begin{matrix}#2\end{matrix}}}_{\text{$#1$}}}$}#2}          \begin{document}          $$     \left [     \begin{array}{cccccccc}     1.2 & 1.4 & 3.2 & 4.1 & 6.3 & 7.1 & 9.4 & 2.5 \\     1.2 & 1.4 & 3.2 & 4.1 & 6.3 & 7.1 & 9.4 & 2.5 \\     1.2 & 1.4 & 3.2 & 4.1 & 6.3 & 7.1 & 9.4 & 2.5 \\     \undermat{T1}{1.2 & 1.4 & 3.2} & \undermat{T2}{1.2 & 1.4 & 3.2} & \undermat{T3}{9.4 & 2.5} \\     \end{array}     \right ]     $$          \end{document}


title: XeLaTex and TexMaker "cannot-use-pdftex"

text: I would like to use the CV template provided by this link. In the .tex file the author recommends to compile with XeLaTeX. In TeXmaker 4.0, I've used the right option to compile but the following error showed up: > ! Fatal fontspec error: "cannot-use-pdftex" Should I try to compile using the LuaLaTeX support? **EDIT** The texlive-xetex package was not installed on the system               sudo apt-get install texlive-xetex      -> Now I can compile. Another error came out:  > File `layaureo.sty' not found **EDIT 2** I installed texlive-lang-italian package               sudo apt-get install texlive-lang-italian      Now the error is: > ! Font \XeTeXLink@font=pzdr at 0.00002pt not loadable: Metric (TFM) file or > ins Solved using               sudo apt-get install texlive-fonts-recommended      from my old question


title: Is there a way to add a field to the title page in beamer?

text: I have to add a `\supervisor` field to the title page of my presentation. Is there a way to do that in beamer? I tried adding the _supervisor_ information to the `\author` field, but the content of the author field are also displayed on the footer of all the slides, and I wanted just my name to be there. If adding a field is not possible is there a way to display custom text at the footer?


title: Tikz showing exponential curve with labels?

text: I am trying to recreate this image from a presentation: ![enter image description here](http://i.stack.imgur.com/3fyss.png) I got part of the way there with the following:               \begin{center}     \begin{tikzpicture}     \draw[<->] (0,5) node[left]{price}-- (0,0) -- (8,0) node[below] {time};     \draw[thick] (0, 4) -- (1.5, 4) ;     \draw[thick] (1.5, 4) -- (1.5, 2) ;     \draw[thick, domain=0:4] plot({\x+1.5},{(4 - (2 * exp(-\x/2)))}) ;     \draw[thick] (5.5, 3.73) -- (8, 3.73) ;     \end{tikzpicture}     \end{center}      But it's unclear to me how to add the remaining labels and arrows. Any suggestions?


title: How to create a macro for a customized frame in Beamer?

text: I'm looking for a way to create a macro like `\chapterFrame{Title of the chapter}`which adds a new slide customized as I want. As an (ugly) example, here is what it could look like.![enter image description here](http://i.stack.imgur.com/agsKP.png) I tried the following macro, but it doesn't work.               \documentclass[11pt]{beamer}     \usetheme[width=1.8cm]{Berkeley}     \newcommand\chapterFrame[1]{     \begingroup     \makeatletter     \setlength{\hoffset}{-.5\beamer@sidebarwidth}     \makeatother     \begin{frame}[plain]       \begin{block}{}         \begin{center}           \Huge Chapter 3 %add a counter                \Large The title of the chapter         \end{center}       \end{block}       \tableofcontents     \end{frame}     \endgroup     }          \begin{document}     \section{First section}     \subsection{First subsection}     \subsection{Second subsection}     \section{Second section}     \subsection{First subsection}     \subsection{Second subsection}     \chapterFrame{Title of the chapter}     \end{document}


title: R-code linebreaks AND code highlighting in knitr

text: I used the great answer from @Sharpie on 19 Jan 2012 Getting Sweave code chunks to stay inside page margins? to get linebreaks in the R-code, but how can there be code highlighting (colors) too?               \documentclass[a4paper]{article}          \usepackage{listings}     \usepackage{inconsolata}          <<echo=FALSE>>=       options(width=60)            listing <- function(x, options) {         paste("\\begin{lstlisting}[basicstyle=\\ttfamily,breaklines=true]\n",           x, "\\end{lstlisting}\n", sep = "")       }       knit_hooks$set(source=listing, output=listing)     @          \title{Function listings with linebreaks and code highlighting}          \begin{document}     \maketitle          Two ways of printing the code.          <<tidy=TRUE,highlight=FALSE>>=     theFunction <- function(x) {       tmp <- "A really long string that should be line-broken but it would be nice to also see code highlighting colors. The function is in the real code sourced, but for the sake of easier reproducibility, it is written here instead."     }          theFunction     @          \end{document}


title: What is the best way to number equations by chapter (1.1, 1.2, 2.3,...) or continuous (1, 2, 3,...)?

text: Some documents are formatted by numbering the equations by chapter (1.1, 1.2, 2.3,...) others in continuous (1, 2, 3,...). The same hold for tables and figures. Which one is better in your option and why?


title: xy-eps-converted-to.pdf not found - wrong filename?

text: I'm trying to include an EPS file into a PDF file using MikTex 2.9 under Windows 8. Everything else LaTex related works like a charm. pdflatex keeps complaining about a missing _xy-eps-converted-to.pdf_ file. However a _xy.pdf_ exists and is exactly that file that pdflatex should use instead of the _xy-eps-converted-to.pdf_ , so it's just the filename that appears to be wrong. Either epstopdf is giving the file the wrong name or pdflatex is expecting the wrong one. Whichever way might be right or wrong, how do I kind of _synchronize_ them to use the same filename?


title: References for \dimexpr \numexpr

text: I'm not really sure whether this is the right place to ask this question, but here I go.... Over the holiday I've been taking time to read through a lot of the Q&A here. I've been running across some TeX code (or maybe LaTeX code) that I cannot find either in _source2e_ doc or Knuth's _The TeXbook_. Where can I find documentation that explains `\dimexpr` and `\numexpr` and their syntax?


title: Type1 font not found using pdftex

text: I am encountering problems when installing a `Type1` font, particulary the Rotis family. I fallowed the installation guide provided by Walter Schmidt on ctan Here is my error:               ...  )) (./schrift.aux) (/Users/jonen/Library/texmf/tex/latex/pro/ot1pro.fd     ) [1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     (./schrift.aux)     kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 pror8r     mktexpk: don't know how to create bitmap font for pror8r.     mktexpk: perhaps pror8r is missing from the map file.     kpathsea: Appending font creation commands to missfont.log.      )     (see the transcript file for additional information)     !pdfTeX error: /usr/texbin/pdflatex (file pror8r): Font pror8r at 657 not found      Although is definitely there:               kpsewhich pror8r.tfm     /Users/jonen/Library/texmf/fonts/tfm/adobe/rotis/pror8r.tfm               grep pror8r `kpsewhich pdftex.map`     pror8r RotisSerif "TeXBase1Encoding ReEncodeFont" <8r.enc <pror8a.pfb      I know this can be caused by mixing up map files, but I have already reinstalled `MacTeX` with no luck. After placing the files in their appropriate folder I run:               texhash     updmap --enable Map pro.map      I also tried to run both commands as sudo and updmap-sys but again with no luck.


title: Custom counter steps twice when invoked from caption using caption package

text: I made a custom counter with a custom command that steps the counter and sets an automatic label for it. However, when invoking this from a caption AND using the `caption` package, my counter steps two times. Here's a MWE:               \documentclass{book}     \usepackage{caption}          \newcounter{example}[chapter]     \renewcommand{\theexample}{\thechapter{}.\arabic{example}}     \providecommand{\example}[1]{\refstepcounter{example}\label{ex:#1}{\theexample}}          \begin{document}          \begin{figure}[h!]     \caption{\protect\example{my_example}}     \end{figure}          \end{document}      If I comment out the line `\usepackage{caption}`, I get the right results. Is this a bug, or am I doing here some very basic mistake?


title: Problem with geometry and headers

text: I am trying to setup the margins such that from the top of the header text and the bottom of the footertext there is exactly 1.5cm space. I was not able to achieve this so far and I would highly appreciate any help. Also, I would like that between the header start and the text start there is always a little space that is why I put headsep. This seems to work well, but I cannot figure out how to put the space on top and bottom to 1.5cm. I looked at the description of the geometry package and I thought I can achieve this with includeheadfoot, but unfortunately it doesnt work. Here is the minimial example that does not produce the right margins.               \documentclass[a4paper,11pt]{article}          \usepackage[top=1.5cm,hmargin=1.5cm,bottom=1.5cm,includeheadfoot]{geometry}          \usepackage{fancyhdr}          \pagestyle{fancy}          \fancyhead{}     \fancyfoot{}     \fancyhead[C]{Header}     \fancyfoot[C]{Footer}               \geometry{headheight=10pt,headsep=10pt}          \begin{document}     TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd     TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd     TESTd TESTd TESTdTESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd     TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd TESTd     TESTd TESTd TESTd TESTd TESTd TESTd     \end{document}      Many thanks!


title: How to format a CV / Resume so that it can be parsed by automatic resume uploaders?

text: Many job sites do not accept a PDF resume; they require me to fill in their custom fields. Other sites will attempt to parse a PDF into pre-defined fields but this process does a poor job of recognizing the field contents. Is there a way that I can format my resume so that it parses well for job sites? Perhaps by including specific XML tags?


title: Possible to run lua script from lualatex after main compilation has been done?

text: Is there any way to call a lua script automatically immediately after lualatex finishes(and pass the jobname)? Basically I need to do some post process and cannot do it within the same job so I would like to run a script immediately after _if it exists_ and pass to the script the jobname.


title: How to enter a Latin Capital Letter D With Hook (Ɗ)?

text: How can I insert a Latin Capital Letter D With Hook into a LaTeX formula? # Ɗ


title: Questions on designing a dynamic database of exercises

text: Almost all packages to handle exercises allow us to attach/retrieve meta-data to/from each exercise. Some things one might want when handling exercises are:   * Filter exercises according to their meta-data.   * Select random exercises from an external file.   * Have dynamic data associated to each exercise. The first and second things are already addressed by the packages exsheets and probsoln. What I'm referring to by "dynamic data" is data that can change with time. For example a key `tused` to store the number of times an exercise have been used in past documents. As far as I know, this have not been covered yet. Now, let me be more specific: # The problems to solve Say I want to use the `exsheets` package to handle the questions for my exams. So I do something like `\DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}`, where `lsused`/`lyused` are last semester/year the question have been used and `tused` is as explained above. I can choose random questions by topic (by putting them in separate external files). So I have one file for each topic, and in each file questions like               \begin{question}[ID=L1]     \SetQuestionProperties{difficulty=hard,topic=logic,lsused=1,lyused=2011,tused=3}     Proof that this is not our first very hard question.     \end{question}      I need to see the IDs of the questions in order to decide which to keep and which to discard. Let's call this the " _selection stage_ ". Say my exam must have 9 questions, so I do something like:               \documentclass{article}     \usepackage{exsheets}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}     \DebugExSheets{true}          \begin{document}     \includequestions[random=3,difficulty=easy]{logic}     \includequestions[random=3,difficulty=medium]{arithmetic}     \includequestions[random=3,difficulty=hard]{geometry}     \end{document}      Notice that if I compile this file many times I'll probably get a different set of questions each time. Here is where the first problem arises: I'm not sure if we can filter questions according user-defined properties. It will be useful to avoid questions by ID, for example some:               \includequestions[random=3,difficulty=easy,noIDs={L5,L6}]{logic}      And, even if we can do so, it would be better to have some way to enter in a " _preliminary stage_ " which allow us to keep the exercises obtained in the last compilation (say by storing their IDs and the topic/file they belong to in an external file) on the " _selection stage_ " and just change the questions we do not want. Suppose that the package which solves all this problems is called `upackage`. And that it provides ways to say which stage we are in. Suppose all the unknown commands that appear hereafter are provided by this package. So in the first stage I do something like:               \documentclass{article}          \usepackage{exsheets}     \usepackage{upackage}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}     \DebugExSheets{true}          \begin{document}     \setstage{selection}     \includequestions[random=3,difficulty=easy]{logic}     \includequestions[random=3,difficulty=medium]{arithmetic}     \includequestions[random=3,difficulty=hard]{geometry}     \end{document}      Suppose that after compile this, I like all the questions except the second geometry question. So I do:               \documentclass{article}          \usepackage{exsheets}     \usepackage{upackage}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}     \DebugExSheets{true}          \begin{document}     \setstage{preliminary}     \changequestion{number=2,topic=geometry}     \end{document}      What I expect from this is, the same set of questions I got before but with a different second geometry question. And if still do not like it, I just compile again. This is a bit complex since it must keep track of the unwanted questions list. Here I assuming that file names and topics are the same. Once I decide that the 9 questions are fine, then I just do:               \documentclass{article}          \usepackage{exsheets}     \usepackage{upackage}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}          \begin{document}     \setstage{final}     \end{document}      And I get the questions this time without displaying their IDs. And here is where the other problem comes. Suppose that the package allow us to set `\currentsemester` and `\currentyear` (which by default must be `\year`). I would like that when the document is marked as `final`, the properties `lsused`, `lyused` get updated in the corresponding questions, as well as the `tused` which must be incremented in one. This will be useful to set, say, a `\tolerance`. For example if I set `\tolerance{2}` and I'm in the first semester of 2013, this will avoid including questions used in the past year. So the process to build an exam should be, in short: **Selection:**               \documentclass{article}     \usepackage{exsheets}     \usepackage{upackage}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}     \DebugExSheets{true}          \currentsemester{1}     \currentyear{2013}     \tolerance{2}          \begin{document}     \setstage{selection}     \includequestions[random=3,difficulty=easy]{logic}     \includequestions[random=3,difficulty=medium]{arithmetic}     \includequestions[random=3,difficulty=hard]{geometry}     \end{document}      **Preliminary:**               \documentclass{article}          \usepackage{exsheets}     \usepackage{upackage}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}     \DebugExSheets{true}          \currentsemester{1}     \currentyear{2013}     \tolerance{2}          \begin{document}     \setstage{preliminary}     \changequestion{number=2,topic=geometry}     \end{document}      until the second geometry question is acceptable. **Final:**               \documentclass{article}          \usepackage{exsheets}     \usepackage{upackage}          \DeclareQuestionProperty{difficulty,topic,lsused,lyused,tused}     \DebugExSheets{true}          \currentsemester{1}     \currentyear{2013}     \tolerance{2}          \begin{document}     \setstage{final}     \end{document}      # Questions My questions, is it plausible to achieve things like this with TeX/LaTeX? Is there some other approach? How to solve these problems?


title: Labels are printed in PDF

text: I really don't know if I changed a thing in my preamble but suddenly all labels are printed in the form ?{label}? in the top-left of every labeled object. My main document is               \documentclass[spanish,letterpaper,twoside,12pt,openright]{book}     \usepackage{color}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{helvet}     \renewcommand{\familydefault}{\sfdefault}           \usepackage{hyperref}     \hypersetup{         hypertexnames=false,         pdftoolbar=true,                pdfmenubar=true,                pdffitwindow=true,             pdfstartview={FitH},            pdftitle={Anteproyecto TEG Miguelangel Leon},            pdfauthor={Miguelangel Leon},              pdfsubject={Anteproyecto TEG},         colorlinks=true,         linkcolor=RoyalBlue,         citecolor=RoyalBlue,         urlcolor=RoyalBlue       }          %%%%%%Ecuaciones quimicas%%%%%%     \usepackage[version=3]{mhchem}     \usepackage{amsmath,amssymb}          \makeatletter     \newcounter{reaction}     %%% >> for article <<     %\renewcommand\thereaction{\arabic{reaction}}     %%% << for article <<     %%% >> for report and book >>     \renewcommand\thereaction{\thechapter.\arabic{reaction}}     \@addtoreset{reaction}{chapter}     %%% << for report and book <<          \newcommand\reactiontag{\refstepcounter{reaction}\tag{\thereaction}}     \newcommand\reaction@[2][]{\begin{equation}\ce{#2}%     \ifx\@empty#1\@empty\else\label{#1}\fi%     \reactiontag\end{equation}}     \newcommand\reaction@nonumber[1]{\begin{equation*}\ce{#1}%     \end{equation*}}     \newcommand\reaction{\@ifstar{\reaction@nonumber}{\reaction@}}     \makeatother          \usepackage[sorting=none,citestyle=numeric-comp,firstinits=true,doi=false,isbn=false]{biblatex}     \addbibresource{referencias}     \renewcommand*{\bibfont}{\footnotesize}     \usepackage{refcheck}          \usepackage{siunitx}      \usepackage{longtable}                 \usepackage{afterpage}                   \usepackage[hypcap,footnotesize,bf]{caption}          \usepackage[nottoc]{tocbibind}     \usepackage{babel,csquotes}      \usepackage{graphicx}      \usepackage[section]{placeins}     \usepackage[top=4cm, left=3cm, right=2cm, bottom=3cm]{geometry}     \usepackage{pdflscape}          \usepackage{titlesec}     \def\thechapter{\Roman{chapter}}     \renewcommand{\chaptertitlename}{CAPITULO}     \titlespacing{\chapter}{0cm}{-25pt}{20pt}     \titleformat{\chapter}[hang]     {\raggedleft \Large}{ \color{BrickRed}{\chaptertitlename} \hspace{1ex} \thechapter .  \hspace{1ex} }{0pt}     {\bf}               \titleformat{\section}{\Large \bfseries \color{RoyalBlue}}{\thesection}{15pt}{}     \titleformat{\subsection}{\large \bfseries \color{RoyalBlue}}{\thesubsection}{15pt}{}          \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}          \definecolor{Royal}{HTML}{5BA8FF}        \definecolor{verde}{HTML}{025F09}               \usepackage{fancyhdr}          \fancyhf{}     \renewcommand{\headrulewidth}{0pt}     \setlength{\headheight}{15.85pt}     \pagestyle{fancy}     \fancyhfoffset[LR]{2.1cm}     \fancyhead[LE]{\colorbox{Royal}{\color{white}{ \hspace{1.1cm} \textbf{\thepage} }} \hspace{1mm} \scriptsize \emph{\textcolor{BrickRed}{\rightmark}}}     \fancyhead[RO]{\scriptsize \emph{\textcolor{BrickRed}{\leftmark}} \hspace{1mm} \normalsize \colorbox{Royal}{\color{white}{ \textbf{\thepage}\hspace{1.1cm}}}}          \linespread{1.3}          \newcommand{\localtextbulletone}{\textcolor{RoyalBlue}{\raisebox{.45ex}{\rule{.6ex}{.6ex}}}}     \renewcommand{\labelitemi}{\localtextbulletone}      \addtolength{\parskip}{3mm}           \begin{document}     \sloppy     \renewcommand{\tablename}{Tabla}     \renewcommand{\thefootnote}{\alph{footnote}}          \input{portada.tex}     \pagenumbering{roman}     \renewcommand{\contentsname}{TABLA DE CONTENIDO}     \renewcommand{\listfigurename}{LISTA DE FIGURAS}     \renewcommand{\listtablename}{LISTA DE TABLAS}          \tableofcontents     \listoffigures     \listoftables     \newpage     \mbox{}     \newpage          \pagenumbering{arabic}          \phantomsection     \addcontentsline{toc}{chapter}{INTRODUCCION}     \chapter*{INTRODUCCION}     \markboth{INTRODUCCION}{INTRODUCCION}     \thispagestyle{empty}     \input{introduccion.tex}          \chapter{REVISION BIBLIOGRAFICA}     \label{cha:revb}     \input{revision-bibliografica.tex}          \chapter{OBJETIVOS}     \input{objetivos}          \chapter{METODOLOGIA EXPERIMENTAL}     \label{cha:mete}     \input{metexp.tex}          \printbibliography[heading=bibintoc,title=REFERENCIAS]          \end{document}      The log shows 0 errors. I'm very sorry to ask but I already try to find a similar problem in the internet with no success.


title: Exporting and formatting Evernote notes as a LaTeX document

text: I use Evernote almost exclusively for notes but I've looked into using `LaTeX` again because it's fast multi platform and formats documents well. Is there any way to export Evernote notes? Maybe using Genie and Python and then format the Evernote notes with `LaTeX`. I've used Geeknote to add, find and edit single notes but I've not been able to use it to programmatically export all my Evernote notes to text. Does anyone know how to;   1. Programmatically export Evernote notes to text using Python   2. Programmatically format notes using `LaTeX`. `LaTeX` formats notes well, Evernote doesn't.


title: Sync between Adobe and Texniccenter

text: I am using TeXnicCenter and Adobe Acrobat Pro 11. My problem is whenever I compile my article in TeX -> PDF profile, it produces the output PDF and give me back from the first page, it does not navigate to the place where I have done changes or the page where I left. Please help me out for this.


title: Omit specific subsection from table of contents?

text: Is it possible to omit a single specific subsection from the table of contents, while keeping it numbered as usual within the main body, and keeping other subsections listed? (I am using the `amsart` class.)


title: Multiple labels with "node label"

text: I make some experiments with `\pgfkeys` after the Qrrbrbirlbel's answer to this question The first try is :               \documentclass{scrartcl}     \usepackage{tikz}     \begin{document}     \pgfkeys{/swatch/.code={\node[fill=white] at (m.90-30*#1) {#1};}}            \begin{tikzpicture}         \node[circle,minimum size=4cm,draw] (m) {};         \pgfkeys{/swatch/.list={1,...,12}}       \end{tikzpicture}     \end{document}      and the result is : ![enter image description here](http://i.stack.imgur.com/BZqw0.png) `\foreach` is very fine to get the same result but It was funny to try. Now I would like to know if it's possible to do something like this to add multiple labels               \documentclass{scrartcl}     \usepackage{tikz}     \begin{document}            \begin{tikzpicture}         \node[circle,minimum size=4cm,draw,label=90:12,label=0:3,label=-90 :6,label=-180:9] (m) {};       \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/cyjv3.png)


title: How to add edges to automatically generated graphs

text: I have no background in drawing in LaTeX and I just came across the `tkz- berge` package. I want to draw a complete graph, a small-world graph and a random connected graph. The complete graph was easy               \begin{tikzpicture}            \begin{scope}[xshift=12cm]              \grComplete[RA=2/sin(60)]{10}            \end{scope}           \draw (12,-3) node {A Complete Graph};          \end{tikzpicture}      The small world graph is basically a circle with a few edges added to it that 'cross' the circle. Hence, I started out with               \begin{tikzpicture}           \begin{scope}[xshift=12cm]             \grCycle[prefix=a,RA=2/sin(60)]{10}            \end{scope}           \draw (12,-3) node {A Small World Graph};          \end{tikzpicture}      But how do I add edges to this graph manually, i.e. how do I refer to nodes that have been automatically generated and ask the package to draw an edge between them. In order to get a random graph with the same number of nodes and the same placement of nodes as the other two I started out with               \begin{tikzpicture}           \begin{scope}[xshift=12cm]             \grEmptyCycle[prefix=a,RA=2/sin(60)]{10}              \end{scope}           \draw (12,-3) node {A Random Graph};          \end{tikzpicture}      This worked out well, but now I have the same problem as before, I want to manually add edges to the nodes already drawn. Note that it is not important to me that the edges are randomly generated by LaTeX, I can happily just add edges manually so that it looks like a random graph.


title: How do you insert an inline verbatim?

text: I'm trying to add an inline verbatim into a `\paragraph`? Was wondering how do you do that?


title: How can I set the TikZ label anchor explicitly?

text: I want to add a `label` to a node, but "inside" the node. Something like this: ![desired output](http://i.stack.imgur.com/XIpEE.png) The manual seems to indicate it might be possible, although no actual key is named. > The ... anchor point for the label node ... is determined in such a way that > the label node will “face away” from the border of the main node. The anchor > that is chosen depends on the position of the border point that is chosen > and its position relative to the center of the main node and on whether the > transform shape option is set. **In general, the choice should be what you > would expect, but you may have to set the anchor yourself in difficult > situations.** (emph. added) But when I try an example like this:               \documentclass{standalone}     \usepackage{tikz}     \begin{document}     \tikz \node [circle,draw,label={[red,anchor=north]above:X}] {my circle};     \end{document}      I don't get any change in the position of the label node. It's still "outside." ![actual output](http://i.stack.imgur.com/Du1hN.png) Any ideas?