title: How to achieve nomenclature entries like: symbol, Description, Dimension and unit, etc?

text: The title is pretty much I want to ask. More detail, the nomenclature entries should be sorted in groups like:                Nomenclature             Acronyms         Symbol  Description     % no Dimensions and Units          ...             Greek Symbols         Symbol  Description             Dimensions     Units         ...             Roman Symbols         Symbol  Description             Dimensions     Units         S       Surface area vector     L^2            m^2         ...        Superscripts         Symbol  Description     % no Dimensions and Units          ...        Dimensionless Numbers         Symbol  Description     Definition         ...      e.g. expected entries like this: ![enter image description here](http://i.stack.imgur.com/EIHrR.png) ![enter image description here](http://i.stack.imgur.com/I8Mdi.png) ![enter image description here](http://i.stack.imgur.com/y4Is4.png) ![enter image description here](http://i.stack.imgur.com/0z9t3.png) My current nomenclature settings for grouping [book class]:               %----------------------------------------------------------     %                        Nomenclature     %----------------------------------------------------------     %\renewcommand{\nomname}{List of Symbols and Abbrev.}     \renewcommand\nomgroup[1]{%       \ifthenelse{\equal{#1}{A}}{%        \item[\textbf{Acronyms}] }{%                  A - Acronyms         \ifthenelse{\equal{#1}{R}}{%          \item[\textbf{Roman Symbols}]}{%            R - Roman           \ifthenelse{\equal{#1}{G}}{%             \item[\textbf{•} Symbols }]}{%          G - Greek               \ifthenelse{\equal{#1}{S}}{%                \item[\textbf{Superscripts  }]}{{%          S - Superscripts             \ifthenelse{\equal{#1}{U}}{%              \item[\textbf{Subscripts }]}{{%                 U - Subscripts             \ifthenelse{\equal{#1}{X}}{%              \item[\textbf{Other Symbols }]}%            X - Other Symbols                         {{}}}}}}}}}}     %\ifpdf     \renewcommand{\nomlabel}[1]{\hspace{1 em}#1}%{\hspace{1.5 em}#1}     \renewcommand*{\nompreamble}{\markboth{\nomname}{\nomname}}      But how to extend it with `Dimensions` and `Units`?


title: Latex - width of the colorbox

text: I'm doing my CV in Latex using this template: http://www.howtotex.com/images/latex-plaincv-screen.png My problem is the duration of the working experience. If I write for example March 2013 - Present, it is splitted in two rows. I would prefer to have the box with duration wider using one row but I dont know exactly how to do it. Macro creating working experience looks like that:               \newcommand{\WorkEntry}[4]{                              \noindent \textbf{#1} \hfill                    % Jobname         \colorbox{Black}{\color{White}#2} \par      % Duration         \noindent \textit{#3} \par                  % Company         \noindent\hangindent=2em\hangafter=0 \small #4  % Description         \normalsize \par}      Could somebody help me to modify it?


title: Whitespace instead of all images

text: > **Possible Duplicate:**   >  How to replace all pictures by white rectangles?   >  Placeholder for figure/includegraphics I want all images to disappear, e.g. replace all images (defined by `\includegraphics`) with the same-sized whitespace.


title: How to replace all pictures by white rectangles?

text: I have a long document (800 pages) with lots of pictures (300 pictures). I have to produce a version of this document without the pictures (for copyright reasons). The solution I have found so far is to use the `draft` mode of the `graphicx` package. This solution is not fully satisfactory because it replaces the picture by a white rectangle with the name and location of the picture inside. I would like to have only a white rectangle (of the same size as the picture, with a thin frame), but without any text inside. Does anyone have a clue?


title: bibtex does not find bibliography fields when using latexmk and outdir

text: I compile a document with this command:                   latexmk -outdir=obj these.tex      In `these.tex`, I specify `\bibliography{../Bibliography}`. But, when `latexmk` calls `bibtex`, the `.aux` file is one folder deeper and, hence, the compiler doesn't find the file. Indeed, if in my `.tex` file I use `\bibliography{../../Bibliography}` then everything works fine for `bibtex`, but `latexmk` fails to find the file. Using `-auxdir=obj` doesn't change anything. What can I do ? edit: it seems important to precise that latexmk is called via a makefile.


title: Making MiKteX pdflatex on Windows available to cygwin

text: I currently have a project with a workflow that uses `pandoc` in its Makefile to convert text from Markdown to LaTeX to PDF. This requires that a LaTeX engine be present in my path, or specified with the `\--latex-engine` option. The rest of my development is done in `cygwin64` on 64-bit Windows 7. Somehow, I'd had this mostly working previously with an installation of MiKTeX, but I was becoming annoyed with receiving two User Account Control (UAC) prompts per compilation, presumably as MiKTeX checked for missing packages. After doing a full reinstall of MiKTeX 2.9 using the "64-bit Net Installer" and including all packages, now when I run the following Makefile (pared down from the original):               PANDOC= pandoc     PDFLATEX=  /usr/bin/pdflatex     pdf:    main.tex         $(PANDOC) main.tex -o main.pdf --latex-engine="$(PDFLATEX)"      ... I receive the following error:               pandoc.exe: /usr/bin/pdflatex not found. /usr/bin/pdflatex is needed for pdf output.     Makefile:4: recipe for target 'pdf' failed     make: *** [pdf] Error 41      I've confirmed that `/usr/bin/pdflatex` **does** indeed exist, as a symlink to `pdftex.exe` in the same directory. Putting a symlink in its place to `/cygdrive/c/Program Files/MiKTeX 2.9/miktex/bin/x64/pdflatex.exe` (where the relevant MiKTeX binary is) doesn't help. **What am I missing here?** It's worth noting that running `pandoc main.tex -o main.pdf` from the Windows command line seems to work just fine, and gives no UAC prompts. Ideally, I would like a solution where I can run the same installation just as easily from either the Windows or cygwin command line, but being able to run it from cygwin is a **must** for my workflow ( _i.e.,_ answers along the lines of "Why even bother with cygwin?" are not acceptable here). It seems there really ought to be a simple way to make this installation available to cygwin.


title: Set path for PDF and PPTX files in appendix

text: I have a separate file for Appendices and include it in my main file with this command   `\input{./Appendices/AppendixA}`   Now I want to set path for my files. When I set path in my **Appendix.tex** file with this command,   `\input{./CV/cv.pdf}`   aftre compilation it gave errors shown in the figure below      `! Text line contains an invalid character. l.9 x��X[o�F^^V ~� PtA^^A�^^\��T˗Ď^^9d¸^^95²^½^^Ocr$qŋ��... A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened.`      My question is that how can I set path and in AppendixA file. I am using TeXMaker in Ubuntu.


title: moderncv: bullet points between phone/email/social

text: In the image below there's a bullet point in between the phone number and the email address. I'd like to know how to remove it. ![moderncv](http://i.stack.imgur.com/1OtZV.png) I'm using the banking template for `moderncv`.


title: Why no line drawn when use dot with psmatrix?

text: I am trying to draw a signal flow graph with \psmatrix where each node is just a dot. However \ncline does not seem to work when mnode is set to dot               $     \psmatrix[colsep=1cm,rowsep=1cm,mnode=dot]     1&2&3&4&5 \\     &2&3&4 \\     &2&3&4     \psset{arrows=->,nodesep=1pt}     \everypsbox{\scriptstyle}     \ncline{1,1}{1,2}     \ncline{1,2}{1,3}^{-z^{-1}}     \endpsmatrix     $      But if I change mnode to circle, the lines appear again! Please help! Thanks a lot :-)


title: Too many authors in author field

text: My problem: I have a very long list of authors for a few papers - apparently bibtex can´t handle that. Here's a minimal example:               \documentclass{article}     \usepackage[utf8]{inputenc}     \begin{filecontents}{\jobname.bib}     @article{Dehant2012,         Author = {Veronique Dehant and Bruce Banerdt and Philippe Lognonn{\'e} and     Matthias Grott and Sami Asmar and Jens Biele and Doris Breuer and Fran{\c c}ois     Forget and Ralf Jaumann and Catherine Johnson and Martin Knapmeyer and Benoit     Langlais and Le Feuvre, Mathieu and David Mimoun and Antoine Mocquet and Peter Read     and Attilio Rivoldini and Oliver Romberg and Gerald Schubert and Sue Smrekar and     Tilman Spohn and Paolo Tortora and Stephan Ulamec and Susanne Vennerstr{\o}m},         Journal = {Planetary and Space Science},         Number = {1},         Pages = {123 - 145},         Title = {Future {Mars} geophysical observatories for understanding its internal                  structure, rotation, and evolution},         Volume = {68},         Year = {2012}}     \end{filecontents}     \usepackage{natbib}     \bibliographystyle{newapa}     \begin{document}     \cite{Dehant2012}     \bibliography{\jobname}     \end{document}      How can I still print the whole list in the bibliography in the end? At the moment I just get an error and a "?" every time I cite this paper within my text and nothing in the bibliography ...


title: spacing in the table's minipage

text: In my thesis I have a lot of tables and some of them have a minipage for notes. For all thesis I'm using 1.5 in spacing. For this I'm using `\linespread{1.5}`. But I don't want the same spacing for minipage into the tables. That is, for the minipage inside the table should have 1.0 in spacing. How can I do that? Thank you.


title: Stretching an \fbox horizontally to fit the page

text: I have a frame box next to some text (`Komentar:`), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting `\widthof{Komentar: }` from `\hsize` (or `\textwidth` or `\linewidth`).               Komentar: \fbox{         \newlength\mylength         \setlength\mylength{\hsize - \widthof{Komentar: }}         \begin{minipage}[t]{\mylength}             \hfill             \vspace{8cm}         \end{minipage}     }      However, this stretches the box beyond what seems to be the right margin: I have two pieces of text with `\hfill` in between, and the box seems to go beyond that. In fact, it looks like the values returned by `\hsize`, `\textwidth` and `\linewidth` are wider than what `\hfill` makes it out to be. Here's a picture of what I mean: ![enter image description here](http://i.stack.imgur.com/t5Oj8.png) So, either I'm not getting the page width correctly, or I'm doing the `\hfill` thing wrong. Either way, help is appreciated. P.S. I also get a warning that the `\hbox` in paragraph at lines 84–92 is 17.89452pt too wide. * * * **EDIT:** Here's an MWE. You get the custom document class I'm using here.               \documentclass[a4paper, 12pt, master]{etf}     \usepackage{calc}     \begin{document}          {\setlength\parindent{0pt}     Komentar: \fbox{         \newlength\mylength         \setlength\mylength{\hsize - \widthof{Komentar: }}         \begin{minipage}[t]{\mylength}             \hfill             \vspace{8cm}         \end{minipage}     }          Datum odbrane: \underline{\hspace{7em}} \hfill     Ocena: \underline{\hspace{6em}} (\underline{\hspace{2em}})     }          \end{document}


title: creating particular graph using tikz

text: I used in the past tikz package to create graph as markov's chain or network nodes but now I would create for my thesis this graph: ![enter image description here](http://i.stack.imgur.com/I7e4B.png) I don't know how to recreate in latex, using tikz package, that type of arc.


title: deleting the address item from a bibliography style

text: I want to delete the address from the inproceedings type of bibtex. I have learnt that I have to modify the .bst file. In order to do this, I have followed the idea of the answer from bibliography style: merging the alpha style with the style of abbrv for author information In that case, I wanted to change the format of the citations. No, I have tried to change the contents of the `inproceeding` entry of the `.bst` file, but I do not understand the syntax of this file. Here, I put the code of the `inproceedings` entry in order to do more easier your future answers.               FUNCTION {inproceedings}     { output.bibitem       format.authors "author" output.check       new.block       format.title "title" output.check       new.block       crossref missing$         { format.in.ed.booktitle "booktitle" output.check           format.bvolume output           format.number.series output           format.pages output           address empty$         { organization publisher new.sentence.checkb           organization output           publisher output           format.date "year" output.check         }         { address output.nonnull           format.date "year" output.check           new.sentence           organization output           publisher output         }           if$         }         { format.incoll.inproc.crossref output.nonnull           format.pages output         }       if$       new.block       note output       fin.entry     }


title: Filling “symbolic y coords” automatically with the content of a table row

text: Is it possible to fill “symbolic y coords” automatically with the content of a table row? I have many data to plot and it would be very cumbersome and laborious to do it manually. Best regards Christoph


title: Change existing symbol size

text: I would like to make the `\circ` symbol smaller and centered when using it between two letters. For example, I want to say               \begin{align}     \forall\  a,b,c \in S,\ a\circ( b\circ c)= (a\circ b)\circ c     \end{align}      The default symbol is just too big for my tastes. Please bear in mind that I am a newbie. Edit: My preamble.               \documentclass[letterpaper,12pt]{memoir}     \usepackage{amsmath,amsthm,amssymb}     \usepackage{braket}     \usepackage{graphicx}     \usepackage{fancyvrb}     setlrmarginsandblock{1.25in}{1.0in}{1}     \setulmarginsandblock{1in}{1in}{1}     \checkandfixthelayout          \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newtheorem{proposition}  {Proposition} \newtheorem{lemma}{Lemma} \newtheorem*{corollary}{Corollary}     \theoremstyle{definition} \newtheorem{definition}{Definition} \newtheorem{conjecture}   {Conjecture} \newtheorem*{example}{Example} \newtheorem{algorithm}{Algorithm}     \theoremstyle{remark} \newtheorem*{remark}{Remark} \newtheorem*{note}{Note}      \newtheorem{case}{Case}     \theoremstyle{algorithm} \newtheorem*{properties}{Properties}          \mathchardef\ordinarycolon\mathcode`\:     \mathcode`\:=\string"8000     \begingroup \catcode`\:=\active     \gdef:{\mathrel{\mathop\ordinarycolon}}     \endgroup          \begin{document}     \include{front_cover}     \tableofcontents     \include{lecture_3}     \end{document}


title: How Can I Draw a Horizontal Rule on a Beamer Handout?

text: I have a beamer handout with a 16-on-1 layout via `\pgfpagesuselayout{16 on 1}`. I would like to draw a horizontal rule beneath each row of slides so that the viewer is more easily led to read left to right, not top to bottom first. Possibly this is an argument to `\pgfpagesuselayout`? I can draw a border around the entirety of a frame with:               \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}      but I really just want one long border along the bottom of the slides on rows 1, 2, and 3. Here's a minimal working example for borders everywhere:               \documentclass[xcolor=dvipsnames, handout]{beamer}          \usepackage{pgfpages}     \beamertemplatenavigationsymbolsempty     \pgfpagesuselayout{16 on 1}[a0paper,border shrink=5mm, landscape]          \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{5}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{6}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{7}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{8}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{9}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{10}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{11}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{12}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{13}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{14}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{15}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{16}{border code=\pgfusepath{stroke}}               \begin{document}          \begin{frame}[plain]       \titlepage     \end{frame}               \end{document}


