title: Vertical space in TOC (references entry)

text: The references entry has a vertical space in the TOC page, something like that ![That's the output](http://i.stack.imgur.com/ZX9Bp.jpg) How could I remove this space and make the references section just like a chapter in the TOC?? I'm using the memoir classes and have tried everything to solve this problem. Edit: Here a MWE                \documentclass[         % -- opções da classe memoir --         12pt,               % tamanho da fonte         openright,          % capítulos começam em pág ímpar (insere página vazia caso preciso)         oneside,            % para impressão em verso e anverso. Oposto a oneside         a4paper,            % tamanho do papel.          % -- opções da classe abntex2 -         sumario=tradicional, % o padrão é sumario=abnt-6027-2012         chapter=TITLE,      % títulos de capítulos convertidos em letras maiúsculas         section=title,      % títulos de seções convertidos em letras maiúsculas         subsection=title,   % títulos de subseções convertidos em letras maiúsculas         %subsubsection=TITLE,% títulos de subsubseções convertidos em letras maiúsculas         % -- opções do pacote babel --         english,            % idioma adicional para hifenização         french,             % idioma adicional para hifenização         spanish,            % idioma adicional para hifenização         brazil,             % o último idioma é o principal do documento         ]{abntex2}               \usepackage{cmap}               % Mapear caracteres especiais no PDF     \usepackage[T1]{fontenc}        % Selecao de codigos de fonte.     \usepackage[utf8]{inputenc}     % Codificacao do documento (conversão automática dos acentos)     \usepackage{lastpage}           % Usado pela Ficha catalográfica     \usepackage{indentfirst}        % Indenta o primeiro parágrafo de cada seção.     \usepackage{color}              % Controle das cores     \usepackage{graphicx}           % Inclusão de gráficos     \usepackage{amssymb,amsmath}     \usepackage{multirow}     \usepackage{bigstrut}     \usepackage{array}     \usepackage{longtable}     \usepackage{tocloft}               %%Alteração da fonte para helvetica (onde originou a Arial)     \usepackage{helvet}     \renewcommand{\familydefault}{\sfdefault}          %     % ---          \DisemulatePackage{tocbibind}     \let\bibsection\relax     \usepackage[nottoc,notlof,notlot,numbib]{tocbibind}                         % ---     % Pacotes adicionais, usados apenas no âmbito do Modelo Canônico do abnteX2     % ---     \usepackage{lipsum}             % para geração de dummy text     % ---          % ---     % Pacotes de citações     % ---     \usepackage[brazilian,hyperpageref]{backref}     % Paginas com as citações na bibl     \usepackage[alf]{abntex2cite}   % Citações padrão ABNT, alf=nome do autor, num=numerica     \citeoption{abnt-etal-list=3} % o comando "abnt-etal-list=0" faz com que o et-al para quando tem mais de 3 autores não apareça e todos os autores aparecam abreviadodos, pag13 do manual do bibtex          \titulo{TITLE}     \autor{AUTHOR}     \local{VR}     \data{2014}     \orientador{DR COOPER}     %\coorientador{Equipe \abnTeX}     \instituicao{%             OSW             \par             CEN             \par             ELECTRICAL ENG.             \par             FINAL}     \tipotrabalho{FINAL}     \preambulo{TEXT FINAL}     % ---               % ---     % Configurações de aparência do PDF final          % alterando o aspecto da cor azul     \definecolor{blue}{RGB}{41,5,195}          % informações do PDF     \makeatletter     \hypersetup{             %pagebackref=true,             pdftitle={\@title},              pdfauthor={\@author},             pdfsubject={\imprimirpreambulo},             pdfcreator={LaTeX with abnTeX2},             pdfkeywords={abnt}{latex}{abntex}{abntex2}{trabalho acadêmico},              colorlinks=true,            % false: boxed links; true: colored links             linkcolor=blue,             % color of internal links             citecolor=blue,             % color of links to bibliography             filecolor=magenta,              % color of file links             urlcolor=blue,             bookmarksdepth=4     }     \makeatother     % ---           % ---     % compila o indice     % ---     \makeindex     % ---               %%%%%%%%%%%%%%%%%%%     %% ATENCAO, DENTRO DO ARQUIVO CONFIGURACOES.STY ESTA TODA A PARTE DE FORMATAÇÃO PARA PESQUISA     %\usepackage{configuracoes}     %%%%%%%%%%%%%%%%%%%               % ----     % Início do documento     % ----     \begin{document}          % Retira espaço extra obsoleto entre as frases.     \frenchspacing           % ----------------------------------------------------------     % ELEMENTOS PRÉ-TEXTUAIS     % ----------------------------------------------------------     \pretextual          % ---     % Capa     % ---     \imprimircapa     % ---               \imprimirfolhaderosto*               \renewcommand{\contentsname}{\bfseries REFERENCES}     \renewcommand*{\cftchapterdotsep}{\cftdotsep} %DOTS     \pdfbookmark[0]{\contentsname}{toc}     \tableofcontents*     \cleardoublepage     % ---          % ---     % inserir lista de tabelas     % ---     \renewcommand{\listtablename}{\bfseries TABLES}     %\pdfbookmark[0]{\listtablename}{lot}     \listoftables*     \cleardoublepage     % ---          % ---     % inserir lista de ilustrações     % ---     \renewcommand{\listfigurename}{\bfseries FIGURES}     %\pdfbookmark[0]{\listfigurename}{lof}     \listoffigures*     \cleardoublepage     % ---               \textual     \pagestyle{simple}               \chapter{CHAPTER 1}{\label{intro}}          \chapter{CHAPTER 2}               \chapter{CHAPTER 3}          \chapter{CHAPTER 4}               \chapter{CHAPTER 5}          \chapter{CHAPTER 6}     \begin{itemize}         \item item 1         \item item 2         \item item 3     \end{itemize}          \chapter{CHAPTER 7}               \chapter{CHAPTER 8}                    \cite{balanco}     \cite{projecao}          \chapter{CHAPTER 1}          \cite{evolucao}          \section{Final}     \cite{cabine}          \chapter{COM}     \cite{trafoweg}          \cite{disjuntoralta}          \chapter{CONCLUSÃO}     teste               \postextual               \renewcommand{\bibname}{\textbf{References}}     \bibliography{abntex2-modelo-references}                    \end{document}


title: Cross reference in tex code in LyX

text: I'm working with LyX. Do you know how to apply cross reference when using "Tex code" option in LyX? That's the example of what I'm writing in Tex code:               \begin{table}[htbp]     \begin{threeparttable}     \caption{Title}\label{...}     \estwide{myfile.tex}{2}{c}     \end{threeparttable}     \end{table}      Where I should put the label in this case so that cross reference option can work? I hope the question is clear...thank you for your help!


title: Use variable with preamble

text: In my research, I need to write posters occasionally (with beamer). Can I define something like this in a different file (as preamble.tex, with other things)                \documentclass{beamer}       \begin{minipage}{0.95\textwidth}         \Title{           \begin{center}             Variable_Title of the poster           \end{center}         }         \Huge{           \begin{center}             Variable_Author of the poster           \end{center}         }         \LARGE{           \begin{center}             Variable_Affiliation           \end{center}         }       \end{minipage}      And then in main tex,               \input{preamble}     \begin{document}     value of title; value of author, value of affiliation etc?     \end{document}      Any idea? I am bit sceptic, as many things are going even before \begin{documents} and not sure, if we can add such "variables". Looking for ideas.


title: Entire document typed in monospace font

text: I want to put an entire document into monospace font for various reasons. This is nominally fairly easy; you can say `\renewcommand{\familydefault}{\ttdefault}`. However, there at least two problems with this approach (and possibly more). Thus, my question is really three separate ones:   1. So far, I'm having a problem with the spaces not working as they should; this seems to be fixed by `\obeyspaces`, but I am unsure of how well this really works. The only references to it I could find were on this site, and they didn't really explain that command well. Could you please provide a reference for this or at least explain what the command does and what its limitations are?   2. My other problem is that sometimes LaTeX generates symbols (such as smart quotes), and these do not obey the monotype spacing. LaTeX even seems to generate these when the symbols are in the font used. Is there any way of finding out when this happens, and preferrably of telling LaTeX to use existing characters when possible? Update: This is not a problem at all; see below.   3. I have found these by myself, but it seems quite likely that there are other problems as well. Are there other things I should look out for, like accented characters? Bold seems to work correctly (at least in the Courier font), but will all such formatting? Update: In case it is relevant (which, now that I think of it, it almost certainly is), I am using XeTeX and fontspec. I would prefer to keep this setup, but would be open to not using fontspec or to using pdflatex instead. Update 2: The "smart quotes" problem was actually a problem with spaces after punctuation. I turned on French spacing, but this just emphasizes the need for part three of my question.


title: greek encodings under lyx

text: In my newly installed linux machine (Fedora 19), editing a formerly working document under lyx, I get:               Package fontenc Error: Encoding file 'lgrenc.def' not found      and in fact I see that the dir /usr/share/texlive/texmf-dist/tex/latex/greek- fontenc/ is empty But installing it by _yum install yum install texlive-greek-fontenc.noarch_ , (and calling texhash, and doing reconfigure&exit&restart in lyx), although I now have the lgrenc.def file, the error becomes:                       LaTeX error: this NFSS system isnt set up properly         \begin{document}         For encoding scheme LGR the defaults cmr/m/n do not form a valid font shape     The system maintainer forgot to specify a suitable substitution font shape usin     g the DeclareErrorFont command      followed by many               corrupted NFSS tables      any hint?


title: Rotated figures and tables with xelatex in PoD book

text: We produced several Print on Demand books and the printed copies have the pages with sideways figures rotated: ![](http://i.stack.imgur.com/NkYMZ.jpg) This is the book. The figure is on page 5. I know about the auto-rotate option, but this does not seem to be the problem here since all the figures are printed correctly on my printers and since they are displayed correctly without rotating anything. So, is it just the printer setup of the PoD provider? Anything we can do? After all, PDF stands for **Portable Document Format**.


title: Table of contents looks bad with package chngcntr

text: I'm using the package "chngcntr" to restart the chapter count in each part of my work. It's working just fine. However, in the table of contents, the chapters and all other sections numbers overlap the text. It's look awful. Does anyone knows how to solve this problem? Thank you, Pedro


title: Colored margin with vertical text

text: What I'd like to reproduce on LaTeX can be seen on the picture below. I am writing my master thesis (book style) and I'd like to add a colored margin on every page (on the right for the right pages and on the left for the left pages) with the chapter name written vertically in it as well as the page number. I didn't find any solution on Google so your help is very welcome. ![What I'd like to reproduce](http://i.stack.imgur.com/a5DBA.png) # Edit after Gonzalo Medina's response (see below) Here is my code               % !TEX encoding = IsoLatin     \documentclass[11pt]{book}          \usepackage[latin1]{inputenc}     \usepackage[francais]{babel}     \usepackage[T1]{fontenc}     \usepackage[svgnames]{xcolor}     \usepackage{longtable}     \usepackage{eurosym}     \usepackage{caption}     \usepackage{longtable}     \usepackage{float}     \usepackage{placeins}          \usepackage{lipsum}          \setlength\belowcaptionskip{1.5ex} % Set the length of skip below the caption               \usepackage{chngpage} %Allows for temporary adjustment of side margins when the tables are to wide               % Just makes the table prettier (see \toprule, \bottomrule, etc. commands below)     \usepackage{booktabs}     \usepackage{multirow} % multirows in tables          % Dimensions of the page     \usepackage{graphicx}     \usepackage{fancyhdr}     \usepackage[papersize={210mm,210mm},top=1.5cm, bottom=1.5cm, left=4cm, right=3cm]{geometry}     \usepackage{placeins}     \usepackage{listings}     \usepackage{subfigure}          % For the lateral stripe      \usepackage{textcase}     \usepackage{emptypage}     \usepackage{tikz}               \usepackage{colortbl,hhline}               \renewcommand{\thesubsubsection}{\thesubsection .\alph{subsubsection}}          % ========== Table of contents ==========      \usepackage{hyperref}     \hypersetup{         colorlinks, % emp?É¬É?Ç¬©cher latex de colorer les liens         citecolor=black,         filecolor=black,         linkcolor=black, % couleur des liens dans la table des matières         urlcolor=blue     }          % Dots in the TOC     \usepackage{tocloft}     \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % Ligne of dots in the TOC     \addto\captionsfrench{\def\tablename{Tableau}}          \usepackage{tikz}     \usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings}     \tikzset{every picture/.style={execute at begin picture={        \shorthandoff{:;!?};}     }}          % Give the same layout than the chapters to the TOC       \makeatletter     \def\@cftmaketoctitle{\chapter*{\contentsname}}     \makeatother     %___________________________________________          % ========== No number to the "part" pages ==========     \makeatletter     \renewcommand\part{%       \if@openright         \cleardoublepage       \else         \clearpage       \fi       \thispagestyle{empty}%       \if@twocolumn         \onecolumn         \@tempswatrue       \else         \@tempswafalse       \fi       \null\vfil       \secdef\@part\@spart}     \makeatother     %___________________________________________               % ========== Layout of the chapters ==========          \makeatletter     \def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}     % ----- Case without "\chapter{}" -----     \def\@makechapterhead#1{%       \newpage        \mbox{~}            \vfill %         {\parindent \z@ \reset@font                 \scshape \@chapapp{} \thechapter             \par\nobreak             \interlinepenalty\@M         \huge \bfseries #1\par\nobreak         %\vspace*{1\p@}%         \color{orange}{\hrulefill}         \par\nobreak         %\vskip 100\p@         \thispagestyle{empty}       }       % Vertical stripe       \begin{tikzpicture}[remember picture,overlay]     \fill[orange]       (current page.north east)         rectangle       ([xshift=-\StripeWd]current page.south east);     \node[       inner sep=0pt,       anchor=north west,       font=\ChapterFont,       rotate=-90     ]       at ([xshift=-0.4\StripeWd,yshift=-\ChapterShift]current page.north east)       {\leftmark};     \node[       inner sep=0pt,       anchor=north,       font=\PageFont,     ]       at ([xshift=-0.5\StripeWd,yshift=\PageShift]current page.south east)       {\thepage};     \end{tikzpicture}%         \newpage     }          % ----- Case with "\chapter*{}" -----     \def\@makeschapterhead#1{%       \newpage        \mbox{~}            \vfill %         {\parindent \z@ \reset@font                 \scshape \vphantom{\@chapapp{} \thechapter}             \par\nobreak             \interlinepenalty\@M         \huge \bfseries #1\par\nobreak         %\vspace*{1\p@}%         \color{orange}{\hrulefill}         \par\nobreak         %\vskip 100\p@       }     % Vertical stripe       \begin{tikzpicture}[remember picture,overlay]     \fill[orange]       (current page.north east)         rectangle       ([xshift=-\StripeWd]current page.south east);     \node[       inner sep=0pt,       anchor=north west,       font=\ChapterFont,       rotate=-90     ]       at ([xshift=-0.4\StripeWd,yshift=-\ChapterShift]current page.north east)       {\leftmark};     \node[       inner sep=0pt,       anchor=north,       font=\PageFont,     ]       at ([xshift=-0.5\StripeWd,yshift=\PageShift]current page.south east)       {\thepage};     \end{tikzpicture}%         \thispagestyle{empty}         \newpage     }          %___________________________________________          % ========== Vertical stripe to every page ==========     % Vertical stripe to every page of a chapter except the first page, with the name of the chapter and the page number written in it     \pagestyle{fancy}          \newlength\ChapterShift     \newlength\PageShift     \newlength\StripeWd          % the vertical shift for the chapter title from the upper border of the page     \setlength\ChapterShift{2cm}     % the vertical shift for the page number from the lower border of the page     \setlength\PageShift{2cm}     % the width of the vertical stripe     \setlength\StripeWd{2cm}          % the color of the stripe     \colorlet{StripeColor}{gray!60}          % the font for chapter title in the stripe     \def\ChapterFont{\color{white}\Large\sffamily}     % the font for page number in the stripe     \def\PageFont{\color{white}\LARGE\bfseries}          \pagestyle{fancy}     \renewcommand\chaptermark[1]{\markboth{\MakeTextUppercase{#1}}{}}          \fancyhf{}     \renewcommand\headrulewidth{0pt}     \fancyhead[OR]{%     \begin{tikzpicture}[remember picture,overlay]     \fill[StripeColor]       (current page.north east)         rectangle       ([xshift=-\StripeWd]current page.south east);     \node[       inner sep=0pt,       anchor=north west,       font=\ChapterFont,       rotate=-90     ]       at ([xshift=-0.4\StripeWd,yshift=-\ChapterShift]current page.north east)       {\leftmark};     \node[       inner sep=0pt,       anchor=north,       font=\PageFont,     ]       at ([xshift=-0.5\StripeWd,yshift=\PageShift]current page.south east)       {\thepage};     \end{tikzpicture}%     }     \fancyhead[EL]{%     \begin{tikzpicture}[remember picture,overlay]     \fill[StripeColor]       (current page.north west)         rectangle       ([xshift=\StripeWd]current page.south west);     \node[       inner sep=0pt,       anchor=south east,       font=\ChapterFont,       rotate=90     ]       at ([xshift=0.6\StripeWd,yshift=-\ChapterShift]current page.north west)       {\leftmark};     \node[       inner sep=0pt,       anchor=north,       font=\PageFont,     ]       at ([xshift=0.5\StripeWd,yshift=\PageShift]current page.south west)       {\thepage};     \end{tikzpicture}%     }          %___________________________________________                         \begin{document}          \thispagestyle{empty}          \title{Title page}          \maketitle               \newpage     \hfill     \vfill     \hfill     \begin{tabular}{p{8cm} r}     Avant toute chose, je tiens à remercier sincèrement ma co-promotrice, Madame Bernadette Merenne; et mon promoteur, Monsieur Pierre Frankignoulle; pour leur disponibilité, leur implication, leurs nombreux conseils et l'attention qu'ils ont portés à ce travail. \newline          J'adresse également mes remerciements à toutes les personnes qui m'ont aidée de près ou de loin dans la réalisation de mes recherches et dans le travail d'analyse et de synthèse de mes différentes interviews.\\     \begin{itemize}     \item Monsieur Tielman et Madame Roosen pour leurs multiples interventions;     \item Les lecteurs de ce mémoire pour avoir accepté cette tâche;     \item Les nombreuses personnes interrogées pour leur implication et leur enthousiasme;     \item Ma famille et mes amis qui m'ont aidée et soutenue durant l'élaboration de ce travail.     \end{itemize}     \end{tabular}               \newpage      \tableofcontents       \markboth{TABLE DES MATIERES}{}          \newpage           \chapter*{Introduction}     \markboth{INTRODUCTION}{}     \section*{Motivation}          \lipsum[1-5]          \section*{Objectif}               \section*{Méthodologie}     \subsection*{Sujet}               \subsection*{Manière de procéder}                \newpage      \empty          \part{}     \chapter{Mobilité et aménagement, un problème croissant}          \section{Quelques définitions}          \subsection{Mobilité}               \subsection{Développement urbain}          \section{Un peu d'histoire}          Le couple agglomération - réseau viaire ne date pas d'aujourd'hui. Un grand nombre de villages et villes se sont développés à la croisée de voies de communication; points d'échanges marchands, culturels, intellectuels, etc.\\          Au cours du XIXe siècle, la création des tramways et la pénétration du chemin de fer favorisent un développement de l'espace urbain à proximité des points d'arrêts de leurs lignes respectives. L'espace public reste en lien avec l'échelle du piéton. La banlieue, qui était déjà présente avant l'ère de l'automobile, se déployait en effet en fonction des axes de transport en commun. La ville demeurait compacte; son étendue était plutôt réduite et sa fonction principalement un lieu d'habitation dense et multifonctionnel. \\          En Belgique, à la fin du XIXe siècle, les chemins de fer vicinaux ont encouragé la construction de logements à l'extérieur des grandes villes et ont densifié un grand nombre de petits villages existants.\\          Après la guerre, l'expansion de l'automobile a contribué à l'étalement des villes en favorisant la fragmentation  du territoire et à la dispersion des diverses activités. Ce phénomène donne naissance à la ville diffuse avec la création de tracés routiers conçus sur base d'une hiérarchisation des voies de circulation.\\          Rapidement des problèmes de congestion, d'encombrements vont apparaître. Une autre conséquence est la dispersion des habitants des villes dans l'espace rural et ce pour une question de bien-être. Actuellement, 75\% des Belges vivent dans un habitat de type individuel et seulement un tiers de ces habitations sont mitoyennes. {\footnotesize D'après "CéMathèques" dossier thématique n°20 (2007, 10)}\\          L'impact des réseaux routiers sur l'urbanisation des secteurs à proximité des grandes voies de communication est manifeste. Les terrains à proximité des voies d'accès des autoroutes sont très prisés. Dans ce contexte, pas d'alternatives possibles à la voiture puisqu'il n'y a pas ou peu d'autres modes de transport. Parallèlement, nous assistons à un immense gaspillage de l'espace. \\               \section{ A l'heure actuelle}               \section{  Vers des solutions}                    \subsection{  Spécificités du milieu rural}               \subsection{  En province de Luxembourg}               \section{ En guise de solution}          %---------------------------------------------------------------------------     % Chapitre 1 - Partie 2 !!!!!          \chapter{Marche-en-Famenne}               \section{Un peu d'histoire }          \subsection{Naissance de la ville }          \subsection{Période industrielle }                     \subsection{Période postindustrielle  }               \section{ Rénovation urbaine}          \section{ Rénovation et/ou revitalisation urbaine?}     \section{ Les acteurs du changement}          \section{ Le logement}          \section{ Aménagement du territoire et mobilité}          \section{La mobilité et le Boulevard urbain}     \label{mob et boule}          \subsection{La mobilité}     \subsection{Le Boulevard urbain (Ville de Marche, Fonds Européen de Développement Régional, Région wallonne, Maître d'ouvrage: M.E.T.)}     \section{ L'art et la nature en ville }     \section{ Une économie en croissance }     \section{ D'un point de vue architecture}     \section{ L'avenir de la ville}                    \section{ D'autres projets à venir}     \chapter{Conclusion}     \part{}          \chapter{Tableau}     \section{Lipsum}     \lipsum[1]          \end{document}      My problems (PDF):   * Vertical stripe on the second page. How can I delete a vertical stripe on a wanted page?   * Missing "Table des matières" in the vertial stripe on page 4.   * The name of the latest chapter appears, sometimes, on the first page of a new chapter (for ex. page 7). What I want: something like on pages 13-14.


title: How can I force long chapter names (including page numbers) to stay in the margins on the table of contents?

text: I'm somewhat new to LaTeX and have been tasked with satisfying some strict formatting requirements for this LaTeX document using a custom class. Currently, if there is a long chapter name (within a certain window around 1 line in length), it will show up on one line with the page number "pushed" outside the right margin. This isn't allowed, so how can I wrap these slightly-too-long chapter headings and avoid printing the page number outside the right margin? I've already tried `\setlength{\hfuzz}{0.0pt}` which I read about here but it sounds like that only applies to TeX, not LaTeX. In any case, it didn't work. **EDIT:** Here is an example that illustrates the problem. The class I'm using/writing is based on report, and report has exactly the same problem, viewable to all in the following document:               \documentclass{report}          \begin{document}          \tableofcontents          \chapter{xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx 1234567890}          Lorem ipsum dolor sit amet, consectetur adipiscing elit.          \chapter{xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx 1234567890}          Lorem ipsum dolor sit amet, consectetur adipiscing elit.          \chapter{xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx12345}          Lorem ipsum dolor sit amet, consectetur adipiscing elit.          \end{document}      When generated (with pdflatex in my case), the table of contents looks like this: ![heading omitted, table of contents shown](http://i.stack.imgur.com/9EHtv.png) As you can see, the first title is short enough that it is on one line. The second is long enough that it is broken into two lines. The third, however, is somewhere in between and only pushes the page number (4) outside the margins. The first and second page numbers are correctly within the margins. Given the strict margin requirements for these documents, I need the third title to break, probably with a hyphen, within the margin. I've seen this done, and in that case it broke right before where the page numbers are printed normall.


title: Using TIPA with fontspec

text: I'm trying to write a document that will contain characters in many different scripts (for which I am using fontspec and rendering with xelatex) and IPA symbols (for which I am using TIPA). Ordinarily, this works fine, however, I want to use slshape for my IPA symbols. If I take the manual's advice and use               \textipa{\slshape f@"nEtIks}      Or               \textipa{\textsl{f@"nEtIks}}      It fails with fontspec loaded. The document renders properly, but the IPA symbols appear upright. If I remove fontspec, then this works correctly, with the IPA symbols slanted. I tried getting fontspec to use tipasl12, but I could not find a way of allowing fontspec to use the font. However I named it, fontspec could not find the font. This is the LaTeX I have which produces the correct IPA symbols, but they appear upright:               \documentclass[12pt,openany]{book}     \pagestyle{plain}     \usepackage[margin=1.8cm]{geometry}     \geometry{a4paper}     \usepackage[parfill]{parskip}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{fontspec,xltxtra,xunicode}     \newfontfamily{\AR}[Script=Arabic]{Scheherazade}     \usepackage{tipa}          \begin{document}            \textipa{\slshape f@"nEtIks}          \end{document}      The following, however, works perfectly, but - obviously - would not allow me to use Arabic characters:               \documentclass[12pt,openany]{book}     \pagestyle{plain}     \usepackage[margin=1.8cm]{geometry}     \geometry{a4paper}     \usepackage[parfill]{parskip}     \usepackage{amsmath}     \usepackage{amssymb}     %\usepackage{fontspec,xltxtra,xunicode}     %\newfontfamily{\AR}[Script=Arabic]{Scheherazade}     \usepackage{tipa}          \begin{document}            \textipa{\slshape f@"nEtIks}          \end{document}


title: TIPA package causing error in xelatex: \sups already defined

text: I am trying to include some of my publications in my CV, which it typeset in LaTeX. I have a .bib file and I call the references using \bibverse{}. The problem is that I am unable to compile the document, and I believe this is happening because some of the articles have IPA symbols in the title. I get the following error:               Argument of \BR@@lbibitem has an extra }. [   \bibverse{article2012}]      The bib items do not have extra }'s. My initial guess was that the IPA symbols in the title were causing the problem, so I included the TIPA package, and got the following error:               LaTeX Error: Command \sups already defined. [  \lower.8ex\hbox{\super{#2}}}{#1}}}]      I am unclear on what \sups are and google searching has not been of any help. I am aware that TIPA should not be necessary when using XeLaTex. One possibility would be to not use TIPA in my .bib file, but the problem is that I use this file in many documents that are not compiled in xelatex so I prefer to keep it constant. This is what my preamble looks like:               \documentclass[11pt]{article}     \usepackage{url,fancyhdr}     \usepackage{fontspec}     \usepackage{xunicode}     \usepackage[usenames,dvipsnames]{color}     \usepackage{tipa}     \usepackage{geometry}     \usepackage{multicol}     \usepackage[spanish, english]{babel}     \usepackage{natbib}     \usepackage{bibentry}     \newcommand{\bibverse}[1]{\begin{verse} \bibentry{#1}. \end{verse}}          \begin{document}          \textteshlig     \bibverse{publication1}          \nobibliography*     \bibliographystyle{apalike}     \nobibliography{publicationsCV}     \end{document}      Edit: The reason I tried to compile the document using TIPA is because the .bib file includes ipa characters (i.e. \textteshlig). The reason for using the verse environment is to be able to insert full references (my publications) where need be. For example, my cv has a section for conference presentations. If I were to simply generate a bibliography I would have no control over what goes where. Here is an example of what the bib verse looks like in the .tex file.               \bibverse{publication1}      And here is an example of what it looks like in the .bib file.               @conference{publication1,     Author = {My Name},     Month = {April},     Organization = {In Selected Proceedings of the a Conference.},     Place = {University of Somewhere, City, State},     Publisher = {Some publisher},     Title = {Title with IPA symbols: /\textteshlig/},     Year = {2013}}      This works fine in other documents compiled with pdflatex.


