title: How to get started using mtpro2 lite on TeXLive?

text: I want to use `mtpro2` but I have no idea how to get it working on TeXLive. I thought it was difficult to understand what do in order to install it. Until I became convinced that perhaps it is already installed on TeXLive, in which case I only need help to get started using it. I have installed TeXLive to `/usr/local/texlive` . I suppose `mtpro2` is installed with texlive by default, since the line `\usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}` doesnt induce an error. This is my test document:               \documentclass[12pt,norsk,a4paper]{report}     \usepackage[utf8]{inputenc}     \usepackage[norsk]{babel}     \usepackage{amsfonts}     \usepackage{amssymb,amsmath,amsthm}     \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}     \begin{document}     Hello world!     $$     f^n(z) = \frac{n!}{2\pi\,i}\int_{\partial \Omega} \frac{f(\zeta)}{(\zeta - z)^{n+1}}\,{\rm d}\zeta     $$     \end{document}      This is what my error log outputs:               LOG FILE :     This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2014.2.11) 30 AUG 2014 23:17     entering extended mode     restricted \write18 enabled.     %&-line parsing enabled.     **test.tex     (./test.tex     LaTeX2e <2011/06/27>     Babel <3.9h> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size12.clo     File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@chapter=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/inputenc.sty     Package: inputenc 2008/03/30 v1.1d Input encoding file     \inpenc@prehook=\toks14     \inpenc@posthook=\toks15     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/utf8.def     File: utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc     Now handling font encoding OML ...     ... no UTF-8 mapping file for font encoding OML     Now handling font encoding T1 ...     ... processing UTF-8 mapping file for font encoding T1     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/t1enc.dfu     File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc     defining Unicode char U+00A1 (decimal 161)     defining Unicode char U+00A3 (decimal 163)     defining Unicode char U+00AB (decimal 171)     defining Unicode char U+00BB (decimal 187)     defining Unicode char U+00BF (decimal 191)     defining Unicode char U+00C0 (decimal 192)     defining Unicode char U+00C1 (decimal 193)     defining Unicode char U+00C2 (decimal 194)     defining Unicode char U+00C3 (decimal 195)     defining Unicode char U+00C4 (decimal 196)     defining Unicode char U+00C5 (decimal 197)     defining Unicode char U+00C6 (decimal 198)     defining Unicode char U+00C7 (decimal 199)     defining Unicode char U+00C8 (decimal 200)     defining Unicode char U+00C9 (decimal 201)     defining Unicode char U+00CA (decimal 202)     defining Unicode char U+00CB (decimal 203)     defining Unicode char U+00CC (decimal 204)     defining Unicode char U+00CD (decimal 205)     defining Unicode char U+00CE (decimal 206)     defining Unicode char U+00CF (decimal 207)     defining Unicode char U+00D0 (decimal 208)     defining Unicode char U+00D1 (decimal 209)     defining Unicode char U+00D2 (decimal 210)     defining Unicode char U+00D3 (decimal 211)     defining Unicode char U+00D4 (decimal 212)     defining Unicode char U+00D5 (decimal 213)     defining Unicode char U+00D6 (decimal 214)     defining Unicode char U+00D8 (decimal 216)     defining Unicode char U+00D9 (decimal 217)     defining Unicode char U+00DA (decimal 218)     defining Unicode char U+00DB (decimal 219)     defining Unicode char U+00DC (decimal 220)     defining Unicode char U+00DD (decimal 221)     defining Unicode char U+00DE (decimal 222)     defining Unicode char U+00DF (decimal 223)     defining Unicode char U+00E0 (decimal 224)     defining Unicode char U+00E1 (decimal 225)     defining Unicode char U+00E2 (decimal 226)     defining Unicode char U+00E3 (decimal 227)     defining Unicode char U+00E4 (decimal 228)     defining Unicode char U+00E5 (decimal 229)     defining Unicode char U+00E6 (decimal 230)     defining Unicode char U+00E7 (decimal 231)     defining Unicode char U+00E8 (decimal 232)     defining Unicode char U+00E9 (decimal 233)     defining Unicode char U+00EA (decimal 234)     defining Unicode char U+00EB (decimal 235)     defining Unicode char U+00EC (decimal 236)     defining Unicode char U+00ED (decimal 237)     defining Unicode char U+00EE (decimal 238)     defining Unicode char U+00EF (decimal 239)     defining Unicode char U+00F0 (decimal 240)     defining Unicode char U+00F1 (decimal 241)     defining Unicode char U+00F2 (decimal 242)     defining Unicode char U+00F3 (decimal 243)     defining Unicode char U+00F4 (decimal 244)     defining Unicode char U+00F5 (decimal 245)     defining Unicode char U+00F6 (decimal 246)     defining Unicode char U+00F8 (decimal 248)     defining Unicode char U+00F9 (decimal 249)     defining Unicode char U+00FA (decimal 250)     defining Unicode char U+00FB (decimal 251)     defining Unicode char U+00FC (decimal 252)     defining Unicode char U+00FD (decimal 253)     defining Unicode char U+00FE (decimal 254)     defining Unicode char U+00FF (decimal 255)     defining Unicode char U+0102 (decimal 258)     defining Unicode char U+0103 (decimal 259)     defining Unicode char U+0104 (decimal 260)     defining Unicode char U+0105 (decimal 261)     defining Unicode char U+0106 (decimal 262)     defining Unicode char U+0107 (decimal 263)     defining Unicode char U+010C (decimal 268)     defining Unicode char U+010D (decimal 269)     defining Unicode char U+010E (decimal 270)     defining Unicode char U+010F (decimal 271)     defining Unicode char U+0110 (decimal 272)     defining Unicode char U+0111 (decimal 273)     defining Unicode char U+0118 (decimal 280)     defining Unicode char U+0119 (decimal 281)     defining Unicode char U+011A (decimal 282)     defining Unicode char U+011B (decimal 283)     defining Unicode char U+011E (decimal 286)     defining Unicode char U+011F (decimal 287)     defining Unicode char U+0130 (decimal 304)     defining Unicode char U+0131 (decimal 305)     defining Unicode char U+0132 (decimal 306)     defining Unicode char U+0133 (decimal 307)     defining Unicode char U+0139 (decimal 313)     defining Unicode char U+013A (decimal 314)     defining Unicode char U+013D (decimal 317)     defining Unicode char U+013E (decimal 318)     defining Unicode char U+0141 (decimal 321)     defining Unicode char U+0142 (decimal 322)     defining Unicode char U+0143 (decimal 323)     defining Unicode char U+0144 (decimal 324)     defining Unicode char U+0147 (decimal 327)     defining Unicode char U+0148 (decimal 328)     defining Unicode char U+014A (decimal 330)     defining Unicode char U+014B (decimal 331)     defining Unicode char U+0150 (decimal 336)     defining Unicode char U+0151 (decimal 337)     defining Unicode char U+0152 (decimal 338)     defining Unicode char U+0153 (decimal 339)     defining Unicode char U+0154 (decimal 340)     defining Unicode char U+0155 (decimal 341)     defining Unicode char U+0158 (decimal 344)     defining Unicode char U+0159 (decimal 345)     defining Unicode char U+015A (decimal 346)     defining Unicode char U+015B (decimal 347)     defining Unicode char U+015E (decimal 350)     defining Unicode char U+015F (decimal 351)     defining Unicode char U+0160 (decimal 352)     defining Unicode char U+0161 (decimal 353)     defining Unicode char U+0162 (decimal 354)     defining Unicode char U+0163 (decimal 355)     defining Unicode char U+0164 (decimal 356)     defining Unicode char U+0165 (decimal 357)     defining Unicode char U+016E (decimal 366)     defining Unicode char U+016F (decimal 367)     defining Unicode char U+0170 (decimal 368)     defining Unicode char U+0171 (decimal 369)     defining Unicode char U+0178 (decimal 376)     defining Unicode char U+0179 (decimal 377)     defining Unicode char U+017A (decimal 378)     defining Unicode char U+017B (decimal 379)     defining Unicode char U+017C (decimal 380)     defining Unicode char U+017D (decimal 381)     defining Unicode char U+017E (decimal 382)     defining Unicode char U+200C (decimal 8204)     defining Unicode char U+2013 (decimal 8211)     defining Unicode char U+2014 (decimal 8212)     defining Unicode char U+2018 (decimal 8216)     defining Unicode char U+2019 (decimal 8217)     defining Unicode char U+201A (decimal 8218)     defining Unicode char U+201C (decimal 8220)     defining Unicode char U+201D (decimal 8221)     defining Unicode char U+201E (decimal 8222)     defining Unicode char U+2030 (decimal 8240)     defining Unicode char U+2031 (decimal 8241)     defining Unicode char U+2039 (decimal 8249)     defining Unicode char U+203A (decimal 8250)     defining Unicode char U+2423 (decimal 9251)     )     Now handling font encoding OT1 ...     ... processing UTF-8 mapping file for font encoding OT1     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/ot1enc.dfu     File: ot1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc     defining Unicode char U+00A1 (decimal 161)     defining Unicode char U+00A3 (decimal 163)     defining Unicode char U+00B8 (decimal 184)     defining Unicode char U+00BF (decimal 191)     defining Unicode char U+00C5 (decimal 197)     defining Unicode char U+00C6 (decimal 198)     defining Unicode char U+00D8 (decimal 216)     defining Unicode char U+00DF (decimal 223)     defining Unicode char U+00E6 (decimal 230)     defining Unicode char U+00EC (decimal 236)     defining Unicode char U+00ED (decimal 237)     defining Unicode char U+00EE (decimal 238)     defining Unicode char U+00EF (decimal 239)     defining Unicode char U+00F8 (decimal 248)     defining Unicode char U+0131 (decimal 305)     defining Unicode char U+0141 (decimal 321)     defining Unicode char U+0142 (decimal 322)     defining Unicode char U+0152 (decimal 338)     defining Unicode char U+0153 (decimal 339)     defining Unicode char U+2013 (decimal 8211)     defining Unicode char U+2014 (decimal 8212)     defining Unicode char U+2018 (decimal 8216)     defining Unicode char U+2019 (decimal 8217)     defining Unicode char U+201C (decimal 8220)     defining Unicode char U+201D (decimal 8221)     )     Now handling font encoding OMS ...     ... processing UTF-8 mapping file for font encoding OMS     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/omsenc.dfu     File: omsenc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc     defining Unicode char U+00A7 (decimal 167)     defining Unicode char U+00B6 (decimal 182)     defining Unicode char U+00B7 (decimal 183)     defining Unicode char U+2020 (decimal 8224)     defining Unicode char U+2021 (decimal 8225)     defining Unicode char U+2022 (decimal 8226)     )     Now handling font encoding OMX ...     ... no UTF-8 mapping file for font encoding OMX     Now handling font encoding U ...     ... no UTF-8 mapping file for font encoding U     defining Unicode char U+00A9 (decimal 169)     defining Unicode char U+00AA (decimal 170)     defining Unicode char U+00AE (decimal 174)     defining Unicode char U+00BA (decimal 186)     defining Unicode char U+02C6 (decimal 710)     defining Unicode char U+02DC (decimal 732)     defining Unicode char U+200C (decimal 8204)     defining Unicode char U+2026 (decimal 8230)     defining Unicode char U+2122 (decimal 8482)     defining Unicode char U+2423 (decimal 9251)     ))     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty     Package: babel 2013/12/03 3.9h The Babel package     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel-norsk/norsk.ldf     Language: norsk 2012/08/06 v2.0i Norsk support from the babel system     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.def     File: babel.def 2013/12/03 3.9h Babel common definitions     \babel@savecnt=\count88     \U@D=\dimen103     )     Package babel Info: Making " an active character on input line 113.     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amsfonts.sty     Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support     \@emptytoks=\toks16     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'     (Font) U/euf/m/n --> U/euf/b/n on input line 106.     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amssymb.sty     Package: amssymb 2013/01/14 v3.01 AMS font symbols     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty     Package: amsmath 2013/01/14 v2.14 AMS math features     \@mathmargin=\skip43     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty     Package: amstext 2000/06/29 v2.01     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks17     \ex@=\dimen104     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen105     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count89     LaTeX Info: Redefining \frac on input line 210.     \uproot@=\count90     \leftroot@=\count91     LaTeX Info: Redefining \overline on input line 306.     \classnum@=\count92     \DOTSCASE@=\count93     LaTeX Info: Redefining \ldots on input line 378.     LaTeX Info: Redefining \dots on input line 381.     LaTeX Info: Redefining \cdots on input line 466.     \Mathstrutbox@=\box26     \strutbox@=\box27     \big@size=\dimen106     LaTeX Font Info: Redeclaring font encoding OML on input line 566.     LaTeX Font Info: Redeclaring font encoding OMS on input line 567.     \macc@depth=\count94     \c@MaxMatrixCols=\count95     \dotsspace@=\muskip10     \c@parentequation=\count96     \dspbrk@lvl=\count97     \tag@help=\toks18     \row@=\count98     \column@=\count99     \maxfields@=\count100     \andhelp@=\toks19     \eqnshift@=\dimen107     \alignsep@=\dimen108     \tagshift@=\dimen109     \tagwidth@=\dimen110     \totwidth@=\dimen111     \lineht@=\dimen112     \@envbody=\toks20     \multlinegap=\skip44     \multlinetaggap=\skip45     \mathdisplay@stack=\toks21     LaTeX Info: Redefining \[ on input line 2665.     LaTeX Info: Redefining \] on input line 2666.     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amscls/amsthm.sty     Package: amsthm 2004/08/06 v2.20     \thm@style=\toks22     \thm@bodyfont=\toks23     \thm@headfont=\toks24     \thm@notefont=\toks25     \thm@headpunct=\toks26     \thm@preskip=\skip46     \thm@postskip=\skip47     \thm@headsep=\skip48     \dth@everypar=\toks27     )     (/home/marius/texmf/tex/latex/mtpro2/mtpro2.sty     Package: mtpro2 2009/4/27 v2.3 MathTimePro II - added arc accents MathTimePro I     I - fixed rbrace problem with straightbraces and morphedbraces options MathTime     Pro II - fix bug with z = \delimiter "026E30F widetilde{\delimiter "026E30F sum     _{x }}MathTimePro II v2 font support (PCTeX/WaS)MathTimePro II v2.1a Allowed al     ternate form of I in Math Script Fonts (MS)     Now handling font encoding LMP1 ...     ... no UTF-8 mapping file for font encoding LMP1     Now handling font encoding LMP2 ...     ... no UTF-8 mapping file for font encoding LMP2     Now handling font encoding LMP3 ...     ... no UTF-8 mapping file for font encoding LMP3     \pointcount@=\count101     \prePbox@=\box28     \Pbox@=\box29     \LRbox@=\box30     \HATbox@=\box31     \TDbox@=\box32     \CHbox@=\box33     \ARCbox@=\box34     \preSbox@=\box35     \Sbox@=\box36     \SQcount@=\count102     \SQRTbox@=\box37     \UPROOT@=\count103     \LEFTROOT@=\count104     \limtype@=\count105     \xlfont@=\count106     \xlposition@=\count107     \xlposition@ii=\count108     \optype@=\count109     \x@count=\count110     \maxXLscripts@=\dimen113     )     No file test.aux.     \openout1 = `test.aux'.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd     File: umsa.fd 2013/01/14 v3.01 AMS symbols A     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsb.fd     File: umsb.fd 2013/01/14 v3.01 AMS symbols B     ) [1     {/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test     .aux) )     Here is how much of TeX's memory you used:     2217 strings out of 493308     24371 string characters out of 6137822     83938 words of memory out of 5000000     5676 multiletter control sequences out of 15000+600000     33819 words of font info for 37 fonts, out of 8000000 for 9000     957 hyphenation exceptions out of 8191     27i,4n,24p,269b,123s stack positions out of 5000i,500n,10000p,200000b,80000s     !pdfTeX error: /usr/local/texlive/2013/bin/x86_64-linux/pdflatex (file mt2sys):     Font mt2sys at 480 not found     ==> Fatal error occurred, no output PDF file produced!      I am a newbie when it comes to managing tex and texlive, I only use it for typesetting, and I have been unable to learn how to install custom packages etc. I suspect the problem is that the guides require preliminaries which I do not have. I hope you would be able to swiftly write out a guide to start using mtpro2 on texlive. Thank you for your time. Kind regards, Marius


title: Line break at hyphen in source inserts space in output

text: I prefer to wrap lines in my LaTeX source, and my editor will often choose a hyphen as a good place to split the line. Unfortunately, if a hyphenated word doesn't appear in the output file at a line break, then LaTeX will insert a space immediately after the hyphen. I'm looking for a way to train my editor not to break there. Alternatively, is there a way I can tell LaTeX not to insert a space at a line break if the line ends in a hyphen?


title: Drawing a network of lines and discs

text: ![enter image description here](http://i.stack.imgur.com/Gjsfn.png) Would you please tell me how to use Latex to draw this picture?


title: Tex file in binary

text: My machine was powered down after it was frozen, but I still managed to save the current Latex file. When I turned the machine back on and tried to import the file in texmaker , I was given this message: `It seems taht this file cannot be correctly decoded with the default encoding setting (UTF-8)` Moreover, I looked at the file's charset using the `file -bi name_of_file` in my command line, and I got that the file's charset is binary. I tried the `iconv` utility in linux to try convert it to utf-8 charset but it didn't work as the binary charset is not supported by `iconv`. Is there any way I can save this file? I really need its contents. Thanks in advance.


title: Longtable with items

text: I have a long table which spans several pages. For some unknown reasons to me since I have itemized stuff in my table, it cannot break them into pages. Also the spacing between the items are still wider than what I want. Here is what I have got:               \begin{center}     \begin{longtable}{ p{7.5cm} p{4.5cm} p{2cm} }     \renewcommand{\arraystretch}{1.3}     \caption{Here is the caption}     \label{Table:table_label}\\     \hline \hline     \textbf{{\small Title1}} & \textbf{{\small Title2}} & \textbf{{\small Title3}} \\     \hline \hline          \endfirsthead     \multicolumn{3}{c}%     {\tablename\ \thetable\ -- \textit{Continued from previous page}} \\     \hline \hline     \textbf{{\small Title1}} & \textbf{{\small Title2}} & \textbf{{\small Title3}} \\     \hline \hline     \endhead     \hline \multicolumn{3}{r}{\textit{Continued on next page}} \\     \endfoot     \hline \hline     \endlastfoot          {\small item1}     \begin{itemize}     \renewcommand{\labelitemi}{\diamond}         \item {\footnotesize subitem1.1}         \item {\footnotesize subitem1.2}         \item {\footnotesize subitem1.3}         \item {\footnotesize subitem1.4}              \begin{itemize}              \renewcommand{\labelitemi}{$\ast$}                  \item {\footnotesize subsubitem1.4.1}              \end{itemize}         \end{itemize} & {\small Data1} & \textbf{{\small No1}} \\     \hline     {\small item2} & {\small Data2} & \textbf{{\small No2}} \\     \hline     {\small item3}     \begin{itemize}     \renewcommand{\labelitemi}{$\diamond$}         \item {\footnotesize subitem3.1}         \item {\footnotesize subitem3.2}         \item {\footnotesize subitem3.3}         \item {\footnotesize subitem3.4}         \item {\footnotesize subitem3.5}         \item {\footnotesize subitem3.6}     \end{itemize} & {\small Data3} & \textbf{{\small No3}} \\     \end{longtable}     \end{center}


title: Spacing lines in mathmode

text: I need to explain two different elements in two different lines of an equation in math mode. I'm using this piece of code:               \begin{align*}     h(z)=0 &\Leftrightarrow \sinh\frac{1}{z}=0 \markno{\Leftrightarrow}{According to ...} \frac{2}{z} = 2\pi i n  \\&\marknoup{\Leftrightarrow}{$n$ is whole} z = \frac{i}{\pi n}     \end{align*}      (I'm shortening to make it clearer) I'm using these macros:               \newcommand\markno[2]{\begin{array}[t]{@{\,}c@{\,}} #1 \\ \downarrow \\ \makebox[0pt]{\scriptsize #2} \end{array}}     \newcommand\marknoup[2]{\begin{array}[b]{@{\,}c@{\,}} \makebox[0pt]{\scriptsize #2}\\ \uparrow \\ #1 \end{array}}      The thing is, that LaTeX automatically spaces the lines, so that the "According two" is above (in height) "n is whole". I'm using two different arrows exactly to avoid that; I want them to overlap in height, in order to save space. I tried using `\vspace`, but for some reason it doesn't work well for me.


title: TikZ path labels and --cycle

text: \draw (0,0) -- node{a} (2,0) -- node{b}  (2,1)  -- node{c}  (0,1)  -- cycle;      I can't find a simple way to make a label on the last edge. What I want is something like               \draw (0,0) -- node{a} (2,0) -- node{b}  (2,1)  -- node{c}  (0,1)  -- node{d} cycle;      but it doesn't work.               \draw (0,0) coordinate(A) -- node{a} (2,0) -- node{b}  (2,1)  --                                   node{c}  (0,1) coordinate(D) -- cycle;     \draw (A) -- node{d} (D);      This works, but seems too complicated for such a simple task and I think I'm missing something.


title: "No BoundingBox" error in latex

text: This is my preamble               \documentclass[12pt,a4paper,twoside,french]{article}     \usepackage{mathptmx} \usepackage{amsmath} \usepackage{amsfonts}     \usepackage{amssymb} \usepackage{graphicx}     \usepackage[left=3.17cm,right=3.17cm,top=2.54cm,bottom=2.54cm]{geometry}     \usepackage{tabularx} \usepackage{caption}      This is how the image is inserted in the document               \begin{figure}     \center     \includegraphics[scale=1]{figures/liver-foci-bioassay-01.png}      \caption{Protocole expérimental pour l'essai décrit par pour l'étude     de la carcinogénicité du foie à moyen-terme \citep{Ito:1995vn}}      \label{fig:ito1} \end{figure}      This error appears every time I try to compile in Latex > ! LaTeX Error: Cannot determine size of graphic in figures/liver-foci- > bioassay- 01.png (no BoundingBox). See the LaTeX manual or LaTeX Companion > for explanation. Type H for immediate help. How can I solve this problem?


title: How do I create an algorithmic Tikz code to obtain a list of numbers which is conditionaly defined by a recurence relation?

text: Suppose, our initials are `$a_{1,0}=0$`, `$a_{1,1}=1$` and `$a_{1,j}=0$` for `$j<0$`. For given an integer `$n$`, define               $$a_{i,j}=\begin{cases} a_{i-1,\frac{j}{2}} & \text{ if $j$ is even},\\       a_{i-1,\frac{j-1}{2}}+a_{i-1,\frac{j+1}{2}} & \text{ if $j$ is odd}         \end{cases}$$      while `$2\leq i \leq n$` and `$0\leq j \leq 2^{i-1}$`. How can I write an algorithmic TikZ code to generate the following list (e.g.`$n=6$`): The complete code:               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}     \begin{document}     Suppose, our initials are $a_{1,0}=0$, $a_{1,1}=1$ and $a_{1,j}=0$ for $j<0$. For given an integer $n$, define          $$a_{i,j}=\begin{cases} a_{i-1,\frac{j}{2}} & \text{ if $j$ is even},\\       a_{i-1,\frac{j-1}{2}}+a_{i-1,\frac{j+1}{2}} & \text{ if $j$ is odd}         \end{cases}$$          while $2\leq i \leq n$ and $0\leq j \leq 2^{i-1}$     \end{document}      I want the following output:               0 1          0 1 1          0 1 1 2 1          0 1 1 2 1 3 2 3 1          0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1          0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 5 8 3 7 4 5 1


