title: Table of contents to refer to runners in addition to or instead of pages

text: I am using the class `jurabook` and I want to change the behavior of the table of contents. `jurabook` offers the possibility of having runners that number the paragraphs. These runners offer a more specific reference than pages. I would like the table of contents to show the references to the runners instead of the pages or even better in addition to the reference to the pages. Is it possible to change the behavior of the table of contents accordingly? Here is a minimal example of a document using jurabook and runners.               \documentclass[compact,a5paper,12pt]{jurabook}     \usepackage[a5paper, left=1.5cm, right=1.5cm, top=2cm, bottom=1.5cm]{geometry}          \newcommand{\lorem}{\rn{Lorem} ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.          }          \begin{document}          \tableofcontents          \chapter{Chapter}     \section{Test}     \lorem     \lorem     \section{Test 2}     \lorem     \lorem     \lorem     \section{Test 3}     \lorem     \lorem     \section{Test 4}     \lorem     \lorem     \end{document}      * * * Edit: Thank you very much for your answer. It works within the minimal example. But I have problems applying it to a broader scale. If I include the hyperref package, the solution does not work. I am getting errors on typesetting. And if I want some indication of which number is which, the text runs out of the page. For example using the code:               \def\addcontentsline#1#2#3{%       \addtocontents{#1}{%          \protect\contentsline{#2}{#3}{page \thepage\ (runner \the\numexpr\value{runner}+1\relax)}}}%


title: lstlisting messes up page numbers in table of contents

text: I don't get page numbers of sections in the table of content correctly when I use the package `lstlisting`. I'm using the documentclass `article`. I need to use this class, not `report`. Any ideas how this can be fixed?


title: Kile on Windows 7, a problem with overwriting the existing PDF file

text: The problem I'm having with Kile on Windows 7 (x64) is the following: each time I need to close the compiled PDF file manually to run the "QuickBuild" command, since Kile can not overwrite the existing file while the PDF file is open (it just gives an error), and when the compilation is done, Kile does not open the PDF file automatically. Also, even if the PDF is closed the "PDFTex" command is not working at all, it just gives an error during compilation. I guess it is still a problem with overwriting. Any ideas?


title: single colum footnote in a twocolumn layout

text: i want to print my affiliation in the bottom of the chapter opening page as a footnote, i am using a two column layout if it is possible to get the single column footnote in the two column layout? Thanks in advance for your help! Regads, Venkateson R


title: Adding a specific title to list of abbreviations / acronyms in LaTeX

text: If I have the following code to handle generating a list of acronyms in LaTeX               \usepackage[acronym,footnote,nonumberlist]{glossaries} % Makes a list of abbreviations.     \usepackage{glossary-mcols}     \include{Glossary}     \makeglossaries     \glossarystyle{mcolindex}      Which is being printed using:               \glsaddall     \printglossaries      I am given the title `Acronyms` above the list of acronyms. Is it possible to specify my own title for the list instead? Because I want the list appearing after other 'List of...' sections as follows:               List of Figures     List of Tables     List of Abbreviations       Which would be more consistent than:               List of Figures     List of Tables     Acronyms       If I use:               % Print glossary.     \glsaddall     \printglossary[title={List of abbreviations}]      Then no glossary is printed in the report and I have the following in the log:               Command Line:   makeindex.exe -s "Main.ist" -t "Main.glg" -o "Main.gls" "Main.glo"     Startup Folder: C:\Users\Mr Morgan\Documents\College\PhD\Thesis          This is makeindex.exe, version 2.14 [02-Oct-2002] (kpathsea + Thai support).     Scanning style file C:/Users/Mr Morgan/Documents/College/PhD/Thesis/Main.ist...........................done (27 attributes redefined, 0 ignored).     Scanning input file Main.glo...done (0 entries accepted, 0 rejected).     Nothing written in Main.gls.     Transcript written in Main.glg.               Command Line:   makeindex.exe -s "Main.ist" -t "Main.alg" -o "Main.acr" "Main.acn"     Startup Folder: C:\Users\Mr Morgan\Documents\College\PhD\Thesis          This is makeindex.exe, version 2.14 [02-Oct-2002] (kpathsea + Thai support).     Scanning style file C:/Users/Mr Morgan/Documents/College/PhD/Thesis/Main.ist...........................done (27 attributes redefined, 0 ignored).     Scanning input file Main.acn....done (13 entries accepted, 0 rejected).     Sorting entries....done (43 comparisons).     Generating output file Main.acr....done (38 lines written, 0 warnings).     Output written in Main.acr.     Transcript written in Main.alg.


title: including tif/eps/pdf fails due to bounding box/dimensions

text: when inserting an image into my *.tex-file, I get the error               Dimension too large      the command was (reduced to the important lines)               \begin{figure}[tbp]     \includegraphics{graphics/3-1-23}     \end{figure}      where graphics/3-1-23.pdf is the file I want to include. Also tried to   * include the original tif or as eps (and left the extension of course), and   * rename the file and avoid numbers at the beginning of the line. nothing worked out. The processing way of the image was   1. get tif from oscillosope   2. crop it using linux commandline tool "convert"   3. converted to either eps or pdf The package graphicx is included, when including as pdf I'm using pdflatex, otherwise latex. Do you know such a problem or do you have a solution? Thanks in advance :-) P.S.: Cannot provide an image yet - currently not enough reputation ;-)


title: Loading index package with memoir

text: The standard `makeidx` package writes `ind`/`idx` in LaTeX's internal representation file. The `index` package writes in utf-8 and works fine with the `book`, `article`, `report` standard classes. But when trying to use the `index` package with `memoir`, the output is still like with the `makeidx` package. Can the `makeidx` emulation can be turned off or overridden with the `index` package with `memoir`? Here is a minimal example:               \documentclass[a4paper,9pt]{memoir}     \usepackage[T1,T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,russian]{babel}     \usepackage{index}     \makeindex     \begin{document}     \section{Indexing something}     \index{здравствуйте}здравствуйте     \printindex     \end{document}       The `idx` file content is               \indexentry{\IeC {\cyrz }\IeC {\cyrd }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrv }\IeC {\cyrs  }     \IeC {\cyrt }\IeC {\cyrv }\IeC {\cyru }\IeC {\cyrishrt }\IeC {\cyrt }\IeC {\cyre }}{1}      Now change `memoir` to `book` and rebuild index and document again. Now the `idx` file content is               \indexentry {здравствуйте}{1}      as expected.


title: How to use grey text so that it prints nicely on a B&W laserprinter?

