title: Installed Texlive 2013, Texstudio and Texmaker runs into Problems

text: EDIT: Thanks for the provided link it looks very comprehensive. I have resolved my issue it Fontin font by I compiling the source with XeLaTeX after installing fonts in TTF format by downloading them from http://www.exljbris.com/fontin.html and double clicking. The other issue is also solved after modifying the quick build command and everything works fine. I appreciate your help. I have performed a net installation for Texlive2013 according to the instructions given in the URL: http://tug.org/texlive/acquire-netinstall.html. I have complied with the all the instructions given in the quick installation guide and the documentation part; after the installation part was finished I set the environmental variables as written. I have later installed Texstudio and tried to compile a document and the program failed quited abruptly writing the following in the command prompt which was open at that time :               Format encoding version mismatch : [found] != [expected]1.0     "\name" : ""      "\title" : ""      ASSERT: "(buildManager.quickmode == 8)" in file texmaker.cpp, line 3555     Aborted (core dumped)      After this issue I also installed Texmaker; however complaining with the following error message it failed to compile the same file.               grep: Fontin.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Fontin' failed to make Fontin.tfm. kpathsea: Appending font creation commands to missfont.log.      I am particularly new to Latex and I could not pinpoint these issues arose. I would appreciate it if someone could provide some guidance help on these matters. In addition to that the processor start to strains to do something until I abort Texmaker with a keyboard shortcut such as Ctrl+C from the terminal. The source file that caused troubles in both programs is as follows:                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Plasmati Graduate CV     % LaTeX Template     % Version 1.0 (24/3/13)     %     % This template has been downloaded from:     % http://www.LaTeXTemplates.com     %     % Original author:     % Alessandro Plasmati (alessandro.plasmati@gmail.com)     %     % License:     % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)     %     % Important note:     % This template needs to be compiled with XeLaTeX.     % The main document font is called Fontin and can be downloaded for free     % from here: http://www.exljbris.com/fontin.html     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %----------------------------------------------------------------------------------------     %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS     %----------------------------------------------------------------------------------------          \documentclass[a4paper,10pt]{article} % Default font size and paper size          \usepackage{fontspec} % For loading fonts     \defaultfontfeatures{Mapping=tex-text}     \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font          \usepackage{xunicode,xltxtra,url,parskip} % Formatting packages          \usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors          \usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be \usepackage{fullpage}     % To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}          \usepackage{hyperref} % Required for adding links   and customizing them     \definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color     \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document          \usepackage{titlesec} % Used to customize the \section command     \titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections     \titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections          \begin{document}          \pagestyle{empty} % Removes page numbering          \font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section          %----------------------------------------------------------------------------------------     %   NAME AND CONTACT INFORMATION     %----------------------------------------------------------------------------------------          \par{\centering{\Huge Name \textsc{Surname}}\bigskip\par} % Your name          \section{Personal Data}          \begin{tabular}{rl}     \textsc{Place and Date of Birth:} & Canada  | 20 November 1987 \\     \textsc{Address:} & 123 Broadway, City, State, Canada \\     \textsc{Phone:} & +1 111 1112\\     \textsc{email:} & \href{mailto:john@smith.com}{john@smith.com}     \end{tabular}          %----------------------------------------------------------------------------------------     %   WORK EXPERIENCE      %----------------------------------------------------------------------------------------          \section{Work Experience}          \begin{tabular}{r|p{11cm}}     \emph{Current} & 1\textsuperscript{st} year Analyst at \textsc{Lehman Brothers}, London \\     \textsc{Mar 2012} & \emph{Commodities Structured Trading}\\      & \footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\     \multicolumn{2}{c}{} \\          %------------------------------------------------          \textsc{Jul 2010-Oct 2011} & Summer Intern at \textsc{Intech Inc}, Chicago \emph{}\\     & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\     \multicolumn{2}{c}{} \\          %------------------------------------------------          \textsc{Jan-Mar 2011} & Computer Technician at \textsc{Buy More}, Burbank \emph{}\\     & \footnotesize{Worked in the Nerd Herd and helped to solve computer problems by asking customers to turn their computers off and on again.}     \end{tabular}          %----------------------------------------------------------------------------------------     %   EDUCATION     %----------------------------------------------------------------------------------------          \section{Education}          \begin{tabular}{rl}      \textsc{July} 2012 & Master of Commerce in \textsc{Finance}, \textbf{The University of California}, Berkeley\\     & 110/110 \small\emph{First Class Honours} | Major: Quantitative Finance\\     & Thesis: ``Money is the Root of All Evil - Or is it?'' | \small Advisor: Prof. James \textsc{Smith}\\     &\normalsize \textsc{Gpa}: 8.0/9.0\hyperlink{grds}{\hfill | \footnotesize Detailed List of Exams}\\     &\\          %------------------------------------------------          \textsc{July} 2011& Undergraduate Degree in \textsc{}\textsc{Business Studies} \\&110/110 \small\emph{Commerce Specialization}, \normalsize\textbf{The University of California}, Berkeley\\     & Heavily specialized in mundane paperwork | \small Advisor: Stefano \textsc{Bonini}\\     &\normalsize \textsc{Gpa}: 7.5/9.0 \hyperlink{grds_usc}{\hfill| \footnotesize Detailed List of Exams}\\     &\\          %------------------------------------------------          \textsc{Fall} 2008 & Exchange Semester at \textbf{University of Southern California}, Los Angeles\\     & \textsc{Gpa}: 8.0/9.0 \hyperlink{grds_usc}{\hfill| \footnotesize Detailed List of Exams}\\     &\\          %------------------------------------------------          \textsc{July} 2006& \textbf{Liceo Classico ``E. Duni''}, Matera | Final Grade: 100/100     \end{tabular}          %----------------------------------------------------------------------------------------     %   SCHOLARSHIPS AND ADDITIONAL INFO     %----------------------------------------------------------------------------------------          \section{Scholarships and Certificates}          \begin{tabular}{rl}     \textsc{Sept.} 2012 & Faculty of Science Masters Scholarship \footnotesize(\$30,000)\normalsize\\          \textsc{June} 2010 & {\textsc{Gmat}\textregistered}\setmainfont[SmallCapsFont=Fontin SmallCaps]{Fontin-Regular}: 730 (\textsc{q:50;v:39}) 96\textsuperscript{th} percentile; \textsc{awa}: 6.0/6.0 (89\textsuperscript{th} percentile)     \end{tabular}          %----------------------------------------------------------------------------------------     %   LANGUAGES     %----------------------------------------------------------------------------------------          \section{Languages}          \begin{tabular}{rl}     \textsc{English:} & Fluent\\          \textsc{Italian:} & Mothertongue\\          \textsc{French:} & Basic Knowledge\\     \end{tabular}          %----------------------------------------------------------------------------------------     %   COMPUTER SKILLS      %----------------------------------------------------------------------------------------          \section{Computer Skills}          \begin{tabular}{rl}     Basic Knowledge: & \textsc{php}, my\textsc{sql}, \textsc{html}, Access, \textsc{Linux}, ubuntu, {\fb \LaTeX}\setmainfont[SmallCapsFont=Fontin SmallCaps]{Fontin-Regular}\\          Intermediate Knowledge: & \textsc{vba}, Excel, Word, PowerPoint\\     \end{tabular}          %----------------------------------------------------------------------------------------     %   INTERESTS AND ACTIVITIES     %----------------------------------------------------------------------------------------          \section{Interests and Activities}          Technology, Open-Source, Programming\\     Paradoxes in Decision Making, Psychoanalysis, Behavioural Finance\\     Football, Travelling          %----------------------------------------------------------------------------------------          \newpage          %----------------------------------------------------------------------------------------     %   GRADE TABLES     %----------------------------------------------------------------------------------------          \par{\centering\Large \hypertarget{grds}{Master of Science in \textsc{Finance}}\par}\large{\centering Grades\par}\normalsize          \begin{center}     \begin{tabular}{lcc}     \multicolumn{1}{c}{\textsc{Exam}} & \textsc{Grade}&\textsc{Credit Hrs}\\ \hline     Corporate Finance (Valuation) & 25 & 6\\     Financial Statement Analysis & 28 & 6\\     Statistics & 27 & 6\\     Theory of Finance & 26 & 6\\     Quantitative Methods for Finance & 30 & 6\\     Econometrics & 24 & 6\\     Derivatives & 31 & 6\\     Management of Financial and Insurance Companies & 30 & 6\\     Business Law & 31 & 6\\     Investment Banking  & 28 & 6\\ \\            Behavioral Models for Economics and Finance  & 29 & 6\\     Numerical Methods for Finance & 29 & 6\\     Advanced Derivatives & 30 & 6\\     Fixed Income (Advanced Methods) & 30 & 6\\ \\     English Language & 30 & 4\\     French Language & 31 &  4\\      Internship & & 8\\           Final Thesis & & 20\\        & Total & 120\\\cline{2-3}     &\textsc{Gpa}&\textbf{8.0}     \end{tabular}     \end{center}     \bigskip     \hrule     \bigskip          %------------------------------------------------          \bigskip          \par{\centering\Large \hypertarget{grds_usc}{Exchange Program at \textsc{usc}, Los Angeles}\par}\large{\centering Grades\par}\normalsize          \begin{center}     \begin{tabular}{lcc}     \multicolumn{1}{c}{\textsc{Exam}} & \textsc{Grade} & \textsc{Grade Points}\\      \hline     Corporate Financial Strategy & A & 4\\     Derivatives & A & 4\\     Money, Credit, and Banking & A & 4\\     Business Strategy & A- & 3.5\\     & &\\\cline{2-3}     & \textsc{Gpa} & \textbf{3.875}     \end{tabular}     \end{center}          %----------------------------------------------------------------------------------------          \end{document}


title: load tikz library from relative path

text: I recently externalized some of my often used TikZ commands into a library. This is as simple as writing the commands to a dedicated file and naming it `tikzlibraryname.code.tex`. Then it can be included using `\usetikzlibrary{name}`. But this only works if it is placed in the same directory as the file that includes it or resides at some globally known include path. Trying a relative path like `\usetikzlibrary{../name}` results in an error               ! I can't find file `tikzlibrary../name.code.tex'.      `\input{../tikzlibraryname.code.tex}` would be a workaround. Using the proper command `\usetikzlibrary` should be preferred though. Can a tikz library be loaded from a relative path?


title: My table exceeds the page on both sides

