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.

Continue reading “Avoiding widows and orphans in LaTeX documents”

Formatting text in Stata figures

Simple formatting for text in Stata figures

This is not really new, but still comes in handy when formatting text in Stata figures. With a relatively simple code, you can make write text bold, in italics, and even greek letters.

Continue reading “Formatting text in Stata figures”

Guide on formatting tables in #LaTeX by Adrian Robinson: https://www.statatexblog.com/wp-content/uploads/2013/09/tabletricks_latex.pdf

There are a lot of sources giving advice on how to format your Latex tables. Adrian P. Robson (adrian.robson@nepsweb.co.uk) wrote a very good and comprehensive guide on formatting tables in Latex. Just follow the following link to download the PDF file:

LATEX Table Hints and Tips (by Adrian P. Robson, adrian.robson@nepsweb.co.uk)