text: In my latex document, I have a chart (created through matplotlib, and saved as .pdf file), where I put some text in grey. This is fine when looking at the paper PDF onscreen (its a vector image, so it is crisp clear). However, when I print the paper on a B&W laserprinter, the grey text is emulated using small black dots. The result is that the text doesn't look very nice (see slightly fuzzy photo below, it's about `CS prefereable` and `PS preferable`), and depending on the (down)scaling I use in latex, it is even close to unreadable. Is there a 'proper' way to have grey text in charts (that will be used in a latex document) so that they come out fine when printing as well? ![Photo of chart with grey text](http://i.stack.imgur.com/BAZsM.jpg)


title: bibtex style modification

text: I'm attempting to modify the `.bst` file. I've used merlin with a `.dbj` file as input, but can't manage to alter minor items I need to alter:   1. name suffix, e.g. Jr., III, after the full name (not after last name) as I specified for JUNIOR. I want: lastname, firstname, Jr. and lastname, firstname, III Although I specified "jnrlst" in my `dbj` file, the `bst` file that merlin produced does not put "Jr." or "III" last; it puts it after the last name in the reversed name order (i.e. last name, Jr., first name. See the entry Andrews   1. series a separate block item, separated by a period (rather than comma), not included between editor and pages of collection. If I spedify "numser" in my `dbj` file, the `bst` file that merlin produces has the form "No. x of Series." even though I specified, ser-vol. to get Series, vol. x. But I don't want 'vol.', I want 'no.', i.e. "Series, no. x" If I change my `.bst`, line from               FUNCTION {bbl.volume}     { "vol." }      to               FUNCTION {bbl.volume}     { "no." }      it is not fixed; it puts "No. in Series" instead of "Series, no. x" See the entry Doug Arnold   1. I would like to have just like mthesis, a FUNCTION {bbl.bthesis} { "Bachelor's thesis" } See the entry Johnson   1. MACROs do not work. e.g. MACRO {csli} {"Center for the Study of Language and Information"} See the entry Snijders Below are the relevant .bib file entries:               @PhdThesis{Andrews1975,      author =   {Andrews, Avery Delano, Jr.},      title =    {Studies in the syntax of relative and comparative clauses},      school =   {MIT},      address =  {Cambridge, Mass.},      year = {1975},     }          @book{Andrews1985,      author =   {Andrews, Avery Delano, III},      title =    {Studies in the syntax of relative and comparative clauses},      address =  {New York and London},      publisher =    {Garland Pub.},      series =   {Outstanding dissertations in linguistics},      number =   {},      year = {1985},      note = {Lightly retouched version of Andrews 1975}     }          @inCollection{Arnold2007,      author =   {Arnold, Doug and Louisa Sadler and Aline Villavicencio},      title =    {Portuguese: Corpora, coordination and agreement},      booktitle =    {Roots: Linguistics in search of its evidential base},      year = {2007},      editor =   {Sam Featherston and Wolfgang Sternefeld},      pages =    {9--28},      series =   {Studies in Generative Grammar},      number =   {96},      address =  {Berlin and New York},      publisher =    {Mouton de Gruyter},      url =  {http://privatewww.essex.ac.uk/~louisa/newpapers/}     }          \documentclass{article}     \begin{document}     \bibliographystyle{my-style}     \nocite{*}     \end{document}          @MastersThesis{Johnson2008,      author =   {Johnson, Cynthia},      title =    {Mixed-gender antecedent agreement in Latin},      year = {2008},      school =   {University of Illinois},      note = {Bachelor's Thesis! not a Masters Thesis}     }          @inCollection{Snijders2012,      author =   {Snijders, Liselotte},      title =    {Issues concerning constraints on discontinuous NPs in Latin},      booktitle =    {Proceedings of the LFG12 Conference},      year = {2012},      editor =   {Miriam Butt and Tracy Holloway King},      pages =    {565--581},      address =  {Stanford},      publisher =    {csli}     }      Here is my latex file relevant context:               \documentclass[runningheads,11pt]{book}     \usepackage{natbib}     \setcitestyle{notesep={: }}     \usepackage[section]{placeins}     \usepackage[sectionbib]{bibunits}     \bibliographyunit[\chapter]     \bibliographystyle{sktlib} % tailored using merlin     \bibliography{bu1}     \putbib     \end{document}


title: Undefined Control Sequence \maketitle ... par

text: I'm new to LateX (first day playing around with it). Downloaded a sample (for a thesis) and I get the following error: ![enter image description here](http://i.stack.imgur.com/nVzZp.jpg) I've tried googling around, but it seems like undefined control sequence could mean many things. Any ideas to what it means? Please write a comment if any more info is needed and I'll edit the question.


title: Making a stacked bar chart

text: I want to transform a set of barcharts (such as in the subset in the MWE below) to a stacked bar chart which is more legible, as in this example: ![Stacked bar chart](http://i.stack.imgur.com/QM0Ov.png)               \documentclass{article}     \usepackage{tikz}          \begin{document}                      Calendars and reminders\\                                    \begin{centering}                     \begin{bchart}[max=70,scale=1,width=14cm,unit=\%]                             \bcbar[text={Daily},color=cyan!20!green!40]{51}                             \bcbar[text={Weekly},color=cyan!60!green!20]{24}                                 \bcbar[text={Less often}, color=cyan!10]{25}                          \end{bchart}                      \end{centering}                                              Send/receive texts\\                                     \begin{centering}                     \begin{bchart}[max=70,scale=1,width=14cm,unit=\%]                             \bcbar[text={Daily},color=cyan!20!green!40]{67}                             \bcbar[text={Weekly},color=cyan!60!green!20]{23}                                 \bcbar[text={Less oft}, color=cyan!10]{7}                          \end{bchart}                      \end{centering}                      Make or receive phone calls\\                                    \begin{centering}                     \begin{bchart}[max=70,scale=1,width=14cm,unit=\%]                             \bcbar[text={Daily},color=cyan!20!green!40]{46}                             \bcbar[text={Weekly},color=cyan!60!green!20]{38}                                 \bcbar[text={Less often}, color=cyan!10]{16}                          \end{bchart}                      \end{centering}     \end{document}      I tried to use the solution to a previously asked question here (How to draw bar chart using tikz?) without success. ## Can you help? Thanks! My first attempts (not a MWE, but for you to have an idea of what I'm doing wrong):               \begin{tikzpicture}     \pgfplotstableread{ % Read the data into a table macro          Label   Daily Weekly Less~often     Calendars~and~reminders      0.51      0.24      0.25         Send/receive~texts           0.67      0.23      0.07         Make/receive~phone~calls     0.46      0.38      0.16     }\datatable          \begin{axis}[                 xbar stacked,   % Stacked horizontal bars                 xmin=0,         % Start x axis at 0                 ytick=data,     % Use as many tick labels as y coordinates                 yticklabels from table={\datatable}{Label}  % Get the labels from the Label column of the \datatable         ]         \addplot [fill=cyan!20!green!40] table [x=First, y expr=\coordindex] {\datatable};   % "First" column against the data index         \addplot [fill=cyan!60!green!20]table [x=Second, y expr=\coordindex] {\datatable};         \addplot [fill=cyan!10] table [x=Third, y expr=\coordindex] {\datatable};     \end{axis}     \end{tikzpicture}


title: Improper alignment of qed-like symbol when using equation to end

text: I use this code to define a symbol that I put at end of (maths) examples in my file.               \newcommand\xqed[1]{%     \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill     \quad\hbox{#1}}     \newcommand\demo{\xqed{$\bigcirc$}}      And I use it like follows:               \begin{defn}The spectrum is:     \begin{equation*}     \sigma(T) = \{ \lambda : (T-\lambda I)^{-1} \text{ does not exist} \}.     \end{equation*}     \demo     \end{defn}      Which looks like this: ![](http://i.stack.imgur.com/UDnBJ.png) I want the circle symbol on the same line as the equation. How do I do that? If I put the `\demo` on the line before the `\end{equation*}`, it looks even worse; it's pretty much only two spaces to the right of the equation.


title: How to make your eps image from \includegraphics be inside some border and have some description in it?

text: So we do `\includegraphics[scale=0.75]{myfig.eps}` to get image on the page. But how to wrap it into border and make itassignable with some automated image number like `image N` label like `image about...` \myincludegraphics[scale=0.75]{myfig.eps}{Description} So point is - How to get something like this: ![enter image description here](http://i.stack.imgur.com/xiUgM.jpg)?


title: LaTeX Error only if certain citation is used

text: I've got a strange problem, where texmaker throws an error only if I include the following citation:               however natural mood swings during weekdays might also have an     influence\footnote{see the appendix for "a case of the Mondays" at      Google in Figure \ref{googmondays}}. As \citeA[p. 4]{yuliandresnerzhu}      have pointed out especially Mondays can have a significant impact on employees mood.      If I remove `\citeA` it works ... Other `\citeA` citation work perfectly fine. Here's the corresponding bibtex entry:               @INPROCEEDINGS{yuliandresnerzhu,       author = {Yuliang Oliver Yao and Martin Dresner and Kevin Zhu},      title = {Searching for the 'Monday Blues' in Order Fulfillment and its   Cure},      year = {2010},      owner = {johnny},      timestamp = {2011.05.11},     url = {http://ssrn.com/abstract=1535117}     }      _**EDIT:_** Here's the my custom build command:                 latex -interaction=nonstopmode %.tex|bibtex %.aux|latex -interaction=nonstopmode           %.tex|bibtex %.aux|dvipdfm %.dvi|evince %.pdf      A working example should be:                \documentclass[a4paper,12pt]{article}      \usepackage{apacite}       \bibliographystyle{apacite}       \begin{document}           \section{Design Decisions, why?}             \subsection{Mood representation}     however natural mood swings during weekdays might also have an     influence\footnote{see the appendix for "a case of the Mondays" at Google in Figure}.     As  \citeA[p. 4]{yuliandresnerzhu} have pointed out especially Mondays can have a     significant impact on employees mood.                    \bibliography{JF_MISNAAIFSMP_Biblio}                         \end{document}               The are a lot of warnings thrown but strangely no error. What bugs me the most is that it actually stopped working after I inserted the citation, without changing anything else.


title: Dancing images in beamer

text: When creating a slide using pauses and \only, I am getting cases where the content shifts between slides. I have tried using overlayarea and overprint as described in Avoiding jumping frames in beamer (in every combination I could think of - in one or the other or both columns, around the whole thing, using \only, using \onslide), but I still get dancing images. Minimal example follows. Note, while debugging I am including the same image 5 times, but in our end document I will be using 5 different images (all the same size). [ **Update:** The dancing seems to happen on the slide where the visible portion of the itemize environment exceeds the height of the image, so this may depend on the image size ]               \documentclass[t]{beamer}     \usetheme{Singapore}     \usecolortheme{rose}          \begin{document}          \begin{frame}{Riverbend Community Math Center}     \begin{columns}[c]       \begin{column}{0.6\textwidth}         \begin{itemize}[<+->]         \item Founded in Summer of 2006         \item Centered in St.~Joseph County, Indiana         \item Independent, non-profit organization         \item Serves people ages 5 through adult         \item Promotes interest and confidence in mathematics         \end{itemize}       \end{column}            \begin{column}{0.4\textwidth}         \only<1>{\includegraphics[width=\textwidth]{RiverbendCommunityMathCenter}}         \only<2>{\includegraphics[width=\textwidth]{RiverbendCommunityMathCenter}}         \only<3>{\includegraphics[width=\textwidth]{RiverbendCommunityMathCenter}}         \only<4>{\includegraphics[width=\textwidth]{RiverbendCommunityMathCenter}}         \only<5>{\includegraphics[width=\textwidth]{RiverbendCommunityMathCenter}}       \end{column}     \end{columns}     \end{frame}          \end{document}      For complete information, I am using XeLaTeX but see the same dancing when compiling with plain LaTeX.


title: Defining operator symbols

text: I want to replace the circle in the symbol `\circledast` by a square. But i did not find the right command. It seems that the packages `stmaryrd` would help. But the package usually re-defines other basic symbols which is not desired. The `amssymb` package seems not define such a symbol. Is there anyone know how to define some command like `\boxdast` or `\squaredast`? Or how to avoid other changes by introducing packages that already defines `\boxdast` or `\squaredast`?


title: Handwritten font with math support

text: Friends, I've been looking for a handwritten font with math support. In The LaTeX Font Catalogue, there are great handwritten fonts available, but unfortunately I could not find one with proper math support. I'm aware that the general rule is to use a proper math font instead, say `mathpazo`. But in this very peculiar case - a `beamer` template I'm writing for one keynote of mine - a handwritten font would perfectly fit. I found some references in a `comp.text.tex` thread and also in the LaTeX Community Forum \- the latter with an interesting approach provided by frabjous. Since both entries are dated January 2010, I'd like to know if there is any new light on this subject - a new font, a new technique, etc. Or I could collect some `detexify` samples and put all together in a math font. `=P` _(just kidding!)_ * * * **Update** : Since I have such great answers to my question, I'll add a bounty. My plan is to accept one answer while awarding the other one with a bounty.


title: Beamer: AtBeginSection and insertsubsectionnavigation

text: I'm trying to get a presentation which has for each section a leading slide which shows the name of the current section as well as a table of the subsections belonging to this section. The first part is easy, I'm using               \AtBeginSection[]%     {%     \begin{frame}[plain]%       \begin{center}%         \usebeamerfont{section title}\insertsection%       \end{center}%     \end{frame}%      However trying to use the `\insertsubsectionnavigation` command to insert the subsection table fails (maybe due to the fact that this command is meant to be used in templates?). Is there anyway to get beamer to display the table for me, or do I have to re- create the code used for the `\insertsubsectionnavigation` command? EDIT: Okay, scratch that, after putting the insertsection and the insertsubsectionnavigation in beamercolorboxes they both show up, now I just have to figure out how to make them look good :-)


ToC: How to no-indent the second line of large entries? I'm using the `scrreprt` class, typesetting a book with only 120mm of paperwidth.


How to install the Futura font in TeX Live 2010 in Linux(Ubuntu 10.10)?


title: Why does \movieref not work under XeLaTeX?

text: I have a long-standing problem with the button produced by the `\movieref` command from `movie15` package. Briefly saying, it does not work at all if my document is compiled with XeLaTeX whereas the button operates as described in the movie15 manual if my document is compiled with pdflatex. Note that the source files for PdfLaTeX and XeLaTeX are slightly different. For XeLaTeX the document preamble contains               \usepackage[dvipdfmx]{movie15_dvipdfmx}      and for PDFLaTeX I am using               \usepackage{movie15}      Other chunck of code is the same for both cases. First, I declare a `\RunVideo` command that is just an image used for the button:               \DeclareRobustCommand*{\RunVideo}{\raisebox{-0.25\height}\includegraphics[width=1.5em]{icon_video.png}}}      Next I include my movie:               \includemovie[         label=movie-04-03         ,mouse=true             % Enables mouse interaction: Clicking onto the media             % (giving it the focus) pauses the playback while clicking             % outside resumes it. Alternatively, once the media has             % got the focus, repeated pressing of key ‘P’ on the keyboard             % switches between Play and Pause (at least with some players).         ,text={\includegraphics[width=\textwidth]{2010-04-03.png}}     ]{}{}{Video/2010-04-03-xvid.avi}      And finally the button goes here:               \movieref[pause]{movie-04-03}{\RunVideo}      If the document is compiled with PDFLaTeX clicking the button image cyclically starts/stops/resumes playback. Playback can also be stopped/resumed by clicking onto/outside the movie area. If the document is compiled with XeLaTeX only the second methods works, and clicking on the buttom has no effect at all. **Can someone explain if the code has some drawback of it is a bug of the`movie15_dvipdfmx` package?**


title: Compilation problem after running bibtex

text: I'm having the following problem: My document compiles properly before running bibtex. When I try to recompile after running the bibtex command it gave this compiling error:                   Runaway argument?         \MakeLowercase {os estilos de aprendizaje: procedimientos de diagn\IeC \ETC.         ! File ended while scanning use of \blx@mkcp@end.         <inserted text>          \par          <*> these      I checked the bibfile and there is an entry with this title:                  @book{alonso1991,        Address = {Bilbao, Espa{\~n}a},        Author = {Alonso, C. M. and Gallego, D. J. and Honey, P.},        Publisher = {Complutense},        Title = {Los estilos de aprendizaje: procedimientos de diagn{\'\o}stico y mejora},        Year = {2007}}               It seemed ok to me. I'm using `biblatex`, before using `biblatex` this problem wasn't happening.


title: TikZ Diagrams in Math Mode

text: I've attached a picture which shows what I want to be able to do. I have been making simple Hackenbush diagrams as follows:               \begin{tikzpicture}         \node[hackennode] (Bottom Blue) at (0,0) {};         \node[hackennode] (Top Blue) at (0,1) {};         \draw[hackenline,blue] (Bottom Blue) -- (Top Blue);     \end{tikzpicture}      I'd like to be able to use them along with normal mathematical symbols, as the picture shows. Thanks! (I also don't know how to put the dotted line in, but I'm less concerned about that.) ![what I want](http://i.stack.imgur.com/4y0AJ.jpg)


title: Modify the last-name first-name separator in biblatex's authortitle

text: Using the example below, how could I modify the separator between last name and the initial? Currently this is a comma e.g. Fox, P. and it should be just a space: Fox P. And a similar problem: How could I remove the period behind the initial?               \RequirePackage{filecontents}     \begin{filecontents}{sample.bib}     @ARTICLE{liu:11,       author = {Peter Fox and Richard Rabbit and Franc Bird},       title = {Animals are the better humans},       journal = {Horse and Hound},       year = {2011},       volume = {10},       pages = {11--15}     }     \end{filecontents}          \documentclass[a4paper,ngerman]{scrartcl}     \usepackage{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{csquotes}     \usepackage[style=authortitle,firstinits=true]{biblatex}          \bibliography{sample}     \begin{document}     Samplecite~\cite{liu:11}.          \printbibliography     \end{document}      Current status ![alt text](http://i.stack.imgur.com/qTHnX.png)


title: Why are the lines around my multicolumn cell misaligned?

text: In the following table, why does the double line before the `diff` column not go through? I guess all the `multicolumn{1}` are wrong? How can I fix it?               \begin{table}     \centering     \begin{tabular}{|l||c|c|c|c|c|c||r|}\hline          \multicolumn{1}{|c||}{} &     \multicolumn{3}{c|}{Model 1} &     \multicolumn{3}{c|}{Model 2}  &     \multicolumn{1}{||r|}{}\\          \multicolumn{1}{|c||}{Task} &     \multicolumn{1}{c}{(a)} &     \multicolumn{1}{c}{(b)} &     \multicolumn{1}{c|}{(c)} &     \multicolumn{1}{c}{(a)} &     \multicolumn{1}{c}{(b)} &     \multicolumn{1}{c}{(c)} &     \multicolumn{1}{||r|}{diff}\\\hline          Foo     & 1 & 2 & 3 & A & B & C & + \\     Bar     & 1 & 2 & 3 & A & B & C & + \\\hline          \end{tabular}     \caption{whatever}\label{tab:whatever}     \end{table}      ![fugly table](http://i.stack.imgur.com/la4tJ.png)


title: How to pass options to latex compiler using rubber?

text: Gedit with latex plugin is a great tool for working with latex. However I need to modify standard tool which is is just a call of rubber. I would like to have possibility to to use inverse search. To this end I need to pass `-src` option to latex compiler and I do not know if it is possible with rubber.


title: relative hspace in newcommand

text: I'm trying to create a symbol of a gray triangle with a black border. I managed to do so using:               \newcommand{\factor}{{\color{gray} \blacktriangledown}\hspace{-1.6ex}\triangledown}      However, the two triangles go out of sync when the `\factor` is used in a subscript or superscript. That is, the space becomes too large and the black triangle is no longer over the gray one. Is there a way to ask the space to be relative to the current font, such that it will take into account whether it is in super/sub-script?


title: LaTeX align minted code fragments

text: I would like to align the first lines of the code and the captions in the following listings. This is my LaTeX code. I've also uploaded an image of the output.               \begin{figure}[H]      \begin{minipage}[t]{0.5\textwidth}       \centering       \begin{minted}{c++}     void MyClass::Run()     {         // no work         if (!m_HasWork)              return;              /* process the new frame */              // done         m_HasWork = false;     }       \end{minted}       \captionof{listing}{Main thread (process a frame)}       \label{fig:thread1}      \end{minipage}      \begin{minipage}[t]{0.5\textwidth}       \centering       \begin{minted}{c++}     void MyClass::Update(         const video::ImageFrame& Frame)     {         // skip frame (not done with previous)         if (m_HasWork)             return;              /* make a local copy           * of the frame */             // indicate that there's work         m_HasWork = true;      }       \end{minted}       \captionof{listing}{Interrupt (get a frame)}       \label{fig:interrupt}      \end{minipage}      \captionof{listing}{not relevant}       \label{fig:sync}     \end{figure}      Output: (I want the captions of listings 1 and 2 on the same line) ![output](http://i.imgur.com/zsG1260.png)


title: Can Lyx syntax files override document class defaults?

text: I'm editing a client's Latex file in Lyx, where the client has used a document class not supported by Lyx. In these cases, I use `tex2lyx` with either `-c article` or `-c report` to ensure Lyx can import the file, and look at the difference (using `wdiff`) between the provided Latex file and that which Lyx exports to assemble a list of misunderstood syntax, which I can create a syntax file from to pass to `tex2lyx` using the `-s $SYNTAXFILE` option. All well and good, but if the document classes conflict in their syntax (e.g., passing optional arguments to such commands as `\author` or environments such as `{enumerate}`) then Lyx ignores what the syntax file says and so misparses the imported Latex file. I have a workaround for this case, namely putting the definition `\let\lyxtexblock=\relax` in the Latex preamble and a line `\lyxtexblock{}` in the syntax file, and surrounding any misunderstood Latex with it. But I wonder if there is a more principled solution, something less time-consuming than hacking up a new layout file. I'm using Lyx 1.6.8, but I'm interested to hear of solutions for Lyx 2. ### Resource   * Converting *.tex to *.lyx (lyx.org wiki) ## Motivation While it is possible to edit someone else's Latex manuscript by directly editing the source file, and use `wdiff/texdiff/latexdiff` to document the changes made, this tends to be a relatively inefficient way of working when there are many edits (say 1 000 edits on a 9 000 word manuscript). The change tracking features of Word, Open Office Writer and Lyx all offer the following features, among others, which I call the _change-tracking minimum_ :   1. Comments associated with changed text, ideally over arbitrary extents of text or particular edits;   2. A UI that allows changes to be worked through one at a time, and accepted, rejected, or the text modified;   3. A UI that allows all changes in some selected portion of text to either accepted or rejected, and likewise all comments in a slected area be deleted; Point one is possible with `wdiff/texdiff/latexdiff`. Neither points 2 or 3 are, with any software I have seen. Anything less than all three points will cause a big increase in the time it takes for a client of mine to work through the kind of edits I produce. I believe the lack of good editing tools for Latex, such as the above, is the principal reason why many publishers do not want to work within Latex.


title: Does the mirror image of the \models symbol exist in TeX?

text: I've tried detexify, but it does not identity the symbol I saw in a textbook "A Mathematical Introduction to Logic", by Herbert Enderton. The symbol is composed of two parts. The left looks like the \models and the right looks like its mirror image. It stands for tautological equivalence in the book. I am looking for either the right hand symbol so I can create the symbol, or the combination symbol.


title: how to check in latex whether the table of content is empty or not before added to the document

text: I have created a simple template for someone with the table of content added to the first page as follow               \begin{document}         % title and date here          \maketitle         \tableofcontents         \indent \newline         %       \end{document}       But I figure out that someone don't add anything to the table of contents but there will be a word "Contents" shown in the document even the table is empty. Is that anyway I check in advance whether the table of contents is empty or not so to decide what to do next? Thanks.


title: Bibliography style like ieeetr

text: Are there any bibliography styles that supports both ordering as in `ieeetr` and author-year (ie. _John et al._ )?


title: Align pseudocode comments to the left

text: Writing comments in pseudocode, I wanted to insert comments which are not aligned to the right side of the line which is commented. This thread helped me a lot. However, I want comments to stand above the code line to which they refer and be always left-aligned. Reason: If the comment refers to an elsif, then the comment is inside the previous if-block. Thus, it is indented. I don't want it to be indented, I want it to be at the same horizontal position as the corresponding line is. Starting with this               \algnewcommand{\LineComment}[1]{\State \(\triangleright\) #1}      How can I design it to be aligned corresponding to the next line (which is left-aligned in 90% of the cases)? I am using this:               \usepackage{algorithm}     \usepackage{algorithmicx}     \usepackage{algpseudocode}\parindent0mm     \algnewcommand{\LineComment}[1]{\State \(\triangleright\) #1}      Also, I want to define a new command, not redefine an existing one. Thanks!


title: wrapping inline long lines and adding background color

text: # Objective I'm trying to achieve the following output. ![enter image description here](http://i.stack.imgur.com/8Bq7x.png) Here's the code I used to produce it. I had to hack it               \begin{document}     \begin{description}          \item In \texttt{./build/org.eclipse.cdt.managedbuilder.core/plugin.xml}      \\ there is an extension       {\btHL \texttt{org.eclipse.cdt.managedbuilder.language} }      { \btHL \texttt{.settings.providers.GCCBuildCommandParser}}      corresponding to the name \texttt {GCCBuildOutputParser.name}.     This is extending at the point      {\btHL \texttt{org.eclipse.cdt.core.LanguageSettingsProvider}}          \end{description}     \end{document}      As you can see, I had to manually insert line breaks to typeset it correctly. I'd like to have LaTeX automatically break the lines also. The preamble that defines `\btHL` was taken from Highlight text in code listing while also keeping syntax highlighting # Why? As I've shown in the example above, java classes can be really long string with no spaces. And sometimes you need to mention them inline. On top of that I think highlighting them(adding background color) will enhance the readability. As it's java code I want to typeset it in monospace. Syntax highlighting is not a high priority though. # The Challenge So far I've looked at the following answers for wrapping text   * Wrapping long lines that contain no spaces   * http://mrtextminer.wordpress.com/2009/02/26/break-or-wrap-a-continuous-text-in-latex/   * Long code that needs to wrap   * How to make inline listings wrap nicely?   * http://ctan.mirrors.hoobly.com/macros/latex/contrib/seqsplit/seqsplit.pdf   * ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/listings.pdf   * How to get long \texttt sections to break   * http://en.wikibooks.org/wiki/LaTeX/Hyperlinks And the following links for Highlighting and background color.   * Different background colors for lstinline   * How to redefine \lstinline to automatically highlight or draw frames around all inline code snippets?   * Background color in inline code listings with linebreak   * Colored background in inline listings   * Highlight text in code listing while also keeping syntax highlighting   * http://pleasemakeanote.blogspot.com/2009/08/how-to-highlight-text-in-latex.html   * Highlight text in code listing while also keeping syntax highlighting It's very tedious to try every combination of techniques from both the sets but I tried many. It seems like the hard part is that both the applications use some kind of walk through technique, the first to calculate the line break points and the second to calculate the size of the box. If it wasn't inline then setting background color wouldn't require and fancy computation and this would be doable. # Summary So in summary, how do I achieve the same output as above without having to manually insert line breaks? I don't want to worry about typesetting while typing the reports/journal entries.


title: Can't use installed fonts

text: I use Linux and if I go to installed fonts I can see that the 'Adobe Helvetica', for instance, is installed. I also find it if I do `fc-list`. But I can't use it with XeTeX. If I do `\usepackage{fontspec}` and `\setmainfont{name_of_font}` I get `Metric(TFM) file or installed font not found`. I can use any of the fonts found in `/user/share/texmf/fonts/truetype`. But I can't use the `.afm` fonts, neither can I open them with kfontviewer. * * * Thank you for the replies! I have realised that I don't have an Adobe .ttf font, but after I run 'xlsfonts' I get a long list of Adobe Helvetica fonts. This font also appears to be installed in my system, as I checked in my System Settings. But I might have the same problem as in this forum: can't use Helvetica I have used 'otfinfo' and it works for .otf and .ttf files. But why can't I use it for the fonts displayed with 'xlsfonts', system fonts? There are font replacements, but why couldn't I use Helvetica? Because of copyright? Ok...So Fontmatrix doesn't see my Adobe fonts, which appeared to be installed, because when I use Kmail to write e-mails I can choose whatever Adobe fonts I like. If I go to System Settings>>Install Fonts, I can see that my Adobe fonts are installed. Then why can't I use them with Tex or LibreOffice (as I said, I have openSUSE 11.4)?


title: How to improve the looks of a table?

text: I want to display measurement outcomes in a table that lets the viewer read off the measurement value of `N` and `$\Theta$`. The picture below shows my first attempt. While this is ok, I would like to make it look nicer. For starters, how do I get the vertical line to go all the way trough? The code is also appended below. ![enter image description here](http://i.stack.imgur.com/peUqI.png)               \documentclass[a4paper,12pt]{article}     \usepackage{amsmath, amsmath, amssymb}     \usepackage[utf8x]{inputenc}     \usepackage{caption}     \begin{document}          \begin{table}[H]\centering     \caption{\label{tab2} FMM: profiling of subroutines}         \begin{tabular}{ll|cccccc}\toprule         & & \multicolumn{6}{c}{N} \\         ~ &  & 100    & 200    & 400    & 800    & 1600   & 3200   \\         \midrule\\         & 0.1 & 0.0008 & 0.0020 & 0.0056 & 0.0180 & 0.0556 & 0.1708 \\         & 0.2 & 0.0008 & 0.0016 & 0.0036 & 0.0108 & 0.0300 & 0.0792 \\        $\Theta$ & 0.4 & 0.0004 & 0.0012 & 0.0028 & 0.0060 & 0.0140 & 0.0344 \\         & 0.8 & 0.0004 & 0.0008 & 0.0016 & 0.0036 & 0.0064 & 0.0148 \\         & 1.6 & 0.0004 & 0.0004 & 0.0008 & 0.0028 & 0.0036 & 0.0080 \\ \hline         \end{tabular}     \end{table}     \end{document}


title: Remove macro from list like LOF

text: When defining a new section or when adding a caption to a figure or a table, the content of that command is normally duplicated. One version is put directly into the text, i.e. as a heading or below a graphic, and one version often appears in a list, i.e. in the table of content or in the list of figures. If both versions should be differently, the necessary commands have an optional argument which can be used to define different content for theses lists than for the normal text, e.g. `\section[list content]{text content}`. Sometimes I use a macro in the text content, which should not be part of the list content. Of course, I can always duplicate the text content and add a list content without the macro, e.g. `\section[content]{\mymacro content}`, when I do that in my own document. But as I need the functionality for a package, the users cannot (and should not) be forced to do that work themselves, thus I wonder how to avoid this. The hyperref package has a macro `\texorpdfstring` which solves a very similar problem by putting different content into the PDF's table of content (bookmarks) than into the file. There also is the macro `pdfstringdefDisableCommands`, which gives a possibility to remove macros from the content. Redefining all the `\section` and `caption` commands to (locally) redefine `\mymacro` to an empty macro is probably not very practical, as there are so many commands. What would a good solution to the problem look like? Is there already a package or a command which removes macros from such lists? As a motivation: I want to avoid that the macro gets executed twice. I also want to avoid that the macro is executed when loading the aux file during the next run. A solution is correct, imho, if the macro does not appear in files like `.aux`, `.lof` and `.toc`.


title: Customizing table of contents in memoir

text: I have a table of contents in my `memoir` document, but I want to slightly alter the way it appears: 1) I want to decrease the spacing between chapters (now it looks double- spaced; I want something like 1.3 spacing). 2) I don't want the names of chapters to appear in bold (I still want the chapter numbers to be bold, just not the chapter names). Which settings can customize these options?               \documentclass{memoir}     \begin{document}          \frontmatter     \tableofcontents*          \mainmatter     \chapter{First chapter}     \chapter{Second chapter}     \chapter{Third chapter}          \end{document}


title: Beamer notes "show notes on second screen" option does not work

text: I want to use the "show notes on second screen" option for beamer. Here's my code (MWE):               \documentclass{beamer}     \usepackage{pdfpages}          \setbeameroption{show notes on second screen}          \title{TEXPLORE}     \author{Todd Hester}     \institute{University of Texas at Austin}     \date{December 3, 2012}          \begin{document}          \begin{frame}     \titlepage     \end{frame}          \begin{frame}     \frametitle{Robot Learning}     \begin{itemize}     \item Robots have the potential to solve many problems     \item Moving from controlled to natural environments is difficult     \item We need methods for them to learn and adapt to new situations     \end{itemize}     \note{Robots have the potential to be very useful in society, by doing tasks that no one wants or is able to do. However, they are currently limited by the need to hand-code them for most tasks. Therefore, we need methods for them to learn from experience in the world.}     \end{frame}          \end{document}      When I try to compile, I get:               ! Undefined control sequence.     \KV@beamer@option@show notes on second screen ...                                                    {two screens with optional...     l.5 \setbeameroption{show notes on second screen}      Here are the versions from the top of the compile output:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)     restricted \write18 enabled.     entering extended mode     (./slides-test.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, uk     english, loaded.     (/usr/share/texmf/tex/latex/beamer/base/beamer.cls     (/usr/share/texmf/tex/latex/beamer/base/beamerbasercs.sty)     Document Class: beamer 2010/06/21 development version 3.10 A class for typesetting presentations (rcs-revision a6b1a8434d30)


title: Description list looking like a glossaries list

text: Is there a package or something that allows me to create a `list` (like `description`) that looks like a glossaries list, where the descriptions are indented the same length? Like it is if the `glossary-superragged` style is used in the `glossaries` package. I know this could be achieved by creating a two column table, but I think that is cumbersome. This thread describes how to do such a `description` list with or without bullets, but it doesn't say if it is possible to get the right "column" indented...


title: tabbing numbering and alignat numbering

text: Is there a way for the tabbing environment `\begin{tabbing}` to number equations and sync up with the `align` or `alignat` environments? If I use `align` or `alignat`, each successive use is numbered appropriate even when `\notag` is used. Can the `tabbing` environment recognize `aligns` numbering system and then use it? If so, how?


title: BibTeX Error Message

text: I am running LaTeX on a Mac and am getting the following error message when I run BibTeX:               White space in argument---line 19 of file file.aux      : \bibdata{\protect      :                   \unhbox \voidb@x \penalty \@M \ {}/Documents/University/references}       Any suggestions?


title: Using counter values as part of style name for plots

text: I figured I should be able to give a bunch of line styles and access them using counters. Sure enough, this works out fine; this document               \documentclass{article}     \usepackage{tikz,pgfplots}          \tikzset{%       Line 1/.style={color=blue,dashdotted},       Line 2/.style={color=red,densely dashed},       Line 3/.style={color=black,densely dotted}     }          \newcounter{counter}     \newenvironment{test}{%       \setcounter{counter}{1}        \begin{tikzpicture}     }{%       \end{tikzpicture}     }          \newcommand{\tester}{%       \draw[style=Line \thecounter] (\thecounter,0) -- (\thecounter,1);       \stepcounter{counter}     }          \begin{document}       \begin{test}         \tester         \tester       \end{test}     \end{document}      gives ![works](http://i.stack.imgur.com/6lffO.png) as expected. However, if I change the environment and command definition to do some plotting, i.e.               \newenvironment{test}{%       \setcounter{counter}{1}        \begin{tikzpicture}         \begin{axis}     }{%         \end{axis}       \end{tikzpicture}     }      and               \newcommand{\tester}{%       \addplot[style=Line \thecounter,id=plot_\thecounter] function{\thecounter + x*\thecounter};       \stepcounter{counter}     }      I get this: ![works not](http://i.stack.imgur.com/ctnmr.png) Clearly, the _third_ style is used for both plots; it seems to use the counter value _after_ all `\tester` commands (i.e. at the end of `axis`). Note how all other instances of `\thecounter` are expanded as expected. What is going on here, and how do I fix it? I think you can have `pgfplots` rotate through styles; I would like to start with the first style in every plot, though.


title: Excursus environment using mdframed: Issue with page breaks

text: This question is a follow-up question to: Access mdframed node coordinates with TikZ? **@MarcoDaniel** : Awesome package (`mdframed`)! Nice clean code, too. **@Tobi** : I really like your new `excursus` environment! However, there is an issue when it splits on pages: the first box (`\mdf@putbox@first`) is sent to the following page. Using your previous code:               \documentclass{scrartcl}          \usepackage{tikz}        \usetikzlibrary{calc,arrows}     \usepackage{etoolbox}     \usepackage[framemethod=tikz]{mdframed}          \tikzstyle{excursus arrow}=[%        line width=4pt,        draw=blue,        rounded corners=2ex     ]     \tikzstyle{excursus head}=[%        fill=white,        font={\bfseries\sffamily},        text=blue,        anchor=base,     ]          \makeatletter     \newcommand{\drawexcursusarrow}{%        \patchcmd{\mdf@putbox@single}{\mdfcreateextratikz}{           \path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);           \path let \p1=(Q), \p2=(O) in (\x1,{(\y1-\y2)/2}) coordinate (M);           \path [excursus arrow, round cap->]              ($(O)+(5em,0ex)$) -| (M) |- %              ($(Q)+(6em,0ex)$) .. controls +(0:16em) and +(185:6em) .. %              ++(23em,2ex);           \node [excursus head] at ($(Q)+(4.5em,-2pt)$) {Excursus};        }{}{}%        \patchcmd{\mdf@putbox@first}{\mdfcreateextratikz}{           \path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);           \path [excursus arrow,->]              (O) |- %              ($(Q)+(6em,0ex)$) .. controls +(0:16em) and +(185:6em) .. %              ++(23em,2ex);           \node [excursus head] at ($(Q)+(4.5em,-2pt)$) {Excursus};        }{}{}%        \patchcmd{\mdf@putbox@second}{\mdfcreateextratikz}{           \path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);           \path [excursus arrow,round cap-]              ($(O)+(5em,0ex)$) -| (Q);        }{}{}%        \patchcmd{\mdf@putbox@middle}{\mdfcreateextratikz}{           \path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);           \path [excursus arrow]              (O) -- (Q);        }{}{}%     }     \makeatother     \newmdenv[%        middlelinewidth=24pt,        middlelinecolor=white,        rightline=false,        innertopmargin=0ex,        innerbottommargin=0ex,        innerrightmargin=2pt,        innerleftmargin=0ex,        leftmargin=-11pt,        skipabove=12pt,        skipbelow=-1pt,%=12-24/2-2/2        settings=\drawexcursusarrow,     ]{excursus}          \usepackage{lipsum}          \begin{document}          \lipsum[3]     \begin{excursus}        \lipsum[1]     \end{excursus}     \lipsum[3]     %\vspace*{-2\baselineskip}     \begin{excursus}   %% Added to illustrate the splitting problem        \lipsum[1-2]     \end{excursus}     \lipsum[3]          \end{document}      You can uncomment the `\vspace*{...}` to see the `\mdf@putbox@first` reappear in the appropriate page, but it now overlaps the previous text. My guess is that the added height from the top `excursus` arrow (and title) is not accounted for in the `mdframed` algorithm to split over pages, so the total height of `\mdf@putbox@first` now exceeds the available vertical space remaining on the page. Does that sound right and is there a way to fix it?


title: authors with multiple affiliations without packages

text: I'm trying to list an author with multiple affiliations for an article submission. I Googled around a little and discovered the `authblk` package which is pretty cool. Unfortunately it refuses to work with the conference specified LaTeX files: http://www.naaclhlt2012.org/downloads/download.php Is there any workaround solution to list multiple affiliations for a single author without any extra packages? The help would be appreciated.


title: Lists of displayed math

text: How do I format a list of questions like this? ![enter image description here](http://i.stack.imgur.com/8MkgB.jpg) I'm getting the equation on a new line below the i) when using enumerate and `\list`. I don't want to get rid of `\[` and `\]` either as I like the long integral sign I get this instead: ![enter image description here](http://i.stack.imgur.com/L6NNs.jpg)


title: multi-line text for brace decoration in tikz

text: I'm trying to make a time-line with events by means of tikZ. Everything is going fine, I found (here) some nice examples and explanations but... I do a brace decoration for my time-line which has long "caption". What I'm trying is to make this caption multi-line, but it's not working. For example, in the text for node I can put `\\` inside the text and it makes the text two line. But this way is totally useless in text for the brace decoration. the minimum example is like next                    \documentclass[a4paper,12pt,oneside,titlepage]{report}       \usepackage{tikz}       \usetikzlibrary{snakes, positioning, decorations.pathreplacing, calc}       \tikzset{           date labels/.style = {               % Font               font = \sffamily,               % Anchor               anchor = north,               %Angle               %rotate = 45           }         }         \tikzset{            event/.style = {                 %Shape               rectangle,               % Size               rounded corners = 2mm,               % Border               thick,               draw = #1!50,               %Filling               fill = #1!20,               % Font               align = center,                 font = \sffamily\scriptsize,         }        }        \tikzset{           side labels/.style = {               %Shape               rectangle,               % Size               minimum size = 6mm,               rounded corners = 2mm,               % Border               very thick,               draw = black!50,               %Filling               top color = white,               bottom color = black!20,               % Font               font = \sffamily,               % Anchor               anchor = east,           }       }       \begin{document}                 \begin{tikzpicture}[line width = 1pt]               \node [side labels] at (-1, 0) {Customer A};               \draw[fill = black!100] {[snake] (0, 0)circle[radius=2pt] -- (2, 0)circle[radius=2pt]} -- (7, 0)circle[radius=2pt] -- (9, 0)circle[radius=2pt];               \draw (0, -0.05) node [date labels] {1} -- (0, 0.05) node (paid_date) {};               \draw (2, -0.05) node [date labels] {30} -- (2, 0.05) node (paid_back_date) {};               \draw (7, -0.05) node [date labels] {280} -- (7, 0.05) node (next_paid_date) {};               \draw (9, -0.05) node [date labels] {365} -- (9, 0.05) node (stop_date) {};             \begin{scope}[on grid]                 \node (utility_first) [event = gray] at (-1, 1.25) {$1^{st}$ loan\\utilization};                   \draw [gray!50] (utility_first) -- (paid_date);                   \node (start_monitoring) [event = gray] at (1, 1.25) {start\\monitoring};                   \draw [gray!50] (start_monitoring) -- (paid_date);                   \node (paid_back) [event = gray] at (2.75, 1.25) {$1^{st}$ loan\\paid back};                   \draw [gray!50] (paid_back) -- (paid_back_date);                   \node (utility_second) [event = gray] at (7, 1.25) {$2^{nd}$ loan\\utilization};                   \draw [gray!50] (utility_second) -- (next_paid_date);                   \node (stop_monitoring) [event = gray] at (9, 1.25) {stop\\monitoring};                   \draw [gray!50] (stop_monitoring) -- (stop_date);               \end{scope}               \draw [decorate, decoration = {brace, amplitude = 10pt, mirror}, xshift = 0pt, yshift = -42pt]               ($(paid_back_date.south) + (0, -0.5)$) -- ($(stop_date.south) + (0, -0.5)$) node [black, midway, xshift = 0cm, yshift = -0.6cm] {\scriptsize ``real'' $2^{nd}$ loan utilization period under monitoring = $335$ days};           \end{tikzpicture}       \end{document}      what I want is to have the caption for the brace displayed in two lines instead of 1. Any help would be greatly appreciated!


title: Can I get at stuff in "current page" or "recent contributions"?

text: When I compile the following,               \documentclass[a4paper]{article}          \usepackage{atbegshi}          \AtBeginShipout{\showlists}     \showboxdepth\maxdimen     \showboxbreadth\maxdimen          \usepackage{lipsum}          \newcommand\fnlipsum[1]     {%       \begingroup         \let\par\relax         \lipsum[#1]\footnote{\lipsum[#1]}       \endgroup       \par     }               \begin{document}          \fnlipsum{1}     \fnlipsum{2}     \fnlipsum{3}     \fnlipsum{4}          \end{document}      then I see in the log file under               ### current page: (held over for next output)      as well as under               ### recent contributions:      some stuff in `\insert253`, on the current page the rest of footnote 3 which was split off from page 1, and in recent contributions the footnote 4 still embedded in the split off text from the main vertical list. Now my questions:   1. Where are "current page" and "recent contributions"? Are they boxes? Can I get at them? With LuaTeX maybe?   2. I'd like to filter out the insertions, that is, extract the material they contain and remove them from their respective places (respectively, replace them by other inserts). Is this possible?


title: Trying to justify headers of table

text: What I'm trying to do is put a block of text in the upper left and lower right of a table. I cannot use a caption or block of text, because the tables I have span more than one page. And the statement has to appear again when the table continues to a second page. The sample block of code I am working with is as follows:               \documentclass[amsfonts]{article}     \usepackage[margin=2.5cm]{geometry}     \usepackage{longtable}     \usepackage{threeparttable}     \usepackage{threeparttablex}     \usepackage{booktabs}     \nofiles     \usepackage{hyperref}     \hypersetup{colorlinks=true,urlcolor=blue}     \usepackage[table]{xcolor}     \definecolor{Gray}{gray}{0.85}     \begin{document}     \subsection*{Sample Table:}     \begin{ThreePartTable}     \begin{longtable}[H]{|l|l|l|l|l|l|}     \multicolumn{6}{l}{Upper mark} \\     \endhead     \multicolumn{6}{r}{Lower mark} \\     \endfoot     \hline     \rowcolor{Gray}     Col One & Col Two & Col Three & Col Four & Col Five & Col Six\\\hline     {{ var.one }} & {{ var.two }} & {{ var.three }} & {{ var.four }} & {{ var.five }} & {{ var.six }} \\\hline     \end{longtable}     \end{ThreePartTable}     \end{document}      ![Sample table created](http://i.stack.imgur.com/MiQPA.png) Any ideas on how to get this working?


title: tikz ovelapping bars

text: The following code               \documentclass[12pt,a4paper,onecolumn, openright]{report}          \usepackage{pgfplots}     \usepackage{tikz}          \begin{document}          \begin{figure}     \centering     \begin{tikzpicture}         \begin{axis}[             ybar,             ymin=0,             width  = 12cm,             height = 5cm,             bar width=5pt,             ylabel={number of participants},             nodes near coords,             symbolic x coords={wells,leemput,wang, proposed,wells,leemput,wang, proposed,wells,leemput,wang, proposed},             xtick = data,             enlarge y limits={value=0.2,upper},             legend pos=north west         ]         \addplot[fill=blue] coordinates {(wells, 1) (leemput, 2) (wang, 3) (proposed, 4) (wells, 4)(leemput, 2) (wang, 3) (proposed, 4)(wells, 4)(leemput, 2) (wang, 3) (proposed, 4)};         \addplot[fill=red] coordinates {(wells, 3) (leemput, 2) (wang, 8) (proposed, 4)(wells, 4)(leemput, 2) (wang, 3) (proposed, 4)(wells, 4)(leemput, 2) (wang, 3) (proposed, 4)};         \end{axis}     \end{tikzpicture}     \caption{JS of GM}     \end{figure}          \end{document}      produces ![enter image description here](http://i.stack.imgur.com/178c2.png)


title: The packages imports and probsoln seem to be incompatible

text: I want to establish lists of exam questions using `probsoln`. To keep things neatly arranged I want to keep the lists separated from the exams as I use a dedicated folder for each term and for each subject. Subjects might share questions. To include the files in the LaTeX main document I need `import` to drag the files with proper subdirectory calls. As a minimal demonstration example I isolated the following structure:               .     |-test_exam     |     +-main.tex     |-examquestions           |-sampleFigures           |    +erdbeeren.jpg           +-q.tex           +-mainlocal.tex      main.tex:               \documentclass{article}     \usepackage{import}     \usepackage{probsoln}     \RequirePackage{graphicx}               \begin{document}         \subimport*{../examquestions/}{q}         \useproblem{1}     \end{document}      q.tex:               \begin{defproblem}{1}%         \includegraphics[keepaspectratio,width=3cm]{sampleFigures/erdbeeren.jpg}     \end{defproblem}      mainlocal.tex:               \documentclass{article}     \usepackage{import}     \usepackage{probsoln}     \RequirePackage{graphicx}               \begin{document}         \input{q}         \useproblem{1}     \end{document}      with main.tex compiled in pdflatex I get:               LaTeX Warning: File `sampleFigures/erdbeeren.jpg' not found on input line 9.      If I use mainlocal.tex, everything is OK. Therefore, the general structure in q.tex must be OK. I guess, `probsoln` fetches the problem code (from `defproblem`) from a kind of variable and substitutes it at the place of `useproblem`. This would undermine the attempt of `import` to provide the proper directories. I haven't found anything about that problem while searching the web. Background: I have quite some experience in writing LaTeX documents, but do not mess with internals. Edit (Fre Feb 14 19:06:29 CET 2014): I found an ugly workaround: main.tex:               \documentclass{article}     \usepackage{import}     \usepackage{probsoln}     \RequirePackage{graphicx}          \newcommand{\examquestionspath}{../examquestions/}          \begin{document}         \input{\examquestionspath q}         \useproblem{1}     \end{document}      q.tex:               \begin{defproblem}{1}%         \includegraphics[keepaspectratio,width=3cm]{\examquestionspath  sampleFigures/erdbeeren.jpg}     \end{defproblem}      This is by far not satisfacory, but will serve me for the time being until a real solution might appear magically from somewhere.


title: Automatically get (ymin,ymax) and (xmin,xmax) in pgfplots

text: I am plotting some 2D data from a file using pgfplots. Is it possible to automatically get (ymin,ymax) and (xmin,xmax) from the file I am trying to plot? I don't want to keep changing these each time I plot a different file. Not setting these ranges will leave some undesired white spaces in my plots.


title: Latex picture caption without text

text: > **Possible Duplicate:**   >  Remove colon in the caption of a figure if the caption is empty I want to add a picture with caption `Figure 1`, but without any additional text. I want the autonumbering. If I do this               \begin{figure}[h!]       \caption{}       \includegraphics{graphics}     \end{figure}      I got `Figure 1:` in the result, which looks ugly. I want just `Figure 1` in the text. I will explain elsewhere what the figure means. Can I do that?


title: Figure numbering without caption

text: I would like to add a simple caption "Figure [number]" before an image in my document. If I just use               \begin{figure}[h!]     \centering     \includegraphics[scale=0.5]{galor3.png}     \end{figure}      there is no caption. If I add               \caption{}      I get the caption "Figure 1.1:". Of course, this code generates a colon, because it expects some caption after the figure number. I would like to have the images numbered without the colon. Is it possible? Thanks


title: LuaTeX: Strange symbol proportions when using Minion Pro for math

text: I'm writing my master's thesis in Minion Pro using LyX and I would like to use that font for math, too. For PDF output I use LuaTeX due to several nice features I got used to in the past (such as easy font configuration). To get Minion Pro to work in math I use the following code in my preamble (copied from http://tex.stackexchange.com/a/38093):               \usepackage{amsmath} % always load before mathspec or unicode-math     \usepackage[math-style=ISO]{unicode-math} % try sans-style=upright     \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}     \setmainfont[Numbers={OldStyle,Proportional},SmallCapsFeatures={LetterSpace=6},%                  BoldFont={Myriad Pro Bold},BoldFeatures={LetterSpace=3}]{Minion Pro}     \setsansfont[Numbers={OldStyle,Proportional},LetterSpace=3]{Myriad Pro}     \setmonofont{Crystal}     \setmathfont{xits-math.otf}     \setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{Minion Pro}     \setmathfont[range=\mathsf/{num,latin,Latin,greek,Greek}]{Myriad Pro}     \setmathfont[range=\mathbfsf/{num,latin,Latin,greek,Greek}]{Myriad Pro Bold}     \setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]%                 {Minion Pro Italic}     \setmathfont[range=\mathsfit/{num,latin,Latin,greek,Greek}]%                 {Myriad Pro Italic}     \setmathfont[range=\mathbfsfit/{num,latin,Latin,greek,Greek}]%                 {Myriad Pro Bold Italic}     \setmathfont[range=\mathtt->\mathup]{Crystal}     \let\mathbf\mathbfsf     \let\mathbfit\mathbfsfit     \AtBeginDocument{\let\phi\varphi}      It works nearly as expected but the symbols like `sqrt` etc that `xits-math` provides look really strange: ![Formular using Minion Pro and xits-math](http://i.stack.imgur.com/7jSR0.png) Is there a way to fix this or (maybe even better?) another solution to achieve good looking formulas with Minion Pro using LuaTeX? (I know there is `MnSymbol` but I couldn't get it to work correctly with LuaTeX neither. I also don't want to use `Minion Math` because I prefer solutions that are free (at least free as in free beer)). Thanks in advance!


title: Error: Font \l_tmpa_font has only 8 fontdimen parameters

text: I get the above error when I try to use my main font for the math letters. If I leave out the `\sqrt[3]{2}` bit, it works but gives a load of complaints about not having the OpenType feature `'Style=MathScriptScript' (+ssty)` available in Calluna. (If you don't have Calluna: TeX Gyre Pagella shows the same behaviour.) What can I do?               \documentclass{article}     \usepackage{xltxtra}     \usepackage{fontspec}     \setmainfont{Calluna}%     \setsansfont{Calluna Sans}     \usepackage{unicode-math}     \setmathfont{TeX Gyre Termes Math}     % If one ore more of the following three lines are included ...     % \setmathfont[range=\mathup/{latin,Latin}]{Calluna}     % \setmathfont[range=\mathit/{latin,Latin}]{Calluna-Italic}     % \setmathfont[range=\mathbfup/{latin,Latin}]{Calluna-Bold}     \begin{document}\noindent\LARGE          % ... this would still work, but fontspec will nag about missing +ssty:         $a = -\frac{1}{2}$\\         % ... but this won't work at all:         $a = -\frac{1}{\sqrt[3]{2}}$     \end{document}


title: Can I embed Futura to my web site and distribute the file through CSS code?

text: I would like to use Futura on my web page. I want to embed the font using:                font-family: 'Futura';      src: url('future.eot')       (or equivalent.) I've tried searching on the internet extensively to see if this is ok regarding licences and royalties but could not figure it out. My question is, can I do it? Is it ok legally? If not, which other free font would you recommend?


title: Mathpazo has broken \left and \right

text: If I use `mathpazo` then it seems that `\left\Vert` and `\right\Vert` generate the wrong size in one case:                \documentclass[11pt]{article}      \usepackage{mathpazo}      \begin{document}      {\Large $\left\Vert X_f\right\Vert$}      {\large $\left\Vert X_f\right\Vert$}      {\normalsize $\left\Vert X_f\right\Vert$}      {\small $\left\Vert X_f\right\Vert$}      {\footnotesize $\left\Vert X_f\right\Vert$}      {\scriptsize $\left\Vert X_f\right\Vert$}      {\tiny $\left\Vert X_f\right\Vert$}      \end{document}      Notice how the fourth `\Vert` is the wrong size: ![enter image description here](http://i.stack.imgur.com/HTkC8.png) Is this a bug or a feature? And how to I get rid of it? Saying "do not use `\left` and `\right`" is not a valid answer until you also suggest how I might get the following macro working without them:               \newcommand{\trunc}[2]{\mathopen{}\left\Vert #2\right\Vert_{#1}\mathclose{}}      It has to be one macro, the book is already written using it. As far as I am concerned this is not my fault, but that of `mathpazo`.


title: variable sized harpoon delimiter

text: I would like to have a variable sized delimiter version of the ams symbols `\downharpoonleft`, `\downharpoonright` and `\upharpoonleft`, `\upharpoonright` respectively, such that they work with `\left` and `\right`. Is there any package that provides something like that? ![Excerpt from symbols-a4.pdf](http://i.stack.imgur.com/AhIUL.png)


title: Problems embedding a video with multimedia an media9

text: I am making a presentation with beamer and have problems embedding a video. When I use the multimedia package, Adobe Reader crashes, when I use the media9 package, it exceeds the memory capacity. This is the code with multimedia:               \documentclass[transparent,dvips]{beamer}% if you use latex dvips ps2pdf     \usepackage{multimedia}          \begin{document}          \begin{frame}     \movie[width=10cm,height=8cm]{blabla}{x_unknown.avi}     \end{frame}          \end{document}      This is the code with media9:               \documentclass[transparent,dvips]{beamer}% if you use latex dvips ps2pdf     \usepackage{media9}          \begin{document}          \begin{frame}     \includemedia[      width=10cm,height=8cm,       addresource=x_unknown.FLV,       flashvars={source=x_unknown.FLV}]{blabla}{VPlayer.swf}     \end{frame}          \end{document}      The FLV file is 15.8 MB Has anyone any experience with those problems and know how to fix it? Thanks.


title: Automatic prefix in index for words with accented characters

text: When generating an index with French words, I need to add a prefix to accentuated words so they they get listed in alphabetical order:               \index{saintete@sainteté}     \index{ame@âme}      Is there a way to have this done automatically?


title: Shaded multicols II

text: In extending a previous question, Shaded multicols, how can I put rounded corners on the multicol environment, for the outer 4 corners (ie the corners directly next to the page margins) This question is only really relevant when multicol shading is used, or multicol borders are used, a solution contained in part I of this question (see above link). So main thing is that the environment needs to be able to page break mid way through. David Carlisle has suggested in one of the comments to patch the box command, but how can this be done to only round the left 2 corners for a left column, the right 2 corners for a right column and, no corners in a middle column (when there are 3 or more columns).


title: Which Editor is best for LaTeX?

text: Which Editor is best for LaTeX? 1\. WinEdt 2\. TeXmaker 3\. TeXStudio 4\. TeXworks 5\. TXC.


title: how to debug a backreferencing problem

text: I am using `classicthesis` package version 4.1. Also I am using the bibliography style file, `abbrvunsrtnat.bst`, posted here. I have a problem with using back-referencing. I have more than 70 citations in my document. Among these citations, there are three citations that don't have the `Cited on page x` at the end of the citation in the bibliography section of the document. The rest of the references are perfectly fine and has the back-reference correctly. In below, please find a `MWE`.               \documentclass[                     openright,                     titlepage, numbers=noenddot, headinclude,%1headlines,                     footinclude=true, cleardoublepage=empty,                     BCOR=30mm, paper=letter, fontsize=11pt, % Binding correction, paper type and font size                     ngerman, american, % Languages                     ]{scrreprt}               \PassOptionsToPackage{%                         eulerchapternumbers,                         listings,                         pdfspacing,                         subfig,                         beramono,                         parts}{classicthesis}               \PassOptionsToPackage{square,numbers,sort&compress}{natbib}      \usepackage{natbib}               \usepackage[position=t,singlelinecheck=off,font={it}]{subfig}                    \PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}     \usepackage{hyperref}  % backref linktocpage pagebackref     \pdfcompresslevel=9     \pdfadjustspacing=1          \hypersetup{                 colorlinks=true, linktocpage=true, pdfstartpage=1, pdfstartview=FitV,                 breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,                 plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,                 hypertexnames=true, pdfhighlight=/O, %     }             \usepackage{ifthen} % Allows the user of the \ifthenelse command     \newboolean{enable-backrefs} % Variable to enable backrefs in the bibliography     \setboolean{enable-backrefs}{true} % Variable value: true or false          % ---------------------------------------------------------------------------------------     \newcommand{\backrefnotcitedstring}{\relax} % (Not cited.)     \newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}     \newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}     \ifthenelse{\boolean{enable-backrefs}} % If backrefs were enabled     {             \PassOptionsToPackage{hyperpageref}{backref}             \usepackage{backref} % to be loaded after hyperref package                      \renewcommand{\backreftwosep}{ and~} % separate 2 pages                     \renewcommand{\backreflastsep}{, and~} % separate last of longer list                     \renewcommand*{\backref}[1]{}  % disable standard                     \renewcommand*{\backrefalt}[4]{% detailed backref                     \ifcase #1                          \backrefnotcitedstring                     \or                         \backrefcitedsinglestring{#2}                     \else                         \backrefcitedmultistring{#2}                     \fi}     }{\relax}           \usepackage{classicthesis}          \begin{document}     This is test for back-referencing. \citep{ref1,ref2,ref3,ref4}.                \bibliographystyle{abbrvunsrtnat}          \bibliography{Bibliography}          \end{document}      The problem is in the citation in the form of `\citep{ref1,ref2,ref3,ref4}`. When I separate it to `\citep{ref1}`, `\citep{ref2}`, `\citep{ref3}`, `\citep{ref4}` the backreferencing starts working properly. What would be the steps to debug and find the cause of the problem? I found this post which is for two years ago and presented a few solutions. All my packages are up-to-date. However, it seems that the patch that was given in here has not been applied to `natbib.sty`. Is there any reason for not applying the patch in the latest version of `natbib`?


title: Split Table of Contents but not Summary

text: I use `\shorttoc` to have a short table of contents at the beginning and `\tableofcontents` for a complete table of contents at the end. I need to split the complete table of contents BUT NOT the shorter one. Hopefully the minimal example below will explain this and why. Now if I use               \addtocontents{toc}{\protect\pagebreak}      at the point I want the pagebreak to occur, then it will affect (in a rather ugly way) the short table of contents as well. Minimal Example:               \documentclass[11pt,b5paper]{book}          \usepackage[tight]{shorttoc}          \begin{document}          \shorttoc{\centerline{\large{SOMMAIRE}}}{0}          \chapter{Chapter} \section{Section} \section{Another section} \section{Yet another section}     \chapter{Chapter} \section{Section} \section{Another section} \section{Yet another section}     \chapter{Chapter} \section{Section} \section{Another section} \section{Yet another section}     \chapter{Chapter} \section{Section} \section{Another section} \section{Yet another section}     \addtocontents{toc}{\protect\pagebreak}     \chapter{Chapter} \section{Section} \section{Another section} \section{Yet another section}     \chapter{Last Chapter}                \tableofcontents               \end{document}


title: How to typeset music dynamics within normal text

text: Although it should be possible to create a single musical dynamic symbol (like **_ff_** for _fortissimo_ or **_sfz_** for _sforzato_ ) by creating an in-line lilypond-book fragment, hiding the staff etc. and somehow centering these symbols around an invisible note, I was wondering if there was a simpler way to do the same? Is there a workaround in LaTeX for this which would not require invoking lilypond-book for only putting a simple dynamic symbol?


title: Curly brackets don't show.

text: I'm typing in LaTeX on a Linux machine (Ubuntu) using Emacs (for typing and compiling). If I type (in mathematical environment)               \left\{blah blah\right\}      I don't see any brackets at all. If I type               \{ blah blah \}      the brackets are not scaled. How can I fix this? Edit It must have been mistype or something, now everything works...


title: UK CV templates

text: I am looking for a UK CV style layout in LaTex, the only ones I seem to be able to find are all American based. Can anyone point me in the right direction.


title: Splitting a 2-column very long table into various multiple columns across different pages

text: I have a 645-row table to be included in one article appendix. Such table has only two narrow columns where each row is composed of a Month-Year in the first cell and one date in the last cell of the row (e.g.: MMM-YY & YYYYyMMmDD\\\\). The table caption is "Schedule", the header is Month & Date\\\, and for some 12 dates I would include a single common footnote observation note in the footer (something like, "Industrial action days."). Rather than a longtable that would span across more than 20 portrait A4 pages with only two narrow columns lost in the middle of the page, I was wondering if there is a way of automatically putting the first (say 3 or 4 or 5) two- column pages side by side in one single "table" (or the first part of a longtable) until they fill the \textwidth of the first page before repeating the whole process over the next pages and finish accommodating all the 645 rows of table data. As a result, instead of more than 20 pages, such appendix table would have 4 to 6 pages, where the third column of each page follows from the first, the fourth from the second, and so on. The solutions I have seen so far seem to encourage the use of the tabular environment but that entails manually splitting the tables (which I can do but I find this sub-optimal, first, because I have too many rows; second, if I change the table font size, or the margins, or the orientation of the page, I have to reorder everything manually again). If I had to do this manually, I would be able to fit 8 columns along the text width, each page would have 38 rows and the table header would be:               multicolumn{1}{c}{Month} &      multicolumn{1}{c}{Date} &      multicolumn{1}{c}{Month} &     multicolumn{1}{c}{Date} &      multicolumn{1}{c}{Month} &      multicolumn{1}{c}{Date} &      multicolumn{1}{c}{Month} &      multicolumn{1}{c}{Date}\\      Would anyone know of a better way to handle such a table in a more automatic way? By the way, I prefer to add footnotes manually in the footer of the (long) table. E.g., in a longtable environment, I would have a row that would say:               Mar-49 & 1949M03D20$^{\dagger}$ \\      whereas in the footer, I would have something like:               \\[-2ex]     \midrule      \\[-2ex]       \multicolumn{8}{l}{\noindent\parbox{\textwidth}{\footnotesize{\textit{\textbf{Notes}}:     $\dagger$ Industrial action days.}}}\\      \multicolumn{8}{r}{\textit{Continued $\ldots$}}\\      \endfoot      If there is an automatic way to perform what I am willing to achieve, would you also happen to know how I could obtain the same kind of manual footnote as in above? The same question would apply to the header of such a longtable. I would really appreciate any comments as I have been struggling with the formatting of this table for a while now. I am sorry if this question is an exact repeat. In case it is, could you please refer me to where the answer is? Thank you very much. NB: Just to have an idea of the article page layout and the packages I am using, in the document preamble, as well as some sample data, I have the following:               \documentclass[a4paper,fleqn,openbib,11pt]{article}          \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{array}     \usepackage{appendix}     \usepackage{booktabs}     \usepackage{caption}     \usepackage{dcolumn}     \usepackage{float}     \usepackage{graphicx}     \usepackage{longtable}     \usepackage{lscape}     \usepackage{multirow}     \usepackage{rotating}     \usepackage{tabularx}          \setcounter{MaxMatrixCols}{10}     \renewcommand{\baselinestretch}{1.25}     \setlength{\oddsidemargin}{0.1cm}     \setlength{\headheight}{0cm}     \setlength{\headsep}{0cm}     \setlength{\topmargin}{0cm}     \setlength{\topskip}{0cm}     \setlength{\textwidth}{16cm}     \setlength{\textheight}{23.5cm}     \setlength{\parindent}{10 mm}     \newtheorem{theorem}{Theorem}     \newtheorem{acknowledgement}[theorem]{Acknowledgement}     \newtheorem{algorithm}[theorem]{Algorithm}     \newtheorem{axiom}[theorem]{Axiom}     \newtheorem{case}[theorem]{Case}     \newtheorem{claim}[theorem]{Claim}     \newtheorem{conclusion}[theorem]{Conclusion}     \newtheorem{condition}[theorem]{Condition}     \newtheorem{conjecture}[theorem]{Conjecture}     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{criterion}[theorem]{Criterion}     \newtheorem{definition}[theorem]{Definition}     \newtheorem{example}[theorem]{Example}     \newtheorem{exercise}[theorem]{Exercise}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{notation}[theorem]{Notation}     \newtheorem{problem}[theorem]{Problem}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{remark}[theorem]{Remark}     \newtheorem{solution}[theorem]{Solution}     \newtheorem{summary}[theorem]{Summary}     \newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}     \newcolumntype{d}{D{.}{.}{3.4}}     \makeatletter     \def\@biblabel#1{\hspace*{-\labelsep}}     \makeatother          \begin{document}     \section{Main Section}          This article includes an example of an appendix longtable with 645 rows of data in only two columns to be split into various two-column to fill one page and carry on filling over the next pages.          \bigskip          \appendix     \section{Appendix}     \begin{center}     \begin{small}     \begin{longtable}{ >{\centering\arraybackslash}p{.5\textwidth}      >{\raggedright\arraybackslash}m{.5\textwidth}}              Oct-53 & 1953M10D20$^{\dagger}$ \kill          \caption{Schedule}\\     \toprule[1pt]     \multicolumn{1}{c}{Month} &      \multicolumn{1}{c}{Date}\\[0.5ex]     \toprule     \endfirsthead          \caption[ ] {Schedule \textit{Continued $\ldots$}}\\     \toprule[1pt]     \multicolumn{1}{c}{Month} &      \multicolumn{1}{c}{Date}\\[0.5ex]     \toprule     \endhead          \\[-2ex]     \midrule      \\[-2ex]       \multicolumn{2}{l}{\noindent\parbox{\textwidth}{\footnotesize{\textit{\textbf{Notes}}:     $\dagger$ Industrial action days.}}}\\      \multicolumn{2}{r}{\textit{Continued $\ldots$}}\\      \endfoot          \\[-2ex]     \bottomrule[1pt]     \\[-2ex]     \multicolumn{2}{l}{\noindent\parbox{\textwidth}{\footnotesize{\textit{\textbf{Notes}}:     $\dagger$ Industrial action days.}}}\\      \multicolumn{2}{r}{\textit{The End}}\\     \endlastfoot          Jan-49 & 1949M01D20 \\     Feb-49 & 1949M02D20 \\     Mar-49 & 1949M03D20$^{\dagger}$ \\     Apr-49 & 1949M04D20 \\     May-49 & 1949M05D20 \\     Jun-49 & 1949M06D20 \\     Jul-49 & 1949M07D20 \\     Aug-49 & 1949M08D20 \\     Sep-49 & 1949M09D20 \\     Oct-49 & 1949M10D20 \\     Nov-49 & 1949M11D20 \\     Dec-49 & 1949M12D20 \\     Jan-50 & 1950M01D20 \\     Feb-50 & 1950M02D20 \\     Mar-50 & 1950M03D20$^{\dagger}$ \\     Apr-50 & 1950M04D20 \\     May-50 & 1950M05D20 \\     Jun-50 & 1950M06D20 \\     Jul-50 & 1950M07D20 \\     Aug-50 & 1950M08D20 \\     Sep-50 & 1950M09D20 \\     Oct-50 & 1950M10D20 \\     Nov-50 & 1950M11D20 \\     Dec-50 & 1950M12D20 \\     Jan-51 & 1951M01D20 \\     Feb-51 & 1951M02D20 \\     Mar-51 & 1951M03D20 \\     Apr-51 & 1951M04D20 \\     May-51 & 1951M05D20 \\     Jun-51 & 1951M06D20 \\     Jul-51 & 1951M07D20 \\     Aug-51 & 1951M08D20 \\     Sep-51 & 1951M09D20 \\     Oct-51 & 1951M10D20 \\     Nov-51 & 1951M11D20 \\     Dec-51 & 1951M12D20 \\     Jan-52 & 1952M01D20 \\     Feb-52 & 1952M02D20 \\     Mar-52 & 1952M03D20 \\     Apr-52 & 1952M04D20 \\     May-52 & 1952M05D20 \\     Jun-52 & 1952M06D20 \\     Jul-52 & 1952M07D20 \\     Aug-52 & 1952M08D20 \\     Sep-52 & 1952M09D20 \\     Oct-52 & 1952M10D20 \\     Nov-52 & 1952M11D20 \\     Dec-52 & 1952M12D20 \\     Jan-53 & 1953M01D20 \\     Feb-53 & 1953M02D20 \\     Mar-53 & 1953M03D20 \\     Apr-53 & 1953M04D20 \\     May-53 & 1953M05D20 \\     Jun-53 & 1953M06D20 \\     Jul-53 & 1953M07D20 \\     Aug-53 & 1953M08D20 \\     Sep-53 & 1953M09D20 \\     Oct-53 & 1953M10D20$^{\dagger}$ \\     Nov-53 & 1953M11D20 \\     Dec-53 & 1953M12D20 \\     Jan-54 & 1954M01D20 \\     Feb-54 & 1954M02D20 \\     Mar-54 & 1954M03D20 \\     Apr-54 & 1954M04D20 \\     May-54 & 1954M05D20 \\     Jun-54 & 1954M06D20 \\     Jul-54 & 1954M07D20 \\     Aug-54 & 1954M08D20 \\     Sep-54 & 1954M09D20 \\     Oct-54 & 1954M10D20 \\     Nov-54 & 1954M11D20 \\     Dec-54 & 1954M12D20 \\     Jan-55 & 1955M01D20 \\     Feb-55 & 1955M02D20 \\     Mar-55 & 1955M03D20 \\     Apr-55 & 1955M04D20 \\     May-55 & 1955M05D20 \\     Jun-55 & 1955M06D20 \\     Jul-55 & 1955M07D20 \\     Aug-55 & 1955M08D20 \\     Sep-55 & 1955M09D20 \\     Oct-55 & 1955M10D20 \\     Nov-55 & 1955M11D20 \\     Dec-55 & 1955M12D20 \\     Jan-56 & 1956M01D20 \\     Feb-56 & 1956M02D20 \\     Mar-56 & 1956M03D20 \\     Apr-56 & 1956M04D20 \\     May-56 & 1956M05D20 \\     Jun-56 & 1956M06D20 \\     Jul-56 & 1956M07D20 \\     Aug-56 & 1956M08D20 \\     Sep-56 & 1956M09D20 \\     Oct-56 & 1956M10D20 \\     Nov-56 & 1956M11D20 \\     Dec-56 & 1956M12D20 \\     Jan-57 & 1957M01D20 \\     Feb-57 & 1957M02D20 \\     Mar-57 & 1957M03D20 \\     Apr-57 & 1957M04D20 \\     May-57 & 1957M05D20 \\     Jun-57 & 1957M06D20 \\     Jul-57 & 1957M07D20$^{\dagger}$ \\     Aug-57 & 1957M08D20 \\     Sep-57 & 1957M09D20 \\     Oct-57 & 1957M10D20 \\     Nov-57 & 1957M11D20 \\     Dec-57 & 1957M12D20 \\     Jan-58 & 1958M01D20 \\     Feb-58 & 1958M02D20 \\     Mar-58 & 1958M03D20 \\     Apr-58 & 1958M04D20 \\     May-58 & 1958M05D20 \\     Jun-58 & 1958M06D20 \\     Jul-58 & 1958M07D20 \\     Aug-58 & 1958M08D20 \\     Sep-58 & 1958M09D20 \\     Oct-58 & 1958M10D20 \\     Nov-58 & 1958M11D20 \\     Dec-58 & 1958M12D20 \\     Jan-59 & 1959M01D20 \\     Feb-59 & 1959M02D20 \\     Mar-59 & 1959M03D20 \\     Apr-59 & 1959M04D20 \\     May-59 & 1959M05D20$^{\dagger}$ \\     Jun-59 & 1959M06D20$^{\dagger}$ \\     Jul-59 & 1959M07D20 \\     Aug-59 & 1959M08D20 \\     Sep-59 & 1959M09D20 \\     Oct-59 & 1959M10D20 \\     Nov-59 & 1959M11D20 \\     Dec-59 & 1959M12D20 \\     Jan-60 & 1960M01D20 \\     Feb-60 & 1960M02D20 \\     Mar-60 & 1960M03D20 \\     Apr-60 & 1960M04D20 \\     May-60 & 1960M05D20 \\     Jun-60 & 1960M06D20 \\     Jul-60 & 1960M07D20 \\     Aug-60 & 1960M08D20 \\     Sep-60 & 1960M09D20 \\     Oct-60 & 1960M10D20 \\     Nov-60 & 1960M11D20 \\     Dec-60 & 1960M12D20 \\     Jan-61 & 1961M01D20 \\     Feb-61 & 1961M02D20 \\     Mar-61 & 1961M03D20 \\     Apr-61 & 1961M04D20 \\     May-61 & 1961M05D20 \\     Jun-61 & 1961M06D20 \\     Jul-61 & 1961M07D20 \\     Aug-61 & 1961M08D20 \\     Sep-61 & 1961M09D20 \\     Oct-61 & 1961M10D20 \\     Nov-61 & 1961M11D20 \\     Dec-61 & 1961M12D20 \\     Jan-62 & 1962M01D20 \\     Feb-62 & 1962M02D20 \\     Mar-62 & 1962M03D20 \\     Apr-62 & 1962M04D20 \\     May-62 & 1962M05D20 \\     Jun-62 & 1962M06D20 \\     Jul-62 & 1962M07D20 \\     Aug-62 & 1962M08D20 \\     Sep-62 & 1962M09D20 \\     Oct-62 & 1962M10D20 \\     Nov-62 & 1962M11D20 \\     Dec-62 & 1962M12D20 \\     Jan-63 & 1963M01D20 \\     Feb-63 & 1963M02D20 \\     Mar-63 & 1963M03D20$^{\dagger}$ \\     Apr-63 & 1963M04D20 \\     May-63 & 1963M05D20 \\     Jun-63 & 1963M06D20 \\     Jul-63 & 1963M07D20 \\     Aug-63 & 1963M08D20 \\     Sep-63 & 1963M09D20 \\     Oct-63 & 1963M10D20 \\     Nov-63 & 1963M11D20 \\     Dec-63 & 1963M12D20 \\     Jan-64 & 1964M01D20 \\     Feb-64 & 1964M02D20 \\     Mar-64 & 1964M03D20 \\     Apr-64 & 1964M04D20 \\     May-64 & 1964M05D20 \\     Jun-64 & 1964M06D20 \\     Jul-64 & 1964M07D20 \\     Aug-64 & 1964M08D20 \\     Sep-64 & 1964M09D20 \\     Oct-64 & 1964M10D20 \\     Nov-64 & 1964M11D20 \\     Dec-64 & 1964M12D20 \\     Jan-65 & 1965M01D20$^{\dagger}$ \\     Feb-65 & 1965M02D20 \\     Mar-65 & 1965M03D20 \\     Apr-65 & 1965M04D20 \\     May-65 & 1965M05D20 \\     Jun-65 & 1965M06D20 \\     Jul-65 & 1965M07D20 \\     Aug-65 & 1965M08D20 \\     Sep-65 & 1965M09D20 \\     Oct-65 & 1965M10D20 \\     Nov-65 & 1965M11D20 \\     Dec-65 & 1965M12D20 \\     Jan-66 & 1966M01D20 \\     Feb-66 & 1966M02D20 \\     Mar-66 & 1966M03D20 \\     Apr-66 & 1966M04D20 \\     May-66 & 1966M05D20 \\     Jun-66 & 1966M06D20 \\     Jul-66 & 1966M07D20 \\     Aug-66 & 1966M08D20 \\     Sep-66 & 1966M09D20 \\     Oct-66 & 1966M10D20 \\     Nov-66 & 1966M11D20 \\     Dec-66 & 1966M12D20 \\     Jan-67 & 1967M01D20 \\     Feb-67 & 1967M02D20 \\     Mar-67 & 1967M03D20 \\     Apr-67 & 1967M04D20 \\     May-67 & 1967M05D20 \\     Jun-67 & 1967M06D20 \\     Jul-67 & 1967M07D20 \\     Aug-67 & 1967M08D20 \\     Sep-67 & 1967M09D20 \\     Oct-67 & 1967M10D20 \\     Nov-67 & 1967M11D20 \\     Dec-67 & 1967M12D20 \\     Jan-68 & 1968M01D20 \\     Feb-68 & 1968M02D20 \\     Mar-68 & 1968M03D20 \\     Apr-68 & 1968M04D20 \\     May-68 & 1968M05D20 \\     Jun-68 & 1968M06D20 \\     Jul-68 & 1968M07D20 \\     Aug-68 & 1968M08D20 \\     Sep-68 & 1968M09D20 \\     Oct-68 & 1968M10D20 \\     Nov-68 & 1968M11D20 \\     Dec-68 & 1968M12D20 \\     Jan-69 & 1969M01D20 \\     Feb-69 & 1969M02D20 \\     Mar-69 & 1969M03D20 \\     Apr-69 & 1969M04D20 \\     May-69 & 1969M05D20 \\     Jun-69 & 1969M06D20 \\     Jul-69 & 1969M07D20 \\     Aug-69 & 1969M08D20 \\     Sep-69 & 1969M09D20 \\     Oct-69 & 1969M10D20 \\     Nov-69 & 1969M11D20 \\     Dec-69 & 1969M12D20 \\     Jan-70 & 1970M01D20 \\          \end{longtable}     \end{small}     \end{center}     \label{tab:DeepHistory_GDP}%     \bigskip     \clearpage          \begin{thebibliography}{99}     \bibitem{Smith and Jones 2008} Smith and Jones (2008). Real Policy. ECB WP100.     \end{thebibliography}          \end{document}


title: Inhibit indentation in paragraph after using the "quoting" package

text: A little while ago I asked this questions concerning how to quote in the style of "quotation" but without the first paragraph being indented. The answer I got was to use the `quoting` package instead of `quotation`. It worked as it should ... I thought. Only now I've noticed that the first paragraph after my quote gets indented when I use `quoting` \- and I don't want that. Is there any way to use `quoting` and not having the following paragraph af standard text being indented as when you use `quote` or `quotation`? (BTW I'm using LyX)


title: What's the shortcut for "small caps" with TextMate4?

text: I've looked for this online for some time, but none of the various TextMate cheat sheets provide a shortcut rather than simply writing `\textsc{X}`. I'd like to highlight some block of text and make it into small caps. http://g-design.net/textmate.pdf


title: What is the counter name for verbments?

text: I'm trying to use the `verbments` package with the `cleveref` package. I need to find the name of the counter which is usually used for `\ref{listing_label}` to be able to define the name `cleveref` uses for it.


title: Test if token is a control sequence

text: Sometimes more complex (La)TeX macros test the next input token and branch dependent on its type. I'm aware how to test for catcodes and character codes, but sometimes I like to handle control sequences (macros, primitives, i.e. `\` followed by letters (catcode 11) and also the product of `\csname ...\endcsname`) in a special way. Is there a suitable test which tells if a token, read as macro argument, is a control sequence? The token must not be expanded beforehand. I like to avoid using `\string` and looking for a leading `\`, because this depends on the value of `\escapechar` which could have been changed locally. Using `\meaning` and testing for a leading `macro` doesn't work for primitives like `\relax`. So basically I'm looking for a `\@ifcontrolsequence{<token>}{<true>}{<false>}` macro which will give _true_ for e.g. `\relax`, `\empty`, `\custommacro` and false for any other token. Active characters could be taken as an exception and treated either way. The macro should of course not break on any special tokens.


title: Bibliography - Increase horizontal white space after each entry

text: I would like to change the layout of my bibliography as follows: ![enter image description here](http://i.stack.imgur.com/vCZnr.png) Minimal Working Example Tex-File:               \documentclass{article}     \begin{document}          \title{My Article}     \author{Nobody Jr.}     \date{Today}     \maketitle          Blablabla said Nobody ~\cite{bressoud1989factorization}.               \bibliography{Master}     \bibliographystyle{alpha}          \end{document}      Master.bib:               @book{bressoud1989factorization,       title={Factorization and Primality Testing},       author={Bressoud, D.M.},       isbn={9780387970400},       lccn={89019690},       series={Undergraduate Texts in Mathematics},       year={1989},       publisher={Springer}     }


title: Emulating \@ifnextchar in expl3

text: I would like to write an expl3 version of the following.               \documentclass{article}     \makeatletter     \def\ie{i.e\@ifnextchar.{}{.\@{} }}     \makeatother          \pagestyle{empty}     \begin{document}     \noindent     \ie Hello\newline     \ie. Hello\newline     \end{document}      I'm aware of the `\peek_after:Nw` command, but I don't understand how to implement it. In fact, all the `\peek_...` commands seem to require you to explicitly feed it a _token_. I seem to have to write a command which takes arguments. I could try something like:               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn     \NewDocumentCommand{\eg}{ m }         {             e.g             \str_if_eq_x:nnF { . } { #1 }{.\@{} }         }     \ExplSyntaxOff     \pagestyle{empty}     \begin{document}     \noindent     \eg Hello\newline     \eg. Hello\newline     {\eg} Hello     \end{document}      But there are a couple of sticking points. First, because `\eg` is defined to take an argument, it gobbles up the following `H` in the first instance. `\ie` doesn't have this problem. (I could get around this by writing something like `\str_if_eq_x:nnF { . } { #1 }{.\@{} #1}`, but in my _real_ document for which all of this is a greatly reduced MWE, I run into more issues when `#1` contains something that's not a character.) Second, `{\eg}` creates an error because it's expecting an argument but encounters what it believes are _unbalanced_ parentheses. Again, `{\ie}` very nicely does not have this issue. So this approach is really not what I'm looking for. Here's my attempt at using `\peek_after:Nw`               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn          \cs_new:Nn \ae_eg:          {             \peek_after:Nw \ae_test_period:         }          \cs_new:Nn \ae_test_period:          {             \str_if_eq_x:nnF  { \l_peek_token }  { . }  { FALSE }         }          \NewDocumentCommand{\eg}{}         {             e.g \ae_eg:         }          \ExplSyntaxOff     \pagestyle{empty}     \begin{document}     \noindent     \eg. Hello\newline     \eg  Hello\newline     \end{document}      But `\l_peek_token` is never seen to be the same as `.`