title: Make caption look right in greek

text: i'm having trouble trying to make a caption look right. I want to write in Greek the "figure" name, that is, "Σχήμα". The problem is after I put               \addto{\captionsenglish}{           \renewcommand{\figurename}             {\tg{Σχήμα}}     }      in the preamble, the output is > ΣΧΗ'ΜΑ 1.1(some figure name} instead of > Σχήμα 1.1(some figure name) meaning that the problem is the output is with capital. any idea? MINIMAL EXAMPLE UPDATE               \documentclass[11pt, a4paper, oneside]{Book}     \usepackage{kmath,kerkis}      \usepackage[greek,english]{babel}     \usepackage[utf8x]{inputenx}     \usepackage{blindtext,graphicx}     \usepackage{wrapfig}     \newcommand{\tg}{\textgreek}     \newcommand{\tl}{\textlatin}     \addto{\captionsenglish}{           \renewcommand{\figurename}             {\tg{Σχήμα}}}          \begin{document}          \begin{figure}[htbp]     \centering     \hspace{-4.5em}\includegraphics[width=11.5cm]{Pictures/data.png}     \rule{35em}{0.5pt}          \end{figure}          \end{document}        does the job...but not in my main project UPDATE               %%%%%%%%%%%%  Thesis.CLS   %%%%%%%%%%%%%%%%%%%%%%%%%%%          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \NeedsTeXFormat{LaTeX2e}[1996/12/01]     \ProvidesClass{Thesis}                   [2007/22/02 v1.0        LaTeX document class]     \def\baseclass{book}     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}     \def\@checkoptions#1#2{       \edef\@curroptions{\@ptionlist{\@currname.\@currext}}       \@tempswafalse       \@tfor\@this:=#2\do{         \@expandtwoargs\in@{,\@this,}{,\@curroptions,}         \ifin@ \@tempswatrue \@break@tfor \fi}       \let\@this\@empty       \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi     }     \@checkoptions{11pt}{{10pt}{11pt}{12pt}}     \PassOptionsToClass{a4paper}{\baseclass}     \ProcessOptions\relax     \LoadClass{\baseclass}     \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}          \newcommand\Declaration[1]{     \btypeout{Declaration of Authorship}     \addtotoc{Declaration of Authorship}     \thispagestyle{plain}     \null\vfil     %\vskip 60\p@     \begin{center}{\huge\bf Declaration of Authorship\par}\end{center}     %\vskip 60\p@     {\normalsize #1}     \vfil\vfil\null     %\cleardoublepage     }          \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}     \def\today{\ifcase\month\or       January\or February\or March\or April\or May\or June\or       July\or August\or September\or October\or November\or December\fi       \space \number\year}     \usepackage{setspace}     \onehalfspacing     \setlength{\parindent}{0pt}     \setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}     \usepackage{vmargin}          \RequirePackage[utf8]{inputenc} % Allows the use of international characters (e.g. Umlauts)          %----------------------------------------------------------------------------------------     %   MARGINS     %----------------------------------------------------------------------------------------     \setmarginsrb  { 1.5in}  % left margin                             { 0.6in}  % top margin                             { 1.0in}  % right margin                             { 0.8in}  % bottom margin                             {  20pt}  % head height                             {0.25in}  % head sep                             {   9pt}  % foot height                             { 0.3in}  % foot sep     %----------------------------------------------------------------------------------------     \raggedbottom     \setlength{\topskip}{1\topskip \@plus 5\p@}     \doublehyphendemerits=10000       % No consecutive line hyphens.     \brokenpenalty=10000              % No broken words across columns/pages.     \widowpenalty=9999                % Almost no widows at bottom of page.     \clubpenalty=9999                 % Almost no orphans at top of page.     \interfootnotelinepenalty=9999    % Almost never break footnotes.     \usepackage{fancyhdr}     \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}     \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}     \chead{}\lfoot{}\rfoot{}\cfoot{}     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}     \renewcommand{\sectionmark}[1]{}     \renewcommand{\subsectionmark}[1]{}     \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else     \hbox{}     \thispagestyle{empty}     \newpage     \if@twocolumn\hbox{}\newpage\fi\fi\fi}     \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}     \theoremstyle{plain}     \newtheorem{example}{Example}[chapter]     \newtheorem{theorem}{Theorem}[chapter]     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{axiom}[theorem]{Axiom}     \theoremstyle{definition}     \newtheorem{definition}[theorem]{Definition}     \theoremstyle{remark}     \newtheorem{remark}[theorem]{Remark}     \usepackage[centerlast,small,sc]{caption}     \setlength{\captionmargin}{20pt}     \newcommand{\fref}[1]{Figure~\ref{#1}}     \newcommand{\tref}[1]{Table~\ref{#1}}     \newcommand{\eref}[1]{Equation~\ref{#1}}     \newcommand{\cref}[1]{Chapter~\ref{#1}}     \newcommand{\sref}[1]{Section~\ref{#1}}     \newcommand{\aref}[1]{Appendix~\ref{#1}}     \renewcommand{\topfraction}{0.85}     \renewcommand{\bottomfraction}{.85}     \renewcommand{\textfraction}{0.1}     \renewcommand{\dbltopfraction}{.85}     \renewcommand{\floatpagefraction}{0.75}     \renewcommand{\dblfloatpagefraction}{.75}     \setcounter{topnumber}{9}     \setcounter{bottomnumber}{9}     \setcounter{totalnumber}{20}     \setcounter{dbltopnumber}{9}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage[scriptsize]{subfigure}     \usepackage{booktabs}     \usepackage{rotating}     \usepackage{listings}     \usepackage{lstpatch}     \lstset{captionpos=b,             frame=tb,             basicstyle=\scriptsize\ttfamily,             showstringspaces=false,             keepspaces=true}     \lstdefinestyle{matlab} {             language=Matlab,             keywordstyle=\color{blue},             commentstyle=\color[rgb]{0.13,0.55,0.13}\em,             stringstyle=\color[rgb]{0.7,0,0} }     \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,        bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,        colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red},        pdfstartview={FitV},unicode,breaklinks=true]{hyperref}     \pdfstringdefDisableCommands{        \let\\\space     }     \newcommand*{\supervisor}[1]{\def\supname{#1}}     \newcommand*{\thesistitle}[1]{\def\ttitle{#1}}     \newcommand*{\examiner}[1]{\def\examname{#1}}     \newcommand*{\degree}[1]{\def\degreename{#1}}     \newcommand*{\authors}[1]{\def\authornames{#1}}     \newcommand*{\addresses}[1]{\def\addressnames{#1}}     \newcommand*{\university}[1]{\def\univname{#1}}     \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}     \newcommand*{\department}[1]{\def\deptname{#1}}     \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}     \newcommand*{\group}[1]{\def\groupname{#1}}     \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}     \newcommand*{\faculty}[1]{\def\facname{#1}}     \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}     \newcommand*{\subject}[1]{\def\subjectname{#1}}     \newcommand*{\keywords}[1]{\def\keywordnames{#1}}          %----------------------------------------------------------------------------------------     %   DOCUMENT VARIABLES     %   Fill in the lines below to update the thesis template     %   If you wish to cite each of the variables defined below, look at the     %   section above for the citation command e.g. \examiner{} below is     %   defined as \examname above so you cite it as \examname     %----------------------------------------------------------------------------------------          \thesistitle{Thesis Title} % Your thesis title - this is used in the title and abstract     %-------------------------------------------------       \supervisor{Dr. James \textsc{Smith}} % You supervisor's name - this is used in the title page     %-------------------------------------------------        \examiner{} % Your examiner's name - this is not currently used anywhere in the template, cite it with \examname if you want it     %-------------------------------------------------        \degree{Doctor of Philosophy} % Your degree name - this is currently used in the title page and abstract     %-------------------------------------------------        \authors{John \textsc{Smith}} % Your name - this is used in the title page and abstract     %-------------------------------------------------        \addresses{} % Your address - this is not currently used anywhere in the template, cite it with \addressnames if you want it     %-------------------------------------------------        \subject{} % Your subject area - this is not currently used anywhere in the template, cite it with \subjectname if you want it     %-------------------------------------------------        \keywords{} % Keywords for your thesis - this is not currently used anywhere in the template, cite it with \keywordnames if you want it     %-------------------------------------------------        \university{\texorpdfstring{\href{http://www.university.com} % Your university's URL                     {University Name}} % Your university's name - this is currently used in the title page                     {University Name}}     %-------------------------------------------------        \UNIVERSITY{\texorpdfstring{\href{University Web Site URL Here (include http://)} % Your university's URL                     {UNIVERSITY NAME (IN BLOCK CAPITALS)}} % Your university's name in capitals - this is currently used in the abstract page                     {UNIVERSITY NAME (IN BLOCK CAPITALS)}}     %-------------------------------------------------                     \department{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL                     {Department or School Name}} % Your department's name - used in the title page and abstract                     {Department or School Name}}     %-------------------------------------------------                     \DEPARTMENT{\texorpdfstring{\href{Department or School Web Site URL Here (include http://)} % Your department's URL                     {DEPARTMENT OR SCHOOL NAME (IN BLOCK CAPITALS)}} % Your department's name in capitals - this is not currently used anywhere in the template, cite it with \DEPTNAME if you want it                     {DEPARTMENT OR SCHOOL NAME (IN BLOCK CAPITALS)}}     %-------------------------------------------------                     \group{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL                     {Research Group Name}} % Your research group's name - this is currently used in the title page                      {Research Group Name}}     %-------------------------------------------------                     \GROUP{\texorpdfstring{\href{Research Group Web Site URL Here (include http://)} % Your research group's URL                     {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}} % Your research group's name in capitals - this is not currently used anywhere in the template, cite it with \GROUPNAME if you want it                     {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}     %-------------------------------------------------                     \faculty{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL                     {Faculty Name}} % Your faculty's name - this is currently used in the abstract page                     {Faculty Name}}     %-------------------------------------------------                     \FACULTY{\texorpdfstring{\href{Faculty Web Site URL Here (include http://)} % Your faculty's URL                     {FACULTY NAME (IN BLOCK CAPITALS)}} % Your faculty's name in capitals - this is not currently used anywhere in the template, cite it with \FACNAME if you want it                     {FACULTY NAME (IN BLOCK CAPITALS)}}     %----------------------------------------------------------------------------------------              % The default title page, this is not used in this www.latextemplates.com version                 \renewcommand\maketitle{       \btypeout{Title Page}       \hypersetup{pdftitle={\@title}}       \hypersetup{pdfsubject=\subjectname}       \hypersetup{pdfauthor=\authornames}       \hypersetup{pdfkeywords=\keywordnames}       \thispagestyle{empty}       \begin{titlepage}         \let\footnotesize\small         \let\footnoterule\relax         \let \footnote \thanks         \setcounter{footnote}{0}         \null\vfil         \vskip 60\p@         \begin{center}           \setlength{\parskip}{0pt}           {\large\textbf{\UNIVNAME}\par}           \vfill           {\huge \bf \@title \par}           \vfill           {\LARGE by \par}           \smallskip           {\LARGE \authornames \par}           \vfill           {\large A thesis submitted in partial fulfillment for the \par}           {\large degree of \degreename \par}           \bigskip           \bigskip           {\large in the \par}           {\large \facname \par}           {\large \deptname \par}            \bigskip           \bigskip           \bigskip           {\Large \@date \par}           \bigskip         \end{center}         \par         \@thanks         \vfil\null       \end{titlepage}       \setcounter{footnote}{0}%       \global\let\thanks\relax       \global\let\maketitle\relax       \global\let\@thanks\@empty       \global\let\@author\@empty       \global\let\@date\@empty       \global\let\@title\@empty       \global\let\title\relax       \global\let\author\relax       \global\let\date\relax       \global\let\and\relax       \cleardoublepage     }     %----------------------------------------------------------------------------------------     %   ABSTRACT PAGE DESIGN     %----------------------------------------------------------------------------------------     \newenvironment{abstract}     {       \btypeout{Abstract Page}       \thispagestyle{empty}       \null\vfil       \begin{center}         \setlength{\parskip}{0pt}         {\normalsize \UNIVNAME \par} % University name in capitals         \bigskip         {\huge{\textit{Abstract}} \par}         \bigskip         {\normalsize \facname \par} % Faculty name         {\normalsize \deptname \par} % Department name         \bigskip         {\normalsize \degreename\par} % Degree name         \bigskip         {\normalsize\bf \@title \par} % Thesis title         \medskip         {\normalsize by \authornames \par} % Author name         \bigskip       \end{center}     }     %----------------------------------------------------------------------------------------     {       \vfil\vfil\vfil\null       \cleardoublepage     }     \addtocounter{secnumdepth}{1}     \setcounter{tocdepth}{6}     \newcounter{dummy}     \newcommand\addtotoc[1]{     \refstepcounter{dummy}     \addcontentsline{toc}{chapter}{#1}}     \renewcommand\tableofcontents{     \btypeout{Table of Contents}     \addtotoc{Contents}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\contentsname             \@mkboth{                \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}         \@starttoc{toc}         \if@restonecol\twocolumn\fi        \cleardoublepage     }\end{spacing}     }     \renewcommand\listoffigures{     \btypeout{List of Figures}     \addtotoc{List of Figures}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listfigurename           \@mkboth{\MakeUppercase\listfigurename}                   {\MakeUppercase\listfigurename}}         \@starttoc{lof}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }     \renewcommand\listoftables{     \btypeout{List of Tables}     \addtotoc{List of Tables}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listtablename           \@mkboth{               \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}         \@starttoc{lot}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }     \newcommand\listsymbolname{Abbreviations}     \usepackage{longtable}     \newcommand\listofsymbols[2]{     \btypeout{\listsymbolname}     \addtotoc{\listsymbolname}         \chapter*{\listsymbolname           \@mkboth{               \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\listconstants{Physical Constants}     \usepackage{longtable}     \newcommand\listofconstants[2]{     \btypeout{\listconstants}     \addtotoc{\listconstants}         \chapter*{\listconstants           \@mkboth{               \MakeUppercase\listconstants}{\MakeUppercase\listconstants}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\listnomenclature{Symbols}     \usepackage{longtable}     \newcommand\listofnomenclature[2]{     \btypeout{\listnomenclature}     \addtotoc{\listnomenclature}         \chapter*{\listnomenclature           \@mkboth{               \MakeUppercase\listnomenclature}{\MakeUppercase\listnomenclature}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\acknowledgements[1]{     \btypeout{Acknowledgements}     \addtotoc{Acknowledgements}     \thispagestyle{plain}     \begin{center}{\huge{\textit{Acknowledgements}} \par}\end{center}     {\normalsize #1}     \vfil\vfil\null          }     \newcommand\dedicatory[1]{     \btypeout{Dedicatory}     \thispagestyle{plain}     \null\vfil     \vskip 60\p@     \begin{center}{\Large \sl #1}\end{center}     \vfil\null     \cleardoublepage     }     \renewcommand\backmatter{       \if@openright         \cleardoublepage       \else         \clearpage       \fi       \addtotoc{\bibname}       \btypeout{\bibname}       \@mainmatterfalse}     \endinput


