title: Centering asserts in struktogramm using struktex

text: I'm currently using struktex for generating structograms (Nassi–Shneiderman diagram). My source code looks as follows:               \begin{struktogramm}(150,45)     \assign{Do something}     \ifthenelse{5}{5} {Make a decision?}{Yes}{No}         \ifthenelse{3}{3} {Make a decision?}{Yes}{No}             \assign{Do something}             \change             \assign{Do something}         \ifend         \change         \assign{Do something}     \ifend     \end{struktogramm}      which results in this simple diagram: ![enter image description here](http://i.stack.imgur.com/kHNKm.png) Actually I'm missing two things:   1. Is it possible to center the contents (i.e. "Do something") within each cell?   2. How can I avoid the empty set symbol by spanning the cell "Do something" over two rows?


title: New environment with minted

text: I want to create a new environment to transform this:               \begin{listing}       \caption{some caption}       \label{code:label}       \begin{minted}[options]{language}     My code here       \end{minted}     \end{listing}      into this:               \begin{mycode}{language}{some caption}{code:label}     My code here     \end{mycode}      I've tried the code from Using minted to define a new environment without success. **edit** This is what I've tried:               \newenvironment{mycode}[3]{%       \VerbatimEnvironment       \minted@resetoptions       \setkeys{minted@opt}{linenos,fontfamily=courier, fontsize=\scriptsize, xleftmargin=21pt}       \begin{listing}         \caption{#2}         \label{#3}         % \centering         \begin{VerbatimOut}{\jobname.pyg}}     {%         \end{VerbatimOut}         \minted@pygmentize{#1}         \DeleteFile{\jobname.pyg}       \end{listing}}


title: Caption without text below "Figure''

text: I have a problem with captions. I'm new to LaTeX and I don't know English names of "this". I want to have something like:               Figure X.X: bla bla bla bla                      bla bla bla bla                      etc.      and               Figure X.X: bla bla bla bla                       a) bla bla bla                       b) bla bla bla      How do I do this?


title: How can I create a "Proof of Theorem x.xx" header for a proof environment?

text: In many papers in mathematics, the author states a theorem in somewhere and adds some explanations and perhaps some lemmas and later starts the proof with a phrase like "Proof of Theorem x.xx" (x's stand for some numbers). The only format I am aware for starting and ending a proof is as follows:               \begin{proof}          \end{proof}      This format is good when I start the proof immediately after stating theorems (propositions etc). So my question is: > How can I start the proof later with a phrase like "Proof of Theorem x.xx"? P.S. I am not sure about the tags I have used. Please, modify them if you know better tags.


title: Latex : spacing of Figures inserted as Tables

text: I have inserted 2 figures into my Latex document as a table, using a mini page, so that they are next to each other. When i turn it into a PDF document, the figures overlap. I would like to be able to create a "space" between the 2 figures so that they are a bit more apart. I think I am supposed to change the table format but i'm not sure how. Here is the code:                 \begin{figure}     \centering     \begin{tabular}{cc}     \begin{minipage}{190pt}     {\includegraphics[width=220pt]{depth3.pdf}}     \caption{figure1}     \label{fig:1}     \end{minipage}     &     \begin{minipage}{190pt}     {\includegraphics[width=220pt]{depth4.pdf}}     \caption{figure2}     \label{fig:2}     \end{minipage}     \end{tabular}     \end{figure}


title: Amsbook: Theoremstyles definition and remark identical?

text: If I understand the documentation of the AMS classes correctly, then a theorem in the style "plain" should have bold heading and italic body text, in the style "definition", there should be bold heading and normal body text, and in "remark", there should be an italic heading and normal body text. This is described her in section 4: http://www- math.mit.edu/~psh/amshelp/2.2/amshelp.pdf Here, with amsbook, all headings look the same (in small caps), and there is no distinction between "definition" and remark in the body text. Example:               \documentclass{amsbook}     \theoremstyle{plain}     \newtheorem{thm}{Theorem}     \theoremstyle{definition}     \newtheorem{dfn}{Definition}     \theoremstyle{remark}     \newtheorem{rmk}{Remark}     \begin{document}     \begin{thm}     Here comes a theorem.     \end{thm}     \begin{dfn}     Here comes a definition.     \end{dfn}     \begin{rmk}     Here comes a remark.     \end{rmk}     \end{document}      Is this behaviour correct or is there a problem in my LaTeX environment? I did not find any remarks in the documentation about a different behaviour for amsbook (then for, say, amsart). I also remember that, using an older version of TeXLive, the look of the headings was dependent on whether hyperref was loaded or not.


title: Passing Options to Unknown Class

text: My goal is to process a LaTeX tex file with the `draft` option enabled for the document class, but from a terminal without having to edit the tex file or even open it to look at what class is being used, given that I know it's a class which has the draft option. The option `pdflatex -draftmode` isn't what I'm looking for since it doesn't produce a pdf. For example, suppose `main.tex` contains the following:               \documentclass{article}     \usepackage{graphicx}     \begin{document}     \includegraphics{myfig}     \end{document}      Using `\documentclass[draft]{article}` should of course produce a box with the text "myfig.xxx" in it. The solution given to the question Add option to class with command would almost be enough. I would use               pdflatex \PassOptionsToClass{draft}{article} \input{main}      But this isn't satisfactory since I have to know that the class is `article` rather than `book` or anything else. As perhaps a second issue that might affect an answer; this solution doesn't even seem to entirely work given `article`, since it produces the image normally and not the box with its title inside. This surprises me since passing the option `12pt` in this manner seems to work properly. But I guess the option doesn't get passed through to `graphicx` or globally to other packages this way.


title: Force font to computer modern (serif) in math mode although it is set to sans serif

text: I set my font to sans serif via               \renewcommand{\familydefault}{\sfdefault}     \usepackage{helvet,sfmath}      Now I want to use some symbols -not all- (only normal letters or greek letters) from the standard computer modern math font in mathmode. Unfortunatly neither               $\mathrm{w}$      nor               {\fontfamily{cmm}\selectfont $w$}      will give me the desired result. I want to use it in a `tikz`-environment, but I guess that's no difference to the usual usage. update: I am a little confused about the fact, that I cannot change the font at all. Neither with the above mentioned `selectfont`-command nor in `tikz` via (for example)               \node[font=\rmfamily] at (0,0) {$w$};


title: spacing in a description list using enumitem

text: I found Description list with right alignment of labels while looking for a solution for my own problem. I tried to modify the above solution, but there are a few ugly things I don't know what to do about.   1. Using `noitemsep` to remove the space between the items results in different spacing between lines in labelboxes and labelboxes to each other.    2. If the text in the labelbox is too long and therefore a line break needed, then the second line of the text belonging to the label starts after the labelbox, not in the second line.  ![enter image description here](http://i.stack.imgur.com/vfFwd.png) Here is the corresponding code:               \documentclass{article}       \usepackage{enumitem}       \SetLabelAlign{parright}{\parbox[t]{\labelwidth}{\raggedleft#1}}     \setlist[description]{style=multiline,leftmargin=3.5cm, align=parright,noitemsep}          \begin{document}          \begin{description}       \item[here is a long long label] text       \item[here is a long long label]  and here a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long text     \end{description}          \end{document}      What can/should I do?


title: Randomise rune selection with allrunes

text: The allrunes package provides a lot of runes. Some families, such as the Medieval runes, have a variety of variant forms; the runes for 'd', for example, include: ![A portion of the documentation for Medieval Runes](http://i.stack.imgur.com/Dlft2.png) I want to decorate a page border with some text. I can go through and choose different runes for each 'd' the text contains: **Is there an easy way to automate this?** Ideally, something like:               \prettyRunes{This is a slab of text}      which would randomly choose variants on the 't', the 'i', and other repeated letters (it's not a great example sentence, but the idea is there).


title: Is an adjustable font in figures possible?

text: When I resize my pdf figures and graphs I often find that the text in these figures become too small to read. Is there a way of ensuring that the font in figures match the body text?


title: biblatex: Something like \ifentrytype

text: I’d like to change the bibmacro `cite:short` only for one entry type (`@music`). So is there a way to test for the entry type?


title: How to extract coordinates in the current scope (before the coordinate transformation matrix is applied)

text: If I extract coordinates with `\pgfgetlastxy{}{}`, I get changing results depending on the transformations I've applied to my draw (rotation, scale):               \documentclass[margin=0.5cm]{standalone}     \usepackage{tikz}          \newcommand{\myDraw}[2]{%     \begin{minipage}[t]{6cm}       \centering #1,#2\\       \begin{tikzpicture}[#1,#2]         \draw[->] (0,0) -- (3,0);         \draw[->] (0,0) -- (0,3);         \coordinate (A) at (1,3);         \draw[blue] (A) node {$+$} node[above right] {\footnotesize A(2,3)};         \path (A); \pgfgetlastxy{\xA}{\yA}; % Extract the coordinates of A         \draw[red] (canvas cs:x=\xA,y=\yA)           node {$+$} node[red,below right] {\parbox{2.5cm}{\footnotesize \textbackslash xA = \xA\\\textbackslash yA = \yA}};       \end{tikzpicture}     \end{minipage}}          \begin{document}       \myDraw{scale=1}{rotate=0}       \myDraw{scale=0.5}{rotate=0}       \myDraw{scale=1}{rotate=-20}     \end{document}      ![Output](http://i.stack.imgur.com/mSc2K.png) And yet, I want to get the coordinates of A in the current scope (i.e `\xA` = 1 and `\yA` = 3 in the example above) because I need to apply later some conditionals (like "if \xA < \xb then..."). I was thinking maybe of using a command like `\pgftransformreset` inside a group and then "smuggle" the non transformed coordinates out of the group. But I'm mostly an LaTeX/TikZ end user and I don't know how to achieve that.


title: Importing CSV file as a table in Latex but file too long

text: I am trying to import a CSV file but the data in the table is too long it goes down till the end of the page and disappears without continuing on the next page. Here's the file:               \begin{filecontents*}{mode1_with.csv}     Stimulus,Percentage of 'Alpha'     1,95.8     2,90.6     3,98.8     4,97     5,76.4     6,74.8     7,84.8     8,81.8     9,53.6     10,58.4     11,70.8     12,66.8     13,46.6     14,42.8     15,54     16,52     17,34     18,29.2     19,77.8     20,78.8     21,59.8     22,56.4     23,66.2     24,63.8     25,41.6     26,42.8     27,63.6     28,63.4     29,44     30,40.2     31,49.8     32,48.6     33,80.8     34,80.4     35,90.8     36,89     37,66.4     38,61     39,69.4     40,72.4     41,30.8     42,32.4     43,39.4     44,37     45,18.2     46,20.8     47,13.4     48,30.6     49,83     50,78.4     51,87     52,81.4     53,60.2     54,55.2     55,70.8     56,86.4     57,42.8     58,39.6     59,49.6     60,46.8     61,27     62,27.6     63,78     64,89.4     \end{filecontents*}      and this is the code I tried so far:               \usepackage{csvsimple}     \begin{document}     \csvreader[tabular=lrrrr,         table head=\toprule\bfseries Item                  &\bfseries Alpha category (\%) \\\midrule,         late after line=\\,late after last line=\\\bottomrule,         before reading={\catcode`\#=12},after reading={\catcode`\#=6}]%     {mode1_with.csv}{1=\Item,2=\Percentage}%     {\Item & \Percentage}%     \end{document}      ![enter image description here](http://i.stack.imgur.com/u3446.png)


title: How to enter Excerpt in biblatex?

text: Are any of the entry types in biblatex particularly well suited for referencing an excerpt? For example:               Lucas, Édouard. Recherches sur plusieurs ouvrages de Léonard de Pise et sur diverses     questions d’arithmétique supérieure. (Extrait du Bullettino di bibliografia e di storia     delle scienze matematiche e fisiche. Tomo X. — Marzo, Aprile e Maggio 1877). — Rome :      Imprimerie des sciences mathématiques et physiques, 1877. — 122 p. (in Fr.)      Where the above is an excerpt from **Bullettino di bibliografia e di storia delle scienze matematiche e fisiche.** , but is now published separately. Here is the link to the cover of this document. I thought of using _inbook_ , but I am not sure if that fits exactly.


title: Where can I find the documentation for `lstdoc`?

text: It appears that the `listings` package provides another package, called `lstdoc`, which in some unknown fashion provides facilities for printing TeX code samples while simultaneously TeXing them into the documentation itself. Looking at `listings.dtx`, it seems that the samples in `listings.pdf` itself were typeset in this manner. In fact, most package documentation provides such samples (code side-by-side with its effect) though I don't know how they all do it. This is actually a tricky thing to get right by hand, so `lstdoc` looks like it would be useful; alas, I cannot find a single documented reference to it, neither in `listings.pdf` itself nor anywhere on CTAN or the Internet in general. My question, then: how does this package work? How can I learn about it? Even a cursory glance at `listings.dtx` tells me nothing other than that it is somewhere in there.


title: Styling the text placed on \path [line] using \tikzstyle.

text: I'm new to LaTeX and I'm trying to work out how I can configure TikZ to position the text ON the connecting lines (rather than beside it) in this flowchart and then give that text a filled white background rectangle. My issue mainly comes from the fact that I can't associate a style with the text node inside the line (I can't do [text]) and I don't know how to do substyles with \tikzstyle to match a node that doesn't have a style associated with it (in CSS this would be .line > node or something like that). I'm sure this is a really really simple question, but Google unfortunately seems to have no answers to it! Can anyone help?               % Define block styles     \tikzstyle{decision} = [diamond, draw, fill=blue!20,          text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]     \tikzstyle{block} = [rectangle, draw, fill=blue!20,          text width=5em, text centered, rounded corners, minimum height=4em]     \tikzstyle{line} = [draw, text centered , -latex']     \tikzstyle{line node} = [draw, fill=white, font=\tiny ]     \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,         minimum height=2em]          \begin{center}     \begin{tikzpicture}[node distance = 3cm, auto]         % Place nodes.         \node [] (_split01) {};         \node [block, left of=_split01, node distance = 2cm]    (program) {Program};         \node [block, right of=_split01, node distance = 2cm]   (unit) {Unit};              \node [block, below of=_split01]                        (procedure) {Procedure};         \node [block, left of=procedure]                        (entrypoint) {Entry Point};         \node [block, right of=procedure]                       (function) {Function};              \node [block, below of=procedure]                       (block) {Block};              \node [block, below of=block]                           (statement) {Statement};              \node [below of=statement] (_split02) {};         \node [block, left of=_split02, node distance = 2cm]    (assignment) {Assignment Statement};         \node [block, right of=_split02, node distance = 2cm]   (expression) {Expression Statement};              % Connect nodes.         \path [line] (program) -- node {References} (unit);         \path [line] (program) -- node {Defines and Calls} (entrypoint);         \path [line] (program) -- node {Defines} (procedure);         \path [line] (program) -- node {Defines} (function);         \path [line] (unit) -- node {Defines} (procedure);         \path [line] (unit) -- node {Defines} (function);         \path [line] (entrypoint) -- (block);         \path [line] (procedure) -- (block);         \path [line] (function) -- (block);     \end{tikzpicture}     \end{center}