title: Other easily available fonts in LaTeX

text: > **Possible Duplicate:**   >  What fonts are available for LaTeX? I frequently use `\usepackage{mathpazo}` and `\usepackage{fouriernc}`, and I am wondering of other such packages that make it easy to use a different font in my documents. I am aware of the power of XeTeX, but would like to exhaust all "simpler" options first. I know the question of fonts has appeared many times, so I apologize in advance for any potential duplicates. Thanks.


title: flushing lines in gather environment

text: > **Possible Duplicate:**   >  How can I add left aligned text to an equation? I need to write a system with sub-items looking like this:               \begin{subequations}     \begin{gather}     \text{     {\textit{First Block Name}}     }\notag     \\     \begin{cases}\label{eq:first:block}        A = B & \text{if } C\\     A = D & \text{if } E     \end{cases}     \\     \text{     {\textit{Second Block Name}}     }\notag     \\     \begin{cases}\label{eq:second:block}        F = G & \text{if } H\\     F = I & \text{if } J     \end{cases}     \\     \end{gather}     \end{subequations}      but I'd really like to have the block names flushed left (by this code they are centered), while maintaining the "real" equation blocks centered. any not too elaborate suggestions?


title: longtable(tabu) with multirow and page breaks

text: I'm trying to place a bunch of images into the multirow within **longtabu**. But it looks messy if row is splitted by page break. The same problem with long text in multirow. Neither image nor text are not moved to another page. Is there way to make it correct? Thanks! PS my environment: win, texlive 2013, xelatex.               \documentclass{article}     \usepackage{multirow, longtable, tabu, graphicx}          \begin{document}         \section{Section}     \vspace{16cm} % to force page break.          \begin{longtabu} to \linewidth {|c|X[m]|}     \cline{1-2}\endhead          \cline{1-2}\endfoot          \cline{1-2}         \multirow{9}{60pt}{         \begin{center}         \includegraphics[height=30pt]{image.eps}          \includegraphics[height=30pt]{image.eps}         %Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.         \end{center}     } &1 \\ \cline{2-2}         &2 \\ \cline{2-2}     &3 \\ \cline{2-2}     &4 \\ \cline{2-2}     &5 \\ \cline{2-2}     &6 \\ \cline{2-2}     &7 \\ \cline{2-2}     &8 \\ \cline{2-2}     &9 \\ \cline{1-2}          \end{longtabu}     \end{document}      Image for testing (image.eps) ![](http://i.stack.imgur.com/C3Mwt.png)


title: Ceiling function within verbatim in latex

text: I am preparing a latex document. Inside the body of a function I need to use the ceiling function. How will I use the ceiling function inside verbatim?               \begin{verbatim}          Method a(b)              .         .         .            return a(ceiling of sqrt(b));          \end{verbatim}      Can anyone suggest me how to write ceiling inside verbatim?


title: Not able to use 5p options in the document class of elsarticle

text: Showing the error of logo when using the option of 5p in documentclass of elsarticle


title: pgfplots: How to change color of boxplot?

text: How is it possible to change the color of a boxplot from pgfplots? Black would be wounderful! Here is an MWE:               \documentclass{scrartcl}          \usepackage{pgfplots}     \usepgfplotslibrary{statistics}          \begin{document}          \begin{tikzpicture}     \begin{axis}[y=1cm, try min ticks=2]     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     1\\ 2\\ 1\\ 5\\ 4\\ 10\\     7\\ 10\\ 9\\ 8\\ 9\\ 9\\     21\\     };     \end{axis}     \end{tikzpicture}          \end{document}


title: Table of contents section goes out of the paper

