title: Bump right-aligned text to next line iff no room within a \savebox

text: This is a follow up to my earlier question Bump right-aligned text to next line iff no room. The difference now is that I need to place this formatted text within a `\savebox`. In my actual use case, for performance reasons, I am caching the text that needs to follow existing text (i.e., on the same line), and this cached text contains some text that is to be right aligned to the edge of the page. I attempted to use all four solutions at Bump right-aligned text to next line iff no room along with a simple `\hfill`. These all seems to work when used outside of the `\savebox`, but not when inside the `\savebox`: ![enter image description here](http://i.stack.imgur.com/pwINw.png) ## Notes:   * I can _not_ use `\parbox{\linewidth}{}` as I don't know where on the line the `\savebox` will start. That is, there is text on the same line _before_ the `\usebox` is applied.   * The desired version would have the `XXX` aligned on the right as is the `ZZZ` text. ## Code:               \documentclass{article}     \usepackage{showframe}          \newsavebox{\MyCachedResults}          % The following are from     %    http://tex.stackexchange.com/questions/91548/bump-right-aligned-text-to-next-line-iff-no-room          \newcommand*{\BumpCarlisle}[1]{% http://tex.stackexchange.com/a/91556/4301         {\rightskip\fill\parfillskip-\rightskip         \linepenalty100         \exhyphenpenalty0         \linebreak[0] % <-- Need space here         %Space before \hspace* allows for a break before it         \hspace*{\fill}#1}%     }          \newcommand*{\FillLineEgreg}[1]{% http://tex.stackexchange.com/a/91564/4301         {%             \nobreak\hfill\penalty50\hskip1em\null\nobreak             \hfill#1%             \parfillskip=0pt \finalhyphendemerits=0 \par%          }%     }               \newcommand{\signed}[1]{%http://tex.stackexchange.com/a/91563/4301         {%             \leavevmode\unskip\nobreak\hfil\penalty50\hskip2em             \hbox{}\nobreak\hfil#1%             \parfillskip=0pt \finalhyphendemerits=0 \endgraf%         }%     }          \newcommand*{\FillLineTohecz}[1]{%         \raggedright         \parfillskip-\rightskip         \looseness=-1 % <-- Need space here         %Space before \hspace* allows for a break before it         \hspace*{0pt plus 1fil}%         #1%      }          \begin{document}          \bigskip\noindent     \savebox{\MyCachedResults}{Inside Savebox Carlisle: \BumpCarlisle{XXX}}%     Outside Savebox Carlisle: \BumpCarlisle{ZZZ}\par     \noindent     Text \usebox{\MyCachedResults}%          \bigskip\noindent     \savebox{\MyCachedResults}{Inside Savebox egreg: \FillLineEgreg{XXX}}%     Outside Savebox egreg: \FillLineEgreg{ZZZ}\par     \noindent     Some Text \usebox{\MyCachedResults}%          \bigskip\noindent     \savebox{\MyCachedResults}{Inside Savebox Seamus: \signed{XXX}}%     Outside Savebox Seamus: \signed{ZZZ}\par     \noindent     A bit of text \usebox{\MyCachedResults}%          \bigskip\noindent     \savebox{\MyCachedResults}{Inside Savebox tohecz: \FillLineTohecz{XXX}}%     Outside Savebox tohecz: \FillLineTohecz{ZZZ}\par     \noindent     Text before the bump \usebox{\MyCachedResults}%               \bigskip\noindent     \savebox{\MyCachedResults}{Inside Savebox hfill: \hfill XXX}%     Outside Savebox hfill: \hfill ZZZ\par     \noindent     Some more text \usebox{\MyCachedResults}%          \end{document}


title: adding significance levels under regression result table

text: I have a table as the following:               \begin{table}[htbp]\centering     \caption{Dependent Variable: Enrollment}     \begin{tabular}{c c c c}     \hline\hline      \textbf{Variable} & \textbf{Model 1} & \textbf{Model 2} & \textbf{Model 3}\\ \hline     frl         &      -0.012   &      -0.052   &      -0.156** \\                 &      (0.04)   &      (0.06)   &      (0.06)   \\     minority    &               &       0.034   &       0.097*  \\                 &               &      (0.05)   &      (0.04)   \\     disting     &               &               &       0.439***\\                 &               &               &      (0.06)   \\     cons       &       0.529***&       0.530***&       0.518***\\                 &      (0.03)   &      (0.03)   &      (0.02)   \\     \hline  N           &     196   &     196   &     196   \\               R$^{2}$           &       0.001   &       0.003   &       0.235   \\     \hline     \end{tabular}     \end{table}      I would like to add the statistical significance stars bellow, but I can't seem to add code with three multicolumn. I tried adding the following at the end of the table but does not seem to work:               \bottomrule     \vspace{-3mm}\\     \multicolumn{3}{l}{\textsuperscript{***}$p<0.01$,        \textsuperscript{**}$p<0.05$,        \textsuperscript{*}$p<0.1$,       How could I add the textsuperscripts?


title: Installing Ghostscript and Convert-IM along with MacTex

text: Do someone of you know if the installation of Ghostscript and Convert-IM packages which come along with MacTex is mandatory? Are these packages useful or I can proceed without install them?


title: How to refer to same footnote twice in REVTeX?

text: I am using REVTeX 4.1 with BibTeX for references. The author guidelines for a journal state: > Authors should ensure that the journal article contains a reference in the > reference list as follows: > >   * See Supplemental Material at [URL will be inserted by publisher] for > [give brief description of material]. > I used the `\footnote` command to achieve this, as it produces extra entries in the references section by default. I would like to refer to the same Supplemental Material "reference" more than once. How can I achieve this? * * * Minimal example. In the real document I do have a `.bib` file too, not included here.               % proba.tex     \documentclass[footinbib]{revtex4-1}          \begin{document}     Some text here \footnote{Supplemental Material reference}. % produces ref. [1]          I would like to refer to the same Supplemental Material again here. % refer to [1] here somehow     \end{document}      Note that BibTeX _does_ need to be run for this minimal example to work, according to the REVTeX documentation, despite no `.bib` file being present here.               pdflatex proba     bibtex proba     pdflatex proba     pdflatex proba      ![enter image description here](http://i.stack.imgur.com/OXyMo.png) Perhaps the solution is not to use `\footnote` for this purpose. What should I use in that case?


title: How to install font "lmmath-regular.otf"?

text: I have downloaded a cv template from here, and I want to use it for my CV. This is the first time I am trying to use tex to do something. I have got stuck with the following error               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! fontspec error: "font-not-found"     !      ! The font "lmmath-regular.otf" cannot be found.     !      ! See the fontspec documentation for further information.     !      ! For immediate help type H <return>.     !...............................................       I have tried installing different fonts but situation is still same. I have tried reading different forums in the net but could not capture the point. Any help would be great.


title: An underline with texts one both ends of a line

text: I want to make a blank between texts on both ends of a line. For example,![a blank between texts on both ends of a line](http://i.stack.imgur.com/3SP7S.jpg)               \begin{enumerate}     \item There \hrulefill\ in the room.     \end{enumerate}      But, the above appears in student's version only, and I want to make a teacher's version where the answer is also printed in the blank. I don't have any idea but               \begin{enumerate}     \item There \underline{\makebox[100pt][l]{is a chair}} in the room.     \end{enumerate}      The method is not satisfactory because the length of the blank is unknown in advance. My problems:   1. How to put text on an `\hrulefill`?   2. (A bonus question) I found out that the vertical position of the horizontal rule generated by `\hrulefill` and `\underline` is different. How can I control the vertical position of these horizontal rules?


title: Custom table for own commands

text: I have created following four command and using them just below \section               \coursename{Mathematics for Biotechnology/Food Technology-I}     \credit{4}     \lecture{3}     \tutorial{1}     \lab{0}      I want to generate automatic table like:               ---------------------------------------------------------------------     S. No.     Subject Name                                    L    T    P    Credit     ---------------------------------------------------------------------     1.    Mathematics for Biotechnology/Food Technology-I      3    1    0      4     --------------------------------------------------------------------     2. ....     ---------------------------------------------------------------------      This table will appear just below chapter like environment. Thanks for any suggestion.


title: biblatex combined with refsection and List of Tables

text: I have the following problem: Some Tables have captions with references in them. This works, however, when I add a List of tables (and I'm using biblatex with refsection=chapter), this reference gets messed up in the List of tables (i.e., I get ['2] instead of 2. Is there a magic trick? Or can I even "hide" all the used references from captions in the List of Tables?                   \documentclass{scrreprt}     \usepackage[refsection=chapter]{biblatex}     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[ansinew]{inputenc}     \begin{filecontents}{biblio.bib}     @book{goossens93,         author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",         title = "The Latex Companion A",         year = "1993",         publisher = "Addison-Wesley",         address = "Reading, Massachusetts"          }          @article{greenwade93,          author = "George D. Greenwade",         title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",         year = "1993",         journal = "TUGBoat",         volume = "14",         number = "3",         pages = "342--351",                url=" www.ctan.org"     }          \end{filecontents}          \addbibresource{biblio.bib}          \begin{document}     \listoftables     \chapter{Test Chapter One}     \cite{goossens93}     \printbibliography[heading=subbibliography]          \chapter{Test Chapter Two}          \begin{table}     \caption{Tabelle mit \cite{goossens93}}     \centering     \begin{tabular}{lll}         \hline         \textbf{linke Spalte} & \textbf{mittlere Spalte} & \textbf{rechte Spalte} \\         \hline         i & ii & iii \\         \hline     \end{tabular}          \end{table}          \printbibliography[heading=subbibliography]          \end{document}      ![enter image description here](http://i.stack.imgur.com/bOD1h.png) ![enter image description here](http://i.stack.imgur.com/GR0Zr.png)


title: Using dash instead of point in headers

text: How can I set `-` instead of `.` as separator in headers?               1 Chap     1-1 Sec     1-2 Sec     1-2-1 SubSec     2 Chap     2-1 Sec      I use `XePersian` package. The following does not work:               \documentclass{book}          \renewcommand{\thesection}{\arabic{chapter}-\arabic{section}}     \usepackage{xepersian}     \begin{document}          \chapter{First}          \section{Test}          \end{document}


title: Problems installing MathTime Professional 2 font on TexLive

text: **June 2014 update** : on the basis of this page and the question here I have written an installer for the MathTime fonts that should work with Unix systems running TeX Live. The installer page is on my website. My script has been successfully tested on Ubuntu 14.04 w/ TeX Live 2013, and a two year old MacBook Air running OS X w/ TeX Live 2012. * * * Recently I've been trying to install the MathTime Professional 2 font (free Lite version). I'm using TeX Live on Ubuntu 12.04. I downloaded the files and copied them over to the folder `/usr/share/texmf- texlive/`. (The instructions suggested putting them in `/usr/share/texmf/`, but this didn't work for me.) After umpteen runs of `texhash`, `updmap` and `updmap-sys`, the `pdflatex` command can now find `mtpro2.map`. However now when I run `pdflatex` on a simple file               \documentclass{article}      \usepackage[scaled=0.92]{helvet}    % set Helvetica as the sans-serif font     \renewcommand{\rmdefault}{ptm}      % set Times as the default text font     \usepackage{amsmath}             \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}     \begin{document}     \section{A}     This is a test secton     $a$     \end{document}      I get the following error               (/usr/local/share/texmf/tex/latex/mtpro2/mtpro2.sty     (/usr/share/texmf-texlive/tex/latex/psnfss/ot1ptm.fd))     (./LaTeX Article MTPro2Lite.aux) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdft     ex.map}] (./LaTeX Article MTPro2Lite.aux)     kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 mt2mit     mktexpk: don't know how to create bitmap font for mt2mit.     kpathsea: Appending font creation commands to missfont.log.      )     !pdfTeX error: pdflatex (file mt2mit): Font mt2mit at 600 not found      ==> Fatal error occurred, no output PDF file produced!      I've been Googling for about an hour trying to a find a solution, but I've found nothing. Does anyone have any advice on how I might proceed? I'm a complete n00b when it comes to installing extras for LaTeX; sorry if this question is inappropriate. **Edit** : running `sudo updmap-sys --enable Map mtpro2.map` outputs:               updmap: This is updmap, version $Id: updmap 14402 2009-07-23 17:09:15Z karl $     updmap: using transcript file `/var/lib/texmf/web2c/updmap.log'     updmap: initial config file is `/var/lib/texmf/web2c/updmap.cfg'


title: Showing main website title in biblatex-apa bibliography

text: I'm using `biblatex-apa` and `biber` to write my research paper in APA format. I love using BibDesk and LaTeX compared to manually writing the bibliography in Pages, but I can't figure out the online bibliography types. The Purdue OWL has a sample of an online periodical article, > Brownlie, D. (2007). Toward effective poster presentations: An annotated > bibliography. _European Journal of Marketing, 41_ , 1245-1283. > doi:10.1108/03090560710821161 I can do this citation using the article type, but I would need a field for the DOI, how would I do this? Also, for regular websites, I need the website title to appear in italics. Using `biblatex-apa`, the title of the webpage is not set in italics...?


title: Problem with textcomp package

text: When I put `\usepackage{textcomp}` in the preamble, nothing seems to be added to my MiKTeX package database. Upon using `\textcopyleft` to insert a glyph from that character set, an ugly bitmap version of the copyleft character appears. Checking the "Comprehensive Latex Symbol List" reveals that in there is definitely a nice vectorized one, although it claims that the character is obtained from the `textcomp` package. Any ideas ?


title: How to draw (and paint) the Voronoi regions of a series of points using Tikz?

text: How can I draw (and paint) Voronoi regions of a series of points in plane using Tikz? How about if the points are in 3d space?


title: TikZ background not working

text: I am drawing a block diagram with TikZ. While everything is working like a charm, I cannot draw in the background. My code is               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri,shadows}     \pgfdeclarelayer{background}     \newcommand{\eng}[1]{\latintext#1\greektext}          \tikzstyle{blockOrange}=[top color=white, bottom color=orange!60,     draw=orange!90!black!100, minimum size=1cm, rounded corners]     \tikzstyle{blockBrown}=[top color=white, bottom color=brown!60,   draw=brown!90!black!100, minimum size=1cm, rounded corners]     \tikzstyle{blockGray}=[top color=white, bottom color=gray!60, draw=gray!90!black!100,  minimum size=1cm, rounded corners]     \tikzstyle{blockBlack}=[top color=white, bottom color=black!60, draw=black!90!black!100, minimum size=1cm, rounded corners]          \begin{figure}%[H]%     \centering%     \begin{tikzpicture}[node distance=0.1cm,auto,>=latex']               %read-out     \node [blockOrange] (MM) {\eng{Detector}};     \node [blockBrown, right of=MM, node distance=3cm] (PRE) {\eng{Pre-Amp}};     \node [blockBrown, right of=PRE, node distance=3cm] (AMP) {\eng{Amplifier}};     \node [below of=AMP, node distance=2cm] (dummy1) {};     \node [blockBlack, right of=AMP, node distance=2.7cm] (MCA) {\eng{\textcolor{red}{MCA}}};     \node [blockGray, below of=MCA, node distance=2cm] (SCOPE) {\eng{Scope}};     \node [blockGray, above of=MCA, node distance=2.5cm] (PC) {\eng{\textcolor{red}{PC}}};          \path[->] (MM) edge node {strips} (PRE);     \path[->] (PRE) edge node {energy} (AMP);     \path[->] (AMP) edge node {bipolar} (MCA);     \path[->] (MCA) edge node {} (PC);     \draw (7.3,0) -- (7.3,-2);     \draw[->] (7.3,-2) -- (8.1,-2);     \draw node at (7.9,-1) {\textcolor{red}{balun}};          \begin{pgfonlayer}{background}              %Read Out            \path (PRE.east |- PRE.north)+(1,0.3) node (e) {};         \path (SCOPE.south -| SCOPE.west)+(-0.8,-0.3) node (f) {};              \path[top color=white, bottom color=red!60, draw=red!90!black!100, dashed, rounded corners, thick]             (e) rectangle (f);          \end{pgfonlayer}          \end{tikzpicture}     \caption{Block Diagram}     \label{fig:blockGain}%     \end{figure}          \end{document}      Any ideas on that? My output is ![](http://i.imgur.com/mtdBV.png) * * * This is the `\listitem` output straight from the `.log` file                *File List*     subfiles.cls    2002/06/08 Federico Garcia     verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements         main.tex     filecontents.sty    2009/03/17 v1.2 Create an external file from within a LaTeX      document         book.cls    2007/10/19 v1.4h Standard LaTeX document class         bk11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)        babel.sty    2008/07/06 v3.8l The Babel package      bblopts.cfg    2005/09/08 v0.1 add Arabic and Farsi to "declared" options of b     abel      english.ldf    2005/03/30 v3.3o English support from the babel system        greek.ldf    2005/03/30 v1.3l Greek support from the babel system       lgrenc.def    2008/06/17 v2.3 Greek Encoding     inputenc.sty    2008/03/30 v1.1d Input encoding file     iso-8859-7.def    2000/05/28 v1.2 Greek input encoding file     kerkis.sty    2000/02/25 v1.5 Package `kerkis.sty'      amsmath.sty    2000/07/18 v2.13 AMS math features      amstext.sty    2000/06/29 v2.01       amsgen.sty    1999/11/30 v2.0       amsbsy.sty    1999/11/29 v1.2d       amsopn.sty    1999/12/14 v2.01 operator names      amssymb.sty    2009/06/22 v3.00      amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support      amsthm.sty    2004/08/06 v2.20     resizegather.sty    2010/03/01 v1.2 Automatically resizing of too large equatio     ns (HO)     kvoptions.sty    2010/02/22 v3.7 Keyval support for LaTeX options (HO)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     kvsetkeys.sty    2010/03/01 v1.9 Key value parser (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)     etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive       pdftex.def    2010/02/14 v0.04n Graphics/color for pdfTeX        units.sty    1998/08/04 v0.9b Typesetting units       ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     nicefrac.sty    1998/08/04 v0.9b Nice fractions        array.sty    2008/09/09 v2.4c Tabular extension package (FMi)       framed.sty    2007/10/04 v 0.95: framed or shaded text with page breaks     extarrows.sty    2008/05/15 v1.0b Some extensible arrows       cancel.sty    2000/03/12 v2.1 Cancel math terms     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     geometry.sty    2010/03/13 v5.3 Page Geometry        ifpdf.sty    2010/01/28 v2.1 Provides the ifpdf switch (HO)       ifvtex.sty    2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)     geometry.cfg     fncychap.sty    2007/07/30 v1.34 LaTeX package (Revised chapters)     fancybox.sty    2010/05/15 1.4     fancyhdr.sty         colortbl.sty    2001/02/13 v0.1j Color table columns (DPC)        color.sty    1999/02/16        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive     footmisc.sty    2011/06/06 v5.5b a miscellany of footnote facilities     subfiles.sty    2002/06/08 Federico Garcia        float.sty    2001/11/08 v1.3d Float enhancements (AL)     slashbox.sty          tocloft.sty    2010/10/13 v2.3e parameterised ToC, etc., typesetting      hyperref.sty    2010/03/30 v6.80u Hypertext links for LaTeX       ltxcmds.sty    2010/04/08 v1.5 LaTeX kernel commands for general use (HO)      pdfescape.sty    2010/03/01 v1.9 Provides hex, PDF name and string conversions      (HO)     pdftexcmds.sty    2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional      hycolor.sty    2009/12/12 v1.6 Color options of hyperref/bookmark (HO)     xcolor-patch.sty    2009/12/12 xcolor patch     letltxmacro.sty    2008/06/24 v1.3 Let assignment for LaTeX macros (HO)       pd1enc.def    2010/03/30 v6.80u Hyperref: PDFDocEncoding definition (HO)      intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       bitset.sty    2007/09/28 v1.0 Data type bit set (HO)     bigintcalc.sty    2007/11/11 v1.1 Expandable big integer calculations (HO)     atbegshi.sty    2010/03/25 v1.12 At begin shipout hook (HO)      hpdftex.def    2010/03/30 v6.80u Hyperref driver for pdfTeX     atveryend.sty    2010/03/24 v1.5 Hooks at very end of document (HO)     rerunfilecheck.sty    2010/03/16 v1.6 Rerun checks for auxiliary files (HO)     uniquecounter.sty    2009/12/18 v1.1 Provides unlimited unique counter (HO)     subfigure.sty    2002/07/30 v2.1.4 subfigure package     subfigure.cfg      wrapfig.sty    2003/01/31  v 3.6     rotating.sty    2009/03/28 v2.16a rotated objects in LaTeX       lscape.sty    2000/10/22 v3.01 Landscape Pages (DPC)     fancyvrb.sty    2008/02/07     listings.sty    2007/02/22 1.4 (Carsten Heinz)      lstmisc.sty    2007/02/22 1.4 (Carsten Heinz)     listings.cfg    2007/02/22 1.4 listings configuration     textcomp.sty    2005/09/27 v1.99g Standard LaTeX package       ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file     lstlang1.sty    2004/09/05 1.3 listings language file     pifont.sty    2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)          upzd.fd    2001/06/04 font definitions for U/pzd.         upsy.fd    2001/06/04 font definitions for U/psy.       feynmp.sty    1996/12/02 v1.08 LaTeX/MetaPost Feynman Diagram Package (ohl)         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex     circuitikz.sty    2009/11/18 The CircuiTikz circuit drawing package version 0.2.4         multicol.sty    2008/12/05 v1.6h multicolumn formatting (FMi)     enumitem.sty    2011/07/14 v3.3 Customized lists      makeidx.sty    2000/03/29 v1.0m Standard LaTeX package     booktabs.sty    2005/04/14 v1.61803 publication quality tables       lgrcmr.fd    2008/06/17 v2.3 Greek Computer Modern       ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions       ot1mak.fd       lgrmak.fd       supp-pdf.tex      nameref.sty    2010/01/25 v2.36 Cross-referencing by name of section     refcount.sty    2008/08/11 v3.1 Data extraction from references (HO)     gettitlestring.sty    2009/12/18 v1.3 Cleanup title references (HO)     chapter4.out     chapter4.out     lgrmaksf.fd         umsa.fd    2009/06/22 v3.00 AMS symbols A         umsb.fd    2009/06/22 v3.00 AMS symbols B      ***********          )      * * * I have forgoten to add `\usetikzlibrary{backgrounds}` in main's preamble... When I did something really weird happened... Rectangles are not filled with color, background rextangles are not filled with color as well and you can see some shading float around page. ![](http://i.imgur.com/QQzvf.png) I don't have a clue on what's going on...


title: How can I force hyphenation in chapter titles?

text: I have a (German and English) document, which uses the scrbook class fromt he KOMA package, with long German words in the chapter titles. I would like Latex to hyphenate those words when necessary, but I do not know how to do this. A minimal example looks like this:               \documentclass{scrbook}     \usepackage[ngerman,english]{babel}     \selectlanguage{ngerman}     \hyphenation{men-schen-rechts-ana-logen}     \selectlanguage{english}     \hyphenation{}     \begin{document}     \selectlanguage{ngerman}     \chapter{Noch viel viel mehr zu menschenrechtsanalogen Dingen}     \chapter{Noch viel viel mehr zu men\-schen\-rechts\-ana\-logen Dingen}     \end{document}      I run it with `xelatex hyph.tex` and I get a chapter line like this: ![enter image description here](http://i.stack.imgur.com/vvxvN.png) and I would like to have the word "menschenrechtsanalogen" to get hyphenated.


title: How to put a figure on below paragraph in latex

text: I want put figure below the paragraph in Latex (one page) i use winshell but always it's apply the figure above the paragraph note: there is enough space to put figure I want to put figure below the paragraph in one page both figure and paragraph should be in one page but always figure go above how solve this               \begin{figure}           \centering          \includegraphics[width=4in]{image}          \caption[my image ]          {Imy image}          \end{figure}


title: TikZ - bug in \pgfarrowsdeclarecombine*?

text: Can someone tell me if the following is a bug? MWE:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows}     \pgfarrowsdeclarecombine{onetwo}{onetwo}{triangle 45}{triangle 45}{open triangle 90}{open triangle 90}     \pgfarrowsdeclarecombine*{twothree}{twothree}{open triangle 90}{open triangle 90}{triangle 45}{triangle 45}     \pgfarrowsdeclarecombine*{onetwo three}{onetwo three}{onetwo}{onetwo}{triangle 45}{triangle 45}     \pgfarrowsdeclarecombine{one twothree}{one twothree}{triangle 45}{triangle 45}{twothree}{twothree}     \begin{document}     \begin{tikzpicture}     \draw[-onetwo] (0,3) -- (2,3);     \draw[-twothree] (0,2) -- (2,2);     \draw[-onetwo three] (0,1) -- (2,1);     \draw[-one twothree] (0,0) -- (2,0);     \end{tikzpicture}     \end{document}      The third and fourth combinations differ even though they are the same up to associativity. In the fourth combination, a gap appears between the leftmost triangle and the middle (open) triangle. I don't think this gap should be there. I believe the problem is in the definition of the second combination, `twothree`, specifically that its "left extend" (cf. manual section 74.2 under "The left and right extend") is wrong. According to the manual, `\pgfarrowsdeclarecombine*` should make the line end before the inner arrow tip, which in this case is `open triangle 90`. So the left extend should be that of the inner tip. AFAICT, in `pgfcorearrows.code.tex`, the left extend is stored in `\pgf@arrow@left@<name of arrow tip>`. So I added the following code to the end of the above document:               \makeatletter     \texttt{\expandafter\meaning\csname pgf@arrow@left@open triangle 90\endcsname}\par     \texttt{\expandafter\meaning\csname pgf@arrow@left@triangle 45\endcsname}\par     \texttt{\expandafter\meaning\csname pgf@arrow@left@twothree\endcsname}\par      The result shows that the second and third lines are the same, i.e. the left extend of `twothree` is that of the outer tip, namely `triangle 45`. Does it look like a genuine bug, and if so, has anyone run into/worked around it before?


title: modifying .aux output \bibdata, using biblatex/bibtex8 with a build directory

text: I want to use `biblatex` and I get got an error when using `bibtex8` (or other backend, doesn't matter). I already identified the problem: I am using a 'build' direcotry. So my file stucture is:               myfile.tex     mybib.bib     /build [all copiled files go here, including myfile.aux and myfile-blx.bib]      in my `.tex` I have:               \addbibresource{mybib.bib}      which produces the following in the `.aux` file:               \bibdata{myfile-blx,mybib}      now `bibtex8` is run from the base directory with (Texmaker):               bibtex8 --wolfgang build/%      it correctly finds the `.aux` file and the `mybib.bib` file but not the `-blx.bib` file. I have three workarounds so far:   * not using a build directory so everything is in one directory (i don't like that)   * manually copy the `-blx.bib` file to the parent directory after running (pdf)latex   * manually editing the `.aux` file to: `\bibdata{build/myfile-blx,mybib}` Obviously none of them desireable. So how can I get this line in my `.aux` file automatically?               \bibdata{build/myfile-blx,mybib}      EDIT 2012-09-04: @Kurt: Thanks for you tip! @PLK: I would try to use `biber`. But I am working with this on two machines. And the main workstation is Windows 7 64 bit, and there is no binary for that on the biber homepage. And the 32 bit does not execute. @Kurt(2): I am running on [Windows 7, 64 bit, miktex, texmaker, jabref] mainly and also on [xubuntu, 32 bit, texlive, texmaker, jabref]. I personaly think a minimal example is not that helpfull since everything compiles without any errors unless i'am using a build directory. MWE:               \documentclass[a4paper, fontsize=12pt]{scrartcl}     \usepackage{filecontents}     \begin{filecontents}{mybib.bib}     % This file was created with JabRef 2.8.1.     % Encoding: ISO8859_1          @ARTICLE{author2010,       author = {Some Author},       title = {Fancy Title},       journal = {Another Journal},       year = {2010},       volume = {91},       pages = {229-261},       number = {2},       timestamp = {2012.09.01}     }          @comment{jabref-meta: selector_review:}          @comment{jabref-meta: selector_publisher:}          @comment{jabref-meta: selector_author:}          @comment{jabref-meta: selector_journal:}          @comment{jabref-meta: selector_keywords:}     \end{filecontents}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}      \usepackage[ngerman]{babel}          \usepackage{csquotes}     \usepackage[backend=bibtex8,bibencoding=latin1]{biblatex}     \addbibresource{mybib.bib}          \begin{document}          \section{Section}     Lots of text.     \footnote[111]{\cite[S.~250--255]{author2010}}          \printbibliography          \end{document}      As said above everything runs without any error without a build dirctory. When I use a build directory the first `pdflatex` run works fine. And then `bibtex8` produces the following error/output in the `./build/myfile.blg` file:               The 8-bit codepage and sorting file: 88591lat.csf     The top-level auxiliary file: build/myfile.aux     The style file: biblatex.bst     I couldn't open database file myfile-blx.bib     ---line 4 of file build/myfile.aux      : \bibdata{myfile-blx      :                    ,mybib}     I'm skipping whatever remains of this command      This is because it expects `myfile-blx.bib` and `mybib.bib` to be both in the parent directory `./`. As stated above i can workaround by maually editig the `.aux` file before running `bibtex8`. When I do that it runs without errors.


title: sidewaystable in the list of tables

text: Sorry if this question is silly but I am still kinda new to LaTeX. How can I manage a sidewaystable to appear in the `\listoftables`? My normal tables appear in the list but not the sideways one. Here's the code I'm using:               \begin{sidewaystable}\centering     \begin{adjustwidth}{-1in}{-1in}% adjust the L and R margins by 1 inch     \begin{scriptsize}     \label{Planificacion de tiempos}     \vspace{10pt}     \begin{center}     \begin{tabular}{|>{\columncolor[RGB]{192,217,217}} m{3 cm}|>{\columncolor[RGB]{219,219,112}}m{3 cm}|>{\columncolor[RGB]{192,217,217}} m{3 cm}|>{\columncolor[RGB]{219,219,112}}m{3 cm}|>{\columncolor[RGB]{192,217,217}} m{3 cm}|>{\columncolor[RGB]{219,219,112}}m{3 cm}|} \hline     \begin{center}\textbf{Proyecto de explotar la imagen del producto}}\end{center} & \begin{center}\textbf{Proyecto integral de servicios}\end{center} & \begin{center}\textbf{Proyecto posicionar la imagen de la empresa en el mercado}\end{center} & \begin{center}\textbf{Proyecto de incremento de infraestructura}\end{center} & \begin{center}\textbf{Proyecto de capacitacion y desarrollo}\end{center} & \begin{center}\textbf{Proyecto de gestion de procdimientos}\end{center} \\ \hline          Mejor rendimiento / km & Trato personalizado & Originalidad & Se cuenta con medios suficientes para llevar a cabo el trabajo & Capacitacion fuel Injetion & Diferentes tipos de distribucion \\ \hline %1     Durabilidad en el producto & Excelente trato & Puntualidad en la fecha de entrega de la moto & No hay rampas para descargar las motos & Mayor experiencia en los tecnicos & Identidad departamental \\ \hline %2     Motos Japonesas & Curso de manejo seguro de motocicletas & Prestigio de la marca & No hay herramienta suficiente & Enviar a una estancia  a los tecnicos & Control de almacen \\ \hline %3     Escases de motos en exhibicion & Felicitar en onomastico & Las mejores instalaciones de taller & Sin computadora para el taller & Crecimiento laboral & Reducir los requisitos para credito \\ \hline %4     &  Recibir cualquier marca de motos & La empresa sabe donde quiere ir & Falta de equipo & Mayor convivencia & Incrementar el volumen de ventas para obtener mayores utilidades \\ \hline %5      &  Realizar visitas mas constantes & Se brinda confianza y seguridad &  &  Falta de capacitacion por areas & Recuperar pagos vencidos \\ \hline %6      &  Ser complaciemnte con los clientes & Mayor penetracion en el mercado & & Sin cursos de ingles & Mayor accesibilidad en piezas \\ \hline %7      &  Mejorar el servicio postventa & Promocion de eventos &  & Poco personal de ventas para abrir mercado & Ofrecer buenos financiamientos \\ \hline %8      &  Dar confianza al cliente y total satisfaccion al cliente & Publicitar y comparar nuestros precios con la competencia &  & Falta de comunicación & Dar facilidades de credito \\ \hline %9      & Mejorar la calidad en el servicio & Satisfaccion en la marca y servicios &   & Comprension y entendimiento & Tener Variedad de Productos \\ \hline %10      & No hay transporte para motos & Convencer a los corporativos de compra &   &   & Implementar sustentabilidad \\ \hline %11     & Falta atencion y seguimiento & Promociones en genersal &   &   & Bajo stock \\ \hline %12      & Dejar ir al cliente & Presencia en las redes sociales &   &   & No hay pronostico de venta\\ \hline %13      & Debil negociacion con el cliente & Realizar tandas de motos &   &   & Incumplimiento del tiempo de entrega \\ \hline %14      & & Pocos eventos competitivos &   &   & Costo de servicio alto \\ \hline %15      & & Competencia en calidad con otras marcas &   &   & Deficiencia en el servicio interno \\ \hline %16      & & Precios de la competencia &   &   & La competencia tiene enganches menores \\ \hline %17     & & Falta de confianza &   &   &   \\ \hline %18     &  & Competidores (yamaha, honda) &   &   &   \\ \hline %19     &  & Frecuencia de los accidentes &   &   &   \\ \hline %20     \end{tabular}     \caption{Tabla comparativa de proyectos utilizados en la enseñanza de sistemas operativos.}     \end{center}     \end{scriptsize}     \end{adjustwidth}     \end{sidewaystable}      P.S.: The sideways table throws an error when compiling, but I ignore it and it show just like I want it, maybe it's related to that error?


title: monospaced fonts not respecting spaces?

text: Why does true type fonts consolidate spaces and is there any way to stop this? I need _easily_ add white space between words equal to the width of a space(which for monospace should be the same for all letters).               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{inconsolata}     \begin{document}     \catcode`_=11     \par\texttt{this is monospaced text    Where  are  the  spaces  ?    !!!}%     \par\texttt{this_is_monospaced_text____Where__are__the__spaces__?____!!!}     \end{document}      * * * update: Using `\obeyspaces` or `\verb` works BUT _something_ seems to be ruining the spacing:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{tikz}     \usepackage{fancyvrb}     \usetikzlibrary{matrix}          \begin{document}     \begin{tikzpicture}%     \matrix (m) [matrix of nodes, every node/.style={font=\ttfamily},%         row 1/.style={text width=7em, align=left,font=\ttfamily},         row 2/.style={text width=7em, align=left,font=\ttfamily},]         {             \verb+A  B  C  D +\\             \verb+Ac Ad Be Cf+\\         };     \end{tikzpicture}     \end{document}      The output looks like the monspace font is not used. * * * update2: Weird behavior: extra spaces between ? and !!!! Breaks the tikz matrix for some reason(remove tikzpicture to get it to work):               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{tikz}     \usepackage{fancyvrb}     \usetikzlibrary{matrix}          \begin{document}               \catcode`_=11     \par\obeyspaces{\texttt{this is monospaced text    Where  are  the  spaces  ?    !!!}}%     \par\texttt{this_is_monospaced_text____Where__are__the__spaces__?____!!!}     \catcode`_=8          \begin{tikzpicture}%     \matrix (m) [matrix of nodes, every node/.style={font=\ttfamily},%         row 1/.style={text width=7em, align=left,font=\ttfamily},         row 2/.style={text width=7em, align=left,font=\ttfamily},]         {             \verb+A  B  C  D +\\             \verb+Ac Ad Be Cf+\\         };     \end{tikzpicture}     \end{document}


title: How to insert a blank page depending on current page number?

text: I postprocess my PDF produced from my LaTeX-document through `pdfbook` and want to have the last page appear on the back cover. Thus, I need to have as many pages inserted before the last page so it gets onto a page number divisible by 4. I looked to this question but   1. that seems complicated, and   2. I do not want to add additional packages if I can do without them. Therefore my idea would be to add blank pages _before_ the last page, until it becomes 3 modulo 4. Pseudocode:   * _regular document text_   * if {current-page} % 4 != 3: `\newpage`   * if {current-page} % 4 != 3: `\newpage`   * if {current-page} % 4 != 3: `\newpage`   * _content of last page_ Is that feasible? How to code this in LaTeX?


title: Remove Contents from ToC in thesis class

text: I am currently using the thesis class as in `\documentclass[11pt, a4paper, oneside]{Thesis}` when I put the `tableofcontents` it creates a selfreference to it that I don't want. I have tried using `\tableofcontents*` with no success. Any other ideas? I've gotten the template from http://www.latextemplates.com/template/masters- doctoral-thesis


title: Nodes and matrix of nodes

text: I know thanks to @TorbjørnT. that messing with nodes and matrix of nodes is not recommended as you would no more be able to use `(m-1-1)` for a coordinate of a cell of a matrix `m`. (cf. Compilation problem with tikz diagram) Now my question is: I define a node shape like that               \newcommand{\bSum}[4]{      \node [draw=\linecolor, circle,minimum size=1.5em, \linetype, fill=\backgroundcolor, drop shadow={opacity=\dark}] (sum) at (0,0) {};      \node [draw, cross out, minimum size=1.0em, thin, draw=gray!50] {};      \node [above of= sum, node distance = 0.45em] () { \color{\colortext}\tiny{$#1$}};      \node [left of= sum, node distance = 0.45em] () { \color{\colortext}\tiny{$#2$}};      \node [below of= sum, node distance = 0.45em] () { \color{\colortext}\tiny{$#3$}};      \node [right of= sum, node distance = 0.45em] () { \color{\colortext}\tiny{$#4$}};      }      There is no way for me to use only `\draw` command to design such a shape because of its arguments. If I try to use this (now compilable) code, if I uncomment the `\draw ...` it won't work:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{matrix}     \usepgflibrary{shapes.misc}     \usetikzlibrary{arrows,shadows}          \newcommand{\bSum}[4]{      \node [draw, circle,minimum size=1.5em, fill=white, thick, drop shadow={opacity=1}] (sum) at (0,0) {};      \node [draw, cross out, minimum size=1.0em, thin, draw=gray!50] {};      \node [above of= sum, node distance = 0.45em] () {\tiny{$#1$}};      \node [left of= sum, node distance = 0.45em] () {\tiny{$#2$}};      \node [below of= sum, node distance = 0.45em] () {\tiny{$#3$}};      \node [right of= sum, node distance = 0.45em] () {\tiny{$#4$}};      }          \begin{document}     \begin{tikzpicture}         \matrix (m) [matrix of nodes, ampersand replacement=\&, column sep = 1.5cm, row sep = 1.2cm]{             \bSum{+}{+}{-}{}\\         };         %\draw (m-1-1) -- (0,0); % <- where it fails     \end{tikzpicture}          \end{document}      Does a trick exist to allow me to get the same result WITH the possibility to access to `(m-1-1)` ?


title: Using US Letter Paper with newlfm

text: I am using the newlfm package, and want my output to use a US Letter 8.5x11 page size. Unfortunately, I'm getting A4! I have the following documentclass declaration. The addition of "letterpaper" did not help.               \documentclass[stdletter, letterpaper]{newlfm}      I am new to LaTeX, so I'm still mostly lost. I checked a couple other projects, where the simple `\documentclass{article}` results in the 8.5x11 size being used. I am using MikTex 2.8 on WinXP.


title: Question Paper Template in LaTeX?

text: Want to make the Exams Question Paper in LaTeX?![enter image description here](http://i.stack.imgur.com/ecqMl.jpg)               \documentclass[11pt,paper=a4,answers]{exam}     \usepackage{graphicx,lastpage}     \usepackage{upgreek}     \usepackage{censor}     \censorruledepth=-.2ex     \censorruleheight=.1ex     \hyphenpenalty 10000     \usepackage[paperheight=10.5in,paperwidth=8.27in,bindingoffset=0in,left=0.8in,right=1in,     top=0.7in,bottom=1in,headsep=.5\baselineskip]{geometry}     \flushbottom     \usepackage[normalem]{ulem}     \renewcommand\ULthickness{2pt}   %%---> For changing thickness of underline     \setlength\ULdepth{1.5ex}%\maxdimen ---> For changing depth of underline     \renewcommand{\baselinestretch}{1}     \pagestyle{empty}          \pagestyle{headandfoot}     \headrule     \newcommand{\continuedmessage}{%     \ifcontinuation{\footnotesize Question \ContinuedQuestion\ continues\ldots}{}%      }     \runningheader{\footnotesize Mathematics}     {\footnotesize Mathematics --- Differential Geometry}     {\footnotesize Page \thepage\ of \numpages}     \footrule     \footer{\footnotesize Student's name:}     {}     {\ifincomplete{\footnotesize Question \IncompleteQuestion\ continues     on the next page\ldots}{\iflastpage{\footnotesize End of exam}{\footnotesize Please go        on to the next page\ldots}}}          \usepackage{cleveref}     \crefname{figure}{figure}{figures}     \crefname{question}{question}{questions}     %==============================================================     \begin{document}          %% \thispagestyle{empty}          \noindent     \begin{minipage}[l]{.1\textwidth}%     \noindent     \includegraphics[width=1.5\textwidth]{123}     \end{minipage}     \hfill     \begin{minipage}[r]{.68\textwidth}%     \begin{center}     {\large \bfseries DEPARTMENT OF MATHEMATICS \par     \Large Name of University \\[2pt]     \small Differential Geometry {(\small Code: Math-506)}  \par}     %  \vspace{0.5cm}     \end{center}     \end{minipage}     \fbox{\begin{minipage}[l]{.195\textwidth}%     \noindent     {\bfseries ABCDEF}\\     {\footnotesize \today}     \end{minipage}}     \par     \noindent     \uline{Time: 3 hour   \hfill \normalsize\emph{\underline{Term}} \hfill        Maximum Marks: 60}     \begin{questions}          \pointsinrightmargin     \pointsdroppedatright     \marksnotpoints     %\marginpointname{mark}     \pointpoints{mark}{marks}     \pointformat{\boldmath\themarginpoints}     \bracketedpoints     \question[06]     \label{Q:perunit}     For a surface $\vec{r}= \vec{r} (u \cos v, u \sin v, f(u))$. Write down the first fundamental form of the surface. Show that the parametric curves are orthogonal.      \droppoints      \question[10]      \label{Q:zbus}      Prove that necessary conditions for the curve $u = u(t), v = v(t)$ on a surface $\vec(r) = \vec(r)(u,v)$ to be geodesic is that \begin{equation}U \frac{\partial T}{\partial \dot{v}} - V    \frac{\partial T}{\partial \dot{u}}\end{equation}     where     $$ U = \frac{d}{dt} \Big(\frac{\partial T}{\partial \dot{u}}\Big) - \frac{\partial T}{\partial u} = \frac{1}{2T}\frac{dT}{dt}\frac{\partial T}{\partial \dot{u}}$$     $$ V = \frac{d}{dt} \Big(\frac{\partial T}{\partial    \dot{v}}\Big) - \frac{\partial T}{\partial v} = \frac{1}{2T}\frac{dT}{dt}\frac{\partial T}{\partial \dot{v}}$$     \droppoints     \question[8]     \label{Q:zbus}     For the curve     $$     x = a(3u - u^{3}),\qquad y = 3au^{2},\qquad z = a(3u + u^{3})     $$     show that $$\uptau = k  =  \frac{1}{3a(1+u^{2})^{2}}$$     \droppoints     \question[8]     \label{Q:zbus}      A curve is uniquely determined except as the position in space, when its curvature and            torsion are given functions of its arc length.     \droppoints     \question[8]     \label{Q:zbus}     Show that there exists an infinite family of involutes for a  gives curve.     \droppoints     \newpage     \question[08]     \label{Q:ybus}     Give short answers of the following questions.     \begin{enumerate}     \item Define Helicoids?     \item Define spherical indicatrix?     \item Define the intrinsic equation?     \item Write the statement of existence theorem for space curve?     \item The normal curvature $k_{n}$ is equal to the what?     \item Prove that $L = -n_{1} \cdot r_{1}$ and $N = -n_{2}    \cdot r_{2}$?     \item Define the geodesic?     \item Write down the equation of tangent plane?     \item If equation of the circle is $x^{2} + y^{2} = a^{2}$ then the parametric equations            of circles are \xblackout{forty     two}?     \end{enumerate}     \end{questions}     \begin{center}     \rule{.5\textwidth}{1pt}     \end{center}     \end{document}       ![enter image description here](http://i.stack.imgur.com/fw48n.jpg)


title: Move ylabel up/down in pgfplots

text: I'm creating a graph with pgfplots with two y-axes, one on the left and one on the right. I'm wondering how to move the ylabels up or down to vertically align with the middle of the tick marks: ![screenshot](http://i.stack.imgur.com/O5KzZ.png) Here is my code:               \documentclass{book}     \usepackage{pgfplots}     \usepgfplotslibrary{dateplot}     \begin{document}     \begin{tikzpicture}     \pgfplotsset{set layers}     \begin{axis}[     width=5.3in,     date coordinates in=x,     xmin={2012-08-01},     xmax={2012-11-06},     ymin=-3,     ymax=3,     xtick={2012-08-01,2012-09-01,2012-10-01,2012-11-01},     xticklabels={August, September, October, November},     ytick={0,1,2,3},     ylabel={Depth (m)},     tick align=outside,     scale only axis,     xtick pos=left,     ytick pos=left,     ]     \addplot[color=black]table[col sep=comma,y=depth]{depth.csv};     \end{axis}     \begin{axis}[     width=5.3in,     date coordinates in=x,     xmin={2012-08-01},     xmax={2012-11-06},     ymin=0,     ymax=50,     axis x line=none,     ytick={0,5,10,15,20},     ylabel={Rainfall (mm)},     ylabel near ticks,     yticklabel pos=right,     tick align=outside,     scale only axis,     xtick pos=left,     ytick pos=right,     ]     \addplot[ybar=,bar width=3pt,fill=black]table[col sep=comma,y=rainfall]{rainfall.csv};     \end{axis}     \end{tikzpicture}     \end{document}


title: PSTricks code cannot compile

text: First: The title is not good; feel free to change it to something appropriate. **Code** Consider the following MWE:               \documentclass{article}          \usepackage{auto-pst-pdf,pst-poly,pstricks-add}     \usepackage{expl3}          \ExplSyntaxOn       \cs_new_eq:NN         \calc       \fp_eval:n     \ExplSyntaxOff          \begin{document}          \begin{figure}[htbp]     \def\sides{6}     \def\sidelength{6}     \def\radius{\calc{\sidelength/(2*sin(pi/\sides))}}     \def\RelAngle{\calc{360/\sides}}      \centering       \begin{pspicture}(-\radius,-\radius)(\radius,\radius)        \PstPolygon[          PolyNbSides=\sides,          unit=3        ]     %   \multido{\rA=0+\RelAngle,\iA=1+1}{\sides}{%     %     \psRelNode[angle=\rA](A)(B){1}{P\iA}     %   }       \end{pspicture}     \end{figure}          \end{document}      I compile using               pdflatex -shell-escape <filename>.tex      **Question** _Why_ can the code not compile if the three lines are not outcommented, and _how_ do I make the code compilable with three lines not outcommented?


title: xetex - myriad pro - want "bold" but not "bold condensed" font

text: Situation: I've got Myriad Pro included in xetex via:               \setmainfont[Mapping=tex-text]{Myriad Pro}      But when I use               \textbf{this is a test}      and see the result in Acrobat, I can see that I've gotten "MyriadPro-BoldCond" rather than only "MyriadPro-Bold". I need a suggestions on how to change the behaviour so that I get "bold", not bold condensed.


title: Need help with a cases structure inside an enumerated list

text: I need to type an enumerated list (for a math document) that contains several lines for which I need to have said lines have a curly brace at the end with a text description for them. The best I can do for know is point to the following link: https://www.mediafire.com/#3eshxd2tsdacf page number 5, and Theorem 1.1.1. I need what I am doing to essentially look like that enumerated list. Can anyone help please? Here is a screenshot: ![Theorem 1.1.1](http://i.stack.imgur.com/D3b3Z.png)


title: LaTeX template enforcing predefined document structure

text: Is there a way to design a LaTeX template that would either enforce given sections, subsections, etc or generate an error if a given section label were missing upon compilation? For example, suppose that I always needed this for all documents that use my template:               \section{Introduction [Code 123]}          \section{Conclusions [Code 345]}      Assume that other sections are allowed without restrictions, and that required sections need to appear in the given sequence. How could I enforce this programmatically within the template? Thanks!


This latex code               \begin{figure}[H]     \centering     \begin{array}{|c|cccccccccc|}     \hline     ~ & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     \hline     1  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     2  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     3  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     4  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     5  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     6  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     7  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     8  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     9  & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     10 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\     \hline     \end{array}     \end{figure}      Gives the following errors.               Missing $ inserted. [\begin{array}{|c|cccccccccc|}]     Missing $ inserted. [\end{array}]      What is wrong? It looks right in the pdf but the errors are annoying.


title: Path to midpoint of other path

text: I would like to end a path at the midpoint of another path. My inclination has been to try and end the path at an offset equal to half the node distance from `d.north`, but any thing I seem to try will not compile. Here's what I have so far (the end goal being the 'No' path ending at 'HERE' )               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{shapes,arrows,calc}     \begin{document}     \pagestyle{empty}              % Define block styles     \tikzstyle{box} = [rectangle, draw]     \tikzstyle{line} = [draw, -latex']          \begin{tikzpicture}[node distance = 3cm, auto]         % Place nodes         \node [box] (a) {A};         \node [box, below of=a] (b) {B};         \node [box, below of=b] (c) {C};         \node [box, below of=c] (d) {D};                 % Draw edges         \path [line] (a) -- (b);         \path [line] (b) -- (c);         \path [line] (c) -- node [midway, left] {HERE} (d);             \path [line] (a.east) --node [above] {No}  +(1,0) |- (d.north);               \end{tikzpicture}          \end{document}      ![Output of above code](http://i.stack.imgur.com/cB1fy.png) I've seen some things on path decorations, but I'm really unsure how to use them and not sure that I can end the path on them.


title: Extracting commands from environment

text: In Automatic scaling of tikz images in floatrow I was asking how to scale several images in one row to the same height and to scale the resulting row to linewidth. I would like to automate the process further and was wondering if it is possible to define an environment as follows (the desired behaviour will be explained below):               \begin{scaleRow}[\linewidth]       \somecode{\scaledImage{image1code}}       \othercode       \somecode{\scaledImage{image2code}}       ...       \othercode\maybeDifferent       \somecode{\scaledImage{image<N>code}}     \end{scaleRow}      The environment should collect all the code inside `\scaledImage`, so I can use the method given in the answer to the referenced question automatically to calculate the scaleratios for each image. After running this calculations, I would like to replace `\scaledImage{code}` with `code` and every occurence of `\scalefactor` inside `code` with the `scalefactor` I calculated and actually render the code in the environment. The reason why I want to render the image twice is that I aim to use `tikzscale`, otherwise I could replace `code` by the `savebox` I will need to calculate the width. Note: I would like to at least try some of the required coding myself to get started with latex coding, however I am a complete novice, while I am sure that most of this is feasible, I am not sure about the extraction of the `scaledImage` part from the enviornment. I would appreciate a good pointer on that so I can try what I can put together from that point. What makes the matter slightly more difficult is that I am afraid of side effects. So I think just executing all code twice (once hidden e.g. by putting it in an sbox or somehow throwing its output away) is dangerous, if for instance a counter is modified.


title: how to arrange the place before a pair of parentheses indicating a note in math mode?

text: I need write some formula. I don't know how to choose the |space| as below:               $a_1=S_1$, $a_n=S_{n} - S_{n-1}$ |space| ($n > 1$)      (Maybe               $a_1=S_1$, $a_n=S_{n} - S_{n-1} |space| (n > 1)$      is better?) and               \[ s_n = b_1 + b_2 + \cdots + b_n  |space|  (n\geq 1) \]      Another case:               \[ f(x)\to A, \quad g(x)\to B |space| (x\to 0) \]      I find the command `\pmod` in the amsmath package choosing 6mu in inline mode and 18mu in display mode. It is casual or it is traditional?


title: lstlistings: framed code

text: I use `lstlistings` to write Pascal Code. I'd like my code to be numbered and framed. Here is what I have as of now :               \lstset{numbers=left, numberstyle=\small, numbersep=8pt, frame = single, language=Pascal, framexleftmargin=15pt}          \begin{lstlisting}     PROGRAM afficher_bonjour;      BEGIN WRITE('Bonjour');      END.     \end{lstlisting}      My problem is that the frame is the width of the page, so I get a big frame with lot of useless empty space on the right. I'd like the frame to be the width of the code I actually wrote. Any hints? **Edit** : I don't want to have to manually set the linewidth. I'd like the width to be calculated based on the longest line of code in the listing. **Edit** : To rephrase the question - "is there a way that the current version of the `listings` package can be applied, possibly in combination with other packages and/or auxiliary macros, to eliminate the need for manual adjustment of the line width?"


title: How could I typeset odd item or even item respectively in examination paper?

text: I want to write a tex file of an examination paper like               (Derivative function)     1. $3x-1$     2. $2x+1$     3. $4x^2+2x+3$     4. $7x^3-3x-6$     5. $\sin6x-7$     6. $\cos5x+2$      And then, I can set a logical variable `\examtype`, say, =0, typeset               Exam paper (A)     (Derivative function)     2. $2x+1$     4. $7x^3-3x-6$     6. $\cos5x+2$      otherwise, set `\examtype`=1, typeset               Exam paper (B)     (Derivative function)     1. $3x-1$     3. $4x^2+2x+3$     5. $\sin6x-7$      .


title: Path for global figures

text: I know that I can save some styles files to be used for all users simply loading it on preamble. I'd like to know where save some figures to have the same effect, that is, any user could insert the figures as they can do with the style files. ps: I'm using texlive on Linux.


title: Executing TeX commands s.t. (1) produces empty boxes (2) and no other output

text: EDIT: I need plain TeX, not LaTeX. Furthermore, I don't want to use an existing package -- I want to reinvent the wheel. [This is part of a complicated set of TeX macros I have set up; and I need to know how to implement this to implement more complicated things.] Original Question: Here is my goal: I want to define a magical command               \def\magic#1...      such that:               \magic{foo bar magic foo}      will do the following: execute `foo bar magic foo`, but then instead of producing actual text, it just produces an empty box that has the same width/height as `foo bar magic foo`. Motivation: Writing a quiz, and want to be able to write it in the form of:               \Question{ .... }     \Answer{ .... }      Then, in `[answer mode]`, it typesets both the Question & the Answer. In `[question mode]`, the Question part is written; the Answer part is executed -- and an equal amount of spacing is created and put there.


title: Does newlfm define \InfoPathName?

text: I'm getting an error:               ! Undefined control sequence.     l.12 \InfoFileName                       {db.tex}      For background `\InfoFileName` is the macro used to change where `newlfm` gets its address information from.


title: Specify -job-name option to pdflatex with special characters

text: I'm working on a python script that will compile a series of latex documents according to a work list. Basically, the script reads the file name and title of a document, adds a couple of things that should always be included and sends a `pdflatex` call to command line. The command has the following form:               >pdflatex -job-name="The title" "\somestuff\input{thefile}"      (I'm using a couple of options for output directories as well, but they have been ommitted here for brevity...) Now, I have a couple of documents in the list that need to have special characters in the title. When that happens, the file names are corrupted. If I loop through the file names with python, reading them as utf8 shows the same thing as in my Windows Explorer window, but reading them as latin1 gives the correct names. Currently `ÅÄÖåäö` are the only characters in question, but I'd like support for the entire utf8 charset. Is there any way I can make pdflatex encode these file names correctly? I am moving the entire system to a server system with another OS when I'm done with it, so it's possible I'll need to encode these things in some other encoding then. Therefore, a solution that is encoding generic gets bonus points =)


title: How can you generate a blockdiagram similar to this?

text: I made a quick sketchup of what I want: ![enter image description here](http://i.stack.imgur.com/PF8Gj.png) What would be a good way to generate a blockdiagram like this?


title: graphicspath requirements for auto-pst-pdf

text: I am working on a document split into multiple files, and am using the package chemstyle to automatically number the compounds in my schemes. The package uses auto-pst-pdf to edit EPS files. It is working perfectly, as long as I only select one chapter to include in the compile. e.g.               \mainmatter % book mode only     %\include{Introduction/introduction}     %\include{Experimental/experimental}     %\include{Chapter3/chapter3}     \include{Chapter4/chapter4}     %\include{Chapter5/chapter5}     %\include{Conclusions/conclusions}      However if I include 2 chapters (that have schemes in them), only the first chapter will show the EPS image correctly formatted with compounds numbered. The following chapter won't show the images at all. I'm guessing that I am not specifying paths correctly for auto-pst-pdf to find them. So my path for Chapter3 and Chapter4 looks like this, and appear at the top of each document respectively:               \ifpdf         \graphicspath{{Chapter3/Chapter3Figs/PNG/}{Chapter3/Chapter3Figs/PDF/}{Chapter3/Chapter3Figs/}}     \else         \graphicspath{{Chapter3/Chapter3Figs/EPS/}{Chapter3/Chapter3Figs/}}     \fi      and               \ifpdf         \graphicspath{{Chapter4/Chapter4Figs/PNG/}{Chapter4/Chapter4Figs/PDF/}{Chapter4/Chapter4Figs/}}     \else         \graphicspath{{Chapter4/Chapter4Figs/EPS/}{Chapter4/Chapter4Figs/}}     \fi      I keep the EPS files to be converted in the ChapterX/ChapterXFigs/EPS folder for each chapter.


title: ConTeXt / e-TeX Real Numbers?

text: I've been using LaTeX for about 6 years and the calc package for a long time. Therefore, not being able to use real / floating point numbers was never really a problem. Thanks, \real! I've been pouring over the documentation of ConTeXt for the last few days, but haven't seeing if they've decided to address this. It appears that Lua is probably the answer, but I'm just trying to fight my way through ConTeXt, at this point. Is there an e-TeX or ConTeXt way to deal with this? I think the answer is no, but I thought I'd try. :)


title: How to patch a package

text: I have a document that uses symbols both from the `marvosym` package as well as the `eurosym` package. There are two commands that clash and I get an error message (due to `\newcommand` being used and leading to the error `Command \EUR already defined.`). What is the appropriate way to patch a package? What I have done - in the meantime - was to modify the `marvosym.sty` file and to place it in the document directory.


title: 3dplot in Beamer crop and ticks problem

text: I'm new to pstricks, and I've been struggling with several issues using it with beamer. So my problem is that I'm trying to show a 3D plot in a beamer frame. However, for some reason, that I can't understand the figure, is cropped. I already play by changing the values of the width and height of the resize box. _How can I show the entire plot?_ Also, because I'm resizing the image I want to reduce the number of ticks that appear in the axes. However, I tried the `Dx,Dy,Dz` options of the 3D axes but that only changes the step between the ticks, but do not reduce their number. What I'm saying is that now I get a tick for every number: 1,2,3,...,100 And if I change the `Dx=10` option I get the same number of ticks but with different step: 10,20,30,...,1000. However, what I'm looking for is to obtain, for example, just ten ticks: 10,20,30,...,100, instead of getting hundred. _Is there I way of doing this?_               \documentclass{beamer}          % For the figures     \usepackage[pdf]{pstricks}     \usepackage{auto-pst-pdf}     \usepackage{pst-node, pst-plot, pst-circ, pst-3dplot}     \usepackage{moredefs}              \begin{document}          \begin{frame}{3D}     \begin{center}     \resizebox{0.7\textheight}{0.7\textheight}{     \begin{pspicture}     \pstThreeDCoor[linecolor=black, IIIDticks,IIIDlabels,xMin=-20,xMax=20,yMin=-40, yMax=40,zMin=0,zMax=50]     \fileplotThreeD[linecolor=blue,plotstyle=line]{data.txt}     \end{pspicture}     }     \end{center}     \end{frame}          \end{document}      The data.txt is here


title: listings package changes hyphens to minus signs

text: The `listings` package transforms source-code hyphens (`-`, U+002D) into minus signs (`−`, U+2212) when using the default proportional fonts, though not when using the default monospaced typewriter font. A minimal working example:               \documentclass{article}     \usepackage{listings}     \lstset{language=C}          \begin{document}       \lstinline[basicstyle=\rmfamily]{--x} \textrm{-{}-x} \par       \lstinline[basicstyle=\sffamily]{--x} \textsf{-{}-x} \par       \lstinline[basicstyle=\ttfamily]{--x} \texttt{-{}-x}     \end{document}      The first two rendered lines clearly show the difference between the long minus signs and the short hyphens: ![long minus signs replacing short hyphens in Roman and sans serif listings, but not monospaced](http://i.stack.imgur.com/8ECbu.png) This is not just an aesthetic problem. The listing is genuinely no longer correct code. A minus sign is not a hyphen, and the syntax of C (and most other languages) does not treat them as interchangeable. `--x` is valid C code, but `−−x` is not. If a non-Unicode-savvy person tries to copy and paste the code from such a listing, she may find that it does not compile but be baffled as to the problem. How can I prevent `listings` from turning hyphens into minus signs?


title: How to change calligraphic capital letters in mathpazo?

text: I'm trying to get the calligraphic capital "E". I really like `mathpazo` package but I'd like to change the way it renders calligraphic "E". Below is a picture: when I type and compile `$\mathcal{E}$` I get center version _E_ , instead I'd like the left-most _E_. ![enter image description here](http://i.stack.imgur.com/z3d6V.jpg) When I didn't have `mathpazo`, I solved this problem by loading package `mathalpha`. I have posted below a MWE (also see this old question of mine):               \documentclass[a4paper, 12pt]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          %\usepackage[cm]{fullpage}     %\usepackage[top=2cm, bottom=3cm, right=2cm, left=3cm]{geometry}     \usepackage[math]{blindtext}     \usepackage[italian]{babel}     \usepackage{amsmath, amsfonts, amssymb}     \usepackage{empheq}     \usepackage{xfrac}     %\usepackage{mathpazo}     \usepackage[cal=boondoxo, calscaled=.98]{mathalfa}     \newcommand{\derivataparziale}[3]{\dfrac{\partial^{#1}{#2}}{\partial {#3}^{#1}} }          \begin{document}     $\mathcal{E}(y) = - \derivataparziale{}{V(y)}{y}$     \end{document}


title: How can i change the position of the year in the bibliography

text: I would like to change the position of the year in the bibliography using plainnat.bst. I've tried using the answer to this question(Changing position of year in natbib with plainnat style). I've tried this for the book section and it remains at the end of the reference, but the year will also follow the author. I've also tried this for article and then nothing changes. At this moment i'm using: \usepackage[round]{natbib} \bibliographystyle{plainnat}


title: How to access the Greek letters of a particular font?

text: I have a problem acessing the Greek letters of a particular font – for instance of the font TeX Gyre Pagella. I checked with the program _Fontforge_ that this font has Greek letters. But when I try something like this:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[LGR]{fontenc}     \usepackage[greek]{babel}     \usepackage{tgpagella}          \begin{document}     κφγ φγψ ψγκφ ααηχ            \end{document}      I get as a result the Greek letters in the standard font, with the message:               LaTeX Font Warning: Some font shapes were not available, defaults substituted.      I know of course that I could use LuaLaTeX but I have to stick to `pdftex` because of the kerning and spacing feature of the `microtype` package and because LuaLaTeX compiles too slow on my old machine.


title: Jackson structured programming diagram (format a tree diagram)

text: I'm trying to create a Jackson structured programming diagram. This is basically a simple tree diagram with the exception that boxes can either have a circle (O) or a star (*) in the upper right corner of each box. I am using the TikZ libary for the diagram but I don't know how to extend the styles to achieve this. Here is the unfinished diagram:               \documentclass{minimal}     \usepackage[a4paper,margin=1cm,landscape]{geometry}     \usepackage{tikz}     \usetikzlibrary{positioning,shadows,arrows}          \begin{document}     \begin{center}     \begin{tikzpicture}[         box/.style={rectangle, draw=red!50!black!50, rounded corners=1mm, fill=blue, drop shadow, minimum width=5em, minimum height=3em, level distance=10cm,             text centered, anchor=north, text=white},         circle/.style={rectangle, draw=red!50!black!50, rounded corners=1mm, fill=blue, drop shadow, minimum width=5em, minimum height=3em, level distance=10cm,             text centered, anchor=north, text=white},         %SHOULD CONTAIN THE CIRCLES         star/.style={rectangle, draw=red!50!black!50, rounded corners=1mm, fill=blue, drop shadow, minimum width=5em, minimum height=3em, level distance=10cm,             text centered, anchor=north, text=white},          %SHOULD CONTAIN THE STARS            ]     \node (State00) [box] {Jackson Diagramm}      [sibling distance=3cm]         child {node (a) [box] {int a = 1}}         child {node (a) [box] {boolean n = true}}         child {node (a) [box] {boolean z = true}}         child {[sibling distance=4cm] node (d) [circle] {if (n)}             child{  [sibling distance=3cm] node (e) [star] {while (z)}             child {node (f) [box] {n = !z}}             child {node (g) [box] {a++}}             child { [sibling distance=4cm] node (h) [circle] {a <= 10}                     child {node (i) [box] {z = true}}                     child {node (j) [box] {System.out.println( "z\(>\)10")}}                 }             }             child {node (k) [box] {System.out.println(a)}}              child {node (l) [box] {System.out.println(z)}}               }      ;     \end{tikzpicture}     \end{center}     \end{document}      Current output: ![enter image description here](http://i.stack.imgur.com/kAiur.png)


title: Double Slash close together

text: I am looking for a certain symbol. It looks like `//` but closer together and in mathematics refers to a GIT quotient. Any help would be greatly appreciated! Thanks!


title: Reduce vertical spacing itemize and multicols

text: I have added code to reduce the spacing before `itemize`. However, when I use `multicols` still a lot of extra vertical white space is added (see the space before the subitems). Does anyone know how to remove this?               \documentclass{article}     \usepackage{multicol}     %reduce spacing in itemize, enumerate and titles     \usepackage{enumitem}     \setenumerate{nolistsep}     \setitemize{nolistsep}     \usepackage[compact]{titlesec}          \begin{document}     Some text     \begin{itemize}       \item item 1       \begin{multicols}{2}\begin{itemize}         \item item 1a         \item item 1b         \item item 1c         \item item 1d       \end{itemize}\end{multicols}       \item rest of items     \end{itemize}     Rest of the document     \end{document}


title: How can I use a symbol provided by a package without changing the entire mathematics font?

text: I wish to use a symbol provided by the package MnSymbol but if I have a `\usepackage{MnSymbol}` in my document then many other symbols change, including even the equals sign (=), which appears much shorter now. How can I use a package to just get a few particular symbols without having my entire document in the font that the package imposes?


title: Weird behaviour from graphicx - inserting PDF files

text: So I created some graphs in Excel, saved them as PDFs and used the following code to import them to LaTeX:               \newpage     \begin{figure}[htbp]     \centering      \includegraphics[width=0.95\textwidth]{white1.pdf}     \caption{This figure shows the commulative oxygen production rate of white light in iteration number 1. The SEM bars show reading error from the pipette. }          \end{figure}          \newpage     \begin{figure}[htbp]     \centering      \includegraphics[width=0.95\textwidth]{green2.pdf}     \caption{This figure shows the commulative oxygen production rate of green light in iteration number 2. The SEM bars show reading error from the pipette. }          \end{figure}     \newpage     \begin{figure}[htbp]     \centering      \includegraphics[width=0.95\textwidth]{white3.pdf}     \caption{This figure shows the commulative oxygen production rate of green light in iteration number 3. The SEM bars show reading error from the pipette. }          \end{figure}               \newpage     \begin{figure}[htbp]     \centering      \includegraphics[width=0.95\textwidth]{green4.pdf}     \caption{This figure shows the commulative oxygen production rate of green light in iteration number 4. The SEM bars show reading error from the pipette. In this figure there is overlapping of SEM bars that show no significance difference }          \end{figure}          \newpage     \section{Discussion}      However the problem is that the new page at the very end (discussion) is not in order. It gets injected after the first figure. So if the pages were numbered like this:               fig1, fig2, fig3, fig4, dis1       everytime I try to create the dis1 page by `\newpage` I get the following output:               fig1, dis1, fig2, fig3, fig4      Anyone know what's happening?


title: How can I have a node spanned over multiple columns push to its cell borders' borders?

text: I'd like to have the (big) node with _Long text long text_ span from the very left of cell m-2-2 to the very right of cell m-2-5. How can I achieve that? ![enter image description here](http://i.stack.imgur.com/aeRVb.png) ## MWE               \documentclass[     11pt     ]{scrartcl}     \usepackage{     tikz,     relsize,     tgheros     }          \usetikzlibrary{         calc,trees,shadows,positioning,arrows,chains,         decorations.pathreplacing,         decorations.pathmorphing,         decorations.shapes,         decorations.text,         shapes,         shapes.geometric,         shapes.symbols,         matrix,         patterns,         intersections,         fit     }          \pgfdeclarelayer{background layer}     \pgfdeclarelayer{foreground layer}     \pgfsetlayers{background layer,main,foreground layer}          \tikzset{         >=latex,         line/.style={draw, thick, ->},         phase/.style={             text height=1.5ex,             text depth=0.25ex,             align=left,             anchor=center,             %   text width=6cm,             font=\sffamily\bfseries\small,             rectangle,             minimum height=1.0cm,             draw=black,             very thick,             fill=black!40         },         phasentext/.style={             align=left,             anchor=center,             %node distance=0.5cm,             rectangle,             minimum width=2cm,             minimum height=1cm,              %   text width=7cm,             draw=gray,             very thick,             font=\sffamily\small         }     }          \begin{document}     \begin{center}     \begin{tikzpicture}[font=\sffamily\small,node distance=0.5cm]     \matrix (m) [     matrix of nodes,     nodes in empty cells,     row sep=6mm,     column sep=3mm,     inner sep=7pt     ] {         %         |[phase]| 1 & & & & \\         & |[phasentext] (WordA)| Test: \tikz \draw[thick, circular glow={fill=gray}] (0,0) circle [radius=6pt]; &         |[phasentext] (WordB)| Stuff:\tikz \draw[thick, circular glow={fill=gray}] (0,0) circle [radius=6pt]; &         |[phasentext] (WordC)| Stuff text word: \tikz \draw[thick, circular glow={fill=gray}] (0,0) circle [radius=6pt]; &         |[phasentext] (WordD)| Some more words: \begin{tikzpicture} \draw[thick] (0,0) circle [radius=6pt]; \draw[thick] (-3pt,-2pt) -- (3pt,-2pt) -- (0,2pt) -- cycle; \draw[thick] (0,2pt) -- (0,-2pt); \end{tikzpicture} \\     };     \node[phase, fit=(m-1-2)(m-1-5), align=left, text height=1.5ex, text depth=0.25ex] (Words) {Long text I suppose};     \end{tikzpicture}     \end{center}     \end{document}      About the title: feel free to edit it if you can think of a better one.


title: Only show \NAME in \listoftheorems

text: I am using the `thmtools` package, and I want to modify `\listoftheorems` to only print the name of the theorem. For example, my document might look something like the one shown below. When I compile this document, the first line of my "List of Problems" is "1 Problem (Name 1) ... 1". However, I want it to be "1 Name 1 ... 1". Is there anyway to do this? I figured out how to renew the command `\listtheoremname` in order to change the title of list of problems. The documentation for `thmtools` says "If you're daring, the code for theorem type "lemma" is in `\l@lemma` and so on." This makes me optimistic that I can renew the `\l@problem` command to do what I want, but I don't know enough about TeX to make this happen.               \documentclass{article}          \usepackage{amsthm}     \usepackage{thmtools}          \declaretheorem{problem}     \renewcommand{\listtheoremname}{List of Problems}          \begin{document}          \listoftheorems          \begin{problem}[Name 1]     description of problem 1     \end{problem}          \begin{problem}[Name 2]     description of problem 2     \end{problem}          \end{document}


title: Using metafont in (pdf) latex

text: Hi I want to try out using some metafonts. I don't really care about making any of my own and after a lot of searching I have unable how to get LaTeX (inc PdfLaTeX) to use MFs. So far I have just stuck with stock fonts but they don't look to good for my needs. I seem to have a lot of .mf in the /usr/share/texmf-dist/* I just don't know how to actually use them. Finally I am I right in my understanding that the advantage of metafonts is that they are truly vector thus can be scaled indefinitely? (this is what I am after) Thank you.


title: Converting from LaTeX to HTML using htlatex

text: Using htlatex to convert LaTeX to HTML Referring to the question posted above. So I used both the script and the `htlatex` command from the command-prompt in order to convert my LaTeX file to HTML but both are giving me errors. **Error with the`htlatex` command (without script):**               *! Package pdftex.def Error: PDF mode expected, but DVI mode detected! (pdftex.def) If you are using latex', then callpdflatex'. (pdftex.def) Otherwise check and correct the driver options. (pdftex.def) Error recovery by switching to PDF mode.     See the pdftex.def package documentation for explanation.*      **Error with the script:**               --- warning --- Can't find/open file User_Manual.dvi' --- error --- Can't find/open fileUser_Manual.dvi' --- warning --- Can't find/open file `User_Manual.lg'     Could Not Find F:\Documents and Settings\My Documents\User_Manual_new\User_Manual.idv     Could Not Find F:\Documents and Settings\My Documents\User_Manual_new\User_Manual.lg     Could Not Find F:\Documents and Settings\tbinchisti\My Documents\User_Manual\User_Manual.html     Could Not Find F:\Documents and Settings\My Documents\User_Man ual_new\User_Manual.css      I believe it has something to do with the packages I have but I dont know which ones. This is my main `.tex` file:                   \documentclass[11pt,a4paper]{report}           \usepackage{fancyhdr}           \usepackage[pdftex]{color,graphicx}           \usepackage{epstopdf}           \usepackage{lastpage}           \usepackage{makeidx}           \usepackage[english]{babel}           \usepackage{float}           \usepackage{subfig}           \usepackage{hyperref}           \usepackage{fullpage}           \usepackage{multirow}           \usepackage{appendix}          \usepackage{verbatim}                   \renewcommand{\appendixtocname}{Appendix: Algorithm Parameters} \renewcommand{\appendixpagename}{Appendix-Algorithm Parameters}                  \setlength{\topmargin}{-1.3cm} \setlength{\headsep}{0.6cm}                  \renewcommand{\tablename}{\bfseries{Table}}                  %The top margin above a chapter can be changed using the titlesec package               \hypersetup{                 bookmarks=true,         % show bookmarks bar?                 unicode=false,          % non-Latin characters in Acrobat’s bookmarks                 pdftoolbar=true,        % show Acrobat’s toolbar?                 pdfmenubar=true,        % show Acrobat’s menu?                 pdffitwindow=false,     % window fit to page when opened                 pdfstartview={FitH},    % fits the width of the page to the window                 pdftitle={My title},    % title                 pdfauthor={Author},     % author                 pdfsubject={Subject},   % subject of the document                 pdfcreator={Creator},   % creator of the document                 pdfproducer={Producer}, % producer of the document                 pdfkeywords={keyword1} {key2} {key3}, % list of keywords                 pdfnewwindow=true,      % links in new window                 colorlinks=true,       % false: boxed links; true: colored links                 linkcolor=black,          % color of internal links                 citecolor=green,        % color of links to bibliography                 filecolor=magenta,      % color of file links                 urlcolor=cyan           % color of external links }                  \input{Macro} %\renewcommand{\caption}[1]{{\underline{#1}}}                  \makeindex                  \renewcommand{\headheight}{0.6in} %Space above header \renewcommand{\headrulewidth}{1pt} %thickness of line under header \renewcommand{\footrulewidth}{1pt} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} %thickness of line on title page          \setlength{\headwidth}{\textwidth}          \fancyhead[L]{\rightmark}      \fancyhead[R]{\includegraphics[height=0.43in]{Images/Fugrologo.eps}} % right with logo \fancyfoot{}%to remove centered default footer      \fancyfoot[L]{Fugro Roadware Inc.}      \fancyfoot[R]{\thepage \  of \pageref*{LastPage}}% page# of reference page(last)          \fancypagestyle{plain}% no header, footer contains page number centered {      \fancyhf{} %for the pages outside of content, list of figures etc.      \fancyhead[R]{ \includegraphics[height=0.43in]{Images/Fugrologo.eps}} % right with logo          \fancyfoot[L]{Fugro Roadware Inc.} \fancyfoot[R]{\thepage \  of \pageref*{LastPage}} }          \pagestyle{fancy}     \usepackage[absolute]{textpos}                    \begin{document}          \input{titlepage}      \input{DocumentRevisionRecord}     \tableofcontents      \listoffigures      \listoftables      \input{GettingStarted}      \input{TourtheViews}      \input{SetuptheWorkspace}      \input{Map}      \input{Video}     \input{SectionComposition}      \input{Segmenting}      \input{AutomaticMatching}      \input{Events}      \input{RoutingEditor}      \input{DataAnalysis}     \input{CurveFitChapter}      \input{BatchProcessing}      \input{TransverseProfile}     \input{PavementModule}     \input{Dashboard}      \input{TransferAssistant}     \input{DBGenerator}      \input{DCS}      \input{WiseCraxImporter}      \input{RoutingImporter}      \input{ReportingFramework}               \appendix      \appendixpage      \addappheadtotoc      \input{Roughness}      \input{CurveFit}      \input{Faulting}      \input{ERD}      \input{Exif}      \input{LCMSplugin}      \input{Rut}     \input{PondingDepth}      \input{Thumbnail}          \printindex          \clearpage           \end{document}


title: Customizing texdoc - funny search path

text: I want to ensure that `texdoc cool` opens up `texmf- dist/doc/latex/cool/Content_LaTeX_Package_Demo.pdf` instead of `texmf- dist/doc/latex/cool/cool.pdf`: My default configuration is this:               $ texdoc -l cool      1 /usr/local/texlive/2010/texmf-dist/doc/latex/cool/cool.pdf        = Package documentation      2 /usr/local/texlive/2010/texmf-dist/doc/latex/cool/Content_LaTeX_Package_Demo.pdf        = EXamples of use     Please enter the number of the file to view, anything else to skip:        According to the `texdoc` manual this can by done with a local `texdoc/texdoc.cnf` file. I get that. But when I checked `texdoc`'s search path I get something funny:               $ texdoc -f     texdoc 0.72     Configuration files are:         absent  /Users/matthew/Dropbox/Library/texmf:~/Library/texmf/texdoc/texdoc-x86_64-darwin.cnf     (*) absent  /Users/matthew/Dropbox/Library/texmf:~/Library/texmf/texdoc/texdoc.cnf         absent  /Users/matthew/Dropbox/Library/texmf:~/Library/texmf/texdoc/texdoc-dist.cnf         absent  /usr/local/texlive/2010/../texmf-local/texdoc/texdoc-x86_64-darwin.cnf         absent  /usr/local/texlive/2010/../texmf-local/texdoc/texdoc.cnf         active  /usr/local/texlive/2010/texmf/texdoc/texdoc.cnf     (*) This is the recommended configuration file for your personal preferences.      The first three directories look like they have a literal `:~` in them. If I create config files in `~/Dropbox/Library/texmf/texdoc/` or `~/Library/texmf/texdoc` they are not found. I think I created this problem when I followed the solution to How to add an extra searchable dir with personal style files to TeXLive, NOT under ~/Library/texmf? :               $ kpsewhich --var-value=TEXMFHOME     /Users/matthew/Dropbox/Library/texmf:~/Library/texmf      It looks like `texdoc` assumes that `$TEXMFHOME` is a single directory and not a colon-separated list of directories. Is there a workaround?


title: Overlapped Title and where to place the logo

text: I have prepared the front page of the book but the title is overlapped and I need some more formatting like the title Web Blog to appear at the center(its not centered) .And Where to put my college logo? Here is the code:               \documentclass[12pt]{book}     \begin{document}     \begin{titlepage}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \center     \textsc{\LARGE PONDICHERRY ENGINEERING COLLEGE}\\[1.5cm]     \textsc{\Large CASE TOOLS LABORATORY}\\[0.5cm]     \textsc{\large SOFTWARE REQUIREMENTS SPECIFICATION}\\[0.5cm]          \HRule \\[0.4cm]     { \huge \bfseries WEB BLOG}\\[0.4cm]     \HRule \\[1.5cm]          \begin{minipage}{0.4\textwidth}     \begin{flushleft} \large      \emph{Author:}\\      Subham \textsc{Soni}     \end{flushleft}     \end{minipage}     ~     \begin{minipage}{0.4\textwidth}     \begin{flushright}     \emph{Supervisor:}\\     \textsc{Mr.M. Thirumaran}     \end{flushright}     \end{minipage}\\[4cm]          {\Large \today }\\[3cm]     \vfill     \end{titlepage}     \end{document![}][1]      ![enter image description here](http://i.stack.imgur.com/Rnp4K.png)


title: Page numbers restart for preliminary pages

text: I have just started typesetting my PhD thesis. I am using the `book` class. I have a parent file where I define style, chapter header styling, page numbering, etc., and I include every chapter using `\include{}`. When compiled I have one single PDF file. However, I have a problem with page numbering on preliminary pages such as Abstract, List of Contents, List of Figures, etc. Page numbers _restart_ on every preliminary page. Here is how my TeX file looks like               %Page number formatting for preliminary pages.     \fancypagestyle{preliminary}{     \fancyhf{}     \fancyfoot[C]{\thepage}     \pagenumbering{roman}     \renewcommand{\headrulewidth}{0pt}     \fancypagestyle{plain}{\pagestyle{preliminary}}}          %Page number formatting for main matter.     \fancypagestyle{mainmatter}{     \fancyhf{}     \fancyfoot[C]{\thepage}     \pagenumbering{arabic}     \renewcommand{\headrulewidth}{0pt}     \fancypagestyle{plain}{\pagestyle{mainmatter}}          \onehalfspacing          \newenvironment{abstract}{\chapter*{Abstract}}{}          \begin{document}          \pagestyle{preliminary}     \setcounter{page}{2}          \begin{abstract}...\end{abstract}          \tableofcontents     \listoffigures     \listoftables          \mainmatter          \pagestyle{mainmatter}     \include{chapter1}          \end{document}      Am I doing something wrong? I have a suspicion that pre-defined page number formatting at the very beginning is causing this but I am not sure. What do you guys think?


title: Migration from Computer Modern to Times New Roman fonts

text: I had typed my LaTeX article using `Computer Modern` fonts. Now I want Times New Roman and double spacing. I'm getting so many errors regarding font packages. Please help.               \documentclass[11pt,a4paper]{article}      \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{amssymb}     \usepackage[doublespacing]{setspace}     \usepackage[auth-sc]{authblk}          \usepackage{fontspec}     \setmainfont{Times New Roman}          \textwidth=13cm


title: Equal spacing with enumerate and multicol

text: I want to create a worksheet that gives equal vertical spacing for all problems. I have two questions.   * What can I do to interchange parts (b) and (c) so that parts (a) and (b) are on the same line and parts (c) and (d) are on the same line? (This was asked in a previous problem. I'm wondering if there is an easier solution, though.)   * Once this interchanging is finished, how can I alter the code so that parts (a) and (b) of problem 1, parts (c) and (d) of problem 1, and problem 2 all have **equal amounts of vertical spacing**? (These three spaces should take up the entire page.)              \documentclass[10pt]{article}          \usepackage{enumitem}     \usepackage{multicol}     \usepackage[margin=1.0in]{geometry}          \begin{document}          \begin{enumerate}     % Problem 1     \item First problem directions go here.     \begin{multicols}{2}     \begin{enumerate}     \item This is part (a).     \item This is part (b).     \item This is part (c).     \item This is part (d).     \end{enumerate}     \end{multicols}     \vspace*{\stretch{1}}     % Problem 2     \item Second problem goes here.     \vspace*{\stretch{1}}     \end{enumerate}          \end{document}


title: pgfkeys: allowing one key to activate another key

text: I have two custom keys: `key1`, which is boolean; and `key2`, which accepts a value. The idea is that `key1` activates a feature, and `key2` customizes the feature. However, if `key2` is used, I want `key1` set to true automatically. So:               \tikzset{key2=3.5cm)      and               \tikzset{key1=true, key2=3.5cm}      should have the same effect. All I need help with is making it so that `key1` is automatically set to true when `key2` is set to any value.


title: Index at the beginning of a document

text: Is it possible to insert an index at the beginning of a document, like so?:               \documentclass[11pt]{article}     \usepackage{imakeidx}     %\indexsetup{othercode=\small}     \makeindex[name=definitions,title=Definitions,columns=1,intoc=true,program=makeindex,options={-s index_style.ist}]          \begin{document}     \printindex[definitions]          bla bla \index[definitions]{bla}, lorem ipsum \index[definitions]{ipsum}          \end{document}      FYI the content of index_style.ist is:               headings_flag 1     heading_prefix "{\\large\\bfseries "     heading_suffix "}\\nopagebreak\n"     delim_0 " \\dotfill "     delim_1 " \\dotfill "     delim_2 " \\dotfill "


title: Figure from Mathematica is printed on separate page

text: I am trying to include a Mathematica code in LaTeX. To do that, I just exported the code as PDF. The thing is that when I am trying to include the PDF figure in my TeX code, the figure is printed on the next page. The code I am using is               \documentclass[a4paper,11pt]{article}     \usepackage{kerkis}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage[pdftex]{graphicx}          \begin{document}     \begin{align}     \nonumber W_{r\rightarrow\infty}=&-\int_{r}^{\infty}\!F\,\mathrm{d}y=-\int_r^\infty \!     \dfrac{1}{4\pi \epsilon_0} \dfrac{q^2}{\alpha^2} \dfrac{\alpha^3}{y^3}\left(1-    \dfrac{\alpha^2}{y^2}\right)^{-2}\,\mathrm{d}y\\     =&-\dfrac{1}{4\pi \epsilon_0} \dfrac{q^2}{\alpha^2}\alpha^3 \underbrace{\int_r^\infty     \! y^{-3} \left(1-\dfrac{\alpha^2}{y^2}\right)^{-2} \,\mathrm{d}y}_{I} \label{eq:WcondI}     \end{align}          \begin{figure}[H]%     \includegraphics[width=\columnwidth]{math}%     \end{figure}     \end{document}      The image can be downloaded from here https://dl.dropbox.com/u/19828093/math.pdf Any ideas on that?


title: What packages do I need to learn as developer to learn LaTeX?

text: I am a web developer and I often have the need to convert the the webpage to `pdf`. I have just discovered latex and pretty much liked it. But as there are many packages available , I am not into book publishing and stuff. I am confused how should I learn it and what minimum packages I need to learn. My main requirements are   1. Mostly reports with 100 of pages of tables and very wide columns. So I will be mostly working with tables   2. I may also need to create some graphs and maps with some figures What packages should I learn?


title: Undo the effect of "sloped" option in tikzstyle

text: I have defined (for example) :   `tikzstyle{text_st} =[thick, red, sloped]` Later on, I want to use these option for node text like   `\path (a) -- (b) node[text_st] {Nice}` Now, if I want to use this predefined option `text_st` except for the `sloped`, how can I do that? Is there some variable like unsloped such that I can do   `\path (a) -- (b) node[text_st, unsloped] {Nice}`?


title: Enumerate numbering is out of page

text: I have nested enumerations in my article. The numbering of enumeration is modified.               \renewcommand{\labelenumi}{\bfseries\thesubsection.\arabic{enumi}}      \renewcommand{\labelenumii}{\bfseries\thesubsection.\arabic{enumi}.%                                 \arabic{enumii}}      \renewcommand{\labelenumiii}{\bfseries\thesubsection.\arabic{enumi}.%                                  \arabic{enumii}.\arabic{enumiii}}      \renewcommand{\labelenumiv}{\bfseries\thesubsection.\arabic{enumi}.%                                 \arabic{enumii}.\arabic{enumiii}.%                                 \arabic{enumiv}}      The numbers of my items are out of page. How to align them properly? I saw this post. Did not help. **UPDATE**               \documentclass[a4paper, 10pt, twocolumn]{article}          \usepackage{mathtools}     \usepackage{amsmath}               \usepackage{amsthm}     \usepackage{fontspec} % loaded by polyglossia, but included here for transparency          \usepackage{polyglossia}     \usepackage{algpseudocode}     \usepackage{fancyhdr}     \usepackage{enumitem}     \usepackage{xspace}     \usepackage{amsfonts}     \usepackage{breqn}     \usepackage{dcolumn}     \usepackage{graphicx}     \usepackage{float}     \def\do{}     \setotherlanguage{english}          \setmainfont{Consolas}     \def\do{}     %\usepackage{algorithm}          %\setmainlanguage{russian}     \setotherlanguage{english}          \setmainfont{Consolas}               \usepackage[hmargin=0.1cm,vmargin=2cm]{geometry}     \setlength{\columnsep}{0.2cm}   %The is a way to define the distance between the two columns, use     \setlength{\columnseprule}{0.4pt}  %If you need a line to separate the columns, the following command will do the job:          \pagestyle{fancy}     \fancyhf{} % clear all header and footers     \fancyhead[L]{\DocumentTitle}     \fancyhead[R]{\thepage}     \fancyfoot[L]{\DocumentTitle}     \fancyfoot[R]{\thepage}          \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}               \newcommand{\DocumentTitle}{Scientific Computing 1}     \numberwithin{equation}{section}     \numberwithin{figure}{section}          \usepackage{enumitem}     \usepackage{calc}          \renewcommand{\labelenumi}{\bfseries\thesubsection.\arabic{enumi}}      \renewcommand{\labelenumii}{\bfseries\thesubsection.\arabic{enumi}.%                                 \arabic{enumii}}      \renewcommand{\labelenumiii}{\bfseries\thesubsection.\arabic{enumi}.%                                  \arabic{enumii}.\arabic{enumiii}}      \renewcommand{\labelenumiv}{\bfseries\thesubsection.\arabic{enumi}.%                                 \arabic{enumii}.\arabic{enumiii}.%                                 \arabic{enumiv}}          \begin{document}     \raggedbottom          \section{Direction Fields} % (fold)          \section{Critical Points}          \section{Population Models}     \subsection{Model of Malthus}     \subsection{Model of Verhulst - Saturation}     \begin{enumerate}         \item Item 1          \item Item 2      \end{enumerate}          \end{document}      MWE


title: List of all equations in the entire document

text: I am trying to put all the equations of my presentation made with Beamer into a single table to summarize them. They are however in various frames within `\align` environments. How can I achieve this?