title: tikz used to generate eddies in oceanographic diagram

text: I m attempting to generate several curved paths with an arrow at the end:               \documentclass[12pt]{article}     \usepackage{tikz}     \usetikzlibrary{decorations.pathmorphing}     \begin{document}     \begin{tikzpicture}     \foreach \x in {1.5,2.5,3.5,4.5,5.5,6.5,7.5,8.5}     \draw [>=stealth, <-] (\x,4.1) arc (0:280:.1cm);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/OSTVx.png) However, you can see that this doesn't look quite right i.e. the arrows don't look right. I'm not sure if this is due to the curved path being to big or the arrow head being too big? I cant seem to work out the problem, but essentially I would like to make these so that the curved arrows represent eddies in an oceanographic diagram I am generating. I hope I have been clear in my intentions.


title: using data column as "axis" in table with pgfplotstable

text: I'm new to pgfplots/pgfplotstable and got the following problem. I got a datafile like the following I use for plotting with pgfplots:               P1 P2 Value     1 1 0.00000000000e+00     1 2 1.00000000000e-02     1 3 0.00000000000e+00          2 1 1.00000000000e-02     2 2 1.00000000000e-02     2 3 3.00000000000e-02      I can plot this using pgfplots:               \begin{tikzpicture}     \begin{axis}     [     height=15cm,     width=\textwidth%,     ]     \addplot3[surf] table {../../results/testdatafile.dat};     \end{axis}     \end{tikzpicture}     \end{figure}      Now I would like to add a table presenting the data like this:               P2/P1 1                 2     1     0.00000000000e+00 1.00000000000e-02     2     1.00000000000e-02 1.00000000000e-02     3     0.00000000000e+00 3.00000000000e-02      I couldn't figure out how to achieve this. Any help is appreciated.


title: How to specify a default value for overlay specification in \newcommand<>?

