title: How do I manually split a paragraph without \afterpage?

text: So I wrote a LaTeX package that would give me full-page floats: http://tex.stackexchange.com/a/84312/13450 Unfortunately, it introduces hard page breaks.               \documentclass[a5paper]{memoir}     \usepackage{picturepage}     \usepackage{mwe}     \begin{document}     \blindtext\blindtext          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam     lobortis facilisis sem. Nullam nec mi et neque pharetra sollicitudin.     Praesent imperdiet mi nec ante. Donec ullamcorper, felis non sodales     commodo, lectus velit ultrices augue, a dignissim nibh lectus     placerat pede. Vivamus nunc nunc, molestie ut, ultricies vel, semper     in, velit. Ut porttitor. Praesent in sapien. Lorem ipsum dolor     sit amet, consectetuer adipiscing elit. Duis fringilla tristique neque.     Sed interdum libero ut metus. Pellentesque placerat. Nam rutrum     augue a leo. Morbi sed elit sit amet ante lobortis sollicitudin. Praesent     blandit blandit mauris. Praesent lectus tellus, aliquet aliquam,     luctus a, egestas a, turpis. Mauris lacinia lorem sit amet ipsum.     Nunc quis urna dictum turpis accumsan semper. Lorem ipsum dolor     sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem.     Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet     mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus     velit ultrices augue, a dignissim nibh lectus placerat pede. Vivamus     nunc nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor.     Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer     adipiscing elit. Duis fringilla tristique neque. Sed interdum libero     ut metus. Pellentesque placerat. Nam rutrum augue a leo. Morbi     sed elit sit amet ante lobortis sollicitudin. Praesent blandit blandit     mauris. Praesent lectus tellus, aliquet aliquam, luctus a, egestas a,     turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum     turpis accumsan semper.     \picturepage{example-image-a}{Full-page image.}{fig:a}          \blindtext\blindtext          \blindtext\blindtext\blindtext\blindtext     \end{document}      So this obviously introduces an ugly page break (pages after the image not shown). ![ugly page break](http://i.stack.imgur.com/tKPZ4.png) Now usually, `\afterpage` is perfect for these kinds of cases.               \documentclass[a5paper]{memoir}     \usepackage{picturepage}     \usepackage{mwe}     \usepackage{afterpage}     \begin{document}     \blindtext\blindtext          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam     lobortis facilisis sem. Nullam nec mi et neque pharetra sollicitudin.     Praesent imperdiet mi nec ante. Donec ullamcorper, felis non sodales     commodo, lectus velit ultrices augue, a dignissim nibh lectus     placerat pede. Vivamus nunc nunc, molestie ut, ultricies vel, semper     in, velit. Ut porttitor. Praesent in sapien. Lorem ipsum dolor     sit amet, consectetuer adipiscing elit. Duis fringilla tristique neque.     Sed interdum libero ut metus. Pellentesque placerat. Nam rutrum     augue a leo. Morbi sed elit sit amet ante lobortis sollicitudin. Praesent     blandit blandit mauris. Praesent lectus tellus, aliquet aliquam,     luctus a, egestas a, turpis. Mauris lacinia lorem sit amet ipsum.     Nunc quis urna dictum turpis accumsan semper. Lorem ipsum dolor     sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem.     Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet     mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus     velit ultrices augue, a dignissim nibh lectus placerat pede. Vivamus     nunc nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor.     Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer     adipiscing elit. Duis fringilla tristique neque. Sed interdum libero     ut metus. Pellentesque placerat. Nam rutrum augue a leo. Morbi     sed elit sit amet ante lobortis sollicitudin. Praesent blandit blandit     mauris. Praesent lectus tellus, aliquet aliquam, luctus a, egestas a,     turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum     turpis accumsan semper.     \afterpage{\picturepage{example-image-a}{Full-page image.}{fig:a}}          \blindtext\blindtext          \blindtext\blindtext\blindtext\blindtext     \end{document}      For some reason I haven't been able to figure out, at least with `memoir`, this usage of `\afterpage` utterly ruins the page following the `\picturepage`. ![perfect page break, fucked up following page](http://i.stack.imgur.com/J8OIl.png) Now, going back to a more manual approach, one could notice that LaTeX breaks the first page after "amet ipsum." So introducing the page break there will of course make two paragraphs out of one. But as long as this fact could be visually concealed, this would be a workable solution (not a good one, let alone a beautiful one ... but it'll do). Unfortunately, I don't know how to tell LaTeX that it should just typeset the first half of the paragraph as it used to. The second one is a simple matter of `\noindent`:               \documentclass[a5paper]{memoir}     \usepackage{picturepage}     \usepackage{mwe}     \begin{document}     \blindtext\blindtext          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam     lobortis facilisis sem. Nullam nec mi et neque pharetra sollicitudin.     Praesent imperdiet mi nec ante. Donec ullamcorper, felis non so-     dales commodo, lectus velit ultrices augue, a dignissim nibh lectus     placerat pede. Vivamus nunc nunc, molestie ut, ultricies vel, sem-     per in, velit. Ut porttitor. Praesent in sapien. Lorem ipsum dolor     sit amet, consectetuer adipiscing elit. Duis fringilla tristique neque.     Sed interdum libero ut metus. Pellentesque placerat. Nam rutrum     augue a leo. Morbi sed elit sit amet ante lobortis sollicitudin. Prae-     sent blandit blandit mauris. Praesent lectus tellus, aliquet aliquam,     luctus a, egestas a, turpis. Mauris lacinia lorem sit amet ipsum.     \picturepage{example-image-a}{Full-page image.}{fig:a}     \noindent Nunc quis urna dictum turpis accumsan semper. Lorem ipsum dolor     sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem.     Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet     mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus     velit ultrices augue, a dignissim nibh lectus placerat pede. Vivamus     nunc nunc, molestie ut, ultricies vel, semper in, velit. Ut portti-     tor. Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer     adipiscing elit. Duis fringilla tristique neque. Sed interdum libero     ut metus. Pellentesque placerat. Nam rutrum augue a leo. Morbi     sed elit sit amet ante lobortis sollicitudin. Praesent blandit blandit     mauris. Praesent lectus tellus, aliquet aliquam, luctus a, egestas a,     turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum     turpis accumsan semper.          \blindtext\blindtext          \blindtext\blindtext\blindtext\blindtext          \end{document}      ![Last line before page break is no longer full](http://i.stack.imgur.com/p6see.png) So as I hope you are able to see (and as it is expected behaviour), the last line of the paragraph before the page break is no longer justified, thus destroying the impression of a coherent paragraph over the two pages. How do I get LaTeX to typeset that last paragraph before the page break as it did before, without the ragged-right last line? Of course, if you have any idea how my problem might be solved at any other point, especially by fixing the `afterpage` behaviour, that'd be at least as appreciated. Apologies if this seems too specific to my messed up `picturepage` package or not minimal enough because I'm using this huge chunk of code but I felt it would be better to provide a decent motivation instead of just asking "How do I split a paragraph but I don't want `afterpage` because reasons!"


title: What affects compilation times, especially in longer documents?

text: I'm about to start working on my dissertation in LaTeX. It will be the first thing I've worked on longer than ~80 pages and will likely include more figures than is usual for me. Since I compile frequently, I'd like to minimize the compilation time, but I'm not sure exactly what affects compilation time. What affects compilation time and what are the "usual suspects" when it comes to relatively long compilation times (e.g., I've been told that merely loading TikZ, regardless of whether or not you actually utilize TikZ code in your document, significantly increases compilation time)?


title: Two-lined text (text over text)

text: Is it possible to have some words written over each other in normal text? The use case is that it should be used instead of slashes where a sentence talks about two similar options. A short example:               \documentclass{article}     \begin{document}     If you walk left/right, you will see a house/boat with an old man/a cat.     \end{document}      I'm hoping to get a result that looks a bit like this mockup (done in an ugly and very manual manner here with `\raisebox` and `\hspace`): ![mockup of example text](http://i.stack.imgur.com/z7WBw.png)


title: XeLaTeX and the characters "éèàç"

text: Using accented characters (`éèçà`...) I get a space in my output rather than the correct symbol in all of my tests. I am using XeLaTeX: what is wrong?               \documentclass[a4paper,twoside,12pt, plain]{report}     \usepackage{fontspec}     \usepackage[french]{babel}     \usepackage{xspace}     \usepackage{graphicx} %For loading graphic files     \usepackage{enumitem}     \usepackage{float}     \usepackage{hyperref}     \usepackage{epsfig}     \usepackage{color}     \usepackage{fontspec}     \usepackage{xunicode}     \usepackage{fancyhdr}     \usepackage [Glenn]{fncychap}%chapitre format     \usepackage{shapepar}      \usepackage{listings}     \usepackage{color}     \usepackage{textcomp}     \renewcommand{\thesection}{\Roman{section}}     \renewcommand{\thechapter}{\Roman{chapter}}     \usepackage[cc]{titlepic}%page de garde     \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,right=2.5cm]{geometry}     \usepackage[Glenn]{fncychap}%chapitre format     \usepackage{titletoc}%      \usepackage[sectionbib]{chapterbib}     \usepackage{amsmath}     \usepackage{mathtools}          \begin{document}


What do I need in order to use TeX on Windows as an eventual replacement for Word? What software is available for Windows for WYSIWYG editing of TeX files?


title: Page numbering in lower right corner (classicthesis)

text: I'm using classicthesis 4.1 in LyX to write my thesis and I need help with the page numbering. How do I force the all page numbers to stay at the lower right corner?


title: Aligning vertically centered and horizontally left text of cells in table