text: I'm to make the following table but it exceed the page from both sides and I can't fix it ... any idea what could be wrong? Thank you               \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{tabularx}     \usepackage{array}     \usepackage{booktabs, multirow}     \usepackage{multirow}     \usepackage[center, labelfont=bf]{caption}     \begin{table}[h]     \makebox[\textwidth][c]{     \begin{tabular}{c|c|c|c|c|c|c|p{0.4\linewidth}}     \toprule[1.5pt]     & \textbf{Words} & \textbf{En words} & \textbf{Gr words} & \textbf{Al words} & \textbf{\% En words} & \textbf{\% Gr words} &\textbf{\% Al words}\\     \hline     \textbf{Gr/En Mixes} & 3663 & 2207 & 1456 & kati & 60,3 & 39,7 & kati\\     \hline     \textbf{Gr/Al/En/ Mixes} & 131 & 48 & 51 & 32 & 36,6 & 38,9 & 24,4\\     \hline     \textbf{Gr/Al Mixes} & 35 & kati & 24 & 11 & kati & 68,6 & 31,4\\     \hline     \textbf{Al/En Mixes} & 131 & 72 & kati & 59 & 55,0 & kati & 45,0\\     \hline     \textbf{Total mixes} & 3960 & 2327 & 1531 & 102 & 58,8 & 38,7 & 2,6\\     \bottomrule[1.5pt]     \end{tabular}}     \caption{Table 6: The percentage of words in each set of code mixed sentences.}     \end{table}\


title: Adding C++ code in Latex

text: So I am adding some C++ code snippets in my document using               \lstset {language=C++}     \begin{lstlisting}     for (int i=0; i<iterations;i++)     {     do something     }     \end{lstlisting}      My issue is that the font in the code appears different and apparently bigger than the other normal text of the document.Is it supposed to be like this or if not how can I specify a specific size for the font.Also is there a way were I can have a light background for the code something like what I have for the code above?


title: Prevent microtype tracking to add space between letters?

