Handout-mode in LaTeX slides

Whether it is lecture slides or presentations, you often wants to distribute pdf-versions of your beamertex file. If you are using overlay to blockwise show text or blockwise highlighting parts of tables (see here and here for ways to color parts of tables with overlay), it makes little sense to distribute the pdf versions where one and the same slide is repeated with each overlay step. Luckily, there is a extremely simple solution

Continue reading

Produce multiple pdfs in LaTeX with automated cross-references

For some time I looked for a way to simplify the process of linking LaTeX files of my manuscripts with the replies to editors and referees. In particular, I was looking for a way to automatically update cross-references (i.e. to put a \ref in the replies and link it to a \label in the mansuctipt – for example for a table), and also to put direct quotes of the from the main text into a report (e.g. if you want to tell the editor/referee if you have a specific sentence, paragraph or even table added to the revised manuscript).

Continue reading

Line spacing in footnotes

When submitting papers, journals often require double-spaced footnotes. While there seem to be different approaches to it, this one worked quite well. It requires the footnotemisc package. You simply need to enter the following code in the preamble of your LaTeX file:

\usepackage{footmisc}
\renewcommand{\footnotelayout}{\setstretch{2}}

Avoiding widows and orphans in LaTeX documents

To avoid paragraphs ending with a single line on the following page often looks a bit ugly. Especially when they are then followed by figures or tables. Single lines of a page-overlapping paragraph are called “widows” and “orphans”. How can we tell TeX to avoid those? With the following code, you tell TeX that it should put a penalty on these types of layouts. Setting this penalty very high (typically 10.000) avoids widows and orphans almost entirely. Just add the following code in the preamble of your document.

\clubpenalty = 10000
\widowpenalty = 10000 \displaywidowpenalty = 10000

Include entire PDF files in your LaTeX document

I described already earlier how to use images in pdf format in your LaTeX document, e.g. if you want to include a screenshot of a Table of a paper in pdf format in your slides (which results in much better quality than using jpg or similar formats).

But what if you want to include complete pages of a document or even complete pdf documents? I have used the latter for example as a reliable tool to append pdf documents, such as papers.

Continue reading