title: Long equation does not page break

text: I have a series of equations steps, about 20 lines or so. I would like to have it automatically decide page break when necessary, but it resists and always tries to stay in a whole page, rendering the previous page a lot of while space. I tried `\allowdisplaybreaks` and `\displaybreak`, but doesn't seem to work.               {\allowdisplaybreaks\begin{equation}\allowdisplaybreaks[4]     \begin{split}\allowdisplaybreaks     \alpha\beta\gamma&=abc\\     =def\\     =ghi\\     \end{split}     \end{equation}}


title: vertical aligning images in table with \adjustbox only works when not every image is in an \adjustbox

text: I'm trying to center all images vertically and horizontally within a table cell. Therefore I'm using the `adjustbox` packet. This is the code I use for my table:                \begin{table}[b]      \begin{center}        \begin{tabular}{ |c|c|c|c|c| }          \hline                           \adjustbox{valign=m}{             \includegraphics[width=2cm,height=1cm,keepaspectratio]{./images/buttons/Windows-Buttons.png}           }           &            \adjustbox{valign=m}{             \includegraphics[width=2cm,height=1cm,keepaspectratio]{./images/buttons/MacOSX-Buttons.png}           }           &            [...]           &            \adjustbox{valign=m}{             \includegraphics[width=2cm,height=1cm,keepaspectratio]{./images/buttons/Android-Buttons.png}           }                \\[.8cm]                \hline          Windows 7 & Mac OS X & Gnome & iOS & Android \\      \hline        \end{tabular}     \end{center}          \vspace{-.5cm}     \caption{Buttons verschiedener Betriebssysteme}     \end{table}      If I attach adjustbox to every `\includegraphics` I don't get the desired output: ![http://i47.tinypic.com/apiu12.jpg](http://i.stack.imgur.com/1UX6s.jpg) If I remove only one `\adjustbox` (no matter which one), with following code:               %\adjustbox{valign=m}{       \includegraphics[width=2cm,height=1cm,keepaspectratio]{./images/buttons/MacOSX-Buttons.png}     %}      I get the desired result (well, some kind of ...): ![http://i49.tinypic.com/11kxlk9.jpg](http://i.stack.imgur.com/v92m3.jpg) I don't have to use `\adjustbox`. I just want the images to be vertically and horizontally centered. Thank you for your help!