title: \useplot with Text in CSV

text: Is there a way to import & auto-plot a graph containing text in one column? Eg. Here's my table               Period,Unit Sales (in thousands)     Q1 '07,24943     Q2 '07,27855     Q3 '07,32752     Q4 '07,36766      Edit: Here's what I've tried:               \begin{tikzpicture}     \begin{axis}[     xlabel = Period,     ylabel = Unit Sales (thousands)]     \addplot table [col sep=comma]{data.csv};     \end{axis}     \end{tikzpicture}


title: How to define this new environment and avoid the hidden errors?

text: I want to define a new environment ends with a $\omega$ in newline. But environment like displaymath already start a newline after itself, so I do not start a newline in this case. That is, start a newline only after normal text but not environment. How to make it? The original definition is as following which starts a newline after environment also.               \newenvironment{note}{%     \noindent     \textsc{Note}     \vskip\medskipamount % or other desired dimension     \leaders\vrule width \textwidth\vskip0.4pt % or other desired thickness     \vskip\medskipamount % ditto     \nointerlineskip     }{\mbox{}~\newline\mbox{} \hfill$\Omega$\newline}      As suggested by Peter Grill, I define a `\smartsmallskip`. And as suggested by David, I change the `\newline` to `\par`.               \def\smartsmallskip{\par       \ifdim\lastskip>0pt \else \smallskip\fi     }          \newenvironment{note}{%     \noindent     \textsc{Note}     \vskip\medskipamount % or other desired dimension     \leaders\vrule width \textwidth\vskip0.4pt % or other desired thickness     \vskip\medskipamount % ditto     \nointerlineskip     }{\smartsmallskip\hfill$\Omega$\par}      Is there still some question I should take care of?


title: Why does \everydisplay conflict with gather and multline

text: When `gather*` is used together with `\everydisplay` an error is produced. Is there a possibility to make these work together? Minimal working example:               \documentclass{ctexart}     \usepackage{amsmath,color}     \everydisplay{\color{blue}}     \begin{document}     \begin{gather*}     1+\cos x     \end{gather*}     \end{document}


title: Generate random numbers with a specific font