title: Adjust spacing between text and horizontal rule

text: Please consider the following code:               \documentclass{amsart}     \usepackage{tikz}     \begin{document}     \noindent \tikz\draw(0,0)--(\textwidth,0);     Some Text. More Text. More Text. \newline     \noindent \tikz\draw(0,0)--(\textwidth,0);     \end{document}      Below is a relevant part of the output that will explain the question: ![Some Text](http://i.stack.imgur.com/Syfa8.png) # Question How to reduce the space between the text and the second thin line (the lower one), so that the space between them equals the space between the first thin line (the upper one) and the text?


title: How to solve Latex Error: DoxyEnumerate undefined

text: Using latex, I got this error message: > Latex Error: Environment DoxyEnumerate undefined. How can this be fixed? I checked the refman.tex file, \usepackage{doxygen} is there. Below is what refman.tex looks like:               \documentclass[a4paper]{book}       \usepackage{a4wide}       \usepackage{makeidx}       \usepackage{fancyhdr}       \usepackage{graphicx}       \usepackage{multicol}       \usepackage{float}       \usepackage{textcomp}       \usepackage{alltt}       \usepackage{times}       \ifx\pdfoutput\undefined       \usepackage[ps2pdf,                   pagebackref=true,                   colorlinks=true,                   linkcolor=blue                  ]{hyperref}       \usepackage{pspicture}       \else       \usepackage[pdftex,                   pagebackref=true,                   colorlinks=true,                   linkcolor=blue                  ]{hyperref}       \fi     \usepackage{doxygen}       \makeindex       \setcounter{tocdepth}{1}       \renewcommand{\footrulewidth}{0.4pt}       \begin{document}       \begin{titlepage}       \vspace*{7cm}       \begin{center}       {\Large  Users' Guide}\\       \vspace*{1cm}       {\large Version 3.0}\\       \vspace*{0.5cm}       {\small Copyright \copyright2009,sc Ltd.}\\       \end{center}       \end{titlepage}       \clearemptydoublepage       \pagenumbering{roman}       \tableofcontents       \clearemptydoublepage       \pagenumbering{arabic}       \chapter{Introduction }       \label{index}\hypertarget{index}{}\input{index} % here when comes to index.tex file, I got the error message.       In index.tex file: The full set of E-L functions are also available for programming. The tool kit is made up of two high-/level, shared libraries.               \begin{DoxyEnumerate}       \item e\-\_\-co       \item e\-\_\-co\-\_\-gra       \end{DoxyEnumerate}        Thanks.


title: Hiding section titles when the section is empty

text: I have created a macro like this:               \newcommand{\showsection}[2]{         \ifstrequal{#2}{}{}{\section{#1} #2}     }      It should be used like this in the document:               \showsection{Books}{         Do you know any good books?     }      If `#2` is empty, as in this case below, the section title to not be shown:               \showsection{Books}{          }      Unfortunately, with some macros inside, which should sometimes appear blank, somehow something is getting through. Perhaps it is an extra space? No text is visible. I have put `%` after every line of the macros which I placed inside. How can I get the section titles to disappear in this case?


title: Example of the use of :: in XY-pic

text: Could someone please provide an example of the use of ::, using sample code and coordinates and showing step-by step the changed content of p, c, origin, xbase, ybase, and any other pertinent variables. I can't seem to follow the example in the XY-pic reference (note 3d, page 7). Thanks & cheers


title: When specifying placement of floats, is the list prioritized?

text: When specifying a float's placement, e.g. `[htpb]`, is the order of the arguments specifying the priority of them? Example:               \begin{figure}[htpb]     \includegraphics[width=0.7\textwidth]{sampleImage}     \caption{Example caption}     \label{fig:sampleImage}      \end{figure}


title: Table, siunitx, render + sign

text: I have a table with number formatting through `siunitx`. In one column, I have values which show an improvement (or worsening) of one approach over another. To make it really clear, that I'm giving a delta there, I would like to explicitly show the + character for positive values (only for that one column). However, when I write it in my code, it is not rendered. Minimal working example:               \documentclass[ngerman]{scrbook}     \usepackage{siunitx}     \begin{document}     \begin{tabular}{l *{3}{S[table-format=2.2]}}         \hline         {\textbf{Data}} &         {\textbf{Baseline}} &         {\textbf{Magic}} &         {\textbf{$\Delta$}} \\ \hline         Data A & 34.56 & 45.67 & +11.11 \\ % + character not rendered :(         Data B & 76.54 & 98.76 & +22,22 \\         Data C & 45.67 & 34.56 & -11,11 \\ \hline     \end{tabular}     \end{document}      Gives: ![tableExample](http://i.stack.imgur.com/sWGra.png) Instead, I would like `+11.11` and `+22.22` in the last column. Any hints appreciated.


title: Source code for examples in TikZ/PGF manual

text: I am starting to learn TikZ. I was wondering if the source code for all examples in the TikZ manual (2.10 version) is available somewhere for download?


title: Change nameddest default name

text: Adobe defines parameters that allow you to open a PDF document with a command or URL that specifies exactly what to display (a named destination or specific page), and how to display it (using such characteristics as a specific view, scrollbars, bookmarks, annotations, or highlighting). My question is: Is there a way to change the pdf nameddest generated by a LyX document? The default parameters are Chapter.1, Chapter.2, Chapter.3... Section.1.1, Section.1.2, Section.3.2... for example, in the browser, to open a pdf document (generated by lyx or tex) on a determinated spot:               file:///C:/teste1.pdf#nameddest=chapter.4     file:///C:/teste1.pdf#nameddest=section.2.4      I need to change these default names, the document is always being updated so references to chapters and sections have a high turnover. Maybe a renew command, like `\renewcommand{\section}{}`?


title: Using \usepackage[all]{xy} and \xymatrix{} the arrowheads are not printing or viewing correctly

text: When I use `\usepackage[all]{xy}` and `\xymatrix{}` the arrowheads are not printing or viewing correctly. I have typeset for years and this problem only popped up when I changed operating systems a few months ago. If I use ps2pdf on my postscript file, the pdf file views and prints as it should. However I need a good postscript file too. I noticed a posting here about a file being missing from the package. Could that be causing my problem?


title: Is it possible to use Linux Libertine as a mathematical font?

text: I recently heard that there is a package called `unicode-math` that makes it possible to use an ordinary TTF/OTF font for mathematic typesetting. To what degree is that possible with Linux Libertine? I love this font, only the lack of math-support is a bit annoying, although euler is a good match IMHO.


title: Adding tables to list of tables with custom chapter breakdown

text: Running the code below is supposed to modify my list of tables to show the Chapter number above each set of tables related to that chapter.               \usepackage{etoolbox}          \preto\table{%       \ifnum\value{table}=0\addtocontents{lot}{{\bfseries Chapter \thechapter\vskip10pt}}\fi     }      However for some untold reason it is also adding the chapter number in sections where there are no tables. The output from running the code is show below:               Chapter 0     Chapter 0     Chapter 2       2.1  Table name                                 page number       2.2  Table name                                 page number     Chapter 3       3.1  Table name                                 page number     Chapter 6      Where there is no chapter 0 and chapter 6 is the last chapter. It displays the right number of tables from chapters 2 and 3 however I'm not sure why it also includes chapter 0 and 6 which have no tables. I have found the cause of the issue which is a table in the title page and in the appendices. Is there anyway to modify the above `\preto` statement to ignore certain `\include` files?


title: How to draw an arrow to a specified position in a frame and write some notes on the another end of arrow?

text: I would like to make an arrow and write some notes as shown below ![enter image description here](http://i.stack.imgur.com/wdReA.png) I tried with the following code               \documentclass{beamer} %     \usetheme{CambridgeUS}     \usepackage[latin1]{inputenc}     \usefonttheme{professionalfonts}     \usepackage{times}     \usepackage{tikz}     \usepackage{amsmath}     \usepackage{verbatim}     \usetikzlibrary{arrows,shapes}          \author{Author}     \title{Presentation title}          \begin{document}          \frame{     \ft{MATERIAL IN THE UNIVERSE}     \framesubtitle{Simulations need to account for the full cosmic matter-energy content}     \begin{block}{Main ingredients of the Universe:}     \begin{itemize}     \item Dark Energy \hspace{16.3 mm} $\Rightarrow $ expansion, $a(t)$     \item Dark Matter \hspace{16.3 mm} $\Rightarrow $ collisionless fluid, interacting \\ \hspace{68 mm} via gravity     \item Baryonic Matter (`gas') $\Rightarrow $ \tikz[baseline]{\node[fill=green!20,anchor=base] (t1){(magneto)hydrodynamic};},\\ \hspace{68 mm} self-gravity     \end{itemize}     \begin{itemize}[<+-| alert@+>]         \item that is actually not enough, we need to include sub-resolution physics (cooling, star formation, feedback processes, ...) and we would like to have radiative transport as well             \tikz[na] \node[coordinate] (n1) {};     \end{itemize}          \begin{tikzpicture}[overlay]             \path[->]<3-> (n1) edge [out=0, in=-90] (t1);     \end{tikzpicture}          \end{block}     }     \end{document}      But it is giving me the following error > ! Undefined control sequence. \beamer@doifinframe ...gas') $\Rightarrow $ > \tikz [baseline]{\node [fill=gre... l.185 } The control sequence at the end > of the top line of your error message was never \def'ed. If you have > misspelled it (e.g., `\hobx'), type`I' and the correct spelling (e.g., > `I\hbox'). Otherwise just continue, and I'll forget about whatever was > undefined. How can I solve this? What could be the problem? Is there any another easier method to do this? Thanks


title: Can't compile minimal document class?

text: I'm trying to compile a gnuplot epslatex output (which contains a .tex and .eps file). When I use               \documentclass{article}     \usepackage{graphicx}     \usepackage{epstopdf}     \begin{document}     \input{temp.tex}     \end{document}      I get the error               ) (C:\Users\Stefan\Documents\temp.tex           ! LaTeX Error: Can be used only in preamble.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.2 \documentclass                   {minimal}     ?       The temp.tex file output by gnuplot has documentclass{minimal}, so my document can't run minimal classes for some reason, why is that?


title: Wrap a wrapfigure and text by a border?

text: Is it possible to wrap a wrappicture with some text nearby by a frame? ![enter image description here](http://i.stack.imgur.com/HGknE.png)


title: Biblatex: how to "fullcite" the first occurences and "cite" the others

text: I am using `xelatex` and `biblatex` (backend `biber`), and I would like the `\cite` command to act as `\fullcite` whenever a reference is cited the first time. For instance, say my document is as follows:               This is the first time I cite \cite{book1},     and this is the second time I cite \cite{book1}.     This is the first time I cite \cite{book2}.      Then I would like it to be compiled as               This is the first time I cite \fullcite{book1},     and this is the second time I cite \cite{book1}.     This is the first time I cite \fullcite{book2}.      Possibly, I would prefer defining a new command, e.g. `\mycite`, so that I can still use the original `\cite`. Besides, how to tell `\fullcite` which fields to print, without interfering with how the references in the bibliography are shown?


title: Compiling a BIG matrix

text: I have a large matrix (say, 100x100) in LaTeX code and I want to view it in a human-readable form. Obviously compiling the TeX code (of the matrix and nothing else) is the best way (much better than copying to a spreadsheet). However, simply compiling into an A4 page doesn't work - only a small portion of the matrix is seen. So, is there a way around it? Maybe some definition of "infinite" paper size?


title: \int with \limits or without?

text: I read that I can use `\int_a^b` or `\int\limits_a^b`. With `\limits`, the equation looks more compact horizontally, but a little bigger vertically. Is there some design rule to it, or just personal preference?


title: How to apply the star (*) to only a few of the literates in listings environment?

text:
I have a problem with the definition of literate:               \lstset{       numbers=left, numberstyle=\footnotesize, stepnumber=1, numbersep=12pt,       frame=none, framesep=7pt,       breaklines=true,       basicstyle=\footnotesize,       showstringspaces=false,       upquote=true,       columns=fullflexible,       showstringspaces=false,       commentstyle=\color{gray}\upshape,       stringstyle=\color{black}\ttfamily,       keywordstyle=\color{darkblue},       captionpos=b,       extendedchars=true,       literate=       *{0}{{{\color{DarkGreen}0}}}1       {1}{{{\color{DarkGreen}1}}}1       {2}{{{\color{DarkGreen}2}}}1       {3}{{{\color{DarkGreen}3}}}1       {4}{{{\color{DarkGreen}4}}}1       {5}{{{\color{DarkGreen}5}}}1       {6}{{{\color{DarkGreen}6}}}1       {7}{{{\color{DarkGreen}7}}}1       {8}{{{\color{DarkGreen}8}}}1       {9}{{{\color{DarkGreen}9}}}1       {á}{{\'a}}1       {é}{{\'e}}1       {í}{{\'i}}1       {ó}{{\'o}}1       {ú}{{\'u}}1     }      The coloring of the numerals has the be ignored inside comments and strings (hence the * at the beginning) BUT the rules for the acute accents shouldn't. This is because source code with strings in different languages is included later with the `\lstinputlisting` option, and if the unicode characters are not changed, it crashes. So, does anyone know any way to apply the * to only part of the literate definitions? I tried to define them in the specific listing where the file is included, but a second literate eliminates the previous definitions. PS: I tried to change the encoding of the file with the `\inputencoding=utf8/latin1` as well, but it makes the compilation REALLY slow and returns a `Missing $ inserted.` error. **EDIT:** I'm adding a fully compilable MWE that I think represents the problem. The output highlights the colors according to the rules defined for Javascript. However, as I said before, in line 22 (see output) the numerals are in green, even being a comment. If the * is added before the numerals, the compilation crashes because the unicode characters inside the strings are not replaced. (NOTE: the javascript doesn't make any sense)               \documentclass[spanish, 11pt]{book}          \usepackage[utf8]{inputenc}     \usepackage[margin=2.5cm]{geometry}     \usepackage[spanish]{babel}     \usepackage{fancyhdr}     \usepackage{graphicx}     \usepackage[colorlinks=true, linkcolor=black, citecolor=black, urlcolor=blue]{hyperref}     \usepackage[format=hang]{caption}     \usepackage{appendix}     \usepackage{color}     \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \usepackage{listings}     \usepackage{listingsutf8}     \usepackage{float}     \usepackage{textcomp}     \usepackage{underscore}               \lstdefinelanguage{JavaScript}{       keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break, ajax, each, get, post},       keywordstyle=\color{darkblue}\bfseries,       keywords=[2]{class, export, boolean, throw, implements, import, this},       keywordstyle=[2]\color{darkgray}\bfseries,       identifierstyle=\color{black},       sensitive=false,       comment=[l]{//},       morecomment=[s]{/*}{*/},       commentstyle=\color{FireBrick}\ttfamily,       stringstyle=\color{DarkOrange}\ttfamily,       morestring=[b]',       morestring=[b]"     }          \lstdefinestyle{Javascript}{        language=JavaScript,        extendedchars=true,        basicstyle=\footnotesize,        showstringspaces=false,        showspaces=false,        tabsize=2,        breaklines=true,        showtabs=false,        captionpos=b,     }          \lstset{     language=Javascript,     style=Javascript,       numbers=left, numberstyle=\footnotesize, stepnumber=1, numbersep=12pt,       frame=none, framesep=7pt,       breaklines=true,       basicstyle=\footnotesize,       showstringspaces=false,       upquote=true,       columns=fullflexible,       showstringspaces=false,       keywordstyle=\color{DarkBlue},       captionpos=b,       extendedchars=true,       literate=       {0}{{{\color{DarkGreen}0}}}1       {1}{{{\color{DarkGreen}1}}}1       {2}{{{\color{DarkGreen}2}}}1       {3}{{{\color{DarkGreen}3}}}1       {4}{{{\color{DarkGreen}4}}}1       {5}{{{\color{DarkGreen}5}}}1       {6}{{{\color{DarkGreen}6}}}1       {7}{{{\color{DarkGreen}7}}}1       {8}{{{\color{DarkGreen}8}}}1       {9}{{{\color{DarkGreen}9}}}1       {á}{{\'a}}1        {é}{{\'e}}1       {í}{{\'i}}1       {ó}{{\'o}}1       {ú}{{\'u}}1       {Á}{{\'A}}1       {É}{{\'E}}1       {Í}{{\'I}}1       {Ó}{{\'O}}1       {Ú}{{\'U}}1       {¡}{{!`}}1       {¿}{{?`}}1       {·}{{$\cdot$}}1     }          \begin{document}     \begin{lstlisting}     function manageLanguage(text)     { // Language options in interface and errors         switch (language)         {     case "Welcome":             return '¡Bienvenido a '                  case "Browse":             return 'Navega por tu disco duro y selecciona lo(s) fichero(s) a visualizar o simplemente arrástralos al área del botón'                  case "Default":             return 'Ejemplo por Defecto'         }              case "Catalan":             switch (text)             {                  case "AlreadySession":             return 'Ja tens una sessió oberta. Sel·lecciona Nou al menú Fitxer per tancarla i apujar nous fitxers.'                  //var start = (Math.round(this.x*100)/100);                     if (start % intervals == 0)                              return "" + manageLanguage("Interval") +": [" + Math.round(this.x*10)/10 + " - " + Math.round((this.x+intervals)*10)/10+"]
" + manageLanguage(this.series.name) + ": " + this.y + " ";                     else return false; //"" + manageLanguage("Interval") +": [" + this.key + " - " + (this.key+intervals)+"]
" + manageLanguage(this.series.name) + ": " + this.y;     \end{lstlisting}          \end{document}


title: Kerning the table contents

text: I have the MWE as follows:               \documentclass[12pt]{article}     \usepackage{caption}     \captionsetup[table]{position=bottom}     \begin{document}     \begin{table}     \centering     \begin{tabular}{|r|l|}     \hline     \textbf{Paramagnetic metal}&\textbf{Magnetic susceptibility}\\     \hline     Tungsten&$6.8~\text{x}~10^{-5}$\\     \hline     Aluminium&$2.2~\text{x}~10^{-5}$\\     \hline     Lithium&$1.4~\text{x}~10^{-5}$\\     \hline     Magnesium&$1.2~\text{x}~10^{-5}$\\     \hline     Sodium&$0.72~\text{x}~10^{-5}$\\     \hline     \end{tabular}     \caption{Magnetic susceptibility  of some selected paramagnetic metals}     \end{table}     \end{document}      It produces this:   ![enter image description here](http://i.stack.imgur.com/ecFYa.png) Now I would like to add some space between the `\hline` and `-5` and as well maintain the table look as such (without making it lengthier (I mean visibly)). When I see my document, it feels like, -5 is touching the line, which I don't want


title: Clean way to plot a sequence of 3D objects from file

text: I want to plot a sequence of cones using tikz. My cones have arbitary coordinates that I calculated beforehand. For n cones, I have the coordinates of n+1 circles, each as a tuple of (depth, center, radius). The circles all lay in the X-Y plane. I have something like this in mind: ![enter image description here](http://i.stack.imgur.com/ZIbmt.pngh) I like the cross sections, as they provide an impression of depth. This is an illustration for an undergrad thesis, if you have suggestions feel free to comment. A cross section (in the X-Z plane) will be next to ist, with proper axes and units. This is just there to provide a proper 3D impression. * * * To explain a bit more: I don't want the code (after all, I did not give any coordinates..) but I saw this in the manual: > The second way of specifying points is to put them in an external file. > Currently, the only format that TikZ allows is the following: Each line of > the file should contain one line starting with two numbers, separated by a > space. Anything following the two numbers on the line is ignored. Now I would like to read arbitrary data from file. Something like (depth, center_x, center_y, radius) or so, whatever is easiest to read by tikz. I have not done this before and would be particularly interested in getting the values from a file into the foreach loop if tikz. I think I can handle the actual plotting from there.


title: How to insert the author of a quotation using natbib and lyx?

text: Hello all: have a small issue, (btw, i am quite new to LaTeX, so please be gentle :)) When I create a quote in lyx and add a reference to it:               % Preview source code for paragraph 52          \begin{quote}     ``A software bug is the common term used to describe an error, flaw,     mistake, failure, or fault in a computer program or system that produces     an incorrect or unexpected result, or causes it to behave in unintended     ways.''\citet*{WIKIPEDIA:2012:SoftwareBug}     \end{quote}      I expect it to generate the quote with the **(author?)** filled in from the bibliography entry. The bibliography entry definitely has the author field filled out. However I keep on getting this: ![Rendered with \(author?\)](http://i.stack.imgur.com/rQCFY.jpg) I am using the article(ams) layout. What could I be doing wrong? Am I missing how authors are pulled out? Any help with this would be greatly appreciated. The BibTex for the citation is:               @url{WIKIPEDIA:2012:SoftwareBug,         Author = {WikiPedia},         Date-Added = {2012-01-05 05:31:03 +0000},         Date-Modified = {2012-01-05 07:13:51 +0000},         Howpublished = {Internet},         Journal = {Wikipedia},         Keywords = {Software Bug},         Lastchecked = {January 1, 2012},         Local-Url = {http://en.wikipedia.org/wiki/Software_bug},         Month = {January},         Rating = {4},         Read = {1},         Title = {Software Bug},         Url = {http://en.wikipedia.org/wiki/Software_bug},         Urldate = {2012},         Year = {2012}}


title: Biblatex and apa style: reviewauthor undefined warning

text: I get the warning,               Package biblatex warning: Macro 'reviewauthor' undefined      when running the following,               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}         @Book{elvis,         author = "Elvis Presley",         title = "Turn Me One More Time",         publisher = "Jail House Books",         year = 1963,     }     \end{filecontents}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[style=apa,backend=biber]{biblatex}     \DeclareLanguageMapping{american}{american-apa}     \addbibresource{\jobname.bib}          \begin{document}     Here is a citation \textcite{elvis}          \printbibliography     \end{document}      When using, say `style=authoryear` there's no warning. Now this doesn't seem to cause any untoward effects yet but I hate warnings since they have a habit of coming back and haunting you later. Any ideas what this is about?


title: Implementing line-based corporate design in LaTeX

text: I would like to implement a line-based corporate design in LaTeX. This question is kind of a follow-up question to my earlier question How to write a report template to match corporate design. I have looked into the proposed complex report template Reports of the US Army Corps of Engineers and found it very useful. However there are some questions remaining. **This is how the page should look like** The logo is on every page, the header section containing, dates, project information, adresses, etc. should only be on the very first page. I thought that maybe this would be something to define a new environment for. The horizontal line following the header section should float with the length of the header. The footer is different for the first page and can be taller for the first page as well, because there is a lot of information on the first page on it. I am not sure if one should implement the first page as a title page, because I would like to have the option for lager reports to create a different, more decorative title page with logos, etc. So my question is: how would one generate these lines so that they are on every page and not interfere with the tex? I saw in question Creating simple frames how frames are done, and that seems similar to my problem. However I do not want to reproduce my line-drawing code on every new page. Is there any general advice where to start? Should one implement it pure TeX- or LaTeX-based? Is there a good tutorial starting programming TeX or LaTeX? I have been a LaTeX user for years and wrote my PhD thesis with it, but I have only used it, loaded some packages, etc., never wrote more elaborate things like that. ![Desired page layout](http://i.stack.imgur.com/NFhsQ.png)


title: Can somebody explain what the components of \ProvidesPackageRCS are for?

text: I aim to create some .sty files for themes that I need to distribute to colleagues. I'm using a standard .sty file as a template, and I've noticed that the command               \ProvidesPackageRCS $Header: path/filename.sty, v (what might be hex) (date) (time) (a username?) $      if nothing else, raises a warning if the file name in the header doesn't match the actual file name. It appears that I can't compile if the `,v`, hex string, or date is missing. I can put in my own date, but does it matter what hex- looking string I use? EDIT: I presume we all have an example of one that works normally, wherever you installed Beamer, perhaps `/usr/share/texmf/tex/latex/beamer/themes/theme/beamerthemeAnnArbor.sty` on a *nix system. There, the command reads               \ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeAnnArbor.sty,v 1.4 2007/01/28 20:48:30 tantau Exp $      and when I copy that file and edit it to say               \ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeannarbor.sty,v 1.4 2007/01/28 20:48:30 tantau Exp $      it compiles but gives a warning, and with something like               \ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeAnnArbor.sty,v 1.4 20:48:30 tantau Exp $      it doesn't compile because of a runaway argument. But since the document compiles if the command is left out entirely, I think I'm going to go that route. I'm not using version control or distributing this en masse.


title: appendices reference with varioref

text: I am using the appendices and the varioref package to refer at them. The code for the appendices is the following:               \documentclass{book}         \begin{document}         \begin{appendices}         \appendixpage         \noappendicestocpagenum         \addappheadtotoc              \chapter[MATLAB codes]{List of MATLAB codes} \label{app:MATLAB}              \begin{lstlisting} [language=Matlab, caption=Reconstruction function., label=code:reconstruction]              some text              \end{lstlsiting}         \end{appendices}         \end{document}      when i quote them in the text i do it this way:               In appendix \vref{app:MATLAB} we have the code \vref{code:reconstruction}      the results are strange, like:"In the appendix chapter A we have the code ?? A.1 on page 121". Is it normal? I am using (in this order) these packages:               \usepackage{varioref}     \usepackage{hyperref}     \usepackage{cleveref}      Thank you in advance.


title: How can I do this?

text: How can I do this?![enter image description here](http://i.stack.imgur.com/rwbMa.jpg) Tried using% \ begin {tabbing} but o'que more than displeased was the reticence.


title: TeXStudio doesn't recognize some commands

text: I'm starting to use TeXStudio. I'm having some issues, for example with               \begin{align*}     \sqrt[n]{a}^2-\sqrt[n]{ab}&=m\sqrt[n]{a}\\     \end{align*}      When i put the point on `align*` i get a small message unrecognized command, when it is in `\sqrt` or `^` i get the message math command outside math env, and something similar happens with `&` when it gives me the message tabular command outside tabular env. These commands are highlighted with an orange background.   I have similar mistakes with `\eqref`,`\implies`. Some commands as `\title`,`\author` or `\sqrt`(when it is between dollar signs) don't present any problem. When i build the PDF, i have no problems at all and it gives me the desired result.   I'd like that TeXStudio recognize these commands


title: Removing spaces between colored rows

text: I have a small tex document below, and I have tried various methods to remove the white spaces between rows, but haven't had any luck yet. Thanks! Here's the document:               \documentclass[a4paper,landscape]{article}     \usepackage{xcolor}     \usepackage{colortbl}     \usepackage{longtable}     \usepackage[left=0cm,top=0cm,right=0cm,bottom=0cm,nohead,nofoot]{geometry}     \usepackage[T1]{fontenc}     \usepackage[scaled]{beramono}     \begin{document}     \newcolumntype{C}{>{\color[HTML]{F8F8F8}\columncolor[HTML]{000000}}l}     \newcolumntype{N}{>{\color[HTML]{000000}\columncolor[HTML]{DDF0FF}}l}     \begin{longtable}{NC}     \texttt{   1 }&\mbox{\texttt{ {\color[HTML]{E28964}def}\hspace{1ex}{\color[HTML]{89BDFF}hello}}}\\     \texttt{   2 }&\mbox{\texttt{ \hspace{1ex}\hspace{1ex}puts\hspace{1ex}{\color[HTML]{65B042}{\color[HTML]{65B042}''}Hi\hspace{1ex}guys!{\color[HTML]{65B042}''}}}}\\     \texttt{   3 }&\mbox{\texttt{ {\color[HTML]{E28964}end}}}\\     \end{longtable}     \end{document}


title: Can I install fonts from CTAN using TeX Live Utility?

text: I have the latest version of MacTeX installed, and want to add fonts from CTAN (or other packages) that are not part of the MacTeX distribution to my system. When I specify CTAN in TeX Live Utility as the repository to download a font from (e.g, http://www.ctan.org/tex-archive/fonts/) I get an error: > "Repository has a different TeX Live version ... You need to switch > repositories in order to continue." Clearly I'm doing something wrong. Can I use TeX Live Utility in this way to install and manage fonts that are not part of the MacTeX distribution? If not, what are my options?


title: How to smooth the corner joining the end point of a Bezier curve and the start point of an elliptical arc?

text: The following figure shows the problem. The corners that are magnified should be smooth (not smooth defined in mathematics). I have changed `liftpen` from `0` to `2`, but the problem still exists. How to smooth the corners? ![enter image description here](http://i.stack.imgur.com/sSGje.png)               \documentclass{article}     \usepackage{pstricks-add}          \usepackage[active,tightpage]{preview}     \PreviewEnvironment{pspicture}     \PreviewBorder=15pt          \psset{unit=1.5cm}     \begin{document}     \begin{pspicture}[showgrid=false](-7,-5)(7,5)         \psellipse[fillstyle=solid,opacity=0.75,fillcolor=yellow](0,0)(7.0,4.3)         \psellipse[linewidth=0.5,dimen=middle](0,0)(6.5,3.8)         \def\left{             \pscustom*[fillstyle=solid,linewidth=0.1]{             \psline(0,2.7)(0.5,2.7)(1,3.25)             \psbezier(1.2,1.3)(1.3,1.0)(2.0,1.0)             \psbezier(3.0,1.0)(3.0,2.2)(2,3.1)             % How to smooth the corner between the previous path and the next path?             \psellipticarcn(0,0)(6.0,3.3){!3.1 2 atan}{!-2.8 3.2 atan}             \psbezier(4,-2)(4,0)(2.2,-1.8)             \psbezier(1.5,-1)(1,-1)(0,-3.2)         }}\left             \psscalebox{-1 1}{\left}     \end{pspicture}     \end{document}


title: How can I get author-year references in footnotes? (I.e. Harvard style but in footnotes, rather than in parentheses in the text)

text: I'm trying to configure `biblatex` to work so that I get Author-Year references in footnotes rather than in the bulk of the text. So what I want is: > Previous literature has suggested* and this is tue. > > *Bloggs, 2010, p. 10 I am currently using `biblatex` with the `apa` style. If there is a simple command to make this appear in footnotes (without having to include titles and publishing info) then it'd be great to know!


title: Compiling my own mktexfmt

text: I'm trying to compile my own version of pdftex which works fine. However, I must compile my own format file (fmt) for that. This should be done with `mktexfmt`. My problem is that I don't know where to find the souce code for `mktexfmt` (for Linux). Can anybody give me a hint where to find it? * * * OK, looks like I need a small crash course in the LaTeX architecture. This is what I understand now:   1. I don't need `mktexfmt` to create a format, I can use `pdftex -ini -etex`   2. A format is necessary to teach `pdftex` to understand latex   3. When I have "teached" `pdftex` how to understand latex I can parse latex files with `pdftex` and create pdf files from this Is this correct? If so, where do I get a .tex file to create a format? This ctan package looks good, but I cannot download it. Sorry for beeing so dumb, but until now I only created nice pdfs with latex but I never got that deep into its architecture. EDIT: I don't see the relevance of _why_ I want to do this. But OK it's because I want to port PDFTeX to Javascript using `emscripten`. Does this help?


title: Uneven display skips

text: Here is yet another attempt at this question. I've narrowed down a MWE:               \documentclass{article}     \usepackage{amsmath}     \usepackage[amsmath,standard,thmmarks]{ntheorem}          \begin{document}     Integer suscipit massa et nulla accumsan sed lacinia lacus tincidunt. Aenean nisi lacus, iaculis eu consequat in, fermentum eget urna. Proin augue lacus, euismod eu tempor vel, mollis eget quam. Donec vitae consequat nulla. In cursus sagittis diam, at tristique sem interdum pharetra.     \begin{theorem}       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.       \begin{proof}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.         \begin{equation*}           A = \{x_{i,j}: i = 1, \ldots, n; j = 1, \ldots, m\}         \end{equation*}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.       \end{proof}     \end{theorem}     Morbi gravida dapibus dapibus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris mauris diam, faucibus vitae pretium vitae, volutpat eget velit. Aenean quis vestibulum ante. Duis enim tortor, accumsan eget hendrerit non, pellentesque vel magna. Duis eros turpis, auctor vel aliquam vitae, congue ut dolor.     \begin{equation*}       A = \{x_{i,j}: i = 1, \ldots, n; j = 1, \ldots, m\}     \end{equation*}     Sed a libero mi. Donec cursus dignissim quam tincidunt fermentum. Curabitur ac libero leo, non sagittis nisi. Proin sodales tincidunt ante, in aliquam justo cursus in. Nunc tempus feugiat volutpat. Phasellus porttitor dolor elementum quam suscipit tempus. Donec posuere consectetur turpis sed congue. Sed et nunc dui, sit amet viverra erat. Ut malesuada molestie quam, porta fringilla libero consequat quis.     \begin{theorem}       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.       \begin{proof}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.         \begin{equation*}           A = \{x_{i,j}: i = 1, \ldots, n; j = 1, \ldots, m\}         \end{equation*}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.       \end{proof}     \end{theorem}     Nullam elementum libero ut erat suscipit cursus non eget nibh. In accumsan rhoncus scelerisque. Sed vel eros et lacus tincidunt laoreet. Etiam molestie metus id tortor euismod vitae bibendum nisi rhoncus.          Pellentesque nec gravida ligula. Curabitur nibh sem, porta in suscipit non, porttitor lobortis arcu. Sed imperdiet, nisi sit amet vehicula lobortis, eros urna aliquam magna, sed auctor sem dui nec turpis. Nulla facilisi. Nam a elit lacus. Etiam vel leo ligula. Donec lectus mi, tristique at lobortis id, viverra nec felis.     \begin{equation*}       Ax = b \quad\mbox{Uneven skips with equation* and thmmarks?}     \end{equation*}     Etiam vel felis at enim pulvinar lacinia lacinia quis ipsum. Etiam ac elementum tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque sit amet rhoncus tortor.     \begin{theorem}       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.       \begin{proof}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.         \begin{equation*}           Ax = b \quad\mbox{Uneven skips with equation* and thmmarks?}         \end{equation*}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec risus mi, pharetra eget sodales volutpat, aliquam eu metus. Aenean ultricies iaculis sapien, pretium lobortis ligula ultrices a.       \end{proof}     \end{theorem}          Nullam sollicitudin nisl ac metus malesuada fermentum. Mauris tellus arcu, porttitor et condimentum ut, commodo pellentesque justo. Nam rutrum, nunc non dictum placerat, dolor metus interdum dui, eu tincidunt libero mauris vel ante.     \begin{equation*}       A = \{x_{i,j}: i = 1, \ldots, n; j = 1, \ldots, m\}     \end{equation*}     Nunc placerat auctor odio, vel ullamcorper massa dapibus eu. Suspendisse luctus, erat at semper pulvinar, velit diam convallis metus, vitae aliquam nibh tortor vitae neque. Morbi venenatis eleifend sapien at pulvinar. Quisque urna leo, molestie ut consequat id, porta vitae neque. Praesent varius convallis justo id tincidunt. Duis nulla elit, euismod sit amet tincidunt ut, sodales eu felis. Phasellus rutrum bibendum urna sit amet iaculis.     \begin{equation*}       Ax = b \quad\mbox{Uneven skips with equation* and thmmarks?}     \end{equation*}     Nullam vel velit quis nibh volutpat ullamcorper. Pellentesque tempor turpis quis massa tincidunt imperdiet. Nam lobortis, justo quis mollis faucibus, erat enim lobortis massa, sagittis egestas lacus odio sed enim. Morbi pulvinar placerat sem, eget pulvinar risus hendrerit sit amet. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed elementum faucibus mi, eget euismod magna convallis vel. Fusce egestas posuere dignissim.     \end{document}      The uneven display skips arise with `ntheorem`'s automatic end mark placement, enabled using the `thmmarks` option. Three of the last four equations appear to be unevenly spaced in the resulting document. Here is an excerpt with the `thmmarks` option: ![enter image description here](http://i.stack.imgur.com/FSxVb.png) And without the `thmmarks` option: ![enter image description here](http://i.stack.imgur.com/6owFO.png)


title: Different column widths using multicol

text: Is it possible to specify different column widths in a `multicol` environment? For example, in a two column layout, can the left column be set to twice the width of the right column?


title: Page header becomes part of link when an \autoref hyperlink spans pages

text: I am using MikTeX 2.9 on Windows. I am using, among other packages, `hyperref` in my MASc thesis and I just noticed something strange. I have an `\autoref` to a table in a paragraph and the link spans pages. That is, the whole link is "Table 4.1", but "Ta-" is at the bottom of page 39 while "ble 4.1" is at the top of page 40. When this happens, the page header for page 40 (e.g. "Chapter 4. Blah blah blah 40") has a `hyperref` box around it and links to table 4.1, as do each of "Ta-" and "ble 4.1". Is this a known bug? I have done some quick searching on Google and on here but haven't come up with anything. I apologize that I don't have a minimum working example for you at the moment, I am trying to submit it this morning. If I have time I will add a MWE this evening.


title: How can I rotate a custom draw?

text: I have a custom command               \newcommand\windturbine[2][]{       \begin{scope}[shift={(#2)}]         \draw[#1] (0,0) ellipse (0.7cm and 0.1cm);         \draw[#1] (0.8,0) circle (0.1cm );         \draw[#1] (1.6,0) ellipse (0.7cm and 0.1cm);       \end{scope}     }      Lets draw two wind turbine               \begin{tikzpicture}            \windturbine[draw=black,fill=black, very thick]{0,0};         \windturbine[draw=black,fill=black, very thick]{0,7};          \end{tikzpicture}      I would like to rotate the first one with x degree and connect the two drawings with a line, how can I achieve that?


title: xelatex compilation error

text: I am using xelatex to compile a tex file. However, I got a strange problem, the log says:               ! This is a LaTeX bug: check coding! ! !     Command name `\font_set:Nnn' already defined!       Any hint to solve it? Thanks.


title: Alias for verbatim environment

text: I'm trying to create an alias for the verbatim environment like this: `\newcommand{\vb}[1]{\begin{verbatim} #1 \end{verbatim}}` So I can use it like this:                \vb{           word.       }      But when using it, I get this error:               ! Missing $ inserted.     <inserted text>                  $     l.93 \end{verbatim}      Where line 93 is the end of a verbatim environment I used after later down the file after closing the `\vb`. If I replace all `verbatim` environments with the `\vb` syntax, then I get this error:               Runaway argument?     zip([],B) = case ([],B) of ([],_) => [] | (_,[]) => [] | (x::L,y::R\ETC.     ! File ended while scanning use of \@xverbatim.     <inserted text>                  \par       So it seems like the `\vb` is not closing the environment correctly? How do I get this to work ? The end goal is to get a `\vb` command that I can use like I described above, and bonus points if I could indent the stuff in the `\vb` command by a few mm.


title: Macron in section heading merges into letter

text: I have a section heading that includes the word 'erōs'. I currently have a command mapped which replaces `\eros` with `er\=os`, thus printing the macron. The problem is that in the heading, which is bold, the macron is effectively swallowed up into the 'o'. Is there any way to print it a little higher? I am currently using `libertine` font, btw. edit - MWE:               \documentclass{article}     \usepackage{libertine}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{xspace}     \newcommand{\Macron}{Macr\=on\xspace}          \begin{document}     \section{\Macron Problem}     \end{document}


title: How to make a pagebreak that goes to the next double sided page?

text: I am writing a problem set for which the professor has mandated that each problem be submitted on a separate sheet (or sheets). To save some paper, I would like to print double-sided. Thus my question: Is there a way to make LaTeX automatically break to the next new _sheet_ of paper, so that in particular, whenever I page break it skips all the way to the next odd numbered page. E.g. breaking on page 1 should start again on page 3 (so that the backside of page 1 is empty), but breaking on page 4 should just skip to page 5, since that will be a new sheet anyway.


title: Align baseline in multicol

text: I'm using the `multicol` package and would like to align the baseline of the two columns. The simple use of a `\paragraph` heading seems to throw off the alignment, which can be pretty jarring visually. Is there any way to force the two columns to stay aligned with one another? For example, the following produces a document with two columns, which look nice except that the `\paragraph` headers on the right column aren't aligned with the text on the left:               \documentclass{article}          \usepackage{multicol}     \usepackage{lipsum}          \begin{document}          \begin{multicols}{2}     \paragraph{foo} \lipsum[1-2]     \paragraph{bar} \lipsum[4]     \paragraph{morebar} \lipsum[4]     \paragraph{baz} \lipsum[7-10]     \end{multicols}          \end{document}      Resulting in this: ![mis-aligned columns](http://i.stack.imgur.com/prhP2.png) (I'd like the "morebar" to align with "Mau-" or "rhoncus".)


title: tikz \foreach dynamic list with environment arguments

text: I'm making an `axis` environment that recieves 5 arguments (the first is optional and it's 1 by default). To make the x marks on the x axis I use               \foreach \x in {#2,...,#4}     {\ifthenelse{\x = 0}{}{\draw [shift={(\x,0)}] (0,1pt)--(0,-1pt);\draw (\x,0.5mm) node[anchor=north,font=\tiny] {$\x$};}}      and works perfect, but it's not flexible: it labels all integers between `#2` and `#4`; so i write this in an atempt to make it not label all the numbers:               \foreach \x in {#2,#2+#1,...,#4}%#1 is the optional argument and by default is 1.     {\ifthenelse{\x = 0}{}{\draw [shift={(\x,0)}] (0,1pt)--(0,-1pt);\draw (\x,0.5mm) node[anchor=north,font=\tiny] {$\x$};}}      but I get:               Missing = inserted for \ifnum."      I also tryed:               \foreach \x [evaluate=\x as \xeval using \evaluar{\x}] in {#2,#2+#1,...,#4}     {\ifthenelse{\x = 0}{}{\draw [shift={(\x,0)}] (0,1pt)--(0,-1pt);\draw (\x,0.5mm) node[anchor=north,font=\tiny] {$\x$};}}      where               \newcommand{\evaluar}[1]{\pgfmathparse{int(#1)} \pgfmathresult}      and getting:               Incomplete \iffalse; all text was ignored after line 121.      I tryed a lot of combinations but LaTeX always complains about something. Any idea of what can I do? Thank you. PD: I'm from Argentina, so sorry about my writing if I have some mistakes.


title: How to draw a bar chart from multiple measurements with mean and variance

text: I have a few hundred measurements in a simple CSV file. I want a bar chart which indicates mean and variance pretty much like this: ![Sample bar chart](http://i.stack.imgur.com/xJHIr.jpg) I've browsed various archives, such as the PFG plot gallery, but I couldn't find an example that matched the desired outcome. Imagine my data points to be:   * Drive 1     * A: 180, 190, 220, 210     * B: 190, 220, 210, 200     * C: 290, 320, 310, 300     * D: 250, 260, 270, 260     * E: 1250, 1060, 870, 1160   * Drive 2     * A: 170, 190, 200, 210     * B: 190, 230, 220, 200     * C: 280, 330, 320, 290     * D: 280, 260, 290, 290     * E: 1350, 1360, 970, 1260   * Drive 3     * A: 190, 180, 210, 200     * B: 180, 230, 210, 210     * C: 480, 430, 420, 490     * D: 290, 290, 270, 280     * E: 1550, 1560, 1270, 1560 How would I create a diagram that remotely looks like the one above? Solutions allowing me to provide data in a .csv file are preferred.


title: Glossary and picture?

text: Here my question: what would be the best in order to make a sort of glossary, with picture ? In fact, I've got make tools description, in one hand with text (nothing hard here), and, in the other hand, since it's better to have seen what it is, with picture of them. I was thinking of doing it with a glossary, but I'm not sure that's the best way to do. Does anyone have any of what (and how) I should do ?


title: Putting a citation in equation array

text: I want to cite a reference to where I got an equation from in the middle of bunch of equations that I have inside an `align*`. Here is the code I've tried:               \begin{align*}  q(x_1,&\dots x_n) \\       &\Downarrow \\     \Delta q&=\sqrt{\sideset{}{_i}\sum_1^n\bigg(\frac{\partial q}{\partial x_i}\bigg)^2(\Delta             x_i)^2.}\\     \begin{flushright}\cite{Cowell:2012}\end{flushright}\\     \text{Giving}, \\     \Delta(T^2) &=  \sqrt{\bigg(\frac{\partial T^2}{\partial T}\bigg)^2(\Delta T)^2}\\     \end{align*}`      If I remove the `\begin{flushright}` line it works so it's just when I try to add the citation in it wont work. If this makes sense I'd really appreciated help. I'm kinda new to this, this is the first proper thing I've written using LaTeX so I'm not really sure of what I'm doing yet, so if you spot anything else I'm doing wrong any help is appreciated.


title: Simple footer with fancyhdr and pagestyle fancy, article with frontmatter etc

text: I am trying to get a simple on every page but excluding title page. Now I only get footer in front matter and excluding title page. The main matter do not get footer. Edit: I want a simple footer (same footer) on every page except the title page. Abstract and table of contents, etc shall have roman numbers, the rest Arabic numbers. And I want to use headings to get chapter in top and subchapter when it is a subchapter. I shall look at KOMA-script and if I have to read The LaTeX Companion again. So right now you can wait with answers to I have tried some time. I am coming back with a solution in the weekend. Thanks everybody for the directions I got and for the editing of the code. Sorry for the confusing first post. I have some postoperative pain and health problem now. But I am feeling better for every day now.               \documentclass{article}     \usepackage{fancyhdr}     \fancyhead{}     \fancyfoot{}     \fancyfoot[LE, LO]{Footer}     \title{My awesome title}     \author{Myself}     \begin{document}     \pagestyle{fancy}     \maketitle     \thispagestyle{empty}     \newpage     \pagenumbering{roman}     \begin{abstract}     Hello world.     \end{abstract}     \newpage     \tableofcontents     \listoffigures     \newpage     \pagestyle{headings}     \fancyfoot{}     \newpage     \pagenumbering{arabic}     Foo bar baz.     \end{document}      ![output](http://i.stack.imgur.com/2ssWb.png) I think I shall use renew command after `\pagestyle{headings}` or something to get the footer in the main matter. But how?


title: How to customize the list of figure page from `.cls` file?

text: I have been preparing a `.cls` file modifying the `article.cls`. I need to customize the list of figure page of my document. The list of figure part of my `.cls` file is as follows:                   \newcommand\listoffigures{%         \if@twocolumn           \@restonecoltrue\onecolumn         \else           \@restonecolfalse         \fi         \chapter*{\listfigurename}%             \thispagestyle{plain}             \begin{flushright}                 {\bf\pagename}             \end{flushright}           \@mkboth{\MakeUppercase\listfigurename}%                   {\MakeUppercase\listfigurename}%         \@starttoc{lof}%         \if@restonecol\twocolumn\fi         }     \newcommand*\l@figure{\@dottedtocline{1}{-4.9em}{4.9em}}      When I use the                   \listoffigures      code to print the list of figure page, it produces it as follows:               1.1        Caption of Figure 1.1  .................. 12     1.2        Caption of Figure 1.2  .................. 17     2.1        Caption of Figure 2.1  .................. 25     2.2        Caption of Figure 2.2  .................. 26      But, the required list of figures page must be as follows:               Figure 1.1 Caption of Figure 1.1  .................. 12     Figure 1.2 Caption of Figure 1.2  .................. 17     Figure 2.1 Caption of Figure 2.1  .................. 25     Figure 2.2 Caption of Figure 2.2  .................. 26      For this, how can I modify the `.cls` file?


title: Looking for upright calligraphic L with little loop on top

text: I'm looking for a calligraphic / script letter L with a little loop on the top. `\mathcal{L}` from `amsfonts` doesn't have the little loop: ![enter image description here](http://i.stack.imgur.com/z43Mi.png) `\mathscr{L}` from `mathrsfs` has a loop, but it is too slanted for my taste: ![enter image description here](http://i.stack.imgur.com/kJshg.png) I'm looking for a version where the vertical line is very straight, and there is a (small) loop on the top. Can anyone recommend a package or font?


title: Differences between "xindy" and "makeindex"

text: I'd like to know which are the _essential differences_ between `makeindex` and `xindy` (or `texindy`) in this sense:   * What things can we do with `xindy` that we can not do with `makeindex`? or vice versa.   * What is the primary use of each one of them?   * Syntactic differences between their _style files_. (`.ist` vs `.xdy`)


title: Avoid already converted Figures in htlatex

text: I have found how do avoid already converted equation in this link: Avoid already converted equation in htlatex. How to do the same method in Figures Conversion? My MWE is:               \documentclass{book}     \usepackage{graphics}     \begin{document}          Sample Text here.          \begin{figure*}     \includegraphics{Figure1.pdf}     \caption{Figure Caption here.}     \end{figure*}          \begin{figure*}     \includegraphics{Fig2.pdf}     \caption{Figure Caption here.}     \end{figure*}     \end{document}


title: Roman page numbering for abstracts in report class problem

text: I am writing a document with class `report`. I want that the first pages i.e. Declaration, Abstract, Acknowledgements, Table of Contents, List of Figures and List of Tables have page numbering roman, and the main content has arabic page numbers. I am using this command to override the `\frontmatter` and `\mainmatter` commands provided for the book class.               \newcommand\frontmatter{%         \cleardoublepage       \@mainmatterfalse       \pagenumbering{roman}}     \newcommand\mainmatter{%         \cleardoublepage       \@mainmattertrue       \pagenumbering{arabic}}     \makeatother      This works for table of contents, list of figures and list of tables. however since abstract, acknowledgments and declaration are all defined with the following:               \renewcommand{\abstractname}{Name of this section}     \begin{abstract}          \end{abstract}      no page numbers are being displayed on these pages. I tried using `\thispagestyle{plain}` in these sections, but this caused each page to be numbered as i. and the counting from i. onwards start from toc. How can I start roman page numbering from the declaration onwards instead?


title: color of index in thesis is red

text: I really don't know why my index is red. I don't use color in any part of the code. Someone can help me?I have to finish it by tomorrow!!Thank you very much The code is:               \documentclass[12pt,a4paper,oneside,openright]{book}            \usepackage{packages} % inserisce tutti le macro necessarie per il                              % funzionamento          \usepackage{algorithm}     \usepackage{algpseudocode}     \usepackage{graphicx}     \usepackage{array}     \usepackage{amssymb}     \usepackage{booktabs}     \usepackage{subfloat}     \usepackage{subfig}     \usepackage{rotating}     \usepackage{amsthm}     \usepackage{caption}               \theoremstyle{plain}      \newtheorem{thm}{Teorema}[section]      \newtheorem{cor}[thm]{Corollario}      \newtheorem{lem}[thm]{Lemma}      \newtheorem{prop}[thm]{Proposizione}                \theoremstyle{definition}      \newtheorem{defn}{Definizione}[chapter]           \theoremstyle{remark}      \newtheorem{oss}{Osservazione}                \usepackage{amsmath}     \algdef{SE}[EVENT]{Event}{EndEvent}[1]{\textbf{upon event}\ #1\ \algorithmicdo}{\algorithmicend\ \textbf{event}}%     \algtext*{EndEvent}     \algdef{SE}[EVENT]{When}{EndWhen}[1]{\textbf{when}\ #1\ \algorithmicdo}{\algorithmicend\ \textbf{when}}%     \algtext*{EndWhen}          \setstretch{1.3}  %interlinea, mettere 1 per singola da usarsi per le bozze!!!          \begin{document}               \theoremstyle{definition}     \newtheorem{definizione}{Definizione}     \newtheorem{lemma}{Lemma}     \theoremstyle{plain}     \newtheorem{teorema}{Teorema}               % genera la prima pagina          \titlep          % indica l'inizio della parte introduttiva     \frontmatter     \color{black}        \input{ringraziamenti}        \tableofcontents        \listoffigures       %\listoftables     %   \listofalgorithms          \clearpage          % indica l'inizio della parte centrale     \mainmatter           \input{introd} % attenzione! guardare introd.tex per vedere come e' fatto         \input{cap2}         \input{cap3}         \input{cap4}         \input{cap5}         \input{cap6}          % da qui in poi \chapter genera un'appendice     %\appendix     %\renewcommand{\chaptermark}[1]{\markboth{{\appendixname}\ \thechapter.\hspace{1em}#1}{}}                %\input{app1}          \clearpage     \addcontentsline{toc}{chapter}{Bibliografia}     \begin{thebibliography}{9}          %\cfoot{\emph{Finito di stampare il \today\/ utilizzando \LaTeXe}}     \end{document}


title: Custom numbers for index

text: I need to make an index above formatted text of a law. However I dont need to reffer to page number but to the number of section (which is not allways sequential, because there could be holes and it could contain letters (e.g. § 15az). Therefore, if i had § 123x on page 15 which contains definition of the attorney, I want that "attorney 123x" would appear in the index instead of "attorney 15". Thanks


title: Extra blank page with Bayesian Analysis journal style file

text: See the following MWE, which uses the Bayesian Analysis journal style file..               \documentclass[bib]{ba}     \inserttype[ba0001]{article}     \begin{document}     \title[Short Version]{Long Version}     \author{\fnms{Faheem} \snm{Mitha}\ead[label=e1]{faheem@faheem.info}}          \maketitle     \begin{abstract}       foo     \end{abstract}     \end{document}      This generates a two page PDF for me. If I remove the blank line, or add a % on the blank line, this becomes one page. This seems like surprising behavior to me. Can anyone tell me if this is a bug, and if not, how should I work around it?


title: create intro thesis

text: I'm writing a thesis and I would create an intro that should go into table of contents. Any idea how to put it into table of contents? this is my code               \thispagestyle{empty}     {\Huge \textbf{Intro}}          \bigskip          \bigskip          \lipsum[1]      EDIT This is my table of contents Table of Contents Figures Tables Intro <\- Here where I want put my intro 1 Chapter 1 1.1 section


title: Large braces over several items in an itemize with text by the brace

text: This question is related to this question: Adding large brace next to body text, but is not a duplicate. I have an `itemize` in a beamer presentation. I want to put a brace over some of these items. So here's what I have so far:               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{decorations.pathreplacing,calc}     \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}     \begin{document}     \begin{frame}       \frametitle{Here is text}       \begin{itemize}[<+->]       \item A first item \tikzmark{topbrace}       \item Another item, also inside the brace \tikzmark{bottombrace}\tikzmark{right}       \item Outside the brace       \end{itemize}     \onslide<+->{     \begin{tikzpicture}[overlay, remember picture]     \draw [decoration={brace,amplitude=0.5em},decorate,ultra thick,black]      ($(right)!(topbrace.north)!($(right)-(0,1)$)$) --  ($(right)!(bottombrace.south)!($(right)-(0,1)$)$);     \end{tikzpicture}     }     \end{frame}     \end{document}      (needs compiling twice to get the right result). Incidentally, why is this? Is it something to do with the `remember picture` thing? I have two issues with this excellent solution: the spacing doesn't look right (I'd like the top of the brace to be higher), and I'd like to add text to the right of the brace (see picture). I can't quite fathom the complicated positioning commands used to add an extra node with text, or modify the spacing... ![where I want text](http://i.stack.imgur.com/SNPCq.png) What I'd really like from an answer to this question is an explanation of what the `!` and `$` are doing...


title: How can I create a brace spanning multiple lines on the right side of an itemized list?

text: I have an itemized list:               \begin{itemize}         \item Lorem         \item Ipsum         \item Sit         \item Dolor         \item Amet     \end{itemize}      I want to create an accolade on the right side of 'Lorem' and 'Ipsum', and add a bit of text at the point of the accolade. The level of this text should be between the first and the second line. How can I get this done? ![example](http://i.stack.imgur.com/iWl1P.jpg)


title: To have this kind of arrow thing between enumerate's items

text: I want this ![enter image description here](http://i.stack.imgur.com/IZUbU.png) **How can you make such an arrow for enumerate's items?**


title: Draw Lewis structures like a book

text: I want to draw a Lewis structure as in the picture. I tried to do with `chemfig` but does not perform the separation of the points and a minus in the superscript. ![Lewis structures](http://i.stack.imgur.com/NwKRA.jpg)


title: Issue with Caption template and Sigplan configuration

text: When trying to compile a shared tex document, I get the following error:               Package caption Warning: Unsupported document class (or package) detected,     (caption)                usage of the caption package is not recommended.     See the caption package documentation for explanation.          )          ! Package keyval Error: none undefined.          See the keyval package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.45 \DeclareCaptionType{copyrightbox}                                            % Workaround to fix caption package w...      The relevant lines appear to be the following: I have as yet been unable to find out the reason for this.               \documentclass[preprint,twocolumn,10pt]{sigplanconf}          % Subfigure/caption customization stuff     %\usepackage{subfigure}     \usepackage[labelfont=bf]{caption} % put Figure N in bold     \DeclareCaptionType{copyrightbox} % Workaround to fix caption package with SIGPLAN style     \usepackage{subcaption}      Any ideas? Thanks


title: Heights of elements and spaces (after, before)

text: I wish to know how to set the following:   * height of a text line in paragraph (is it fontsize?)   * height of space between text lines in paragraph (`\baselineskip` \- fontsize?)   * height of space before and after a paragraph   * height of a text line in section/chapter/part name   * height of space between text lines in section/chapter/part name   * height of space before and after a section/chapter/part name   * height of space before and after an environment (`equation`, `figure`, `itemize`) I know how to add `\vspace{<value>}`, but I don't know where, I don't know how to overwrite defaults. I prefer to define all those values in one place (at the beginning of the document) and use them by own environments/commands (`\mysection{}`) or even better by standard environments/commands (`\section{}`). Can someone show me how to do it? **Post Scriptum:** It is easy to close question and say: it is duplicate. In a previous question How to align lines on facing pages? I asked about putting text lines on grid, it was closed, although there is no good answer on this forum. Grid System in LaTeX \- is useless, because `grid` package doesn't work well. I badly need to align text on grid. If there is no good automatic solution I want to do it manually by setting heights and all spaces (after and before) between elements of documents. Please answer, don't close!


title: How to type argmin over a variable in plain TeX

text: I am forced to use plain TeX instead of LaTeX and I don't know what is the proper way to type argmin with some variable under it. I know               $$ \min_b. $$       And I would like to do someething similar, but with argmin instead of min. Sadly               $$ \argmin $$      doesn't exist :( Please, does anyone have the knowladge how to do this? Thanks in advance! Erhan


title: How do I fill table cells with a background color?

text: I'd like to fill the cells of a table with a background color. How can this be done?


title: In-line math symbol convention

text: I know it's much better to use `\[ \]` over `$$ $$` when typesetting math equations on their own line (I believe this is called display math?) But is it also inappropriate to use `$ $` for in-line math over `\( \)`? If so, what are the reasons? I find the latter much more cumbersome to type, so I'd only like to use it if there's a good reason.


title: Is $ ... $ okay to use, while $$ ... $$ is not recommended?

text: > **Possible Duplicate:**   >  Are \\( and \\) preferable to $? According to Why is \\[ ... \\] preferable to $$?, `$$ ... $$` should not be used. My understanding is, it is because `$$ ... $$` is not supported by `amsmath`, so using it may cause inconsistent spacing. But, what about `$ ... $`, shouldn't it be avoided as well? Is `$ ... $` supported by `amsmath`?


title: Is there a difference between the latex short hand for math mode and the TeX shorthand for math mode?

text: If I am typesetting something in LaTeX I can create a math environment using               \( a + b = c \)      Or I can start math mode using               $ a + b = c $      Is there a significant difference between the in LaTeX?


title: What is the dollar sign ($) used for when writing LaTeX code?

text: In LaTeX examples I sometimes see formulas included in dollar signs (`$d+o$`). Why?