title: Is there an opposite to \nonumber?

text: Usually I set equations using the `align` environment together with `\nonumber` for those few lines that shall not have a number, or the `align*` environment if no equation shall be numbered. But what if there are only few equations in a an `align` block that shall be numbered? In that case, adding `\nonumber` to almost all lines is a bit annoying, so is there anything like `\donumber` in an `align*` environment?


title: Convert any number to corresponding word

text: This is a wild one: can anyone write a code that converts a number into the corresponding word? e.g.:               4 -> 'four'     31 -> 'thirty-one'      and so on. Obviously, it is not enough to build an array in which you can store the numbers and the word associated with it and then just print instead of the number the stored word. What complicates matters more, are numbers like 11 ('eleven'). I intend to use it for numbering equations. So, anybody up to it?


title: Numbers, punctuation and parenthesis reversed in RTL

text: Contrary to my belief and to what's shown here, the above are coming up reversed for me: ![enter image description here](http://i.imgur.com/AY44i.png) I've seen this happen in other places too (enumerations off the top of my head), but these are the most bothering. Here's a MWE:               \documentclass{article}     \usepackage{polyglossia}     \setdefaultlanguage[calendar=hebrew, numerals=arabic]{hebrew}     \setotherlanguage{english}     \newfontfamily\hebrewfont{David CLM}     \begin{document}     מספר 1.          משהו )בסוגריים(.     \end{document}      Since the display here is having a hard time with the Hebrew and parenthesis, this is how it looks in an editor: ![enter image description here](http://i.imgur.com/VyCKv.png) And RTL (note that the parenthesis are correct because they look properly in RTL rather than LTR): ![enter image description here](http://i.imgur.com/iWSdu.png) And when numbers and parenthesis are combined, there's a whole party going on: ![enter image description here](http://i.stack.imgur.com/ug7Pq.png)


title: How can I place name minibox on top in moderncv?

text: I am using **moderncv** _classic_ style. This is my header. ![Header](http://i.stack.imgur.com/9DiHA.png) I want it to be like this (first and last name aligned on top): ![Proper header](http://i.stack.imgur.com/iWOZ9.png) How it can be achieved? Here is my minimal working example:               \documentclass[11pt,a4paper,roman]{moderncv}     \moderncvstyle{classic}     \moderncvcolor{blue}          \usepackage[scale=0.8,a4paper]{geometry}     \usepackage{xltxtra}     \usepackage{xunicode}     \setmainfont[Mapping=tex-text]{Times New Roman}     \setsansfont[Mapping=tex-text]{Calibri}     \newfontfamily{\cyrillicfonttt}{Courier New}     \usepackage{polyglossia}     \setmainlanguage{english}          \firstname{Alexander}     \familyname{Smith}     \title{Software Developer}     \mobile{+7 (123) 456-78-90}     \email{abc@def.com}          \photo[100pt][0pt]{picture}          \begin{document}     \makecvtitle     \end{document}


title: amsthm: \newtheoremstyle, headspace, \mbox{}, and lists

text: Q: How do I define a `newtheoremstyle` which will start the theorem text on a `newline` after the header **even when** the theorem text starts with a list, e.g., `enumerate`? If there's no way of doing this, will any reasonable hacks get the job done? You can see below in theorem 2.1 that my `newtheoremstyle`, `theorem-break`, does as desired when the theorem text does **not** start with a list environment. But you can see in theorem 2.2. that theorem text starting with a list environment will eat up the `\newline`. The `\mbox{}` hack in theorem 2.3 sort of works, but adds an unnecessary blank line (compare with theorem 1.3).               \documentclass{article}     \usepackage{amsthm}     \theoremstyle{plain}     \newtheorem{theorem-plain}{Theorem}[section]      \newtheoremstyle{break}  % follow `plain` defaults but change HEADSPACE.       {\topsep}   % ABOVESPACE       {\topsep}   % BELOWSPACE       {\itshape}  % BODYFONT       {0pt}       % INDENT (empty value is the same as 0pt)       {\bfseries} % HEADFONT       {.}         % HEADPUNCT       {\newline}  % HEADSPACE. `plain` default: {5pt plus 1pt minus 1pt}       {}          % CUSTOM-HEAD-SPEC     \theoremstyle{break}     \newtheorem{theorem-break}{Theorem}[section]      \begin{document}            \section{Plain Theorems}            \begin{theorem-plain}[foo]         Lorem ipsum sit amet dolor.       \end{theorem-plain}            \begin{theorem-plain}[foo]         \begin{itemize}           \item foo           \item bar         \end{itemize}         Lorem ipsum sit amet dolor.       \end{theorem-plain}            \begin{theorem-plain}[foo]         \mbox{}         \begin{itemize}           \item foo           \item bar         \end{itemize}         Lorem ipsum sit amet dolor.       \end{theorem-plain}            \section{Theorems with Linebreaks after header}            \begin{theorem-break}[foo]         Lorem ipsum sit amet dolor.        \end{theorem-break}            \begin{theorem-break}[foo]         \begin{itemize}           \item foo           \item bar         \end{itemize}           Lorem ipsum sit amet dolor.       \end{theorem-break}            \begin{theorem-break}[foo]         \mbox{}         \begin{itemize}           \item foo           \item bar         \end{itemize}         Lorem ipsum sit amet dolor.       \end{theorem-break}          \end{document}      ![theorems](http://i.stack.imgur.com/frUkq.jpg)


title: Faster way of writing \mathbf

text: Is there a quicker way of doing **boldface** in math mode instead of typing out `\mathbf{}` each time? (It gets cumbersome when you denote simple vectors with **boldface**...)


title: Creating a large "such that" symbol

text: I'm using the following macro in my LaTeX document:               \newcommand{\suchthat}{\, \mid \,} % nice "such that"      so that set notation like the following looks nice:               \{x_n \suchthat n \in \mathbb{N}}      However, when I use such definitions of sets inside `\\[...\\]` and when I need to make the brackets bigger, the `\suchthat` symbol looks way to small. Try compiling the following MWE as an example:               \documentclass{article}     \usepackage{amssymb}                % for \mathbb font     \newcommand{\suchthat}{\, \mid \,}  % nice "such that"     \begin{document}          \noindent This looks fine:     \[ S = \left\{ x_n \suchthat n \in \mathbb{N} \right\} \]          \noindent But this does not:     \[ S = \left\{ x_n \suchthat \frac{1}{n} \in \mathbb{N} \right\} \]          \end{document}      Is there something I can include in my macro to automatically resize the `suchthat` symbol as necessary?


title: How to add a one-column figure with caption after title and before abstract in a two-column document?

text: I'm trying to add a teaser (figure) after title and before the abstract section in a document with acm_proc_article-sp class but no luck! Tried to use the following solution by David Carlisle, but don't know how to change the code to put figure after the title: How do I put a figure* before my abstract?               \documentclass{acm_proc_article-sp}          \makeatletter     \patchcmd\@maketitle\null{{\myfigure{}\par}}{}{}     \makeatother           \begin{document}      \newcommand\myfigure{%         \centering         \includegraphics[width=\linewidth]{teaser}         \captionof{figure}{Some stuff about the teaser}         \label{fig-teaser}        }     \title{a title}     \maketitle           \begin{abstract}        abstract      \end{abstract}


title: How to put multiple empheq environments side-by-side?

text: How do I put multiple `empheq` environments side-by-side? Like this:               \documentclass{article}          \usepackage{empheq}          \begin{document}          \begin{empheq}[left=\empheqlbrace]{align*}     &\frac{1}{n} > \frac{1}{n^2} \\     &{a'}^2 - \frac{2a'}{n} + \frac{1}{n^2} > 2     \end{empheq}          \begin{empheq}[left=\empheqlbrace]{align*}     &\frac{1}{n} > \frac{1}{n^2} \\     &\frac{1 - 2a'}{n} > 2 - {a'}^2     \end{empheq}          \end{document}      but side-by-side and with a mandatory `\implies` between the environments.


title: Issues with multicols when using a template

text: I am using this template to write a paper. My paper starts with two column format but in the middle I need to show a big table. Hence, I have to switch to one column. I am trying to use the multicol package. However, the \twocolumn formatting is already define in the template available at http://www.acm.org/sigs/publications/sig-alternate.cls. I tried to remove just the section containing \twocolumn in the template. However, it doesn't work. My author, paper title don't show up if I remove the \twocolumn text in the template. I am just trying to use \begin{multicols}{2} in the paper. How can I fix this ? Any suggestions guys. This template is making me handicapped.


title: How to save a list as a macro for pgfplots

text: I want to create and store a list then use that list in a `pgfplots` scatterplot. My attempt is               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}          \newcommand{\listA}{ (1,2) (2,3) (3,4) (4,5) }          \begin{tikzpicture} \begin{axis}[]         \addplot+[only marks]          coordinates {          \listA          };     \end{axis}     \end{tikzpicture}          \end{document}      This yields the error "Sorry, I could not read the plot coordinates near ' (1,2) (2,3) (3,4) (4,5) '. Please check for format mistakes. " Replacing `\listA` by its definition works fine, however.


title: Is there a way to tell if LaTeX knows how to hyphenate a word?

text: I regularly write chemistry documents with odd words in them. Is there a way to know if LaTeX knows it can hyphenate a word? I'm wondering as the person beside me just discovered that the person whose thesis he is using as a base told LaTeX how to hyphenate _polymer_ , which he thought would be common enough that LaTeX would know it already.


title: How to merge rows in table

text: I want to make a table in multiple rows like the following one. Where in my script has problem? ![enter image description here](http://i.stack.imgur.com/yhNHE.png)               \documentclass[10pt]{article}     \usepackage{textcomp}     \usepackage[utf8]{inputenc}     \usepackage{fontspec}     \usepackage[british]{babel}     \usepackage{float}     \usepackage{gensymb}     \usepackage{tabularx,ragged2e,booktabs,caption}     \usepackage{subfigure}     \usepackage{multicol,tabularx,capt-of}     \usepackage{multirow}               \begin{document}                 \begin{center}       \begin{tabular}{|c|c|c|c|c|}         \hline         \multirow{2}{5cm}{} & \multirow{2}{5cm}{\textbf{Conditions}} \\           \cline{2-3} & \textbf{Frequency} & \multirow{2}{5cm}\textbf{Total}\\          \cline{1-3}          & \textbf{VDDA + VDD} & \multirow{2}{3cm}{}\\         \hline         \textbf{Mode} & \textbf{CLK} & \textbf{Type} & \textbf{Max} & \textbf{Unit} \\         \hline     Power Down (TBC) & 0 Hz & 0.6 & 2.00 & $\mu$A \\ \hline            \end{tabular}             \captionof{table}{Current Consumption}           \end{center}          \end{document}


title: Biblatex supercite with square brackets and grouped

text: I found this code here:               \documentclass{article}          \usepackage{biblatex}          \DeclareCiteCommand{\supercite}[\mkbibsuperscript]       {\iffieldundef{prenote}          {}          {\BibliographyWarning{Ignoring prenote argument}}%        \iffieldundef{postnote}          {}          {\BibliographyWarning{Ignoring postnote argument}}}       {\usebibmacro{citeindex}%        \bibopenbracket\usebibmacro{cite}\bibclosebracket}       {\supercitedelim}       {}          \usepackage{filecontents}          \begin{filecontents}{test.bib}     @book{A01,       author = {Author, A.},       year = {2001},       title = {Alpha},     }     @book{B02,       author = {Buthor, B.},       year = {2002},       title = {Bravo},     }     @article{C03,       author = {Cuthor, C.},       year = {2003},       title = {Charlie},     }     \end{filecontents}          \addbibresource{test.bib}          \let\cite=\supercite          \begin{document}          We are citing \supercite{A01,C03} and \supercite{B02} and \cite{A01,B02,C03}          \printbibliography          \end{document}      which puts the numbers in brackets and in superscript, but i'd like to group them. In the example i get [1],[3] but i want [1,3] and instead of [1],[2],[3] I want [1-3]. Is this possible? And if so, how?


title: How can I have both onecolumn and twocolumn in the same page in ACM SIGPLAN paper

text: I need to have in the same page both onecolumn and twocolumn. As default, a page in ACM SIGPLAN latex is twocolumn. But I have a picture that need to be located in onecolumn. When I use : \onecolumn here picture \twocolumn ... My image will be put in a seprate page (alone). But I don't put it in a seprate page. I wonder if I have in the same page both onecolumn and twocolumn, i.e have that image at the top of the page in onecolumn, and the rest of that page contains ordinary text in two columnn. Is it possible? SIGPLAN latex: http://drupal.sigplan.org/sites/default/files/sigplanconf-guide.pdf


title: Is this a TikZ bug?

text: I have this TikZ code:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}          \begin{tikzpicture} [         level 1/.style={sibling distance = 2cm, level distance = 1cm},         level 2/.style={sibling distance = 1cm},         level 3/.style={sibling distance = 1cm},         every node/.style={circle, draw=black, minimum size = 0.5cm},         edge from parent/.style={red,thick,draw}       ]            \node{}        child { node {}         child { node {} }         child { node {}           child { node {} }           child { node {} }         }       }       child { node {}         child { node {} }         child { node {} }       }       child { node {} }       ;          \end{tikzpicture}     \end{document}      And it produces this picture: ![buggy render](http://i.stack.imgur.com/MQSqn.png) Why are the bottom nodes thick?


title: How use Mathematica fonts with LaTeX - which method?

text: I want to be able to use Mathematica fonts with LaTeX. I find two sets of instructions for this:   1. Robert's post there   2. Kuska's instructions in `mysymdoc.pdf`, a file in the Mathematica 8 folder `SystemFiles/IncludeFiles/TeX/texmf/doc`. Method (1) explicitly assumes one is using linux, although robert indicates the method should work for OS X. Method (2) uses files that are distributed with Mathematica for OS X, but Kuska refers only to MikTeX on Windows and teTeX on Unix. Which works with TeXLive 2011 under OS X? Also, method (1) says to edit the two `.map`files so as to change `.pfb` to `.pfa` (presumably because the Wolfram-supplied Type 1 font files have extension `.pfa`. Why edit the `.map` files like that instead of changing the extensions of the font files themselves to `.pfb`?


title: horizontal alignment of dot over hat over bold greek letter!

text: For some strange reason, this:               \hat{\dot{\bm{\phi}}}      prints the dot and the hat slightly off the left of the phi letter. Any ideas if this can be fixed? thanks. Using bm package for bold symbols.


title: vim-latex always moves the cursor to the beginning of the line upon compilation. How do I stop this?

text: I have posted this question to /r/vim, with no success. The title basically explains the situation: every time I compile with `<leader>ll`, Vim moves my cursor to the beginning of the line, which is really annoying! My `vimrc` can be found at http://pastebin.com/7F8hKyHs. Does anyone have any suggestions?


title: Extract coordinates from 3D point

text: How do I extract coordinates from a three-dimensional point defined when using `tikz-3dplot`? I would like to perform some calculations on these (more specifically a cross-product of two vectors), but it seemed to be stumped on the `\z1` coordinate (`Undefined control sequence`), as illustrated with the following example:               \documentclass{article}       \usepackage{tikz}       \usetikzlibrary{calc}       \usepackage{tikz-3dplot}     \begin{document}       \begin{figure}         \tdplotsetmaincoords{0}{0}         \begin{tikzpicture}[tdplot_main_coords]           \coordinate (A) at (1,2,3);           \path let \p1=(A) in (\z1,\y1,\x1) coordinate (B);         \end{tikzpicture}       \end{figure}     \end{document}


title: Command to uppercase the first letter of a maths command

text: This question is a bit similar to Command to uppercase the first letter of each word in a sentence. What I want is to build a new command for being used just at math mode, using the `\DeclareMathOperator` command available at `amsmath` package. The new command I would like to define is the existing command `\max` but with its first letter in uppercase. Notice that the final result of `\max` command depends on changes made by `babel` package, for instance. In my case, I would place my `\DeclareMathOperator` sentence _after_ calling `babel`. Is there a quick way to do this? In case it's needed, this is a simple example of using `\DeclareMathOperator`:               \DeclareMathOperator{\argmax}{\arg\max}      EDIT: What I am trying to say is that `\DeclareMathOperator{\Max}{Max}` is not a valid solution for me, because what I want is _the same thing produced by`\max`_ (just with the first letter in uppercase), _but_ taking into account that the result produced by `\max` depends on the effect of other packages (for example, calling `babel` with `spanish` option would produce "máx" for `\max` and not "max"). So, it is not so simple as it could seem...


title: MiKTeX package manager: service unavailable

text: I have a problem with the MiKTeX package manager. I receive the message:               The MiKTeX web service has rejected your request.      Possible reason: too many requests arriving from your IP address.      and:               HTTP Error 503. The service is unavailable.      I cannot even choose another repository. Maybe this all was caused by my having killed the process on my first try with `ctrl`-`alt`-`del`? Can it be that at the server a "zombie" of that killed process is still present? Will the problem go away by itself?


title: Use courier and newtxtext together

text: I want to use two different monospaced fonts in one and the same document. However, when I write `\texttt{The quick brown fox jumps over the lazy dog}` using `\usepackage{courier}`, I can get figure 2 but cannot get figure 1. In contrast, when I write `\texttt{The quick brown fox jumps over the lazy dog}` using `\usepackage{newtxtext}`, I can get figure 1 but cannot get figure 2. So, how to generate the two figures in the same article? Figure 1: ![Figure 1](http://i.stack.imgur.com/2b4Y0.jpg) Figure 2: ![Figure 2](http://i.stack.imgur.com/hhugN.jpg)


title: Installing Biblatex-apa using package manager when button is disabled

text: I would like to install the **biblatex-apa** bibliography package and have been running into issues. This is the first time I am installing a package that didn't come preinstalled. My distribution of tex is miktex. What happens is when I go to the package manager and find the listing of biblatex-apa. I click on it and go to click the '+' button to install it. However the button is disabled preventing me from installing it. What am I missing? Does it need to point to a different repository?


title: Adjust font size in IPE-generated PDF-graphics within Latex

text: I started using ipe (http://ipe7.sourceforge.net/) for creating sketches and graphics for my thesis. The goal was to have the text appear in the same font size as the whole document, regardless of the scaling of the graphics, so that I don't have to worry about the size of the sketch at the time of creation. How can I make latex render the pdf in a way, that the font size in the graphic is always the documents' font size? When I applied a scaling factor, the text was also scaled accordingly. Or did I misinterpret how to use ipe?


title: Scaling tikz mindmaps within a beamer frame

text: I recently discovered tikz and I fell in love with it! However, I am having some annoying issues when I try to include a tikz mindmap in beamer. Problem is that I can't manage to have the mindmap scaled to the beamer slide size. Below is my code, see attached image for my output. Thanks!               \documentclass[8pt,T]{beamer}       \usepackage{comment}      \usepackage{graphicx}     \usepackage{tikz}     \usetikzlibrary{mindmap,trees, backgrounds}          \useoutertheme{tree}     \useinnertheme{rectangles}     \setbeamercolor{normal text}{fg=white}     \setbeamercolor{background canvas}{bg=black}     \setbeamercolor{frametitle}{fg=white}     \setbeamercolor{frametitle}{bg=black}     \setbeamercolor{block body}{fg=black}     \setbeamercolor{alertblock body}{fg=black}     \setbeamertemplate{blocks}[default]     \usecolortheme[named=orange]{structure}     \usetheme{Antibes}          \title{Bla bla}     \author{George Azzari}          \begin{document}     \section{Introduction}     \begin{frame}     \centering     \begin{figure}[h]     \makebox[\textwidth][c]{     \begin{tikzpicture}     %%%%%%%%%%%%%%% CANOPY STRUCTURE       \path[mindmap,concept color=green!50!black, text=white]              node[concept](struct) at (0,0){Canopy Structure}                 child[grow = -45, concept color = orange]{                 node[concept](light){Light Interception}                         [clockwise from = 20]                         child{node[concept](alb) {Shortwave albedo}}                         child{node[concept](lw){Longwave Emissivity}}                         child{node[concept](shade){Shading}}                         }             %----------------------------------------------------------                 child[grow = 45, concept color = green!50!yellow!70!black]{                     node[concept](func){Ecosystem Function}                         [counterclockwise from = -20]                         child{node[concept](massflu) {Mass Fluxes}}                         child{node[concept](biom) {Biomass}}                         child{node[concept](prod){Production}}                         child{node[concept](comp) {Competition}                             child{}}                         }             %----------------------------------------------------------                 child[grow = 0, concept color = blue!60!white]{                     node[concept](rough) at (0.5,0){Turbolence}                         child[grow = 20]{node[concept](lh){Latent Heat}}                         child[grow = -20]{node[concept](sh){Sensible Heat}}};             %----------------------------------------------------------          %%%%%%%%%%%% ATMOSPHERE       \path[mindmap,concept color=blue!80!white!60!green, text=white]         node[concept](atmos) at (12,4){Atmospheric Exchanges};          %%%%%%%%%%%% ENERGY       \path[mindmap,concept color=red!50!black, text=white]         node[concept](energy) at (12,-4){Surface Energy};          %%%%%%%%%%%%% MAKING SECONDARY CONNECTIONS        \newcommand{\conngreentoorange}{to[circle connection bar switch color=from (green!50!yellow!70!black) to (orange)]}       \newcommand{\connredtoorange}{to[circle connection bar switch color=from (red!50!black) to (orange)]}       \newcommand{\connredtoblu}{to[circle connection bar switch color=from (red!50!black) to (blue!60!white)]}       \newcommand{\connazuretoblu}{to[circle connection bar switch color=from (blue!80!white!60!green) to (blue!60!white)]}       \newcommand{\connazuretogreen}{to[circle connection bar switch color=from (blue!80!white!60!green) to (green!50!yellow!70!black)]}       \newcommand{\connazuretored}{to[circle connection bar switch color=from (blue!80!white!60!green) to (red!50!black)]}       \newcommand{\connblutogreen}{to[circle connection bar switch color=from (blue!60!white) to (green!50!yellow!70!black)]}       \begin{pgfonlayer}{background}         %\draw [circle connection bar ]           \path (func)  \conngreentoorange (light);           \path (energy)\connredtoorange (alb);                 \path (energy)\connredtoorange (lw);           \path (energy)\connredtoblu (sh);           \path (energy)\connredtoblu (lh);           \path (atmos) \connazuretoblu (lh);           \path (atmos) \connazuretoblu (sh);           \path (atmos) \connazuretored (energy);           \path (atmos) \connazuretogreen (massflu);           \path (lh) \connblutogreen (massflu);       \end{pgfonlayer}     \end{tikzpicture}}     \end{figure}     \end{frame}     \end{document}      ![enter image description here](http://i.stack.imgur.com/TsVmZ.png)


title: Variable number of column in multicols, including a single one

text: I'd like to call `multicols` with a parameter being the number of column and allow this parameter to take the value 1, like in this minimal working example :               \documentclass[a4paper,10pt]{report}     \usepackage{multicol,lipsum}          \newcommand{\varcols}[1]{%     \ifnum#1=1\lipsum\else{\begin{multicols}{#1}\lipsum\end{multicols}}\fi     }          \begin{document}     \varcols{3}      \end{document}      but the problem is that it forces me to write my text (here `\lipsum`) two times, which is of course not desirable. I tried another solution, but unfortunately without success :               \newcommand{\varcols}[1]{%     \ifnum#1=1\relax\else{\begin{multicols}{#1}}\fi     \lipsum     \ifnum#1=1\relax\else{\end{multicols}}\fi     }      but this fails : `!Extra }, or forgotten \endgroup`.


title: Rotated, running text in right margin?

text: I want to place some (large) text, rotated -90 degrees and running the right- hand margin. After reviewing Chapter Title in rotated vertical box at the margin and the somewhat related (albeit for tables rather than standard text) post Rotated text in side margin, these aren't quite what I need. It was suggested that I split this out as a stand-alone question, hence my post.


title: Abstract with amsart class and fontspec (with XeLaTeX)

text: There is an error message which I do not understand when I use `amsart` in conjunction with `fontspec`. The math text in the abstract seems to be deemed too small? The error is > \textfont 6 is undefined (character =). Here is a minimal working example:               \documentclass{amsart}          \title{T}\author{A}          \usepackage{fontspec}          \begin{document}          \begin{abstract}     $a=b$     \end{abstract}     \maketitle          \end{document}


title: How to adjust radius for \cnodeput and \circlenode?

text: I am trying to change the global default or customise individual size of the node plotted in the following code, however regardless what I do it seems I can only have two input for each node, either "{name} and {stuff}" or "{radius} and {name}" Can any one help please? Thax in advance an example follows               \begin{pspicture}(5.5,6)     \psset{arrowscale=1.5}     \psset{radius=5cm}     %\cnodeput(1,5){N11}{1}     \rput(1,5){\circlenode{5cm}{N11}{1}}     \cnodeput(1,1){N12}{4}     \cnodeput(5,5){N21}{2}     \cnodeput(5,1){N22}{3}     \ncline{-}{N21}{N12}     \end{pspicture}


title: Multiple align in equation with single equation number

text: I'm trying to get the following equation aligned two times per line and also I want to assign a **single** number to the equation. This is the code I have:                \begin{alignat*}{2}       [M/H] &\cong\; 0.917 [Fe/H] &(1)\\        &\cong\; 0.977 [Fe/H] &(2)\\        &\cong\; [Fe/H] + log(0.638f_{\alpha}+0.362) \;\;\;&(3)      \end{alignat*}      This produces the properly aligned equations but no numbering. If I remove the asterisks I get one number for each line, which I don't want. I've tried wrapping the above statement inside a `\begin{equation} \end{equation}` command, but it won't work. Ideas?


title: Which renderer will be the right one for displaying LaTeX math expression on the web browser?

text: Sorry in advance if this is an old topic, but I am new to this so I wasn't sure what to search for: I am trying to create a dynamic equation displayed in LaTeX on my website, and I am not sure what method of rendering will be best for this. for example, I want to show `$f(x)=2x+5$` and then have the user click a button to change the numbers and have the display show `$f(x)=3x+8$` and another click to give `$f(x)=5x+1$`. Of course this isnt all I want to display, but I am having trouble figuring out which renderer will be the right one for what im trying to do here (have dynamic constants in my LaTeX display).


title: Command right after closing a verbatim environment

text: I need to use a form of a verbatim environment, so that after the closing of the environment, there immediately follows another command. In particular I need something like the following - assuming moreverb package - but the problem is not specific to moreverb:               \begin{verbatimwrite}{filename}     ... stuff ...     \end{verbatimwrite}\somecommand...      Most verbatim-facilitating packages (moreverb, fancyvrb, etc.) either discard whatever characters follow the closing environment tag (moreverb), or result in an error (fancyvrb). **Is there a solution to this?** _Note, dividing the last line into two is not an option!_ * * * Would it be an option to "fool" TeX to think there actually is EOL character, while there is none (e.g., using \scancodes) and at the same time preserve compatibility with some implementation of verbatim functionality? Alternatively, could you point me to an (re-)implementation of the "verbatimwrite" functionality, which would allow characters after the closing tag? To explain why dividing the last line is not an option: I need to integrate my package with LyX and it allows only single-line TeX snippets in its layout style definitions (Command/Environment). Wrapping the end of environment together with the \somecommand in a new command wouldn't work due to the verbatim implemenation and multi-line solution is not allowed in LyX layout format.


title: Numbering equations in tabular environment

text: I wish to number equations in a table, like numbering them in               \begin{equation}.         ...     \end{equation}       Since all the equations are written as "inline" equations (for example, `$a = b+c$`) in `tabular` environment, I have no idea how to number them. Can you help me to find out a way?


title: Recalibrating \hline vertical spacing to that of \cline

text: How do I alter the spacing dimensions of `\hline` so as to replicate those of `\cline`? I have drawn a series of (empty-celled) tables using `\hline` for lines spanning whole tables and, e.g., `\cline{1-2}` for lines spanning just one column. Much later, realizing that I need to overlay them, I can now see that `\hline` adds to the total row height in a way that `\cline` does not. (For instance, look at the superposed tables below. Within each pair, the one on the left has two internal horizontal lines, the one of the left none. The pair on the left use `\hline` and the top and bottom lines fail to align. The pair on the right align properly (I think) and use `\cline`. ![enter image description here](http://i.stack.imgur.com/Cpge1.png) ) (The alternative is going through my document, changing `\hline` to `\cline{1-1}`, `\cline{1-2}`, or `\cline{1-3}` on a case-by-case basis. Tedious.)               \documentclass{article}     \begin{document}          \begin{tabular}{|c|}     \hline       \\ \hline       \\ \hline        \\ \hline     \end{tabular}     %     \hspace{\tabcolsep}%     \llap{     \begin{tabular}{|c|}     \hline       \\       \\        \\ \hline     \end{tabular}     }     %     \quad     %     \begin{tabular}{|c|}     \cline{1-1}      \\ \cline{1-1}       \\ \cline{1-1}        \\ \cline{1-1}     \end{tabular}     %     \hspace{\tabcolsep}%     \llap{     \begin{tabular}{|c|}     \cline{1-1}      \\        \\         \\ \cline{1-1}     \end{tabular}     }          \end{document}


title: todonotes and verbatim

text: I want to put some comments about actual code into my document, and for that I thought I'd use `\verb` or `\begin{verbatim}`, but it turns out that the `todonotes` package does not like that:               \documentclass{minimal}          \usepackage{todonotes}          \begin{document}          \todo{\verb|Hello!|}          \end{document}      Which in turn gives the beautiful error:               ! Argument of \reserved@a has an extra }.     <inserted text>                      \par      l.7 \todo{\verb|Hello!|}      A similar problem applies to `\begin{verbatim}`. So... how do I get verbatim text/code into my todo notes?


title: Beamer - \visible and \cellcolor

text: I'm creating a beamer presentation. I have this table:               \begin{array}         \visible<1->{\cellcolor{Blue}{0}} & \visible<2->{\cellcolor{Red}{0 + 1}} \\         \visible<1->{\cellcolor{Yellow}{0 + 1 + 2}} & \visible<2->{\cellcolor{Green}{0 + 1 + 2 + 3}}     \end{array}      Unfortunately, the cell colors are visible from the start, before there is text. Using `\only` solves the color issue, but destroys the text alignment. How can I fix this? EDIT: Here's a compilable example:               \documentclass[table,dvipsnames]{beamer}     \usepackage[ngerman]{babel}     \begin{document}     \begin{frame}         $\begin{array}{ll}             \visible<1->{\cellcolor{Blue}{0}} & \visible<2->{\cellcolor{Red}{0 + 1}} \\             \visible<3->{\cellcolor{Yellow}{0 + 1 + 2}} & \visible<4->{\cellcolor{Green}{0 + 1 + 2 + 3}} \\         \end{array}$     \end{frame}     \end{document}


title: Can I change all math output to use monospaced text?

text: Is there any way of modifying the preamble, so instead of typing               $\mathtt{x}$ ...     \begin{eqnarray}         \mathtt{y} & \mathtt{=} & \mathtt{z^\pi}     \end{eqnarray}      I can omit the \mathtt{...} commands?


title: How to see errors and warnings in WinEdt

text: I am writing my thesis and I want to check my warnings and errors. How I can run pdf by command prompt ? I want to see my errors and warnings.


title: Use glossary in Lyx

text: I'm writing my thesis and have to use a LyX-template which uses the glossary package. When creating the PDF in LyX there is no error but also no glossary? I check my document against the description here: https://secure.mario- konrad.ch/wiki/doku.php?id=latex:glossary (last example) The interesting point the execution chain of compiling:               $ latex example.tex     $ makeindex example.glo -s example.ist -t example.glg -o example.gls     $ latex example.tex     $ dvips example.dvi -o example.ps      Does anybody know how to configure LyX to do the compilation in this order?


title: Generate a "reverse" index

text: For reviewing purposes, I'd like to generate a "reverse" index, that would list all the keys per page, instead of the pages per key. That is, _in addition_ to generating the normal index: > key1.......... 1, 3, 5 > > key2.......... 2, 4, 5 I'd like: > 1: key1 > > 2: key2 > > 3: key1 > > 4: key2 > > 5: key1, key2 Is that possible?


title: Move the page number to the very bottom of the page

text: I need to move the page number to the very bottom of the page, so it scrapes the bottom edge of the actual sheet (US letter). How do we do that?


title: Using beamer's \uncover with the listings package

text: I want use `listings` package with uncover command. He's my code               \usepackage{listings}     \lstnewenvironment{Exemplecode}{}{}          \newenvironment{Framecode}[1]     {\begin{frame}[fragile, environment=Framecode]{#1}}     {\end{frame}}          \begin{frame}{Quelques Rappels}      \begin{itemize}        \item<1-> Les Alias.\newline          \uncover<2->{\begin{Exemplecode}a \end{Exemplecode}}      \end{itemize}     \end{frame}      I get the following error:               Package Listings Warning: Text dropped after begin of listing on input line 4.          )     ! Missing } inserted.     <inserted text>                      }     l.19 \end{Framecode}          ?       EDIT: Thanks for the advice. This is an exemple of my code:               \documentclass{beamer}     \usepackage[french]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}     \usepackage{microtype}     \usepackage{xcolor}     \usepackage{listings}     \lstnewenvironment{Exemplecode}{}{}          \usetheme[hideothersubsections]{berkeley}     \setbeamerfont{block body}{size=\tiny}     \setbeamertemplate{navigation symbols}{}     \setbeamertemplate{footline}[frame number]          \newenvironment{Framecode}[1]     {\begin{frame}[fragile, environment=Framecode]{#1}}     {\end{frame}}          \begin{document}          \begin{Framecode}{Quelques Rappels}      \begin{itemize}        \item<1-> Les Alias.\newline        \begin{Exemplecode} a \end{Exemplecode}      \end{itemize}     \end{Framecode}     \end{document}      Is it possible to do what I want to do ?


title: Quotations spanning multiple paragraphs in csquotes

text: I have a quotation which extends for multiple paragraphs. The literary convention is that there is no end-quote at the end of each paragraph, except for the last one. However, this seems to be incompatible with the package `csquotes` (which I am using so that I don't have to convert every instance of `"..."` in my copy- pasted Word document into LaTeX quotation marks). The following code causes 2 errors, and makes every subsequent quotation mark the wrong orientation...               \documentclass{article}     \usepackage{csquotes}     \MakeOuterQuote{"}     \begin{document}          "This is a quotation," he said.  "It continues onto the next paragraph.          "Here is the continuation of my quote.  As per literary convention,     there is no end-quote at the end of the previous paragraph."          \end{document}      ![csquotes error](http://i.stack.imgur.com/3kF3d.png)


title: space after characters with carons

text: If I write `ďalej` or `ťaťa`, there is a little space after characters `ď` and `ť` (and also `ľ`). Is it possible to remove this space ? I'm using `cp1250` encoding and Slovak `babel`. Can somebody help, please ? Here's the code:               \documentclass[dp]{FEIstyle}     \usepackage[slovak]{babel}     \usepackage[cp1250]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}     ďalej ťa     \end{document}      ![Image](http://i.stack.imgur.com/iSTBH.png)


title: How insert tikz picture in to beamer?

text: I have that picture               \documentclass[12pt]{article}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows}     \pagestyle{empty}     \begin{document}     \begin{center}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \clip(-4.3,-11.98) rectangle (33.88,6.3);     \draw (-0.48,-3.42) node[anchor=north west] {Official};     \draw (2.48,-0.54) node[anchor=north west] {Citizen};     \draw (0.62,-3.06)--node[above,sloped] {$b>0$}node[below,sloped] {bride} (2.8349953328119706,-1.0366869556044498);     \draw (0.6,-3.9)--  node[above,sloped] {$b=0$}node[below,sloped] {nobride}(2.753375039560603,-5.988773788373784);     \draw (3.5,-0.28)-- node[above,sloped] {pay}node[below,sloped] {end report} (5.708982562266176,1.7498758680283781);     \draw (4.14,-0.87)-- node[above,sloped] {pay}node[below,sloped] {silenty}(7.14,-0.87);     \draw (3.36,-1.06)--node[above,sloped] {refuse}node[below,sloped] {silently}  (5.502014662422205,-3.1604221447052696);     \end{tikzpicture}     \end{center}          \begin{center}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \clip(-4.3,-11.98) rectangle (33.88,6.3);     \draw (-0.48,-3.42) node[anchor=north west] {Official};     \draw (2.48,-0.54) node[anchor=north west] {Citizen};     \draw (0.62,-3.06)--node[above,sloped] {$b>0$}node[below,sloped] {bride} (2.8349953328119706,-1.0366869556044498);     \draw (0.6,-3.9)--  node[above,sloped] {$b=0$}node[below,sloped] {nobride}(2.753375039560603,-5.988773788373784);     \draw (3.5,-0.28)-- node[above,sloped] [red]{\textbf{pay}}node[below,sloped] [red]{\textbf{end report}} (5.708982562266176,1.7498758680283781);     \draw (4.14,-0.87)-- node[above,sloped] {pay}node[below,sloped] {silenty}(7.14,-0.87);     \draw (3.36,-1.06)--node[above,sloped] {refuse}node[below,sloped] {silently}  (5.502014662422205,-3.1604221447052696);     \end{tikzpicture}     \end{center}          \begin{center}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \clip(-4.3,-11.98) rectangle (33.88,6.3);     \draw (-0.48,-3.42) node[anchor=north west] {Official};     \draw (2.48,-0.54) node[anchor=north west] {Citizen};     \draw (0.62,-3.06)--node[above,sloped] {$b>0$}node[below,sloped] {bride} (2.8349953328119706,-1.0366869556044498);     \draw (0.6,-3.9)--  node[above,sloped] [red]{$\textbf{b=0}$}node[below,sloped] [red]{\textbf{nobride}}(2.753375039560603,-5.988773788373784);     \draw (3.5,-0.28)-- node[above,sloped] [red]{\textbf{pay}}node[below,sloped] [red]{\textbf{end report}} (5.708982562266176,1.7498758680283781);     \draw (4.14,-0.87)-- node[above,sloped] {pay}node[below,sloped] {silenty}(7.14,-0.87);     \draw (3.36,-1.06)--node[above,sloped] {refuse}node[below,sloped] {silently}  (5.502014662422205,-3.1604221447052696);     \end{tikzpicture}     \end{center}     \end{document}      I need to insert it in one frame, but nothing happend. Of course beamer is set on document


title: Punctuation in superscripting with Natbib in Xetex

text: I'm trying to use the `achemso` package for my bibliography and citations. I'm also trying to using Xetex to use the Minion Pro fonts. When I just typeset with LaTeX and do everything in Computer Modern I don't have any problems. However, once I switch to using Xetex and add the `fontspec` code, the citations don't look the way they should; the hyphens don't seem to be superscripted. Here are the relevant code snippets:               \usepackage[usetitle=true]{achemso}     \usepackage[T1]{fontenc}     %Set up the Minion Pro font     \usepackage{fontspec,xltxtra,xunicode}     \defaultfontfeatures{Ligatures=TeX}     \setromanfont[Ligatures=TeX]{Minion Pro}     \setsansfont[Scale=MatchLowercase,Ligatures=TeX]{Gill Sans}     \setmonofont[Scale=MatchLowercase, Ligatures=TeX]{Andale Mono}          Synthetic devices have been historically easier to construct, and for a number of applications they are still preferred, but advances in nanotechnology have vastly improved our ability to work with small molecules, allowing for biological and chemical drug delivery systems based on polymer nanoparticles, hydrogels, and biological vesicles, among other possibilities \cite{langer_advances_2003,farokhzad_impact_2009,grainger_nanobiomaterials_2008,stevenson_reservoir-based_2012}.       **EDIT** Added the citations and an image below.               @article{langer_advances_2003,     Abstract = {Biomaterials are widely used in numerous medical applications. Chemical engineering has played a central role in this research and development. Polymers as biomaterials, materials and approaches used in drug and protein delivery systems, materials used as scaffolds in tissue engineering, and nanotechnology and microfabrication techniques applied to biomaterials are reviewed.},     Author = {Langer, Robert and Peppas, Nicholas A.},     Copyright = {Copyright {\copyright} 2003 American Institute of Chemical Engineers ({AIChE)}},     Doi = {10.1002/aic.690491202},     File = {Full Text PDF:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/V29GB4KF/Langer and Peppas - 2003 - Advances in biomaterials, drug delivery, and biona.pdf:application/pdf;Snapshot:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/AGIQ86SV/abstract.html:text/html},     Issn = {1547-5905},     Journal = {{AIChE} Journal},     Language = {en},     Number = {12},     Pages = {2990--3006},     Title = {Advances in biomaterials, drug delivery, and bionanotechnology},     Url = {http://onlinelibrary.wiley.com/doi/10.1002/aic.690491202/abstract},     Urldate = {2013-03-19},     Volume = {49},     Year = {2003},     Bdsk-Url-1 = {http://onlinelibrary.wiley.com/doi/10.1002/aic.690491202/abstract},     Bdsk-Url-2 = {http://dx.doi.org/10.1002/aic.690491202}}           @article{farokhzad_impact_2009,     Abstract = {While both organic and inorganic technologies are under development, controlled-release polymer technologies and liposomes will likely continue to have the greatest clinical impact for the foreseeable future.},     Author = {Farokhzad, Omid C. and Langer, Robert},     Doi = {10.1021/nn900002m},     File = {ACS Full Text PDF:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/X6KASK8T/Farokhzad and Langer - 2009 - Impact of Nanotechnology on Drug Delivery.pdf:application/pdf;ACS Full Text Snapshot:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/JX5A7RQ4/nn900002m.html:text/html},     Issn = {1936-0851},     Journal = {{ACS} Nano},     Month = jan,     Number = {1},     Pages = {16--20},     Title = {Impact of Nanotechnology on Drug Delivery},     Url = {http://dx.doi.org/10.1021/nn900002m},     Urldate = {2013-03-19},     Volume = {3},     Year = {2009},     Bdsk-Url-1 = {http://dx.doi.org/10.1021/nn900002m}}          @article{grainger_nanobiomaterials_2008,     Abstract = {Nanomaterials advocated for biomedical applications must exhibit well-controlled surface properties to achieve optimum performance in complex biological or physiological fluids. Dispersed materials with extremely high specific surface areas require as extensive characterization as their macroscale biomaterials analogues. However, current literature is replete with many examples of nanophase materials, most notably nanoparticles, with little emphasis placed on reporting rigorous surface analysis or characterization, or in formal implementation of surface property standards needed to validate structure-property relationships for biomedical applications. Correlations of nanophase surface properties with their stability, toxicity and biodistributions are essential for in vivo applications. Surface contamination is likely, given their processing conditions and interfacial energies. Leaching adventitious adsorbates from high surface area nanomaterials is a possible toxicity mechanism. Polydimethylsiloxane ({PDMS)}, long known as a ubiquitous contaminant in clean room conditions, chemical synthesis and microfabrication, remains a likely culprit in nanosystems fabrication, especially in synthesis, soft lithography and contact molding methods. New standards and expectations for analyzing the interfacial properties of nanoparticles and nano-fabricated technologies are required. Surface science analytical rigor similar to that applied to biomedical devices, nanophases in microelectronics and heterogeneous catalysts should serve as a model for nanomaterials characterization in biomedical technologies.},     Author = {Grainger, D. W. and Castner, D. G.},     Copyright = {Copyright {\copyright} 2008 {WILEY-VCH} Verlag {GmbH} \& Co. {KGaA}, Weinheim},     Doi = {10.1002/adma.200701760},     File = {Full Text PDF:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/HIFH3Q2H/Grainger and Castner - 2008 - Nanobiomaterials and Nanoanalysis Opportunities f.pdf:application/pdf;Snapshot:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/DIVZA4TZ/abstract.html:text/html},     Issn = {1521-4095},     Journal = {Advanced Materials},     Keywords = {Biomaterials, Biomedical applications, Bionanotechnology, Nanoparticles, Polydimethylsiloxane, Surface characterization},     Language = {en},     Number = {5},     Pages = {867--877},     Shorttitle = {Nanobiomaterials and Nanoanalysis},     Title = {Nanobiomaterials and Nanoanalysis: Opportunities for Improving the Science to Benefit Biomedical Technologies},     Url = {http://onlinelibrary.wiley.com/doi/10.1002/adma.200701760/abstract},     Urldate = {2013-03-19},     Volume = {20},     Year = {2008},     Bdsk-Url-1 = {http://onlinelibrary.wiley.com/doi/10.1002/adma.200701760/abstract},     Bdsk-Url-2 = {http://dx.doi.org/10.1002/adma.200701760}}           @article{stevenson_reservoir-based_2012,     Abstract = {This review covers reservoir-based drug delivery systems that incorporate microtechnology, with an emphasis on oral, dermal, and implantable systems. Key features of each technology are highlighted such as working principles, fabrication methods, dimensional constraints, and performance criteria. Reservoir-based systems include a subset of microfabricated drug delivery systems and provide unique advantages. Reservoirs, whether external to the body or implanted, provide a well-controlled environment for a drug formulation, allowing increased drug stability and prolonged delivery times. Reservoir systems have the flexibility to accommodate various delivery schemes, including zero order, pulsatile, and on demand dosing, as opposed to a standard sustained release profile. Furthermore, the development of reservoir-based systems for targeted delivery for difficult to treat applications (e.g., ocular) has resulted in potential platforms for patient therapy.},     Author = {Stevenson, Cynthia L. and Santini Jr., John T. and Langer, Robert},     Doi = {10.1016/j.addr.2012.02.005},     File = {ScienceDirect Full Text PDF:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/PSHDRPIW/Stevenson et al. - 2012 - Reservoir-based drug delivery systems utilizing mi.pdf:application/pdf;ScienceDirect Snapshot:/Users/vramasub/Library/Application Support/Firefox/Profiles/5g5hcrdl.default/zotero/storage/4SI72XH5/S0169409X12000282.html:text/html},     Issn = {0169-{409X}},     Journal = {Advanced Drug Delivery Reviews},     Keywords = {Controlled release, Implant, {MEMS}, Microneedle, Micropump, Ocular, On demand, Pulsatile},     Month = nov,     Number = {14},     Pages = {1590--1602},     Shorttitle = {Emerging micro- and nanotechnologies for the development of novel drug delivery devices and systems},     Title = {Reservoir-based drug delivery systems utilizing microtechnology},     Url = {http://www.sciencedirect.com/science/article/pii/S0169409X12000282},     Urldate = {2013-03-21},     Volume = {64},     Year = {2012},     Bdsk-Url-1 = {http://www.sciencedirect.com/science/article/pii/S0169409X12000282},     Bdsk-Url-2 = {http://dx.doi.org/10.1016/j.addr.2012.02.005}}      ![The 4_7 superscript in the last line should be 4-7](http://i.stack.imgur.com/O2sDR.png) EDIT 2: I've also tried removing the achemso package and directly just using natbib like so.               \usepackage[super]{natbib}      This results in no hyphens being used, but the commas are now completely out of whack. The commas now look like they are not superscripted, but there are superscripted dots separating the entries Removing the \defaultfontfeatures seems to be much better, it leads to printing the - as -- instead, so I thought it might be an issue with the ligature for an endash being an underscore. But changing the HyphenChar doesn't really seem to change anything.


title: A clean letter class for office use, including serial letters

text: I'm using LaTeX for writing corporate letters, including serials letters. To incorporate our organization's logo, back address and so on I put a single A4-sized PDF containing all this information into the background using the `dinbrief` class:               \documentclass[11pt]{dinbrief}      ...          \setbottomtexttop{270mm}  % x from top of page     \bottomtext{\kern27mm%    % y from bottom of page; x+y=297mm = DIN A4 height             \vbox to 0pt{\vss\hbox to 0pt{\kern-2.5cm             \includegraphics{letterheads/head-lzi-cl.pdf}\hss}}}          \begin{document}     \begin{letter}{Prof. Drov Nuts\\St. Anford}     ..     \end{letter}     \end{document}      This seems somewhat hackish. Is there an alternative for a clean letter style? Most letter styles I've seen try to use LaTeX for placing fancy logos and back addresses which I think are much better included from a single nicely designed PDF. Are there any classes supporting this idea? Edit: PDF letterhead as document background seems relevant here.


title: Drawing 3D cylinder

text: I need to draw a lot of 3D cylinders with different dimensions. Has anyone maybe already defined a command like `\3Dcylinder{x}{y}{z}`? I found 3D bodies in TikZ and tried the third answer. But I don't understand how the parameters work. Also I found Drawing simple 3D cylinders in TikZ. But I don't know how to use it to easily draw a bunch of different cylinders.


title: Is there a way to set the text of a multipart node using \tikzset?

text: In order to create a parameterized split node, I would like to use arguments in the node parts. Here is what I did:               \tikzset{threeParts/.style n args={3}{%         rectangle split,         rectangle split horizontal,          rectangle split parts=3,         draw,         whichKeyShouldIuseHere={          nodepart{one} {#1}          nodepart{two} {#2}          nodepart{three} {#3}},      }}          \begin{tikzpicture}       \path  node[threeParts={1,2,3}];     \end{tikzpicture}      but this does not work, and I could not find the correct key to be used for filling in the curly brackets of the node.


title: using \nameref only if there is a name

text: I am referencing some sections (actually those will be custom defined in the end) by number, type and name. But it happens that there is no name. So I want to leave it out. How can I test for that? A MWE:               \documentclass{article}          \usepackage{xcolor}     \definecolor{darkred}{rgb}{0.5,0,0}     \usepackage[colorlinks, linkcolor=darkred]{hyperref}     \newcommand\doubleref[1]{\autoref{#1} (\nameref{#1})}          \begin{document}          \section{This and That about Everything}\label{sec:thisthat}         Some text.          \section{}\label{sec:two}         Like meantioned in \doubleref{sec:thisthat} and \doubleref{sec:two}.          \end{document}      So in this example the second reference should automatically only be _section 2_ and not _section 2 ()_. I tried               \newcommand\doubleref[1]{\autoref{#1}\edef\nae@tmp{\nameref{#1}}\ifx\empty\name@tmp\relax\else\ (\name@tmp)\fi}      but `\nameref` does not seem to return an expandable version of the name.


How do I enumerate sections with numbers and subsections with letters like this:   1. This is a section A. This is a subsection B. This is another subsection. Thanks


title: How to overlay a TikZ picture on a TikZ picture generated by a macro?

text: I am a beginner in LaTeX, tentatively using it for industrial documents. I am facing a lot of trouble trying to add some simple Tikz graphics to a series of Tikz pictures (very complicated, with lots of code and numerous arguments in each) generated by a series of macros. I would like to add to them additional notes with arrows, and occasionnaly, include the combined resulting graphics into figures with captions. It seemed to me that the "remember picture, overlay" option would do the job. Below is an overly simplified example. However I cannot understand how the coordinate system of the second picture relates to the first picture. I have tentatively tried to add "remember picture, overlay" to the macro generating the first picture, but without improvements... Could someone explain, and advise a path forward?               \documentclass[dvipsnames]{article}     \usepackage{tikz}     \tikzstyle{wired}=[draw=gray!30, line width=0.15mm]     \tikzstyle{number}=[anchor=center, color=white]     \newcommand{\strip}[4]{         \filldraw[#1, wired]           ({18 *  #2}      :                   #3) arc           ({18 *  #2}      : {18 * (#2 + 1)} : #3) --           ({18 * (#2 + 1)} :                   #4) arc           ({18 * (#2 + 1)} : {18 *  #2}      : #4) -- cycle;     }     \newcommand{\sector}[3]{         \filldraw[#1, wired]           (0, 0) --           ({18 * #2} :                   #3) arc           ({18 * #2} : {18 * (#2 + 1)} : #3) -- cycle;     }     \newcommand{\DrawShape}[0]{%     \centering     \begin{tikzpicture}[rotate=81, scale=.2, remember picture, overlay]       \fill[gray!50] (0, 0) circle (225.5mm);       \foreach\i in {1,3,...,19} {         \sector{white}{\i}{162mm}       }      \end{tikzpicture}     }%     \begin{document}          \DrawShape          \begin{tikzpicture}[scale=8]     \begin{scope}[remember picture,overlay]     \coordinate (n1) at (0, 0);     \node[draw,font=\small,inner sep=5pt, anchor=west] (n1x) at (0.6,0) {\textbf{Optimum location}};      \draw[<-, >=latex,line width =5 pt, red] (n1) -- (n1x.west);     \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);     \foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; }     \foreach \y in {0,1,...,9} { \node [draw] at (0,\y/10) {0.\y}; }     \end{scope}     \end{tikzpicture}          \vspace{10cm}     \DrawShape          \begin{figure}[ht]     \begin{tikzpicture}[scale=8]     \begin{scope}[remember picture,overlay]     \coordinate (n1) at (0, 0);     \node[draw,font=\small,inner sep=5pt, anchor=west] (n1x) at (0.6,0) {\textbf{Optimum location}};      \draw[<-, >=latex,line width =5 pt, red] (n1) -- (n1x.west);     \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);     \foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; }     \foreach \y in {0,1,...,9} { \node [draw] at (0,\y/10) {0.\y}; }     \end{scope}     \end{tikzpicture}     \caption{An embarassing shift of the coordinate system and caption position \dots}     \end{figure}     \end{document}


title: Alternate multicolumn

text: Is there a nice way to use `\multicolumn` in alternate rows in a table. i.e.,               \begin{tabular}{| l  r |}     \hline       item 1  & item 2\\       \multicolumn{2}{|c|}{item3}\\            item 1  & item 2\\       \multicolumn{2}{|c|}{item3}\\            item 1  & item 2\\       \multicolumn{2}{|c|}{item3}\\     \hline     \end{tabular}      Expected output: ![](http://i.stack.imgur.com/9upzn.png)


title: how to insert images using Texworks?

text: I'm using TexWorks to compile a math article and want to add some PNG images in between. As is said on LaTeX/Importing Graphics -- Including graphics   1. I've included the graphicx package   2. and at the place where I want the image to be, I've used `\includegraphics{myimage}` The image file and `.tex` file, both are on the desktop. The error shown is:               ! LaTeX Error: File `myimage' not found.      I'm a complete novice in TeX. So, please explain in detail but in simple terms.


title: Vertical page setting using memoir

text: I'm trying to adjust the `A5` layout shipped with `memoir`. To that end consider the following MWE:               \documentclass[9pt,a5paper,extrafontsizes,twoside]{memoir}     \fixpdflayout     \usepackage{lipsum}     \begin{document}     \lipsum[1-20]     \end{document}      which yields: ![enter image description here](http://i.stack.imgur.com/KRyDX.png) My goal is to decrease the upper and lower margins. First, in order to have a               high\settypeblocksize{*}{\lxvchars}{1.618}      to the preamble. This yields: ![enter image description here](http://i.stack.imgur.com/YKZPq.png) So far so good... Now I try to translate the block upwards, and this is where I fail. As far as I can understand the manual I have to add something like `\setulmargins{30pt}{*}{*}`. But this seems to have no (visual) effect (regardless of the value I use). I guess this is a simple one, but I just couldn't manage to solve it. **How can I reduce the whitespace at the top of the page?**


title: Polyglot note-keeping?

text: I sometimes give roughly the same course in different languages, and update my TeX notes (if any) each time. Keeping all sets of notes current is a pain (and doesn´t always get done). Does anybody know of a system for keeping and updating the same math document in different languages? The text would vary and the math would be the same, except for eventual changes in order due to differences in sentence structure.


title: Outlining (filling) glyph outline with text in TikZ

text: ## Original question Is there any automated or semi-automated way of tracing outermost outline or whole path of letters in TikZ? That I would be able (e.g. by using positioned nodes) to draw `a` letter using `a` letters, like shown below in my ascii-art (agreed, not really an art in this case):                  aaaaaaaa       aaaaaaaaaa      aa        aa                  aa        aaaaaaaa aa       aaaaaaaaaaaa      aa        aaa      aaaaaaaaaaaaa       aaaaaaaaa  aa      ### Comment Martin's note made me certain what I already suspected, that within PGF/TikZ I am unable to trace any glyph from any font. IOW getting outline of glyph in a format supported by TikZ is a separate issue, rather not TeX-related, but worth being mentioned here. ## Preliminary ### Obtaining glyph outline Let me summarize already mentioned techniques toward getting it to TikZ:   * Inkscape + inkscape2tikz extension for exporting glyph to TikZ commands (provided by Azoun)   * FontForge for exporting to SVG (provided by Andrew) ### Obtaining glyph "filling" It's something I wasn't asking at all, but it's other interesting idea that was brought up in answers:   * convert for exporting glyph to text form and `sed` for cleaning it (provided by Jake) ## Revised question Mentioned earlier tracing is now part of preliminary process, as glyph outline (which can be any other path, but I'll stick with this particular example) is assumed to be known, so question should be rephrased. > What are the techniques available in TikZ to outline (fill) glyph outline > with text [like one letter]? Support for diversification of outline/fill style depending on "density" and in-path "neighborhood" (e.g. style changing in case of serifs, bent parts, etc. would be a nice feature. _I'm mostly interested in TikZ, but if you want to share non-TikZ solutions, do it immediately!_ ### Supplementary question > If you know or just came up with not described yet method of obtaining glyph > outline (or "filling") and you think it's interesting or simply worth to be > mentioned, tell us about it. * * * ## Afterword, i.e. paragraph about myself Maybe I should add that I'm really new to PGF/TikZ. Even though I was using LaTeX for about ~8 years already (with various frequency, so I am far from being an expert), I never really get to TikZ. Back in the old days I did some work with PSTricks, but frankly speaking I forgot all of that since then. I saw TikZ examples a few years ago and was amazed how PGF/TikZ can provide nice abstractions for performing different drawing tasks. Lately I had to touch TikZ and meanwhile I started to think about using it in less common way, i.e. for creating some "artistic" drawings instead of plain diagrams, sketches and whatever it is used usually. PGF/TikZ manual is great, no question, but you must know what to look for and even if you know that, your wording maybe not exactly the same as used in the documentation, which makes finding sometimes hard (it's true especially for non-native English speaker, as in my case). You may say: just browse it! Sure, but ~700 pages is pretty much, so it's rather not something you will read and understand _well_ even within month (correct me if I am wrong). Sorry for too long OT paragraph, but it should clear some things, because it's not like I am unwilling to look to manual myself, just sometimes it's far more productive to ask experts, because they have invaluable things that cannot be found in manual - _experience_ and _better intuition_!


title: Exactly 27 errors?

text: Just for fun. In this question I have 3 errors running this code with \toprule and \midrule in a table... If include booktabs package in my preamble, I have 9 errors OP triples number of errors by adding a package. Is it possible to add another package to obtain exactly 27 errors from her code?


title: Uneven vertical alignment with $\in$

text: Here's a simple example:               \documentclass{article}          \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amssymb}     \usepackage{commath}          \newcommand{\st}{\text{ s.t. }}          \begin{document}     \[         (x_n) \text{ converges to } a         \iff         \forall \epsilon > 0 \;         \exists N \in \mathbb{N} \;         \st \forall n > N \;         \abs{x_n - a} < \epsilon     \]     \end{document}      And the rendered output: ![output](http://i.stack.imgur.com/JVd18.png) Why is `\in` being placed below everything else? Also, is there a way to "nicely" include `\forall` and `\exists` without manually spacing them with `\;` and `\,`?


title: Objects that are bigger than others inside a matrix

text: I wonder, if possible, how to create a matrix that looks like this: ![http://imageshack.us/photo/my- images/36/matrixbw.jpg/](http://i.stack.imgur.com/XfnL9.jpg)


title: tikz picture: draw opacity vs fill opacity?

text: \documentclass{article}     \usepackage{tikz}          \begin{document}     \pagenumbering{gobble}          \hskip-1.25in     \begin{tikzpicture}[thick,fill opacity=.4,draw opacity=1]     %\draw[step=1cm] (-9,-9) grid (9,9);     %\filldraw[fill=black,fill opacity=1] (0,0) circle (.5mm);     \draw[fill=yellow] (-9,-8) rectangle (9,8);     \draw[fill=orange,dashed] (-3,-5) rectangle (9,5);     \draw[fill=green,dotted] (-3,-4) rectangle (5,4);     \draw[fill=red] (-9,-6) rectangle (2,6);     \draw[fill=blue] (-6,-2) rectangle (0,2);     \end{tikzpicture}          \end{document}      leaves the borders of the superimposed rectangles with different thicknesses/opacities (as you can see below). ![enter image description here](http://i.stack.imgur.com/m1358.png) How can I set the thicknesses of each rectangle to show up through the more transparent fill? I thought this is what draw opacity=1 would accomplish.


title: Change separator between maintitle and title in biblatex

text: I've figured out how to change the separator between the title and a subtitle in `biblatex` by using `\subtitlepunct` (as in the entry for Larsen 1907 below), but how can I introduce the same tweak for the separator between a maintitle and a title (as in the entry for Bülbring 1902 below)?               \documentclass{article}     \usepackage{fontspec}     \usepackage[style=authoryear]{biblatex}     \renewcommand{\subtitlepunct}{\addcolon\addspace}     \begin{filecontents}{\jobname.bib}     @BOOK{bulbring1902,         AUTHOR = "Karl D. Bülbring",         TITLE = "Lautlehre",         YEAR = "1902",         LOCATION = "Heidelberg",         MAINTITLE = "Altenglisches Elementarbuch",         NUMBER = "4",         PART = "1",         PUBLISHER = "Carl Winter's Universitätsbuchhandlung",         SERIES = "Sammlung germanischer Elementarbücher. I. Reihe: Grammatiken"}     @BOOK{larsen1907,         AUTHOR = "Amund B. Larsen",         TITLE = "Kristiania bymål",         YEAR = "1907",         LOCATION = "Kristiania",         PUBLISHER = "Cammermeyers boghandel",         SUBTITLE = "Vulgærsproget med henblik på den utvungne dagligtale"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \nocite{bulbring1902}\nocite{larsen1907}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/pXMZ4.png)


title: LuaLaTeX issue with string (need to escape)

text: > **Possible Duplicate:**   >  Print large macro block from Lua to TeX I need to escape a string in Lua code in LuaLaTeX. I'm trying to print a string but LaTeX seems to hiccup on some special characters. I know I can call `\luatexluaescapestring` from inside text but I need an equivalent function in Lua that will either remove the offending characters or escape them properly.


title: Positioning 4 figures in to two pair on one line

text: currently I have something that looks like; ![enter image description here](http://i.stack.imgur.com/6pusr.png) These images have come from epslatex plots from gnuplot. So my code looks like                \documentclass{article}      \usepackage{subcaption}      \begin{document}      \begin{figure}[H]      \hspace{-5.2em}      \begin{subfigure}{.5\textwidth}      \input{initialpolar1.tex}       \label{fig:sub1}      \end{subfigure}%      \begin{subfigure}{.5\textwidth}       \input{finalpolar1.tex}      \label{fig:sub2}      \end{subfigure}      \caption{These two next to each other.}      \label{fig9}      \end{figure}           \begin{figure}[H]      \hspace{-5.2em}      \begin{subfigure}{.5\textwidth}      \input{initialpolar2.tex}      \label{fig:sub1}      \end{subfigure}%      \begin{subfigure}{.5\textwidth}      \input{finalpolar2.tex}      \label{fig:sub2}       \end{subfigure}      \caption{And these two.}      \label{fig9}           \end{figure}      \end{document}      How would I get this so that the top two pictures are next to each other? (basically so that the left of the right graph touches the colourbox label numbers of the left). And the bottom two pictures. And then place both pairs on the same line but separated by a distance? Then the whole thing centred in the page. i.e. I want to go from A B C D to AB CD Putting fbox around my images I get something like this ![enter image description here](http://i.stack.imgur.com/Nph7l.jpg) Could this cause issues with what I need to achieve?


title: Why is the ledmac line number misaligned with the final item?

text: Here's a minimal document showing the problem:               \documentclass{article}          \usepackage{ledmac}          \begin{document}          \firstlinenum{1}     \linenumincrement{1}     \beginnumbering     \pstart     \begin{itemize}     \item This item aligns with the line number...     \item ... but the line number is far below this item.     \end{itemize}     \pend     \endnumbering          \end{document}      The document turns out like this:               1 · This item aligns with the line number...       · ... but the line number is far below this item.     2      Note that: a) it's always the _last_ item in a list, b) the line _is_ aligned if you add a newline (`\\\`) at the end of the last item (but you get another line number, which looks odd), c) the line _is_ aligned if you add text between `\end{itemize}` and `\pend`, d) and the line is _not_ aligned if you simply add text after `\pend`. So why does this happen and how can I fix the problem?


title: Positioning logo in the front page as well as slides

text: **Question 1:** I am creating a slide template for a presentation in LaTex using Beamer package. I found the placement of logo in the slide is not that easy. Instead of placing the logo in the same position throughout the slides, I want to place the logo in the middle or a bit up from the middle in the title slide. Is it possible? **Question 2:** In the slides after the titleslide I want to have the logo in the top right corner. So, I put this command,               \logo{\includegraphics[height=0.8cm]{logo.eps}\vspace{220pt}}      It went well: ![Logo visible](http://i.stack.imgur.com/sMAki.jpg) However, if I change the color of the top bar then the logo goes behind the bar and it's no longer visible: ![Logo not visible anymore](http://i.stack.imgur.com/uk83W.jpg) Is there any way by which I can put the logo on the top?