text: I use a latex template with small caps for chapter titles. These are spaced a bit using \textls from microtype package. Unfortunately, microtype does not properly increase the tracking but rather add spaces between letters which makes the text unsearchable :( Do you know of any clean way to set the font tracking? I sounds like it is what microtype is supposed to do… > from http://www.tex.ac.uk/cgi-bin/texfaq2html?label=letterspace > > Possibly the ‘ultimate’ in this field is the microtype, which uses the > micro-typography capabilities of current PDFTeX to provide a \textls > command, which operates according to parameters declared in a \SetTracking > command. Microtype’s ‘tracking’ facility expands the natural spacing font > itself, rather than inserting space between characters. Ordinarily, letter- > spacing will destroy ligatures; however, this is wrong if the font is of a > fraktur style, and the package provides a means of protecting the ligatures > in a letter-spaced text. But it definitely does not with my latex install > This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) > > Package: microtype 2009/03/27 v2.3d Micro-typography with pdfTeX (RS) You may wonder why I am not using Tex Live 2010… I am not so keen reinstalling all the minionpro package… but if it really helps I'll do it. Thank you in advance for your help.


title: Citation on a range of bibitems is possible?

text: Say I want to cite a range of authors like this: > [3-11] When I write `\cite{bibitem3-bibitem11}` then it does not compile in LaTeX, so I write `\cite{bibitem3,bibitem4,...,bibitem11}`. But this is very big and not nice. How I should do the range of citations?


title: eso-pic, watermark NOT on title page

text: I use eso-pic package to put watermark in my document. It works very well. But I have a problem with the first page - I would avoid this watermark on first page. In describing of eso-pic I am not finding solution for my problem.               \usepackage{eso-pic}% http://ctan.org/pkg/eso-pic     \AddToShipoutPicture{% Add picture to background of every page       \AtPageLowerLeft{%             \raisebox{3\baselineskip}{\makebox[\paperwidth]{\begin{minipage}{21cm}\centering             Draft          \end{minipage}}}%       }     }


title: Dynamic "expansion" of tikz calendar's cells?

text: Please, is that possible. Having started with this latex source, i would like to have calendar's cells "expandable" vertically -- please see the picture below.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calendar}          \begin{document}          \def\testmsgShort{Short message}     \def\testmsgLong{Long message for testing purposes}          \begin{tikzpicture}[         every node/.style={                 text width=3cm       }]     \calendar [         day list downward,         name=cal,         dates=2011-01-01 to 2011-01-11       ]       if (weekend) [black!25];       \node [anchor=base west] at (cal-2011-01-03.base east)               {\textcolor{orange}{\textbf{\testmsgShort}}};       \node [anchor=base west] at (cal-2011-01-09.base east)               {\textcolor{orange}{\textbf{\testmsgLong}}};     \end{tikzpicture}          \end{document}      ![calendar with \(long\) text labels](http://i.stack.imgur.com/HMUkA.png) As you can see, long text nodes are not related to days (at least visually). More naturally would be to see a calendar in a form like a table with "day" and "label" columns. Well, i understand that it's hardly possible with a setup like this, because of calendar is already drawn, "printed out", so new nodes can not expand its "cells". So, my questions is -- is this "cells expansion" possible with tikz/calendar? If yes -- how? Should i look for any other way? Which one, please? * * * **Update** : Thank you, Jake! Actually i would like to be possible to "collect" events, like this:               \tikzstyle{red events}=[         execute after day scope=         {             \redevent{2011-01-04}{This is a long event text.}             \redevent{2011-01-07}{Short event!}         }     ]          \tikzstyle{blue events}=[         execute after day scope=         {             \blueevent{2011-01-04}{This is another long event text.}             \blueevent{2011-01-08}{Short another}         }     ]          % ...     \calendar [         % ...         red events,         blue events         % ...      I am not sure that this is the optimal way to "collect events". Saying "collecting events" i mean that some events may be the same forever (think of birthdays), some others may be movable; i believe it's convenient to separate them and have a possibility to edit-comment-uncomment--etc-etc. But this does not work with your code (i have overlapping events), and i could not imagine (i have poor tikz imagination so far, sorry), how to make it possible. One way is, possibly, to define "initial offset" and accumulate it -- but wouldn't it be too expensive to define variables for offsets for whole year? Is there any other way? ps. Thank you a lot for your effort, Jake; your answer will be the best one in any case, but i would like to ask for even better solution (if that's possible), anyway .)


title: writing inside a ball in a itemize/enumerate in Beamer

text: I am doing a Beamer and I don't know how to put something like that:               \begin{enumerate}     \item item1     \end{enumerate}          \begin{itemize}     \item[1'] % I want that the 1' appears inside a ball.     \end{itemize}          \begin{enumerate}\setcounter{enumi}{1}     \item item2     \item item3     \end{enumerate}


title: Paper size in XeLaTeX and pdfLaTex

text: I was working with pdfLaTeX, and I set the size of the A4 paper; but for some reasons I have to change to XeLaTeX. And I realize that it isn't the same size of the paper, because the header and foot aren't in the correct place. Can you explain or help me to fix it? My code is:               \documentclass[10pt, a4paper]{article}          \usepackage{fontspec}     \setmainfont{Arial}     \usepackage{lipsum}     \usepackage[ampersand]{easylist}          \usepackage{tikz}          \setlength{\hoffset}{.46cm}     \setlength{\oddsidemargin}{0cm}     \setlength{\evensidemargin}{0cm}     \setlength{\marginparwidth}{0cm}     \setlength{\topmargin}{0cm}     \setlength{\marginparsep}{0cm}     \setlength{\headheight}{.46cm}     \setlength{\headsep}{0cm}     \setlength{\textheight}{24.2cm}     \setlength{\footskip}{.96cm}     \setlength{\textwidth}{15cm}          \usepackage{fancyhdr}     \pagestyle{fancy}      \lhead{}%      \chead{}%Vac      \rhead{      \parbox[c]{12.6cm}{\footnotesize{TEXT\newline Text}}\parbox[t]{2cm}{\footnotesize{Text}}      }      \lfoot{}%      \cfoot{}      \rfoot{      \parbox[c]{7.35cm}{\footnotesize{Text \newline Text}}\parbox[c]{5.4cm}    {\footnotesize{\thepage}}\parbox[t]{4cm}{\footnotesize{Text}}      }      \renewcommand{\headrulewidth}{0.4pt}      \renewcommand{\footrulewidth}{0.4pt}          \begin{document}          \begin{titlepage}          \begin{center}          \begin{huge} \textbf{TEXT}\end{huge}\\     \vspace*{.4cm}     \begin{Large} \textbf{TEXT}\end{Large}\\     \vspace*{.4cm}     \begin{LARGE} \textbf{TEXT}\end{LARGE}\\     \vspace*{1.5cm}               \begin{tikzpicture}[scale=2.5]          \definecolor{rucv}{rgb}{.88,0.077,.1}     \definecolor{bucv}{rgb}{.001,.086,.55}          \draw(2.6,.58)node[color=bucv][font=\fontsize{20}{20}\sffamily\bfseries]{TEXT};          \draw(2.6,.3)node[color=bucv][font=\fontsize{20}{20}\sffamily\bfseries]{T\Large{EXT} \huge{T}\Large{EXT}};          \end{tikzpicture}          \vspace*{1cm}          \begin{LARGE} \textbf{"TEXT}\end{LARGE}\\     \vspace*{.5cm}     \begin{LARGE} \textbf{     TEXT"}\end{LARGE}\\     \vspace*{1cm}     \begin{large} TEXT:\end{large}\\     \vspace*{.6cm}     \begin{LARGE} \textbf{TEXT}\end{LARGE}\\     \vspace*{.8cm}     \begin{large}Elaborado por:\end{large}\\     \vspace*{.4cm}     \begin{Large} \textbf{Text}\end{Large}\\     \vspace*{.8cm}     \begin{large}Text:\end{large}\\     \vspace*{.4cm}     \vspace*{2cm}     \begin{Large} \textbf{TEXT}\end{Large}\\     \vspace*{.4cm}     \begin{Large} \textbf{2013}\end{Large}\\     \vspace*{.4cm}          \end{center}     \end{titlepage}               \tableofcontents     \newpage     \section{TITLE}     \section{TITLE}     \subsection{Subtitle}     \subsection{Subtitle}     \section{TITLE}     \lipsum     \subsection{Subtitle}     \subsection{Subtitle}     \subsubsection{Title}     \begin{easylist}     & Title     & Title     && Subtitle     &&& Title     & Title     \end{easylist}          \subsubsection{Title}     \subsection{Subtitle}     \section{TITLE}     \subsection{Subtitle}     \subsubsection{Title}          \end{document}      ![page](http://i.stack.imgur.com/9333e.png)


title: Setting font for a minted environment in a beamer frame

text:
I'm having a problem setting the font of a minted environment in a beamer frame to the particular font I want. I want the area to be in Inconsolata (or at least a monospaced font with a slash through the 0 (zero))               \documentclass{beamer}     \usepackage{minted}     \usepackage{inconsolata}     \definecolor{bg}{rgb}{0.5,0.5,0.5}     \begin{document}     \begin{frame}[fragile]     \frametitle{Example}     0123456789     \begin{minted}[frame=lines,linenos=true,gobble=2]{html}     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"      "http://www.w3.org/TR/html4/strict.dtd">                  <meta http-equiv="Content-Type"          content="text/html; charset=UTF-8">       <meta http-equiv="Content-Language"          content="en-us">        <title>Our first web page!</title>
Hello World!
                \end{minted}     \end{frame}     \end{document}      This compiles but does not set the font for minted area. Help! (also the background color doesn't seem to get set...) This is the output I get.                $ pdflatex -shell-escape foo.tex               4:55PM      This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)       \write18 enabled.      entering extended mode      (./foo.tex      LaTeX2e <2009/09/24>      Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh      yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov      ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1      9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san      skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn      orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian      , estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po      rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.      (/usr/share/texmf/tex/latex/beamer/base/beamer.cls      (/usr/share/texmf/tex/latex/beamer/base/beamerbasercs.sty)      Document Class: beamer 2010/06/21 development version 3.10 A class for typesett      ing presentations (rcs-revision a6b1a8434d30)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasemodes.sty      (/usr/share/texmf/tex/latex/beamer/base/beamerbasedecode.sty))      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseoptions.sty      (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty))      (/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)      (/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)      (/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg))      (/usr/share/texmf-texlive/tex/latex/base/size11.clo)      (/usr/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty      (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty      (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty      (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)      (/etc/texmf/tex/latex/config/graphics.cfg)      (/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def)))      (/usr/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty      (/usr/share/texmf/tex/latex/pgf/utilities/pgfrcs.sty      (/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex)      (/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-latex.def      (/usr/share/texmf-texlive/tex/latex/ms/everyshi.sty))      (/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex))      (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex      (/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex      (/usr/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))      (/usr/share/texmf/tex/generic/pgf/systemlayer/pgf.cfg)      (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-pdftex.def      (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)))      (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)      (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex))      (/usr/share/texmf/tex/latex/xcolor/xcolor.sty      (/etc/texmf/tex/latex/config/color.cfg))      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcore.code.tex      (/usr/share/texmf/tex/generic/pgf/math/pgfmath.code.tex      (/usr/share/texmf/tex/generic/pgf/math/pgfmathcalc.code.tex      (/usr/share/texmf/tex/generic/pgf/math/pgfmathutil.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathparser.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.code.tex      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)))      (/usr/share/texmf/tex/generic/pgf/math/pgfmathfloat.code.tex))      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex))      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex)      (/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex)))      (/usr/share/texmf/tex/latex/pgf/utilities/xxcolor.sty)      (/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty      (/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)      (/usr/share/texmf-texlive/tex/latex/oberdiek/hycolor.sty      (/usr/share/texmf-texlive/tex/latex/oberdiek/xcolor-patch.sty))      (/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def)      (/usr/share/texmf-texlive/tex/*emphasized text*generic/oberdiek/etexcmds.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/infwarerr.sty))      (/usr/share/texmf-texlive/tex/latex/latexconfig/hyperref.cfg)      (/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/kvsetkeys.sty))      Implicit mode OFF; no redefinition of LaTeX internals      (/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)      (/usr/share/texmf-texlive/tex/generic/oberdiek/bitset.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/intcalc.sty)      (/usr/share/texmf-texlive/tex/generic/oberdiek/bigintcalc.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/pdftexcmds.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/ifluatex.sty)      (/usr/share/texmf-texlive/tex/generic/oberdiek/ltxcmds.sty))))      (/usr/share/texmf-texlive/tex/generic/oberdiek/atbegshi.sty)      Hyperref stopped early      )      *hyperref using default driver hpdftex*      (/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def)      (/usr/share/texmf/tex/latex/beamer/base/beamerbaserequires.sty      (/usr/share/texmf/tex/latex/beamer/base/beamerbasecompatibility.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasefont.sty      (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty      (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)))      (/usr/share/texmf/tex/latex/beamer/base/beamerbasetranslator.sty      (/usr/share/texmf/tex/latex/beamer/base/translator/translator.sty      (/usr/share/texmf/tex/latex/beamer/base/translator/translator-language-mappings      .tex))) (/usr/share/texmf/tex/latex/beamer/base/beamerbasemisc.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasetwoscreens.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseoverlay.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasetitle.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasesection.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseframe.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseverbatim.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseframesize.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseframecomponents.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasecolor.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasenotes.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasetoc.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasetemplates.sty      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseauxtemplates.sty      (/usr/share/texmf/tex/latex/beamer/base/beamerbaseboxes.sty)))      (/usr/share/texmf/tex/latex/beamer/base/beamerbaselocalstructure.sty      (/usr/share/texmf-texlive/tex/latex/tools/enumerate.sty))      (/usr/share/texmf/tex/latex/beamer/base/beamerbasenavigation.sty)      (/usr/share/texmf/tex/latex/beamer/base/beamerbasetheorems.sty      (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty      For additional information on amsmath, use the `?' option.      (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty      (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))      (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)      (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))      (/usr/share/texmf-texlive/tex/latex/amscls/amsthm.sty))      (/usr/share/texmf/tex/latex/beamer/base/beamerbasethemes.sty))      (/usr/share/texmf/tex/latex/beamer/base/themes/theme/beamerthemedefault.sty      (/usr/share/texmf/tex/latex/beamer/base/themes/font/beamerfontthemedefault.sty)           (/usr/share/texmf/tex/latex/beamer/base/themes/color/beamercolorthemedefault.st      y)      (/usr/share/texmf/tex/latex/beamer/base/themes/inner/beamerinnerthemedefault.st      y)      (/usr/share/texmf/tex/latex/beamer/base/themes/outer/beamerouterthemedefault.st      y))) (/home/dkerschner/texmf/tex/latex/minted/minted.sty      (/usr/share/texmf-texlive/tex/latex/fancyvrb/fancyvrb.sty      Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix       <2008/02/07> (tvz)) (/usr/share/texmf-texlive/tex/latex/float/float.sty)      (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)      (/usr/share/texmf-texlive/tex/latex/tools/calc.sty)      (/usr/share/texmf-texlive/tex/latex/ifplatform/ifplatform.sty      (/usr/share/texmf-texlive/tex/generic/oberdiek/catchfile.sty) (./foo.w18)))/usr/bin/pygmentize           (/usr/share/texmf-texlive/tex/latex/inconsolata/inconsolata.sty      (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty      (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def))) (./foo.aux)      (/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)      *geometry auto-detecting driver*      *geometry detected driver: pdftex*      (/usr/share/texmf-texlive/tex/context/base/supp-pdf.mkii      [Loading MPS to PDF converter (version 2006.09.02).]      ) ABD: EveryShipout initializing macros      (/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty      (/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./foo.out)      (./foo.out)      (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-basic-dicti      onary/translator-basic-dictionary-English.dict)      (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-bibliograph      y-dictionary/translator-bibliography-dictionary-English.dict)      (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-environment      -dictionary/translator-environment-dictionary-English.dict)      (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-months-dict      ionary/translator-months-dictionary-English.dict)      (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-numbers-dic      tionary/translator-numbers-dictionary-English.dict)      (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-theorem-dic      tionary/translator-theorem-dictionary-English.dict) (./foo.pyg) (./foo.nav)      (./foo.vrb (./foo.out.pyg      (/usr/share/texmf-texlive/tex/latex/inconsolata/ot1fi4.fd)           LaTeX Font Warning: Font shape `OT1/fi4/m/it' undefined      (Font)              using `OT1/fi4/m/n' instead on input line 2.                LaTeX Font Warning: Font shape `OT1/fi4/bx/n' undefined      (Font)              using `OT1/fi4/m/n' instead on input line 4.           ))           LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available      (Font)              size <5> substituted on input line 25.           [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./foo.aux)           LaTeX Font Warning: Size substitutions with differences      (Font)              up to 1.0pt have occurred.                LaTeX Font Warning: Some font shapes were not available, defaults substituted.            )      (see the transcript file for additional information){/usr/share/texmf-texlive/f      onts/enc/dvips/inconsolata/fi4-ot1tt.enc}</usr/share/texmf-texlive/fonts/type1/      public/inconsolata/Inconsolata.pfb></usr/share/texmf-texlive/fonts/type1/public      /amsfonts/cm/cmr6.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/      cmss10.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmss12.pfb>           Output written on foo.pdf (1 page, 42698 bytes).      Transcript written on foo.log.


title: One page caption one page picture

text: I'm searching for a way to create a book of figures as next: left pages contains captions of the images in right pages | caption || image | and if two images are in one page at right, I want two captions at left at the same height, and so forth. Thank you


title: How to force a newline after subsection?

text: I am trying to force a newline after subsection. How can i do that? I am using conference documentclass. Instead of               1. Subsection: This is a boy      i want               1. Subsection     This is a boy


title: Can pgfkeys deal with active comma?

text: When I tried to compile               \begingroup     \def\iden#1{#1}     \catcode`\,=13     \catcode`\==13     \iden{\endgroup       \pgfkeys{/my family/.is family}       \pgfkeys{/my family/my keys/.cd,         keya/.code=\def\mywidth{##1},         keyb/.code=\def\mydefault{##1}%       }%     }      I got the error               {\edef}     \pgfkeyscurrentkey ->/my family/my keys/.cd, keya/.code     {undefined}     ! Undefined control sequence.     \pgfkeyscurrentkey ->/my family/my keys/.cd,      Please how can I get over this? _pgfkeys_ ' Chief Executive (to use Knuth's term) doesn't seem to be able to inherently handle active parsers.


title: smartref package: Problems when referencing from math mode \text{}

text: I'm getting errors when using `smartref`'s `\sectionref` command (or similar) from inside `amsmath`'s `\text{...}` environment inside math mode. MWE:               \documentclass{article}          \usepackage{amsmath}     \usepackage{smartref}          \addtoreflist{section}          % see below for what this is for.     \addtoreflist{subsection}          \begin{document}          \section{Foosec} \label{hello}          % Works:     \sectionref{hello}          % Works:     $\sectionref{hello}$          % Does /not/ work:     %   ! Argument of \@car has an extra }.     % or just hangup, depending on whether \addtoreflist{subsection} above     % is active.     $\text{\sectionref{hello}}$          \end{document}      Any ideas? (my use case is putting explicative references to theorems above equality signs)


title: Table of Contents - section numbers and section headers too close

text: I'm using Springers svmult templated for a book with editor. There is a problem with the TableOfContents (ToC): When the section number only includes digits 1-9, everything looks ok, e.g.   1. Header 1.1 Subheader 1.2.9 SubSubheader but when section count goes past 10, the header text and the section number are way too close in the ToC, they even start to overlap. This looks ugly (worse than here):   1. Header 1.10Subheader 1.3.10SubSubheader 12.2.3SubSubheader What follows is the definition of `\tableofcontents` in `svmult.cls`. I only understand it halfway, and thats not enough in this case. Where would I need to fix the problem, so that there always is enough space between section number and section header in the ToC?               \def\tableofcontents{\chapter*{\contentsname\markboth{{\contentsname}}%                                                         {{\contentsname}}}      \def\authcount##1{\setcounter{auco}{##1}\setcounter{@auth}{1}}      \def\lastand{\ifnum\value{auco}=2\relax                      \unskip{} \andname\                   \else                      \unskip \lastandname\                   \fi}%      \def\and{\stepcounter{@auth}\relax               \ifnum\value{@auth}=\value{auco}%                  \lastand               \else                  \unskip,               \fi}%      \@starttoc{toc}\if@restonecol\twocolumn\fi}          \setcounter{tocdepth}{0}          \def\l@part#1#2{\addpenalty{\@secpenalty}%        \addvspace{2em \@plus\p@}%        \begingroup          \parindent \z@          \rightskip \z@ \@plus 5em          \hrule\vskip5\p@          \bfseries\boldmath          \leavevmode          #1\par          \vskip5\p@          \hrule          \vskip\p@          \nobreak        \endgroup}          \def\@dotsep{2}          \def\addnumcontentsmark#1#2#3{%     \addtocontents{#1}{\protect\contentsline{#2}{\protect\numberline                                         {\thechapter}#3}{\thepage}}}     \def\addcontentsmark#1#2#3{%     \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}}}     \def\addcontentsmarkwop#1#2#3{%     \addtocontents{#1}{\protect\contentsline{#2}{#3}{0}}}          \def\@adcmk[#1]{\ifcase #1 \or     \def\@gtempa{\addnumcontentsmark}%       \or    \def\@gtempa{\addcontentsmark}%       \or    \def\@gtempa{\addcontentsmarkwop}%       \fi\@gtempa{toc}{chapter}}     \def\addtocmark{\@ifnextchar[{\@adcmk}{\@adcmk[3]}}          \def\l@chapter#1#2{\par\addpenalty{-\@highpenalty}      \addvspace{1.0em \@plus \p@}      \@tempdima \tocchpnum \begingroup      \parindent \z@ \rightskip \@tocrmarg      \advance\rightskip by \z@ \@plus 2cm      \parfillskip -\rightskip \pretolerance=10000      \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip      {\bfseries\boldmath#1}\ifx0#2\hfil\null      \else           \nobreak           \leaders\hbox{$\m@th \mkern \@dotsep mu\hbox{.}\mkern           \@dotsep mu$}\hfill           \nobreak\hbox to\@pnumwidth{\hss #2}%      \fi\par      \penalty\@highpenalty \endgroup}          \newcommand{\tocauthorstyle}{\itshape}     \newcommand{\toctitlestyle}{\bfseries}          \def\l@title#1#2{\addpenalty{-\@highpenalty}      \addvspace{8\p@ \@plus \p@}      \@tempdima \z@      \tocchpnum \z@ \calctocindent      \begingroup      \parindent \z@ \rightskip \@tocrmarg      \advance\rightskip by \z@ \@plus 2cm      \pretolerance=10000     %\parfillskip -\@tocrmarg      \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip      {\toctitlestyle#1}%\nobreak     %\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern     %\@dotsep mu$}\hfill     %\nobreak\hbox to\@pnumwidth{\hss #2}\par      \par      \penalty\@highpenalty \endgroup}          \newcommand{\tocaftauthskip}{\z@}     \def\l@author#1#2{%\addpenalty{\@highpenalty}      \@tempdima \z@      \begingroup      \pretolerance=10000      \parindent \z@ \rightskip \@tocrmarg      \advance\rightskip by \z@ \@plus 2cm      \parfillskip -\@tocrmarg      \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip      {\tocauthorstyle#1}\nobreak      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern      \@dotsep mu$}\hfill      \nobreak\hbox to\@pnumwidth{\hss #2}\par      \penalty\@highpenalty      \addvspace{\tocaftauthskip}\endgroup}          \newdimen\tocchpnum     \newdimen\tocsecnum     \newdimen\tocsectotal     \newdimen\tocsubsecnum     \newdimen\tocsubsectotal     \newdimen\tocsubsubsecnum     \newdimen\tocsubsubsectotal     \newdimen\tocparanum          \newdimen\tocparatotal     \newdimen\tocsubparanum     \tocchpnum=\z@            % no chapter numbers     \tocsecnum=18\p@          % section 88. plus 2.222pt     \tocsubsecnum=23\p@       % subsection 88.8 plus 2.222pt     \tocsubsubsecnum=27\p@    % subsubsection 88.8.8 plus 1.444pt     \tocparanum=35\p@         % paragraph 88.8.8.8 plus 1.666pt     \tocsubparanum=43\p@      % subparagraph 88.8.8.8.8 plus 1.888pt     \def\calctocindent{%     \tocsectotal=\tocchpnum     \advance\tocsectotal by\tocsecnum     \tocsubsectotal=\tocsectotal     \advance\tocsubsectotal by\tocsubsecnum     \tocsubsubsectotal=\tocsubsectotal     \advance\tocsubsubsectotal by\tocsubsubsecnum     \tocparatotal=\tocsubsubsectotal     \advance\tocparatotal by\tocparanum}     \calctocindent          \def\@dottedtocline#1#2#3#4#5{%       \ifnum #1>\c@tocdepth \else         \vskip \z@ \@plus.2\p@         {\leftskip #2\relax \rightskip \@tocrmarg \advance\rightskip by \z@ \@plus 2cm                    \parfillskip -\rightskip \pretolerance=10000          \parindent #2\relax\@afterindenttrue          \interlinepenalty\@M          \leavevmode          \@tempdima #3\relax          \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip          {#4}\nobreak          \leaders\hbox{$\m@th             \mkern \@dotsep mu\hbox{.}\mkern \@dotsep             mu$}\hfill          \nobreak          \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%          \par}%       \fi}     %     \def\l@section{\@dottedtocline{1}{\tocchpnum}{\tocsecnum}}     \def\l@subsection{\@dottedtocline{2}{\tocsectotal}{\tocsubsecnum}}     \def\l@subsubsection{\@dottedtocline{3}{\tocsubsectotal}{\tocsubsubsecnum}}     \def\l@paragraph{\@dottedtocline{4}{\tocsubsubsectotal}{\tocparanum}}     \def\l@subparagraph{\@dottedtocline{5}{\tocparatotal}{\tocsubparanum}}


title: How to give different color to each pie?

text: I've gone through the answer in Package for pie charts. Can you please suggest, how to give different color for each pie?


title: Bibdesk "convert files" removes DOI from entries - recovery possible?

text: Bibdesk's (1.6.2 (3071)) "Convert Files" function removes DOIs from all found entries and instead assigns them as links. This is nice to have, but I want to include the DOIs in my references (APA-Style). But the DOI entry fields are removed during the process. Is there a way to get them back without doing it manually? How do I avoid this in the future?


title: Subcaption, report, missing number and missing \endcsname errors

text: So, this is probably a redundant post, but I can't seem to find a solution to my problem. I have seen every post there is to see, search every wikipedia page, tried every example I could find, but my code does not want to help me. So here it is. Like many people before me, I would like to have subfigures in my paper, however, it does not work. This is my code:               \documentclass{report}          \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}          \begin{document}      \begin{figure}[h]           \begin{subfigure}[b]{0.3\textwidth}                     \includegraphics[width=\textwidth]{fig1}                     \caption{figure1}                     \label{fig:fig1}      \end{subfigure} %           \begin{subfigure}[b]{0.3\textwidth}                     \includegraphics[width=\textwidth]{fig2}                     \caption{figure2}                     \label{fig:fig2}      \end{subfigure} %           \begin{subfigure}[b]{0.3\textwidth}                      \includegraphics[width=\textwidth]{fig3}                      \caption{figure3}                      \label{fig:fig3}      \end{subfigure}           \label{fig:figures}      \caption{A bunch of figures}     \end{figure}     \end{document}      This returns two kinds of errors:   * the " Missing \endcsname inserted ...40 \351tranglement}{section.0\c@chapter .2}"   * the " Missing number, treated as zero ...40 \351tranglement}{section.0\c@chapter .2}" What am I doing wrong? :/ Thanks a lot everybody!! FYI: I'm using TexStudio on a MBP (never had problems with it besides for the subfigures!)


title: How can I have images that are side-by-side and have numbers attached to each one?

text: For example:               *Image 1* *Image 2* *Image 3*        (i)       (ii)     (iii)      Figure n. Multiple images. (i) image at time n. (ii) Image at time n+1. (iii) Image at time n+2


title: Handwritten math formula recognition to LaTeX

text: I am looking for a way to integrate handwritten math formula recognition (to LaTex) in my app. A good example of this can be seen here http://webdemo.visionobjects.com/equation.html?locale=default Any suggestions on where I can start or an available api to do this?


title: How to produce a combined index from multiple documents?

text: I'm creating a set of documents which are contained in different LaTeX source files and are going to be compiled into different PDF files. Each one can have its own index, generated using the usual `makeindex` procedure. But since this documents cover related topics, I'd like to be able to produce one master index that contains all the terms from all the documents. Obviously the references in the index, instead of just being page numbers, will have to include both the page number and some sort of identifier for the document. Is there a way to do this? Of course, I'm sure I could write a script to post-process the `.idx` files, but I'd prefer to use something existing. If I need to dump `makeindex` and use some alternative, that should be fine.


title: How to generate QR code for iCalendar event?

text: I would like to include in a pdf file a QR code containing information from a iCalendar event. Here it is the code to generate a simple event for an iCalendar:               BEGIN:VEVENT     SUMMARY:event     DTSTART:20110913T130000Z     DTEND:20110913T140000Z     END:VEVENT      I would like to generate a QR code for that text so I get it from my Android phone and automatically insert a new event in my Calendar app. **EDIT 1** : I found out in this and this post how you can generate a QR code. I generated a QR code but my Android app was not able to understand that the text was a iCalendar event. **EDIT 2:** After @Yossi suggestion I add the following code. That was supposed to create a valid QR code with an iCal event. That is the same code that I used to generating other QR codes but it is not working as I want with iCal events.               \documentclass[a4paper,10pt]{article}          \usepackage{pst-barcode}     \usepackage{auto-pst-pdf}          \usepackage[utf8x]{inputenc}          \begin{document}     \maketitle          \begin{pspicture}(0.7in,0.7in)     \psbarcode{%     BEGIN:VEVENT     SUMMARY:event     DTSTART:20110913T130000Z     DTEND:20110913T140000Z     END:VEVENT     }{}{qrcode}     \end{pspicture}          \end{document}      And here it is the command I used for compiling my tex file:               pdflatex --shell-escape      I can generate the QR code but for some reason the text encoded is not a valid iCal event.


title: How to change appearance of a particular line when using \lstincludelisting?

text: I'm using the `listings` package and include code into my document through `\lstincludelistings`. The problem is that I want to set some code lines to bold to indicate changes from previous code segments. How can I achieve this without having to copy-paste the code directly into the document?


title: fontspec for small caps and nocommon ligatures (actually, rawfeatures works, but not ligatures=NoCommon)

text: (This is a bit of a mess, so apologies. The final solution ended up being in a different place than I first expected. Ultimately, what was happening is a combination of a bug in Linux Libertine O, and that it appears to me that fontspec, with TTF fonts, will not respect Ligatures=Rare, etc, but will respect RawFeature=+hlig, and other equivalents. see below for fuller explanation and final working solution, though not explanation for why it worked.) [original post] I am trying to typeset a document for someone who wants to use a handwritten font. However the font does not have bold, italic, or bold italic, so I have found 3 other appropriate fonts, and am using fontspec to switch between these. But, for small caps, he wants to use linux libertine O but vary the color. Lastly, and most importantly, it appears that LLO is using a ligature for Th, and I want to use a non-ligated version. I can get the various colors to work, but I can't seem to apply the ligatures=NoCommon to the smallcaps font. The code below is from lyx. The "ThStrictWurtziteFirefly"'s are there so I can see the ligatures. OK, this is my best effort:               \fontspec{Linux Libertine O}          ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly}Th \textbf{Th}     \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{Ligatures=Historic}ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly}     Th \textbf{Th} \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{Ligatures={Rare}}ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly}     Th \textbf{Th} \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{Ligatures={NoCommon}}ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly}     Th \textbf{Th} \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          ----          \fontspec{Linux Libertine O}0 ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly}     Th \textbf{Th} \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{UprightFont={SNsanafonmaruP},UprightFeatures={SmallCapsFont={Linux Libertine Capitals O}, SmallCapsFeatures = {Ligatures={NoCommon},Color=1470CF}}}1     ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly} Th \textbf{Th}     \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{BoldFont={SNsanafonkakuP}, BoldFeatures={Color = 470CF1,SmallCapsFont={Linux Libertine Capitals O}, SmallCapsFeatures = {Ligatures={NoCommon}, Color=70CF14} }}2     ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly} Th \textbf{Th}     \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{ItalicFont={SNsanafonP}, ItalicFeatures={Color = 0CF147, SmallCapsFont={Linux Libertine Capitals O}, SmallCapsFeatures = {Ligatures={NoCommon},Color=CF1470}}}3     ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly} Th \textbf{Th}     \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          \addfontfeature{BoldItalicFont={nagurigaki}, BoldItalicFeatures={ Color = 888844, SmallCapsFont={Linux Libertine Capitals O}, SmallCapsFeatures = {Ligatures={NoCommon}, Color=444422}}}4     ThStrictWurtziteFirefly \textsc{ThStrictWurtziteFirefly} Th \textbf{Th}     \textit{Th }\textbf{\textit{Th}}\textsc{ Th }\textbf{\textsc{Th}}\textbf{\textit{     }}{\itshape {\scshape Th}}{\bfseries \itshape {\scshape Th}}          Th Upright {\scshape Th  Small Caps}\\      \itshape Th Italic {\scshape Th Italic Small Caps}\\      \upshape\bfseries Th Bold {\scshape Th Bold Small Caps}\\      \itshape Th Bold Italic {\scshape Th Bold Italic Small Caps}      Thx in advance for any help... [update] I just [found out][1] that this is actually a bug in linux libertine o, due to "Automatically produced font substyles" that they are not going to fix and recommend using "Open Type Features". I am not sure what this means, but I will hit the books and figure it out. Shows to go ya... see below for my final answer.


title: Confused with choosing TTF, OpenType, and Type1

text: Actually I don't know much about font formats such as TTF, OpenType, and Type1.   1. What are the differences between TTF, OpenType, and Type1?   2. Which one should I use in PDF produced by LaTeX?   3. How to explicitly specify in LaTeX input file if I want to use one of them? For example: I want to use Helvetica in TTF or OpenType rather than Type1.   4. Is it possible to use the same font but with 3 different types. For example: in my PDF document, paragraph A uses Arial fonts in TTF, paragraph B uses Arial fonts in OpenType and paragraph C uses Arial fonts in Type1.


title: Ghostscript problem

text: I'm trying to submit a LaTeX paper to Wiley ISMRW but get the following error:               ************************************************************************          command: dvipdf MRM3.dvi     Command Ok     dvips: warning: no config file for `generic'          Error: /undefinedresource in --findresource--          Operand stack:             DefaultColorRendering   ColorRendering   DefaultColorRendering          Execution stack:             %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   2   14   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--          Dictionary stack:             --dict:1069/1417(ro)(G)--   --dict:1/20(G)--   --dict:89/200(L)--   --dict:135/300(L)--   --dict:43/200(L)--   --dict:57/75(L)--   --dict:212/315(L)--   --dict:72/107(L)--   --dict:0/10(G)--   --dict:0/10(L)--   --dict:0/50(G)--   --dict:56/71(L)--   --dict:212/315(L)--   --dict:2/2(L)--   --dict:16/18(ro)(G)--          Current allocation mode is local          Last OS error: 2          ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1          dvips: Problems with file writing; probably disk full.          ************************************************************************      I read about patch fixes etc. for these kinds of problems, however this is an on-line submission, so I can't really update their Ghostscript etc. :s


title: Overlay edge between two tikz nodes

text: I want to have two nodes in Tikz, filled with text. Then I want an edge from one position in the first node to another position in the second node: ![What I want](http://i.stack.imgur.com/rYTvU.png) This is what I tried: Inside the tikz nodes text, I use another nested tikzpicture with `remember picture`, where I define coordinates, which should later be reusable as edge start end end points. (Here I used filled nodes instead for debugging)               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{positioning}          \begin{document}          \begin{frame}{Tikz Test}         \begin{tikzpicture}             \draw node [text width=60mm,fill=black!5] (n1) {Multi\\line \begin{tikzpicture}[remember picture]\node[fill=black,text width=2mm](start){};\end{tikzpicture} \\text};             \draw node [text width=60mm,fill=black!5,below=of n1] {Another\\multi\\line \begin{tikzpicture}[remember picture]\node[fill=black,text width=2mm](end){};\end{tikzpicture}\\text};         \end{tikzpicture}         \begin{tikzpicture}[overlay]             \draw (start) -- (end);         \end{tikzpicture}     \end{frame}          \end{document}      This is what I get: ![What I get](http://i.stack.imgur.com/2ebBp.png) The nodes (black rectangles) are where they should be, but the edge connecting them is never where I want it to be. I tried multiple variations, (trying different places where I define the edge, and whether I use the `overlay` attribute or not), but neither version yields the desired output.


title: Beamer bibliography color

text: I'm using the Boadilla theme with Beaver colortheme. All the colored stuff are in dark red as they should be, except for the bibliography item: they still use the structure color that is the classical blue. I can get rid of this by manually changing the color, except from the bibliography number item, that is still in blue. ![enter image description here](http://i.stack.imgur.com/NsQkp.png)


title: Vertical spacing between numerator and division symbol in \dfrac

text: How can I fix the vertical spacing between the numerator and the division symbol when entering fractions. Eg. in the following code, the spacing between `a` and the division symbol is greater than one between `b` and the next (lower) division symbol.               \[ x = \dfrac{\dfrac{a}{b}}{c} \]


title: The entire table is not displayed even when rotating package is used

text: I have some tables with wider column content, I have 8 columns. The whole table is not displayed in LaTeX, when I reduce the font size also there is no result. I have about 7 tables in single `.tex` document. If I use the `rotating` package all the tables are not displayed. Is there any other method to do this? Sample code is               \begin{tabular}{rrrrrrrrr}      \hline       & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\       \hline      1 & 12415511.19 & 16701825.51 & 15900722.85 & 15877444.88 & 14925846.69 & 16530962.02 & 18141617.44 & 11153054.43 \\        2 & 17903734.11 & 19022573.06 & 11578499.58 & 15541295.10 & 10988554.35 & 15442721.46 & 12145938.12 & 10013197.04 \\        3 & 11485382.84 & 13734225.54 & 11732796.07 & 10783052.58 & 17693595.62 & 17765344.54 & 19073123.45 & 15398908.36 \\        \hline      \end{tabular}


title: Where is the \matrix command?

text: From what I can see, `\matrix` was a TeX command, but I cannot seem to find documentation on it. It works in MathJax, so I wonder if it can be used in LaTeX. ie this is valid MathJax:               $$     \left[     \matrix     {     newx.x&newy.x&newz.x \\     newx.y&newy.y&newz.y \\     newx.z&newy.z&newz.z         }     \right]     $$      As can be seen on math.stackexchange. In my LaTeX editor (which uses MikTex underneath), I have to use `\begin{matrix} .. \end{matrix}`, so I'm wondering what happened to the `\matrix` command.


title: Listings package: How to highlight math operators?

text: I am using the listings package to include GAUSS code to Latex. E.g. like this:               \lstset{     emph={proc,retp,endp,local}, emphstyle=\color{blue}\textbf,     emph={[2]=,.^,./,=}, emphstyle={[2]\color{red}}     }          \begin{lstlisting}     proc(1) = tdist(n,v);     local x, z, z2, u, t;     x=rndn(n,1);      z=rndn(n,v);     z2=z.^2;      t=x./((U./v)^(1/2));     retp(t);     endp;     \end{lstlisting}      While the strings (proc, retp etc.) are highlighted, the math operators (=, *, /) are not. What am I doing wrong here?


title: Improve appearance of table

text: i have this table               {\scriptsize              \begin{longtable}{p{3.5cm}p{4cm}p{4cm}}         \caption{word frequrnt} \label{tab:addlabeloooo} \\          \\ [0.1cm]          \hline         Metric& Brown vs. LOB   &Brown vs. King James Bible\\[0.1cm]         \hline          Average codelength  & 0.84  & 1.84 \\[0.1cm]         Top1 unigram & 7.65  & 10.52 \\[0.1cm]         Top5 unigram & 6.94  & 10.05 \\[0.1cm]         Top10 unigram & 6.38  & 9.72 \\[0.1cm]         Top100 unigram & 4.88  & 7.54 \\[0.1cm]         Top1 bigram & 8.52  & 11.25 \\[0.1cm]         Top5 bigram & 6.68  & 10.23 \\[0.1cm]         Top10 bigram & 5.94  & 9.38 \\[0.1cm]         Top100 bigram & 4.17  & 7.19 \\[0.1cm]         Top1 trigram & 5.4   & 9.56 \\[0.1cm]         Top5 trigram & 4.77  & 8.68 \\[0.1cm]         Top10 trigram & 4.6   & 8.17 \\[0.1cm]         Top100 trigram & 3.58  & 6.3 \\[0.1cm]         \% of words in 1st corpus not in 2nd corpus &6.05  & 8.73 \\[0.1cm]         \% of words in 2nd corpus not in 1st  corpus & 5.54  & 2.94 \\[0.1cm]         Top 10 unseen words in 1st corpus & Mr. Mrs. Dr. Mr SIC J. St. Colour Fig. R. & LORD Shalt and was are hast Is Were be \\[0.1cm]         Top 10 unseen words in 2nd  corpus & Mr\& **f Mrs\& **h Program Dr\& <The **f. Center St\& & Has Mr\& American Mrs\& Around during United Does don't didn't \\[0.1cm] \hline         \end{longtable}         }      But it looks ugly, as there are some long lines as in picture![this](http://i.stack.imgur.com/ciE3T.png) Does anybody have an idea how to improve its appearance?


title: How to insert lines between text on Tikz

text: I am new to Tikz I just started working with it today and I came across with some difficulties that I can not find solution to them. I am producing a block diagram based on the example from Example: Control system principles. I tried to modified based on my needs where I add text above of the blocks for example `\node [above of=controller, node distance=1.2cm] (MP:1) {$MP_1$};`. I do not know if this is the correct way to do it. My ideal scenario is to connect this text with arrows left and right to the pinstyles `tin` and `tout/tin`. Since `tin` and `tout/tin` I can not give them a name I can not use the command `\draw [draw,->] (tin) -- node [name=line] {} (MP:1);` it will not work. I tried by inserting `\draw [->, right of=MP:1, node distance=1.5cm] {};` but the output is not again correct. I was looking over the Tikz manual and I found somehow a solution to my problem by using coordinates such as `\draw [<-] (20mm,10mm) -- (0mm,10mm);`. The result again is not correct. So my first question is the text that I am inserting is it correct the way in order to provide a name to the text as reference or is there a better way? My second question is, if I am inserting the text correctly is possible to create reference names for the pinstyles, if not how can I draw the lines? Sample of my code is provided below for testing purposes and also a picture of the output.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \usepackage{pgfplots}     \pgfplotsset{compat=1.8}          \begin{document}          \tikzstyle{block} = [draw, rectangle, minimum height=2em, minimum width=5em] %fill=blue!20     \tikzstyle{sum} = [draw, circle, node distance=2.0cm, minimum size=6mm]     \tikzstyle{input} = [coordinate]      \tikzstyle{output} = [coordinate]     \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]          \begin{figure}[!ht]     \begin{center}     \makebox[\textwidth][c]{     \begin{tikzpicture}[auto, node distance=1.5cm,>=latex']     \node [input, name=input] {};     \node [sum, right of=input, pin={[pinstyle]above:$t_{in}$}, node distance=1.5cm] (sum) {MP};     \draw [draw,->] (input) -- node [name=begging] {UE} (sum);     \node [block, right of=sum, node distance=2.0cm] (controller) {Node B};     % Text above of GGSN (MP1)     \node [above of=controller, node distance=1.2cm] (MP:1) {$MP_1$};     \draw [<-] (20mm,10mm) -- (0mm,10mm);     %\draw [->, right of=MP:1, node distance=1.5cm] {};     \draw [->] (sum) -- node {} (controller);     \node [sum, right of=controller, pin={[pinstyle]above:$t_{out}/t_{in}$}, node distance=2.0cm] (sum_2) {MP};     \draw [->] (controller) -- node [name=u] {} (sum_2);     \node [block, right of=sum_2, node distance=2.0cm] (controller_2) {RNC};     % Text above of GGSN (MP2)     \node [above of=controller_2, node distance=1.2cm] (MP:2) {$MP_2$};     \draw [->] (sum_2) -- node [name=u2] {} (controller_2);     \node [sum, right of=controller_2, pin={[pinstyle]above:$t_{out}/t_{in}$}, node distance=2.0cm] (sum_3) {MP};     \draw [->] (controller_2) -- node [name=u3] {} (sum_3);     \node [block, right of=sum_3, node distance=2.0cm] (controller_3) {SGSN};     % Text above of GGSN (MP3)     \node [above of=controller_3, node distance=1.2cm] (MP:3) {$MP_3$};     \draw [->] (sum_3) -- node [name=u4] {} (controller_3);     \node [sum, right of=controller_3, pin={[pinstyle]above:$t_{out}/t_{in}$}, node distance=2.0cm] (sum_4) {MP};     \draw [->] (controller_3) -- node [name=u5] {} (sum_4);     \node [block, right of=sum_4, node distance=2.0cm] (controller_4) {GGSN};     % Text above of GGSN (MP4)     \node [above of=controller_4, node distance=1.2cm] (MP:4) {$MP_4$};     \draw [->] (sum_4) -- node [name=u6] {} (controller_4);     \node [sum, right of=controller_4, pin={[pinstyle]above:$t_{out}$}, node distance=2.0cm] (sum_5) {MP};     \draw [->] (controller_4) -- node [name=u8] {} (sum_5);     \node [output, right of=sum_5] (output) {};     \draw [->] (sum_5) -- node [name=end] {PDN}(output);     \node [block, above of=sum_3, node distance=2.5cm] (pipeline) {Pipeline};     \draw [->] (begging) |- (pipeline);     \draw [->] (pipeline) -| (end);     \end{tikzpicture} } % End of makebox     \caption{Test}     \label{fig:blockdiagram}     \end{center}     \end{figure}          \end{document}      ![Block Diagram Output](http://i.stack.imgur.com/y5EaG.png)


title: illegal unit of measure in tex code created from dot2tex

text: I am using `dot2tex` to convert some code from `graphviz` into LaTeX (PSTricks) drawings. However, I get following error               ! Illegal unit of measure (pt inserted).     <to be read again>     l.21 ...newidth=1bp](0bp,0bp)(1.2057e+05bp,1028bp)      Attached is the mwe.               \begin{document}     \pagestyle{empty}     \enlargethispage{100cm}     \begin{pspicture}[linewidth=1bp](0bp,0bp)(1.2057e+05bp,1028bp)       \pstVerb{2 setlinejoin} % set line join style to 'mitre'     \psset{linecolor=black}       \psbezier[linestyle=dotted](89357bp,342.83bp)(89368bp,340.2bp)(89510bp,307.69bp)(89521bp,305.16bp)     }     \end{pspicture}     \end{document}


title: Clash between mhchem and breqn. Any way to dodge or fix?

text: The use of `breqn` causes the subscript numbers in chemical expressions, formatted by `mhchem`, to be exlargened and perhaps moved slightly making it look ugly. Is there a way to avoid this or should I stop using `breqn`? Many thanks MWE - comment out `breqn` to see the diference               \documentclass{article}     \usepackage{amsmath}     \usepackage{breqn}     \usepackage[version=3]{mhchem}           \begin{document}     \ce{H2SO4}     \end{document}


title: No minitoc in chapter pages with TeX4HT

text: TeX4HT allows to create one HTML page per chapter with `2,next` in the options:               htlatex project.tex 'xhtml,2,next,charset=utf-8' ' -cunihtf -utf8 -cvalidate'      This, however, creates a minitoc in the head of every chapter: ![minitoc in chapter page](http://i.stack.imgur.com/EKBi6.png) How can I get rid of this minitoc?


title: moderncv error: tweaklist.sty

text: I can't get moderncv to work. I get the error:               ! LaTex Error: File 'tweaklist.sty' not found.      What I've done so far is manually install `moderncv` in my texmf tree (`/usr/local/texlive/2008/texmf-dist/tex/latex/moderncv`) `tweaklist.sty` is in this directory, but when I run               \documentclass{moderncv}     \begin{document}     ;lakdjfl     \end{document}      it gives the aforementioned error


title: how to add a document class to texstudio

text: I want to add a new document class to TexStudio. the document class is named "AEA" and is available in this link(the first .zip file below "Please note:") The code will look like this               \documentclass[AER]{AEA}     \draftSpacing{1.5}     \begin{document}          Hello World!          \end{document}


title: scrartcl and fancyhdr on first page

text: In relation to this question, I'd like to get a fancy header just on the first page of my `scrartcl` document (height about 150 pts), but even using `\thispagestyle{myfancyhdr}` all the following pages display a big blank empty header, without any picture, pushing the whole content downwards, although the main style is `plain` or `empty`. I don't want it! Is there any way to avoid it? My code is               \documentclass[11pt]{scrartcl}     \pagestyle{empty}          [...]          \usepackage[...]{classicthesis}     \usepackage{arsclassica}          \usepackage{fancyhdr}     \fancypagestyle{ciccio}{%     %\fancyhf{}      \renewcommand{\headrulewidth}{0pt}     \fancyhead[L]{}     \fancyhead[R]{     \includegraphics[width=3cm     ]{strathlogo}     }     }          \begin{document}          \thispagestyle{ciccio}          [...]          \end{document}


title: What is the round v symbol used by my thermodynamics text for volume and specific volume?

text: The shape is somewhere between a v and a u. I'm almost certain it's a letter character as they have both lower and uppercase (used for specific and total volume respectively). Since the v and V characters are also used for things like voltage and velocity, it's important for me to be able to distinguish these. The top six symbols below are what I want, the first four being lowercase and the next two being uppercase. ![photo of the symbols list in the front of my textbook](http://i.stack.imgur.com/3eRjX.jpg)


title: how to add a current date, place and signature to the cv

text: I am using the template from here https://www.sharelatex.com/templates/cv/moderncv-classic/ I wanted texworks to add the latest date and also place and signature(.jpg item) everytime I typeset my cv at the end just before end document. How should I do this?


title: How to return to the initial passage after we have clicked on a footnote

text: I wish to copy the model of wikipedia regarding the footnotes: when we click on one in the main text, we go the text of the footnote and return to the main text thanks to a link like ^ positioned on the left. Can have the same behavior in latex ? I use hyperref already.


title: How to prevent page breaks in lists? ("Exam" class)

text: I'm using the `exam` class to prepare a test. Unfortunately, the package allows page breaks inside the solution list of a question. Considering this toy example:               \question Example of question. Choose a solution:     \begin{checkboxes}     \choice A     \choice B     \choice C     \CorrectChoice D     \end{checkboxes}      It could be that a `pagebreak` happens between `\choice B` and `\choice C`. How could I prevent that? ## Update The solution proposed by Mico works unless we want to print the solutions to the test AND the last answer of a question is a `\CorrectChoice`. Here's a MWE that reproduces the problem:               \documentclass[answers]{exam}     \usepackage[utf8]{inputenc}     \usepackage[a4paper]{geometry}     \usepackage{etoolbox}     \AtBeginEnvironment{checkboxes}{\par\medskip%          \begin{minipage}{\textwidth}}     \AtEndEnvironment{checkboxes}{%          \end{minipage}}               \CorrectChoiceEmphasis{}          \begin{document}          \begin{questions}          \question Random text for question 1     \begin{checkboxes}     \choice answer 1     \choice answer 2     \choice answer 3     \choice answer 4     \choice answer 5     \CorrectChoice answer 6     \end{checkboxes}          \question Random text for question 2     \choice answer 1     \choice answer 2     \choice answer 3     \choice answer 4     \choice answer 5     \CorrectChoice answer 6     \end{checkboxes}          \question Random text for question 3     \choice answer 1     \choice answer 2     \choice answer 3     \choice answer 4     \choice answer 5     \CorrectChoice answer 6     \end{checkboxes}          \question Random text for question 4     \choice answer 1     \choice answer 2     \choice answer 3     \choice answer 4     \choice answer 5     \CorrectChoice answer 6     \end{checkboxes}          \question Random text for question 5     \choice answer 1     \choice answer 2     \choice answer 3     \choice answer 4     \choice answer 5     \CorrectChoice answer 6     \end{checkboxes}          \end{questions}          \end{document}      I've solved it by following the 2nd suggestion given here, that is, surround what you don't want to be broken by `\parbox`. (For the records, using `\samepage` didn't work.)


title: How to remove chapter name with fncychap package

text: I would like to ask you a question. I'm using the `fncychap` package (`Glenn` style) for the chapter titles and I would like to remove the chaptername "Chapter" from each chapter title. Does anyone knows how to do it?               \documentclass[11pt,notitlepage,a4paper,oneside]{report}     \usepackage[english]{babel}     \usepackage{fix-cm}     \usepackage[Glenn]{fncychap}     \ChNameVar{\bfseries\LARGE\sf}\ChNumVar{\fontsize{62}{65}\selectfont}     \ChTitleVar{\bfseries\LARGE\sf} \ChRuleWidth{1pt} \ChNameAsIs     \ChTitleAsIs          \begin{document}     \chapter{Test}          \end{document}


title: How can I overscore a character?

text: I am using Anki to create flash cards for Boolean identities. I prefer to use an overscore as opposed to a prime for negated variables. Can this be accomplished with LaTeX? **EDIT:** The header and footer are as follows:               \documentclass[12pt]{article}     \special{papersize=3in,5in}     \usepackage[utf8]{inputenc}     \usepackage{amssymb,amsmath}     \pagestyle{empty}     \setlength{\parindent}{0in}     \begin{document}          \end{document}


title: What does \z@ do?

text: in parcolumns it has `\z@` all over the space. I don't see it define it anywhere so I assume it is some internal command or something? I can't really make heads or tails of it though and I can't really search google for it(doesn't return anything useful)


title: tikzposter text justification in blocks

text: I have started to use the `tikzposter` class and I wonder why the text inside blocks is flushed left by default instead of justified. How can I change the text alignment in blocks to be fully justified?


title: Clickable links in PDF are wrong on landscape pages (pdflscape + LuaLaTex)

text: The hyperlinks in the PDF are not where they should be. It seems to be that glossary links are not "rotated" due to landscape mode. The following MWE illustrates the problem. The error occurs only in LuaLaTex. Everything works fine if I use PDFLatex. Is this a bug or/and is there a workaround for this? I use TexLive 2013 with the latest updates installed.               \documentclass{article}     \usepackage[english]{babel}     \usepackage{pdflscape}     \usepackage[linkcolor=red]{hyperref}          \usepackage{glossaries}     \makeglossaries     \newacronym{PC}{PC}{Personal Computer}          \begin{document}          \begin{landscape}       \mbox{\gls{PC}}     \end{landscape}          \gls{PC}     \clearpage     \printglossary          \end{document}      Link is wrong in LuaLaTex: ![enter image description here](http://i.stack.imgur.com/obIdV.png) This is how it should look like (PDFLaTex): ![enter image description here](http://i.stack.imgur.com/MdsPr.png) **edit** Links to the bibliography on a landscape page are also wrong. So this is probably a hyperref problem.


title: Confusing behaviour of xslant in TikZ

text: I now want to draw two slanted grids on top of each other. This is a minimal file which gives the wrong result:               \documentclass{article}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}       \draw[xslant=1] (0,0) grid[step=1] (6,4);   % bottom grid       \draw[xslant=1] (0,9) grid[step=1] (6,13);  % upper grid     \end{tikzpicture}     \end{document}      The "upper" grid is pushed way over to the right, as though the `xslant` in the second command is augmented by the first. If I change the second draw command to               \draw[xslant=0] (0,9) grid[step=1] (6,13);      then the grid is drawn in the correct position, but without the slant. One way of putting it in the correct position is to use               \draw[xslant=1] (-9,9) grid[step=1] ++(6,4);      as the second draw command, but that seems a bit crazy. Surely I should be able to start that second grid at (0,9)?


title: How to split text within align

text: The text is too long and would like to split it in two: Any help please!               \documentclass{article}     \usepackage{amsmath}          \begin{document}          \begin{flalign*}     \textit{K}^{k,r}_{j}&   : \text{The transportation and handling \\ of item $k$, type $r$ machines in period $j$}&      \end{flalign*}          \end{document}


title: align text and figure on same line

text: my problem is to align text and figure on the same line. I got the basics from this link placed below (placing of tiger). But i was not able to put a caption and label to the figure as figure environment was not declared. Can someone help me out to caption and label that figure. Align text and image on the same line?


title: Head line alignment of top row in a long table

text: I am unable to set alignment (right aligned) of the top row of long table.               \documentclass[english]{article}          \usepackage[T1]{fontenc}          \usepackage[latin9]{inputenc}          \usepackage{array}          \usepackage{longtable}          \usepackage{float}          \usepackage{setspace}          \usepackage{babel}               \begin{document}          Text (journal), an academic journal of language, discourse, and communication studies     Text (literary theory), any object that can be "read", including literature and other objects     Textbook, a manual of instruction in any branch of study     Religious text, writings which various religious traditions consider to be sacred     Written text, communication that represents language through the inscription of signs and symbols          \setstretch{.5}          \begin{longtable}{>{\raggedright}p{135pt}>{\raggedright}p{135pt}r}          \caption{Why Thousand USD is not right aligned?}          \multicolumn{3}{r}{\textbf{\scriptsize{}(Thousand USD)}}\tabularnewline          \textbf{Country} & \textbf{District} & \textbf{Amount }\textbf{\scriptsize ('000'USD)}\tabularnewline          \hline      \endhead     Afghanistan & L & 6\tabularnewline     \hline           Australia & K & 2,9\tabularnewline     \hline           Austria & I & 3\tabularnewline     \hline           Bahrain & K & 3\tabularnewline      & L & 1\tabularnewline     \hline           Belgium & K & 1\tabularnewline      & L & 2\tabularnewline     \hline           Canada & I & 99,965\tabularnewline      & K & 9\tabularnewline      & L & 1\tabularnewline     \hline           Cayman I & I & 2\tabularnewline      & Ka & 1\tabularnewline     \hline           \textbf{Grand Total} &  & \textbf{2}\tabularnewline     \hline           \end{longtable}          \end{document}


title: How do I put multiple lines in a title when using the apa6 class?

text: Right now I'm using `\title` to define a title and `\maketitle` to display it. How do I put multiple lines in the title? I need to adhere to APA 6th edition format, and according to the book I'm using, I need a simple title page with multiple lines, all of the same font and size. I'm using the `apa6` document class.


title: Relocate MiKTeX 2.9?

text: On my Windows 7, 64-bit machine MiKTeX lives in `C:\Program Files\MiKTeX 2.9`. I'd like to move it to `D:\Program Files\MiKTeX 2.9`. Is there a mostly painless way to do so, or should I just reinstall?


title: How do I write a paper using APA6 format?

text: I'm trying to write a paper, and the format must adhere to APA style, 6th edition. I've found that I should use `\documentclass{apa6}` to do this. Well, I tried, and I get :               File 'apa6.cls' not found.      Of course I then saw Cannot get apa6 style to work in (MiK)TeX, and decided I could install it manually (the only response that made any sense to me.) Well, I found apa6.dtx, I put it in an empty directory, and ran "pdflatex apa6.dtx". Here's what I see: > >     Generating file(s) ./apa6.cls >   >     Processing file apa6.dtx (class) -> apa6.cls >     File apa6.dtx ended by \endinput. >     Lines  processed: 4034 >     Comments removed: 1379 >     Comments  passed: 53 >     Codelines passed: 2560 >   >   >     Generating file(s) ././config/APAamerican.txt ././config/APAbritish.txt > ././con >     fig/APAdutch.txt ././config/APAenglish.txt ././config/APAgerman.txt > ././config/ >     APAngerman.txt ././config/APAgreek.txt ././config/APAczech.txt > ././config/APAen >     dfloat.cfg >     ! I can't write on file `././config/APAamerican.txt'. >     <to be read again> >                        \edef >     l.142 } >   >     (Press Enter to retry, or Control-D to exit; default file extension is > `.tex') >     Please type another output file name: >   If I cancel it, it still generates an apa6.cls file, but I then get this error when I try to use it: > >     ! LaTeX Error: Option clash for package geometry. >   >     See the LaTeX manual or LaTeX Companion for explanation. Type  H > <return>  for immediate help.  ...   >   >                                                        l.3 \usepackage >                    [pdftex]{graphicx} >   What should I do? By the way, I'm running Ubuntu with the `texlive-full` package installed.


title: Patch beamerouterthemedefault.sty to remove mini slide on Beamer notes pages

text: In a previous question, I pointed out that the mini slides (thumbnails) inserted into Beamer notes pages cause replication of labels and broken hyperref links as a result (see comment 2 under Percusse's answer). I discovered that if I went to `beamerouterthemedefault.sty` and, under the line `\defbeamertemplate*{note page}{default}` commented out the lines               \hfill\insertslideintonotes{0.25}\hskip-\Gm@rmargin\hskip0pt%     \vskip-0.25\paperheight%     \nointerlineskip      this removes the problem since the mini slide is no longer inserted. I now need to share my LaTeX code with my supervisor, so I am wondering if an approach similar to that employed in an answer to another question of mine can be used to "patch" these lines to be commented at compile time so that I don't have to instruct others to manually comment out those lines. In that question, it is shown how to use `xpatch` to modify a Beamer component. So, my main question is how to make this patch. My follow-up or bonus questions is, is there a better way to address this issue with the mini slides in the first place? Off the top of my head, here are a few thoughts:   1. This seems like a bug in Beamer, and an easy one to fix. Can't the mini slides have their labels stripped out before they're inserted? The mini slides are really only a visual aid, so there doesn't need to be a way to reference stuff in them.   2. As an improvement on #1, if the labels could be automatically renamed by Beamer or Latex as the mini slides are inserted, that would be even better.   3. If either of #1 or 2 could be done with a patch that would be great, but it would be even better if this could be rolled into Beamer as bug fix. What's involved in doing so, or how would this normally happen? Thanks.


title: Underscore vs. subscript in new command with fancyvrb

text: I'm using fancyvrb to have math in my verbatim environment as suggested here. I use a math escape command like so: `\newcommand{\m}[1]{$#1$}` But underscores are not being type set as subscripts, they are showing up as underscores.               \begin{Verbatim}[commandchars=\\\{\}]     for \m{i = 1, 2, \dots n}:         sample \m{x_i} from \m{P(X_i \vert \mathrm{Parents}(X_i))}     return \m{(x_1, x_2, \dots, x_n)}     \end{Verbatim}      ![enter image description here](http://i.stack.imgur.com/8kyyi.png) How can I have subscripts using the `_` symbol? I think it is related to the definition of my new command.


title: Multiple citations after float object

text: Placing one citation with footcitetext after the float is no problem. But how to o this with multiple citations? Footcitestext doesn't exist.               \documentclass[a4paper,12pt,bibtotoc,liststotoc,toc=flat,parskip=half]{scrreprt}     \usepackage[ngerman]{babel}     \usepackage[style=authortitle-icomp,natbib=true]{biblatex}          \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage{filecontents}          \begin{filecontents}{mybib.bib}     @article{farber:hybride-datenba,     Author = {Franz F{\"a}rber and Bernhard J{\"a}cksch and Christian Lemke and Philipp Gro{\ss}e and Wolfgang Lehner},     Date-Added = {2012-09-07 08:06:24 +0000},     Date-Modified = {2012-09-07 08:07:09 +0000},     Journal = {Datenbank Spektrum},     Pages = {81-92},     Title = {Hybride Datenbankarchitekturen am Beispiel der neuen SAP In-Memory-Technologie},     Volume = {10},     Year = {2010}}     @webpage{hauptfleisch:sieben-ssd-myth,     Author = {Klaus Hauptfleisch},     Date-Added = {2012-09-06 12:11:15 +0000},     Date-Modified = {2012-09-06 12:11:57 +0000},     Lastchecked = {06.09.2012},     Title = {Sieben SSD-Mythen auf dem Pr{\"u}fstand},     Url = {http://www.computerwoche.de/hardware/storage/2505349/},     Urldate = {05.06.2012},     Year = {2012},     Bdsk-Url-1 = {http://www.computerwoche.de/hardware/storage/2505349/}}     \end{filecontents}          \bibliography{mybib}               \begin{document}          \begin{table}[htbp]     \begin{tabular}{|c|c|}         \hline         Header 1    &   Header 2\\         \hline         1   &   2\\         2   &   3\\         \hline     \end{tabular}     \caption[GR1]{GR1\footcites[comment]{farber:hybride-datenba}[comment]{hauptfleisch:sieben-ssd-myth}}     \label{tab:gr1}     \end{table}     \footcitestext[comment]{cite1}[comment]{cite2}               \end{document}


title: Latex: Custom ToC, LoF, LoT for Thesis

text: http://www.sfsu.edu/~gradstdy/forms/thesis-dissertation-sample-pages.pdf I'm having problems satisfying the Contents page ## Here is what I've tried:               \documentclass[12pt]{report}     ...     ...               % Set Table of Contents Paramters        \setlength{\cftbeforetoctitleskip}{0.5in}     \setlength{\cftaftertoctitleskip}{0.5in}     \renewcommand{\contentsname}{TABLE OF CONTENTS}     \renewcommand{\cfttoctitlefont}{\hfill\normalsize}     \renewcommand{\cftaftertoctitle}{\hfill}     \renewcommand{\cftchapfont}{\normalsize}     \renewcommand{\cftchappagefont}{\normalsize}     \renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}     \setcounter{tocdepth}{2}          % Set List of Figures Parameters         \setlength{\cftbeforeloftitleskip}{0.5in}     \setlength{\cftafterloftitleskip}{0.2in}     \renewcommand{\cftloftitlefont}{\hfill\normalsize}     \renewcommand{\cftafterloftitle}{\hfill\null\\[0.5in]Figure\hfill{Page}}          % Rename Bibliography         \renewcommand{\bibname}{References}          % Table of Contents Page         \tocloftpagestyle{plain}         {       \clearpage       \tableofcontents       \cleardoublepage     }          % List of Figures Page         \listoffigures          % List of Appendices Page     \addcontentsline{toc}{chapter}{List of Appendices}      * * * Q1. How can I say "List of Figures" in the ToC, but have the actual heading on the page to be "LIST OF FIGURES" (all caps)? How do I suppress unwanted header/footer if the list overflows into multiple pages? Q2. How do I create a similar page for the Appendices?


title: How to Install Garamondx font properly? Don't know how to create bitmap font for zgmr8r

text: I try to install the LaTeX package `garamondx` and compile the doc which comes with the package. For this, I downloaded `garamondx.tds.zip` from http://www.ctan.org/tex-archive/install/fonts, extracted the archive to `$HOME/texmf` and run `texhash`. `updmap` doesn't work for my local user, because               Directory "/var/lib/texmf/fonts/map/dvips/updmap" isn't writable      Unfortunately it doesn't work. When I try to run the provided minimal example, I get the return error code 70:               kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 zgmr8r     mktexpk: don't know how to create bitmap font for zgmr8r.     mktexpk: perhaps zgmr8r is missing from the map file.     kpathsea: Appending font creation commands to missfont.log.     )     !pdfTeX error: /usr/bin/pdflatex (file zgmr8r): Font zgmr8r at 600 not found      ==> Fatal error occurred, no output PDF file produced!      Minimal example:               \documentclass{article}     \usepackage{garamondx}          \begin{document}     Hello world!     \end{document}      I'm using texlive2012.


title: Footnote inside description

text: I had a very very similar problem with footnote inside mbox. My original problem started using the `glossaries` package, using a glossary entry inside the `description` environment, a minimal example is shown here:               \documentclass[11pt]{report}     \usepackage[acronym,toc,section=chapter,style=indexgroup,sanitize={name=false,description=false,symbol=true}]{glossaries}     \glsdisablehyper          \defglsdisplayfirst[main]{#1#4\protect\footnote{#2}}     \makeglossaries          \newglossaryentry{bla}{name=bla,description={bla description}}          \begin{document}     \begin{description}     \item[\gls{bla}] pim pam pum % this doesn't work     % \item[pim pam pum] \gls{bla} % this works fine     \end{description}     \newpage     \printglossaries     \end{document}      The expected behaviour was that next to bla should be a footnote, that footnote linking the acronyms, and the explaining text of the footnote at the bottom of the page. As you can see, the `\gls{bla}` inside the `item[]` is what is causing the problem. I think the solution would be very similar to the one given in the question I mentioned, buy I don't have a clue how to do it. Some aditional information: I'm on Win 7 with miktex and texmaker. Compilation:   * `pdflatex`   * `makeglossaries`   * `pdflatex`   * `pdflatex`


title: Positioning \tstar.... on a page

text: Horizontal positioning of `\tstar` can be done with `\hspace*{}`, but attempts at vertical positioning with either `\vspace{}` or writing `\node (x) at (somex,somey) {\tstar{}{}{}{}}` fails. How can I adjust the vertical placement of \tstar? # Minimal example:               \documentclass[landscape,12pt]{article}     \usepackage{tikz}     \usetikzlibrary{shapes.geometric}          \usepackage{pstricks}     \usepackage{fix-cm}          \usepackage{geometry}     \geometry{       top=0.5in,                   inner=0.5in,       outer=0.5in,       bottom=0.5in,       headheight=3ex,              headsep=2ex,               }          \newcommand\score[2]{     \pgfmathsetmacro\pgfxa{#1+1}     \tikzstyle{scorestars}=[star, star points=5, star point ratio=2.25, draw,inner sep=0.15em,anchor=outer point 3]     \begin{tikzpicture}[baseline]       \foreach \i in {1,...,#2} {         \pgfmathparse{(\i<=#1?"yellow":"gray")}         \edef\starcolor{\pgfmathresult}         \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor]  {};        }        \pgfmathparse{(#1>int(#1)?int(#1+1):0}        \let\partstar=\pgfmathresult        \ifnum\partstar>0          \pgfmathsetmacro\starpart{#1-(int(#1))}          \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle         ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);          \fill (\partstar*1em,0) node[scorestars,fill=yellow]  {};        \fi          ,\end{tikzpicture}     }          \newcommand{\tstar}[5]{% inner radius, outer radius, tips, rot angle, options     \pgfmathsetmacro{\starangle}{360/#3}     \draw[#5] (#4:#1)     \foreach \x in {1,...,#3}     { -- (#4+\x*\starangle-\starangle/2:#2) -- (#4+\x*\starangle:#1)     }     -- cycle;     }          \begin{document}          \begin{tikzpicture}          %%% \node (st) at (x,y) {\tstar{1}{3}{27}{17}{fill=red}}; fails.          \tstar{1}{3}{27}{17}{fill=red};          \node (x) at (10,1) {{ \fontsize{100}{120}\selectfont\bf Stuff}};          \end{tikzpicture}               \end{document}