text: My minimum working example :               \documentclass[11pt,a4paper]{article}     \usepackage[francais]{babel}     %\usepackage[latin1]{inputenc}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{tabularx}     \usepackage{array,multirow,makecell}     \setcellgapes{1pt}     \makegapedcells     \usepackage[table]{xcolor}     \newcolumntype{R}[1]{>{\raggedleft\arraybackslash }b{#1}}     \newcolumntype{L}[1]{>{\raggedright\arraybackslash }b{#1}}     \newcolumntype{C}[1]{>{\centering\arraybackslash }b{#1}}               \begin{document}          \begin{tabular}{m{.18\textwidth} m{.18\textwidth} m{.18\textwidth} m{.18\textwidth} m{.18\textwidth}}      \hline \rowcolor{lightgray} Lipsum Lipsum Lipsum 1 & Lipsum Lipsum Lipsum 2 & Lipsum Lipsum Lipsum 3 & Lipsum Lipsum Lipsum 4 & Lipsum Lipsum Lipsum 5  \\     \hline Lipsum Lipsum Lipsum UNDER 1 & Lipsum Lipsum Lipsum UNDER 2 & Lipsum Lipsum Lipsum UNDER 3 & Lipsum Lipsum Lipsum UNDER 4 & Lipsum Lipsum Lipsum UNDER 5 \\     \hline     \end{tabular}               \end{document}      I am trying to align my table   1. **Centered vertically** (this point seems ok)   2. **Left horizontally** However, given my above code the text is **not** aligned on left horizontally, but justified, which gives some horrible display with tons of word breaks. I simply want to force it aligned to left. ![Issue](http://i.stack.imgur.com/5ayqE.png) Thank you in advance for your help.


title: latin.lbx for biblatex

text: I started (a long time ago, but ...) to create a `latin.lbx` for `biblatex`, but there is one problem with some of the strings, and I'm hoping others have already tackled this for other languages. The problem arises in strings like `bytranslator`. Similar to Italian, you could have the following:               bytranslator = {{translatus \lbx@lfromlang\ a}{tran\adddot\ \lbx@sfromlang\ a}}, % though I think I favour 'interpretatus'       The problem is with the preposition 'a': if it's object begins with a vowel or 'h', the preposition should be 'ab'. Is there a way to solve this at the `.lbx` level, or would it need to be done with something like a per-entry `options = {...}` field? If we wanted to get more complicated, if the title is 'plural', as in               title = {Sancti {Augustini} confessionum libri {XIII}},      then the 'translatus' should be 'translati'. However, this may be too rare a problem to matter since it is hard to imagine a Latin bibliography where there are books in _other_ languages with titles like _Thirteen Books of Augustine's Confessions_ , though I suppose anything is possible.


title: Axis Labels for Ridge Trace Plot

text: I am trying to customize the axis labels for a ridge trace plot but the labels aren't showing up when I compile. How do I get these labels to work?               \begin{center}       <<fig=TRUE,echo=FALSE,width=5,height=3>>=       plot(ridge,main="blah",xlab="lambda",floating=F)       abline(v=6.5)       abline(v=11)       abline(v=15)       @     \end{center}


title: Repeating a 3 x 2.5 image

text: I was able to make a single business card that is 3in x 2.5in. However, I am having problems find a script that will repeat it 10 times on a page without a frame. This is what I am currently using (the second set of code on the bottom half of the post). What I want is a script that will repeat the pdf file 10 times but with guidelines similar to this. Updated:               \documentclass{article}     \usepackage{stackengine}     \usepackage{graphicx}     \usepackage{fullpage}     \usepackage[top=.5in, bottom=.5in,right=1.25in,left=1.25in, paperheight=11in, paperwidth=8.5in]{geometry}          \begin{document}     \pagestyle{empty}     \def\myimg{\protect\includegraphics[]{BusinessCards.pdf}}     \def\myhgap{\protect\hspace{1pt}}     \setstackgap{S}{1pt}     \Shortstack     {{\myimg\myhgap\myimg} {\myimg\myhgap\myimg} {\myimg\myhgap\myimg}        {\myimg\myhgap\myimg} {\myimg\myhgap\myimg}}     \end{document}


title: too big latex document

text: I am facing a problem again. I am using Miktex2.9 with Texnic center 2.02. The document I want to compile has almost 160000 line of code and almost 6000 pictures. The code was generated automatically with matlab. Unfortunately I am getting the error that Tex Capacity exceeded. I have searched for this error. but couldnt find the right one for me. Does some one have idea how to cope with the problem. I am using Letex on window 32 bit system. ![enter image description here](http://i.stack.imgur.com/4RFct.png)


title: pgfplot groupplot fillbetween

text: I am trying to use the fillbetween package with combined with groupplot and I am having serious troubles. Basically, what I want to have is the error plotted around my curves with a filled area. I am using groupplot to put them in a 2 by 2 matrix, and would try to define paths for the fillbetween package. And here's my problem: both the lualatex and the pdflatex interpreters basically stop at any line within the groupplot that tries to name a path be it global or not. My workaround was to define the paths outside the groupplots but that is not really good either, because preview now crops the right side of the groupplot... I copied the whole code in, basically, the desired method to do this would be to remove the first four axises and change all the lines in the groupplot with [draw=none] to [draw=none,name path=something]. My final solution will be now to crop the picture manually, but here's my question: does anybody have a more elegant workaround?               \documentclass[a4paper,14pt]{scrartcl}     \usepackage{tikz}     \usepackage{pgfplots,pgfplotstable}     \usepackage{calculator}     \usepackage{filecontents}     \usepgfplotslibrary{fillbetween}     \usepgfplotslibrary{groupplots}     \pgfplotsset{compat=1.10}          \usepackage[active,tightpage]{preview}     \setlength\PreviewBorder{2pt}     \begin{filecontents}{data.dat}     1.0 0.0 0.0 0.0 0.0 0.0 0.0      1001.0 0.0 0.0 0.0 0.0 0.0 0.0      2001.0 0.1403 0.0 0.114025 0.158 0.0 0.0      3001.0 0.2076 0.0 0.1977 0.217825 0.0 0.0      4001.0 0.21935 0.0 0.20895 0.2291 0.0 0.0      5001.0 0.22065 0.0 0.211325 0.2287 0.0 0.0      6001.0 0.21755 0.0019 0.208575 0.2251 0.000525 0.0048      7001.0 0.21755 0.0025 0.2089 0.227575 0.00065 0.006      8001.0 0.2168 0.0026 0.206375 0.2247 0.00045 0.007325      9001.0 0.21515 0.00335 0.2057 0.225525 0.0009 0.008875      10001.0 0.2151 0.0035 0.20625 0.2257 0.000725 0.009475      11001.0 0.21465 0.0039 0.205925 0.22555 0.000925 0.01015      12001.0 0.21545 0.00415 0.20405 0.224525 0.00085 0.0128      13001.0 0.2143 0.00435 0.20315 0.225225 0.000775 0.014875      14001.0 0.2138 0.0047 0.20125 0.223075 0.0011 0.016      \end{filecontents}     \begin{document}     \begin{preview}          \begin{tikzpicture}     %the name path doesn't work inside groupplot so we have to define our fill paths outside outside     %this doesn't draw anything          \begin{axis}[axis lines=none]          \addplot[draw=none, name path global=bigsmallfirstA] table[x index=0, y index=3] {data.dat};     \addplot[draw=none, name path global=bigsmallfirstB] table[x index=0, y index=4] {data.dat};     \addplot[draw=none, name path global=bigsmallsecondA] table[x index=0, y index=5] {data.dat};     \addplot[draw=none, name path global=bigsmallsecondB] table[x index=0, y index=6] {data.dat};          \end{axis}     \begin{axis}[axis lines=none]          \addplot[draw=none, name path global=bigbigfirstA] table[x index=0, y index=3] {data.dat};     \addplot[draw=none, name path global=bigbigfirstB] table[x index=0, y index=4] {data.dat};     \addplot[draw=none, name path global=bigbigsecondA] table[x index=0, y index=5] {data.dat};     \addplot[draw=none, name path global=bigbigsecondB] table[x index=0, y index=6] {data.dat};     \end{axis}     \begin{axis}[axis lines=none]          \addplot[draw=none, name path global=smallsmallfirstA] table[x index=0, y index=3] {data.dat};     \addplot[draw=none, name path global=smallsmallfirstB] table[x index=0, y index=4] {data.dat};     \addplot[draw=none, name path global=smallsmallsecondA] table[x index=0, y index=5] {data.dat};     \addplot[draw=none, name path global=smallsmallsecondB] table[x index=0, y index=6] {data.dat};     \end{axis}     \begin{axis}[axis lines=none]          \addplot[draw=none, name path global=smallbigfirstA] table[x index=0, y index=3] {data.dat};     \addplot[draw=none, name path global=smallbigfirstB] table[x index=0, y index=4] {data.dat};     \addplot[draw=none, name path global=smallbigsecondA] table[x index=0, y index=5] {data.dat};     \addplot[draw=none, name path global=smallbigsecondB] table[x index=0, y index=6] {data.dat};     \end{axis}          \begin{groupplot}[group style={group size=2 by 2, horizontal sep=2cm,     xlabels at=edge bottom     },     yticklabel style={/pgf/number format/fixed},     xticklabel style={/pgf/number format/fixed},     scaled y ticks = false,     scaled x ticks = false,     xlabel=time (week),     xtick pos=left,     ytick pos=left,     ]          \node at (-1.5,1.2) [anchor=west, rotate=90] {\bfseries{high prevalence}};     \node at (-1.5,-5.5) [anchor=west, rotate=90] {\bfseries{low prevalence}};     \node at (-1,6.3) [anchor=west] {\bfseries{second strain with 0\% advantage}};     \node at (8.1,6.3) [anchor=west] {\bfseries{second strain with 25\% advantage}};          \node at (0.7,5) {(a)};     \node at (9.7,5) {(b)};     \node at (0.7,-2) {(c)};     \node at (9.7,-2) {(d)};               \nextgroupplot[legend columns=-1,legend style={{draw=none,column sep=1ex, at={(1.8,1.3), anchor=north west},     /tikz/every even column/.append style={column sep=2cm}}},     legend entries={first strain, second strain}]               \addplot[color=blue, line width = 1.0] table[x index=0, y index=1] {data.dat};     \addplot[color=red, line width = 1.0,loosely dashed] table[x index=0, y index=2] {data.dat};     %you have to plot the extremes of the plot to get the same scale to ...     \addplot[draw=none] table[x index=0, y index=3] {data.dat};     \addplot[draw=none] table[x index=0, y index=4] {data.dat};     \addplot[draw=none] table[x index=0, y index=5] {data.dat};     \addplot[draw=none] table[x index=0, y index=6] {data.dat};     \addplot[blue,fill opacity=0.2] fill between[of=bigsmallfirstA and bigsmallfirstB];     \addplot[red,fill opacity=0.2] fill between[of=bigsmallsecondA and bigsmallsecondB];               \nextgroupplot     \addplot[color=blue, line width = 1.0] table[x index=0, y index=1] {data.dat};     \addplot[color=red, line width = 1.0,loosely dashed] table[x index=0, y index=2] {data.dat};     \addplot[draw=none] table[x index=0, y index=3] {data.dat};     \addplot[draw=none] table[x index=0, y index=4] {data.dat};     \addplot[draw=none] table[x index=0, y index=5] {data.dat};     \addplot[draw=none] table[x index=0, y index=6] {data.dat};     \addplot[blue,fill opacity=0.2] fill between[of=bigbigfirstA and bigbigfirstB];     \addplot[red,fill opacity=0.2] fill between[of=bigbigsecondA and bigbigsecondB];          \nextgroupplot     \addplot[color=blue, line width = 1.0] table[x index=0, y index=1] {data.dat};     \addplot[color=red, line width = 1.0,loosely dashed] table[x index=0, y index=2] {data.dat};     \addplot[draw=none] table[x index=0, y index=3] {data.dat};     \addplot[draw=none] table[x index=0, y index=4] {data.dat};     \addplot[draw=none] table[x index=0, y index=5] {data.dat};     \addplot[draw=none] table[x index=0, y index=6] {data.dat};     \addplot[blue,fill opacity=0.2] fill between[of=smallsmallfirstA and smallsmallfirstB];     \addplot[red,fill opacity=0.2] fill between[of=smallsmallsecondA and smallsmallsecondB];          \nextgroupplot     \addplot[color=blue, line width = 1] table[x index=0, y index=1] {data.dat};     \addplot[color=red, line width = 1,loosely dashed] table[x index=0, y index=2] {data.dat};     \addplot[draw=none] table[x index=0, y index=3] {data.dat};     \addplot[draw=none] table[x index=0, y index=4] {data.dat};     \addplot[draw=none] table[x index=0, y index=5] {data.dat};     \addplot[draw=none] table[x index=0, y index=6] {data.dat};     \addplot[blue,fill opacity=0.2] fill between[of=smallbigfirstA and smallbigfirstB];     \addplot[red,fill opacity=0.2] fill between[of=smallbigsecondA and smallbigsecondB];     \end{groupplot}          \end{tikzpicture}          \end{preview}     \end{document}


title: Customizing names of auxiliary file: safe practices?

text: I maintain a package (`morewrites`) which requires a temporary auxiliary file to function (written and read right away). This auxiliary file is currently named `\jobname.mw`, and a user has asked me to allow customization because this extension conflicts with some other tool. My first idea is to provide an interface of the form `\morewritessetup{file=...}` where `...` is replaced by the name the user wants to use. However, I am worried about users doing `\morewritessetup{file=\jobname}` by mistake. When my code then writes to the file `\jobname`, it will clobber the source file `\jobname.tex` and the user will be very unhappy. This is actually a bigger problem: it would be best to make sure that I am not destroying any of the user's pre-existing files. Unfortunately, I cannot simply check that the file is new before writing it, since that will only be the case the very first time TeX is run on the file. What is a safe approach?


title: Got more pages with repeated compile

text: Well I have encountered this problem so many times that I can't help but ask here. When I compile my documents for the very first time, I get 145 pages. Then I compile them again without any other action, I get 150 pages. Then I compile them the third time in a row, I get 153 pages. When I compile the documents for the fourth time, I get 155 pages. Then additional compiles won't give any more pages. Based on my experience, it doesn't necessarily take four times to reach the real total of pages. The fact is that it sometimes takes more than one compile to reach that total. Why?


title: specifying line width globally

text: \documentclass[11pt]{article}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,positioning}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{decorations.pathmorphing}     \tikzstyle arrowstyle=[scale=1]     \tikzstyle directed=[postaction={decorate,decoration={markings,         mark=at position .5 with {\arrow[arrowstyle]{stealth}}}}]     \tikzstyle reverse directed=[postaction={decorate,decoration={markings,         mark=at position .5 with {\arrowreversed[arrowstyle]{stealth};}}}]              \tikzset{             gluon/.style={decorate, draw=black,very thick,              decoration={coil,amplitude=4pt, segment length=5pt}}              }        \makeatletter          % gluon decoration (based on the original coil decoration)          \pgfdeclaredecoration{gluon}{coil}     {       \state{coil}[switch if less than=%         0.5\pgfdecorationsegmentlength+%>         \pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude+%         \pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude to last,                    width=+\pgfdecorationsegmentlength]       {         \pgfpathcurveto         {\pgfpoint@oncoil{0    }{ 0.555}{1}}         {\pgfpoint@oncoil{0.445}{ 1    }{2}}         {\pgfpoint@oncoil{1    }{ 1    }{3}}         \pgfpathcurveto         {\pgfpoint@oncoil{1.555}{ 1    }{4}}         {\pgfpoint@oncoil{2    }{ 0.555}{5}}         {\pgfpoint@oncoil{2    }{ 0    }{6}}         \pgfpathcurveto         {\pgfpoint@oncoil{2    }{-0.555}{7}}         {\pgfpoint@oncoil{1.555}{-1    }{8}}         {\pgfpoint@oncoil{1    }{-1    }{9}}         \pgfpathcurveto         {\pgfpoint@oncoil{0.445}{-1    }{10}}         {\pgfpoint@oncoil{0    }{-0.555}{11}}         {\pgfpoint@oncoil{0    }{ 0    }{12}}       }       \state{last}[next state=final]       {         \pgfpathcurveto         {\pgfpoint@oncoil{0    }{ 0.555}{1}}         {\pgfpoint@oncoil{0.445}{ 1    }{2}}         {\pgfpoint@oncoil{1    }{ 1    }{3}}         \pgfpathcurveto         {\pgfpoint@oncoil{1.555}{ 1    }{4}}         {\pgfpoint@oncoil{2    }{ 0.555}{5}}         {\pgfpoint@oncoil{2    }{ 0    }{6}}       }       \state{final}{}     }          \def\pgfpoint@oncoil#1#2#3{%       \pgf@x=#1\pgfdecorationsegmentamplitude%       \pgf@x=\pgfdecorationsegmentaspect\pgf@x%       \pgf@y=#2\pgfdecorationsegmentamplitude%       \pgf@xa=0.083333333333\pgfdecorationsegmentlength%       \advance\pgf@x by#3\pgf@xa%     }          \makeatother                    \begin{document}     \begin{tikzpicture}[scale=1.5][line width=10pt]     %\draw[step=.25cm] (-2.5,-2.5) grid (2.5,2.5);     \coordinate (Origin) at (0,0);     %\fill[black] (Origin) circle (2pt);     \draw [directed] (-1.25,.5) coordinate (a_3) -- node[left] {q} (-1.25, -.5) coordinate (a_2);     \draw [reverse directed] (-1.25, -.5) coordinate (a_2) -- (-.75,0) coordinate (a_1);     \draw [reverse directed] (-.75,0) coordinate (a_1) -- (-1.25,.5) coordinate (a_3);     \draw [dashed] (-.75,0) coordinate (a_1) -- node[above] {$h_{2}(h_{1})$} (1,0) coordinate (a_5);     \draw [dashed] (1,0) coordinate (a_5) -- node[above] {$\phi_1$} (1.75,.75) coordinate (a_6);     \draw [dashed] (1,0) coordinate (a_5) -- node[below] {$\phi_1$}(1.75,-.75) coordinate (a_7);     \draw [directed] (1.75,.75) coordinate(a_6) -- (1.75,1.25) coordinate  [label = above:{$\tau^-$}] (a_8);     \draw [reverse directed] (1.75,.75) coordinate (a_6) -- (2.25,.75) coordinate [label = right:{$\tau^+$}]  (a_9);     \draw [reverse directed] (1.75,-.75) coordinate(a_10) -- (1.75,-1.25) coordinate  [label = below:{$\tau^+$}] (a_11);     \draw [directed] (1.75,-.75) coordinate(a_10) -- (2.25,-.75) coordinate  [label = right:{$\tau^-$}] (a_11);      \node (a_12) at (-1.15,.4) {};       \node (a_13) at (-2.2,1.4) {g};       \path (a_12) edge[decorate,decoration={gluon, amplitude=4pt, segment length=5.25pt}] (a_13);      \node (a_14) at (-1.15,-.4) {};       \node (a_15) at (-2.2,-1.4) {g};       \path (a_14) edge[decorate,decoration={gluon, amplitude=4pt, segment length=5.25pt}] (a_15);     \end{tikzpicture}     \end{document}      I have the above Feynman diagram code. I would like to make all the lines thicker. I tried to specify the line width globally by using:               \begin{tikzpicture}[scale=1.5][line width=10pt]      but due to some reason there is no effect. Can someone point out what I'm doing wrong? Thanks in advance.


title: How do I develop a complex time line?

text: I currently have a resume I've made in Illustrator with a time line of my work with academics on the lower part and jobs on the upper section: ![time line constructed in Illustrator](http://i.stack.imgur.com/CueoQ.png) The trouble with it being in Illustrator of course, is having to carefully rearrange everything whenever I update it. I wanted to switch to creating the time line programatically in LaTeX and attempted to use the chronology package               \documentclass{article}     \usepackage{chronology}     \begin{document}     \begin{chronology}*[3]{2000}{2014}{10cm}[10cm]     \event[2000]{2004}{\color{blue}Tennesse Technological University}     \event[2005]{2009}{University of Tennessee Chattanooga}     \end{chronology}     \end{document}      Which does give me a pretty nice time line: ![Chronology time line](http://i.stack.imgur.com/pgGTP.png) But it's pretty limited in positioning (I seem to be able to place either top or bottom; not both), label locations, etc. Does anyone have any suggestions of packages I could use to create a complex time line? Or is this something I'd have to write/design myself?


title: Missing u19.map on Mac having used getnonfreefonts-sys to install LuxiMono

text: I'm helping someone who has a Mac He is on OS X 10.8.5. He installed MacTeX and added `/usr/texbin` to `PATH`. He didn't bother installing `pdflatex` because it seems I got that for free with `MacTeX`. The instructions I provided him for installing LuxiMono did not work for him (the `dvips/luxi/u19.map` file is missing and I am not sure where to obtain it from). Instead, he installed it using `getnonfreefonts-sys` (as explained here How to use the Luximono font with TeX Live?). He gets the following error: `[exec] !pdfTeX error: pdflatex (file ul9r8r): Font ul9r8r at 734 not found [exec] ==> Fatal error occurred, no output PDF file produced! [exec] Result: 1` Does anyone have a suggestion as to where to download `u19.map` for Mac?


title: pagenote and memoir: \printnotes undefined

text: If I understood it correctly, `pagenote` should work fine with the `memoir` class, yet it doesn't... If I change the `documentclass` to `article`, the example below compiles, but not with `memoir`. I'm feeling kind of silly ... is there some typo somewhere ? Can anyone see what the problem is here ?               \documentclass[12pt,english]{memoir}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}          \makeatletter     \usepackage{lmodern}     \usepackage{pagenote}     \makepagenote          \makeatother          \usepackage{babel}          \begin{document}          \title{Titre}          \author{A. Teur}          \maketitle          Texte\pagenote{Some text}.          \clearpage{}     \chapter{Notes}     \printnotes          \end{document}      I get               ! Undefined control sequence.     l.27     \printnotes      Any ideas ?


title: Define a no-op color name which is always the current color

text: Using `xcolor` I like to define a named color which actually does **not** change the current color. So `\textcolor{mycolor}{text}` should print `text` in the currently active color. In other words: I'm looking for a way to define a no-op color. I'm not talking about the special color name '`.`', which refers to the currently used color. Using `\colorlet{mycolor}{.}` will simply define `mycolor` to the color used at that moment. However, having a names _alias_ of '`.`' would do the trick. About the background: In my `ydoc` bundle which I used for the package manuals of mine I use predefined styles for certain repeatable used items. For example package names are formatted using `\pkg{name}` which uses `\pkgstyle` internally to format the name. This style macro uses, beside other things, the color `pkg` to color the package names. By default I do not want to have the package names colored in a different way, so the `pkg` is defined to be black. This is fine for normal, black text, but if `\pkg` is used inside a colored text the package names are still black. Some goes for all other macros like this which all use this generic set of macros. My question is now if it is possible to define a named color with `xcolor` which actually does not change the current color. This would allow to disable the use of a special color without redefining the style macro to not include `\textcolor`. It would be nice if this special no-op color could be copied using `\colorlet` to other color names as well. A MWE would be the following. The word 'test' should always have the same color as 'before' and 'after'. The definition of `\myformat` should not be changed, only the definition of `mycolor`.               \documentclass{article}     \usepackage{xcolor}     \colorlet{mycolor}{.}% Wanted: Always be the currently active color     \newcommand{\myformat}[1]{\textcolor{mycolor}{\ttfamily #1}}     \begin{document}          before \myformat{test} after          \color{blue}     before \myformat{test} after          \color{red}     before \myformat{test} after          \end{document}


title: Bold version of \hbar

text: I'm using `\boldsymbol{\sigma}` to create bold versions of certain characters and math symbols. Unfortunately this doesn't work with "h-bar": `\boldsymbol{\hbar}` produces a non-bold version of `\hbar`. What do I need to do to get a bold version of the physical constant `\hbar`?


title: how to align equation on page

text: I created this equation in my thesis. But, it is too big. Half equation dont appear. How I can align it ?               \documentclass[12pt,twoside,a4paper,openright]{report}     \usepackage{color}     \usepackage[portuguese]{babel}     \usepackage[utf8]{inputenc}     \usepackage[hidelinks]{hyperref}     \usepackage[official]{eurosym}     \usepackage[lmargin=3.0cm,rmargin=2.0cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead]{geometry}     \usepackage{fancyhdr}     \usepackage{graphicx}     \graphicspath{  {fig/} }     \usepackage{mathtools}     \usepackage[round]{natbib}     \usepackage{xr}     \usepackage{siunitx}     \usepackage{booktabs, multicol, multirow}     \usepackage{pdflscape}     \usepackage{emptypage}     \usepackage{epstopdf}     \usepackage{setspace}     \usepackage{nomencl}     \usepackage{tabularx}     \usepackage{amsmath}     \usepackage{gensymb}     \usepackage{chemformula}          \begin{document}              \begin{equation}         \label{equacao_silica}         \text{Quantidade de Sílica (wt\%)}           = ( \text{Perda de Massa (580\degree C-900\degree C)} \times \frac{101,4}{44}) - ( \text{Perda de Massa (30\degree C-200\degree C)})- ( \text{Resíduos de GCC)})         \end{equation}          \end{document}


title: Multiples tables side by side

text: I'm trying to put 8 tables 4 in one line and the other 4 below them, but for some reason it doesn't result as I want. I want the tables in the following order J3 J2 J1 J0 K3 K2 K1 K0 and each one with its caption but I get J3 J3caption K3 K3caption J2 J2caption K2 K2caption ...               \begin{center}     \begin{table}[!htb]     \begin{minipage}{.24\linewidth}         \scalebox{0.5}{             \begin{tabular}{c|cccc}                 %J3 table%             \end{tabular}             \selectfont\textit{Tabla J3}             \begin{tabular}{c|cccc}                 %K3 table%             \end{tabular}             \selectfont\textit{Tabla K3}     \end{minipage}          \begin{minipage}{.24\linewidth}         \scalebox{0.5}{             \begin{tabular}{c|cccc}                 %J2 table%             \end{tabular}             \selectfont\textit{Tabla J2}             \begin{tabular}{c|cccc}                 %K2 table%             \end{tabular}             \selectfont\textit{Tabla K2}         }     \end{minipage}          \begin{minipage}{.24\linewidth}         \scalebox{0.5}{             \begin{tabular}{c|cccc}                 %J1 table%             \end{tabular}             \selectfont\textit{Tabla J1}             \begin{tabular}{c|cccc}                 %K1 table%             \end{tabular}             \selectfont\textit{Tabla K1}         }     \end{minipage}           \begin{minipage}{.24\linewidth}         \scalebox{0.5}{             \begin{tabular}{c|cccc}                 %J0 table%             \end{tabular}             \selectfont\textit{Tabla J0}             \begin{tabular}{c|cccc}                 %K0 table%             \end{tabular}             \selectfont\textit{Tabla K0}         }     \end{minipage}     \end{table}     \end{center}      There must be some little detail that I'm missing. As I'm new to LaTeX, I don't know how to fix it.


title: Annotating individual math terms with braces

text: I am trying to annotate individual terms of a mathematical expression, as depicted below. The problem I get is that the comment seems to be taken as part of the fraction, which unnecessarily extends the fraction bar. I want the fraction to look just normally and have the comments not do anything to the size of the fraction. Maybe it is possible to even offset the comment itself, e. g. to have it justified left, so the greater-or-equal sign sits at the center of the curly brace. And is it possible to reduce the weight of the brace? To me it looks odd being so bold. I have added an example which should produce the output as shown in the picture.   The `\textstyle` inside the `\overbrace` is to set the correct font size, because `\overbrace` resets it to `\displaystyle` as I see it. Thank you in advance for any help you are kind enough to provide. ![enter image description here](http://i.stack.imgur.com/5NOe5.png)               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[12pt]{scrartcl}     \usepackage{amsmath}     \usepackage{polyglossia}     \setdefaultlanguage[spelling=new]{german}     \usepackage{geometry}     \geometry{a4paper}           \begin{document}          \[\frac{x^n}{x^m}\cdot \frac{1+{\overbrace{\textstyle \frac{1}{x^n}}^{\geq -\frac{1}{2} \text{ for }|x| \text{ large enough}}}}     {1+{\underbrace{\textstyle \frac{1}{x^m}}_{\leq 1 \text{ for }|x| \text{ large enough}}}}\]          \end{document}


title: Beamer 2-up with projected frame above and notes below

text: How can I create a printout of my beamer slides 2-up, with the displayed frame on the top half, and the following `\note{}` frame on the bottom half of the page? If there is no `\note{}` page, the bottom half should be blank. If I do `\pgfpagesuselayout{2 on 1}`, pages without notes remove the alignment on a single page between a frame and the corresponding note. This is exactly what I want, except I'm not handwriting my notes on lines, I'm using `\note`s. Judging by the comments on that blog, I'm not the only one who'd like this feature.


title: Text spreading onto both columns in middle of twocolumn layout

text: I know that the package `cuted` can do its job quite well. However I'd be interested in different layout than what `cuted` provides. I hope that the image will be worth milion words: On the left is the `cuted` output, on the right is what I would like to achieve. ![enter image description here](http://i.stack.imgur.com/IfoyP.png) Minimal example using the `cuted` package:               \documentclass[a4paper,twocolumn]{article}          \usepackage{cuted}          \usepackage{lipsum}          \begin{document}          {\bfseries PIECE 1 \lipsum[1]}          \begin{strip}\leavevmode\kern15pt     \begin{minipage}{\dimexpr\linewidth-30pt\relax}          {\itshape PIECE 2 \lipsum[2-3]}          \end{minipage}     \end{strip}          {\scshape PIECE 3 \lipsum[4-6]}          \end{document}


title: Suppress page numbers for \part titles in memoir

text: I am using `memoir` and I would like the `\part` titles to print without page numbers. I have used               \aliaspagestyle{title}{empty}       to do this for the title page, is there a similar command for parts?


title: Restrict Idem tracker to the same footnote

text: I want to change the behavior of the biblatex-option `idemtracker=constrict`. In the documentation it is described as follows: > This mode is similar to context with one additional condition: a reference > in a footnote will only be considered as unambiguous if the current citation > and the previous citation are given **in the same footnote or in immediately > consecutive footnotes**. Instread of the "same footnote or immediately consecutive footnotes", the idemtracker should only use idem if the citation is within the same footnote. If the citation comes in the immediately consecutive footnote, the name of the author should be printed. How can I change this behavior? I am using `biblatex-juradiss`, which is based on `authortitle-dw`. I have the `autocite=footnote` and the `\cite` command I am using creates either footnotes or within a footnote plain quotes (see Biblatex \autocite in case of would-be nested footnotes).


title: bibliography problem large spacing

text: @booklet{Ph4,     author = {Panchenko, D.},     title = {Statistics for Applications / Gamma Distribution},     year = {2006},     url = {http://ocw.mit.edu/courses/mathematics/18-443-statistics-for-applications-fall-2003/lecture-notes/lec8.pdf},     }      > D. Panchenko. Statistics for applications / gamma distribution, 2006\. URL > http://ocw.mit.edu/courses/mathematics/ 18-443-statistics-for-applications- > fall-2003/lecture-notes/lec8.pdf. Guys I have this problem, in my document I insert normally the following command ans I got it in my text with huge spaces, It doesn't brake the url, what can I do?


title: ntheorem style change for heading

text: Im using the packages `ntheorem` and `framed` to create boxes like 1. ![ntheorem](http://i.stack.imgur.com/m1g1z.png) Does anyone know how to change the heading to the following order: name. counter: parameter For example: **Erg. 2: Erwerbshierarchie regspr. Vnt. der Bezugsphoneme** My actual settings are:               \usepackage{framed}     \usepackage[hyperref, amsmath, amsthm, framed, thmmarks]{ntheorem}          \theoremstyle{break}     \theoremheaderfont{\normalfont\smallskip\scriptsize\bfseries}     \theorembodyfont{\normalfont\scriptsize}     \theoremindent0.5cm     \newframedtheorem{erg}{Erg.}


title: How to justify subfig subfloats?

text: I have three subfloats and I want them to be aligned over the full `\textwidth`, no matter what the sizes are (smaller than a third of the page of course). I have the following setup:               \begin{figure} %         \centering         \subfloat[subcaption 1]{%         \includegraphics[width=0.2\textwidth]{image1}} %         %         \subfloat[subcaption 2]{%         \includegraphics[width=0.2\textwidth]{image2}} %         %         \subfloat[subcaption 3]{%         \includegraphics[width=0.2\textwidth]{image3}} %              \caption{%         \label{fig:trans_actions} %         Some caption text here. This is the full textwidth.}     \end{figure}      How do I get the images justified over the full width of the text?


title: Horizontally enlarged hexagon with TikZ

text: I need to draw some nodes for a diagram, but I'm failing to produce a simple horizontally enlarged hexagon. If I use `regular polygon` (from shapes.geometric), I cannot enlarge it (first figure in image below). I tried to set `shape aspect` just to no avail. A workaround I found in the pgfmanual, is to use the `chamfered rectangle` (from shapes.misc), but then we must be cautious about the balance between `xsep` and how much text there is inside the rectangle (second and third figure in image below). This is the code that produces the figures below:               \usetikzlibrary{positioning}     \usetikzlibrary{shapes.geometric}     \usetikzlibrary{shapes.misc}          \begin{tikzpicture}[node distance=1.5cm]       \node[regular polygon, regular polygon sides=6, shape aspect=0.5, minimum width=4cm, minimum height=1cm, draw] (reg) {Regular node};       \node[chamfered rectangle, chamfered rectangle xsep=2cm, draw] (chamf) [right=of reg] {Enlarged node};       \node[chamfered rectangle, chamfered rectangle xsep=1cm, text width=2cm, draw] (chamfB) [below=of chamf] {Enlarged node with many lines that flow down};     \end{tikzpicture}      ![Figures](http://i.stack.imgur.com/EXBHc.png)


title: How to align some lines under tabular?

text: I am using `tabular`, and I would like to realize something like that:               word1     word2     word3     word4     longerword5     word6     word7     word8      So `word1,2,3,4,6,7,8` are well aligned, and I do not want `longerword5` to be taken into account for spacing in other rows. Could anyone tell me how to do that?


title: Can't find Metrics for opentype font; why does XeTeX need them?

text: I want to use an OpenType font for a document, so I'm trying to compile it with xelatex. I followed the answers on this question: How do I use an OpenType font with my LaTeX document? However, when I try to compile it, it still gives me an error complaining it can't find the metrics file. But why does it need one? Can't I just use the .otf file without converting it?


title: Two algorithm2e environments side by side

text: I want to get two algorithm2e environments side by side aligned at the top. I tried it with two minipages, but it does not work. How do I get them side by side in the normal text (not in a floating environment)? Here is a MWE:               \documentclass{article}     \usepackage[ruled,noend]{algorithm2e}     \begin{document}          \begin{minipage}{5cm}       \begin{algorithm}[H]         \caption{Algo 1}         line 1\;         line 2\;       \end{algorithm}     \end{minipage}%     \begin{minipage}{5cm}       \begin{algorithm}[H]         \caption{Algo 1}         line 1\;       \end{algorithm}     \end{minipage}          \end{document}


title: modify enumerate environment to pre-pend characters before the number

text: i would like to generate an enumerated list that looks like this: D.4(1) **_Something_ (else)**: plaintext. D.4(2) **_Something_ (else)**: plaintext. etc. in other words, the counter is after some other text, which is constant. i could live without the bold/ital stuff after, as that is easy to do otherwise, but i'd really appreciate any tips on the other stuff.


title: Change listing number separator

text: I am working with the `listings` package and trying to change the separator from the default period to a hyphen. However, I cannot seem to figure out how to. I tried the code snippet below, but it doesn't appear to be working. `\renewcommand{\thelstlisting}{\thechapter-\arabic{lstlisting}}`               \documentclass[a4paper,10pt]{report}     \usepackage[utf8]{inputenc}     \usepackage{listings}          \begin{document}     \chapter{The Chapter}          \begin{lstlisting}[caption=The Listing Caption, language=xml]      <?xml version="1.0" encoding="utf-8">      <data>         <format/>      </data>     \end{lstlisting}          \end{document}


title: Error creating header fancyhead for oneside contents

text: I created my thesis and used this code to created heading. The document is setted to book class and oneside option. I got a page where both the left and right are number. Instead I would have the page number at the right and at the left the section               \usepackage{fancyhdr}     \pagestyle{fancy}          \makeatletter     \DeclareRobustCommand{\format@sec@number}[2]{{\normalfont\upshape#1}#2}     \renewcommand{\chaptermark}[1]{%       \markboth{\format@sec@number{\ifnum\c@secnumdepth>\m@ne\@chapapp\ \thechapter. \fi}{#1}}{}}     \renewcommand{\sectionmark}[1]{%       \markright{\format@sec@number{\ifnum\c@secnumdepth>\z@\thesection. \fi}{#1}}}     \makeatother          \fancyhf{}     \fancyhead[R]{\itshape\nouppercase{\leftmark}}     \fancyhead[L]{\itshape\nouppercase{\rightmark}}     \fancyhead[L,R]{\thepage}


title: How to suppress a "Rare" ligature that pre-empts a "Common" ligature for the same character pair?

text: In several documents I'm creating with `LuaLaTeX` (using MacTeX2012 on a Mac that's running MacOS X 10.7.5), I primarily use the Adobe-issued font Garamond Premier Pro as the main text font. I use this font because it provides a slew of   * "Common" ligatures: These comprise not only the five TeX-standard f-ligatures, viz., `ff`, `fi`, `fl`, `ffi`, and `ffl`, but also ligatures for `ft`, `fft`, `fb`, `ffb`, and a few more; and   * "Rare" (aka "Discretionary") ligatures: For this particular font, "rare" ligatures are available for the character pairs `ct`, `st`, `sp`, and `ft` (but not `fft`; see also below) in both upright and _italic_ shapes, as well as for the character pairs `as`, `is`, `us`, `at`, `et`, `th` and a few more in the _italic_ font shape only. If just the "Common" ligature set is enabled (via the option `Ligatures=Common`), the `ft` and `fft` groups, in both upright and italic shapes, are typeset like this: ![enter image description here](http://i.stack.imgur.com/aUIuM.png) Just in case this matters, the Unicode character representations for these ligatures are `U+E18D` and `U+E187`, respectively. In the upright font shape, the "glyph id" numbers are `277` and `271` and the "character codes" are `57742` and `57735`, respectively. In the italic font shape, the Unicode character representations are the same, but the "glyph id" and "character code" numbers are 283 and 276, and 57864 and 57857, respectively. However, if the "Rare" ligature set is enabled -- irrespective of whether the "Common" ligature set is enabled as well -- the `ft` and `fft` character groups are rendered as follows: ![enter image description here](http://i.stack.imgur.com/6XJ7L.png) ( _Aside_ : For another rendering of the "rare"-style ft-ligature, check out the web page Garamond type ft-ligature.) Not only does the "Rare"-style `ft` ligature look rather different from its "Common"-style counterpart, the `fft` ligature no longer exists at all: the `fft` character triple is now rendered as a plain "f" followed by the "Rare"-style `ft` ligature. For my purposes, the absence of a ligature for the `fft` character triple if "Rare" ligatures are enabled is rather unfortunate. The fact that the crossbars of the "f" and "ft" glyphs don't line up properly in the italic font shape is also rather problematic. Separately, I also prefer the look of the "Common"-style ft-ligature to that of its "Rare"-style counterpart, but that's only a secondary concern. (Incidentally, the Unicode character representation for the "Rare" ft-ligature is `U+E18E`. In the upright font shape, its "glyph id" and "character number" codes are 278 and 57742, resp.; in the italic font shape the latter two numbers are 283 and 57864, resp.) _My question is_ : Is there a way -- preferably using macros provided by the `fontspec` package -- to disable the "Rare"-style `ft` ligature globally in order to re-enable the "Common"-style `ft` ligature -- while still being able to use all other "Rare" ligatures as well as the "Common" ligatures? Just for completeness, here's the code that generates the first example above:               % !TEX TS-program = lualatex     \documentclass{article}     \usepackage{fontspec}     \setmainfont[Ligatures=Common,         ItalicFont={Garamond Premier Pro Italic}]         {Garamond Premier Pro}     \begin{document}     ft fft \em ft fft     \end{document}      To generate the second example, replace the option `Ligatures=Common` with `Ligatures={Common,Rare}`.


title: Set up sidewaysfigure to have the bottom of the figure toward the spine

text: I am typesetting a book. There are a couple figures that are wider than they are tall, and appear too small if placed on a page in the usual fashion. I have found that using the `sidewaysfigure` environment from the `rotating` package, I can put these figures in landscape orientation taking up entire pages. This is satisfactory except for one issue: in the compiled pdf, the figures are oriented with the bottom away from the spine; I want the bottom toward the spine. If I use the package option `figuresright` or `figuresleft`, I can make the figure orientation independent of the page number, but this is not what I want. The `clockwise` and `counterclockwise` options do not appear to change anything (which makes sense, since the documentation states that these options are for one-sided documents, but I had hoped). In using the `sidewaysfigure` environment from the `rotating` package in a two-sided document, how do I orient the figures with the bottom toward the spine?


title: How to properly use LM roman fonts in figures?

text: I draw some of my figures using Inkscape. For the text inside the figure I use the Latin Modern fonts because they're ttf and Inkscape finds them. This looks rather good and I do not meet any technical difficulty. My questions are more about good practices:   1. I have the fonts LM Roman 5, 6, 7, 8, 9, 10, 12, 17. I can choose any of these, and then ask Inkscape to render them with any size. It feels dirty. Does the number in the font name correspond to the size in points in which it should be rendered?   2. Which size should I use in my figures? As big as the normal text of my article? Smaller to match the size the caption under the figures (footnotesize in my case)?   3. I am a heretic and shouldn't even do that at all?


title: Title page using begin{titlepage} Journal-like style

text: I am trying to make a titlepage similar to the one below. However I am having a few problems regarding getting dagger, and star as footnotes. Also, when I tried to writer author like in the image (same line with space between), I have some "issues" because I have centering and one of the names has 4 + 4 letters and the other has 7 + 7, therefore it seems sort of unbalanced... Thanks ![Replicate this](http://i.stack.imgur.com/AIREr.png)               \documentclass[12pt]{article}     \pagestyle{plain}     \usepackage[english]{babel}     \usepackage{setspace}%set line spacing     \onehalfspacing     \usepackage[top=2cm, bottom=2cm, left=5cm, right=2cm]{geometry}     \usepackage{parskip}%gir avsnitt iuten\\     \setlength{\parindent}{0pt}          \begin{document}          \begin{titlepage}          \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for the horizontal lines, change thickness here          \center % Center everything on the page           %----------------------------------------------------------------------------------------     %   HEADING SECTIONS     %----------------------------------------------------------------------------------------          \textsc{Business School - Thesis}\\[2.6cm] % Name of university/college     %----------------------------------------------------------------------------------------     %   TITLE SECTION     %----------------------------------------------------------------------------------------               %\HRule \\     { \LARGE \bfseries  Do the Financial Markets Trust XXX?:} \\[0.5cm]      {\Large \bfseries A Macro-Finance Model of the Term Structure}               %----------------------------------------------------------------------------------------     %   AUTHOR SECTION     %----------------------------------------------------------------------------------------     \textsc{Authors:}\\      Author1 $^\dag$\\       Author2$^\ddag$\\[0.8cm]%Department of Economics  %Department of Financial Economics     \textsc{Supervisor:}\\Institute sup.\\[1cm]               %----------------------------------------------------------------------------------------     %   DATE SECTION     %----------------------------------------------------------------------------------------          \today\\[1cm] % Date, change the \today to a set date if you want to be precise     \hrule     \abstract{From a macroeconomic perspective, the short-term interest rate is a policy instrument under the direct control of the central bank, which adjusts the rate to achieve its economic stabilization goals.}     %----------------------------------------------------------------------------------------     %   LOGO SECTION     %----------------------------------------------------------------------------------------          \vfill % Filling the rest of the page with whitespace     \end{titlepage}     \end{document}


title: why does latex report errors when using styles in a tikz pgf picture?

text: I get three errors when attempting to build the following example (with the tikzpicture taken from the tikz pgf manual). Why does this happen, and what am I doing wrong?               \documentclass[12pt]{article}          \usepackage{tikz}          \begin{document}          \begin{figure}            \begin{tikzpicture}              [Karl's grid/.style ={help lines,color=#1!50},         Karl's grid/.default=blue]              \draw[Karl's grid] (0,0) grid (1.5,2);              \draw[Karl's grid=red] (2,0) grid (3.5,2);            \end{tikzpicture}          \end{figure}          \end{document}      Here is some of the log including the errors:               [Loading MPS to PDF converter (version 2006.09.02).]     \scratchcounter=\count107     \scratchdimen=\dimen148     \scratchbox=\box35     \nofMPsegments=\count108     \nofMParguments=\count109     \everyMPshowfont=\toks24     \MPscratchCnt=\count110     \MPscratchDim=\dimen149     \MPnumerator=\count111     \everyMPtoPDFconversion=\toks25     )     Missing character: There is no [ in font nullfont!     Missing character: There is no K in font nullfont!     Missing character: There is no a in font nullfont!     Missing character: There is no r in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no ' in font nullfont!     Missing character: There is no s in font nullfont!     Missing character: There is no g in font nullfont!     Missing character: There is no r in font nullfont!     Missing character: There is no i in font nullfont!     Missing character: There is no d in font nullfont!     Missing character: There is no / in font nullfont!     Missing character: There is no . in font nullfont!     Missing character: There is no s in font nullfont!     Missing character: There is no t in font nullfont!     Missing character: There is no y in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no e in font nullfont!     Missing character: There is no = in font nullfont!     Missing character: There is no h in font nullfont!     Missing character: There is no e in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no p in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no i in font nullfont!     Missing character: There is no n in font nullfont!     Missing character: There is no e in font nullfont!     Missing character: There is no s in font nullfont!     Missing character: There is no , in font nullfont!     Missing character: There is no c in font nullfont!     Missing character: There is no o in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no o in font nullfont!     Missing character: There is no r in font nullfont!     Missing character: There is no = in font nullfont!          ! You can't use `macro parameter character #' in restricted horizontal mode.     l.24     [Karl's grid/.style ={help lines,color=#                                                      1!50},     Sorry, but I'm not programmed to handle this case;     I'll just pretend that you didn't ask for it.     If you're in the wrong mode, you might be able to     return to the right one by typing `I}' or `I$' or `I\par'.          Missing character: There is no 1 in font nullfont!     Missing character: There is no ! in font nullfont!     Missing character: There is no 5 in font nullfont!     Missing character: There is no 0 in font nullfont!     Missing character: There is no , in font nullfont!     Missing character: There is no K in font nullfont!     Missing character: There is no a in font nullfont!     Missing character: There is no r in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no ' in font nullfont!     Missing character: There is no s in font nullfont!     Missing character: There is no g in font nullfont!     Missing character: There is no r in font nullfont!     Missing character: There is no i in font nullfont!     Missing character: There is no d in font nullfont!     Missing character: There is no / in font nullfont!     Missing character: There is no . in font nullfont!     Missing character: There is no d in font nullfont!     Missing character: There is no e in font nullfont!     Missing character: There is no f in font nullfont!     Missing character: There is no a in font nullfont!     Missing character: There is no u in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no t in font nullfont!     Missing character: There is no = in font nullfont!     Missing character: There is no b in font nullfont!     Missing character: There is no l in font nullfont!     Missing character: There is no u in font nullfont!     Missing character: There is no e in font nullfont!     Missing character: There is no ] in font nullfont!          ! Package pgfkeys Error: I do not know the key '/tikz/Karl's grid' and I am goi     ng to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.27     \draw[Karl's grid]                                 (0,0) grid (1.5,2);     This error message was generated by an \errmessage     command, so I can't give any explicit help.     Pretend that you're Hercule Poirot: Examine all clues,     and deduce the truth by order and method.               ! Package pgfkeys Error: I do not know the key '/tikz/Karl's grid' and I am goi     ng to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.29     \draw[Karl's grid=red]                                     (2,0) grid (3.5,2);     (That was another \errmessage.)      I'm using tikz 2010/10/13 v2.10 (rcs-revision 1.76), and am using MikTex on Windows XP in conjunction with Texniccenter.


title: Add Appendix to TOC without a pagenumber

text: I want my Appendix, Glossary and Bibliography in the TOC without a pagenumber but clickable. When the user click on the name of one of theses, it should jump to the specific chapter. For the appendix I want, that there is no page numbering, how could I turn this off? I'm not using the fancyhdr package. My minimal example:               \documentclass[a4paper,12pt,headsepline,smallheadings,parident, numbers=noenddot]{scrreprt}     \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}      \usepackage[babel,german=quotes]{csquotes}     \usepackage{listings}     \usepackage{caption}     \usepackage{cite}     \usepackage{graphicx}     \usepackage{wrapfig}     \usepackage{pdfpages}     \usepackage{color}     \bibliographystyle{alphadin}          \usepackage{hyperref}     \typearea{12}     \pagestyle{headings}          \addtokomafont{subsubsection}{\small}     \addtokomafont{caption}{\small}          \usepackage[nonumberlist]{glossaries}     \makeglossaries          \begin{document}     %Bibliogrpahy     \bibliography{./literatur/literaturverzeichnis.bib}     \addcontentsline{toc}{chapter}{Literaturverzeichnis}          %Glossary     \renewcommand{\glossaryname}{Glossar}     \printglossaries     \addcontentsline{toc}{chapter}{Glossar}          %Appendix     \appendix     \renewcommand{\thesection}{\Alph{section}}     \addchap{Anhang}     \refstepcounter{chapter}     \section*{Klassendiagramm} \label{class-diagram}     \section*{Liste mit verwendeten UI-Elementen} \label{list-ui-elements}     \section*{Quelltext} \label{source-code}     \section*{Abbildungen}     \end{document}


title: How to disable package used by external document?

text: Doxygen uses its own `doxygen.sty` style file, but I'd like to keep the style of my document where I want to put the Doxygen's output. So I'd prefer to somehow to turn of its settings. For example, using `let` command I can keep old defenitions of commands that are being redefined by `renewcommand`. But what about unloading package (i.e. `sectsty`) or somehow disable its commands like `allsectionsfont`? **EDIT:** I am trying to avoid any modification of `doxygen.sty` because it is autogenerated, so will be overwritten next time I change my sources and therefore will need to update the docs generated by Doxygen. **EDIT 2:** The `-w` option of `doxygen` does what it exactly stated to: writes header, footer, and style to the files specified on the command line. What all these names correspon to is... well, consider the following structure of the final document (i.e. `refman.tex`) the Doxygen tool produces:   1. header;   2. body;   3. footer;   4. Plus, styles that are `usepackage`d in the _header_. What I struggle for is the _body_ part of the document as _header_ / _footer_ I could provide myself, after all. I want to keep the textual structure of the document, i.e. chapters and `input`ted files generated for each of the source files, `class`, `struct`, etc. Also, there still remains the problem of redefenition of several commands (such as `paragraph`, `subparagraph`) inside the Doxygen's style file. I want to disable them to keep the style of my main document consistent.


title: Managing Included Footnotes in oolatex/htlatex/tex4ht

text: I'm being diligent and doing all my work in LaTeX, unfortunately my supervisor prefers his work in Word for review. The easy way (or so I thought) was to use oolatex / tex4ht to convert my nice latex file into odt and into doc. I have sections of my work separated out for management of multiple documents, with these brought into the main document with `\include{}`. The problem has arisen that footnotes in these sections are not being processed separately, and are clobbering eachother, leading to errors like this > `--- TeX4ht warning --- Multiple footnote texts for mark 1 ---` This all makes sense and I understand why its happenning, but apart from bringing all my work into the same time (making it pretty much un- maintainable), what can I do to force oolatex to reprocess in-page footnotes? **TL;DR`Include`d files causing footnote clobbering trying to turn tex->doc using oolatex**


title: Beamer error driving me nuts

text: OK, I've been staring at this for an hour. I know there's an error in this frame, as the document compiles fine if I put \end{document} in the frame before this. But this frame gives an error about extra } or missing endgroup. Where is it?????               \begin{frame}[fragile]     \frametitle{PROC TEMPLATE for a fancy graph (part 1)}     \begin{alltt}     proc template;      define statgraph scatdens2;      begingraph;   *BEGIN DEFINING THE GRAPH;        entrytitle "Scatter plot with density plots";         *CREATE A TITLE;        layout lattice/columns = 2 rows = 2         columnweights = (.8 .2) rowweights = (.8 .2)           columndatarange = union rowdatarange = union;        *LAYOUT LATTICE...SETS UP A GRID OF GRAPHS;        *COLUMNWEIGHTS AND ROWWEIGHTS SETS         THE RELATIVE SIZE OF THE INDIVIDUAL COLUMNS AND ROWS;      \end{alltt}      \end{frame}


title: sans serif math in toc/lof/lot with tocloft package

text: How do I get sans serif fonts for captions containing math characters in lists? Here is a mwe where the x^2 from mathmode in the list of figures is represented with serifs instead of the wanted sans serif font:               \documentclass[]{article}        \usepackage{tocloft}          \renewcommand\cftfigfont{\sffamily}     \renewcommand\cftfigpagefont{\sffamily}          \begin{document}          \listoffigures          \begin{figure}[!ht]\centering Figure\caption{test x\textsuperscript{2}}\end{figure}     \begin{figure}[!ht]\centering Figure\caption{test $x^2$}\end{figure}          \end{document}


title: How to vertically center text with an image in the same row of a table

text: I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of every column should also be centered horizontally. I am aware of the `m{}` column type but somehow this seems to fail if an image is contained in the row and determines the row height. Any ideas? Minimal example:               \documentclass{article}     \usepackage{graphicx}     \usepackage{array}     \begin{document}     \begin{figure}     \begin{tabular}{m{3cm}c}     (a) & \includegraphics{some_picture.pdf}\\     \end{tabular}     \end{figure}      \end{document}


title: How to install Feynmf or Feynmp on Mac OS X?

text: I really need your help, several times I have tried to install Feynmf or Feynmp on my mac but I failed, my main problem is working with the terminal which I think one needs to install these two packages. I have used the guides from CTAN. Is there anyway to tell me step by step how to use the terminal and install Feynmf or Feynmp? many thanks.


title: How do you get TeXShop to automatically insert line breaks?

text: As I am using version control (hg) it is convenient to have hard line breaks in my tex files. > Is there a way to set up TeXShop so that it automatically inserts line > breaks? (For instance, as I am typing, at some fixed maximum width.) If this is not possible, is there a convenient command line way to insert hard line breaks into a whole file automatically? (I tried, for instance, "cat longlines.tex | tr '\r' '\n' > shortlines.tex", but this does not work because TeXShop does not even put in Mac breaks '\r'.)


title: Show the number of page in titlepage

text: I don't know why the number of pages is not shown: > "Number pages :??" Here is a picture: ![enter image description here](http://i.stack.imgur.com/yb5Go.jpg) My main                \documentclass[a4paper,11pt,msc]{SBU}     \input{commands}     \begin{document}     \frontmatter     \thispagestyle{empty}     \begin{figure}     \centering     \includegraphics[width=\linewidth]{besm}     \end{figure}     \vfill     \clearpage     \newpage     \thispagestyle{empty}     \pagenumbering{adadi}     \input{fa_title}     \include{preface}     \clearpage{\pagestyle{empty}\cleardoublepage}          \tableofcontents     \clearpage{\pagestyle{empty}\cleardoublepage}          \listoftables     \clearpage{\pagestyle{empty}\cleardoublepage}          \listoffigures     \clearpage{\pagestyle{empty}\cleardoublepage}          \mainmatter     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{chapter1}     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{chapter2}     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{chapter3}     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{chapter4}     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{conclusion}     \clearpage{\pagestyle{empty}\cleardoublepage}     \backmatter     {\small     {\baselineskip=.75cm     \include{dicfa2en}     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{dicen2fa}}     \clearpage{\pagestyle{empty}\cleardoublepage}     \include{references}     }          \input{en_title}     \label{LastPage}     \end{document}      "And My English Title"                \baselineskip=.6cm     \begin{latin}     \latinuniversity{ University}     \latinfaculty{Faculty of Mathematical Sciences}     \latindegree{M. Sc. }     \latinsubject{Department of Mathematics}     \latinfield{Computer Science}     \latintitle{Solving Fractional Differential Equations }     \firstlatinsupervisor{Dr. Kourosh }     \firstlatinadvisor{Dr. Ali }     \latinname{Mah}     \latinsurname{Alone}     \latinthesisdate{2013}     \latinkeywords{Spectral Methods, Fractional Defferential Equations,Chebyshev functions}     \en-abstract{\noindent     Computer Sciences are a connection between knowledge of Computer and Mathematics.  }          \latinvtitle     \end{latin}


title: LatexIt not rendering properly

text: I've been trying to figure out how latexit works, however, when I enter this simple piece of code, I get a long message of different errors as "LaTeX Error Bad environment delimiter", "You can't use `\eqno' in math mode", "Missing \endgroup inserted." ... etc. Here is the code:               \begin{equation} \label{xx}     x^2 - 5 x + 6 = 0     \end{equation}      What am I doing wrong?


title: R-Integral symbol for my notes

text: I am typing up a set of notes for the Riemann Stieltjes integral. For reasons beyond the scope of the question, I would like to start with defining the Darboux's integral and then formulate Riemann's definition and show that they are equivalent. During the intermediate steps, provisionally, I would like to define the Riemann integral, the R-integral. To avoid mixing of symbols, I have in mind a symbol like `\oint` but with a `R` instead of the circle. I am not aware of what the TeX code for the symbol would be. Any help would be appreciated.


title: Beamer second footcite changes style

text: My problem is that when second item gets visible, the citation style slightly changes (disappears journal, colored fonts), therefore the position of first item changes:               \documentclass[mathserif]{beamer}     \usepackage[style=verbose,backend=biber]{biblatex}          \renewcommand{\footnotesize}{\tiny}          \begin{filecontents}{\jobname.bib}     @Book{article1,        Day = {30},        Edition = {2},        Month = {jun},        Publisher = {Artech House Publishers},        author = {Taflove, Allen and Hagness, Susan C.},        title = {Computational Electrodynamics: The Finite-Difference Time-Domain Method},        year = {2000},     }     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}     \frame{\frametitle{Title~\footfullcite{article1}}        \begin{itemize}[<+->]            \item a            \item b            \item c            \end{itemize}     }     \end{document}                    Is there any way to keep the citation style constant (including the journal name)?


title: Is there a way to always get a table on the same page with corresponding footnotes?

text: I have a situation where sometimes two tables (who look nearly identical to the one in the MWE) are on the right page with the corresponding footnotes but then unfortunately very often not, especially in the case that I use the whole document (i.e. content of the respective chapter) in front of the tables. For the final version I must have them on the same page. For now I'd still like to give it a shot without a `\clearpage` in front of the `table`-environment since this leaves the typical white and ugly void. Are there any best practice cases? **edit** Decided to put the two tables in question in the appendix out of speed and convenience. Found tablefootnote though, will try that next time. ![enter image description here](http://i.stack.imgur.com/tp4uD.png) MWE               \documentclass[     11pt     ]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          \usepackage{     booktabs,     longtable,     multicol,     lipsum     }               \begin{document}          \section{Test}          \lipsum[1-7]          %\clearpage     \begin{table}[tcb]     \begin{center}     \caption{A special table}     %\captionof{table}{A special table}     \begin{tabular}{lrrrrrrrrrrr}     \toprule     ABC   & B     & C     & D     & E     & A     & B     & C     & D     & E     & A     & B \\     \midrule     1     & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark \\     2     & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark \\     3     & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark \\     \bottomrule     \end{tabular}%     \end{center}     \end{table}          \addtocounter{footnote}{-32}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}\addtocounter{footnote}{1}     \footnotetext{Word.}              \lipsum[8-10]               \end{document}


title: Font-sizes in figures and subfigures

text: Assume the following example of two images inside a `figure` environment ![enter image description here](http://i.stack.imgur.com/HzSle.png) The left image uses font-size 10 and is not scaled. Therefore, the numbers on the axes are of the same size as the _Main caption_. On the other hand, the right image uses 10pt font-size but has an image-size which would fit over the whole page. Therefore, it is scaled by 0.5. I have two concerns:   * A graphic which ranges over the whole width of the page _should_ maybe use the same font-size which is used in the text. Otherwise numbers maybe look like they are lost.   * For subfigures having a width of approx `.45\textwidth` the font-size 10pt feels too big. It should be smaller like the caption of the subfigure. The scaled left subfigure has too small numbers IMHO. **Question:** Is there a general rule for the font-sizes to use in figures and subfigures? Is it ok to scale the images or should I always create my pdf/eps graphics having the correct final size (and therefore exact font-sizes which match `small`, `footnotesize`, `scriptsize`..) ## Additional notes: I didn't came here unprepared. The first thing I did was skimming through some of my Knuth books. There I noticed, that he uses many different font-sizes in images (at least in the Fascicles of TAOCP), but it always looks kind of coherent. I thought since there are enough guidelines for good typographic style, there are guidelines for images, diagrams and graphics in books too.


title: Adding impact factor information into apalike.bst

text: I am trying to add impact factor information into the apalike.bst. So far, I changed the apalike.bst as follows Firstly, I added `impact_factor` into the `ENTRY` section and created a new function               FUNCTION {format.impactFactor}     {      impact_factor empty$         { "" }         {"( Impact Factor:" impact_factor ")"}       if$     }      This function is then called from the `article` function               FUNCTION {article}     { output.bibitem       format.authors "author" output.check       author format.key output                     output.year.check                        new.block       format.title "title" output.check       new.block       crossref missing$         { journal emphasize "journal" output.check           format.vol.num.pages output         }         { format.article.crossref output.nonnull           format.pages output         }       if$       format.impactFactor output              % <---- the new filed       new.block         note output       fin.entry       }      I get the following error message when trying to compile it using bibtex and a valid bib file               This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit)     The top-level auxiliary file: apubs.aux     The style file: apalike_custom.bst     Database file #1: JanS.bib     ptr=2, stack=     ( Impact Factor:     45(1):205--212     ---the literal stack isn't empty for entry ferkl2010ceiling     while executing---line 1104 of file apalike_custom.bst     (There was 1 error message)


title: Adding vertical rule into tabu

text: Community, :) I know it might sound like some noobish' question, but I have some trouble adding the last vertical rule into my tabu. I've retrieved the code from here: How to Create Comparison Tables in LaTeX? I am using the code from user mrf, without using the TikZ package. I extended his example with more columns. So my code looks like this:               \begin{table}[h]     \taburowcolors[2]{white .. black!20}     \sffamily\footnotesize     \tabulinesep=6pt     \begin{tabu}{|>{\cellcolor{black!60}\color{white}}r | X[cm] | X[cm]| X[cm] | X[cm] |}     \hline     \rowcolor{black!80}\strut  & \color{white}Enterprise SAN & \color{white}ioDrive &      \color{white}test & \color{white}test2\\     Form Factor & Rack Applicance (40U $\times$ 20") & Low Profile PCIe & test & test2\\     Interface & FC-4 & PCIe x4 & test & test2\\     Drive Units & 150$\times$15 RPM disks & 2$\times$80gig & test & test2\\     \hline     \end{tabu}     \caption{Test.}     \label{tab:test}     \end{table}      The problem is as soon as I extend the example from the link, there is a vertical rule missing in the table: ![Screenshot](http://i40.tinypic.com/126d091.jpg) .. and I just cant find out why. If I define the beginning like this:               \begin{tabu}{|>{\cellcolor{black!60}\color{white}}r | X[cm] | X[cm]| X[cm] | X[cm] }      (Notice the missing `|` at the end) The line appears but therefore the vertical rule at the end of the table is missing. Does anyone know why this is happening? **EDIT** : KarlKoeller showed me that TexMaker is showing me in the preview the screenshot above, but with Adobe Reader its the opposite: The missing vertical line is there, but the others are missing then... Any Help is appreciated!


title: Detect space before a footnote

text: I'm in the middle of proofreading TeX source for a book, and have found a couple of places where a stray space has slipped through before a footnote mark. Is there any automated way of scanning TeX source to detect this?


title: Comparing many maths fonts

text: I'd like to produce a document comparing all of the different bb (blackboard bold) fonts available in LaTeX. symbols-a4.pdf gives is what I will assume is a comprehensive list: ![enter image description here](http://i.stack.imgur.com/6Fq1e.png) The problem is that three different packages override the `\mathbb` command. I tried to 'save' each version as shown in the following MWE, but to no avail:               \documentclass{article}     \usepackage{bbold}     \let\bboldbb\mathbb     \usepackage{amsfonts}     \let\amsbb\mathbb          \begin{document}     $\amsbb{N} \bboldbb{N}$     \end{document}      Using `\def` in place of `\let` doesn't work either. How can I use multiple versions of `\mathbb` at once? (And what is wrong with my MWE?)


title: Redefining \smallsetminus by smaller \setminus

text: I don't like the appearance of `\setminus` (it's big and doesn't look good), and also don't like the appearence of `\smallsetminus` (its size is perfect but, in my opinion, it's too horizontal and it's not vertically center). I found that in normal math this is what I can use:               \[         A \mathbin{\vcenter{\hbox{$\scriptscriptstyle\setminus$}}} B     \]      Which looks like ![A \\xsetminus B](http://i.stack.imgur.com/D0USj.png). But it's super thin. So I made the next one (I don't really now how many of those commands work, it has a lot of trial and error):               \[         A \mathbin{\vcenter{\hbox{$\scriptscriptstyle\mathrlap{\setminus}{\hspace{.2pt}\setminus$}}} B     \]      Which looks more like ![A \\xbsmallsetminus B](http://i.stack.imgur.com/SUfKm.png). At this point I got the desired thickness. But it's ugly if you zoom it, it's not _well designed_ , and does not match the correct size if it's in a subscript (and less in a sub subscript). ## Question: Any ideas about how to redefine `\setminus` in order to get that orientation (the same as the usual `\setminus`), more or less the height is shown in the pictures and the same thickness of the usual `\setminus` (in all sizes: displaysytle, textstyle (the same as displaystyle), scriptstyle and scriptscriptstyle)? I listen to all your ideas (including that ones where you try to convince me that the usual `\setminus` or `\smallsetminus` ar perfect). **EDIT:** Here your are an example of how all looks (`\setminus`, my macro, `\smallsetminus`): ![Comparison1](http://i.stack.imgur.com/3W2b4.png) Here another example including @AndrewSwann `\fgebackslash` (`\setminus`, `\smallsetminus`, my macro, modified smaller `\fgebackslash`, `\fgebackslash`) ![Comparison2](http://i.stack.imgur.com/5qND5.png)


title: How to align and scale pdf in the same way

text: I have a big image in PDF and I use software to split that PDF into 5 equal pieces. I am using `pdflatex` to insert each pdf in a separate page with `\includegraphics` by the same scale factor. I need to print each page separately so I can align and concatenate all the printouts in a precise way. I choose the scale such that they are maximized. However, if I enlarge the images, they will be shifted to the side and bottom too. How can I increase all images to the maximum size (in the same scale) and centralize all of them?               \documentclass[12pt]{article}     \usepackage{graphicx}          \begin{document}       \pagestyle{empty}       \begin{figure}[c]         \centerline{\includegraphics[scale=1.8]{imga.pdf}}       \end{figure}       \newpage       \begin{figure}[c]         \centerline{\includegraphics[scale=1.8]{imgb.pdf}}       \end{figure}       \newpage       \begin{figure}[c]         \centerline{\includegraphics[scale=1.8]{imgc.pdf}}       \end{figure}       \newpage       \begin{figure}[c]         \centerline{\includegraphics[scale=1.8]{imgd.pdf}}       \end{figure}       \newpage       \begin{figure}[c]         \centerline{\includegraphics[scale=1.8]{imge.pdf}}       \end{figure}     \end{document}      I think the reason why the above script doesn't centralize the figures is there are some white margins in the first two cut figures. Since I scale up all images in the same way, the white part is also magnified so the image is shifted down and right to the sides. Is that any way to absolutely translate the image (so the white part will be moved out of the edge)?


title: Equal contribution (co-first authors) in BibTeX

text: Is there a standard way of indicating co-first authorships in a BibTeX entry? Equal-contribution is usually indicated by * (or some other symbol) next to the author names in the paper, but it is a rather recent phenomenon as I understand it. I never actually saw it indicated in the reference sections when cited, but it is a valuable meta-data that might be useful for the future. Hence, I want to put it in the BibTeX meta data. I can imagine a new bibliography format showing co-first authors in the reference (but this is not likely to happen though).


title: Display Math Should End With $$ error message

text: I seem to be getting the same error message as several other people but I can't figure out how to apply a solution to my own work. I know the errors are occurring somewhere in here:               \begin{solution}     By Trichonomy, we know that x $>$ 0, x $=$ 0, or x $<$ 0.     $x\not=0$ is given so we are left with two cases:     1--If x$>$0 then $x^2$ $=$ $x\ x$     By order axiom six--if 0$\leq $x and 0$\leq $y then 0$\leq $ $x\ y$--$x^2$ $>$ 0.          2--If x$<$0 then $x^2$ $=$ $$$-1\ x$\ -1$\ x$                    $=$ $$-1^2$\ $x^2$$                            $=$ $1\ $x^2$$                    $=$ $x^2$ $>$ 0, completing the proof.     \end{solution}      I get the `Display math should end with $$` error and then there is also one that tells me to insert another `$` at the beginning of the final line (the one that ends in "completing the proof") which makes no sense to me either. Could you please provide some insight into what I'm doing wrong?               \documentclass[12pt]{exam}          \usepackage[dvips]{graphicx}          \usepackage{amsfonts,amssymb,amsmath,latexsym}          \pagestyle{empty}          \newcommand{\n}{\noindent}          \newcommand{\pp}{\parskip=0.25cm}          \newtheorem{tem}{{\sc Theorem}}          \newcommand{\R}{\mathbb{R}}          \newcommand{\N}{\mathbb{N}}          \begin{document}          \title{{\bf MA410.F13--Problem Set 1}}          \author{{\bf Lisa Snay }}          \date{}          \maketitle          \begin{questions}\pp          \question[10] Prove that if $a\in\R$ and $a\not=0$, then $a^2>0$          \end{questions}          \begin{solution}          By Trichonomy, we know that $x > 0$, $x = 0$, or $x < 0$.          $x\not=0$ is given so we are left with two cases:          1--If $x>0$ then $x^2 = x\ x$          By order axiom six--if $0\leq x$ and $0\leq y$ then $0\leq x\ y$ so $x^2 > 0$.          2--If $x<0$ then $x^2 = -1\ x\ -1\ x                                 = -1^2\ x^2                        = 1\ x^2                        = x^2 > 0$, completing the proof.          \end{solution}          \end{document}


title: Images and listings as non-floating figures

text: I have been writing a large latex document, but I got some trouble with figures. Usually when I want to add an image or a listing to my list of figures, I just place it within `\begin{figure}` and `\end{figure}`. But the figure-environment is floating all the time and does not care about indentation. So, for some listings and images I use the minipage-environment to prevent floating. But the problem is, I don't know how to add those minipages to the list of figures. A non-floating listing example:               \lstinputlisting[language=XML,      label=lst:xsl_script,      numbers=left,      captionpos=b,      caption=some caption]{documents/analyze.xml}      where analyze.xml is pretty short (5 lines) so I want it to be placed right here. I know, I could surround it with `\begin{figure}[!htbp]` ... `\end{figure}` and it would be placed at the position I want, but nevertheless the indentation would be messed up. So my question is, how to add listings and images to the list of figures without surrouding them with a figure-environment? Thanks.


title: Adding to section names based on their contents

text: I've got a document that talks about requirements fulfilled. Each requirement has an official name, and so I've made macros that consume a requirement name and make marginpars and index entries with the name, and write it in aux files so I can make spreadsheets and stuff. So here's an example:               \section{Offensive capabilities}     \implements{KEPO-1} The spud cannon is capable of imparting 3209 ft-lb      of kinetic energy to its projectile, raising an average potato to the     required maximum of 300 feet.          \implements{FEXT-1} A fire extinguisher is kept near the spud cannon      and checked hourly.          \section{Defensive capabilities}     \implements{POFT-1} Shingles and roof substructure are provided which      are capable of withstanding 300 potato strikes.          \implements{POFT-1} Non-stick coatings are applied to resist slime      attacks.      My question is this: how can I change the section names according to what's inside each section, so that my table of contents can look something like this?               1.1 Offensive capabilities (KEPO-1, FEXT-1) ..... 5     1.2 Defensive capabilities (POFT-1) ............. 6      \-- Here's what I've tried already:               % \def alphFOO macros: chapter, section, etc; see below for details     \let\old@sect\@sect     \def\@sect#1#2#3#4#5#6[#7]#8{%         % #1 is something like section or subsection; #2 is depth in          % hierarchy (1 = chapter, 2 = section, etc); mumble; #7 is section         % title for use in TOC (usually same as #8); #8 is section title         % for use in document body         \ifnum #2>\c@tocdepth           % section will not show in toc. do the usual thing           \old@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8}         \else           % make unique name for section, e.g. paragraphptchseIsussIIp           \edef\last@division{#1\csname alph#1\endcsname}           % make unique name for macro to contain title of section           \edef\last@divtitle{\csname titleof\last@division \endcsname}           % define title macro initially           \expandafter\def\last@divtitle{#7}           % replace title written in toc file with reference to title macro           \old@sect{#1}{#2}{#3}{#4}{#5}{#6}[\noexpand%               \csname titleof\last@division\endcsname]{#8}         \fi}     \def\addtosectionname#1{%         \expandafter\edef\last@divtitle{\last@divtitle ---#1}}     \newcommand{\implements}[1]{%         \addtosectionname{#1}}      That seemed like a good idea---section titles in the table of contents were added on to---but it borked the titles in the PDF bookmarks ("2.3 titleofsectionptchse1su2"), and the TOC got too repetitive when I chanced to mention a requirement more than once (Bla---POFT-1---POFT-1---POFT-1). I started to try to write another aux file like so:               division:section:Offensive capabilities     addition:KEPO-1     addition:FEXT-1     division:section:Defensive capabilities     addition:POFT-1     addition:POFT-1      and postprocess it into a replacement toc file with a Python script, but there are two problems there: (1) this is a multifile document, and the processor needs to go through the included and inputted files in the same order TeX would, which is tedious and error-prone to duplicate; (2) this process changes the length of the toc, possibly pushing sections onto different pages, but the page numbers are written in the toc. So LaTeX needs to change the toc after the script, but then the script needs to change the toc again. Ew. \-- A complete document:               \documentclass{article}     \usepackage[bookmarks=true,bookmarksnumbered=true,breaklinks=true,pdftex]{hyperref}     \hypersetup{plainpages=false, colorlinks=false}     \newcommand \alphpart {pt\Roman{part}}     \ifx\chapter\undefined       \newcommand \alphsection {\alphpart se\Roman{section}}     \else       \newcommand \alphchapter {\alphpart ch\Roman{chapter}}       \newcommand \alphsection {\alphchapter se\Roman{section}}     \fi     \newcommand \alphsubsection {\alphsection su\Roman{subsection}}     \newcommand \alphsubsubsection {\alphsubsection ss\Roman{subsection}}     \newcommand \alphparagraph {\alphsubsubsection p\Roman{paragraph}}     \newcommand \alphsubparagraph {\alphparagraph sp\Roman{subparagraph}}     \makeatletter     % paste "Here's what I've tried already" here     \makeatother     \begin{document}     \tableofcontents     % paste "So here's an example" here     \end{document}      Call that main.tex. Build this way:               pdflatex main.tex     pdflatex main.tex      View the PDF. Observe that the TOC looks OK in the paper. Now look at the PDF bookmarks and see that their names are wrong


title: Lyx Draw a curve from point A to B using xy-pic

text: How can I draw a curve using an `xy-pic` picture to draw a curve from point A to B?


title: Split long string into paragraphs

text: How can I test a string to see if it has more than one paragraph, and split a string that contains multiple paragraphs into two strings, one with the first paragraph of the original, one with the remainder. Background: `xstring` fails when presented with a long (in the \long\def sense) string. I am writing a routine which takes quotations and formats them with a lettrine and some user-specified amount of emphasized (typically small- cap) text at the beginning. This works fine for single-paragraph input, but fails for multi-. In all multi-paragraph quotations, the styling needs to be done only in the first paragraph, hence the CAR/CDR request (and that can be iterated to handle long strings with more than two paragraphs). I am happy to share my working code with anyone who is interested. MWE:               \documentclass{minimal}     \usepackage{xstring}         \begin{document}     \newcommand*{\InputOne}{abc\endgraf def}\InputOne          ---          \newcommand{\InputTwo}{ghi\par jkl}\InputTwo          ---          \StrLeft{\InputOne}{2}          ---          \StrLeft{\InputTwo}{2}          ---          \StrLeft{mno          pqr}{2}     \end{document}