title: list of figures disappears if I use tocloft package

text: > **Possible Duplicate:**   >  How to modify the indentation before sectioning titles in the table of > contents? I am trying to change the numwidth in my list of Figures. The number of Figures is quite high (over 100) and the numbers overlap with the Figure names in the list of Figures. See example below... > 6.108Synthetic I just want to add a space to all the Figures and get 6.108 Synthetic I have read that the package `tocloft` can be of help for this so I have added it to my document heading...something like...               \usepackage[subfigure]{tocloft}     \setlength{\cftfignumwidth}{5em}      I was hoping to solve the problem with these lines of code, but when I compile the file, the list of figures has disappeared. I don´t know much about LaTeX code, and I am using a template to write my thesis... but I wonder if the problem arises because the `\listoffigures` command is redefined in the class file as               \renewcommand\listoffigures{     \btypeout{List of Figures}     \addtotoc{List of Figures}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listfigurename           \@mkboth{\MakeUppercase\listfigurename}                   {\MakeUppercase\listfigurename}}         \@starttoc{lof}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }      Any help highly appreciated! * * * Here is the header of the document I am using, with the 2 new lines that I have added at the end...               \documentclass[a4paper, 11pt, oneside]{Thesis}  % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn     \graphicspath{{Figures/}}  % Location of the graphics files (set up for graphics to be in PDF %format)     % Include any extra LaTeX packages required     %\usepackage[retainorgcmds]{IEEEtrantools}     \usepackage[square, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the references in the Bibliography     \usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments     \usepackage{vector}  % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths     \usepackage{tabularx}     \usepackage{multirow}     \usepackage[section] {placeins}     \usepackage{subfigure}          \usepackage[subfigure]{tocloft}     \setlength{\cftfignumwidth}{5em}          \begin{document}     ...     \listoffigures     ...          \end{document}      The document class that I am using can be seen below... sorry I had to paste it here because apparently it is not available online anymore... Many thanks for your help!!!               %%     %% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn     %% generated with the docstrip utility.     %%     %% Created by Steve R. Gunn, modified by Sunil Patel: www.sunilpatel.co.uk          \NeedsTeXFormat{LaTeX2e}[1996/12/01]     \ProvidesClass{Thesis}                   [2007/22/02 v1.0        LaTeX document class]     \def\baseclass{book}     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}     \def\@checkoptions#1#2{       \edef\@curroptions{\@ptionlist{\@currname.\@currext}}       \@tempswafalse       \@tfor\@this:=#2\do{         \@expandtwoargs\in@{,\@this,}{,\@curroptions,}         \ifin@ \@tempswatrue \@break@tfor \fi}       \let\@this\@empty       \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi     }     \@checkoptions{11pt}{{10pt}{11pt}{12pt}}     \PassOptionsToClass{a4paper}{\baseclass}     \ProcessOptions\relax     \LoadClass{\baseclass}     \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}          \newcommand\Declaration[1]{     \btypeout{Declaration of Authorship}     \addtotoc{Declaration of Authorship}     \thispagestyle{plain}     \null\vfil     %\vskip 60\p@     \begin{center}{\huge\bf Declaration of Authorship\par}\end{center}     %\vskip 60\p@     {\normalsize #1}     \vfil\vfil\null     %\cleardoublepage     }          \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}     \def\today{\ifcase\month\or       January\or February\or March\or April\or May\or June\or       July\or August\or September\or October\or November\or December\fi       \space \number\year}     \usepackage{setspace}     \onehalfspacing     \setlength{\parindent}{0pt}     \setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}     \usepackage{vmargin}     \setmarginsrb           { 1.5in}  % left margin                             { 0.6in}  % top margin                             { 1.0in}  % right margin                             { 0.8in}  % bottom margin                             {  20pt}  % head height                             {0.25in}  % head sep                             {   9pt}  % foot height                             { 0.3in}  % foot sep     \raggedbottom     \setlength{\topskip}{1\topskip \@plus 5\p@}     \doublehyphendemerits=10000       % No consecutive line hyphens.     \brokenpenalty=10000              % No broken words across columns/pages.     \widowpenalty=9999                % Almost no widows at bottom of page.     \clubpenalty=9999                 % Almost no orphans at top of page.     \interfootnotelinepenalty=9999    % Almost never break footnotes.     \usepackage{fancyhdr}     \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}     \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}     \chead{}\lfoot{}\rfoot{}\cfoot{}     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}     \renewcommand{\sectionmark}[1]{}     \renewcommand{\subsectionmark}[1]{}     \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else     \hbox{}     \thispagestyle{empty}     \newpage     \if@twocolumn\hbox{}\newpage\fi\fi\fi}     \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}     \theoremstyle{plain}     \newtheorem{example}{Example}[chapter]     \newtheorem{theorem}{Theorem}[chapter]     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{axiom}[theorem]{Axiom}     \theoremstyle{definition}     \newtheorem{definition}[theorem]{Definition}     \theoremstyle{remark}     \newtheorem{remark}[theorem]{Remark}     \usepackage[centerlast,small,sc]{caption}     \setlength{\captionmargin}{20pt}     \newcommand{\fref}[1]{Figure~\ref{#1}}     \newcommand{\tref}[1]{Table~\ref{#1}}     \newcommand{\eref}[1]{Equation~\ref{#1}}     \newcommand{\cref}[1]{Chapter~\ref{#1}}     \newcommand{\sref}[1]{Section~\ref{#1}}     \newcommand{\aref}[1]{Appendix~\ref{#1}}     \renewcommand{\topfraction}{0.85}     \renewcommand{\bottomfraction}{.85}     \renewcommand{\textfraction}{0.1}     \renewcommand{\dbltopfraction}{.85}     \renewcommand{\floatpagefraction}{0.75}     \renewcommand{\dblfloatpagefraction}{.75}     \setcounter{topnumber}{9}     \setcounter{bottomnumber}{9}     \setcounter{totalnumber}{20}     \setcounter{dbltopnumber}{9}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage[scriptsize]{subfigure}     \usepackage{booktabs}     \usepackage{rotating}     \usepackage{listings}     \usepackage{lstpatch}     \lstset{captionpos=b,             frame=tb,             basicstyle=\scriptsize\ttfamily,             showstringspaces=false,             keepspaces=true}     \lstdefinestyle{matlab} {             language=Matlab,             keywordstyle=\color{blue},             commentstyle=\color[rgb]{0.13,0.55,0.13}\em,             stringstyle=\color[rgb]{0.7,0,0} }     \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,        bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,        colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red},        pdfstartview={FitV},unicode,breaklinks=true]{hyperref}     \pdfstringdefDisableCommands{        \let\\\space     }     \newcommand*{\supervisor}[1]{\def\supname{#1}}     \newcommand*{\examiner}[1]{\def\examname{#1}}     \newcommand*{\degree}[1]{\def\degreename{#1}}     \newcommand*{\authors}[1]{\def\authornames{#1}}     \newcommand*{\addresses}[1]{\def\addressnames{#1}}     \newcommand*{\university}[1]{\def\univname{#1}}     \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}     \newcommand*{\department}[1]{\def\deptname{#1}}     \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}     \newcommand*{\group}[1]{\def\groupname{#1}}     \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}     \newcommand*{\faculty}[1]{\def\facname{#1}}     \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}     \newcommand*{\subject}[1]{\def\subjectname{#1}}     \newcommand*{\keywords}[1]{\def\keywordnames{#1}}     \supervisor  {}     \examiner    {}     \degree      {}     \authors     {}     \university  {\texorpdfstring{\href{University Web Site URL Here (include http://)}                     {University Name}}                     {University Name}}     \UNIVERSITY  {\texorpdfstring{\href{University Web Site URL Here (include http://)}                     {UNIVERSITY NAME (IN BLOCK CAPITALS)}}                     {UNIVERSITY NAME (IN BLOCK CAPITALS)}}     \department  {\texorpdfstring{\href{Department or School Web Site URL Here (include http://)}                     {Department or School Name}}                     {Department or School Name}}     \DEPARTMENT  {\texorpdfstring{\href{Department or School Web Site URL Here (include http://)}                     {DEPARTMENT OR SCHOOL NAME (IN BLOCK CAPITALS)}}                     {DEPARTMENT OR SCHOOL NAME (IN BLOCK CAPITALS)}}     \group       {\texorpdfstring{\href{Research Group Web Site URL Here (include http://)}                     {Research Group Name}}                     {Research Group Name}}     \GROUP       {\texorpdfstring{\href{Research Group Web Site URL Here (include http://)}                     {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}                     {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}     \faculty     {\texorpdfstring{\href{Faculty Web Site URL Here (include http://)}                     {Faculty Name}}                     {Faculty Name}}     \FACULTY     {\texorpdfstring{\href{Faculty Web Site URL Here (include http://)}                     {FACULTY NAME (IN BLOCK CAPITALS)}}                     {FACULTY NAME (IN BLOCK CAPITALS)}}     \addresses   {}     \subject     {}     \keywords    {}     \renewcommand\maketitle{       \btypeout{Title Page}       \hypersetup{pdftitle={\@title}}       \hypersetup{pdfsubject=\subjectname}       \hypersetup{pdfauthor=\authornames}       \hypersetup{pdfkeywords=\keywordnames}       \thispagestyle{empty}       \begin{titlepage}         \let\footnotesize\small         \let\footnoterule\relax         \let \footnote \thanks         \setcounter{footnote}{0}         \null\vfil         \vskip 60\p@         \begin{center}           \setlength{\parskip}{0pt}           {\large\textbf{\UNIVNAME}\par}           \vfill           {\huge \bf \@title \par}           \vfill           {\LARGE by \par}           \smallskip           {\LARGE \authornames \par}           \vfill           {\large A thesis submitted in partial fulfillment for the \par}           {\large degree of Doctor of Philosophy \par}           \bigskip           \bigskip           {\large in the \par}           {\large \facname \par}           {\large \deptname \par}           \bigskip           \bigskip           \bigskip           {\Large \@date \par}           \bigskip         \end{center}         \par         \@thanks         \vfil\null       \end{titlepage}       \setcounter{footnote}{0}%       \global\let\thanks\relax       \global\let\maketitle\relax       \global\let\@thanks\@empty       \global\let\@author\@empty       \global\let\@date\@empty       \global\let\@title\@empty       \global\let\title\relax       \global\let\author\relax       \global\let\date\relax       \global\let\and\relax       \cleardoublepage     }     \newenvironment{abstract}     {       \btypeout{Abstract Page}       \thispagestyle{empty}       \null\vfil       \begin{center}         \setlength{\parskip}{0pt}         {\normalsize \UNIVNAME \par}         \bigskip         {\huge{\textit{Abstract}} \par}         \bigskip         {\normalsize \facname \par}         {\normalsize \deptname \par}         \bigskip         {\normalsize Doctor of Philosophy\par}         \bigskip         {\normalsize\bf \@title \par}         \medskip         {\normalsize by \authornames \par}         \bigskip       \end{center}     }     {       \vfil\vfil\vfil\null       \cleardoublepage     }     \addtocounter{secnumdepth}{1}     \setcounter{tocdepth}{6}     \newcounter{dummy}     \newcommand\addtotoc[1]{     \refstepcounter{dummy}     \addcontentsline{toc}{chapter}{#1}}     \renewcommand\tableofcontents{     \btypeout{Table of Contents}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\contentsname             \@mkboth{                \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}         \@starttoc{toc}         \if@restonecol\twocolumn\fi        \cleardoublepage     }\end{spacing}     }     \renewcommand\listoffigures{     \btypeout{List of Figures}     \addtotoc{List of Figures}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listfigurename           \@mkboth{\MakeUppercase\listfigurename}                   {\MakeUppercase\listfigurename}}         \@starttoc{lof}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }     \renewcommand\listoftables{     \btypeout{List of Tables}     \addtotoc{List of Tables}     \begin{spacing}{1}{         \setlength{\parskip}{1pt}         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listtablename           \@mkboth{               \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}         \@starttoc{lot}         \if@restonecol\twocolumn\fi         \cleardoublepage     }\end{spacing}     }     \newcommand\listsymbolname{Abbreviations}     \usepackage{longtable}     \newcommand\listofsymbols[2]{     \btypeout{\listsymbolname}     \addtotoc{\listsymbolname}         \chapter*{\listsymbolname           \@mkboth{               \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\listconstants{Physical Constants}     \usepackage{longtable}     \newcommand\listofconstants[2]{     \btypeout{\listconstants}     \addtotoc{\listconstants}         \chapter*{\listconstants           \@mkboth{               \MakeUppercase\listconstants}{\MakeUppercase\listconstants}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\listnomenclature{Symbols}     \usepackage{longtable}     \newcommand\listofnomenclature[2]{     \btypeout{\listnomenclature}     \addtotoc{\listnomenclature}         \chapter*{\listnomenclature           \@mkboth{               \MakeUppercase\listnomenclature}{\MakeUppercase\listnomenclature}}     \begin{longtable}[c]{#1}#2\end{longtable}\par         \cleardoublepage     }     \newcommand\acknowledgements[1]{     \btypeout{Acknowledgements}     \addtotoc{Acknowledgements}     \thispagestyle{plain}     \begin{center}{\huge{\textit{Acknowledgements}} \par}\end{center}     {\normalsize #1}     \vfil\vfil\null          }     \newcommand\dedicatory[1]{     \btypeout{Dedicatory}     \thispagestyle{plain}     \null\vfil     \vskip 60\p@     \begin{center}{\Large \sl #1}\end{center}     \vfil\null     \cleardoublepage     }     \renewcommand\backmatter{       \if@openright         \cleardoublepage       \else         \clearpage       \fi       \addtotoc{\bibname}       \btypeout{\bibname}       \@mainmatterfalse}     \endinput     %%     %% End of file `Thesis.cls'.