text: My thesis compiles okay but the TOC/List of Figure/List of Table section texts are going out of the margin. The margin is working for the texts in rest all the chapters. I have used `\usepackage[textwidth=13cm,textheight=20cm]{geometry}`.               \documentclass[12pt]{report}     \usepackage{dcolumn}% Align table columns on decimal point     \usepackage{bm}% bold math     \usepackage{MnSymbol}     \usepackage{html}      \usepackage{url}     \usepackage[none,dcucite,abbr]{harvard}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{uathesis}     \usepackage{lscape}     \usepackage{longtable}     \usepackage{cite}     \usepackage{epsfig}     \usepackage{upgreek}     \usepackage[textwidth=13cm,textheight=20cm]{geometry}          \newtheorem{theorem}{Theorem}     \newtheorem{acknowledgement}[theorem]{Acknowledgement}     \newtheorem{algorithm}[theorem]{Algorithm}     \newtheorem{axiom}[theorem]{Axiom}     \newtheorem{case}[theorem]{Case}     \newtheorem{claim}[theorem]{Claim}      \newtheorem{conclusion}[theorem]{Conclusion}     \newtheorem{condition}[theorem]{Condition}     \newtheorem{conjecture}[theorem]{Conjecture}     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{criterion}[theorem]{Criterion}     \newtheorem{definition}[theorem]{Definition}     \newtheorem{example}[theorem]{Example}     \newtheorem{exercise}[theorem]{Exercise}          \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{notation}[theorem]{Notation}     \newtheorem{problem}[theorem]{Problem}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{remark}[theorem]{Remark}     \newtheorem{solution}[theorem]{Solution}     \newtheorem{summary}[theorem]{Summary}          \newenvironment{proof}[1][Proof]{\textbf{#1.} }{\ \rule{0.5em}{0.5em}}     %\input{tcilatex}     \begin{document}     \tableofcontents     \listoffigures     \listoftables     \bodyoftext     \doublespacing     \chapter{Introduction}     \chapter{other chapters}     \chapter{Summary and Conclusions}     \clearpage\addcontentsline{toc}{chapter}{Bibliography}     \bibliographystyle{unsrt}     \bibliography{aaa}     \bigskip     \end{document}


title: Different citation styles for different entry types in the footnotes (biblatex-dw)

text: # Problem I am using biblatex together with the `authortitle-dw` style. As it is desired in most cases, citations show up in the footnotes in the form "`name`, `shorttitle`, `pages` (if indicated)". However, as a historian, I work with a great amount of unpublished documents I've collected in various archives. To deal with these, I have modified the entrytype `@unpublished` in a rather dilettantish way (I guess). The problem is that in the footnotes, as it is expectable, only the title of my unpublished documents appears, while in this special case a full citation in the form "`title`, in: `archive`, `shelf`, Bd. `box`" would be desirable. The `\fullcite` command doesn't work for me here, because it doesn't allow the content of certain fields to be replaced by "ibid.", which is absolutely necessary. # Example Here's my MWE:               \documentclass{article}     \usepackage[ngerman]{babel}     \usepackage[         style=authortitle-dw     ]{biblatex}          \DefineBibliographyStrings{ngerman}{       chapter = {Bd.}     }          \DeclareBibliographyDriver{unpublished}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{title}%       \newunit       \usebibmacro{in:}%       \printlist{institution}%       \newunit\newblock       \printlist{location}%       \newunit\newblock       \printfield{chapter}%       \newunit\newblock       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \usebibmacro{finentry}}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}          @unpublished {test1,         title = {Source1},         institution = {Archive1},         location = {Shelf1},         chapter = {Box1}     }          @unpublished {test2,         title = {Source2},         institution = {Archive1},         location = {Shelf1},         chapter = {Box2}     }          @unpublished {test3,         title = {Source3},         institution = {Archive1},         location = {Shelf1},         chapter = {Box2}     }          \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          \footcite{test1}     \footcite{test2}     \footcite{test3}          \end{document}      This example produces the following output:               1 Source1     2 Source2     3 Source3      However, the way I'd like to have it is the following:               1 Source1, in: Archive1, Shelf1, Bd. Box1     2 Source2, in: ibid., Bd. Box2     3 Source3, in: ibid.      Is it possible to achieve this in any way?


title: drawing lines using polar axis coordinate system in pgfplots

text: I would like to draw arrows with polar axis notation in a pgfplots figure that has Cartesian axes with the draw command:               \draw[->] (polar axis cs:radius=1, angle=30) -- (polar axis cs:radius=2, angle=30);      I could not find any way to do something like this in the documentation. Are polar coordinates supported in the `axis` environment?


title: Align long equations

text: I want to type the following equations by aligning them through the equal sign, but it seems to be too long:               \begin{align*}\prod_{z^n=-1}(w_1(z)^n+1)     &=& \prod_{l=0}^{l_0}(w_1(e^{\frac{(2l+1)\pi i}{n}})^n+1)\prod_{l=l_0+1}^{l_1}(w_1(e^{\frac{(2l+1)\pi i}{n}})^n+1)\times\prod_{l=l_1+1}^{n-1}(w_1(e^{\frac{(2l+1)\pi i}{n}})^n+1)\\     &=& \prod_{l=0}^{l_0}(w_1(e^{\frac{(2l+1)\pi i}{n}})^n+1)\prod_{l=l_0+1}^{l_1}(w_1(e^{\frac{(2l+1)\pi i}{n}})^{-n}+1)\times\prod_{l=l_1+1}^{n-1}(w_1(e^{\frac{(2l+1)\pi i}{n}})^n+1)\prod_{l=l_0+1}^{l_1}(w_1(e^{\frac{(2l+1)\pi i}{n}})^n)     \end{align*}      Someone can help me? Thanks a lot!


title: How to draw an arc greater than 180 deg in tikz-3dplot?

text: `\tdplotdrawarc` command draws an inferior arc by default, but how to draw an superior arc? I know that there is a way to draw an superior arc in `tikz`:               \tikz \draw (0,0) arc [start angle=0, end angle=315, x radius=1.75cm, y radius=1cm];      But l parameters of a command? The manual seems isn't detailed enough.how to do it in `tikz-3dplot`? By the way, where can I find description of all parameters of a command? The manual seems isn't detailed enough. * * * Solution found. Just let `Abs(end angle - start angle) > 180deg`. Like this:               \tdplotdrawarc[thick,-{Latex}] {(4.5,0,-0.5)} {0.5} {320} {-20} {anchor=north} {$T_1$}


title: Is there a way to make symbols in a table?

text: I am trying to make a table and I keep getting errors once I add symbols like `\Theta`.               \documentclass[12pt]{article}     \usepackage{amsmath}     \begin{document}     \section{Problem 1}          %\begin{tabular}{l c r}     %f(n)    &     Bound       & g(n) \\     %n-100 & \Theta & n-200\\     %\end{tabular}          \begin{tabular}{ | l | c | r | }          n - 100 & \theta & n - 200\\          \end{tabular}          \end{document}


title: Unable to have a gif-picture with transparent background in the title of Beamer Poster

text: I am trying to follow this discussion, but I get the following error when I am trying to have a picture in the title. **My TeX**               \documentclass{beamer}     \usepackage[english]{babel}     \usepackage[orientation=portrait, size=a0]{beamerposter}      \mode<presentation>{%         \usetheme{Frankfurt}%     }     \usepackage{graphicx}     \title     {     \includegraphics[height=4cm]{logo.gif}     }           \setbeamersize{text margin left=0cm,text margin right=0cm} %removes left and right margins           \begin{document}          \begin{frame}[t]{}     \begin{beamercolorbox}{}     \maketitle     \end{beamercolorbox}     \vskip 50mm       \begin{block}{Title}         Hello world       \end{block}     \end{frame}          \end{document}      I get the errors like this               Package hyperref Warning: Token not allowed in a PDF string (Unicode):     (hyperref)                removing `\@ifnextchar' on input line 22.      similar error message as here. I get an empty sheet after running the code. **How can you have a picture in the title of Beamer class for a poster?**


title: easylist global properties

text: I generally use easylist in the following manner               \documentclass[english]{article}     \usepackage[at]{easylist}     \begin{document}              \begin{easylist}         \ListProperties(Progressive*=3ex, Start1=1)            @ item1            @ item2             @ item3          \end{easylist}          \end{document}      every time, I have to set the list property by using `\ListProperties(Progressive*=3ex, Start1=1)`, is there a way to set a global property for all the easylist entries, instead of repeating the properties every time I declare an easylist entry?


title: numbering of theorems in chapters

text: I want to write some papers in Math but I have some problems. when I wrote the first chapter it appears **Theorem 1** , **Lemma 1** , when I wrote the second chapter it appeared **Theorem 3** , **Lemma 2**. How can I do to appear in the second chapter **Theorem 1** and **Lemma 2**? thanks!


title: newlfm with multiple "from" names

text: I am writing a letter using `newlfm` with several "senders", as though the communication comes from several people writing as one. When I write the following, only Kit II gets listed:               \namefrom{Kit}     \namefrom{Kit II}      How do I list both of them?


title: I am using the package ps-plot and a file that used to compile no longer compiles

text: I am using the package `ps-plot` and a file that used to compile no longer compiles. The error I get says `No room for a new \dimen \ch@ck …\else \ermessage {No room for a new #3}\fi` Please help! I need to give a talk and I can't get the file to compile.


title: How to prevent pgfplots from using the 10^n notation for axis ticks

text: When creating a plot like this one               \documentclass{article}          \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}              \begin{axis}                      \addplot coordinates {                     (0.01,0.01)                     (0.09,0.09)                     };             \end{axis}     \end{tikzpicture}     \end{document}      pgfplot uses the following `xticklabels`: ![produced output](http://i.stack.imgur.com/TGZja.png) Is there any way to make pgfplots create labels as `0.01,0.02,...` without specifying them all manually using `xticklabels` and `yticklabels`?


title: Labelling the x-axis

text: \begin{tikzpicture}         \begin{axis}[             symbolic x coords={-2,-1,0,1,2,3,4,5,6},             xtick=data           ]                  \addplot[ybar,fill=blue] coordinates {                 (-2,0)                 (-1,730974)                 (0,20059)                 (1,5492)                 (2,729)                 (3,151)                 (4,30)                 (5,5)                 (6,1)             };         \end{axis}     \end{tikzpicture}     \end{figure}      When the graph is plotted, I get an axis from 0*10^5 to 8*10^5. How may I change the axis so that I get numbers 0 to 800000 instead?


title: Defining a new environment extending a verbatim environment

text: Why is it not possible to define a new environment that extends a `verbatim` environment? Consider, e.g.:               \documentclass{article}     \newenvironment{myverbatim}{\tiny\begin{verbatim}}{\end{verbatim}}     \begin{document}     \begin{myverbatim}       test     \end{myverbatim}     \end{document}      Compiling with `pdflatex` gives the error:               Runaway argument?     ^^M  test^^M\end{myverbatim}^^M\end{document}^^M^^M     ! File ended while scanning use of \@xverbatim.     <inserted text>                      \par      (A motivation for this question can be found here: "Format a verbatim paragraph". From which it should be clear that I cannot use the `listings` or `fancyvrb` packages) It would be nice with a basic and perhaps more detailed explanation (for this particular case and the reason for the error message) than what is given in, for instance, this discussion: "Why doesn’t verbatim work within...", and if there could be workarounds for simple cases like the one in this example.. **Edit1:** Based on the answers so far, I feel that I need to be more precise about my case: I am trying to get the following code to work somehow (Confer with "Format a verbatim paragraph" for more details)               \documentclass{article}     \makeatletter     \begingroup       \catcode`|=0       \catcode`[=1       \catcode`]=2       \catcode`\{=12       \catcode`\}=12       \catcode`\\=12       |gdef|myvr@xverbatim#1\end{myverbA}[#1|end[myverbA]]     |endgroup     \newenvironment{myverbA}{%       \let\@xverbatim=\myvr@xverbatim       \verbatim     }{%     }     \makeatother     \newenvironment{myverbB}{\tiny\begin{myverbA}}{\end{myverbA}}     \begin{document}     \begin{myverbB}       test     \end{myverbB}     \end{document}      **Edit2:** Based on `egreg`'s answer, I tried the following:               \documentclass{article}     \usepackage{etoolbox}     \makeatletter     \begingroup       \catcode`|=0       \catcode`[=1       \catcode`]=2       \catcode`\{=12       \catcode`\}=12       \catcode`\\=12       |gdef|myvr@xverbatim#1\end{myverbA}[#1|end[myverbA]]     |endgroup     \newenvironment{myverbA}{%       \let\@xverbatim=\myvr@xverbatim       \verbatim     }{%     }     \newenvironment{myverbB}       {\preto\verbatim@font{\tiny}        \myverbA}       {\endmyverbA}     \makeatother     \begin{document}     \begin{myverbB}       test     \end{myverbB}     \end{document}      which produces the error:               Runaway argument?     ^^M  test^^M\end{myverbB}^^M\end{document}^^M^^M     ! File ended while scanning use of \@xverbatim.     <inserted text>                      \par


title: tikz -- scaling of arrows

text: I declare a new arrow in `TikZ` via:               \pgfarrowsdeclarecombine{combined}{combined}{latex}{latex}{|}{|}      In the first example you see that the left left arrow doesn't end at the coordinate (0,0). How can I avoid this? Next to the first picture you see an example of `PSTricks` which represented the correct output. In the second example the arrow produced by `tikz` looks weird. %need latex->ps-pdf or xelatex               \documentclass{article}     \parindent0pt     \usepackage{tikz}     \usepackage{pstricks}     \usetikzlibrary{decorations.markings,arrows,calc}     \begin{document}     \par     First example     \par     \begin{tikzpicture}     \pgfarrowsdeclarecombine{combined}{combined}{latex}{latex}{|}{|}%     \draw[decoration={markings,%                        mark=at position 0 with {\arrowreversed[scale=1]{combined}},                        mark=at position 1 with {\arrow[scale=1]{combined}},                        },         postaction={decorate},line width=3pt,blue] (0,0)  -- (3,0);          \draw[yellow,line width=2pt] (0,0)  -- (3,0);     \end{tikzpicture}     \begin{pspicture}(0,0)(3,1)      \psline[arrowscale=1.25,linecolor=blue,linewidth=3pt,arrowinset=0]{|<->|}(0,0)(3,0)      \psline[linecolor=yellow,linewidth=2pt](0,0)(3,0)     \end{pspicture}     \par\kern1cm     Second example     \par     \begin{tikzpicture}     \pgfarrowsdeclarecombine{combined}{combined}{latex}{latex}{|}{|}%     \draw[red,line width=3pt,combined-combined] (0,0)  -- (3,0);     \draw[yellow,line width=2pt] (0,0)  -- (3,0);     \end{tikzpicture}     \begin{pspicture}(0,0)(3,1)      \psline[linecolor=red,linewidth=3pt,arrowinset=0]{|<->|}(0,0)(3,0)      \psline[linecolor=yellow,linewidth=2pt](0,0)(3,0)     \end{pspicture}     \end{document}      ![](http://i.stack.imgur.com/qSQcP.png)


title: Command names with utf-8/special characters

text: Is it possible to define               \newcommand{\√}[1]{\sqrt{#1}}      as commands like this one would sometimes be easier to use.


title: Matrix horizontal alignment

text: I am trying to use the Gauss TeX package to display matrices. I have two problems with the following code (not so important):                   \usepackage{amsmath}     \usepackage{gauss}          \begin{document}     \begin{equation}\begin{gmatrix}[b]      1 & 0 & 0 & 0 & \frac{4}{5} & \text{\small{-}}\frac{3}{5} & \frac{2}{5} & \text{\small{-}}\frac{1}{5} \\      0 & 1 & 0 & 0 & \text{\small{-}}\frac{3}{5} & \frac{6}{5} & \text{\small{-}}\frac{4}{5} & \frac{2}{5} \\      0 & 0 & 1 & \frac{3}{4} & \frac{1}{4} & \text{\small{-}}\frac{1}{2} & \frac{3}{4} & 0 \\      0 & 0 & 0 & 1 & \text{\small{-}}\frac{1}{5} & \frac{2}{5} & \text{\small{-}}\frac{3}{5} & \frac{4}{5}     \rowops     \add[\cdot ({-}\frac{3}{4})]{3}{2}     \end{gmatrix} \cong     \begin{gmatrix}[b]      1 & 0 & 0 & 0 & \frac{4}{5} & \text{\small{-}}\frac{3}{5} & \frac{2}{5} & \text{\small{-}}\frac{1}{5} \\      0 & 1 & 0 & 0 & \text{\small{-}}\frac{3}{5} & \frac{6}{5} & \text{\small{-}}\frac{4}{5} & \frac{2}{5} \\      0 & 0 & 1 & 0 & \frac{2}{5} & \text{\small{-}}\frac{4}{5} & \frac{6}{5} & \text{\small{-}}\frac{3}{5} \\      0 & 0 & 0 & 1 & \text{\small{-}}\frac{1}{5} & \frac{2}{5} & \text{\small{-}}\frac{3}{5} & \frac{4}{5}     \end{gmatrix}\end{equation}     \end{document}      It looks like this: ![alt text](http://i.stack.imgur.com/iYpUo.png) I bypassed the alignment a bit by using "\text{\small{-}}" in stead of "-", to make the fractions appear under each other, but they still don't line up quite nicely and the matrix need more vertical space but I cannot seem to figure out how to do this. Any help would be appreciated :-)


title: How to apply \raggedright to my table headings?

text: Can somebody show me how to apply `\raggedright` to my table headings in this example?               \documentclass[a4paper,12pt]{article}          \usepackage{tabularx}     \usepackage{booktabs}          \usepackage{siunitx}          \begin{document}     \begin{table}[t]     \caption{}     \label{}     \begin{tabularx}{\textwidth}{X X X X}     \toprule     Time of induction (\SI{}{\minute}) & Mean $\text{A}_{414}$ & Corrected $\text{A}_{414}$ (minus t=0 value) & Units of $\beta$-galactosidase per \SI{}{ml} of {\it E. coli} culture\\     \midrule     0   &   0.057   &   0       &   0   \\     1   &   0.060   &   0.003   &   \num{1.3e-7}\\     2   &   0.069   &   0.012   &   \num{5.0e-7}\\     3   &   0.083   &   0.026   &   \num{1.1e-6}\\     4   &   0.120   &   0.063   &   \num{2.6e-6}\\     5   &   0.123   &   0.066   &   \num{2.8e-6}\\     7   &   0.191   &   0.134   &   \num{5.6e-6}\\     10  &   0.310   &   0.253   &   \num{1.1e-5}\\     12  &   0.399   &   0.342   &   \num{1.4e-5}\\     15  &   0.491   &   0.434   &   \num{1.8e-5}\\     30  &   1.179   &   1.122   &   \num{4.7e-5}\\     45  &   1.585   &   1.528   &   \num{6.4e-5}\\     0c  &   0.056   &   0       &   \num{0}\\     15c     &   0.057   &   0.001   &   \num{0}\\     45c     &   0.055   &   0       &   \num{0}\\     \bottomrule     \end{tabularx}     \end{table}     \end{document}


title: Positioning of numbers in gb4e.sty examples

text: I'm planning to use the following numbered examples in a document (see example below). I would like the number to be at the top of the example, but for the ones with diagrams it ends up in the middle. Is there an easy way to fix this?               \documentclass[]{article}     \usepackage{tikz-qtree-compat}     \usepackage{tikz}     \usepackage{stmaryrd}     \usepackage{gb4e}          \begin{document}          \begin{exe}     \ex{Ann dances.}     \end{exe}          \begin{exe}     \ex     \begin{tikzpicture}[baseline=(current  bounding  box.center)]     \Tree [.S_0 [.NP [Bill ] ] [.VP [.V said ] [.NP \node(a){that}; ] ] ]     \begin{scope}[shift={(2in,0in)}]      \Tree [.\node(b){S_1}; [.NP Ann ] [.VP dances ] ]     \end{scope}     \draw[->](\subtreeof{a}.0) .. controls +(west:0) and +(west:1) .. (b);     \end{tikzpicture}     \end{exe}               \begin{exe}     \ex     $\left\llbracket     \begin{array}{l}     \Tree [ .S [.NP [.N Ann ] ] [.VP [.V dances ] ] ]     \end{array}     \right\rrbracket$     \end{exe}          \end{document}


title: Strip section number from equation range reference

text: I am trying to adjust equation range numbering from `(1.10)-(1.15)` to `(1.10-15)`. By calling this in the preamble:               \crefrangelabelformat{equation}{(#3#1#4-#5#2#6)}      and then this in the document:               \Crefrange{eq:1-10}{eq:1-15}      I have gotten the range in side the same brackets, i.e. `(1.10-1.15)`, but I am having trouble stripping the section number from the second label in the range. Is there some way to adjust the `{eq:1-15}` label prior to calling `\Crefrange` (i.e. changing `1.15` to `15`), and then change it back after the call? I need to change it back as in other locations I reference 1.15 individually and so need to retain the section number. Alternately can I strip the section number from the formatted text (`#2`) passed to `\crefrangelabelformat`? Any help appreciated.


title: How to add the text from Google Input Tools - Gujarati language

text: I would like to add Text from http://www.google.com/intl/en/inputtools/cloud/try/ . It is an IME Tool where you can write in Gujarati language. I would like to copy+paste "સહજ ને કિનારે" from Google cloud tool I have tried using xeLatex, but I am getting output as Is there any way to copy+paste from Google cloud tool to produce latex. Thanks. Regards, Raval


title: MiKTeX: finding updateable packages takes >45 mins

text: I am in the process of creating a portable LaTeX system. For this I downloaded MiKTeX 2.9 Portable, which I installed and am now trying to update. However, the 'Updateable packages' screen keeps hanging on 'Searching...' without any visible drive, CPU or network activity. I tried solving this by changing from a random package repository to a specific one. Upon making this change, i got a dialog 'Downloading package database', which exhibits the same problem: doing nothing and not changing. Trying to update the repository with the option 'Let me choose the repository' (choosing a different location than with the action above) results in the same problem. Is it normal for this process to take 45 - 60 minutes? Is there something I am doing wrong, or a common problem with making these updates? I tried to find related questions, but all questions I could find are about specific error messages, not about a simply stalling update. The only thing I can think of that might be wrong is some kind of firewall issue. However, I am trying to execute this update from a PC on which I have a regular version of MiKTeX 2.9 installed, which has no problem finding and installing packages on the fly. **Edit:** I just found out that I _am_ able to manually install packages through the package manager. So it isn't a server/network issue, the problem just arises when trying to update.


title: How to set colored ruled margins for some pages?

text: How this can be done for ALL pages is explained in this thread: How to set colored ruled margins for different pages? But I would like to know if it is possible to color the margins only for some pages? How would you do that? So pages 1 to x no colors, then y pages of color and then no colors again.


title: Beamer overlay for plain text

text: \documentclass{beamer}          \usetheme{Madrid}     \begin{frame}{Introduction}     \begin{itemize}     \item<1-> abc     \item<2-> def     \end{itemize}     \begin{definition}<3->     ghi     \end{definition}     <4->jkl     \end{frame}          \end{document}      I want the plain text "jkl" to appear last, after the two "items" and one "definition". But what I did here didn't work. How can I fix it?


title: Deciding the width of a centered box withTcolorbox

text: I'm writing a book and I want to use boxes, using the package `tcolorbox`. I've found on some old discussion here the commands of `\newtcolorbox{blankbox}` with the command `width=0.9\textwidth`, it produces a centered box but of 0.9 width. When I put the width to another value, it's not centered.. My question is how can I obtain, a box always centered as the page, and with the width what I want? I have another problem too. Sometimes the rules of the boxes doesn't appear... sometimes the upper sometimes the lower rule, sometimes on the right, sometimes on the left (like in the second box here, written in Arabic). What's the reason for this? I give a minimal example here, with the packages of my book:                   \documentclass[14pt,a4paper]{extbook}%{article}%              \usepackage{titlesec}         \usepackage{titletoc}         \usepackage{etoolbox}         \usepackage{multicol}              \usepackage{amsmath,amssymb}         \usepackage[most]{tcolorbox}              \usepackage{boxedminipage}         \usepackage{slashbox}              \usepackage{titlesec}                   \usepackage{enumitem}              \usepackage{minitoc}              \usepackage{rotating}              \usepackage{fmultico}         \setlength{\columnseprule}{0.1pt}              \usepackage{fancyhdr}         \pagestyle{fancy}              \usepackage{pdflscape}              \usepackage{array}                   \usepackage{polyglossia}         \setmainlanguage{english}         \setotherlanguage[numerals=maghrib]{arabic}                   \newfontfamily\arabicfont[Script=Arabic, AutoFakeSlant=-0.02]{Amiri}         \setsansfont[Script=Arabic,Scale=1.5]{Amiri}                   \tikzstyle{titlewhite} =          [draw=black, thick, scale=.7, fill=white,%          line width=0.1pt, text=black, rectangle,         font=\Large,         left, minimum height=.5cm]                   \newtcolorbox{blankbox}[2][]{%         enhanced,         %oversize,         colback=white,         boxrule=.5pt,         colframe=black,         top=6mm,         bottom=6mm,         enlarge top by=\baselineskip/2+1mm,         enlarge top at break by=0mm,pad at break=2mm,         fontupper=\normalsize,         overlay unbroken and first={%         \node[titlewhite]         at ([xshift=-1cm]frame.north east)         {\strut\RL{\textbf{#2}}};},         breakable,         width=0.9\textwidth,       %%% change the width here.         arc=0pt,outer arc=0pt,         %enlarge left by=-.06\textwidth,         extrude right by=-5pt,         extrude left by=-5pt,         #1}%              \newtcolorbox{blankbox1}[2][]{%         enhanced,         %oversize,         colback=white,         boxrule=.5pt,         colframe=black,         top=6mm,         bottom=6mm,         enlarge top by=\baselineskip/2+1mm,         enlarge top at break by=0mm,pad at break=2mm,         fontupper=\normalsize,         overlay unbroken and first={%         \node[titlewhite]         at ([xshift=-1cm]frame.north east)         {\strut\RL{\textbf{#2}}};},         breakable,         width=\textwidth,       %%% change the width here.         arc=0pt,outer arc=0pt,         %enlarge left by=-.06\textwidth,         extrude right by=-5pt,         extrude left by=-5pt,         #1}%                        \begin{document}                        \begin{blankbox}{title}         I want to obtain a box having the same width of the text, and centered as the text... More precisely, in which point do tcolorbox puts the box              exactly??... And how can I obtain, a box always centered as the page, and with the width what I want ??              I have another problem too... sometimes the rules of the boxes doesn't appear... sometimes the upper sometimes the lower rule, sometimes on the             right, sometimes on the left... (like in the second box here, written in arabic)...what's the reason for this ?         \end{blankbox}               \begin{blankbox1}{title}         I want to obtain a box having the same width of the text, and centered as the text... More precisely, in which point do tcolorbox puts the box              exactly??... And how can I obtain, a box always centered as the page, and with the width what I want ??              I have another problem too... sometimes the rules of the boxes doesn't appear... sometimes the upper sometimes the lower rule, sometimes on the             right, sometimes on the left... (like in the second box here, written in arabic)...what's the reason for this ?         \end{blankbox1}                    \end{document}


title: How to make all nodes same size in mindmap?

text: Is there a way to force all the nodes in a mindmap to have the same size regardless of their hierarchy in the tree? ![enter image description here](http://i.stack.imgur.com/H5sLu.png)               \begin{figure}\label{fig:HadoopVersion}         \centering         \begin{tikzpicture}[concept color=green!50!black,text=white,yscale=0.9,xscale=1.3]         %level 1/.append style={level distance=4.5cm,sibling angle=90}]         %level 2/.append style={level distance=3cm,sibling angle=45}]         \node [concept]{0.24} % root         child { node [concept] {0.23}            child [concept color=black!50!white,grow=left] {node [concept] {3.0.0}}            child [grow=down]{ node [concept] {0.22}               child [concept color=black!50!white,grow=left] {node [concept,scale=0.9] {0.22.1}              child {node [concept] {2.0.0}}               }               child [grow=down]{ node [concept] (021) {0.21}              child { node [concept] {0.20}                 child [concept, grow=right, level distance=2cm] {node[concept] {0.20.2}                    child [concept color=black!50!white,grow=up] {node [concept,scale=0.7] (app){0.20.2 app}}                    child [concept color=red!50!black,grow=260,level distance=2cm] {node [concept] {MapR}}                    child [concept color=black!50!white,grow=right] {node [concept,scale=0.6] (yahoo) {0.20.200 Y!}                   child [concept color=green!50!black,grow=up, level distance=2cm] {node [concept,scale=0.8] {0.20.203}                      child [concept color=red!50!black,grow=60, level distance=2cm]{node [concept,scale=0.6] {0.20.203 Azure}}                      child [grow=120]{node [concept,scale=0.8] (205) {0.20.205}                     child [grow=up]{node [concept] {1.0.0}}                      }                   }                    }                    child [concept color=red!50!black,grow=300, level distance=2cm] {node [concept, scale=0.8] (chd3) {CDH3}}                 }                 child [grow=240, level distance=3cm] { node [concept] {0.20.1}                    child [concept color=red!50!black,grow=left, level distance=2cm] {node [concept,scale=0.6] (ibm) {0.20.1 IBM}}                    child [concept color=red!50!black,grow=120] {node [concept,scale=0.6] {0.20.1 Green}                   child [concept color=black!50!white,grow=right, level distance=2cm] {node [concept] (eol) {EOL}}                    }                 }                 child [grow=down] { node [concept] {0.19}                    child { node [concept] {0.18}                   child { node [concept] {Old}}                    }                 }              }               }            }         };         \begin{pgfonlayer}{background}            \path (021) to [circle connection bar switch color=from (green!50!black) to (green!50!black)] (app);            \path (205) to [circle connection bar switch color=from (green!50!black) to (black!50!white)] (app);            \path (chd3) to [circle connection bar switch color=from (red!50!black) to (black!50!white)] (yahoo);            \path (chd3) to [circle connection bar switch color=from (red!50!black) to (black!50!white)] (app);            \path (ibm) to [circle connection bar switch color=from (red!50!black) to (black!50!white)] (eol);            \path (eol) to [circle connection bar switch color=from (black!50!white) to (black!50!white)] (app);         \end{pgfonlayer}         \end{tikzpicture}         \caption[Apache Hadoop Project versioning]{Apache Hadoop Project versioning in Spring 2013. Hadoop Apache releases are depicted in \fcolorbox{green!50!black}{green!50!black}{\textcolor{white}{green}} while teh commercial ones are \fcolorbox{red!50!black}{red!50!black}{\textcolor{white}{red}}. The \fcolorbox{white!50!black}{white!50!black}{\textcolor{white}{gray}} nodes stand for non official releases}         \end{figure}


title: page background color for Part

text: I want to set the background color specifically for the page created for each "Part" section in my document (e.g. Part I xxx, Part II xxxx). I am using the book document class. Solutions for setting (and resetting) the background colour were not able to specifically color the page with Part I xxxx on it, but also coloured the page after that. MWE:               \documentclass{book}     \usepackage{xcolor}     \begin{document}          First page          \cleardoublepage     \pagecolor{green}     \part{Example for pagecolor}     \pagecolor{white}          Last page     \end{document}      The "Part" page and the page following it are _both_ colored green.


title: Repository of LaTeX Feynman diagram templates with pictures

text: I have over the last few years drawn a lot of Feynman diagrams in `LaTeX` with `Feynmf` and `mpost`. The results are nice, but time-consuming! For non- physicists, a Feynman diagram is an image made of lines which often need math labels, e.g. this Feynman diagram from wiki, which, although not made with `Feynmf`, gives you an idea... ![enter image description here](http://i.stack.imgur.com/3yNBL.png) I would like to start a repository of code for Fenyman diagrams for people to copy from, to save them time. Ideally, it could show `LaTeX` source and `pdf` or `png` output side-by-side, so that people could spot a diagram they wanted/wanted to modify, and copy and paste the `LaTeX`. What is the best platform? `git-hub` etc? I guess this is a common request for `LaTeX` codes, to have code and output side-by-side?


title: Display collaboration with biblatex

text: I would like to display the "collaboration" field of `biblatex` when present, for example:               @article{Aad2011150,     title = "TITLE",     author= {Aad, Georges and others},     collaboration = {ATLAS}     ...     }      is shown as "G. Aad and others, TITLE, ...". I would like to have "G. Add and others (ATLAS collaboration), TITLE ..." For other cases when the author is not present I would like to have: "ATLAS collaboration, TITLE ..." is it possible? I'm using               \usepackage[backend=bibtex, style=numeric-comp,backref, sorting=none, firstinits=true]{biblatex}      _I cannot use biber._


title: testing whether a variable or control seq. is a box in LaTeX3

text: Is there a way, in LaTeX3, to find out whether a given control sequence or variable is a box register (created with `\box_new:(cN)`)?


title: hyperref autoref capitalization problems with babel

text: I have already read some similar qustions, but the solution over there does not work if I add the 'babel' package. The thing is change the autorefname of one specific, say Figure, and I just want to change the way that it is written, say capital case. Everything is fine but if I uncomment the package babel, so the command is ignored.               \documentclass[11pt]{book}          %\usepackage[english]{babel}     \usepackage{hyperref}     \def\figureautorefname{FIGURE}          \begin{document}     \begin{figure}     \centering     \rule{1cm}{1cm}     \caption{foo}\label{fig:foo}     \end{figure}     As shown in \autoref{fig:foo}~\dots     \end{document}      probably is a easy questions, but I don't find it.


title: Using a footnote in the full name of an acronym

text: I would like to use a footnote in the full name of an acronym. Here is the minimal (not) working example:               \documentclass{report}      \usepackage{acronym}      \usepackage{footnote}     \begin{document}          \begin{acronym}[ABC]              \acro{ABC}{Alphabet\footnote{this does not work}}         \end{acronym}          The \ac{ABC}\footnote{this works}.     \end{document}       I'm already using the acronym package to link acronyms with publications:               \acro{ABC}{Alphabet\cite{publication2013abc}}      But sometimes there is either no publication or a web site is more appropriate:               \acro{ABC}{Alphabet\footnote{\url{http://website-for-abc.example.org}}}      Any hints? * * * **Edit:** Based on the feedback blow, this is another working minimal example:               \documentclass{report}     \usepackage{acronym}     \usepackage{hyperref}          \newcounter{mycount}     \newcounter{savefoot}          \makeatletter     \newcommand\acrofoot[3]{%       \acro{#1}{#2\protect\footnote{#3}\setcounter{mycount}{\value{footnote}}}%     }     \let\acorig\ac     \renewcommand\ac[1]{%       \begingroup%       \setcounter{savefoot}{\value{footnote}}%       \setcounter{footnote}{\value{mycount}}%       \addtocounter{footnote}{-1}%       \renewcommand\@makefntext[1]{}%       \acorig{#1}%       \setcounter{footnote}{\value{savefoot}}%       \endgroup%     }     \makeatother               \begin{document}         \begin{acronym}[ABC]             \acrofoot{ABC}{Alphabet}{\url{http://abc.example.org}}             \acro{XYZ}{The End}             \acrofoot{Foo}{Bar}{\url{http://foo.example.org}}         \end{acronym}         The \ac{ABC}\footnote{this works}. Also see \ac{XYZ} and \ac{Foo}.     \end{document}       **Issue:** As you can see in the following picture, the footnote numbering is wrong. ![Foo](http://f.cl.ly/items/2g1O0s0L1g0Y293z1T0o/Screen%20Shot%202013-09-12%20at%2010.28.36.png) Best regards, Alex


title: Using tikz (calendar), how can I control node positions?

text: Here is my code adapted from the TikZ manual. I would like to do an agricultural calendar, but I am having trouble with the positions of the nodes. I appreciate any help. Thanks.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calendar,shadings}     \usetikzlibrary{calc}     \def\termin#1#2{     \node [text width= 3.4cm] at     ($(cal-#1)+(0em, 0em)$) {\textcolor{red}\tiny{#2}};      }                     \begin{document}      \sffamily           % A counter, since TikZ is not clever enough (yet) to handle      % arbitrary angle systems.      \newcount\mycount                \begin{tikzpicture}      [transform shape,      every day/.style={anchor=mid,font=\fontsize{6}{6}\selectfont}]      %\node{\normalsize 2012};      \foreach \month in      {1,2,...,12}      {      % Compute angle:      \mycount=\month      \advance\mycount by -1      \multiply\mycount by 30      \advance\mycount by -90      % The actual calendar      \calendar at (\the\mycount:6cm)      [      dates=2012-\month-01 to 2012-\month-last, name=cal,      ]      if (day of month=1) {\tikzmonthcode}      if (equals = 2012-11-20) [red]      if (equals = 2012-03-10) [red]       if (all)      {      % Again, compute angle      \mycount=1      \advance\mycount by -\pgfcalendarcurrentday      \multiply\mycount by 11      \advance\mycount by 90      \pgftransformshift{\pgfpointpolar{\mycount}{1.4cm}}      };      }           \termin{2012-11-20}{\color{red}Soybean planting}      \termin{2012-03-10}{\color{red}Soybean  harvesting}           \end{tikzpicture}      \end{document}      ![enter image description here](http://i.stack.imgur.com/EiyVh.jpg)


title: Placing node at path using `midway` in pgfplots

text: I thought my problem would have been possibly answered anywhere here, but I could not get it to work. Questions I consider linked to mine but which weren´t able to solve my issue are node placement problem and pgfplots: placing node on a specific x-position. I want to make an annotation to a graph drawn using `pgfplots` (actually, its inside a `groupplots`-environment). I tried so using the PGF-command `draw[<-> (pos a) node [midway,...] -- (pos b)`. However, the node did not get placed midways, but in the middle of nowhere. This is not true for `below` and `above`. However, the same thing happens when I used `near end` or `pos=???`. I worked around this issue just placing a node manually at the place where I want it. However, I don´t find this very satisfactory. Feel free to have a look at the MWE below. * * *               \documentclass{standalone}          \usepackage{pgfplots}     \pgfplotsset{compat=1.8}          \begin{document}     \begin{tikzpicture}     \begin{axis}[{hide y axis,     axis x line=middle,     height=3cm, width=10cm,     xmin=-22.5, xmax=83,     samples=200,     xtick={-20, 0,20, 40, 60, 80}}]          \addplot+[domain=-20:80,mark=none,green]{sin(40*.18*x)};          % % % % % The erroneous part:     % 1.:     \draw[<->,green!70!black,thick] (axis cs:40,0)      node[midway, above,font=\scriptsize] {$\varphi_1$} % This SHOULD work, but doesn´t      -- (axis cs:50,0);          % 2.:      \node[font=\scriptsize,green!70!black] at (axis cs:45,.3) {$\varphi_1$}; %This does work          \end{axis}          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/5Fhkz.jpg)


title: Remove Bullet Symbols from List

text: I have to typeset a document which contains several dozen lists which are already numbered. For various reasons, I cannot use LaTex's enumerate automatic numbering feature for these lists--the numbers have to be entered manually. Nevertheless, the list format has to be maintained. I have used the mdwlist package to cut down on the extra spacing that LaTex adds to lists. The lists then have both a bullet (added automatically) and a number (entered manually). What I would like to do is simply remove the bullet while keeping the other spacing aspects of the list. Here is a MWE:               \documentclass[11pt,A4]{article}     \usepackage[utf8]{inputenc}     \usepackage{mdwlist}     \title{Brief Article}     \author{The Author}     \begin{document}     \maketitle          \begin{itemize*}          \item 1.\ \ Regular vacations and holidays according to the Law.     \item 2.\ \ Absence for performing examinations in accordance with what is stated in this Law.     \item 3.\ \ Leave without pay, which is not more than casual 20 days during the work year.     \end{itemize*}     \end{document}      ![enter image description here](http://i.stack.imgur.com/iBYIj.png) Thank you. All of these answers were very helpful. I agree that it's kind of an odd requirement--the problem is that I am typesetting legislative statutes and sometimes they are incomplete, contain errors in numbering and these errors have to be preserved. Also, for maintenance purposes it's useful to turn off automatic numbering. There is a German package--jura--designed for German legal typesetting and I have a feeling it has a way around these issues, but unfortunately the lengthy documentation is in German only.


title: Creating Mathematics PDF

text: I am soooooooooo confused... you people can laugh at me while I waddle in my technological ineptitude. OK. As per the half dozen (mutually contradicting) suggestions in which (or under which) I was kindly inundated after asking this question, I have downloaded WinEdt and TeXworks onto my Windows computer. I already have Adobe Acrobat installed for viewing PDF documents. I copy and pasted something like this (from writelatex.com)               \documentclass[a4paper]{article}          \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage[colorinlistoftodos]{todonotes}          \title{Your Paper}          \author{You}          \date{\today}          \begin{document}     \maketitle          \begin{abstract}     Your abstract.     \end{abstract}          \section{Introduction}          Your introduction goes here! Some examples of commonly used commands and features are listed below, to help you get started. If you have a question, please use the help menu (``?'') on the top bar to search for help or ask us a question.          \section{Some \LaTeX{} Examples}     \label{sec:examples}          \subsection{How to Leave Comments}          Comments can be added to the margins of the document using the \todo{Here's a comment in the margin!} todo command, as shown in the example on the right. You can also add inline comments:          \todo[inline, color=green!40]{This is an inline comment.}          \subsection{How to Include Figures}          First you have to upload the image file (JPEG, PNG or PDF) from your computer to writeLaTeX using the upload link the project menu. Then use the includegraphics command to include it in your document. Use the figure environment and the caption command to add a number and a caption to your figure. See the code for Figure in this section for an example.          \subsection{How to Make Tables}     Use the table and tabular commands for basic tables --- see Table~\ref{tab:widgets}, for example.          \begin{table}     \centering     \begin{tabular}{l|r}     Item & Quantity \\\hline     Widgets & 42 \\     Gadgets & 13     \end{tabular}     \caption{\label{tab:widgets}An example table.}     \end{table}          \subsection{How to Write Mathematics}          \LaTeX{} is great at typesetting mathematics. Let $X_1, X_2, \ldots, X_n$ be a sequence of independent and identically distributed random variables with $\text{E}[X_i] = \mu$ and $\text{Var}[X_i] = \sigma^2 < \infty$, and let     $$S_n = \frac{X_1 + X_2 + \cdots + X_n}{n}           = \frac{1}{n}\sum_{i}^{n} X_i$$     denote their mean. Then as $n$ approaches infinity, the random variables $\sqrt{n}(S_n - \mu)$ converge in distribution to a normal $\mathcal{N}(0, \sigma^2)$.          \subsection{How to Make Sections and Subsections}          Use section and subsection commands to organize your document. \LaTeX{} handles all the formatting and numbering automatically. Use ref and label commands for cross-references.          \subsection{How to Make Lists}          You can make lists with automatic numbering \dots          \begin{enumerate}     \item Like this,     \item and like this.     \end{enumerate}     \dots or bullet points \dots     \begin{itemize}     \item Like this,     \item and like this.     \end{itemize}     \dots or with words and descriptions \dots     \begin{description}     \item[Word] Definition     \item[Concept] Explanation     \item[Idea] Text     \end{description}          We hope you find write\LaTeX\ useful, and please let us know if you have any feedback using the help menu above.          \end{document}      into my WinEdt program, and it basically just sat there. So then I copy and pasted it into my TeXworks program, started clicking random buttons, and upon pressing the Green thing in the top-left corner it, to my great surprise, opened up a PDF: ![enter image description here](http://i.stack.imgur.com/Ocr0F.png) But then I couldn't save it, so I need to know:   1. Am I correct in presuming that the WinEdt does basically nothing except let me type in it?   2. Does my "setup" look ok? I am considering using this alleged "AMS article style", but the fact that it's on a random empty webpage and that "article" is spelled "artcle" makes me suspicious that some goon just made it up... is this _actually_ the AMS template?   3. How do I convert to and save as PDF in TeXworks? **EDIT:** In the WinEdt, should I click on "TeXify", "LaTeX", "TeX", "AMSTeX", or what? And I have MiKTeX, but it's called TeXworks I guess...


title: how can i convert postscript files (ps) to pdf with hyperref

text: _**_URGENT _*_** ps (postscript) file to pdf document with hyperref and without hyperref can any one help me to find good tool to convert ps to pdf with hyperref. i wants my files (ps) to be converted as pdf file with hyperref Im using winedt 8.0 now , adobe distiller is not available in market now, so im in need of another distiller to do this.


title: change font size in rectangle node but keep node size

text: I am trying to change the font size in a rectangle node but still have the rectangle a predefined size (the one of t=other rectangles). And also, I would like to left align in some nodes, and have a line break... I have been through many Q&A but can't make it work. ![enter image description here](http://i.stack.imgur.com/6IujP.png) so here is the example code:               \documentclass[class=minimal,border=0pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{positioning}          \tikzset{     punktchain/.style={rectangle, draw=black, minimum width=12em, minimum height=3em},     punktchain2/.style={rectangle, draw=black, minimum width=12em, minimum height=3em},     punktchain3/.style={rectangle, draw=black, minimum width=12em, minimum height=3em},     }          \begin{document}     \begin{tikzpicture}       [node distance=.8cm]          \node[punktchain] (x1) {TUTU};          \node[punktchain2, below=1.5cm of x1] (x2) {TITI:\\TOTO};          \node[punktchain2, below =1.5cm of x2] (x3) {TATA};       \end{tikzpicture}     \end{document}      and I would like "TITI:" to be left aligned and with sriptnotesize and "TOTO" after a line break and of scriptnotesize too. Any help would be greatly appreciated.


title: Is there something like a scope of \NewDocumentCommand?

text: Following along the line of my (confused) post on xparse and expl3, but this time hopefully with no typos or missing characters, I've devised a small package just to check a `l3keys`-based definition and setting of options. My issue is not (so far) with the passing of options, but with an unexpected (to me) behavior of a command. I have a file `tmpkgl3.sty` with this content:               \ProvidesPackage{tmpkgl3}[2013/08/20 LaTeX2e/LaTeX3 wannabe package]          \RequirePackage{xparse,l3keys2e}           \ExplSyntaxOn          % Some of the variants are already declared in LaTeX3     \cs_generate_variant:Nn \bool_new:N {c}     \cs_generate_variant:Nn \bool_if:NTF {cTF}     \cs_generate_variant:Nn \bool_set_true:N {c}          % I have in mind egreg's remarks in my linked post regarding not using this as I do.     \tl_const:Nn \c_prefix_tl {g_amod_}      \tl_const:Nn \c_postfix_tl {_bool}           \NewDocumentCommand\MakeBool { m }      {         \bool_new:c         { \tl_use:N \c_prefix_tl #1 \tl_use:N \c_postfix_tl }      }          \NewDocumentCommand\SetTBool { m }       {        \bool_set_true:c        { \tl_use:N \c_prefix_tl #1 \tl_use:N \c_postfix_tl }      }          \NewDocumentCommand\WelcherWegBool { m m m }       {          \bool_if:cTF          { \tl_use:N \c_prefix_tl #1 \tl_use:N \c_postfix_tl }          { #2 } { #3 }      }          \MakeBool{esp}          \keys_define:nn { amod }     {         lang .choice_code:n =             { \SetTBool { \tl_use:N \l_keys_choice_tl }                 \WelcherWegBool { esp } { True } { False } \par             },         lang .generate_choices:n = { esp },     }          \DeclareDocumentCommand\DocumentSetup { +m }      { \keys_set:nn { amod } { #1 } }          %\ProcessKeysOptions { amod }          \ExplSyntaxOff       Then, I have the next content in a .tex file `l3tryout.tex`:               \documentclass{memoir}          \usepackage{tmpkgl3}          %\ExplSyntaxOn          %\ProvideDocumentCommand\WelcherWegBool { m m m }      % {      %    \bool_if:cTF      %    { \tl_use:N \c_prefix_tl  #1  \tl_use:N \c_postfix_tl }      %    { #2 } { #3 }     % }          \AtBeginDocument{%         \DocumentSetup{ lang = esp }      }          \begin{document}     \WelcherWegBool { esp } { T } { F }     \end{document}          %\ExplSyntaxOff      With the files like above I get `True F`, whereas I should get `True T` (in two different paragraphs due to the `\par` in the options definition). Nonetheless, if I uncomment the commented lines in the `l3tryout.tex` file, I get the right result. It's as though the command `\WelcherWegBool` worked fine in the package but not so in the tex file. May this have something to do with having switched off the `ExplSyntax` switch?


title: Captions and labels for my tables, listings, images

text: I'm writing my master thesis and I have a lot of short tables, listings, etc. in the text. I would use figures for them like this:               \begin{figure}[h!]         \begin{lstlisting}[mathescape]             ... my listing here ...         \end{lstlisting}         \caption{... caption ...}         \label{... label ...}     \end{figure}          \begin{figure}[h!]         \begin{tabular}{|l|l|}             ... my table here ...         \end{tabular}         \caption{... caption ...}         \label{... label ...}     \end{figure}      etc, but the fact that LaTeX moves them to another page (even though they are sometimes very short) makes the text hardly readable. I would need LaTeX to keep them at exactly the same spot (if they fit there) or at the top of the next page (otherwise). It is my understanding that I should not use figures in this case. But, on the other hand, I would like to keep the captions, labels and numberings for them to still be able to address them. How do I do that?


title: Change how hyperlinks are displayed

text: By using               \usepackage{varioref}     \usepackage{hyperref}     \usepackage{cleveref}      one automatically gets hyperlinks in a red box ![enter image description here](http://i.stack.imgur.com/PtlvP.png) or a green box ![enter image description here](http://i.stack.imgur.com/1i4z8.png). Is it possible to change this? For example instead of boxing having the text directly colored in red ![enter image description here](http://i.stack.imgur.com/WUsCL.png) or green ![enter image description here](http://i.stack.imgur.com/fM4bd.png) ?


title: Conflicting commands in preamble

text: I am using the class IEEEtran for writing a journal. I have two conflicting commands in my preamble. The first command has been used by me for some time, though I have no idea why it should be there. As far as I know, it is to resolve some bug with IEEEtran. The first command is               \newcommand{\theHalgorithm}{\thechapter.\arabic{algorithm}}      The second command is               \usepackage{hyperref}      The moment I include the package (either before or after first command) _hyperref_ , it exits with an error.               Paragraph ended before \Hy@setref@link was complete      Can anyone explain to me what is happening.


title: How can I improve this MathJaX code?

text: I'm new to MathJaX. Quite new. I was simply wondering how I could improve the following code.               Let the value of $\color{black}{x}$ be $\color{black}{3}$, and the value of $\color{black}{y}$ be 5. This means the value of      $$\color{black}{     \begin{bmatrix}     \begin{pmatrix}     \frac{x}{y}     \end{pmatrix}+     \begin{pmatrix}     \frac{y}{x}     \end{pmatrix}     \end{bmatrix}}$$ is equal to $\color{black}{2.\bar{6}}$      What can I improve, what should be fixed?


title: Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up

text: This idea came into my mind while I was listening to a speaker presenting his results in a seminar, he used lots of equation references in his later slides, however I can't remember which equation he was referencing to for he gave several models during an earlier stage of the presentation. We could use `hyperref` to get hyperlinks on the `\eqref`, but clicking it would go back to the original page where the equation was labeled, and somehow interrupt the presentation. I have several workarounds in mind: (1) exploit the `\pause` option as the overlay, once hitting space, the referenced equation would show. (2) use `tikz` to insert a `minipage` into the frame that contains the referenced equation. However, both solutions require the referenced equation taking up spaces in the current slide the presenter is on, the best solution is still I said in the question title: mouse over the `\eqref` number, then a comment popping up showing the equation. My google-fu leads me to a package called `comment`, however I didn't find any nice examples of how to use that package to produce beautiful slides. Hence I wonder is it possible to produce some mouseover events like the title said, or any other workarounds are welcome too.


title: How to solve moderncv troubles?

text: I´m trying to create a PDF with moderncv...however I dont know what is the issue here...spent already hours with trouble shooting without success. could someone hlep please?               \documentclass[11pt,a4paper]{moderncv}     \moderncvtheme[green]{classic}                    \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage{latexsym}      \usepackage{amsfonts}      \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{MnSymbol}     \usepackage{listings}     \usepackage{graphicx}     \usepackage{amsthm}     \usepackage{textcomp}     \usepackage{enumitem}      \usepackage{booktabs}     \usepackage{multicol}          \usepackage[scale=0.8]{geometry}     \recomputelengths                                       \fancyfoot{} % clear all footer fields     \fancyfoot[LE,RO]{\thepage}                \fancyfoot[RE,LO]{\footnotesize }                    %----------------------------------------------------------------------------------     %            content     %----------------------------------------------------------------------------------     \begin{document}          \maketitle                    \vspace{-2mm}          \subsection{Nicht akademische Beschäftigung}               \cventry{2009--2014}{Consultant}{IP-basierte Dienstleistungen-Ranstad}{}{Schweiz}{Winterthur.}               \cventry{11/2006--06/2007}{Consultant}{Linguistische Dienstleistungen: Carl-Duisburg Stiftung}{}{}{Russland}{Moskau.}               \cventry{02/2006--05/2006}{Praktikum}{Erstellung von Good Governance Indices - Büro des Premierminister}{}{Kampala}{Uganda.}               \subsection{Akademische Beschäftigung}               \cventry{02/2006--05/2006}{Praktikum: Erstellung von Good Governance Indices}{Büro des Premierminister}{Russland}{Moskau.}               \cventry{2008--2010}{Wissenschaftliche Hilfskraft: Osteuropäische Geschichte}{}{}{Universität Konstanz.}     %Section          \section{Ausbildung}          \cventry{Seit 10/2013}{Master of Science} { Data Analysis}{}{{Universität Konstanz.}          \cventry{10/2008--03/2012}{Master of Arts}{Osteuropastudien und Politikwissenschaft}{Universität Konstanz,Universität Tartu.}{}\cventry{10/2004--09/2008}{Bachelor of Arts}{Soziologie & Politikwissenschaft}{}{Universität Konstanz, RGGU.}          \cventry{2000--2003}{Abitur}{Technisches Gymnasium}{}{Rastatt.}          \vspace{-3mm}     %Section          \section{Sprachkenntnisse}          \vspace{3mm}          \cvlanguage{Russisch}{Muttersprache}          \cvlanguage{Deutsch}{Muttersprache}          \cvlanguage{English}{Verhandlungssicher}     %Section          \section{Interessen}               \cvline{Interessen}{\small Statistik, Russische Literatur}     \vspace{-3mm}     \end{document}


title: Drawing a surface over a nonrectangular domain in asymptote

text: I use asymptote because of its amazing 3D capabilities. However, when I tried to plot a surface over a nonrectangular domain, I could not do it without getting jagged edges. As far as I know, other software such as Mathematica, Maple, or JavaView allow this kind of plots. So the question is: is it possible to draw a generic surface in asymptote over a nonrectangular domain in such a way that its edges are smooth?


title: Use algorithm2e inside tcolorbox

text: I use the `algorithm2e` package to typeset algorithms. Now I would like to put a `tcolorbox` around an algorithm. My first approach looked like this:               \begin{tcolorbox}         \begin{algorithm}             $a \leftarrow 1$             \caption{My Algorithm}         \end{algorithm}     \end{tcolorbox}      This yields the following error: `LaTeX Error: Not in outer par mode.` My understanding is that this happens because both the `tcolorbox` and the `algorithm` are floating environments that cannot be nested. There is already a similar question: How to put \algorithm and \algorithmic environments inside a box? The accepted answer there does not work for me, because it simply describes how to put an arbitrary box around the algorithm. I also tried to use `\RestyleAlgo{tcolorbox}`, but to no avail. I am looking for a method that specifically uses a `tcolorbox`. As a final remark, I do not need to typeset the algorithms particularly with `algorithm2e`, any other algorithm package will do as well.


title: Why might I not want to set naturalnames and hypertexnames both equal to false in hyperref?

text: I know from these questions that you can solve a lot of internal linking problems in your PDF by setting naturalnames and hypertexnames both equal to false (naturalnames being set to false by default). So what kinds of problems might I have if I set both of those keys to false? If it matters, I make a PDF by first making a .ps file from the .dvi file via dvips, then making a .pdf file from the .ps file via Acrobat Distiller. I generally assume that if I have no unusual messages in my .log file and don't get a warning from Distiller about names in Name Tree Dests being defined more than once, then all my internal links work.


title: String Comparison with a \protected\def

text: I am using a `\protected\def` as that solved an earlier issue of mine. I need to compare this value of the token to see if it is initialized to the same value as the `\protected\def` in different ways. The MWE below checks the cases I need. I really would prefer to _not_ make any changes to how the variables are declared, but rather define a custom version of `\MyIfStrEq` to perform the comparison as required. ## Notes:   * The MWE below yields the correct results if I simply remove `\protected`, but I need to use the `\protected` in another case as per the referenced question below.   * I normally would not use magical text such as "special" beyond the premable, but in this case the text I need to compare to is coming from the file system. ## References:   * How to expand values stored in a token defined by newtoks # Code:               \documentclass{article}     \usepackage{xstring}     \usepackage{xparse}               \NewDocumentCommand{\MyIfStrEq}{m m m m}       {%        \IfStrEq{#1}{#2}{#3}{#4}%       }     %\NewDocumentCommand{\MyIfStrEq}{m m m m}     %  {%     %   \ifx#1#2%     %       #3%     %   \else%     %       #4%     %   \fi%     %  }               %% -------------------------------------------------------------     %% Would prefer to NOT change code from here to \begin{document}       \protected\def\SpecialValue{special}       \newtoks{\MyToken}       \MyToken={\SpecialValue}     %% -------------------------------------------------------------                    \begin{document}     \MyIfStrEq{\SpecialValue}{special}{Pass 1}{Fail 1}%          \MyIfStrEq{\the\MyToken}{special}{Pass 2}{Fail 2}%          \MyIfStrEq{\the\MyToken}{\SpecialValue}{Pass 3}{Fail 3}%     \end{document}


title: Intersecting boxes in pst-solides3d

text: I need to make a picture of some 3D boxes (i.e., parallelepipeds) that intersect themselves in some complicated ways, so I tried pst-solides3d. Here's the minimal working example: A long and thin blue box should pierce a flat yellow box at its center.               \documentclass{standalone}     \usepackage{pstricks,pst-solides3d}     \begin{document}     \begin{pspicture}(-5,-5)(5,5)         \psset{viewpoint=20 25 15,Decran=50,solidmemory}         \axesIIID(0,0,0)(2,2,2)         \psSolid[name=longbox,             object=parallelepiped,             a=3,b=.2,c=.2,             fillcolor=blue](.5,.5,.5)         \psSolid[             name=flatbox,             object=parallelepiped,             a=.25,b=2,c=2,             fillcolor=yellow](.5,.5,.5)         \psSolid[object=fusion,             action=draw,             base=flatbox longbox]             (0,0,0)         \composeSolid     \end{pspicture}     \end{document}      The output is very strange: A piece of the thin box became yellow. It seems that the package is unable to determine which pieces of surfaces are in front. ![output](http://i.stack.imgur.com/d3xaS.png) With the option `action=draw**`, the result is even worse: ![enter image description here](http://i.stack.imgur.com/P4YQc.png) Am I doing something wrong?


title: Fancyhdr messes up with \backmatter

text: I just found out that if fancyhdr has to mention a chapter located in \backmatter, it does this by numbering it with the number of the last chapter. For instance, this:               \documentclass[11pt, a4paper, oneside]{book}          \usepackage{fancyhdr}     \usepackage{lipsum}          \pagestyle{fancy}          \begin{document}          \mainmatter          \chapter{asd}     \lipsum          \chapter{asd2}     \lipsum          \chapter{asd3}     \lipsum          \backmatter          \chapter{conclusions}     \lipsum          \end{document}      ends up in having a "CHAPTER 3: CONCLUSIONS" written in the top-right part of the last page. First of all, this is the fourth chapter, but since we are in \backmatter the chapter shouldn't be numbered at all anyway. So what I want to do is to correct this so that fancyhdr, just for the chapters in \backmatter, doesn't write that "CHAPTER X: ", and just writes the name of the chapter. I found this other solution, but both the option proposed ends up in having chapter written in normal font, instead of caps. I tried to set everything in caps by using \MakeUppercase and \textsc in various places of the first code proposed, but I get errors everywhere, so I'm still wondering how to do that. Thanks to anybody who'll help me ;)


title: Multi-line and centered title and content in longtables

text: I have a `longtable` setup where to save space, I have to make a column title multi-line and its contents centered while being applied with custom width. Out of the three I have only successfully applied a custom width because adding `\\\` or inserting another `table` inside the column header did not achieve multi-line and `c{Xcm}` is not permitted for centering a column's contents.               % centering column values     \begin{longtable}{c l l ... }         % tried to use but does not work         ... { c{1cm} l l ... }          % long title needs to multi-line, both do not work     \multicolumn{1}{|p{3cm}|}{\textbf{Long Title\\Long Title}}           \multicolumn{1}{|p{3cm}|}{         \begin{table}             \textbf{Long Title}\\             \textbf{Long Title}         \end{table}     }       The situation above is demonstrated in the table on the left but what I want is the one on the right - multi-lined title, centered and compact values of rows. ![go-buy-applause-yasss-greninja-goodra- xerneas](http://i.stack.imgur.com/Z1pfy.png) I have the sample document in WriteLaTeX.


title: Order referencing by appearance AND number (natbib)

text: I am currently trying to get the references to be listed **in order of appearance in my document** , rather than order in bibliography. Some info: I am using natbib:                   \usepackage[numbers,compress]{natbib}         \citep{}      (as I want to be able to have references like: [2-5], and I want the numerical representation of the bibitem). I have tried:\bibliographystyle{unsrtnat}. This works, but not when I have the **numbers** enabled for the natbib package; that is, the ordering I want works for non-numbered referencing, but **NOT** for numbered referencing. Been look everywhere, can't find the answer! Been through and removed .aux files a few times already. Example of what I have:                   Piezoelectric technology [3][2].      Where as I want is:                   Piezoelectric technology [2][3].      without having to change the bib file. I have no problem with using another type of bibliography package as long as I can order as I wish **and** concatenation of references, i.e: [3-5].               \documentclass[11pt , a4paper , twoside , openright ]{report}      \usepackage[numbers]{natbib}      \begin{document}      Hello, I want to cite this document with two citations, one which precedes the      other in .bib, but in order here \cite{katz}\cite{mcgahey}.     \bibliographystyle{unsrtnat}      \bibliography{bibl}      \end{document}


title: How to increase numbers precision in TikZ histogram

text: I entered fixed point numbers in the following code:               \begin{tikzpicture}        \centering        \begin{axis}[xbar,bar width=0.2cm,legend style={at={(0.5,-0.15)},     xmin=0,xmax=0.8,anchor=north,legend columns=-1},ylabel={Top 6 Cases},symbolic y coords={Case$_{b3}$,Case$_{b6}$,Case$_{b4}$,Case$_{c5}$,Case$_{d1}$,Case$_{c3}$},     ytick=data,     nodes near coords,     nodes near coords align=horizontal,     ]      \addplot coordinates {(0.6967,Case$_{b3}$) (0.69628,Case$_{b6}$) (0.69201,Case$_{b4}$) (0.66584,Case$_{c5}$) (0.65422,Case$_{d1}$) (0.65363,Case$_{c3}$)};     \end{axis}      \end{tikzpicture}      but the shown numbers in the pdf file are only 2 digits after the point, I want them to be shown as the ones in the code having the right precision.


title: How to produce a LaTeX document with only few selected bibliography entries

text: I would like to produce a LaTeX document with only selected references from my database. I only want one page PDF with few reference drawn from my database. Here is an example of the outcome I am hoping to achieve. Can someone help? ( _An image was originally here_ ) Here is the code that I used suggested in an answer:               \documentclass{article}          \usepackage{natbib}     \usepackage{titlesec}     \usepackage{setspace}     \doublespacing          \setlength\bibhang{2.7em}          \titleformat{\section}       {\normalfont\filcenter}{\thesection}{1em}{}          \begin{document}          \nocite{Clark1990}     \bibliographystyle{apalike}     \bibliography{/Users/carletto/Desktop/Papers/Mypapers/paperstats.bib}          \end{document}      The result I got was![the result that I got ](http://i.stack.imgur.com/kpeBG.png) and that is the error message that I got:![and that is the error message I got](http://i.stack.imgur.com/GCm37.png)


title: Definition of constant in PSTricks

text: Consider the following example, which produces the same figure as here, but the code is generalized. **Code**               % pdflatex -shell-escape test.tex          \documentclass{article}          \usepackage{auto-pst-pdf,pst-node}     \usepackage{siunitx}          \def\path[#1]{%       \pscustom[dimen=middle,#1]{         \psarc(!\laengde \radius sub \radius){\radius}{-90}{90}         \psarc(!\laengde \radius sub 3 \radius mul){\radius}{-90}{90}         \psframe(\laengde,\bredde)       }\ignorespaces     }          \begin{document}          \begin{figure}     \def\laengde{216 }     \def\bredde{120 }     \edef\maksL{\the\numexpr\laengde+20\relax\space}     \edef\maksB{\the\numexpr\bredde+20\relax\space}     \edef\radius{\the\numexpr\bredde/4\relax\space} % Needs to be changed.      \centering      \psset{        unit=0.05      }       \begin{pspicture}(\maksL,\maksB)        \psclip{\path[linestyle=none]}          \psframe[            fillstyle=vlines,            hatchcolor=red,            hatchsep=1pt,            linestyle=none          ](!\laengde \radius sub 0)(\laengde,\bredde)        \endpsclip         \path[]        \psdots(!\laengde \radius sub \radius)(!\laengde \radius sub 3 \radius mul)       \psset{         linestyle=dotted,         offset=12pt,         arrows=|<*->|*,         nrot=:U       }        \pcline(0,\bredde)(\laengde,\bredde)        \ncput*{\SI{\laengde}{\m}}        \pcline(\laengde,\bredde)(\laengde,0)        \ncput*{\SI{\bredde}{\m}}       \end{pspicture}     \end{figure}          \end{document}      **Output** ![Output.](http://i.stack.imgur.com/auTZc.jpg) **Question** I have defined `\radius` as               \def\radius{\the\numexpr\bredde/4\relax\space}      but this only works correctly if `\bredde` is a multiple of 4. I have tried with both `\dimexpr` and `\newlength` but I can't make it work (probably do to some trivial mistake).


title: How to make all table cells center aligned?

text: I have this code which works fine               \begin{table}[ht]     \caption{Table Data }       \centering               \begin{tabular}{c c c c}    % centered columns (4 columns)      Now i have the dynamic headers so i have to hard code this line every time accoring to headers               begin{tabular}{c c c c}      is there any way to apply that to all coumns instead of all like this               begin{tabular}{c} for all


title: Controlling when a footnote appears in beamer presentation

text: In my beamer presentation I am have multiple slides of the form                 \frame{       \frametitle{FRAME TITLE HERE}       \begin{itemize}       \begin{columns}       \begin{column}{2in}       \item \onslide<1->       TEXT FOR ITEM 1 HERE WITH REFERENCE TO A FOOTNOTE USING \footnotemark       \item \onslide<2->        TEXT FOR ITEM 2 HERE WITH REFERENCE TO A FOOTNOTE USING \footnotemark       \end{column}            \begin{column}{1.6in}       \onslide<1->       ADD FIGURE 1 HERE       \onslide<2->       ADD FIGURE 2 HERE       \end{column}       \end{columns}            \footnotetext[1]{TEXT FOR FIRST FOOTNOTE HERE}       \footnotetext[2]{TEXT FOR SECOND FOOTNOTE HERE}       \end{itemize}       }      However, when I do this, _both_ footnotes appears on slide 1, even though the \footnotemark for the second footnote appears in the main text on slide 2. Ideally, I would like the second footnote to appear only when the second slide come up. Any suggestions?


title: Simple way to switch inline asymptote figures on and off

text: I use the inline `asymptote` environment `\begin{asy}` to draw a lot of the figures in my papers. To those not familiar with `asymptote`, the asymptote package creates *.asy files for each of the asy environments in the document, so that if my document is `article.tex` running LaTeX will generate `article-1.asy`, `article-2.asy`, etc. Then you run `asymptote` (the program) to compile these into eps files `article-1.eps`, `article-2.eps`, etc. and the next time you run LaTeX it will include these graphics files where the corresponding asymptote environment was used. However, this doesn't seem to be a standard package, so when I send the TeX file to arXiv or to a publisher I need to replace each `\begin{asy}...\end{asy}` with `\includegraphics{article-1}`, etc. Can anybody suggest a good way that I can make this switch back and forth easily by only changing one line? All my attempts have failed due to apparent quirks in how the `asymptote` package works.


title: Migrating from Ubuntu repository TeX to TeX Live?

text: I installed TeX Live 2013 from CTAN by following the instructions here: How to install "vanilla" TeXLive on Debian or Ubuntu? And it's all working very nicely. However, what I didn't do was purge the original TeX from my Ubuntu 12.04 system. The command               dpkg --get-selections | grep tex      shows a vast panoply of installed TeX packages. Now, suppose I entered:               apt-get purge tex*      Would that remove just the original TeX packages installed from the Ubuntu repositories, or would it, since my fiddling with `equiv`, kill the new TeXlive as well? I don't want to experiment, as I now have TeX and friends up and running as I like, and I don't want to have to do it all over again!


title: XeLaTeX + kpfonts + Greek

text: Because of this question, I'm using the following code to typeset my XeLaTeX document. The problem is, there does not seem to be any support for Greek. The Greek text in the following comes out as question marks:               \documentclass{memoir}          \usepackage{fontspec}     \usepackage[T1]{fontenc}     \usepackage[oldstylenums]{kpfonts}          \usepackage{polyglossia}          \begin{document}          Some nice Greek text in the middle of an English document: μυϱίᾳ εἰμὶ διὰ τὴν τοῦ ϑεοῦ λατϱείαν.          \end{document}      I looked into this question, too, and hence tried to add the line               \newfontfamily\greekfont[Script=Greek]{Linux Libertine O}      to the preamble, but it changed nothing.


title: Why \\ does not go to new line in equation?

text: \begin{equation*}\label{eq:pareto mle2}     A_0 = \frac{1}{(\alpha+t_x)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + t_x} \right ) "\\\" <br>      - \frac{1}{(\alpha+T)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + T} \right ),     \end{equation*}         This is my code why `\\\` does not go to new line? How should I make it?


title: Chapter title cannot be drawn next to big figure with [H]-option

text: When trying to add a big image directly below a chapter title, the image together with the title are drawn to the following, an even page. This way, the first page is empty. However, I want to start each chapter on an odd page and prevent the occurrence of an empty page. How can the title together with the (too) big figure be forced to be drawn on the first page? The question targets figures as the most simple occurrence of floats, but I am in particular interested in other floats directly below the title, e.g. sidewaystables (How to fix issues after rotating a table with sidewaystable directly below the Chapter title?). I opened up a new question, as the problem is more general than I initially expected it to be. A minimal example is attached:               \documentclass[openright,         liststotoc,         ]{scrbook}[2007/12/24]          \usepackage{graphicx}          \begin{document}          \chapter{Big Pic Chapter}              \includegraphics{big_pic}          \end{document}


title: How to add explanation of terms in equation

text: ![enter image description here](http://i.stack.imgur.com/rqW0T.jpg) How can I add explanation like that in figure in LateX under my equation?


title: How to provide the explanations of a math equation?

text: **How can I write the following equation with its explanation in latex ?** * * * ![enter image description here](http://i.stack.imgur.com/Tkr6o.png)