text: My objective is to create a table or some form of environment as shown in the figure below. ![What I want](http://i.stack.imgur.com/zjTqn.png) The numbers should be randomly generated every time you compile and have the font shown below. ![Number with specific font](http://i.stack.imgur.com/HQHqh.png) Is this possible?


title: beamer: shading the block environment

text: I want the `block` environment to be shaded in blue, because now it is hardly noticeable. The LaTeX code I'm using is               \documentclass[10pt]{beamer}     \mode<beamer>{%     \usetheme[hideothersubsections,     right,width=22mm]{Goettingen}      }     \title{Math}     \author[Mister X]{X}     \institute{University}     \titlegraphic{\includegraphics[width=20mm]{USTL}}     \date{January 15, 2012}          \begin{document}     \begin{frame}<handout:0>     \titlepage     \end{frame}     \begin{frame}      The following proposition is easy to prove.     \begin{block}{Proposition}      some statement      \end{block}          \end{frame}     \end{document}


title: Table with several dimensions

text: I have several dimensions to put in a table in LaTeX, these are actually results of an experiment. I am not sure what is the best way to do it in LaTeX. Here is a snapshot of one of the possibilities: ![enter image description here](http://i.stack.imgur.com/Not2b.png) What is the syntax of obtaining such a table or if there is a better way to present tables with multi dimensions.


title: Unicode in XeTeX with automatic font substitution?

text: I've got a word processor (WordGrinder) which supports Unicode. It can export LaTeX files, which then get run through XeTeX. Unfortunately, it seems that while XeTeX _understands_ the Unicode correctly, it's not doing any kind of font substitution if the default font doesn't have a particular glyph in it. And since the default font is Computer Modern Roman, which has lousy font coverage, the default behaviour if I don't specify a font is that all my Unicode characters just vanish. This is not optimal. For test purposes I've installed Linux Libertine O and hard-coded a reference to the font. More things now work, because Linux Libertine has much better Unicode coverage. But I still have missing glyphs. And I'd very much prefer not to have to hardcode a font reference in my output files because that makes it much less likely that the end user will be able to use the output files. (Linux Libertine O is not a default part of my distribution, for example.) Is there any way I can tell XeTeX to _automatically_ find an appropriate font which supports the Unicode glyphs? I'm quite happy with rendering in Computer Modern Roman and falling back to something else for unsupported glyphs; I don't care if the appearance is mismatched as long as the glyphs are actually _there_. (If the user wants a specific font they can edit the file.) The distribution I'm currently using is the Debian version of xetex-live, but I'd like a distribution-agnostic fix if there is one. I'm happy with requiring XeTeX.


title: Class options declaration error: Undefined control sequence

text: I'm trying to write a class file with certain options (e.g centered title, vs title on the left). When I compile a *.tex file that calls this class, I get the an undefined control sequence error for \@centeredtrue:               ! Undefined control sequence.     \ds@centered ->\@centeredtrue       Below is my MWE class file; I drew on how to declare options from the article.cls file. I don't understand why I'm getting this error, when the article.cls class file has similar option declarations for its oneside and twoside options, but the article.cls file doesn't throw this error.               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{mwe}[2014/02/18 v0.0.1 Example Class For Errors]          \DeclareOption{centered}{\@centeredtrue}     \DeclareOption{flank}{\@centeredfalse}     \ExecuteOptions{centered}     \ProcessOptions          \endinput      My intent is to run conditional code dictated by my class's option.


title: How to right-side annotate a bracketed-together set of items in cases environment?

text: How to right-side annotate a bracketed-together set of items in the `align` environment, `cases` sub-environment? E.g. how to put an annotation such as "(Fermat)" where the following code would put a number for the equation pair:               \begin{align}     \begin{cases}     first equation\\     second equation\\     \end{cases}      \end{align}      ? (I realise to get rid of the number, I have to change `align` to `align*`)


title: Which sans serif and monospace fonts suit Century Schoolbook?

text: I find the Century Schoolbook family very legible for online documentation. However, I am unsure what sans serif (for typesetting, e.g., LaTeX package names) and monospace (for typesetting code) counterparts to choose for use with this typeface. Which fonts, in your opinion, could (and could not) be used with Century Schoolbook?


title: In which order is Lua Code in LuaTeX being processed

text: Can someone help me understand the order in which LuaTeX documents are being processed? From what I've understood, the order is the following:   * the code is being read, top to bottom   * when the compiler finds the start of some Lua code it swallows it, expands any TeX commands it can find and passes the result to a Lua interpreter   * the Lua interpreter interprets the code and puts its output back into the document   * is the output being parsed by again? Is it just put into the document as is? To illustrate my question:               \newcommand{\compare}[2]{     #1     \directlua{         testNumber=#2         if #1<testNumber then             tex.sprint("is bigger")         else             tex.sprint("is smaller")             end         tex.sprint(" than "..testNumber..".")         }     }      When `\compare{1}{5}` is called the Lua interpreter is being fed:               testNumber=5     if 1<testNumber then         tex.sprint("is bigger")     else         tex.sprint("is smaller")         end     tex.sprint(" than "..testNumber..".")      And the output would be pasted into the document in the place where the directlua command was called. Now suppose I add another command:               \newcommand{\iterate}[2]{         \directlua{             for i=1,#1,1 do             tex.print(\\compare{i}{#2})             end         }     }      and call it via \iterate{5}{5} From my limited understanding, this should be fed to the Lua interpreter as follows:               for i=1,10,1 do     tex.print(\compare{i}{5})     end      and the output would be:               \compare{1}{5}     \compare{2}{5}     \compare{3}{5}     \compare{4}{5}     \compare{5}{5}      Is this output being evaluated again? I can't seem to get my code to run, hence I was thinking that I've maybe misunderstood something. Can this process be understood in terms of a preprocessor-processor relationship such as with, say, a PHP application which outputs JS code which itself is being interpreted by the client?


title: How to make all figures float on the outer margins of two-side document?

text: I want to make a double-sided problem booklet that contains several questions. Each question has a distinct number and may have zero or more figures. Each figure has a caption and floats on the outer margin. The following figure illustrates what I want to have. ![enter image description here](http://i.stack.imgur.com/nX5gM.png) Is there a document class or package to do this out of the box? If the answer is NO, then how to create such a problem booklet?


title: Arabxetex: how to type eastern arabic numerals

text: how can I type eastern arabic numbers (or so called arabic indic) via arabxetex? http://en.wikipedia.org/wiki/Hindu%E2%80%93Arabic_numeral_system http://en.wikipedia.org/wiki/Eastern_Arabic_numerals note: I know that this can be done with polyglossia, but I am asking about arabxetex specifically. Regards


title: How to change vertical spacing in TOC between section entry and only the first subsection entry in each section?

text: I am using `article` class and `tocloft` package. Does anyone know how to put a space (for example of size "22pt") between a ToC section entry and **only** the first subsection entry in every section. When I use `\setlength\cftbeforesubsecskip{22pt}` this puts a space before every subsection entry. I don't want extra space between subsection entires. I only want a space between the section entry and 1st subsection entry (in every section). What would be useful is a command that changes the space **after** a section entry, not before. This way I could set the space after a section entry but as far as I know something like `\cftAFTERsecskip` does not exist. Does anyone have a suggestion? Thank you!               \documentclass[12pt]{article}     \usepackage{tocloft}          \setlength\cftparskip{0pt}          \setlength\cftbeforesecskip{0pt}          \setlength\cftbeforesubsecskip{22pt}          \setlength\cftaftertoctitleskip{44pt}          \begin{document}     \tableofcontents          \section{Test section one}     \subsection{test section one one}     \subsection{test section one two}     \section{Test section two}     \subsection{test section two one}     \subsection{test section two two}     \clearpage     \section{Test section three}     \subsection{test section three one}     \subsection{test section three two}          \end{document}


title: Removing document icons from a Bibtex bibliography in Beamer

text: I'm preparing a Beamer presentation that includes (on the final slide) a short bibliography in the Harvard style (agsm). This works fine, but I find the article icons accompanying each reference annoying, especially as they are appearing behind the author name (rather than beside it). Is there a simple way to remove the icons?               \begin{frame}{References}     \bibliographystyle{agsm}     \bibliography{bibliography}{}     \end{frame}


title: Taking user input during compile

text: Deeply inspired by Paulo Cereda's answer on the ways TeX can be used apart from document creation. If you haven't seen the program mentioned: it's a Reversi TeX game that during the compile asks the user for the next move in the game and provides feedback. At the end the whole game is produced as a dvi. Immediately practical uses of this popped up: Asking users for layout, colors, language. So on to _terra incognita_! I tried to dissect the Reversi game, but it's not written for readability. I searched around, but user input to TeX programs is not an everyday thing. **How do I take input from the user compiling the document?** For example, I could ask a user for their name, and then print "Hello, [user's name]". **Update 1:** I've now stumbled upon the `\read` macro, and it seems to be on the way, but it isn't really what I want.               \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}          \begin{document}          Hello, \read          \end{document}      **Update 2:** David Carlisle pointed me to `makebst` a program to generate bibTeX styles. I'm looking into the source.


title: I can't integrate asymptote with TeXShop

text: I'm trying to use Asymptote with TeXShop on Mac OS X 10.8.5. I'm attempting to follow the instructions given at http://asymptote.sourceforge.net/TeXShopAndAsymptote.pdf I got through step 2, but when it came to step 3, creating the asymptote engine, I discovered that I didn't have a folder called `~/Library/TeXShop/Engines`. I didn't even have a folder called `~/Library/TeXShop`. So I created both folders, then created a text file with the code specified in step 3 of the above document and saved it as `asyEngine.Engine`. Then I finished steps 4 and 5, but no `asyEngine` appears in my drop-down list of engines in TeXShop. I'm not sure what to do.


title: How to open subfiles in a master file by right clicking them in TeXworks?

text: I miss a functionality in TeXworks. When working on a master file in LaTeX that includes subfiles by means of the `\input{\pathToFile/filename.tex}` command, I would like the possibility of right clicking on the `"filename.tex"` to open this file. This functionality is available when editing MatLab files and is extremely handy and practical. Is there some script available for TeXworks that makes this possible? Or, are there other LaTeX editors that make this possible?


title: Why is this statement not compiling correctly?

text: For some reason, the following excerpt from my code is not compiling correctly and I can't figure out why.                   \begin{equation}     \begin{split}     \frac{100}{-6} &= -16(-6) + 4\\     &\implies z^100 = z^4\\     \\     z^4 &= \left(e^{\frac{-i\pi}{3}\right)^4 \\     &=e^{\frac{-4\pi}{3}} \\     \\     &\cos\left(\frac{-4\pi}{3}\right) = -\frac{1}{2}, ~\sin\left(\frac{-4\pi}{3}\right) = \frac{\sqrt{3}}{2} \\     &\implies z = -\frac{1}{2} + \frac{\sqrt{3}}{2} i \\     \end{split}       \end{equation}      The error I get is that paragraph ended before split was complete and that a missing endgroup has been inserted. Any help would be greatly appreciated.


title: Are there available scripts for TexWorks making a list of all labels used in a latex document?

text: Having used emacs for editing latex documents, I am used to a tool that lists all labels used in a master file and its input files. This tool is extremely usefull when referring to tables and figures and sections other places in the document. Is there some script (Pyton or QT) available that makes this functionaly for TexWork users?


title: Bibtex/natbib: how can you print same bibliography twice?

text: I want to compile my document with in the end a list of all my cited sources: 'references', but also a list of 'recommended readings', so a re-print of the same bibliography that outputs ALL sources and not solely the ones I've cited. Is this possible? I am using xetex, bibtex icm natbib Minimum working example:               \documentclass[letterpaper, 10pt]{article}          \usepackage[authoryear]{natbib}     \usepackage{lipsum}          \begin{document}          \lipsum[1-4]     \nocite{*}          \bibliographystyle{plain}     \bibliography{articles}          \end{document}


title: How to force a hvFloat to be "Here"

text: A want to rotate my table but not on a newpage that is why i use hvFloat instead of sidewaystable. But with this one i have an other issue. The table won't get under the title. Is there someone who has an idea to force this table to be under the section title? ![enter image description here](http://i.stack.imgur.com/VlOKi.png) Here is a minimal code with my issue :               \documentclass[frenchb,11pt,a4paper]{report}            \usepackage [frenchb]{babel}                            \usepackage [ansinew]{inputenc}                     \usepackage [T1]{fontenc}                                    \usepackage{hvfloat}     \usepackage{booktabs}               \begin{document}     \section{Title}          \hvFloat[floatPos=!h,rotAngle=90,capPos=t,capVPos=c,capWidth=w,floatCapSep=10]{table}{             \renewcommand{\arraystretch}{1.25}             \setlength{\tabcolsep}{3pt}             \begin{scriptsize}             \begin{tabular}{rrr}             \toprule             1 & 2 & 3 \\             \midrule                 (As)& 16,00 & 300,00 \\                 (Sb)& 10,87 & <5,00\\                 (Ba)& 100,00 & 42,00 \\                 \bottomrule             \end{tabular}             \end{scriptsize}}             {Caption}{tab:test}     \end{document}


title: ConTeXt: Columnar section titles, floats, and images

text: # Background Regarding floats in columns, the wiki states: > By default, a title will be moved down to appear below a float, it will not > be "wrapped" around a float like normal text. # Problem The section title disappears, instead of being moved below the float. Ultimately, I'm trying to produce the following two layouts without changing the content (between `\starttext` and `\stoptext`): ![Layouts](http://i.stack.imgur.com/gXuJP.png) As an aside, it is important that the content need not change as there are other layouts that use the same document structure. If content changes can be made universal such that the other layouts remain unaffected, for example by adding a new namespace and command, then that will work. This might resemble:               \definenamespace[Photograph][       type=module,       name=Photograph,       parent=Photograph,       setup=list,       version=1.0,       style=yes,       command=list,     ]          % ...     \starttext       \setupInsertPhotograph[         author=Full Name,         homepage=http://authorname.com/about.html,         source=http://flickr.com/authorname/sunset.jpg,       ]       % Calls "placefigure" and "externalfigure" using the setup parameters.       \InsertPhotograph     % ...     \stoptext      Then the `\InsertPhotograph` macro could be used to customize how the photograph is typeset, independently of the layout. # Code So far, I have the following code:               \setupalign[hz,tolerant,]          \setuphead[chapter][footer=empty,]     \setuphead[section][page=yes,]          \setuphead[subsection][       before={\vskip0.5em},       after={\vskip0.5em},     ]          \setuphead[chapter,section,subsection][header=none,number=no,]          \defineitemgroup[Preparation]     \setupitemgroup[Preparation][each][packed][       before={\empty},     ]          \setupexternalfigures[width=\hsize,]          \definecolumnset[BookColumns][n=2]     \definecolumnsetspan[BookColumnSpan][n=2]          \starttext       \startchapter[title=Chapter One]       \page       \startcolumnset[BookColumns]         \startsection[title=Section One]           % This could be \InsertPhotograph instead of \placefigure...           \placefigure[tblr]{}{\externalfigure[fake][]}                \startsubsection[title=Subsection]           \input douglas           \stopsubsection           \startsubsection[title=Preparation]           \startPreparation           \dorecurse{4} { \startitem Pour liquid helium into flask. \stopitem }           \stopPreparation           \stopsubsection         \stopsection         \startsection[title=Section Two]           \dorecurse{4} { \input knuth }         \stopsection       \stopcolumnset       \stopchapter     \stoptext      # Question How can the photograph float to the left of the section title when a figure is present, whilst the section title spans the page when no figure is present?


title: centering caption of a figure

text: I want to put the caption of my figure in the center but I can't do that. when I put my figure in the center the caption is also in the center but when the caption is too long and there is a return to a newline it is not in the center


title: How to force MikTeX' texdoc to open package manuals with a PDF reader rather than the DVI viewer?

text: I am working on a machine with MikTeX installed. When I want to open a certain package manual, I type `texdoc packagename`. However, I don't want to open it with Yap (the DVI viewer in MiKTeX). Acrobat Reader has been installed. How to force MikTeX's `texdoc` to open package manuals with Acrobat Reader rather than Yap? Note that I never find this problem when using TeXLive.


title: Tikz'spicture: problems positioning shapes inside nodes and arrow's tips in the middle of the line

text: I need to draw the picture above with tikz's code, and i would know the better way for placing the "zig-zag" lines. Also I would like to put the arrow's tip in the middle of the connection line. Someone could help me? Thanks. ![enter image description here](http://i.stack.imgur.com/ukFfJ.jpg) * * * This is a diffrent picture but whith the same problems:               \documentclass{article}     \usepackage{tikz}      \usetikzlibrary{positioning,     intersections,     shapes.geometric,     decorations.pathmorphing,     decorations.pathreplacing,     decorations.shapes,     decorations.markings,     patterns,     calc,     fit,     arrows,     backgrounds,     matrix}          \begin{document}      \begin{tikzpicture}[auto]          \tikzset{deco/.style={decoration={                 markings,                  mark=at position #1 with {\arrow{>} }                 },             postaction={decorate}},        trape/.style={trapezium,draw,shape border rotate=90,minimum width=2cm},        box/.style={rectangle,draw,minimum height=1cm,minimum width=2.5cm},        cerchi/.style={circle,draw,minimum size=1cm}     }          \matrix [row sep={1.5cm}] {         &[2cm]  \node [box] (genera) {}; &[2cm]     &[1cm] \\     \node [cerchi] (pompa) {}; &     & \node [trape] (turbina) {};  & \node [cerchi] (ultiliz) {}; \\      & \node [cerchi] (condensa) {};  & & \\      };          \begin{scope}[>=triangle 60]       \draw [deco=0.6]  (genera) -|  node[pos=0.6]{2} (turbina.top right corner);     \draw [deco=0.6]  (turbina.bottom left corner) |-   node[above=1mm,pos=0.71]{3} (condensa);     \draw [deco=0.4]  (condensa) -|  node[above=1mm,pos=0.31]{4} (pompa);     \draw [deco=0.6]  (pompa) |-   node[below=1mm,pos=0.63]{1} (genera);      \end{scope}          \draw [->,>=latex,very thick, shorten >=4 pt,shorten <=4pt] (pompa.south)--(pompa.north);          \node [coordinate] (B) at ($ (condensa.center)!.6!(condensa.west) $) {};     \node [coordinate] (C) at ($ (condensa.center)!.6!(condensa.east) $) {};      \node [coordinate] (A) at ($ (B)+(0,-1.5cm)$) {};      \node [coordinate] (D) at ($ (C)+(0,-1.5cm)$) {};      \draw (A)--(B); \draw[decorate,decoration={zigzag,amplitude=3pt,segment length=8pt}] (B)--(C); \draw (C)--(D);      \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/ukFfJ.jpg)


title: Trying to create a simple binomial tree in beamer

text: Following the example in Unknown error using tikz matrix of nodes in beamer I removed the errors I got but the tree is still not produced correctly. I am trying to reproduce in beamer what I saw in this thread: http://www.latex- community.org/forum/viewtopic.php?f=45&t=7846&sid=2129f08cf0ff8d6a5473794a64bdf5ac Thanks in advance.               \documentclass[xcolor=pdflatex,dvipsnames,table]{beamer}          \usepackage{tikz}     \usetikzlibrary{matrix}          \mode<presentation>          \usetheme{JuanLesPins}          \setbeamercovered{transparent=30}          \title[Investment Science II]{ Investment Science II \\  Introduction to Binomial Trees }     \author[ Anonymous]          { Investment Science II }          \institute{ Blah University }          \begin{document}          \frame{\maketitle}          \begin{frame}            \begin{tikzpicture}              \matrix (tree) [matrix of nodes,ampersand replacement=\&]                    {               \&   \& F \\                    \& C \&   \\                \$A \&   \& E \\                    \& B \&   \\                    \&   \& D \\         };              \draw[->] (tree-3-1) -- (tree-2-2) node [midway,above] {$p$};              \draw[->] (tree-3-1) -- (tree-4-2) node [midway,below] {$(1-p)$};              \draw[->] (tree-2-2) -- (tree-1-3) node [midway,above] {$p^2$};              \draw[->] (tree-2-2) -- (tree-3-3) node [midway,below] {$(1-p)p$};              \draw[->] (tree-4-2) -- (tree-3-3) node [midway,above] {$(1-p)p$};              \draw[->] (tree-4-2) -- (tree-5-3) node [midway,below] {$(1-p)^2$};            \end{tikzpicture}            \end{frame}     \end{document}


title: last column of multicols has excessive whitespace

text: The last column of a `multicols` has extra whitespace that is not needed (as visually the margin will do):               \begin{multicols}{3}     \begin{description}     \item[asdf] - fdasdf     \item[asdf] - fdasdf     \item[asdf] - fdasdf     \item[as42df] - fda432sdf     \item[as42df] - fda432sdf     \item[as42df] - fda432sdf     \item[59093] - 5324     \item[59093] - 5324     \item[59093] - 5324     \end{description}     \end{multicols}      The table will not look centered. Basically I want to center the `multicols` visually (which means that the minimal bounding box (i.e., excluding whitespace) is centered).


title: TexStudio: Use dictionary for completion

text: Is it somehow possible to extend TexStudio to use dictionary words in autocompletion? For example, when I type "som", I want the autocompletion list to show me all words from the dictionary starting with "som". I know TexStudio uses autocompletion for words that already appear in the same document. I've tried to create a .CWL file, but apparently it is only for commands and plain words are not supported.


title: How to have access to (or manage) bib files in MiKTeX?

text: I use **Jabref** to manage my bibliography database. I also use it with LyX and it's running well. But now I need to use it with MiKTeX and use TeXmaker as an editor. Using my MiKTeX settings I'm trying to tell the MiKTeX to add a root, where the `.bib` file created by Jabref is stored. But I got an error message **"Not a TDS-compliant root directory"**. Could anyone help me why I got the error message?


title: siunitx disturbs spacing of \, in math with xelatex

text: In the following example - compiled with XeLaTeX - the spacing of `\thinspacing`/the value of mu (used by `\,`) is disturbed if `\SI` is used in the math before:               \documentclass{article}          \usepackage{unicode-math}     \usepackage{siunitx}          \begin{document}          $1\mskip20mu1$ $\Leftarrow$          $\SI{1}{1}$           $1\mskip20mu1$ $\Leftarrow$          $1\mskip20mu1$          $\SI{1}{1}$          $1\mskip20mu1$ $\Leftarrow$          $a\SI{1}{1}$          $1\mskip20mu1$                \end{document}      ![enter image description here](http://i.stack.imgur.com/5nvfH.png)`unicode- math` A similar effect can be seen if `\SI` is the first command:               \documentclass{article}          \usepackage{unicode-math}     \usepackage{siunitx}          \begin{document}          $a\SI{2}{2}1\mskip20mu1$          $\SI{2}{2}a1\mskip20mu1$          \end{document}      # Observations   * it doesn't happen with LuaLaTeX,   * it doesn't happen with all fonts (`unicode-math`Cambria is not affected, but `xits` is),   * one must use `\SI` in math and in math mode,   * if only happens if `\SI` is the only thing in the math (which means that it is probably not a very problematic problem),   * at the next math, the value is again correct. Has someone an idea if it it a XeTeX, a `siunitx` or a `fontspec`/`unicode- math` math bug?


title: The kerning option of microtype

text: I wonder what the kerning option of the microtype package does? In the manual it says that `kerning=true` will give additional kerning. But how? Is this something that has to be specified in addition to activating the option? I can see no visual difference or any difference in filesize when compiling the two following examples with pdfTeX-1.40.10. Example 1:               \documentclass{article}          \usepackage{lipsum}     \usepackage[kerning=true]{microtype}          \begin{document}          \lipsum[1-5]          \end{document}      Example 2:               \documentclass{article}          \usepackage{lipsum}     \usepackage[kerning=false]{microtype}          \begin{document}          \lipsum[1-5]          \end{document}


title: How to draw a hypergraph (forest)?

text: How can I draw a hypergraph structure (a.k.a. forest) like this: ![forest](http://i.stack.imgur.com/zePF9.png) (Note: This is not a duplicate of this question, of course, since that drawing is very different.)


title: How do I skip a specific overlay on a beamer slide

text: I have a slide with many overlays. Shortly before the talk I notice that I need to save some time, and I want to remove one overlay from the slide, i.e. go from overlay 3 directly to 5. Is there a way to do so, besides manually re-numbering all overlay numbers >4?


title: My Geogebra graph breaks with multiple errors

text: Updated: I want a graph that drops vertically about 1/3 of the way across and 2/3 across. When I input this into Texmaker it has multiple errors including               Dimension too large     Package PGF Math Error: I cannot calculate the logarithm of '0,0'      (in '{2(0,0)^(3/2)-3(0,0)+1.4}').      Even the standalone doesn't work, so is it a package problem? MWE:               \documentclass[border=5pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{arrows}      \begin{document}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=4.34618291761148cm,y=4.205741626794257cm]     \draw[->,color=black] (-0.1,0) -- (1.97,0);     \foreach \x in {,1}     \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt);     \draw[color=black] (1.81,0.02) node [anchor=south west] { Order Quantity};     \draw[->,color=black] (0,-0.14) -- (0,2);     \foreach \y in {,1}     \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt);     \clip(-0.1,-0.14) rectangle (1.97,2);     \draw[dash pattern=on 2pt off 2pt, smooth,samples=100,domain=0.01:1.9707826086956564] plot(\x,{2*(\x)^(3/2)-3*(\x)+2});     \draw[dash pattern=on 2pt off 2pt, smooth,samples=100,domain=0.01:1.9707826086956564] plot(\x,{2*(\x)^(3/2)-3*(\x)+1.7});     \draw[dash pattern=on 2pt off 2pt, smooth,samples=100,domain=0.01:1.9707826086956564] plot(\x,{2*(\x)^(3/2)-3*(\x)+1.4});     \draw[line width=1.2pt, smooth,samples=100,domain=0.01:0.6666666666666666] plot(\x,{2*(\x)^(3/2)-3*(\x)+2});     \draw[line width=1.2pt, smooth,samples=100,domain=0.6666666666666666:1.3333333333333333] plot(\x,{2*(\x)^(3/2)-3*(\x)+1.7});     \draw[line width=1.2pt, smooth,samples=100,domain=1.3333333333333333:1.9707826086956564] plot(\x,{2*(\x)^(3/2)-3*(\x)+1.4});     \draw [line width=1.2pt] (0.67,1.09)-- (0.67,0.79);     \draw [line width=1.2pt] (1.33,0.78)-- (1.33,0.48);     \draw (1.01,0.03) node[anchor=north west] {$Q^*$};     \draw (-0.06,0.79) node[anchor=north west] {$C^*$};     \draw (0.01,1.99) node[anchor=north west] {Average Cost per Unit Time};     \end{tikzpicture}      \end{document}


title: How to update old version of TeXstudio in Windows 7?

text: I am using TeXstudio 2.3 the last two years. Now new versions are available. I want to update the old version. Is it possible to update without uninstalling the previous version? Is there any way to get updates automatically like windows update? Any one can guide me regarding the two versions 2.3 and 2.6 which will be better?


title: image placement using hfill

text: Is it possible places images at the same horizontal level?               \begin{figure}[h]     \includegraphics[scale=0.54]{/h.jpg}     \caption{Architecture}     \label{fig:Architecture}\hfill     \includegraphics[scale=0.54]{H.jpg}     \caption{Architecture}     \label{fig:Architecture}     \end{figure}      When I try doing this, all the images go to the last page.. no clue what's going on. i'm using TexMaker.               username ~ % identify H.jpg      H.jpg JPEG 668x449 668x449+0+0 8-bit DirectClass 32.3KB 0.000u 0:00.000     username ~ % identify h.jpg      h.jpg JPEG 692x433 692x433+0+0 8-bit DirectClass 38.2KB 0.000u 0:00.000


title: How to draw backslash in a certain way

text: I know there are fair number of questions that have been asked before on how to typeset a backslash; but I am looking for a specific placement of \ as shown below: ![enter image description here](http://i.stack.imgur.com/p6T0K.png) I tried `\diagdown`but I am not able to put `G` below the \ as shown in the screenshot.


title: Bibliography not changing according to style

text: I am having trouble formatting my bibliography to the ASA style. I would like to use the bibliography style asa.bst. I saved this .bst file within the same folder as my .tex file but do not see changes to my references. I also included this .bst file within the program files folder where other preloaded .bst files are located. My references remain in the "plain" style even with `\bibliographystyle{asa}`. Further more, when I attempt to change the bib style to "unsrt", a more common style, I still don't see changes to my references. The code below produces a file with references not in the wanted asa style. (years should be in parentheses directly after author)               \documentclass[12pt]{article}     \usepackage{graphicx}     \usepackage{float}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{fancyhdr}     \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}     \usepackage{setspace}     \usepackage{cite}     \begin{document}     Blah, Blah, Blah, Science! \cite{BaGa}           \bibliographystyle{asa}     \bibliography{bib}          \end{document}      The file named bib is as follows:               @book{BaGa,     title={Interactive spatial data analysis},     author={Bailey, T.C. and Gatrell, A.C.},     isbn={9780582244931},     lccn={lc95009053},     year={1995},     publisher={Longman Scientific and Technical}     }      The file asa.bst can be found: http://www.stat.berkeley.edu/~paciorek/asa.bst


title: Failing to alter page size with geometry package

text: I want to create a poster 11'' x 17'' in size. This code               \documentclass[landscape]{article}     \usepackage[height=11in,width=17in,margin=1cm]{geometry}     \usepackage{lipsum}          \begin{document}          \lipsum[1-3]          \end{document}      yields a page 8.5'' x 11''. What am I doing wrong?


title: Do different TeX distributions produce PDFs of different quality?

text: Let's say I have the same TeX input, do different TeX distributions produce different PDF, and if so, which would produce best quality for print? I know my Miktex uses fontconfig to some intent, would a Mac OS X TeX distribution use Quartz/Cairo font facilities for instance?


title: Minimal BST File That Writes Something

text: For another question here, I am trying to create a minimal BibTeX style that writes something into the output file. I am following the instructions from the manual (page 35), where a minimal example is indicated as               ENTRY {}{}{}          FUNCTION {test}     {"de la Cierva y Codorn{\’\i}u, Juan"     #1 "{ff - }{vv - }{ll}" format.name$ top$}          READ          EXECUTE{test}      So, as a minimal setup, I created these files: **test.tex**               \documentclass{article}          \begin{document}          This is a statement backed with a reference~\cite{Example}.          \bibliographystyle{test}     \bibliography{test}          \end{document}      **test.bib**               % This file was created with JabRef 2.6.     % Encoding: UTF8          @ARTICLE{Example,       author = {Sally Sample and Eddie Example},       title = {An Example Paper For Your Bibliography},       journal = {International Journal of Exemplary Text Fragments},       year = {2012},       volume = {3},       pages = {42--49},       owner = {haagfn},       timestamp = {2014.05.02}     }      **test.bst**               ENTRY {}{}{}          FUNCTION {output.something}     {       "test" write$     }          READ          EXECUTE {output.something}      According to the manual, the `write$` command > write[s] _S_ in the output `.bbl` file. (with _S_ being the item on the stack right below `write$`) For compilation, I'm using these commands:               pdflatex test.tex     bibtex test.aux     pdflatex test.tex     bibtex test.aux     pdflatex test.tex      However, my `.bbl` file remains empty. Oddly, when I replace `write$` with `top$` (as in the example from the manual), _test_ does get output in the terminal. However, to make my example as true to the real use case as possible (and also because I want to know how it works), I would like to output my example string to the `.bbl` file. **Why does my`.bbl` file remain empty and what do I have to change so _test_ gets output there?**


title: Dimension too large after exporting box plot with matlab2tikz

text: When exporting a box plot with `matlab2tikz` I get no errors, but when running pdflatex I get a `"dimension too large"` error. This only happens with box plots. Still the box plot shows up as it should, except only x labels ('A' , 'B' etc) are missing. Plots in Matlab are generated by               matlab2tikz( 'myfile.tex', 'height', '\figureheight', 'width', '\figurewidth' );      Plots in LaTeX are generated by               \newlength\figureheight      \newlength\figurewidth      \setlength\figureheight{5cm}      \setlength\figurewidth{5cm}     \input{myfile.tex}      Any ideas? Here is the content of `myfile.tex`               \begin{tikzpicture}     \begin{axis}[%     width=\figurewidth,     height=\figureheight,     unbounded coords=jump,     clip=false,     scale only axis,     xmin=0.5,     xmax=1.5,     xtick={\empty},     ymin=-0.906787341211142,     ymax=1.91353502249058     ]     \addplot [     color=black,     dashed,     forget plot     ]     table[row sep=crcr]{     1 1.22705846866506\\     1 1.78533855141323\\     };     \addplot [     color=black,     dashed,     forget plot     ]     table[row sep=crcr]{     1 -0.778590870133791\\     1 -0.1615124881432\\     };     \addplot [     color=black,     solid,     forget plot     ]     table[row sep=crcr]{     0.9625 1.78533855141323\\     1.0375 1.78533855141323\\     };     \addplot [     color=black,     solid,     forget plot     ]     table[row sep=crcr]{     0.9625 -0.778590870133791\\     1.0375 -0.778590870133791\\     };     \addplot [     color=blue,     solid,     forget plot     ]     table[row sep=crcr]{     0.925 -0.1615124881432\\     0.925 1.22705846866506\\     1.075 1.22705846866506\\     1.075 -0.1615124881432\\     0.925 -0.1615124881432\\     };     \addplot [     color=red,     solid,     forget plot     ]     table[row sep=crcr]{     0.925 0.232038283285484\\     1.075 0.232038283285484\\     };     \node[above, inner sep=0mm, text=black]     at (axis cs:216.829133858268, -13.9889763779528, 0) {1};     \end{axis}     \end{tikzpicture}%


title: Double-headed arrows

text: Is it possible to get TikZ-arrows to draw double-headed arrows? What I'm looking for is a way to achieve               \draw[-triangle 90 triangle 90] (A) -- (B);      and the open triangle equivalent, in the way TikZ would normally read               \draw[->>] (A) -- (B);


title: Different color

text: I use the following code to generate a plot               \documentclass{article}     \usepackage{xcolor}         % colorize your documents     \usepackage{graphicx}       % and use graphics     \usepackage{tikz,pgfplots}  % cool tikz-package for drawing     % improve the default settings for coordinate system drawing     \pgfplotsset{%     default/.style={grid=major,             axis lines=middle,             inner axis line style={=>},             legend style={at={( 1.1,1)}, anchor=north west}}     }          \begin{document}     \begin{figure}     \begin{tikzpicture}         \begin{axis}[default,             xlabel=$x$,             ylabel=$\vert x\vert$         ]         % invoke external gnuplot as         \addplot[thick,cyan,domain=-5.5:5.5] gnuplot[id=abs]{abs(x)};         \addlegendentry{$\vert x\vert$};         \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}      I use **pdflatex** on Ubuntu 13.10 and Debian Squeeze. I get different results: debian: ![plot on debian](http://i.stack.imgur.com/A9b1z.png) ubuntu: ![plot on ubuntu](http://i.stack.imgur.com/Re6ph.png) Maybe there are different color definitions in different package version. Whats the best way to investigate where the reason is. edit: "\listfiles" gives me (on debian):                *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive       pdftex.def    2010/03/12 v0.04p Graphics/color for pdfTeX     dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)      and on ubuntu                *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)


title: Undefined control sequence,amsfonts

text: During compilation of my document I get the following error:               .............     (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty     (/usr/share/texmf/tex/latex/misc/amsfonts.sty     ! Undefined control sequence.     l.27 \font\twtymsx=msxm10   \@magscale                                       4     ?      How to fix this problem? Thank you.


title: Edit the commands in the moderncv class so as to add another 'column'

text: I'm making a CV using the moderncv class. For most of the commands, the text is aligned such that it looks to be divided into two columns; one which takes the header, years etc. argument of the commands, and is left-aligned (the text is right-aligned within it), and the other which takes up the remaining width of the page and has the main information in the cvitem, cventry etc. as in the following: ![Two columns](http://i.stack.imgur.com/v3wsE.jpg) I want to compress the right column from the right and add in an extra column to the right of that (right-aligned, the text would be left-aligned in the column) something like the following: ![Three columns](http://i.stack.imgur.com/eLn3f.jpg) (obviously without cutting off the text as in the image). I couldn't think of a way to do this myself so I tried looking in the moderncv class file to see how it creates the left column (so to speak), and use the same idea to create the right column, but couldn't see where it creates the left column. So I have no idea how to do this! So I'm wondering is there an easy way to edit the cventry, cvitem etc. commands such that they take an extra argument which is left-aligned in a sort of column which is flushright, and compresses the middle column. I realise I may have made this sound ridiculously complicated but hopefully the images convey what I'm trying to do.


title: Vertically align the top of a box to the top of the tallest box of a line

text: This is a follow-up question on this thread. I want to mark a line by putting a star to the left of it. If the line contains a box that is tall, the marker should be aligned with the top of this box, not the bottom. How to align something to the top of the tallest box of a line? MWE (edited):               \documentclass{article}          \def\marker{%     \strut\vadjust{\vbox to 0pt{     \kern-\dp\strutbox\smash{\llap{$\star$}}\vss}}%     \ignorespaces}          \setlength{\parindent}{0pt}     \setlength{\parskip}{6pt plus 1pt minus 3pt}          \begin{document}     Some text \marker\rule{1cm}{5em} some more text, all \newline in the same paragraph.  A paragraph, where\newline \rule{1cm}{2em} \marker some lines are marked with a star\newline that should be aligned with the tallest box of the line.     \end{document}      Compile this to see the problem: the stars should be aligned with the top of the black rectangles. Edit: I changed the MWE to describe the problem in a more accurate way. A `\par` break and skipping back up to the old line does, unfortunately, not solve the problem.


title: Chapter name followed by section name in the left side of the header of all pages

text: In fancy-header mode I want to put at the left of the upper head of each page, the name of the current chapter followed, after a separator sign, by the name of the current section. How can I manage to do that, taking into account that my chapters and sections are addchapter and addsection (they have no numero but appear in the table of content).


title: Tagging under an equation using underbrace

text: I would like to tag two parts of a huge equation using underbraces (and call them, say term A and term B). Later in the text, I want to talk about term A and term B. Is there a way to tag and label A and refer to it using ref later? Currently, I'm having to manually type in A, B, C, etc. and keep referring to check if I'm referring to the right tag.               \documentclass{article}     \usepackage{amsmath}     \usepackage{mathtools}          \begin{document}          \begin{equation*}     \sum_{i=1}^n (i + i^2) = \underbrace{\sum_{i=1}^n i}_{A}  + \underbrace{\sum_{i=1}^n i^2}_{B}     \end{equation*}          Later in the text, I want to talk about term A and term B.  Is there a     way to tag and label A and refer to it using ref later?  Currently,     I'm having to manually type in A, B, C, etc. and keep referring to     check if I'm referring to the right tag.          \end{document}      I want to replace `_{A}` with something like `_{\tag{A}\label{eq:term1}}`. And then, later in the text say `Term~\ref{eq:term1} is blah blah blah` (where of course, blah blah blah is `$n*(n+1)/2$`.)


title: Trying to build a more intelligent (context sensitive) macro

text: I would like to build a macro that correctly identifies the context within which it is being called and appropriately set modes and font size according to context. Yesterday I started building a macro to draw an arc symbol over the names of points. But then I realized it wasn't aware of whether it was being called from within math mode or not. So I decided to add such features. Of course I had to try to figure out how to break it. So the examples here are just a few where I'm finding contexts in which macro seems unaware of its proper context. Here's the MWE:               \documentclass{article}     \usepackage{amsmath,amssymb}     \usepackage{tikz}          \makeatletter          \newsavebox\ae@frown@box     \begin{lrbox}{\ae@frown@box}       \begin{tikzpicture}         %% to not have unwanted white space being added to the height         \begin{pgfinterruptboundingbox}           \path[fill] (0,0) to [out=50,in=130]                        (2,0) to [out=150,in=30]                        cycle;         \end{pgfinterruptboundingbox}         %% to give my "box" some kind of width and height.         \path (0,0) -- (2,0.45);       %%  \draw[red] (current bounding box.north east) rectangle (current bounding box.south west);       \end{tikzpicture}     \end{lrbox}          \def\ae@frown{\usebox{\ae@frown@box}}     \let\aefrown\ae@frown     \newsavebox\ae@tmp@box     \newcommand\arc[1]{%       \begingroup       \ifmmode         \ifinner           \sbox\ae@tmp@box{$#1$}%%         \else           \sbox\ae@tmp@box{$\displaystyle#1$}%%         \fi       \else\sbox\ae@tmp@box{#1}%%       \fi       \ooalign{%%         \raisebox{\ht\ae@tmp@box}{%%           \resizebox{\wd\ae@tmp@box}{!}{%%             \ae@frown}}%%         \cr         \usebox{\ae@tmp@box}}%%       \endgroup         }          \makeatother          \pagestyle{empty}     \setlength{\parskip}{2ex}     \setlength{\parindent}{0pt}     \begin{document}          Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae,     aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli     appellantur. Hi omnes lingua, institutis, legibus inter se differunt.          In-line style: $ \int_0^2 x^2\mathrm{d}x   \text{  vs  }   \arc{\int_0^2 x^2\mathrm{d}x} $          Displaystyle I:     \[       \int_0^2 x^2\mathrm{d}x       \text{  vs  }       \arc{\int_0^2 x^2\mathrm{d}x}     \]          Displaystyle invoked from within in-line style:     $\displaystyle        \int_0^2 x^2\mathrm{d}x       \text{  vs  }       \arc{\int_0^2 x^2\mathrm{d}x}     $          Displaystyle within \verb=align=     \begin{align*}       y &=\int_0^2 x^2      \mathrm{d}x       \intertext{  vs  }       y &=\arc{\int_0^2 x^2 \mathrm{d}x}     \end{align*}          \end{document}      ![enter image description here](http://i.stack.imgur.com/RGaIN.png) I was not expecting my macro no ignore the `\displaystyle` switch. That prompted me to test it out in an `align*` environment. Other contexts I'm aware of are numerator/denominators of fractions and super/subscripts where font sizes are scaled: I don't know how to test for any of these. So I've got a bundle of questions which seem very closely related:   * How do I get my macro to know when to use `\displaystyle`? For example, when I've used the switch `\displaystyle` I would like my macro to recognize that, but currently it doesn't.   * Once I've tested for modes, am I setting the mode correctly? In other words, if I discover that I'm no longer in in-line math mode, do I use `\displaystyle` to switch mode styles, or is there a better approach?   * How do I test whether I'm in a fraction or a super/subscript? I know it's generally frowned upon to post multiple questions in single posting, but these questions seemed to be so closely aligned that putting them together made more sense to me than separating them. However, if the community would like me to post them separately, I will certainly edit my question and do so. Finally, I'm not really concerned with the visual aesthetic of this particular macro. This is a purely educational exercise. I'm not planning on _arcing_ my integrals!


title: <M-i> mapping not working in Vim LatexSuite on linux

text: I'm running vim 7.0 on linux, with Vim LatexSuite. I'm trying to use the nifty-looking shortcut for adding items to an itemize environment.               :h Alt-I     <Alt-I>                                            *ls_3_10_4* *ls_a_bE* *Alt-I*     This mapping inserts an \item command at the current cursor location depending on     which environment the cursor is enclosed in. ...      But it's not working. Now `<Alt-I>` isn't a common mapping style on linux, `<M-I>` would be used normally, so I guess the mapping is just not set up correctly for linux. This is confirmed by:               :verbose map! <M-I>     No mapping found       How can I fix this mapping? What's the function it usually maps to?


title: What are the advantages of using ConTeXt's XML?

text: I have discovered quite a number of documents at the PRAGMA ADE Web page, showing how to create documents using an XML system. Much of the documents show features, such as tables, which appear, at least at first glance, easier to construct using ConTeXT's typical non-XML commands, such as those found in the tables article of the ConTeXt wiki.   * How does this XML system integrate with the rest of ConTeXt?   * Why would anyone use such a system?   * In what situations might be it be benefitial to use this instead of standard ConTeXt macros?


title: Get List of Listings in an Appendix

text: I am using LyX with the `listings` package. I want to have Appendix A be titled "Code Listings" and then have the List of Listings. Right now I have `\lstlistoflistings` in an ERT. By using `\renewcommand\lstlistlistingname{}` in the pre-amble I was able to get the "Listings" text removed. But it still breaks to a new page. How do I keep it from doing that?


title: Second section/title in middle of beamer frame?

text: I want to have a second section within a single beamer frame, to visually separate two concepts. Basically I want the frame to be two half-height frames (excluding the bits within the header/footer). In a normal book/article document, I'd be able to use `\section{}` and this would actually print the section name. This doesn't work in Beamer - sections don't appear in the text. I would like to have the same formatting as the frame title (or sub-title) for the second section/title (i.e. use the formatting from the beamer theme in use). I would also like the section to show up in the TOC. Is that possible? If so, how?


title: Comma in the title in the latest biblatex ieee-alphabetic

text: I have biblatex 2013/11/25 v2.8a and ieee-alphabetic.bbx 2013/10/25 v1.1j. Here A, it is said that the bug is fixed, but I happen to have it :(               \documentclass{article}               \begin{filecontents}{mwwe.bib}         @article{Test1,         author = {An Author},         title = {Nice title},         journaltitle = {The Journal of Nonsense},         date = {2012},     volume = {1},     number = {13},     pages = {13-23},     }          @book{Test2,     author = {Big Bethor},     title = {Some random Book},         date = {1999},         publisher = {Oneandonly Publishing},         location = {Earth},         pages = {18-22},         }              @inbook{Test3,         author = {Crazy Cethor and Dumb Dethor},         title = {Any weird title},         booktitle = {The book of stuff},         date = {1857},         editor = {Edwin Editor},         publisher = {Crazy Publishers},         location = {The Universe},         pages = {899-947},         }         @inproceedings{Test4,         author = {Frank Fauthor and Gary Gethor},         editor = {Oscar Odithor},         title = {My Research},         booktitle = {The Conference of Research},         date = {2030},         venue = {Vaduz, Liechtenstein},         pages = {255-256},         }          \end{filecontents}          \usepackage[backend=biber, sorting=nyt, citestyle=alphabetic,                  bibstyle=ieee-alphabetic,  maxnames=3,minnames=1,maxbibnames=99]{biblatex}      \addbibresource{mwe.bib}          \begin{document}     \cite{Test2}  \cite{Test1,Test4}   \cite{Test3}     \printbibliography     \end{document}      Actually, I would like a semi-colon outside the quotation marks. My log file, I use a localtexmf folder               This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9) (preloaded format=xelatex 2013.9.14)  27 APR 2014 21:11     entering extended mode     **commaieee.tex     (D:\ptex\tout\commaieee.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     (D:\tex\miktex\tex\latex\base\article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (D:\tex\miktex\tex\latex\base\size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )          LaTeX Warning: File `mwwe.bib' already exists on the system.                    Not generating it from this source.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\biblatex.sty     Package: biblatex 2013/11/25 v2.8a programmable bibliographies (PK/JW/AB)          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\biblatex2.sty     Package: biblatex2 2013/11/25 v2.8a programmable bibliographies (biber) (PK/JW/     AB)          (D:\tex\latex\localtexmf\tex\latex\etoolbox\etoolbox.sty     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX          (D:\tex\miktex\tex\latex\misc\etex.sty     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count88     )     \etb@tempcnta=\count89     )     (D:\tex\miktex\tex\latex\graphics\keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks14     )     (D:\tex\miktex\tex\latex\oberdiek\kvoptions.sty     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)          (D:\tex\miktex\tex\generic\oberdiek\ltxcmds.sty     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     (D:\tex\miktex\tex\generic\oberdiek\kvsetkeys.sty     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)          (D:\tex\miktex\tex\generic\oberdiek\infwarerr.sty     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     (D:\tex\miktex\tex\generic\oberdiek\etexcmds.sty     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)          (D:\tex\miktex\tex\generic\oberdiek\ifluatex.sty     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     )))     (D:\tex\latex\localtexmf\tex\latex\logreq\logreq.sty     Package: logreq 2010/08/04 v1.0 xml request logger     \lrq@indent=\count90          (D:\tex\latex\localtexmf\tex\latex\logreq\logreq.def     File: logreq.def 2010/08/04 v1.0 logreq spec v1.0     ))     (D:\tex\miktex\tex\latex\base\ifthen.sty     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     ) (D:\tex\miktex\tex\latex\url\url.sty     \Urlmuskip=\muskip10     Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.     )     \c@tabx@nest=\count91     \c@listtotal=\count92     \c@listcount=\count93     \c@liststart=\count94     \c@liststop=\count95     \c@citecount=\count96     \c@citetotal=\count97     \c@multicitecount=\count98     \c@multicitetotal=\count99     \c@instcount=\count100     \c@maxnames=\count101     \c@minnames=\count102     \c@maxitems=\count103     \c@minitems=\count104     \c@citecounter=\count105     \c@savedcitecounter=\count106     \c@uniquelist=\count107     \c@uniquename=\count108     \c@refsection=\count109     \c@refsegment=\count110     \c@maxextratitle=\count111     \c@maxextratitleyear=\count112     \c@maxextrayear=\count113     \c@maxextraalpha=\count114     \c@abbrvpenalty=\count115     \c@highnamepenalty=\count116     \c@lownamepenalty=\count117     \c@maxparens=\count118     \c@parenlevel=\count119     \blx@tempcnta=\count120     \blx@tempcntb=\count121     \blx@tempcntc=\count122     \blx@maxsection=\count123     \blx@maxsegment@0=\count124     \blx@notetype=\count125     \blx@parenlevel@text=\count126     \blx@parenlevel@foot=\count127     \blx@sectionciteorder@0=\count128     \labelnumberwidth=\skip43     \labelalphawidth=\skip44     \shorthandwidth=\skip45     \biblabelsep=\skip46     \bibitemsep=\skip47     \bibnamesep=\skip48     \bibinitsep=\skip49     \bibparsep=\skip50     \bibhang=\skip51     \blx@bcfin=\read1     \blx@bcfout=\write3     \c@mincomprange=\count129     \c@maxcomprange=\count130     \c@mincompwidth=\count131     Package biblatex Info: Trying to load biblatex default data model...     Package biblatex Info: ... file 'blx-dm.def' found.     (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\blx-dm.def)     Package biblatex Info: Trying to load biblatex citestyle data model...     Package biblatex Info: ... file 'alphabetic.dbx' not found.     Package biblatex Info: Trying to load biblatex bibstyle data model...     Package biblatex Info: ... file 'ieee-alphabetic.dbx' not found.     Package biblatex Info: Trying to load biblatex custom data model...     Package biblatex Info: ... file 'biblatex-dm.cfg' not found.     \c@afterword=\count132     \c@savedafterword=\count133     \c@annotator=\count134     \c@savedannotator=\count135     \c@author=\count136     \c@savedauthor=\count137     \c@bookauthor=\count138     \c@savedbookauthor=\count139     \c@commentator=\count140     \c@savedcommentator=\count141     \c@editor=\count142     \c@savededitor=\count143     \c@editora=\count144     \c@savededitora=\count145     \c@editorb=\count146     \c@savededitorb=\count147     \c@editorc=\count148     \c@savededitorc=\count149     \c@foreword=\count150     \c@savedforeword=\count151     \c@holder=\count152     \c@savedholder=\count153     \c@introduction=\count154     \c@savedintroduction=\count155     \c@namea=\count156     \c@savednamea=\count157     \c@nameb=\count158     \c@savednameb=\count159     \c@namec=\count160     \c@savednamec=\count161     \c@shortauthor=\count162     \c@savedshortauthor=\count163     \c@shorteditor=\count164     \c@savedshorteditor=\count165     \c@translator=\count166     \c@savedtranslator=\count167     \c@labelname=\count168     \c@savedlabelname=\count169     \c@institution=\count170     \c@savedinstitution=\count171     \c@lista=\count172     \c@savedlista=\count173     \c@listb=\count174     \c@savedlistb=\count175     \c@listc=\count176     \c@savedlistc=\count177     \c@listd=\count178     \c@savedlistd=\count179     \c@liste=\count180     \c@savedliste=\count181     \c@listf=\count182     \c@savedlistf=\count183     \c@location=\count184     \c@savedlocation=\count185     \c@organization=\count186     \c@savedorganization=\count187     \c@origlocation=\count188     \c@savedoriglocation=\count189     \c@origpublisher=\count190     \c@savedorigpublisher=\count191     \c@publisher=\count192     \c@savedpublisher=\count193     \c@language=\count194     \c@savedlanguage=\count195     \c@pageref=\count196     \c@savedpageref=\count197     Package biblatex Info: Trying to load compatibility code...     Package biblatex Info: ... file 'blx-compat.def' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\blx-compat.def     File: blx-compat.def 2013/11/25 v2.8a biblatex compatibility (PK/JW/AB)     )     Package biblatex Info: Trying to load generic definitions...     Package biblatex Info: ... file 'biblatex.def' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\biblatex.def     File: biblatex.def      \c@textcitecount=\count198     \c@textcitetotal=\count199     \c@textcitemaxnames=\count200     \c@biburlnumpenalty=\count201     \c@biburlucpenalty=\count202     \c@biburllcpenalty=\count203     \c@smartand=\count204     )     Package biblatex Info: Trying to load bibliography style 'ieee-alphabetic'...     Package biblatex Info: ... file 'ieee-alphabetic.bbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex-ieee\ieee-alphabetic.bbx     File: ieee-alphabetic.bbx 2013/10/25 v1.1j biblatex bibliography style     Package biblatex Info: Trying to load bibliography style 'ieee'...     Package biblatex Info: ... file 'ieee.bbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex-ieee\ieee.bbx     File: ieee.bbx 2013/10/25 v1.1j biblatex bibliography style     Package biblatex Info: Trying to load bibliography style 'numeric-comp'...     Package biblatex Info: ... file 'numeric-comp.bbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\bbx\numeric-comp.bbx     File: numeric-comp.bbx 2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)     Package biblatex Info: Trying to load bibliography style 'numeric'...     Package biblatex Info: ... file 'numeric.bbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\bbx\numeric.bbx     File: numeric.bbx 2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)     Package biblatex Info: Trying to load bibliography style 'standard'...     Package biblatex Info: ... file 'standard.bbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\bbx\standard.bbx     File: standard.bbx 2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)     \c@bbx:relatedcount=\count205     \c@bbx:relatedtotal=\count206     )))))     Package biblatex Info: Trying to load citation style 'alphabetic'...     Package biblatex Info: ... file 'alphabetic.cbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\cbx\alphabetic.cbx     File: alphabetic.cbx 2013/11/25 v2.8a biblatex citation style (PK/JW/AB)     Package biblatex Info: Redefining '\cite'.     Package biblatex Info: Redefining '\parencite'.     Package biblatex Info: Redefining '\footcite'.     Package biblatex Info: Redefining '\footcitetext'.     Package biblatex Info: Redefining '\smartcite'.     Package biblatex Info: Redefining '\textcite'.     Package biblatex Info: Redefining '\textcites'.     Package biblatex Info: Redefining '\cites'.     Package biblatex Info: Redefining '\parencites'.     Package biblatex Info: Redefining '\smartcites'.     )     Package biblatex Info: Trying to load configuration file...     Package biblatex Info: ... file 'biblatex.cfg' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\biblatex.cfg     File: biblatex.cfg      )))     Package biblatex Info: Trying to load language 'english'...     Package biblatex Info: ... file 'english.lbx' found.          (D:\tex\latex\localtexmf\tex\latex\biblatex\latex\lbx\english.lbx     File: english.lbx 2013/11/25 v2.8a biblatex localization (PK/JW/AB)     )     \@quotelevel=\count207     \@quotereset=\count208          (D:\ptex\tout\commaieee.aux)     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 50.     LaTeX Font Info:    ... okay on input line 50.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 50.     LaTeX Font Info:    ... okay on input line 50.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 50.     LaTeX Font Info:    ... okay on input line 50.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 50.     LaTeX Font Info:    ... okay on input line 50.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 50.     LaTeX Font Info:    ... okay on input line 50.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 50.     LaTeX Font Info:    ... okay on input line 50.     Package biblatex Info: XeTeX detected.     (biblatex)             Assuming input encoding 'utf8'.     Package biblatex Info: Automatic encoding selection.     (biblatex)             Assuming data encoding 'utf8'.     Package biblatex Info: Trying to load bibliographic data...     Package biblatex Info: ... file 'commaieee.bbl' found.      (D:\ptex\tout\commaieee.bbl)     Package biblatex Info: Reference section=0 on input line 50.     Package biblatex Info: Reference segment=0 on input line 50.     Requested font "cmr12" at 14.4pt     Requested font "cmbx12" at 14.4pt     Requested font "cmti10" at 10.0pt      [1          ]     (D:\ptex\tout\commaieee.aux)     Package logreq Info: Writing requests to 'commaieee.run.xml'.      )      Here is how much of TeX's memory you used:      5839 strings out of 429025      98608 string characters out of 3170138      478622 words of memory out of 3000000      9095 multiletter control sequences out of 15000+200000      4591 words of font info for 17 fonts, out of 3000000 for 9000      912 hyphenation exceptions out of 8191      44i,4n,49p,823b,868s stack positions out of 5000i,500n,10000p,200000b,50000s          Output written on commaieee.pdf (1 page).


title: pgfplotstable: Why does `postproc cell content` not work properly when used within a style?

text: I use pgfplotstable and want to post-format a specific column. Among other things I need to duplicate its content. My problem is that `postproc cell content` works fine as a direct parameter to `pgfplotstabletypeset` but not when I try to put it into a style so I can use it for multiple tables.               \documentclass[11pt]{article}     \usepackage{pgfplotstable}          \begin{document}     \begin{table}     \centering          \pgfplotstableread{     A   B   C     1   3.5 2.4     2   1.2 6.7     3   2.1 3.3     }\data          \pgfplotstableset{      debug,      mytable/.style={       columns={A,B,C},       columns/A/.style={string type,                         postproc cell content/.style={                          @cell content=\ensuremath{##1 \leftrightarrow ##1}                         }                        },      }     }          \pgfplotstabletypeset[         mytable,     %    columns/A/.style={string type,     %                      postproc cell content/.style={     %                       @cell content=\ensuremath{##1 \leftrightarrow ##1}     %                      }     %                     }     ]{\data}          \caption{Some important table}     \end{table}          \end{document}      When I enable the commented lines it looks like it should, without them the original numbers are missing. Sorry, cannot post images...


title: Draw one solid inside another

text: I want to generate a couple of solids, one inside the other. I know I can do it in `pst-solides3d` because it of the first picture in the documentation. My intention is to create an ellipsoid inside another ellipsoid, quite simple really               \documentclass{minimal}     \usepackage{pst-solides3d}     \begin{document}     \begin{pspicture}(-5,-4)(5,6)     \psset[pst-solides3d]{viewpoint=20 20 -10 rtp2xyz,Decran=15,lightsrc=viewpoint}     \defFunction{esfera2}(u,v)     {u cos v sin mul 5 mul}     {u sin v sin mul 4 mul}     {v cos           3 mul}     \defFunction{esfera1}(u,v)     {u cos v sin mul 3 mul}     {u sin v sin mul 2 mul}     {v cos           1 mul}     \psSolid[         object=surfaceparametree,         base=0 180 0 180,         incolor=red,         function=esfera1,         linewidth=0.5\pslinewidth,         ngrid=40     ]%     \psSolid[         object=surfaceparametree,         base=0 180 0 180,         incolor=white,         opacity=0.5,         function=esfera2,         linewidth=0.5\pslinewidth,         ngrid=40     ]%     \end{pspicture}     \end{document}      My code produces the following result ![incorrectly nested ellipsoids](http://i.stack.imgur.com/0eHnc.png) But my target is to make it look like the following picture (if you haven't seen it yet) ![Solides3d Manual cover picture](http://i.stack.imgur.com/79wuO.png) I suppose part of the problem may be that my solids are parametrized surfaces. Any ideas?


title: Using \foreach loop in Cubic B-spline curve refinement

text: This question is only about TikZ (/PGF) implementation. This is a MWE of what I want to ask for:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{calc}          \begin{document}          \begin{tikzpicture}[scale=2]     \coordinate (p1) at (1,.5);     \coordinate (p2) at (1,1);     \coordinate (p3) at (0,1);     \coordinate (p4) at (0,0);     \coordinate (p5) at (1,0);     \coordinate (p6) at (1,-1);     \coordinate (p7) at (0,-1);     \coordinate (p8) at (0,-.5);     \draw[line width=1pt,blue] (p1) \foreach \p in {p2,p3,p4,p5,p6,p7,p8} {     -- (\p)};          %% For odd points the rule is $n_{2i-1} = .5*p_{i} + .5*p_{i+1}$     %% For even points the rule is $n_{2i} = .125*p_{i-1} + .75*p_{i} + .125*p_{i+1}$          \coordinate (n1) at ($.5*(p1) + .5*(p2)$);     \coordinate (n2) at ($.125*(p1) + .75*(p2) + .125*(p3)$);     \coordinate (n3) at ($.5*(p2) + .5*(p3)$);     \coordinate (n4) at ($.125*(p2) + .75*(p3) + .125*(p4)$);     \coordinate (n5) at ($.5*(p3) + .5*(p4)$);     \coordinate (n6) at ($.125*(p3) + .75*(p4) + .125*(p5)$);     \coordinate (n7) at ($.5*(p4) + .5*(p5)$);     \coordinate (n8) at ($.125*(p4) + .75*(p5) + .125*(p6)$);     \coordinate (n9) at ($.5*(p5) + .5*(p6)$);     \coordinate (n10) at ($.125*(p5) + .75*(p6) + .125*(p7)$);     \coordinate (n11) at ($.5*(p6) + .5*(p7)$);     \coordinate (n12) at ($.125*(p6) + .75*(p7) + .125*(p8)$);     \coordinate (n13) at ($.5*(p7) + .5*(p8)$);     \draw[line width=3pt] (n1) \foreach \n in {n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13} {     -- (\n)};     \end{tikzpicture}          \end{document}      The point is that I want to compute all the n1,...,n13 coordinates found by the cubic B-spline curve refinement considering the initial points p1,...,p8 with a `\foreach` instructions and NOT by hand as was shown, but I don't know how to use many points in the `\foreach` list at the same iteration. If you could also generate the new points as a list or array will be nice. Please do that in the more general way, considering as many as possible initial points (not just 8) and the possibility of many points used in the same iteration. Think that for me this question is the tip of the iceberg!


title: Dimensioning of a technical drawing in TikZ

text: Is there is an easy way to mark dimensions in a technical drawing with TikZ? ![dimensions in technical drawing](http://i.stack.imgur.com/XaPdA.png) Is there a library or something? ## Edit I am using XeLaTeX. ## Update I chose Martin's answer because it serves me well for the moment. Ultimately the best solution would be a library that, in an easy and consistent manner, would allow to change the arrow/dimension lines styles, would support polar coordinates, would allow to choose 2 nodes and the vertical distance that you want the dimension to be typeseted etc.


title: Adding .cls to portable MiKTeX

text: I guess specifically it would help to know where the texmf path is. I make extensive use of a particular class and need to add it to MiKTeX portable. Can someone point me in the right direction? I saw the post about adding a custom `.sty` file; do I need to do something comparable?


title: How to achieve short journal names in this bibliography style using Biblatex package?

text: I use `Zotero` to get references from the web, and then export them into LaTeX using `biblatex` format using this workflow. I am fine with the style of bibliography and its output as shown below , but I want now to switch to short journal names using the same style, as they are provided in the exported database from Zotero, I made sure that all references do have a short journal name in Zotero database, but it would be nice if the code will fall back to long names otherwise (not elegant, though, to have both in the bibliography list, but as a last resort and this can be fixed from within Zotero later on). I checked this post, but couldn't achieve my goal. I would be very grateful also, if someone can suggest a better way than writing all this code to achieve the same style or a similar one. There are no specific regulations for the PhD bibliography in my university. So my questions are:   1\. How to show short journal names when _available_?   2\. How to achieve the same output (see below), but with short journal names writing less code?   3\. I couldn't find the explanation of the `chem-acs` style in biblatex manual, what does this style entail? **MWE Code**               \documentclass{scrartcl}      \usepackage[backend=biber,style=chem-acs,terseinits=true,sorting=none,isbn=false,doi=false,backref=true]{biblatex}  \renewcommand*{\bibfont}{\small} % smaller font for bibliography list     \ExecuteBibliographyOptions{%       citetracker=true,       sorting=none,       alldates=long,       articletitle=true,       maxcitenames=1     }     % remove brackets around the number of each bibliography entry     \DeclareFieldFormat{labelnumberwidth}{#1\addperiod}     % Suppress article title, doi, url, etc. in citations     \AtEveryCitekey{%       \ifentrytype{article}         {\clearfield{title}}         {}%       \clearfield{doi}%       \clearfield{url}%       \clearlist{publisher}%       \clearlist{location}%       \clearfield{note}%     }          % Print year instead of date, when available; make use of urldate     \DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}     \renewbibmacro*{date}{% Based on date bib macro from chem-acs.bbx       \iffieldundef{year}         {\ifentrytype{online}            {\printtext[urldate]{\printurldate}}            {\printtext[date]{\printdate}}}         {\printfield[date]{year}}}          % Remove period from titles     \DeclareFieldFormat*{title}{#1}     \DeclareFieldFormat[book]{date}{\textbf{#1}} %      \DeclareFieldFormat[report]{date}{\textbf{#1}} %      \DeclareFieldFormat[software]{date}{\textbf{#1}} %      \DeclareFieldFormat[inproceedings]{date}{\textbf{#1}} %           % Embed doi and url in titles, when available     \renewbibmacro*{title}{% Based on title bib macro from biblatex.def       \ifboolexpr{ test {\iffieldundef{title}}                    and test {\iffieldundef{subtitle}} }         {}         {\ifboolexpr{ test {\ifhyperref}                       and not test {\iffieldundef{doi}} }            {\href{http://dx.doi.org/\thefield{doi}}               {\printtext[title]{%                  \printfield[titlecase]{title}%                  \setunit{\subtitlepunct}%                  \printfield[titlecase]{subtitle}}}}            {\ifboolexpr{ test {\ifhyperref}                          and not test {\iffieldundef{url}} }              {\href{\thefield{url}}                 {\printtext[title]{%                    \printfield[titlecase]{title}%                    \setunit{\subtitlepunct}%                    \printfield[titlecase]{subtitle}}}}              {\printtext[title]{%                 \printfield[titlecase]{title}%                 \setunit{\subtitlepunct}%                 \printfield[titlecase]{subtitle}}}}%          \newunit}%       \printfield{titleaddon}%       \clearfield{doi}%       \clearfield{url}%       \clearlist{language}%       \clearfield{note}%       \ifentrytype{article}% Delimit article and journal titles with a period         {\adddot}         {}}     \renewbibmacro*{name:andothers}{% Based on name:andothers from biblatex.def       \ifboolexpr{         test {\ifnumequal{\value{listcount}}{\value{liststop}}}         and         test \ifmorenames       }         {\ifnumgreater{\value{liststop}}{1}            {\finalandcomma}            {}%          \andothersdelim\bibstring[\emph]{andothers}}         {}}                    \usepackage{filecontents}     \begin{filecontents}{jobname.bib}     @article{rand_objective_1971,         title = {Objective criteria for the evaluation of clustering methods},         volume = {66},         issn = {01621459},         url = {http://www.jstor.org/discover/10.2307/2284239?uid=3737864&uid=2&uid=4&sid=21103234673533},         doi = {10.2307/2284239},         pages = {846},         number = {336},         journaltitle = {Journal of the American Statistical Association},         shortjournal = {J Amer Statist Assoc},         author = {Rand, William M.},         urldate = {2013-12-18},         date = {1971-12},         keywords = {Comparing partitions, Rand, statistics}     }          @article{hubert_comparing_1985,         title = {Comparing partitions},         volume = {2},         issn = {0176-4268, 1432-1343},         url = {http://link.springer.com/article/10.1007/BF01908075},         doi = {10.1007/BF01908075},         pages = {193-218},         number = {1},         journaltitle = {Journal of Classification},         shortjournal = {J Classif},         author = {Hubert, Lawrence and Arabie, Phipps},         urldate = {2013-12-18},         date = {1985-12-01},         langid = {english},         keywords = {{ARI}, Comparing partitions, Consensus indices, Measures of agreement, Measures of association, statistics, Statistics, general}     }        \end{filecontents}     \addbibresource{jobname.bib}     \usepackage{xcolor}     \usepackage{hyperref}      \hypersetup{ %          colorlinks, linkcolor={magenta},         citecolor={black}, urlcolor={blue}     }          \begin{document}     This is the main text citing~\parencite{hubert_comparing_1985} and~\parencite{rand_objective_1971}     \printbibliography[title={References}]      \end{document}      **MWE Output**   ![enter image description here](http://i.stack.imgur.com/r32mq.png)