text: I have something like this:               \documentclass{beamer}     \newcommand<>{\mycommand}[1]{\textcolor#2{red}{#1}}          \begin{document}      \frame{       \mycommand{test}      }     \end{document}      I want the command to take a default overlay specification (say, `<2,4>`) that will be enabled if the command is called like in the example, without overlay spec., and overwritten if the command is called with an overlay specification (say, `\mycommand<1-4>`). Is this possibile?


title: How to make a really basic reference?

text: I'm trying to make a really basic reference. Let's say I have theses lines in my document :               Lorem Ipsum ...     Lorem Ipsum ... [1] here ... Lorem Ipsum ...     Lorem Ipsum ...      I want to anywhere in my document make a reference to `[1] here`. I thought it would be simple to find out but I searched for too long and I got confused with all the sets and making a simple reference now seems to be like rocket-science to me. > I want the following result : ![enter image description here](http://i.stack.imgur.com/kRTw8.png) When clicking on the colored number `1`, the line `[1] here` get at the top of my document viewer so the user feels easy to find the line directly.


title: Using .bib files in central directory in MikTex 2.9 on Windows 7

text: I am very new at LaTeX, so please bear with me if I am re-posting something. I have found a lot of info online, but nothing simple enough for me to duplicate it. I am trying to set-up my document to use a bib file in a local directory, so that multiple documents can share the same bib file. I will need the tex files to be able to link to this bib file, regardless of the tex file location on my machine. I have the following code to start my document,               \documentclass[aip]{revtex4-1}     \begin{document}     \title{Connecting  a detection system net for Interplanetary counterparts of Coronal Mass Events to warning signals aimed in a spherical pattern to activate automated emergencies procedures aboard interplanetary space craft}     \author{\firstname{Sara-jeanne} Vogler}     \date{\today}     \maketitle     \section{Premises}         hello\cite{Vog13a}     \section{Technique}         \subsection{Timeline}     \section{Evaluation}     \bibliography{C:/LocalTexFiles/bibtex/bib/sarabibs}     \end{document}      My bib file is in C:\LocalTexFiles\bibtex\bib\misc and C:\LocalTexFiles has been added as a Root Directory in MikTex Maintenance Options. The messages during compile says > I couldn't open database file C:/LocalTexFiles/bibtex/bib/sarabibs.bib and > the pdf shows a ? instead of a numerical citation within the text.


title: Mac CMU Garbled in Font Book

text: As you can see in the image, if I double click on "medium" under cmu sans serif a window opens up that looks like there's been a text encoding error. I forget if my Computer Modern was installed by MacTex or if I installed it from SourceForge but if I download the SourceForge version and open the .ttf files they also appear garbled. This is just something I happened to notice. My computer isn't producing garbled documents and the CMU fonts seem ok in Word. Is this bad? ![enter image description here](http://i.stack.imgur.com/foiCE.png)


title: What is "expansion"?

text: I'm relatively new to (La)TeX, but I have a reasonable amount of experience with computational programming languages. Until I began learning (La)TeX, I'd never heard of "expansion"... So, what is "expansion"? _To be clear, I'm not asking how to use commands like`\expandafter` and its ilk._ Perhaps I'm simply unfamiliar with the name of the term. Does "expansion" have an analog in computational languages? From what I've read about it (which has mostly been explanations of commands), it seems like it might be akin to "evaluation" until terminal values are reached, but I'm not sure.


title: How to edit in-text citation in plainnat style?

text: I manage my bibliography with JabRef and everything is OK but I have a problem with my `plainnat.bst` file. Possibly, I want my in-text citation to be like: [Author et al., year] or [Autor, Autor et al., year] when authors are more than 2. I think I have to change the `FUNCTION {format.lab.names}` code but I don't know how to do it. Can you please help me ? This is my code (plainnat default):               FUNCTION {format.lab.names}     { 's :=       s #1 "{vv~}{ll}" format.name$       s num.names$ duplicate$       #2 >       al    { pop$ " et~al." * }       { #2 <         'skip$         { s #2 "{vv }{ll}" format.name$ "others" =             { " et~al." * }             { " e " * s #2 "{vv~}{ll}" format.name$ * }           if$         }       if$     }     if$     }      Yes, Mario, you are perfecly right...I just forgot to say that I'm already using natbib! However, today I've been editing my plainnat.bst file and I managed to write author's name in smallcaps, year of articles in bold and right now my in-text citation looks like this (I would have posted a picture but I don't have 10 reputations yet): [Imperi, F. et al., 2009] and in the bibliography: Imperi, F., Ciccosanti, F., Basulto Perdomo, A., Tiburzi, F., Mancone, C., Alonzi, T., Ascenzi, P., Piacentini, M., Visca, P., e Fimia, G.M. Analysis of the periplasmic proteome of Pseudomonas aeruginosa, a metabolically versatile opportunistic pathogen. Proteomics, 9:1901–1915, 2009. (Citato alle pagine 1, 5, e 6.) I'm nearly satisfied with it, but I just want to know if there's a way to add also the second name of this (and every) article in the in-text citations, like: [Imperi, F., Ciccosanti, F. et al., 2009]


title: "!Missing $ inserted." when using svn $Id$ keyword substitution

text: I'd like to to surface subversion revision numbers for use in the contents of my document. `svninfo` and `svn` packages rely on svn keyword substitution to accomplish this, but I get this error when I try it: > Error line 6 ! Missing $ inserted. Here's the entire document that causes this:               \documentclass{article}     \usepackage{svninfo}          \begin{document}     \svnInfo $Id: doc.tex 8 2013-04-11 19:37:31Z User Name $ %<= Id keyword substituted by svn            \end{document}      The usual suggested remedies for this error are to escape the $ like this: `\$` However, no combination of escaped and non-escaped `$` characters both avoids this error and has useful results. How do I avoid this error _and_ surface svn revision numbers?


title: How to split all BibTeX referenced entries from a big BibTeX database to a copy?

text: I have a BibTeX database with some big number of references which I use for work. When I need to send a document prepared using that database to somone I have two options: either send a full copy of the database (which I would not like to do), or copy all referenced entries from a large database to a smaller copy, and send that copy with a document. Are there any tools which would do this automatically?


title: Filter .bib file for items that are actually used with \cite?

text: > **Possible Duplicate:**   >  How to split all BibTeX referenced entries from a big BibTeX database to a > copy? I have one big `foo.bib` file that contains all my references. Every one of my different LaTeX documents uses this with `\bibliography{foo}` and cites only a subset of the contained references. Is there a good script that takes one of my LaTeX documents (including everything it includes using `\input`) and extracts all the items in `foo.bib` that are cited? In other words, I'd like to filter the big `foo.bib` file using a LaTeX document so that only the cited bibliography items survive.


title: Two columns with page span

text: this is my first post! I have tried to find a solution before posting. I have some input put into my `.tex`. The left column is text input by a user. To the right I would like 0..4 pictures, also according to the users wishes. Minipage would be great. But the text might span over two pages. A `multicol` environment will (AFAIK) allow text in the right column or vice versa. I would like a strict text-left & images-right design for parts of my document This is my attempt, using `minipages` ![](http://i.stack.imgur.com/z1ZSS.png) A neat solution might be to increase the right margin and put the images there. But in case the text is just a few lines, the images didnt stick to the right margin. **Solved** by simply using `\marginpar{\includegraphics{...}}`; see comments by David.


title: Bibtex fails: Process exited with error(s)

text: So, I just installed the latest TeX Live manually from the website on an Ubuntu 11.10 64bit. I left every path on the default one, I installed all the packages. Then I installed the latest version of Texmaker. I just had to manually fix in the option all the command, to make them point to the               /usr/local/texlive/2012/bin/x86_64-linux/'command'      So far everything nice and good, `F2` LaTeX is working as supposed to do; no problems; PDF preview fine as well. Problem arises when I tried to add bibliography:               \bibliographystyle{plain}     \bibliography{/home/elect/Dropbox/Poli/toptesi/Ref}      It doesn't work. I get problems. I don't know which ones, because it is not shown. Then I tried to run the command manually:               elect@elect-desktop:/usr/local/texlive/2012/bin$ bibtex /home/elect/Dropbox/Poli/toptesi/References     I couldn't open file name `/home/elect/Dropbox/Poli/toptesi/References.aux'      Why is it looking for `.aux` file? Edit: as Guido suggested, I ran on the tex file:               elect@elect-desktop:~$ bibtex /home/elect/Dropbox/Poli/toptesi/toptesi-example.aux           bibtex: Not writing to /home/elect/Dropbox/Poli/toptesi/toptesi-example.blg (openout_any = p).     I couldn't open file name `/home/elect/Dropbox/Poli/toptesi/toptesi-example.blg'      Edit2:               elect@elect-desktop:~/Dropbox/Poli/toptes$ pdflatex toptesi-example     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      restricted \write18 enabled.     entering extended mode     (./toptesi-example.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, uk     english, usenglishmax, italian, loaded.     (./toptesi.cls     Document Class: toptesi 2012/10/06 v.5.61b Class for typesetting university the     ses     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size12.clo))     (/usr/local/texlive/2012/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/local/texlive/2012/texmf-dist/tex/generic/babel/babel.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/babel/english.ldf     (/usr/local/texlive/2012/texmf-dist/tex/generic/babel/babel.def))     (/usr/local/texlive/2012/texmf-dist/tex/generic/babel/italian.ldf)))     (./toptesi.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphicx.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2012/texmf-dist/tex/latex/pdftex-def/pdftex.def     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))     (./topfront.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/etoolbox/etoolbox.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/etex-pkg/etex.sty))     (./toptesi.cfg)) (./topcoman.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/textcomp.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ts1enc.def))))     (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hyperref.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/auxhook.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/usr/local/texlive/2012/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver (autodetected): hpdftex.          (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hpdftex.def     (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/inputenc.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/latin1.def))     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/t1enc.def))     (/usr/local/texlive/2012/texmf-dist/tex/latex/lm/lmodern.sty)     (./toptesi-example.aux)     (/usr/local/texlive/2012/texmf-dist/tex/generic/babel/lgrcmr.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ts1cmr.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/lm/t1lmr.fd)     (/usr/local/texlive/2012/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/grfext.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     Messaggio Toptesi: Ricalcolo i margini     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/color.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg))     (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./toptesi-example.out) (./toptesi-example.out)     (/usr/local/texlive/2012/texmf-dist/tex/latex/lm/ot1lmr.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/lm/omllmm.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/lm/omslmsy.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/lm/omxlmex.fd)     Overfull \vbox (2.16994pt too high) has occurred while \output is active     [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     [2] (./toptesi-example.toc)     ! I can't write on file `toptesi-example.toc'.     <to be read again>                         \relax      \@starttoc ... tf@#1\endcsname \jobname .#1\relax                                                        \fi \@nobreakfalse \endgroup           \tableofcontents ...contentsname }\@starttoc {toc}                                                       \clearpage \if@restonecol ...          \indici ... \frontmattertrue \fi \tableofcontents                                                        \iftablespage {\addvspace ...     l.127 \indici          (Press Enter to retry, or Control-D to exit; default file extension is `.tex')     Please type another output file name:       Edit3: Now on >pdflatex I get:               ! LaTeX Error: Something's wrong--perhaps a missing \item.       My bib entry is the follow:               \bibliographystyle{plain} \bibliography{References}


title: Formatting Follow Along Handouts for My Class

text: I am having issues with the `\only<|handout:0>` command, specifically with the resizing of blocks on my beamer slides for my students to use as guided notes for my lecture. I want to keep the blocks on their handouts the same size as in my presentation and let them write within the block as a I present the text on screen. The problem is that the space on the handout is much smaller than it looks on my presentation slides and I believe this is because the only option suppresses the text but does not leave "blank space" to keep the size of the block the same as it was with the text on it. Is there any easy fix for this that I am missing? Here is my example with text suppressed but the block smaller than I would like:               \documentclass[12pt,handout]{beamer}     \usepackage{pgfplots}     \pgfplotsset{compat=1.7}     \usepackage{tikz}     \usetikzlibrary{calc}     \usetheme{Boadilla}               \begin{document}     \begin{frame}[c]          \begin{block}{Economics}              \vspace{0.3cm}         \only<|handout:0>{         \pause          A social science that studies the choices we make \pause as we cope with scarcity \pause and the incentives that               influence and reconcile our choices}         \vspace{0.3cm}     \end{block}     \end{frame}     \end{document}      Here is the original block with the text I would present on screen:               \documentclass{beamer}     \usepackage{pgfplots}     \pgfplotsset{compat=1.7}     \usepackage{tikz}     \usetikzlibrary{calc}     \usetheme{Boadilla}               \begin{document}     \begin{frame}[c]          \begin{block}{Economics}              \vspace{0.3cm}         \pause          A social science that studies the choices we make \pause as we cope with scarcity \pause and the incentives that               influence and reconcile our choices         \vspace{0.3cm}     \end{block}     \end{frame}     \end{document}


title: Help with drawing a triangle in using tikz

text: I'm trying to draw a triangle using TikZ. I managed to get it completed, but now I'm having trouble with getting the node to go into the body of the triangle. I've only been using TikZ for a couple of days so this basic exercise has taken much longer than I care to admit. How would I put the node within the body? Although this does in fact draw a triangle, would you consider it properly done? Is there a better way?               \begin{center}         \begin{tikzpicture}              \draw[gray] ++(150:2.3) -- (0,0); %hypotenuse             \draw[teal] ++(180:2) -- (0,0); %adjacent             \draw[orange] (-2,1.15) -- (-2,0); %opposite                  \draw[thin] (-0.5,0.25) arc (150:180:0.5)                  node[left] {\small $30^\circ$};         \end{tikzpicture}     \end{center}


title: Drawing phase line for differential equations

text: How can one draw one of this pictures in latex with the simplest way and good looking output?![enter image description here](http://i.stack.imgur.com/PeYqV.jpg)


title: \g@addto@macro appending code using parameter

text: After a lot of trial and error, I haven't been able to solve the following problem:   A simplified version: I want to use \g@addto@macro to add code to another macro wich will use a command of the macro, I expected this code to work:               \newcommand{\foo}[1]{#1, }     \newcommand{\bar}[1]{         \g@addto@macro\foo{             ##1#1         }     }      And to produce this output:               \foo{A} -> A,     \bar{B}     \show\foo = #1, #1B     \foo{A} -> A, AB     \bar{C}     \show\foo = #1, #1B#1C     \foo{A} -> A, ABAC      I hope it is clear what I want. In an actual implementation, I want to expand a \switch-like structure dynamically. The problem with the code is, that the `##` is not expanded to `#` when adding code, however `#1` is expanded to the first parameter of `\bar`. This causes               \bar{B}     \show\foo = #1, ##1B      wich in turn doesn't produce the desired output. I would like to avoid additional packages if possible.


title: glossaries \leftmark and \rightmark not translated

text: I was trying to make an article in french with a glossary (glossaire in our weird tongue), and I noticed that, even if I did manage to set the translation right for the body, the \leftmark (or \rightmark) used by fancyhdr is still in english. Here's my code:               \documentclass{article}          \usepackage{fontspec}     \usepackage[francais]{babel}          \usepackage{fancyhdr}          \usepackage[acronym,xindy,toc]{glossaries}     \makeglossaries         \addto{\captionsfrancais}{           \renewcommand{\glossaryname}{Glossaire}         }          \newglossaryentry{thingy}     {       name=thingy,       description={something}     }          \pagestyle{fancy}     \fancyhf{}     \fancyhead[RE]{\small\sc\nouppercase{\leftmark}}     \fancyhead[LO]{\small\sc\nouppercase{\rightmark}}     \fancyhead[LE,RO]{\thepage}          \begin{document}          \gls{thingy}          \newpage          \printglossaries          \end{document}      ![translationproblem](http://i.stack.imgur.com/WbHIQ.jpg) Any idea how to get the correct translation in the header too? Edit: and if I want a different translation altogether ("termes techniques", for example)? Thanks!


title: Computed coordinates are all the same?

text: It's embarrassing question time. Why are my computed coordinates **all** showing up at the same location? The larger filled quarter circles are drawn with:               current page.\x      where `\x` is `south west`, `north west`, `north east`, `south east`, and these work just fine. But when I compute my own locations as:               \coordinate (South West) ($(current page.south west) + ( \XMargin, \XMargin)$) ;     \coordinate (North West) ($(current page.north west) + ( \XMargin,-\XMargin)$) ;     \coordinate (North East) ($(current page.north east) + (-\XMargin,-\XMargin)$) ;     \coordinate (South East) ($(current page.south east) + (-\XMargin, \XMargin)$) ;      they all show at the same location, as shown by the concentric circles: ![enter image description here](http://i.stack.imgur.com/uDScI.png) The correct output should have those concentric circles distributed around the page. ## References:   * Is there a \show for lengths? ## Code:               \def\PaperWidth{3.0 in}     \def\PaperHeight{2.0 in}     \def\Bleed{0.15 in}     \def\SafetyMargin{0.35 in}          \documentclass{article}     \usepackage[         paperwidth=\PaperWidth,         paperheight=\PaperHeight,         margin=\dimexpr\Bleed+\SafetyMargin\relax,         ]{geometry}     \usepackage{tikz}     \usetikzlibrary{calc}     \pagestyle{empty}          \usepackage{printlen}\uselengthunit{in}     \newlength{\XMargin}          \begin{document}     \pgfmathsetlength{\XMargin}{\Bleed + \SafetyMargin}     \noindent     \begin{tikzpicture}[overlay, remember picture]              \coordinate (South West) ($(current page.south west) + ( \XMargin, \XMargin)$) ;         \coordinate (North West) ($(current page.north west) + ( \XMargin,-\XMargin)$) ;         \coordinate (North East) ($(current page.north east) + (-\XMargin,-\XMargin)$) ;         \coordinate (South East) ($(current page.south east) + (-\XMargin, \XMargin)$) ;              % Why are these all showing up at the same point???         \foreach [count=\xi] \x/\Color/\InnerSep  in {South West/orange/4, North West/brown/5, North East/red/6, South East/blue/7} {             \node [circle, draw=\Color, inner sep=\InnerSep pt] at (\x) {\xi};         }              % This works just fine         \foreach \x/\Color in {south west/orange, north west/brown, north east/red, south east/blue} {             \node [circle, fill=\Color, inner sep=0.25in] at (current page.\x) {};         }              \node at (current page.center) {xmargin is \printlength{\XMargin}};          \end{tikzpicture}     \end{document}


title: Graph Labeling and Text Overlay Ability

text: I have a couple of question in regards to LaTeX ability to overlay text on a graph at a specific point. The background: I have a time-series plot that I load in to LaTeX using a txt file and the `pgfplots` package.   1. Is it possible to display the y-coordinate for a selected few x-coordinates in a graph and not for any other x-coordinates?   2. Is it possible to display and overlay text , above the plot-line, at a given x-coordinate?   3. If the second question is not possible, then how could I overlay text on top of a graph at a given part of the graph, not necessarily at a specific x-coordinate observation.


title: How to control white spaces in the text

text: I'm writing my PhD thesis in Latex. Unfortunately the white space between the words is not always the same so that it can appear that after the . no space is there (.my name is...) or sometimes a white space is there (. my name is...). Is there a way to control the presence of white spaces so that after the point (or other symbols) always a white space is there? Thank you in advance Best


title: How to print negative value with currency

text: At the moment my report print currency values with siunitx with \$\numprint{12} But negative values displayed as $-12.00 I would like to display it as: -$12.00 Or you think $-12.00 is ok too for US ?


title: How to define a page number showing the current ((sub)sub)section?

text: I try to print the section (with (sub)subsections) in the page foot. For this I defined a new page number. It works fine on the first four, but not on the last page... The goal is to have ``Section x'' printed on every page, where x is precisely the number of the enclosing ((sub)sub)section.               \documentclass{scrartcl}          \usepackage{scrpage2}     \pagestyle{scrheadings}     \clearscrheadfoot          % page number (omitting trailing zeros)     \newcommand{\mypagenumber}{%       \ifnum\value{subsubsection}=0         \ifnum\value{subsection}=0           \ifnum\value{section}=0             % nothing           \else             Section~\thesection% e.g. 2           \fi         \else           Section~\thesubsection% e.g. 2.1         \fi       \else         Section~\thesubsubsection% e.g. 2.1.3       \fi     }          \ofoot{\mypagenumber}          \begin{document}     \section{Section}     \clearpage     \subsection{Subsection}     \clearpage     \subsubsection{Subsubsection}     \clearpage     \subsubsection{Subsubsection}     \clearpage     \section{Section}     This page should only show ``Section 2'' (not ``Section 2.0.2'')     \end{document}      Here is an update that takes care of the problem that Christian addressed. Still, it requires that sections are not directly followed by subsubsections.               \newcommand{\mypagenumber}{%       \ifnum\value{subsubsection}=0         \ifnum\value{subsection}=0           \ifnum\value{section}=0             % nothing           \else             Section~\thesection% e.g. 2           \fi         \else           Section~\thesubsection% e.g. 2.1         \fi       \else         \ifnum\value{subsection}=0           Section~\thesection% e.g. 2         \else           Section~\thesubsubsection% e.g. 2.1.3         \fi       \fi     }


title: Combine sections into chapter. Each section a separate .tex file

text: I am putting together a portfolio of evidence together. I have written all the individual pieces of evidence as separate latex documents. Some of these documents have references at the end of the section some don't. All references are stored in a file `references.bib`. Here is an example of a standalone piece of evidence ( I have removed the text body)                \documentclass[a4paper,10pt]{article}     \usepackage[utf8x]{inputenc}     \usepackage[margin=0.7in]{geometry}     \usepackage{amsmath}     \usepackage{graphicx}     \makeatletter     \renewcommand\fps@figure{!htb}     \setlength\@fptop{0pt}      \makeatother     \renewcommand{\floatpagefraction}{.6}% before: .5      \renewcommand{\textfraction}{.15} % before: .2      \renewcommand{\topfraction}{.8}     % before: .7      \renewcommand{\bottomfraction}{.5}  % before: .3      \setcounter{topnumber}{3} % before: 2      \setcounter{bottomnumber}{1} % before: 1      \setcounter{totalnumber}{5} % before: 3      %opening          \begin{document}          \section*{Assessing Progression in Whole Body Bone Scans}               \bibliography{/path_to/references.bib}     \bibliographystyle{ieeetr}          \end{document}      However I am having several issues when trying to combine the evidence into a single chapter. I have take the following approach. My Portfolio.tex               \documentclass[a4paper,12pt]{dmathesis}     %% uncommand the following line to print equation labels next to     %% equation numbers.           %% The following is to control the format of your thesis     \input{format}          %% File to be included while running latex.     \includeonly{CoveringReport,EvidenceA-D,EvidenceE}     \begin{document}          %% Front page of thesis     %\input{frontpage}          %% Main text     % set page number starts from 1     \pagenumbering{arabic}     \setcounter{page}{1}     \include{CoveringReport}     \include{EvidenceA-D}     \include{EvidenceE}     \end{document}      EvidenceA-D               \setcounter{equation}{0}     \chapter{Supplementary Evidence}          \section*{Evidence A: MSci Degree Certificate - Physics}          \begin{figure}[!h]     \centering     \includegraphics[page=3,scale=0.65,angle=0]{Images/Degrees.pdf}     \caption{MSci Physics Degree Certificate}     \end{figure}     \newpage          \section*{Evidence B: PhD Degree Certificate - Physics}          \begin{figure}[!h]     \centering     \includegraphics[page=2,scale=0.65, angle=0]{Images/Degrees.pdf}     \caption{PhD Degree Certificate}     \end{figure}     \newpage          \section*{Evidence C: MSc Degree Certificate - Medical Physics}          \begin{figure}[!h]     \centering     \includegraphics[page=1,scale=0.7]{Images/Degrees.pdf}     \caption{MSc Medical Physics: Degree Certificate}     \end{figure}          \section*{Evidence D: IPEM Postgraduate Diploma}          Evidence E     \section*{Evidence E: Assessing Progression in Whole Body Bone Scans}               \bibliography{/path_to/references.bib}     \bibliographystyle{ieeetr}      I would like to keep references to be at the end of each section. The first reference in each section should begin at [1]. I am having the following issues (1) Each new piece of evidence starts on a new page. I have pretty tight page constraints and would like the next section to start at the next available space (2) I get error messages `Citation on page .. undefined` [This was fine in the standalone document] `No Portfolio.bbl` `There were undefined references` How do I solve these issues? I had seen a solution using biblatex and one large Evidence chapter.               \usepackage{biblatex}     \begin{refsection}     \printbibliography     \end{refsection}      However, I have a CentOS 6 operating system and have been unable to successfully implement such a solution as I cannot install biblatex and all its dependencies EDIT * * * I have solve the first issue by using `\input` in place of `include`


title: Errors in the CV template by Scott Clark

text: I downloaded a CV Template. It got succesfully compiled in ShareLaTeX and WriteLaTeX. But In my TeXLive Distribution, I am getting errors. Here is the code:               % (c) 2002 Matthew Boedicker <mboedick@mboedick.org> (original author) http://mboedick.org     % (c) 2003-2007 David J. Grant <davidgrant-at-gmail.com> http://www.davidgrant.ca     % (c) 2008 Nathaniel Johnston <nathaniel@nathanieljohnston.com> http://www.nathanieljohnston.com     %     % (c) 2012 Scott Clark <sc932@cornell.edu> cam.cornell.edu/~sc932     %     %This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.          \documentclass[letterpaper,11pt]{article}     \newlength{\outerbordwidth}     \pagestyle{empty}     \raggedbottom     \raggedright     \usepackage[svgnames]{xcolor}     \usepackage{framed}     \usepackage{tocloft}               %-----------------------------------------------------------     %Edit these values as you see fit          \setlength{\outerbordwidth}{3pt}  % Width of border outside of title bars     \definecolor{shadecolor}{gray}{0.75}  % Outer background color of title bars (0 = black, 1 = white)     \definecolor{shadecolorB}{gray}{0.93}  % Inner background color of title bars               %-----------------------------------------------------------     %Margin setup          \setlength{\evensidemargin}{-0.25in}     \setlength{\headheight}{0in}     \setlength{\headsep}{0in}     \setlength{\oddsidemargin}{-0.25in}     \setlength{\paperheight}{11in}     \setlength{\paperwidth}{8.5in}     \setlength{\tabcolsep}{0in}     \setlength{\textheight}{9.5in}     \setlength{\textwidth}{7in}     \setlength{\topmargin}{-0.3in}     \setlength{\topskip}{0in}     \setlength{\voffset}{0.1in}               %-----------------------------------------------------------     %Custom commands     \newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}     \newcommand{\resheading}[1]{\vspace{8pt}       \parbox{\textwidth}{\setlength{\FrameSep}{\outerbordwidth}         \begin{shaded}     \setlength{\fboxsep}{0pt}\framebox[\textwidth][l]{\setlength{\fboxsep}{4pt}\fcolorbox{shadecolorB}{shadecolorB}{\textbf{\sffamily{\mbox{~}\makebox[6.762in][l]{\large #1} \vphantom{p\^{E}}}}}}         \end{shaded}       }\vspace{-5pt}     }     \newcommand{\ressubheading}[4]{     \begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}             \textbf{#1} & #2 \\             \textit{#3} & \textit{#4} \\     \end{tabular*}\vspace{-6pt}}     %-----------------------------------------------------------               \begin{document}          \begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}     \textbf{\Large Your Name} & \textbf{\today} \\     Short description of you & E-mail \\     Adress & Homepage \\     \end{tabular*}     \\               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \resheading{Education}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{itemize}          \item \ressubheading{University Name}{City, Country}{BSc, MSc, PhD, or something else}{2009 - 2013}          \begin{itemize}         \resitem{Additional description nr 1}         \resitem{Additional description nr 2}     \end{itemize}          \item \ressubheading{Other University Name}{City, Country}{BSc, MSc, PhD, or something else}{2004 - 2009}          \end{itemize}               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \resheading{Some important section}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \begin{enumerate}      \item First item      \item Second item     \end{enumerate}          \begin{itemize}      \item First item      \item Second item     \end{itemize}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \resheading{Awards, Grants \& Honours}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         \vspace{-2pt}         \begin{center}\begin{tabular*}{6.6in}{l@{\extracolsep{\fill}}r}             \multicolumn{2}{c}{Nobel Prize \cftdotfill{\cftdotsep} 2013}\\             \multicolumn{2}{c}{Big grant \cftdotfill{\cftdotsep} 2010-2013}\\             \vphantom{E}     \end{tabular*}     \end{center}\vspace*{-16pt}               \end{document}      The errors I get are :               --TeX said--     \cftdotfill #1->\def \@tempa     {#1}\def \@tempb {\cftnodots} \ifx \@tempa .... l.77          --TeX said--     <inserted text>     \inaccesible     l77      ![enter image description here](http://i.stack.imgur.com/Fhqvv.png) ![enter image description here](http://i.stack.imgur.com/hrjGG.png)


title: Transparency in tikz, preview package and xelatex

text: Is it possible to have transparency in a tikz picture while using the `preview` package and compiling with xelatex? The following mwe compiles without warnings/errors under both xelatex and pdflatex but with xelatex there is no transparency. Everything is printed opaque. With pdflatex everything works as expected.               \documentclass[a4paper,12pt]{article}          \usepackage{tikz}          \usepackage[xetex,active,tightpage]{preview}     %\usepackage[pdftex,active,tightpage]{preview}          \PreviewEnvironment[]{tikzpicture}          \begin{document}          \begin{tikzpicture}[line width=1ex]       \draw (0,0) -- (3,1);       \filldraw [fill=red,draw opacity=0.5] (1,0) rectangle (2,1);     \end{tikzpicture}          \end{document}


title: Fit text to linewidth, shrinking only

text: I often have AVMs/tables that are just a bit too large and use `\resizebox` to fit everything in one line. Now, if the `linewidth` changes (switch from `twocolumn` to `onecolumn`) this results in enlarging the text.               \newcommand{\oneline}[1]{\resizebox{\linewidth}{!}{#1}}      Is there some way to reach the same result but without the possibility of enlarging the box?


title: Adding "\usepackage{subfig}" (no other changes in file) throws error

text: I want to use the `subfig` package to have a neat row of figures with captions for each one of them. However, as soon as I add the line `\usepackage{subfig}`, pdfLaTeX fails with the following error:               ! Undefined control sequence.     <argument> \sf@counterlist           l.54 \begin{document}      I have commented this line (and the corresponding lines where I am actually using the subfig package) and everything works fine. The preamble is               \documentclass{sig-alternate-10pt}          \usepackage{times}     \usepackage{cite}     \usepackage{multirow}     \usepackage[tight,footnotesize]{subfigure}     \usepackage{url}     \usepackage[usenames,dvipsnames]{color}     \usepackage{xspace}     \usepackage{epsfig,url,hyperref}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{subfig}          \newcommand{\comment}[1]{}     \newcommand{\eat}[1]{}     \usepackage{booktabs}     \usepackage[export]{adjustbox}          \newcommand{\tightcaption}[1]{\vspace{-0.2cm}\caption{#1}\vspace{-0.2cm}}          \begin{document}      And here's the part where I am using the subfloats:               \begin{tabular}{cccc}     \subfloat[2006]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2006-cloud-crop.pdf}} &     \subfloat[2007]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2007-cloud-crop.pdf}} &     \subfloat[2008]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2008-cloud-crop.pdf}} &     \subfloat[2009]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2009-cloud-crop.pdf}} \\     \subfloat[2010]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2010-cloud-crop.pdf}} &     \subfloat[2011]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2011-cloud-crop.pdf}} &     \subfloat[2012]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2012-cloud-crop.pdf}} &     \subfloat[2013]{\includegraphics[width=.24\textwidth, height=.24\textwidth, frame]{figures/2013-cloud-crop.pdf}} \\     \end{tabular}      Is this error thrown due to some package incompatibility? I am a little taken aback by the error being thrown right after the preamble.


title: How to get a reasonable coordinate system when combining pdfpages and TikZ?

text: I have been trying to add content to a (proprietary) PDF with LaTeX by using `pdfpages` to inlude the original pages and draw on them using TikZ. This is the code I have been using:               \documentclass[a4paper]{article}     \usepackage{tikz,pdfpages}     \begin{document}       \includepdf[pages=1,pagecommand={%         \begin{tikzpicture}[overlay]           \node[circle,fill=red] at (0,0) {0};           \node[circle,fill=red] at (1,1) {1};         \end{tikzpicture}%       }]{pgfmanual.pdf}%     \end{document}      This basically works but the coordinate system is weird: ![failing example](http://i.stack.imgur.com/20aig.png) Both origin and grid unit seem to be chosen rather arbitrarily. For more convenient/intuitive use, I would like to have `(0,0)` in the lower-left corner -- just like a normal TikZ picture. How is this possible?


title: Toggle permission to use shell escape in document itself

text: Permitting LaTeX to execute shell code (aka -enable-write-18) is dangerous. But I sometimes need it due to dot2texi. So in my IDE (which in my case is WinEdt) I manually switch it on when I work with dot2texi, and switch it off when when I do not longer work with dot2texi AND (important) do not forget it (weak spot). I vaguely recall that switching on shell escapes can be done as per document. That would be nice. Does anyone remember how?


title: Predefined animation in Beamer

text: As in MS PowerPoint, were in we select an object and choose one of the transitions or animations and it gets applied for that object ( _in a predefined path or manner_ ), are there packages in beamer or in general LaTeX where in, I give reference of the object to be animated to a predefined or existing macro and the animation is applied (rather than having to code the animation every time). For reference, If I would like to animate this, Animated Arrows , (i.e.) the arrows should appear one by one after pressing of the enter key (only using 1 or 2 macros and not more than that). How do I do it?


title: Table entry optimization

text: I am looking to get a better way of creating the following table: ![enter image description here](http://i.stack.imgur.com/VoPRf.png)               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage[letterpaper,tmargin=2cm,bmargin=2cm,lmargin=2.5cm,rmargin=2.5cm]{geometry}     \usepackage{amsmath,amsfonts}     \usepackage{booktabs,array}     \usepackage[dvipsnames,table]{xcolor}     \setlength{\parindent}{0pt}          \begin{document}          \renewcommand{\arraystretch}{1.3}     \makebox[\linewidth]{%     \rowcolors{2}{green!10}{white}     \begin{tabular}{|>{\centering}p{3em}|*{12}{c}|p{3em}<{\centering}|}     \hline     Day of Month & \raisebox{-1.5ex}{Jan.} & \raisebox{-1.5ex}{Feb.} & \raisebox{-1.5ex}{Mar.} & \raisebox{-1.5ex}{Apr.} & \raisebox{-1.5ex}{May} & \raisebox{-1.5ex}{June} & \raisebox{-1.5ex}{July} & \raisebox{-1.5ex}{Aug.} & \raisebox{-1.5ex}{Sept.} & \raisebox{-1.5ex}{Oct.} & \raisebox{-1.5ex}{Nov.} & \raisebox{-1.5ex}{Dec.} & Day of Month%     \\ \hline     1 & 1 & 32 & 60 & 91 & 121 & 152 & 182 & 213 & 244 & 274 & 305 & 335 & 1%     \\ %\hline     2 & 2 & 33 & 61 & 92 & 122 & 153 & 183 & 214 & 245 & 275 & 306 & 336 & 2  %     \\ %\hline     3 & 3 & 34 & 62 & 93 & 123 & 154 & 184 & 215 & 246 & 276 & 307 & 337 & 3 %     \\ %\hline     4 & 4 & 35 & 63 & 94 & 124 & 155 & 185 & 216 & 247 & 277 & 308 & 338 & 4 %     \\ %\hline     5 & 5 & 36 & 64 & 95 & 125 &156 &186 &217 &248 &278 & 309& 339& 5%     \\ \hline     6 & 6 & 37 & 65 & 96 & 126 &157 &187 &218 &249 &279 &310 &340 & 6%     \\ %\hline     7 & 7 & 38 & 66&97 &127 &158 &188 &219 &250 &280 &311 &341 &7 %     \\ %\hline     8 & 8 &39& 67&98 &128 &159 &189 &220 &251 &281 &312 &342 &8 %     \\ %\hline     9 & 9 & 40&68 &99 &129 &160 &190 &221 &252 &282 &313 &343 &9 %     \\ %\hline     10 & 10 & 41&69 &100 &130 &161 &191 &222 &253 &283 &314 &344 &10 %     \\ \hline     11 & 11 & 42&70 &101 &131 &162 &192 &223 &254 &284 &315 &345 &11 %     \\ %\hline     12 & 12 & 43&71 &102 &132 &163 &193 & 224&255 &285 &316 &346 &12 %     \\ %\hline     13 & 13 &44&72 &103 & 133&164 &194 &225 &256 & 286&317 &347 &13 %     \\ %\hline     14 &14 & 45&73 &104 &134 &165 &195 &226 &257 & 287&318 &348 &14 %     \\ %\hline     15 & 15 &46&74 &105 & 135&166 &196 &227 &258 &288 &319 &349 &15 %     \\ \hline     16 & 16 & 47&75 &106 &136 &167 &197 &228 &259 &289 &320 &350 &16 %     \\ %\hline     17 & 17 &48& 76&107 & 137&168 &198 &229 &260 & 290& 321& 351& 17%     \\ %\hline     18 & 18 & 49& 77&108 & 138&169 &199 &230 &261 & 291& 322& 352& 18%     \\ %\hline     19 & 19 & 50& 78&109 & 139&170 &200 &231 &262 & 292& 323& 353& 19%     \\ %\hline     20 & 20 & 51& 79& 110& 140&171 &201 &232 &263 &293 &324 &354 &20 %     \\ \hline     21 & 21 &52& 80& 111& 141&172 &202 &233 &264 &294 & 325&355 & 21%     \\ %\hline     22 &22 & 53& 81& 112& 142& 173&203 &234 &265 & 295& 326& 356& 22%     \\ %\hline     23 &23 & 54& 82& 113& 143& 174&204 &235 &266 & 296& 327& 357& 23%     \\ %\hline     24 &24 & 55& 83& 114& 144& 175&205 &236 &267 & 297& 328& 358& 24%     \\ %\hline     25 &25 & 56& 84& 115& 145& 176&206 &237 &268 & 298& 329& 359& 25%     \\ \hline     26 &26 & 57& 85& 116& 146& 177&207 &238 &269 &299 & 330& 360& 26%     \\ %\hline     27 &27 & 58& 86& 117& 147& 178&208 &239 &270 &300 &331 &361 & 27%     \\ %\hline     28 &28 & 59& 87& 118& 148& 179&209 &240 &271 &301 &332 & 362& 28%     \\ %\hline     29 &29 & \ldots &88 &119 &149 &180 &210 &241 &272 &302 &333 & 363& 29%     \\ %\hline     30 &30 & \ldots &89 &120 &150 &181 &211 &242 &273 &303 &334 & 364& 30%     \\ %\hline     31 &31 & \ldots &90 & \ldots & 151 &\ldots &212 &243 &\ldots &304 &\ldots & 365&31 %     \\ \hline     \end{tabular}     }     \end{document}      With better I mean more mathematical or algorithmic. I know, I know, I know.... its tedious as you can see, but at the time I had no time to rethink a different way of doing it.


title: multiple spacing in TOC

text: Thesis office at my university has this rule regarding TOC -   * Chapter headings should have double space above and below them   * Subheadings should be single spaced. To accomplish this, I have this in my latex source file               \setlength{\cftbeforechapskip}{12pt} % space between whole chapter blocks`     \renewcommand{\cftchapafterpnum}{\vskip 16pt}     % single spaced section and subsection     \renewcommand{\cftsecafterpnum}{\vskip 6pt}     \renewcommand{\cftsubsecafterpnum}{\vskip 6pt}      The problem I have is - because of the first two commands, I have unequal space distribution - something like               ABSTRACT     <28pt>      DEDICATION     <28pt>     .     .     .     .     CHAPTER 1 TITLE     <28pt>     CHAPTER 2     <16pt>     ...SUBHEADING 1     ...SUBHEADTING 2     <16pt>     CHAPTER 3     <16pt>     .     .     .      I have used `\cftbeforesubsecskip` and `\cftbeforesecskip` also. These introduce spaces everywhere. What I want is -               ABSTRACT     <16pt>     DEDICATION     <16pt>     .     .     .     <16pt>     CHAPTER 1 TITLE     <16pt>     CHAPTER 2     <16pt>     ...SUBHEADING 1     ...SUBHEADTING 2     <16pt>     CHAPTER 3     <16pt>     .     .     .      Could someone please tell me how I can get uniform spacing? Thanks a lot. I am clueless about this ... :( This is what I get - ![TOC PAGE](http://i.stack.imgur.com/RBnQS.png)


title: Need to use \pageref to a page that has *-equations

text: I am sure that this has been asked before, but I don't seem to be able to find the answer. I need to make a reference to a page. That is, I would like to use `\pageref{}`. I specifically need to make a reference to an equation that is in `\begin{align*} \end{\align}`. When I insert a `\label` in the `align*` I get an error. How can I do this? So I want to do something like this               \documentclass[12pt]{report}     ...          Texts          \begin{align*}     e = mc^2\label{eqn}     \end{align*}     ...     Text the equation on page \pageref{eqn} is ...      I need to make a page reference to the page that contains `E=mc^2`.


title: Removing Type 3 fonts

text: How do I remove Type 3 fonts in a pdf generated by tex? I uploaded manuscript to a submission site and it says there are some type 3 fonts.Doesn't even tell where they are.


title: Modifying biblatex not display accents in Latin locutions

text: I'm finishing my thesis written in latex using the biblatex package. Getting picky about the details, my friend told me that it is not correct to use `Ibíd.` or `óp.cit.`, note the small accents. I'm using the option to put these Latin terms in italic. They are in their original language and in latin there are no accents. How do i patch the package to stop putting these latin locutions with an accent. It should be `op. cit.` or `Ibid`. I'm writing in spanish, using xetex and the polyglossia package.               \documentclass[12pt,spanish,letter,twoside,openright]{memoir}     \usepackage{polyglossia}     \setdefaultlanguage{spanish}          \OnehalfSpacing     \makeatletter          \usepackage[autocite=footnote,natbib=true,style=verbose-trad2,backend=bibtex8,isbn=false,dashed=false,maxcitenames=2,ibidem=idem,idemtracker=false,style=verbose-trad2,ibidpage=true]{biblatex}          \addbibresource{citastesis.bib}     \bibliography{biblatex_style_guide}          \renewcommand*{\mkibid}{\emph} %% for italics in ibidem                \begin{document}        Text 1, text 2, \autocite{cite1}.        Paragraph2, \autocite{cite1}.           \end{document}      Edit: I add the MWE.


title: pgfplotstable: how to repeat row entries and combine it with external data

text: I want to combine the table data (in a file `A.txt`)               -0.13336 -0.13634 -0.13336 -0.11589 -0.136           0.76158 0.63087 0.76158 0.95729 0.63          0.9543 0.59712 0.9543 0.90589 0.59712           0.17172 0.13013 0.17172 0.18496 0.13013           4.9543  3.9543 2.9543 5.9543 1.9543      which some labels. The final result should be (like the tex-result of ...)               \begin{tabular}{ l|l|lllll }     \multirow{3}{*}{New}  & a & -0.13336 & -0.13634 & -0.13336 & -0.11589 & -0.136 \\                   & z & 0.76158 & 0.63087 & 0.76158 & 0.95729 & 0.63 \\                   & b & 0.9543 & 0.59712 & 0.9543 & 0.90589 & 0.59712 \\     \multirow{3}{*}{Old}  & a & 0.17172 & 0.13013 & 0.17172 & 0.18496 & 0.13013 \\                   & z & 4.9543  & 3.9543 & 2.9543 & 5.9543 & 1.9543 \\                   & b & 0.9543 & 0.59712 & 0.9543 & 0.90589 & 0.59712 \\          \end{tabular}      The labels 'a,z,b' are repeated several times and the instead of just 'New' and 'Old', I've a lot more Labels (and therefore I've also a longer table...) I've alread found here at TeX.SX how to combine two tables, but I'm not sure how put it as format option in `\pgfplotstabletypeset`


title: Inserting three minipages in the same line

text: I'm trying to insert three `minipages`, side by side, in a line, but I'm failing miserably. Here's what I've been able to do so far:               % -------------------------------------------------------------------     % Packages     \usepackage{tikz}     \usepackage{multirow}          \usetikzlibrary{fit}     \usetikzlibrary{shapes}          % -------------------------------------------------------------------     \begin{document}     \begin{table}     \centering     \makebox[0pt][c]{\parbox{0.7\textwidth}{     \begin{minipage}{0.4\hsize}          \centering     \scalebox{1.1}{     \addtolength{\tabcolsep}{5pt}     \begin{tabular}{c l l}         \cline{2-3}         & \multicolumn{2}{c}{Transactions} \\         \hline         id & Initial & Ordered \\         \hline         1 & c a     & a c     \\         2 & c b e a & b c e   \\         3 & d a c   & a c d   \\         4 & b a     & a b     \\         5 & b d c   & b c d   \\         6 & a b d e & a b d e \\         6 & e a     & a e     \\         \hline     \end{tabular}}          \end{minipage}     \hfill \vrule \hfill     \begin{minipage}{0.25\hsize}          \centering     \begin{tikzpicture}[level distance = 30pt]              % Tree 1         \tikzstyle{every node}=[circle, draw, minimum size=5pt,             scale=0.8]         \node {\#:3}         child { node {a:2}         child { node {c:1}[sibling distance=30pt]         child { node[rectangle, draw] {1} }         child { node {d:1}         child { node[rectangle, draw] {3} } } } }         child { node {b:1}         child { node {c:1}         child { node {e:1}         child { node[rectangle, draw] {2} } } } }         ;          \end{tikzpicture}          \end{minipage}     \hfill \vrule \hfill     \begin{minipage}{0.25\hsize}          \begin{tikzpicture}[level distance = 30pt]              % Tree 2         \tikzstyle{every node}=[circle, draw, minimum size=5pt,             scale=0.8]         \node {\#:3}         child { node {b:1}         child { node {c:1}         child { node {d:1}         child { node[rectangle, draw] {5} } } } }         child { node {a:2}[sibling distance=30pt]         child { node[rectangle, draw] {6} }         child { node {b:1}         child { node[rectangle, draw] {4} } } }         ;          \end{tikzpicture}          \end{minipage}}}     \end{table}          \end{document}      ![screenshot](http://i.stack.imgur.com/vhpT2.png) I'd like to have the `minipages` side by side, separated by vertical lines, and, if possible, I'd like to add a box around the result. cmhughes, thanks for your reply. Although it works much better than what I had, it still uses less than the available space in the page. My point is, why isn't the `fbox` you've inserted taking the entire `linewidth` of the page. I'm not sure if it is the `linewidth`, or the `textwidth`, or even the `hsize` I'm willing to refer to; I just would like to have the three minipages, side- by-side, using the "whole" page width available -- naturally, considering the initial margins of the page. Is there any solution for this?


title: Extra space added after equation when it is coloured

text: For some reason space is added after my equation when I colour it. This does not happen if the colour is added to text. Is there a simple way to prevent this from happening, like a global setting (I am not interested in manually adjusting the space with `\vspace{-1cm}`)? Perhaps there is a better way to colour my equation (another package, another command, etc), or in other words, am I doing something wrong? ![enter image description here](http://i.stack.imgur.com/w8IZW.png)               \documentclass[12pt]{standalone}          \usepackage{amsmath}     \usepackage{color}          \begin{document}          \begin{minipage}{4cm}     \begin{equation*}         a = b + c     \end{equation*}     \begin{align*}         a - b &= c\\         a-c & b     \end{align*}     \end{minipage}          \vline          \begin{minipage}{4cm}     \begin{equation*}     \color{blue}    a = b + c     \end{equation*}     \begin{align*}         a - b &= c\\         a-c & b     \end{align*}     \end{minipage}          \end{document}      For reference, the closest question I found to this one doesn't seem to solve my problem, ie, adding `\fboxsep0pt` to my preamble did not change the output. **EDIT** Kurt's comment solves part of the problem, but it doesn't work when using for example `align` (it gives an error):               \begin{align*}     {\color{blue}    a - b &= c}\\         a-c &= b     \end{align*}      If I try to fix this using the command twice leaving the & outside, the spacing around `=` is wrong:               \begin{align*}     {\color{blue}    a - b} &{\color{blue}= c}\\         a-c &= b     \end{align*}


title: How to force LaTeX not to break the line after a hyphen “-”?

text: With `~` we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the `-` in `(re-)creation`. In my document the line breaks between `(re-` and `)creation`, which looks a bit ugly. How can I achieve this?


title: Reference to my subfloats always reference to Fig 1a, 1b or 1c

text: I have a document where **multiple** figures with subfloats are included, like this one:               \documentclass[pdftex, a4paper, oneside]{scrartcl}     \usepackage[lofdepth,lotdepth]{subfig}     \usepackage{graphicx}     \begin{document}     test     \ref{fig:2ref1}     \ref{fig:1ref1}     \section{test}     \begin{figure}[h]     \subfloat[][caption1]{     \includegraphics[width=0.45\textwidth]{pictures/1.pdf}     \label{fig:1ref1}     }     \subfloat[][caption]{     \includegraphics{pictures/2.pdf}     \label{fig:1ref2}     }     \end{figure}     \section{test2}     \begin{figure}[h]     \subfloat[][caption]{     \includegraphics[]{pictures/1.pdf}     \label{fig:2ref1}     }     \subfloat[][captio]{     \includegraphics{pictures/2.pdf}     \label{fig:2ref2}     }     \end{figure}     \end{document}      The problem now is that both `\ref{fig:2ref1}` and `\ref{fig:1ref1}` return `1a` as picture reference, even if they are different pictures and should be `1a` and `2a`.


title: Grouping Negates Effect of \centering

text: Why does the use of `\begingroup`, `\endgroup` negate the effect of centering in the MWE? The MWE below yields a left aligned figure ( _not_ desired), with subsequent text on the left ( _desired_ ): ![enter image description here](http://i.stack.imgur.com/20uwe.png) But if I remove the `\begingroup`, `\endgroup`, then things work as desired as far as the `\centering` goes, but then the subsequent text is also centered? ![enter image description here](http://i.stack.imgur.com/ZVjvv.png) ## Question:   * I thought the entire purpose of grouping was to localize the effect. So, what is the subtlety of grouping that results in this behavior?   * How do I keep the grouping, yet also have the centering? I would like to ensure that any settings that are changed via the inserted figure are kept local to that figure. ## Code:               \documentclass{article}     \usepackage{showframe}     \usepackage{pgfplots}          %\usepackage{filecontents}% Commented to prevent overwriting myFig.tex     \begin{filecontents*}{myFig.tex}         \def\YLabel{$f(x) = x^2 - x +4$}         \begin{tikzpicture}         \begin{axis}[ xlabel=$x$, ylabel=\YLabel]             \addplot {x^2 - x +4};          \end{axis}         \end{tikzpicture}     \end{filecontents*}          \newcommand*{\InsertFigure}[1]{%         \IfFileExists{#1}{%             \begingroup%                 \centering%                 \input{#1}%             \endgroup%         }{}%     }%          \begin{document}         \InsertFigure{myFig.tex}          \textbf{Text on left.}     \end{document}


title: Memoir: Increase header height for title page

text: I have to use a particular latex template. On the titlepage there is a logo in the header which is to high. > Class memoir Warning: The material used in the headers is too large > (78.7743pt) for the given head height (14.5pt), it is recommended to either > increase the head height or redesign the header (in both cases you will find > help in the memoir manual). on input line 114. Now I guess I have to use `\setheadfoot{ headheight }{ footskip }` (memoir manual page 20). The title page has a `\newgeometry` statement, I tried to insert it before and after but either the header is higher than the page or `\textheight` is not changed so the footer is below the border of the page. Where should I set `\setheadfoot{ headheight }{ footskip }`? Or is there another way?


title: Top alignment of cell content in tabularx

text: I would like to align the content of each cell (of the first column) to the top. The approaches presented here did not apply. Maybe it has something to do with die `tabular`-environment inside the `tabluarx`-environment? How it looks like ![i1](http://i.stack.imgur.com/n2Saf.png) How I would like it to look like ![i2](http://i.stack.imgur.com/zNZAn.png) **MWE**               \documentclass{article}     \usepackage{tabularx,booktabs}           \begin{document}              \begin{tabularx}{\textwidth}{lX}             \toprule             Mittel    & technische Details\\             \midrule             %first row of tabularx             Laptop      &                 \begin{tabular}{ll}                 MacBook Pro & \\                 Baujahr 2010 & \\                  Prozessor & 2.4 GHz Intel Core 2 Duo \\                 Speicher & 4 GB 1067 MHz DDR3 \\                 Software & Mac OS X Lion 10.7.5 (11G63)                 \end{tabular}\\[3em]             %second row of tabularx             Programmierumgebung          &                 \begin{tabular}{ll}                 Version & 8.0.4.0 \\                 Plattform & Mac OS x86 (32-bit, 64-bit Kernel)                 \end{tabular}\\             \bottomrule         \end{tabularx}          \end{document}


title: Inserting 'PTO' (please turn over)

text: Is there a way to create a command which is like a `\pagebreak` (in that it suggests that it might be a good place to break a page, but certainly doesn't enforce it) but which inserts 'PTO' ("please turn over") near the bottom of the first page? [The context is that I have computer-generated material in which there are, roughly speaking, many pairs of 'headers' and associated 'pictures'. Sometimes the pictures are so large that they have to go on a page of their own. The PTO would indicate that this has happened, and so one could distinguish a header- with-picture from a header-without-picture (which occasionally occurs).]


title: Cases environment compresses fractions?

text: what should I do to stop the cases environment compressing the first line of the following?               \begin{equation}     \alpha_{mn} = \begin{cases} \frac{16\mu^2}{mn\pi^2\left[\pi^2(m^2/a^2 + n^2/b^2) - \mu^2\right]} &\mbox{for } m \mbox{ and } n \mbox{ odd;}      \\ 0 &\mbox{for } m \mbox{ or } n \mbox{ even;} \end{cases} \\[1ex]     \end{equation}      I'm not sure to do tex on this site, but if anyone tries it they see the first case is compressed because it's a fraction. Thanks.


title: Setting a rotation matrix instead of Euler angles in tikz-3dplot

text: In `tikz-3dplot`, I would like to use rotated coordinates by setting the according rotation matrix directly, instead of implicitly by Euler Z-Y-Z angles. I already tried to modifiy the internal matrix elements with               \pgfmathsetmacro{\raaeul}{0.5}     ...     \pgfmathsetmacro{\rcceul}{0.33}      right before the `draw[tdplot_rotated_coords]`, but this had no effect at all.


title: Memoir: Custom Table of Contents with "veelo" Chapter Style

text: For my master's thesis I would like a ToC of the following format: page | CHAPTER 1 Introduction page | CHAPTER 2 Theory and Principles page | CHAPTER 3 Methodology etc... (the "|"s represent a vertical rule separating the page numbers) However, I have absolutely no idea how I would proceed to modify the ToC. I have been reading the Memoir manual, but I am having trouble understanding the various codes needed - and frankly, my LaTeX understanding is not good enough for me to do something like this myself. I would also like the "Contents heading" to be unaffected, since I would like to use the "veelo" chapter style (for the thumb induces). The formatting should apply to chapters and sections. I would appreciate any pointers and help, and tex.stackexchange will definitely be mentioned in my acknowledgements as I would not be able to do anything without all the information on here! Working example:               \documentclass[a4paper, twoside, openright]{memoir}          \author{Myself and I}     \title{Awesome Master's Thesis Title}          \usepackage{graphicx}     \usepackage{lipsum}          \chapterstyle{veelo}     \pagestyle{Ruled}               \begin{document}     \maketitle          \tableofcontents*          \chapter{Introduction}          \chapter{Theory and Principles}     \lipsum[1]              \section{ICP-MS}         \lipsum[2]              \section{ICP-OES}         \lipsum[3]              \section{X-Ray Diffraction}         \lipsum[4]              \section{Scanning Electron Microscopy}         \lipsum[5]          \chapter{Methodology}               \end{document}      Regards, Anders


title: Several citations in the same bracket

text: Suppose I make two citations at the same place               \cite{ref1}, \cite{ref2}      It would appear as               [1], [2]      Sometimes I see a reference like               [1, 2]      How is that done in TeX? Also, when should I use one over the other?


title: How to create a table like I do in Word

text: I searched for examples with Google about how to create a table like this with LaTeX but nothing can help me, so I just make the question here. ![enter image description here](http://i.stack.imgur.com/EcZwQ.png)


title: Problems with Gnuplot

text: I am a begineer in LaTex and absoulte novice in gnuplot. I am using Texstudio and Windows 8.1. The problem is - I cannot make LaTex display a simple image. Probably some settings issue. In paricular, I took the simplest gnuplot code from the web (with slight adjustment): This is the gnuplot code for my graph:               reset      set key inside left top vertical Right noreverse enhanced autotitles box linetype -1 linewidth 1.000     set samples 50, 50     plot [-10:10] sin(x),atan(x),cos(atan(x))     set term pslatex auxfile     set output 'proba1.tex'          replot       This is a file (test1.tex) that I get (besides ps file):               % GNUPLOT: LaTeX picture with Postscript     \begingroup%     \makeatletter%     \newcommand{\GNUPLOTspecial}{%     \@sanitize\catcode`\%=14\relax\special}%     \setlength{\unitlength}{0.0500bp}%     \begin{picture}(7200,5040)(0,0)%     \special{psfile=proba1.ps llx=0 lly=0 urx=360 ury=252 rwi=3600}     \put(2340,4236){\makebox(0,0)[r]{\strut{}cos(atan(x))}}%     \put(2340,4436){\makebox(0,0)[r]{\strut{}atan(x)}}%     \put(2340,4636){\makebox(0,0)[r]{\strut{}sin(x)}}%     \put(6839,200){\makebox(0,0){\strut{} 10}}%     \put(5324,200){\makebox(0,0){\strut{} 5}}%     \put(3809,200){\makebox(0,0){\strut{} 0}}%     \put(2295,200){\makebox(0,0){\strut{}-5}}%     \put(780,200){\makebox(0,0){\strut{}-10}}%     \put(660,4799){\makebox(0,0)[r]{\strut{} 1.5}}%     \put(660,4066){\makebox(0,0)[r]{\strut{} 1}}%     \put(660,3333){\makebox(0,0)[r]{\strut{} 0.5}}%     \put(660,2599){\makebox(0,0)[r]{\strut{} 0}}%     \put(660,1866){\makebox(0,0)[r]{\strut{}-0.5}}%     \put(660,1133){\makebox(0,0)[r]{\strut{}-1}}%     \put(660,400){\makebox(0,0)[r]{\strut{}-1.5}}%                                                                                \end{picture}%     \endgroup     \endinput      This is LaTex text:               \documentclass[11pt,twoside,a4paper]{article}     \usepackage{graphicx}     \begin{document}     gnuplot test     \begin {figure}     \begin{center}     \input{test1.tex}     \end{center}     \end {figure}     \end{document}      It might seems silly, but I am looking for the solution for days now, but no luck. Many thanks. Marko


title: group naming with super glossaries style

text: I want to add grouping headers to the `super` glossary style of the latex package `glossaries`, i.e. something analogous to the `listgroup` style but with the formatting of `super`. The problem with `listgroup` is that it adds too much vertical spacing and the descriptions are not aligned. I've also tried `alttreegroup` but again I'm not entirely happy with the vertical spacing and I don't like the fact that I have to manually change the horizontal spacing with `glssetwidest`. I'm aware of the post Customising glossary group titles, but unfortunately the `newglossarystyle` defined there is not quite what I'm looking for. So, how can I get a "`supergroup`" glossary style? Here is a MWE to work with:               \documentclass{report}          \usepackage{setspace}     \usepackage[nopostdot,nonumberlist,acronyms,section]{glossaries}     \setglossarystyle{super}     %\setglossarystyle{listgroup}     %\setglossarystyle{alttreegroup}     %\glssetwidest{00000}          \newglossary[slg]{symbol}{sot}{stn}{Symbols}     \makeglossaries          \newglossaryentry{area}{       type=symbol,       name={\ensuremath{S}},       description={reference area},       sort={aS}     }     \newglossaryentry{span}{       type=symbol,       name={\ensuremath{b}},       description={wing span},       sort={ab}     }     \newglossaryentry{dynp}{       type=symbol,       name={\ensuremath{q_\infty}},       description={dynamic pressure},       sort={aq}     }     \newglossaryentry{aoa}{       type=symbol,       name={\ensuremath{\alpha}},       description={angle of attack},       sort={ga}     }     \newacronym     [sort={a}]     {bcr}{BCR}{Block Compressed Row}     \newacronym     [sort={a}]     {cad}{CAD}{Computer-Aided Design}          \newcommand*{\Agroupname}{Alphanumeric}     \newcommand*{\Ggroupname}{Greek letters}               \begin{document}     \onehalfspacing          \section*{List of Symbols and Acronyms}     \glsaddall     \printglossary[type=symbol]     \renewcommand*{\glsgroupheading}[1]{}%     \printglossary[type=acronym]          \end{document}      By the way, is there a better way to rename groups than redefining `\Agroupname` and `\Ggroupname}`?


title: Export Beamer doc to 2 slides per page

text: I'm a total LaTeX/beamer newbie looking for a way to export a slide deck I created into a sort of "book" form. I tried "handout" but that didn't seem to be what I'm looking for. Basically, I want to create a LETTER sized document with 2 frames on each page. Seems simple, but I'm having a hard time finding examples of doing anything similar online. Any help would be greatly appreciated!


title: English Characters inside of arabic text arabtex package

text: i want to write a paragraph in my French book in arabic, I've used Arabtex package :               \begin{arabtext}     بلا بلا english word بلا لا     \end{arabtext}      The problem is that I need to show english words inside of arabic paragraph which is not possible in this case, because all the English letters are transcribed to Arabic, and I haven't seen any command in the arabtex manual. how can i do this ?


title: How can I view all the %TODO comments I have marked using Kile?

text: In my document I am leaving `%TODO` comments in order to get back at them at some time. How can I generate a list of them with their relevant information in Kile 2.0?


title: Problems using Expert Fonts

text: I recently purchased an expert font, Calluna (exljbris). There is only one problem when using the font: The font is encoded with Old Style numbers by default. I don't know how to access the Lining Numbers. I've tried using `Use Old Style Figures` thinking the font encoding was switched, but alas, it doesn't work; it stays in Old Style. I have also tried `\fontspec[Numbers={Lining}]{Calluna}` in the preamble and that hasn't worked. I use LyX 2.1.0; Windows 8.1; I use XeTeX and `\fontspec` package. The Lining Numbers exist in the encoding; it is on the foundry's website, and I also tested it with Microsoft Office 2013 which has the option available. My LaTeX preamble looks like:               \widowpenalty=10000     \clubpenalty=10000     %\raggedbottom     %\usepackage{dtklogos}     \usepackage{fontspec}     \setmainfont[Ligatures={Historic,Rare,Discretionary,TeX},Contextuals=Swash]{Calluna}     %\pagenumbering{roman}     \usepackage{microtype}


title: How does biblatex check for equal annotator, introduction's author, etc.?

text: Biblatex is able to check whether a name appears in different fields and is able to adapt the reference showed. For instance, if translation and annotations are made by the same person, biblatex creates a reference which unifies both data with a string such as `Trans. and annot. by [person X]`. If I am not wrong this is achieved inside the bibmacro `translator+othersstrg` (defined in biblatex.def) using the macro `ifnamesequal` which checks for two names being equal. Unfortunately in case of equal fields `annotator` and `introduction` no check is made. How could I achieve that biblatex does not show the name Michel García twice in the following MWE? I.e. How to force biblatex to check for these two fields being equal?               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage[style=verbose-trad2]{biblatex}     \addbibresource{stack.bib}     \begin{document}     \cite{repertorio1972}          \printbibliography     \end{document}      And this is the bibliographical entry:               @Book{repertorio1972,     title =        {Repertorio de príncipes de España},     year =         1972,     annotator =    {García, Michel},     introduction = {García, Michel},     publisher =    {CSIC},     location =     {Jaén}     }


title: Non-English in-text citation

text: I have changed the language setting in my lyx document to Danish but my in- text citations still read e.g. (`Jones and Jones, 2013`) and not (`Jones og Jones, 2013`) which would be the Danish equivalent. Is it possible to change this? Alternatively to change `and` to `&`?


title: Harvard Style Citation and Bibliography

text: I am new to LaTeX and I am having problems with my bibliography. What I want : I am writing my thesis and I want to have Harvard style citation and bibliography. (http://libweb.anglia.ac.uk/referencing/harvard.htm) Attempt 1 : documentclass is 'report'. In my main document, I added               \begin{thebibliography}{99}     \addcontentsline{toc}{chapter}{Bibliography}          \bibitem{Knuth92} D.E. Knuth, \emph{Two notes on notation}, Amer.     Math. Monthly \textbf{99} (1992), 403--422.          \end{thebibliography}      and               \cite{Knuth92}      I could write the bibitem anyway I want and it comes out as I wrote it. But the citation is [#ID#] and not (Author, Year). Also, it is tedious to write up all the bibliography entries according to the type of the source because I am expecting nearly 75+ sources. Attempt 2 : I searched the inet, and created a modular document - a separate bib file with               @conference{citekeyconference,     author = "First Name, Second Name and Third Name",     title = "Title",     booktitle = "Title of book",     year = "YYYY",          editor = "Editor",     volume/number = "Volume 1",     number = "Number 1",     series = "Series 1",     pages = "Pages 1 - 10",     address = "Address",     month = "Month",     publisher = "Publisher",     organization = "Organisation",     note = "Additional note",     }      and no preamble in the .bib file. And, used natbib like               \usepackage{natbib}     \bibliographystyle{agsm}     \begin{document}     ...     \bibliography{<your-bib-file>}     \end{document}      no sucess (not getting the output like the way I wanted it tobe. So, used bibtex like               \usepackage[style=authoryear]{biblatex}     \addbibresource{<your-bib-file.bib>} % note the .bib is required     \begin{document}     ...     \printbibliography     \end{document}      Compiled for more than ten times successively as I read in the Wikibook, but still get some errors. error for biblatex               package biblatex error : file Report.bbl not created by biblatex \begin{document}      error for natbib               package natbib error : bibliography not compatiable with author year citations ....      MY QUERY : Can you please help me get it right?


title: Background color in pgfplots that extends beyond the axis of the plot

text: I am interested in adding a background-color to my `pgfplots` plot that extends beyond the axis of the plot. See the image bellow for clarification; I am interested in adding a background color such as the plot in the image. How would you achieve this? ![enter image description here](http://i.stack.imgur.com/edGv1.jpg) _Example from: The pgfplots manual (Christian Feuersänger, 2012, p. 20)_


title: Parsing strings containing diacritical marks (macros?)

text: I apologize that this question may seem very much like several other recent ones I have asked (Parsing leading hardspaces, Parsing a \$ as part of an improved \getargs command). They are all related to using a recursive TeXnique to parse strings. David Carlisle has already helped a great deal in the prior queries in pointing me to `\protected@edef` to handle special (e.g., `\$`) characters and in using `\let` to redefine hardspaces to something innocuous (either nulls or soft spaces). But now I find the algorithm chokes on diacritical marks like umlauts (`\"u`). I guessing that these are not "characters" but expandable "macros" which might explain why an algorithm that searches character by character may choke. So I'm looking for a clever workaround, something like a temporary `\let` or `\catcode` redefinition that would allow the algorithm to digest these types of "characters". So the code is below. I commented out the one line (2nd from end) which will cause the algorithm to choke. What the algorithm does is looks at the argument and parses it into single words. It places the first word in `\argi`, the second in `\argii`, etc. and the total number of words in `\narg`. And its much faster than its predecessor in the `stringstrings` package. It works great with alphanumeric inputs, special characters, hard and soft spaces, but not (yet) with diacritical marks.               \documentclass{article}     \makeatletter     \usepackage{ifnextok}     \usepackage{ifthen}     \def\string@end{$}     \def\converttilde{T}     \newcounter{arg@index}     \let\SaveHardspace~     \def\getargsF#1{%       \if T\converttilde\def~{ }\fi%       \protected@edef\the@string{#1}%       \def\argi{}\setcounter{arg@index}{1}%       \expandafter\parse@Block\the@string\string@end%       \let~\SaveHardspace%     }     %ifthenelse needed when leading spaces end up as \argi     \def\parse@Block{\IfNextToken\string@end%       {\edef\narg{\arabic{arg@index}}\@gobble}%       {\IfNextToken\@sptoken{\addtocounter{arg@index}{1}%        \ifthenelse{\equal{\argi}{}}{\addtocounter{arg@index}{-1}}{}%        \expandafter\def\csname arg\roman{arg@index}\endcsname{}%        \add@to{\parse@Block}}%       {\add@to{\parse@Block}}}}     \def\add@to#1#2{\if\@sptoken#2\else\expandafter\protected@edef%                      \csname arg\roman{arg@index}\endcsname%                     {\csname arg\roman{arg@index}\endcsname#2}\fi#1}     \makeatother     \begin{document}     \getargsF{mein hut} \argi~\argii $<$NO PROBLEM\\     BUT PUT UMLAUT ON THE u AND IT BREAKS     %\getargsF{mein h\"ut} \argi~\argii     \end{document}


title: why first line is missing using fancybox BVerbatim?

text: Why is defining a new name for environment for a command produces different result than when using the environment directly without defining a name for it? Here are 2 examples, one uses a name for the env. and one does it. The second one is missing the first line in the verbatim text. Same text is used in both examples. ![enter image description here](http://i.stack.imgur.com/AM0VT.png) Code is below:               \documentclass{article}     \usepackage{fancybox}          \newenvironment{myStuff}%     {\VerbatimEnvironment\begin{Sbox}\begin{BVerbatim}}%     {     \end{BVerbatim}\end{Sbox}\fbox{\TheSbox}     }         \begin{document}             \begin{myStuff}     line 1     line 2     line 3     \end{myStuff}     \end{document}      second example               \documentclass{article}     \usepackage{fancybox}          \begin{document}              \begin{Sbox}\begin{BVerbatim}%     line 1     line 2     line 3     \end{BVerbatim}     \end{Sbox}\fbox{\TheSbox}     \end{document}      Texlive 2014