title: "Chapter 2 1/2": Custom Chapter Number

text: I'm copying to LaTeX my notes on Maths subject. My professor is quite weird, and "invented" a Chapter 2 1/2 (two and a half) between chapter 2 and chapter 3. For example:   * Chapter 2 Vector spaces and linear equation systems   * Chapter 2 1/2 Orthogonalization and least squares   * Chapter 3 Diagonalization I want to keep the chapter numbering, labeling it as 2 1/2 and, if possible, keeping sections like "2 1/2.1", "2 1/2.2", etc. I know it's weird and I've searched a lot. The only thing I've found is typing               \chapter*{Chapter 2 \nicefrac{1}{2} \vspace{10pt} Orthogonalization and least squares}      But that doesn't appear in ToC and doesn't keep section numbering. How can I solve this? Any ideas are apreciated. PS: sorry for my terrible English, I'm Spanish! **EDIT:** I've tried two different ways from Paulo Cereda's answer (Setting arbitrary chapter values), whose MWE are:               \documentclass[11pt]{book}     \usepackage[spanish]{babel}     \usepackage[utf8]{inputenc}     \usepackage{units}     \newcommand{\strangechapter}[1]{\renewcommand{\thechapter}{#1}\chapter}          \begin{document}     \tableofcontents     \chapter{Cálculo diferencial en R}     \chapter{Espacios vectoriales y sistemas de ecuaciones lineales}          \strangechapter{2 \nicefrac{1}{2}}{Ortogonalización y mínimos cuadrados}     \section{Producto escalar}     \setcounter{chapter}{2}     \renewcommand{\thechapter}{\arabic{chapter}}     \chapter{Matrices diagonalizables}          \end{document}      I've also used the same, but changing it a little bit:               \documentclass[11pt]{book}     \usepackage[spanish]{babel}     \usepackage[utf8]{inputenc}     \usepackage{units}     \newcommand{\strangechapter}[1]{\renewcommand{\thechapter}{#1}\chapter}          \begin{document}     \tableofcontents     \chapter{Cálculo diferencial en R}     \chapter{Espacios vectoriales y sistemas de ecuaciones lineales}     \clearpage% to flush out last chapter page with correct header and footer     \renewcommand{\thechapter}{2 \nicefrac{1}{2}}     \chapter{Ortogonalización y mínimos cuadrados}     \section{Producto escalar}          \setcounter{chapter}{2}     \renewcommand{\thechapter}{\arabic{chapter}}     \chapter{Matrices diagonalizables}     \end{document}      I've added `\setcounter` to keep the following chapters with correct numbering. Both of them work great in the text, but the Table of Contents ![table of contents](http://i.stack.imgur.com/1U4eH.png) doesn't show well, as the '1/2' is printed over the chapter of section name. How can I solve this?


title: No space between three-digit table number and title in List of Tables (KOMA-script)

text: I have KOMA script report in LyX (2.0.6 on Mac OS X 10.9.3) where there are more than 100 tables per chapter. For all the tables with more than thee digits (numbered chapter number dot table number) there is no space between the table number and the table caption in the List of Tables. ![tableof table space](http://i.stack.imgur.com/Mk1yU.png) Unfortunately the example I give is not-so-minimal because the problem only occurs after table 100.                   %% LyX 2.0.6 created this file.  For more info, see http://www.lyx.org/.     \documentclass[english]{scrreprt}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage{float}          \makeatletter          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.     %% Because html converters don't know tabularnewline     \providecommand{\tabularnewline}{\\}          \makeatother          \usepackage{babel}     \begin{document}          \title{report title}          \maketitle     \listoftables               \begin{table}[H]               \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}          \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}               \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}               \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}     \begin{table}[H]     \caption{A table}               \begin{tabular}{|c|c|}     \hline       & \tabularnewline     \hline      \end{tabular}     \end{table}          \end{document}


title: Ajdust width for the number of section

text: I have a problem with table of contents. I have changed the numbers of sections, that instead of numbers I have words, lets say "Dodatok A". But now, when the "number" of section is longer, the title of section and the "Dodatok A" are crossing, so it is not readable. Is there any way how to adjust the width of box for the number of section? I put here a picture with a part of table of contents, where you can see the problem. Thank you.                   \documentclass[12pt,a4paper]{article}          \usepackage[slovak]{babel}          \usepackage[utf8x]{inputenc}          \usepackage[T1]{fontenc}          \usepackage{palatino,verbatim}           \usepackage{graphicx}          \usepackage{multirow}           \usepackage{amsmath}          \usepackage{pstricks}         \usepackage{wrapfig}          \usepackage{epsfig}          \usepackage{caption}         \usepackage{subcaption}        \usepackage{color}         \linespread{1.3}         \usepackage[total={17cm,25cm}, top=2.5cm, bottom=2.5cm, left=3.5cm, right=2cm, includefoot]{geometry}       \usepackage{xr}     \usepackage{float}     \usepackage{hyperref}      \usepackage{pdfpages}     \usepackage{calc,etoolbox}     \usepackage[titletoc,toc,title]{appendix}     \numberwithin{equation}{section}               \begin{document}           \tableofcontents               some sections, subsections, figures etc.              \setcounter{section}{0}           \setcounter{subsection}{0}           \renewcommand\thesection{Dodatok \Alph{section}}               \setcounter{figure}{0}           \setcounter{equation}{0}           \renewcommand\thefigure{\Alph{section}\arabic{figure}}           \renewcommand\theequation{\Alph{section}\arabic{equation}}              \section{Kalibračná symetria pre elektromagnetizmus}         text text                \end{document}      ![A picture of a part of my table of contents, where you can see my problem.](http://i.stack.imgur.com/K0ehS.png)


title: Not enough space between figure number and figure caption in list of figures

text: > **Possible Duplicate:**   >  How to modify the indentation before sectioning titles in the table of > contents? LaTex experts, I am using latex for my thesis writing. I found an annoying problem which is in the list of figure (same problem in the list of tables), there is no enough hspace between the figure number and the figure description. My list of figures looks like this.               1.1 hello          1.2 help          1.3 ...          1.10Problem      Please note that there is no space between 1.10 and problem. Could anyone please help?


title: Adjusting spaces for the ToC

text: > **Possible Duplicate:**   >  TOC Text - numbers alignment   >  How to modify the indentation before sectioning titles in the table of > contents? I have a LaTeX document with many subsections (more than 100), which give rise to an issue. Here is how it looks like for a specific part of the Table of contents:               ...     2.98 Subsection whatever.     2.99 One more subsection.     2.100This is the hundredth section.     ...       i.e. the horizontal space between the subsection number and the name of the subsection gets to zero. Is there an easy way to increase this space, so the subsection title does not 'touch' the section numbering?


title: Range of a piano : annotate note frequency

text: I'd like to draw something like this for the piano, but with all notes explicitly draw and labelled with its frequency. I use for the first time the `musixtex` package so I have no idea how to automate the annotation. Here is what I've done so far.               \documentclass[preview,border={3cm 2mm 3cm 2mm}]{standalone}% standalone works with adjusting the border.     \usepackage{musixtex}     \begin{document}     \begin{music}     \instrumentnumber{1}     \setstaffs{1}{2}     \setclef{1}{60}     %     \startextract     \notes\qu{`CDEFG 'AB}\enotes     \bar     \notes\qu{CDEFG 'AB}\enotes     \bar     \notes\qu{'CDEFG 'AB}\enotes     \bar     \notes|\qu{cdefg'ab}\enotes     \bar     \notes|\qu{'cdefg 'ab}\enotes     \zendextract     \end{music}     \end{document}      ![enter image description here](http://i.stack.imgur.com/ome4y.png)


title: chapter style: how to put a box on the egde like veelo style?

text: I would like to modify the BlueBox chapter style of the memoir documentation (below) in such a way that the bluebox is at the edge of the page, like the veelo style.               \documentclass{memoir}     \usepackage{fourier} % or what ever     \usepackage[scaled=.92]{helvet}%. Sans serif - Helvetica     \usepackage{color,calc}     \newsavebox{\ChpNumBox}     \definecolor{ChapBlue}{rgb}{0.00,0.65,0.65}     \makeatletter     \newcommand     *     {\thickhrulefill}{%     \leavevmode\leaders\hrule height 1\p@ \hfill \kern \z@}     \newcommand     *     \BuildChpNum[2]{%       \begin{tabular}[t]{@{}c@{}}       \makebox[0pt][c]{#1\strut} \\[.5ex]       \colorbox{ChapBlue}{%     \rule[-10em]{0pt}{0pt}%     \rule{1ex}{0pt}\color{black}#2\strut     \rule{1ex}{0pt}}%       \end{tabular}     }     \makechapterstyle{BlueBox}{%       \renewcommand{\chapnamefont}{\large\scshape}       \renewcommand{\chapnumfont}{\Huge\bfseries}       \renewcommand{\chaptitlefont}{\raggedright\Huge\bfseries}       \setlength{\beforechapskip}{20pt}       \setlength{\midchapskip}{26pt}       \setlength{\afterchapskip}{40pt}       \renewcommand{\printchaptername}{}       \renewcommand{\chapternamenum}{}       \renewcommand{\printchapternum}{%     \sbox{\ChpNumBox}{%     \BuildChpNum{\chapnamefont\@chapapp}%     {\chapnumfont\thechapter}} }       \renewcommand{\printchapternonum}{%     \sbox{\ChpNumBox}{%     \BuildChpNum{\chapnamefont\vphantom{\@chapapp}}%     {\chapnumfont\hphantom{\thechapter}}}}       \renewcommand{\afterchapternum}{}       \renewcommand{\printchaptertitle}[1]{%     \usebox{\ChpNumBox}\hfill     \parbox[t]{\hsize-\wd\ChpNumBox-1em}{%       \vspace{\midchapskip}%       \thickhrulefill\par       \chaptitlefont ##1\par}}%     }     \chapterstyle{BlueBox}     \begin{document}     \chapter{Introduction}     tata yoyo     \end{document}      the veelo chapter style: ![veelo](http://i.stack.imgur.com/X2p20.png) the bluebox chapter style: ![BlueBox](http://i.stack.imgur.com/EYq5R.jpg) I would like to move the blue box on the left or on the right. Thank you very much for your help! nbi


title: Why is \[ ... \] preferable to $$ ... $$?

text: I've heard that you should use `\\[ ... \\]` for displayed equations instead of `$$ ... $$`, but why is that? I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a syntax-highlighting text editor, I can see that easily based on the color of the symbols. Is there any reason for this suggestion?


title: Using `$$` with LaTeX

text: > **Possible Duplicate:**   >  Why is \[ … \] preferable to $$? Why a lot of LaTeX users warn about the use of `$$ $$` instead of `\\[ \\]` for display formulas? What is the difference between the two commands to enable display formulas?


title: What is the difference "$$ $$" and "\[ \]"?

text: There are two ways in display-math mode. One is               $$ *math equations* $$      and the other one is               \[ *math equations* \].      But what is difference?


How to reduce or make the space equal of linespacing before and after the $$ something $$ ?


title: What the difference between $$ and \[?

text: > **Possible Duplicate:**   >  Why is \[ … \] preferable to $$? Why should I prefer `$$` to `\\[` ? I have always used `&&` and never had, seemingly, any problem !


title: Using `$$...$$` vs`\[...\]`

text: In order to center stuff in math mode, we can use either `$$...$$` or `\\[...\\]`. Is there an OBJECTIVE reason as to why one is better than the other?


title: What causes this error?

text: After seeing Herbert's answer, apparently this problem should not occur if I realized the first row of the following code should be `\documentclass{beamer}`. Problems often come from not knowing what I am doing. Please close this too localized question. * * * Sorry for the bad title!               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents*}{pst-sex.sty}     % ========================================================     % Copyright (c) 2013 Bugbusters. All rights reservered.     % LPPL LaTeX Public Project License     % ========================================================     \NeedsTeXFormat{LaTeX2e}[1994/06/01]      \ProvidesPackage{pst-sex}[2013/04/23 v3.141592654 Constant declator for StackEXchange]     \RequirePackage[nomessages]{fp}     \RequirePackage{pstricks}          % removing a trailing space in the original fp.sty     \def\FP@pow#1#2#3{%         % #1 macro, which gets the result         % #2 base         % #3 exponent         %         \FP@beginmessage{POW}%         %         {\def\FP@beginmessage##1{}%          \def\FP@endmessage##1{}%          %          \FPifzero{#2}%             \FP@pow@zero{#3}%          \else%             \FPln\FP@tmpd{#2}%             \FPmul\FP@tmpd\FP@tmpd{#3}%             \FPexp\FP@tmp\FP@tmpd%          \fi%          %          \global\let\FP@tmp\FP@tmp%         }%         %         \FP@endmessage{}%         %         \let#1\FP@tmp%     }          % constants declarator     \def\LoadConstants{}     \newcommand\const[3][]{%         \if\relax\detokenize{#1}\relax             \edef\pst@@sex@@temporary{#3}%         \else             \edef\pst@@sex@@temporary{round(#3:#1)}%         \fi         \expandafter\FPeval\csname#2\expandafter\endcsname             \expandafter{\expandafter{\pst@@sex@@temporary}}%         \toks0=\expandafter{\LoadConstants\pstVerb}         \edef\LoadConstants{\the\toks0 {/#2 \csname#2\endcsname\space def}}}          % inject \LoadConstants into pspicture     \def\pst@@picture@i[#1]#2(#3,#4){%         \renewcommand\const[3][]{%         \if\relax\detokenize{##1}\relax             \edef\pst@@sex@@temporary{##3}%         \else             \edef\pst@@sex@@temporary{round(##3:##1)}%         \fi         \expandafter\FPeval\csname##2\expandafter\endcsname             \expandafter{\expandafter{\pst@@sex@@temporary}}%             \pstVerb{/##2 \csname##2\endcsname\space def}\ignorespaces}%         \@ifnextchar(% ignore anything between [] and ()         {\pst@@@picture[#1](#3,#4)\LoadConstants}%         {\pst@@@picture[#1](0,0)(#3,#4)\LoadConstants}}          \endinput     % pst-sex.sty     \end{filecontents*}               \usepackage{multido}     \usepackage{pst-sex}     \usepackage[tightpage]{preview}     \PreviewEnvironment{pspicture}     \PreviewBorder=25pt\relax               \SpecialCoor     \const{Side}{root(2,17)}% the square root of 17          \begin{document}     \begin{frame}        \begin{pspicture}(\Side,\Side)         \psframe(!Side dup)\pause         \multido{\i=0+30}{12}{%             \const[7]{temp}{cos(\i*pi/180)}             \rput{\i}(!Side 2 div dup 2 copy temp mul add 3 1 roll \i\space sin mul add){$\temp$}\pause         }     \end{pspicture}     \end{frame}     \end{document}      What causes this error?


title: How to remove multiply-defined label in pgfplotstable using longtable

text: I need to add caption to a `longtable` possibly with a label to reference in text, however SIAM format fails when it encounters multiply-defined labels because of the repeated caption. Is there an easy way to add label to the first caption? Here is MWE. First compilation is OK, however second compilation gives this error:               ! SIAM Label Error: There were multiply-defined labels. Correct multiply-defined labels.      Required files, siamltex.sty, siamltex.cls, siamltex.clo, and siam10.clo can be downloaded from: http://www.siam.org/journals/auth-info.php               \documentclass[final]{siamltex}     %\documentclass[a5paper]{article}     \usepackage{pgfplotstable}      \usepackage{booktabs}      \usepackage{filecontents}     \usepackage{longtable}          \begin{document}     \begin{filecontents}{testdata.dat}     Idx  Nam Dim Grd     1   Ady 53  F     2   Bar 72  C     3   Cor 83  B     4   Dar 58  D     5   Esa 68  C     6   Foo 67  C     7   Gar 74  C     8   Hur 65  D     9   Jaz 85  B     10  Ker 91  A     1   Ady 53  F     2   Bar 72  C     3   Cor 83  B     4   Dar 58  D     5   Esa 68  C     6   Foo 67  C     7   Gar 74  C     8   Hur 65  D     9   Jaz 85  B     10  Ker 91  A     1   Ady 53  F     2   Bar 72  C     3   Cor 83  B     4   Dar 58  D     5   Esa 68  C     6   Foo 67  C     7   Gar 74  C     8   Hur 65  D     9   Jaz 85  B     10  Ker 91  A     1   Ady 53  F     2   Bar 72  C     3   Cor 83  B     4   Dar 58  D     5   Esa 68  C     6   Foo 67  C     7   Gar 74  C     8   Hur 65  D     9   Jaz 85  B     10  Ker 91  A     1   Ady 53  F     2   Bar 72  C     3   Cor 83  B     4   Dar 58  D     5   Esa 68  C     6   Foo 67  C     7   Gar 74  C     8   Hur 65  D     9   Jaz 85  B     10  Ker 91  A     1   Ady 53  F     2   Bar 72  C     3   Cor 83  B     4   Dar 58  D     5   Esa 68  C     6   Foo 67  C     7   Gar 74  C     8   Hur 65  D     9   Jaz 85  B     10  Ker 91  A     \end{filecontents}     \pgfplotstableset{     begin table=\begin{longtable},     end table=\end{longtable},}     I am referencing to the long table~\ref{aLabel}.     \pgfplotstabletypeset[col sep=space,header=true,         columns={Idx,Nam,Dim,Grd},      % display specified columns     columns/Idx/.style={fixed,fixed zerofill,precision=0,column type=r},     columns/Nam/.style={column type=l,string type},     columns/Dim/.style={fixed,fixed zerofill,precision=1,column type=r},     columns/Grd/.style={column type=l,string type},every head row/.style={before row={\caption{A caption}\label{aLabel}\\\toprule}, after row=\midrule\endhead}, every last row/.style={after row=\bottomrule}]{testdata.dat}     \end{document}


title: Table not printing

text: I'm having difficult time making the table code work for my paper. The table code is               \begin{table}     \begin{center}     \begin{tabular]{l l l}     \hline     v & a & b \\     4 & 2 & 4 \\     \hline     \end{tabular}     \end{center}     \end{table}      in the preamable, I have               \documentclass[12pt]{article}     \usepackage{amsthm, tabularx, amssymb, amsmath, amsthm, setspace, graphicx, pdfpages, dcolumn, booktabs, url, float, relsize, fullpage, rotating, ccaption}     \usepackage[round]{natbib}     \usepackage{cite}      I am really not sure why it's not working. Other tables work fine, but when I include this table, the texshop says that paragraph ended before `\begin` was complete. I can't seem to really figure out what is really wrong with this code.


title: Slide number list in header

text: This may be a common question (so apologies in advance) but I have not been able to find an answer already available. I would like to have the list of slide numbers of each section showing up in the header, with the number of each active slide highlighted. I have seen this in many presentations, but it does not appear to come with any of the usual themes (I'm using `Warsaw`). Any help would be greatly appreciated! @Gonzalo: here is what I mean happens with your solution. Take your code but replace the 1st frame with the following:               begin{frame}     \begin{itemize}         \item Item 1         \pause         \item Item 2         \pause         \item Item3     \end{itemize}      \end{frame} then what you get is the following, meaning that beamer counted the two items in the list on the 1st frame as separate slides and added them to the total number, which is now 13 instead of the correct 11: ![enter image description here](http://i.stack.imgur.com/Ieisw.png) ![enter image description here](http://i.stack.imgur.com/sFU9r.png)


title: PGF's \foreach when list requires completion

text: Please is there anything I am doing wrong that PGF's `\foreach` is failing here?               \def\alist{}     \foreach\x in {%       2pt_A,4pt_A,...pt_A,10pt_A     }{%       \xdef\alist{\alist\ifx\alist\@empty\else,\fi\x}%     }     \show\alist      I get               \pgffor@dots@stripcontext #1pt_A\pgffor@@stop ->\def \pgffor@dotsvalue {#1}     Runaway argument?     10pt_A \pgffor@@stop \expandafter \pgffor@dots@charcheck \pgffor@dotsvalue \ETC     .


title: A list of pairs in pgfkeys

text: Having learnt a lot about the `pgfkeys` package as a result of my last question, I'm now trying to do some more adventurous things. Let's say I have a command called `\blob`, whose value is the following list of pairs:               foo/{left=2,right=23,label=horse},%      bar/{left=25,right=29,label=sheep},%      baz/{left=31,label=zebra}      The first item of each pair is a simple string, while the second item is a key-value list. I run a `\foreach` command over `\blob`, to process each pair in turn. Suppose the current pair is `\x/\xvalue`. I want to execute the command               \pgfkeys{/wickerson/.cd,left=0,right=0,label={},\xvalue}      where `left=0`, `right=0` and `label={}` are the default values, to be overwritten by any values that the contents of `\xvalue` provides. My intention is that the first pair, for example, will expand to               \pgfkeys{/wickerson/.cd,left=0,right=0,label={},left=2,right=23,label=horse}      Unfortunately, this doesn't work. Here is a snippet of my output: > x = bar, xvalue = left=25,right=29,label=sheep > > ! Package pgfkeys Error: I do not know the key > '/wickerson/left=25,right=29,label=sheep' and I am going to ignore it. > Perhaps you misspelled it. > > See the pgfkeys package documentation for explanation. For some reason, it's treating `left=2,right=23,label=horse` as a single key, when I mean it to be treated as three keys. Could somebody kindly explain what's going on?               \documentclass{article}          \usepackage{tikz}          \pgfkeys{/wickerson/.cd,       left/.code={\gdef\wickerson@left{#1}},       right/.code={\gdef\wickerson@right{#1}},       label/.code={\gdef\wickerson@label{#1}}     }          \begin{document}          \newcommand*\blob{%       foo/{left=2,right=23,label=horse},%       bar/{left=25,right=29,label=sheep},%       baz/{left=31,label=zebra}%     }          \foreach \x/\xvalue in \blob {       \typeout{x = \x, xvalue = \xvalue};       \pgfkeys{/wickerson/.cd,left=0,right=0,label={},\xvalue}     }           \end{document}


title: Moebius Strip using TikZ

text: I'm wondering whether is possible to draw a Moebius Strip using `TikZ`. The closest thing I've seen is in Texamples' page, but no luck so far! Do you have any ideas? I don't even have a MWE (sorry)


title: Does lualatex embed fonts for compatibility?

text: I am using fonts installed on my computer in LaTeX document as               \documentclass{article}     \usepackage{fontspec}     \newfontfamily\fontx{Ubuntu}     \begin{document}     The default font     {\fontx New font}     The default font     \end{document}      I create the pdf file with `lualatex` command. How custom fonts are embedded in the pdf document for the sake of compatibility? Readers probably does not have this custom font; does this make a problem in displaying the pdf document? My knowledge about fonts is very limited. Sorry if it is a basic question. I just want to be sure about the compatibility of my pdf document when using rare fonts, and how to guarantee the document compatibility in different systems.


title: Writing a letter in ConTeXt, formatting issues

text: I'm writing a letter to someone, using ConTeXt. I'm running into some formatting issues. The following is the code I have, and the PDF output. There are two things that I'd like to fix.               \usemodule[letter]          \starttext          \setupletter       [fromname={HazySmoke},        fromaddress={Address Line One\\Address Line Two\\Address Line Three},        toname={Mr.\ So-and-so},        toaddress={Address Line 4\\Address Line 5\\Address Line 6}]          \setupletter       [opening={Dear Mr. So-and-so},        closing={Sincerely,},        signature={HazySmoke}]          \startletter     How have you been? I've doing great!     \stopletter          \stoptext      ![Letter PDF](http://i.stack.imgur.com/S64CS.png) I've highlighted the two problems with the letter in the above picture. First, ConTeXt decided to write my from-address twice. Once at the very top of the letter (which is what I want), and again in very fine print just below it. I don't quite understand why it does this by default, but as you can see, the fine print annoyingly overlaps with the to-address. I'd like to just get rid of it. Second, there is a lot of vertical space between the to-address and the date. My letter is just over a page long, and I'd like to shrink that vertical space so I have more room for the letter body. I've been trying to find reference material about the letter module on Google. I've come across some tutorials with examples, but I haven't seen any comprehensive guide that tells me what to do to fix those specific problems. So, along with my letter formatting questions, I'm also wondering what are some good resources that I can use to learn more about letters in ConTeXt.


title: how to draw a process flow figure?

text: I want to draw the process like in the picture using the code below, however, there is some problem, would someone help me? ![enter image description here](http://i.stack.imgur.com/xuB8T.jpg)                \usepackage[latin1]{inputenc}         \usetikzlibrary{trees}         \usepackage{verbatim}                  \tikzstyle{level 1}=[level distance=1.5cm, sibling distance=3.5cm]             \tikzstyle{level 2}=[level distance=1.5cm, sibling distance=2cm]                   \tikzstyle{bag} = [text width=20em, text centered]         \tikzstyle{end} = [circle, minimum width=3pt,fill, inner sep=0pt]                        \begin{tikzpicture}[grow=down]         \node[bag] { $(B)$}             child {                 node[bag] {$(R_{good})$}                     child {                         node[bag] {$(and)$}                         edge from parent                         node[right]  {$and$}                     }                     edge from parent                     node[right] {$t$}             };         \end{tikzpicture}


title: Many vertical alignment problems with tabu table

text: I use tabu to easily specify colors for different parts of my table. Also the X column makes life easier. I have some problems regarding vertical placement: In the linked figure you can see many defects: ![enter image description here](http://i.stack.imgur.com/2k5cB.png)   1. First Row: Text not vertically-aligned   2. Multiple line in the last column is not well placed. Although single line is good (Operand A)   3. Item lists have no space above, and plenty below! If I replaced the "X[8,m]" from the fourth column to "X[8,l]", problem 2 and 3 are fixed. But this breaks the middle alignment of the first three columns to top. What am I missing?               \documentclass{article}     \usepackage{tabu}     \usepackage{xcolor,colortbl}     \usepackage{enumitem}          \begin{document}          Test this          \vspace*{1cm}          \tabulinestyle{1pt blue}     \begin{tabu}[m]{          |[1pt blue] X[2.2,m]          |[1pt gray] X[m]          |[1pt gray] X[m]          |[1pt gray] X[8,m]          |[1pt blue] } \everyrow{\tabucline[1pt gray]-}          \rowfont[C]{\bf\large\color{white}} \rowcolor{blue} Port & Width & Type & Description \\          OperandA & Mode & Input &      Operand A  \\           OperandB & Mode & Input &      Operand B in IEEE format and some constraints \\           Mode & 3 & Input &      \begin{itemize}[nolistsep,noitemsep,leftmargin=1em]         \item 000 Round to           \item 001 Round away          \item 010 Round toward          \item 011 Round toward minus          \item 100 Round Toward         \item 101 Round to nearest          \item 110 Round to nearest          \item 111 Reserved      \end{itemize} \\          Precision & 1 & Input  &     \begin{itemize}[nolistsep,noitemsep,leftmargin=1em]         \item 1 Enable 64 operand         \item 0 Enable 128 operand     \end{itemize} \\          Oper & 1 & Input & \textit{Operation selector}:     \begin{itemize}[nolistsep,noitemsep,leftmargin=1em]         \item 100 bla         \item 101 blaaa         \item 000          \item 110          \item 111          \item 001          \item 010          \item 011      \end{itemize} \\          Condition & 5 & Input &      \textit{Comparison condition selector}:      The valid combination are seen in standard-defined Comparisons \\           \multicolumn{4}{|c|}{Clock, Reset, and Enable are relevant only to pipelined designs} \\           Clock & 1 & Input & System Clock (relevant only to pipelined designs) \\     Reset & 1 & Input & System Asynchronous Reset, active low \\          Enable & 1 & Input & \textit{System Enable}. When Enable = 0, the Clock and Reset inputs are held \\ \tabucline[1pt blue]-\end{tabu}          \end{document}


title: How to use LyX to produce STOP (Sequential Thematic Organization of Publications) documents

text: I want to produce documents in the STOP format (Sequential Thematic Organization of Publications). STOP was pioneered by the Hughes Aircraft Company in the Sixties and is regarded as a forerunner of DITA and other modular topic-based formats. STOP documents are presented as two-page spreads, and have a prominent thesis sentence under the title of each module. The two-page spreads are called "storyboards". The STOP Report is here, and is itself in the STOP format: https://github.com/johngtait/ditabook/blob/master/STOP_Original%20Report.pdf The book "The Joy of X: An Overview of the X Window System" by Niall Mansfield was written (many moons ago) in LaTeX and follows the STOP format. I want to use LyX to produce STOP documents. (I could use LaTeX if I don't need to be an expert to set it up.) What is the best way?


title: How to make a box around a section

text: I'm trying to put a box around a section, both the title and the contents. I've found ways of doing one or the other, but not both.               +-----------------------+     | Title                 |     |                       |     | content of section    |     | ...                   |     +-----------------------+      Something like the above, a single box around both the section title, and the section content.


title: Full LaTeX on tablet devices

text: I would like to know if there is a tablet device (iPad, Nexus...etc) on that one can install a full LaTeX environment. By "full", I mean that:               One can produce (compile successfully) from any `.tex` file the dvi or PDF file.     If any package is missing, one can install it manually (or better automatically, as MikTeX).      After searching on Google, it seems to me that there is no such tablet device. Most of LaTeX editors on tablet device requires internet connection (compile `.tex` on a server). In this post http://tex.blogoverflow.com/2012/09/i-tex- therefore-ipad-reloaded/, the author mentioned that TeX Writer (UK store) (for iOS) doesn't require internet connection. But it looks like it is just an latex editor. I don't know how it works with LaTex. (Does it provide a mini- latex environment or something else?). ps. Of course I don't want to type `.tex` file on a tablet device for a long time. But sometimes I may need to modify an existing `.tex` file (eg. when I find some errors in my paper).


title: Move (sub)section number right of (sub)section title in table of contents

text: I restyled the `\section` and `\subsection` a little bit, to better suite my needs when writing assignments. Using titlesec, I moved the (sub)section number to the right of the (sub)section title. In my preamble:               \usepackage[compact,explicit]{titlesec}          \def\thesection{\Roman{section}}     \titleformat{\section}[hang]{\Large\bfseries}{}{0pt}{#1 \thesection}     \def\thesubsection{\roman{subsection}:}     \titleformat{\subsection}[runin]{\large\itshape}{}{0pt}{#1 \thesubsection:}      In my documents, I usually use `\section{Part}` and `\subsection{Question}`, depending on the assignment. The advantage of course is, that I don't have to worry about Question numbering. However, the problem is that in the table of contents the (sub)section number is of course still displayed on the left, while I want both on the right as well. I looked at the `tocloft` package, but I can't figure out this particular case.


title: Can not get bibliography working in Kile

text: Using Kile on linux I'm trying to write an article in elsevier and include bibliography:               \documentclass[pdftex,preprint,12pt,final,1p,times,twocolumn]{elsarticle}          \begin{document}            \bibliographystyle{elsarticle-num}       \bibliography{myrefs}       % this shows references stored in the myrefs.bib file       \nocite{*}     \end{document}      The `myrefs.bib` file has this content:               @ARTICLE{Zurek,        AUTHOR  = {Zurek, R. W. and Martin, L. J.},        TITLE   = {Interannual Variability of planet-encircling dust activity on {M}ars},          YEAR    = {1993},        JOURNAL = jgr,        VOLUME  = {98},        NUMBER  = {E2},        PAGES   = {3247--3259}     }      Then I press `PdfLaTex` (compiled fine), `BibTex` (finished with exit code 2), so it is not clear what is wrong. Could you please help?


title: Reference undefined in \section with amsbook

text: I have a section that is devoted to the proof of a theorem, and hence I used               \section{Proof of Theorem~\ref{thm}}      Of course, because of the headers that are capitalized, it asks for \ref{THM} when producing the header, and I get an obvious error. What is the proper way to handle such a case? Below is a MWE:               \documentclass{amsbook}     \usepackage{lipsum}     \newtheorem{thm}{Theorem}     \begin{document}     \chapter{First Chapter}     \section{The Theorem}     \begin{thm}[Lipsum Theorem]     \label{thm}     \lipsum[1]     \end{thm}     \section{Proof of Theorem~\ref{thm}}     \lipsum[1-23]     \end{document}      When compiling I get:               LaTeX Warning: Reference `THM' on page 3 undefined on input line 14.      (each time it produces a header), and the header shows > `2. PROOF OF THEOREM ??'


title: Tikz Hierarchical Chart - Branching

text: I am trying to get Rachel Brown all on one line, and below Rachel Brown - three branches that say Mary Brown, Laura Brown and Emma Brown. I am also trying to get ages to show below each name, for example directly below Hannah Brown it needs to say (Age: 23), etc. Many Thanks!               \documentclass{article}     \usepackage{tikz-qtree}          \begin{document}     \tikzset{edge from parent/.style=     {draw, edge from parent path={(\tikzparentnode.south)     -- +(0,-8pt)     -| (\tikzchildnode)}},     blank/.style={draw=none}}     \begin{tikzpicture}     \matrix     {     \node{\Tree       [.{Hannah Brown}       [.Rachel Brown ]]};\\     };                \end{tikzpicture}          \end{document}


title: tikz markers in a math equation of a node

text: I realize this is almost certainly impossible; however, I would love to see the TeX wizardry hidden here (and I actually also really desperately want this feature). So I have a tikzpicture, and inside this picture, I have some node. Inside this, node, I have a math equation, say:                   $$\left|             \frac{               \left(\sum_{i=1}^n a_i^2\right) \cdot               \left(\sum_{i=1}^n b_i^2\right)             }{ (\sum_{i=1}^n \underbrace{a_ib_i}_{HERE})^2} \right| \geq 1$      Now, the underbrace gives me a nice rotated "}", and I can label it "HERE". However, I don't want to label it "HERE". I want to draw an arrow from a tikzNode to where the "HERE" is located. I want to be able to do something like:                   \draw [->] (cauchySchwarzLabelNode) -- (HERE);      So basically, I need to be able to "grab the location of where 'HERE' is in the equation" ... and somehow draw an arrow to it from tikz. Is there any hack to make this possible?


title: LaTeX Beamer Block "Sandwich Style"

text: How can I create a block in LaTeX Beamer in "Sandwich Style", i.e., that has both a title and a footer. Ideally, the background colors could even be different. Here is an illustration (with incorrect spacing): ![Image that shows how it should \(roughly\) look like](http://i.stack.imgur.com/jbO6r.png)


title: How do I use Notepad++ with MiKTeX and Sumatrapdf

text: This identical question has been answered, but unfortunately the answer is a bit over my head :( EDIT: way over my head. I need a **very basic** explanation - preferably in English not computersciencese - for how to do this. Things I don't understand from here and here are:   1. What is a batch file, should I just copy the code (which is Greek to me) directly in or might I need to modify it, and what is a path/how do I put the batch file in the path to Notepad++   2. What is that "NPPExec" plugin, what is a dll file, and why do or do not I need it? And if I need it, what do I do with it and where do I get it?   3. For those of you familiar with Notepad++, how do I create these keyboard shortcuts that everyone is saying to create? Thank you all in advance, I have already made much progress in LaTeX, largely because of the help from this site. Slowly but surely!


title: Making hyperlinked graphs with the TikZ graphdrawing package

text: This question here garnered an interesting response on how to make TikZ node text clickable. I am using the `graphdrawing` package in order to automatically set up the graph, so I am unable to use the `\hyperlink` command in the `\graph` "environment. My file at the moment looks like this:               \documentclass{article}     \usepackage{hyperref}     \usepackage{bookmark}     \usepackage{tikz}     \usetikzlibrary{trees,calc}     \usepackage{tikz}     \usetikzlibrary{graphs, graphdrawing}     \usegdlibrary{trees, layered}          \begin{document}          \begin{tikzpicture}         \tikz [rounded corners]          \graph [layered layout, sibling distance=8mm, level distance=8mm]         {            A -> B -> C -> A         };     \end{tikzpicture}          \clearpage     \section{Target A}      \label{sec:A}          \clearpage     \section{Target B}     \label{sec:B}           \clearpage     \section{Target C}     \label{sec:C}          \end{document}      How could I set up hyperlinks to be such that if click on A in the graph, it takes me to the section titled "A" if I am using `graphdrawing`?


title: Tikz callout: positioning start of pointer

text: The pointers of my Tikz callout rectangles always start in the middle of the rectangle. But that kind of pointer sometimes gets in the way of other objects (e.g. the pointer start should be more to the left in the example below). Thus I want to **position the start of the pointer** manually, e.g. via degree or `.south west` or the like. (How) can I do that? Can I somehow modify the standard tikz callout such that this positioning can be determined by some parameter? Or is there an alternative package for this? * * * Here is a minimal working example (mwe):               \documentclass[10pt,a4paper]{article}     \usepackage{tikz}     \usetikzlibrary{decorations.text}     \usetikzlibrary{shapes}     \begin{document}     \begin{tikzpicture}[>=latex]     \node[draw, align=center, rounded corners=2pt, rectangle] at (2.6,-1.7) (c22) {Further Rectangle};          \node[rectangle callout,draw,inner sep=2pt,color=red,        callout absolute pointer={(c22.west)}] at (1.48,-.95) {no          workarounds; no exceptions to optimizations};      \end{tikzpicture}     \end{document}      The mwe results in the first figure, but I would like sth. like the second figure. ![enter image description here](http://i.stack.imgur.com/A3agp.png) ![enter image description here](http://i.stack.imgur.com/0g4FP.png)


title: Beamer conditional pdf file generation

text: I would like to know if there is a method to generate beamer pdf presentation based on conditions. For example: -Main Beamer presentation:               Slide 1     Slide 2     Slide 3     Slide 4     Slide 5      -For the first presentation (pdf file):               Slide 1 (hidden)     Slide 2 (hidden)     Slide 3     Slide 4     Slide 5      -For the second presentation (pdf file):               Slide 1     Slide 2 (hidden)     Slide 3     Slide 4 (hidden)     Slide 5 (hidden)      Thank you in advance!


title: Overpic+graphics full size image

text: I'm using graphics+overpic to create the title page of a book and I had a struggle eliminating a blank page that the code generated at the beginning of the book. So I insert the image with overpic, it has the exact same height (I made sure of that) and a bit less width as the document. I eliminated the margins to get a full page image. This is the code that generates that blank page:               \newgeometry{     left=0mm,     right=0mm,     top=0mm,     bottom=0mm}          \begin{raggedright}     \begin{overpic}[height=1\textheight]{Portada.png}      %To write inside the image      \put (43,80) {\fontsize{32}{38}$Tercera$}      \put (43,72) {\fontsize{32}{30}$Cruzada$}     \end{overpic}     \end{raggedright}          \restoregeometry      Now, I tried and tried and the only thing that works and still get me a full page image is begin{overpic}[height=0.999\textheight]{Portada.png} So I said to myself "ok, a round error of 0.001, no problem, I'll fix the image and it will work without the 0.999" but it doesn't! If I don't write the "0.999\textheight" the code will create a blank page. My document size is this:               \geometry{      screen,      paperwidth=14.78cm,      paperheight=19.71cm,       left=8mm,      right=8mm,      top=9mm,      bottom=9mm}      Tecnically there is no problem but I'm dying to know wihy this happens. Does anyone have any idea? Thank you!


title: How to fit the table into landscape mode

text: The below method works great for a regular table. I was wondering if there is a command phrase to shrink/resize the table in the sideways mode. I think problem is because of \textwidth which obviously doesn't work in the landscape mode.               \documentclass{article}     \usepackage{graphicx}     \begin{document}          \begin{table}     \resizebox{\textwidth}{!}{%       \begin{tabular}{cc}         Knuth & Lamport       \end{tabular}}     \end{table}          \end{document}      This code was taken from the following link on this forum. Changing the font size in a table UPDATE: Here's my MWE that utilizes tabularx but for some reason, I can't get the table sizing right. In portrait mode, text is getting too small with the \resizebox command. So, I've decided to make only this page to landscape mode.               \documentclass[12pt]{report}     \usepackage{graphicx,xcolor}     \usepackage{caption}     \usepackage[centertags]{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{newlfont}     \usepackage[version = 3]{mhchem}     \usepackage{rotating}     \usepackage{tabularx}     \usepackage{mathptmx}     \usepackage{textcomp}     \usepackage{array}          \begin{document}     \begin{sidewaystable}     \caption{Kinetic parameters for oxygen reduction mechanism in MCFC cathode.}     \begin{tabularx}{\textwidth}{X|X|X|X|X|X|X|X}     \hline     \hline     \multicolumn{8}{c}{$i_o = i_o^o (O_2)^a (CO_2)^b$} \\     \multicolumn{8}{c}{$i_o$ = Bulk exchange current density, $mA/cm^2$} \\     \multicolumn{8}{c}{$i_o^o$ = Standard exchange current density, $mA/cm^2$} \\     \hline      $i_o$ $mA/cm^2$ & a & b & Method & Electrode & Dominant Mechanism & Electrolyte &   Reference \\     \hline      & 0.85 & -0.45 & Potential-step, AC Imped. & Au(ref), Ni(cathode) & Superoxide & 62/38 Li-K &  \\      10,27,39 & 0.1 & -0.15 & Potential-step, Coul. relax., and AC Imped. & Au smooth & Superoxide & 43/57 Li-K eutectic & \\     11,26.3 & 0.1 & -0.15 & SS potentiostatic, potential step & Au smooth & Superoxide & Li, Li-K eutectic &  \\     0.023-0.065 & - & - & SS potentiostatic & Au smooth &  & Li-Na-K eutectic &  \\     10 & 0.15 & -0.15 & Potential-step & Au, smooth & Superoxide & & \\     - & 0.3 & 0 & SS, kinetic control assumed & NiO, porous &  & & Tang (1980) \\     - & 0.6 & 0.6 &  & NiO, porous &  & & Tang (1980) \\     ~1 & 0.5 & 0 & C & NiO, porous & & &  \\     4-7 & - & - & Transient potentiostatic & Au & & & IGT Proj 9105 \\     0.78 & 0.2 & 0.2 & Modeling of SS data & NiO, porous & Peroxide & Na-K &  \\     0.16-0.5 & 0.875 & -0.25 & Modeling of SS data & NiO, porous & & &  \\     0.01-0.03 & - & - & Potential-sweep & Au & Peroxide & Na-K, Li &  \\         & 0.375 & -1.25 & Modeling of SS data & NiO, porous &  & &  \\     & 0.4 & 0 & Modeling of SS data & SS porous & Superoxide & Li-Na-K, Li-K & This work \\     \hline       \end{tabularx}     \end{sidewaystable}      \end{document}


title: How to upload my own picture to this CV template

text: Here is a read-only link to a CV template. It has a little picture in the top left, and I am having trouble finding how to upload my own picture there. How would I do so?


title: How to draw arbitrary closed surface with TikZ?

text: I want to draw an arbitrary closed surface like following figure. How can i do it? ![enter image description here](http://i.stack.imgur.com/Sc8wd.png) Here is the MWE:               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \shade[line width=2pt, color=blue] (0, 0) .. controls(1,2) .. (3, 0) ;     \end{tikzpicture}     \end{document}      In my code, color option doesn't work and I can't close the \controls.


title: Page numbering problem

text: I use `\pagenumbering{roman}` for several pages in my `\documentclass{report}`. I display my `\tableofcontents`, and then switch to `\pagenumbering{arabic}`. However, my table of contents is two pages long, and on the second page, the report switches to the arabic page numbering. Not sure why, and don't know how to fix. To recap, my document looks like:               \pagenumbering{roman}     \tableofcontents     \pagenumbering{arabic}     % content


title: How to draw a circle whose radius is a multiple of the distance of two points in TikZ?

text: The following is the MWE for my figure:               \documentclass{article}     \usepackage{caption}       \usepackage{pgf,tikz}     \usetikzlibrary{arrows,shapes,calc,intersections,through,backgrounds}          \begin{document}     \begin{figure}[b]        \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]                       \coordinate (a) at (1,4);            \coordinate (p) at (1,5);                 \draw(a) let \p1 = ($ (a) - (p) $) in circle (\pgfmathparse{veclen(\x1,\y1) * 3}\pgfmathresult);       \end{tikzpicture}     \end{figure}     \end{document}      I'm getting the following error for this:               ! Incomplete \iffalse; all text was ignored after line 12.      I'm not sure what is the issue here - some help would be appreciated!


title: Create a PDF with non-embedded base fonts

text: Quoting Wikipedia: > Times, Courier, Helvetica, Symbol, and Zapf Dingbats... or suitable > substitute fonts with the same metrics, must always be available in all PDF > readers and so need not be embedded in a PDF. How can I produce a PDF with TeX-world tools, that uses these fonts without embedding them? I want to try out how they look in different PDF viewers. For example, I know of some free software viewers that substitute the Liberation family.


title: Sideways (rotated 90 degrees) label for table

text: How can I create the following table in LaTeX? I created the table below using PowerPoint. ![enter image description here](http://i.stack.imgur.com/yq5BB.png) Here is my best attempt at using LaTeX to create the table:               \begin{tabular}{l|l|l|}       \cline{2-3}        & \multicolumn{2}{|c|}{Returning Week} \\ \cline{2-3}         & 1 & 2 \\ \hline       \multicolumn{1}{|l|}{1} & 0.3 & 0.2 \\ \hline       \multicolumn{1}{|l|}{2} & 0.1 & 0.1 \\ \hline     \end{tabular}      and the output ![enter image description here](http://i.stack.imgur.com/0JH86.png) Similar tex.stackexchange posts:   * Sideways label for table with alternating row colours includes a more extensive example of a table that includes this feature, but it is hard to parse because it includes many other features.   * How to make table with rotated table headers in LaTeX likewise has a table with many many entries, so is hard to parse as well


title: How to insert an image into Latex IEEE document by using miktex?

text: I wish to include my `1.png` image into the LaTeX document, however I get the error when using the command as below:               \begin{figure}     \centering         \includegraphics{1.png}     \caption{Figure 1: A picture of the same gull looking the other way! }     \label{fig:verticalcell}     \end{figure}      or               \usepackage{graphicx}     \graphicspath{{../pdf/}{C:\Users\User\Desktop\IEEE_CS_Latex\1.png}}      Here is my path: C:\Users\User\Desktop\IEEE_CS_Latex\1.png Updated:               \documentclass[conference]{IEEEtran}     \usepackage{graphicx}          \begin{figure}     \centering         \includegraphics{\graphicspath{1.png}     \caption{Figure 1: A picture of the same gull looking the other way! }     \label{fig:verticalcell}     \end{figure}      Updated 2:               \begin{figure}[!t]     \centering     \includegraphics[width=2.5in]{1}     % where an .eps filename suffix will be assumed under latex,      % and a .pdf suffix will be assumed for pdflatex; or what has been declared     % via \DeclareGraphicsExtensions.     \caption{Simulation Results}     \label{fig_sim}     \end{figure}      Updated 3: ![enter image description here](http://i.stack.imgur.com/j9NES.png) Updated 4:               % *** GRAPHICS RELATED PACKAGES ***     %     \ifCLASSINFOpdf          \usepackage[pdftex]{graphicx}     % declare the path(s) where your graphic files are     \graphicspath{{../1/}{../png/}}     % and their extensions so you won't have to specify these with     % every instance of \includegraphics     \DeclareGraphicsExtensions{.png}     \else     % or other class option (dvipsone, dvipdf, if not using dvips). graphicx     % will default to the driver specified in the system graphics.cfg if no     % driver is specified.     % \usepackage[dvips]{graphicx}     % declare the path(s) where your graphic files are     % \graphicspath{{../eps/}}     % and their extensions so you won't have to specify these with     % every instance of \includegraphics     % \DeclareGraphicsExtensions{.eps}     \fi     % graphicx was written by David Carlisle and Sebastian Rahtz. It is     % required if you want graphics, photos, etc. graphicx.sty is already     % installed on most LaTeX systems. The latest version and documentation can     % be obtained at:      % http://www.ctan.org/tex-archive/macros/latex/required/graphics/     % Another good source of documentation is "Using Imported Graphics in     % LaTeX2e" by Keith Reckdahl which can be found as epslatex.ps or     % epslatex.pdf at: http://www.ctan.org/tex-archive/info/     %     % latex, and pdflatex in dvi mode, support graphics in encapsulated     % postscript (.eps) format. pdflatex in pdf mode supports graphics     % in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure     % that all non-photo figures use a vector format (.eps, .pdf, .mps) and     % not a bitmapped formats (.jpeg, .png). IEEE frowns on bitmapped formats     % which can result in "jaggedy"/blurry rendering of lines and letters as     % well as large increases in file sizes.     %     % You can find documentation about the pdfTeX application at:     % http://www.tug.org/applications/pdftex


title: Increasing the size of parentheses

text: \begin{equation}     \begin{split}     G^{2} = &-2 \{ \sum_i \sum_j \sum_k z_{ijk111}\log \{ \frac{m_{ijk}}{z_{ijk111}}\}                    +  \sum_j\ \sum_k z_{+jk211} \log \{ \frac{\sum_i m_{ijk}a_{ijk}}{z_{+jk211}} \}                    +  \sum_k\ \sum_i z_{i+k121} \log \{ \frac{\sum_j m_{ijk}b_{ijk}}{z_{i+k121}} \} \\             &\quad + \sum_j \sum_i z_{ij+112} \log \{ \frac{\sum_km_{ijk}b_{ijk}}{z_{ij+112}} \}                    + z_{+++222} \log \{ \frac{m_{ijk}a_{ijk}b_{ijk}c_{ijk}\theta_{M_{(I)}}\theta_{M_{(J)}}\theta_{M_{(K)}}}{z_{+++222}} \}                  \}           \end{split}     \end{equation}      The parenthesis after -2 is small, I want it larger. I am also having problem with making larger parenthesis specially after log. Any solutions?


title: Adobe Reader or Adobe Acrobat

text: I would like to know, if I can use LaTeX to generate report if I only have Adobe Reader or do I need Adobe Acrobat as well?


title: How can I combine two text strings to represent the name of a command?

text: I want to combine one command with a text string to represent a second command. In MatLab it would be possible to concatenate these two strings into one string and evaluate this new string. However I have no clue as to how this can be done in LaTeX. See my working example below:               \documentclass[10pt,a4paper,twosided]{article}             \begin{document}                       \newcommand{\CaseID}{CaseOne}                   \newcommand{\ProbabilityCaseOne}{1.00E-04}                  \paragraph{The results for \CaseID}                  \CaseID has probabilty  \Probability\CaseID                   \end{document}      The combination `\Probability\CaseID` does not work as a synonym for `\ProbabilityCaseOne`. How can I achieve a functionality like that?


title: Using `external` selective for TikZ-pictures

text: For the following example:               \documentclass{beamer}          \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usetikzlibrary{calc,external}     \usepackage{pgfplots}     \tikzexternalize          \begin{document}     \tikzstyle{every picture}+=[remember picture]     % following doesn't work     % \tikzset{every baseline/.append code={external/export=false}}     % \tikzstyle{every baseline}+=[external/export=false]     % \tikzstyle{every overlay}+=[external/export=false]          \begin{frame}       \frametitle{Frame Title}       \begin{itemize}       \item first item with longer sentences            and a \tikz[baseline]{\node[inner xsep=0pt,           anchor=base, fill=red!60](n1){node};}       \item second item with pgf plot: \\         \begin{tikzpicture}           \begin{axis}[width=7cm,height=5cm]             \addplot[color=blue]{sin(deg(x))};           \end{axis}         \end{tikzpicture}       \item third item with \tikz[baseline]{\node[inner xsep=0pt,           anchor=base, fill=red!60](n2){node};}       \end{itemize}            \begin{tikzpicture}[overlay,>=latex, shorten >= 3pt, shorten <=3pt]         \draw[-,red!60,ultra thick](n1.east) -- ($(n1.east) + (.5,0)$)         |- (n2.east);       \end{tikzpicture}          \end{frame}     \end{document}          %%% Local Variables:      %%% mode: latex     %%% LaTeX-command: "latex -shell-escape"     %%% TeX-PDF-mode: t     %%% TeX-master: t     %%% End:       Exist a smart/lazy way (= some global settings) to not externalize all `overlay` and `baseline` tikz-pictures? EDIT:   Now using `external/named only=true` and then explicit naming of pgfplots with `\tikzsetnextfilename{filename}`


title: ar package for Aspect Ratio symbol

text: I try to get the Aspect Ratio Symbol used in aeronautics (A and R together see p.78 of this document) but it requires the `ar` package. I call `\usepackage{ar}` in my code and get the error: file `ar.sty` not found. I already tried to install it under Windows some month ago (didn't manage it) but now I'm running Ubuntu so I hope I'll find someone who knows how to fix this. I would also accept a solution using another package as long as it produces this symbol (but I haven't been able to find one so far).


title: Command(s) which would render a LaTeX document into a PNG on Mac

text: I am using TexShop on a Mac, which handles all of the rendering for me, but have been asked by a colleague to find the command(s) that would render the LaTex document as a PNG instead of PDF. By way of example, on linux it would be               $ pdflatex file.tex     $ gs -sDEVICE=pnggray -sOutputFile=card.png -dNOPAUSE -r1200 file.pdf quit.ps      (Note: the -r1200 will generate an image 4x larger than used, since it will be scaled down to produce an anti-aliased image). Thank you & kind regards.


title: Bib compilation blocks pdf compilation

text: I am pretty sure this is not a syntax mistake. I am using a .tex file with the following form:               \documentclass[a4paper,12pt]{article}          \title{Here goes the title}     \author{Here goes my name}     \date{\today}          \usepackage{amsmath}          \usepackage{amssymb}          \usepackage[english]{babel}          \usepackage[pdftex]{graphicx}          \usepackage{apacite}          \begin{document}     \maketitle          Here is the text          \bibliographystyle{apacite}      \bibliography{HL_Literature}          \end{document}      I know this template works. I have been using this almost all year, updating the file daily. I have many things in the file (sections, figures, tables, etc) and so far I haven't had any problems. I am using TexMaker 1.9.9 and KBibTeX Suddenly today I try to compile and I get an error pointing to a line where I had some tables. I checked the code, but nothing. I removed the tables and tried again. The error persisted in the same line, despite the fact that now there was different content there. This seemed odd, and here I suspected that the auxiliary files might have gotten corrupt. So I deleted the .aux, .bbl, .blg and .log files and tried the compilation again. This time, it did work, but my citations were all incomplete (because it was the first compilation). So I ran BibTex and then I compiled again. Now I get the same error as before:               ! Misplaced alignment tab character &.     <argument> ...ov/articlerender.fcgi?artid=3153785&     tool=pmcentrez&rendertype=...     l.115 pmcentrez&rendertype=abstract}     \end{APACrefURL}     I can't figure out why you would want to use a tab mark     here. If you just want an ampersand, the remedy is     simple: Just type `I\&' now. But if some right brace     up above has ended a previous alignment prematurely,     you're probably due for more error messages, and you     might try typing `S' now just to see what is salvageable.      So basically the situation is this: If I run BibTeX I cannot compile my pdf because of the error above. If I delete all the auxiliary files I can compile the pdf, but all my references are undefined, so I need to run BibTeX again, but then everything starts again... Any suggestions are most welcome.


title: Too narrow S-column in siunitx

text: I'm making a small table with numbers and units given with the `\SI{num}{unit}` call. However, the units stretches outside the table width, such that the `booktabs`lines (or any other line) looks too short. An MWE:               \documentclass[11pt, english]{article}          \usepackage{siunitx}     \usepackage{booktabs}     \newcommand{\m}{\hat{m}}          \begin{document}     \begin{table}[H]         \centering         \caption{Some table}         \begin{tabular}{         r         c         S[table-format = 3.2]         }             \toprule             Beskrivelse & Variabel & {Verdi}  \\             \midrule             Temperaturer & $T_{\m_2}^\text{rev}$ & 558.3\si{\kelvin} \\             & $T_{\m_4}^\text{rev}$ & 542.3\si{\kelvin} \\             Reversibelt arbeid & $W_{s,1}^\text{rev}$ & 237.5\si{\kilo\watt} \\                                & $W_{s,2}^\text{rev}$ & 213.4\si{\kilo\watt} \\             Arbeid & $W_{s,1}$ & 339.3\si{\kilo\watt} \\                    & $W_{s,2}$ & 304.9\si{\kilo\watt} \\             Totalt & $W_s$ & 644.2 \si{\kilo\watt} \\             \bottomrule         \end{tabular}     \end{table}     \end{document}        which produces the following ![short_lines](http://i.stack.imgur.com/cHlQf.png) As you can see, it doesn't look good. Any solution to this?


title: custom header text and headrule

text: Using `mweclass` **LaTeX** class (`report` based) is writing a document as follows:               \documentclass{mweclass}     \title{MWE}     \author{J. Doe}     \begin{document}       \thispagestyle{mwetest}       \maketitle       \pagestyle{mwetest}       \chapter{One}       \section{First}       % LaTeX code ...     \end{document}      In the _header_ there **must** be a _headrule_ on each page at a **fixed offset in height**. But... when there are any `g`, `q`, `p` etc. letters in the text above (chapter or section names) the headrule is distanced **correctly**. Otherwise, the headrule is " **attaching** " to the text. In a `mweclass.cls` I have this code for the `mwetest` pagestyle:               \newcommand{\ps@mwetest}{%       \setlength\fancy@headwidth       {\mwe@textwidth}%       \fancy@setoffs%       \renewcommand\headrulewidth      {\mwe@headrulewidth}%       \renewcommand\footrulewidth      {0pt}%       \renewcommand\footruleskip       {0pt}%       \def\headrule{\hrule\@height\headrulewidth\@width\headwidth\vskip-\headrulewidth}%       \def\footrule{}%       \def\f@ncyorh{\rightmark~\ \ \ \ \ ~\thepage}%       \def\f@ncyelh{\thepage~\ \ \ \ \ ~\leftmark}%       \def\@oddhead{\@fancyhead\fancy@Oolh\@empty\hfil\f@ncyorh\fancy@Oorh}%       \def\@evenhead{\@fancyhead\fancy@Oelh\f@ncyelh\hfil\@empty\fancy@Oerh}%       \def\@oddfoot{}\def\@evenfoot{}%       \def\chaptermark##1{\markboth{##1\ -- \ \thechapter}{}}%       \def\sectionmark##1{\markright{\thechapter.\arabic{section}\ --\ ##1}}%     }      Some code is taken from distributed `fancyhdr.sty`, version **3.2** , lines **432-435**. The **_\mwe@textwidth_** and **_\mwe@headrulewidth_** are calculated `OK` by the `mweclass` class before. The problem is probably something to do with the _baseline_ in letters. The _headrule_ keeps **_attaching/detaching_** from the _chapter_ / _section_ names above, whether the text contains letters whose shape in the font prolongs below the baseline; or not.   1. Is there a way to insert _invisible_ (that are not typeset) letters in a text? If there were, an easy workaround is to put a `q` in chapter and section names.   2. What is wrong? Except this _mobile_ headrule, the header is but `OK`. I appreciate any reply or suggestions.


title: From inside a LaTeX article, I want to render several parts of the code into a separate png (a "render pass")

text: I have a long article with many, say, TikZ images. Let's say it looks like:               \documentclass{article}     \usepackage{tikz}     \begin{document}         ...much more stuff...     \begin{tikzpicture}         \draw[red] (0,0) -- (1,1);     \end{tikzpicture}         ...much more stuff...     \end{document}      Now from this file, I want to render the whole article into a pdf and also the tikzpicture into a PNG. This has to happen automatically with latex since I want to write a package that uses this. (So answering "Oh, just copy and paste the image code to a separate file." is not helpful.)


title: How to choose from a list for using result in \ref?

text: Recently, in choose from a list with xstring, Geoff was asking about defining the command `\variation` that does the following:               \variation{1}{aaa;bbb;ccc} ----> aaa     \variation{2}{aaa;bbb;ccc} ----> bbb     \variation{3}{aaa;bbb;ccc} ----> ccc      There are a number of nice answers on this question. However, I have found that all of them have the same disadvantage: when I am trying to use the result of `\variation` in `\ref` or `\getrefnumber` from the package refcount, I get an error message. To be more specific, consider the not-working example based on Heiko Oberdiek solution,               \documentclass{article}     \usepackage{xstring}           \newcommand*{\variation}[2]{%       \edef\variationNext{%         \noexpand\StrBetween[%           \the\numexpr(#1)\relax,%           \the\numexpr(#1)+1\relax         ]%       }%       \variationNext{;#2;}{;}{;}\relax     }               \begin{document}          \begin{equation}     2+2=4 \label{aaa}     \end{equation}          \begin{equation}      3+3=6 \label{bbb}     \end{equation}          I can refer to these equations as equation~\ref{aaa} and     equation~\ref{bbb}.          Now I have the string ``aaa;bbb''. If I refer to these equations as     equation~\ref{\variation{1}{aaa;bbb}} and     equation~\ref{\variation{2}{aaa;bbb}}, I get an error message.          \end{document}      I have the same error message with all other proposed solutions. Is it possible to redefine the command `\variation` in such a way to it works correctly with `\ref` and with `\getrefnumber`?


title: how to use graphicspath?

text: I have a picture in my desktop, how can i use it by set graphicspath? I checked some examples, still no idea. Below is an example, but it compile error               \graphicspath{{C:/}{Users/}{Me/}{Desktop/}}     \begin{figure}[tbh]     \centering     \includegraphics[]{f6f2a0b.jpg} %     \caption{blablaballla.}     \label{fig:SM}     \end{figure}      ![enter image description here](http://i.stack.imgur.com/k2wzJ.jpg)


title: section title and page number overlapping in heading; fancyhdr

text: I have set the headings to show the section number and name on the left side of the page, and the page number on the right. This works fine for most section names, but one particular one is a little long, but not long enough (it seems): it just overlaps the page number, but not enough to make LaTeX wrap automatically. (I have a longer heading and LaTeX notices this and does the right thing.) I changed the section name to               \section[really long section\\name]{really long section name}      which works in the header fine, but (obviously) also makes a newline in the TOC. The section name fits the TOC fine, so: **Is it possible to force a newline in the header, but not the TOC entry?** This is how my preamble looks:               \usepackage{fancyhdr}     \pagestyle{fancy}          % with this we ensure that the Chapter and Section     % headings are in lowercase     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}}          \fancyhf{}                              % delete the current header and footer     \fancyhead[LO]{\textbf{\rightmark}}     \fancyhead[RO]{\textbf{\thepage}}          \renewcommand{\headrulewidth}{0pt}          \fancypagestyle{plain}{     \fancyhead{}                            % get rid of the headers on plain pages     \renewcommand{\headrulewidth}{0pt}      % and the line     \fancyfoot[R]{\textbf{\thepage}}     }