• Automatic line breaks in LaTeX tables

    Tables with lots of text in LaTeX often lead to tables that do not fit on a page. This post shows how to produce tables with automatic line breaks. Here is a simple example of a badly formatted table:

    The tabularx package has the possibility to break lines automatically by using the column specifier X:

    Read the rest “Automatic line breaks in LaTeX tables”

  • Showing a beamer presentation with preview of next slide

    If you use LaTeX with the package Beamer instead of Powerpoint to make presentations, you will probably miss the possibility to present a slide and at the same time have a quick glance on the next slide (Powerpoint has this great feature).

    Searching the internet, I found the following solution: pympress:

    “It is designed to be a dual-screen reader used for presentations and public talks, with  two displays: the Content window for a projector, and the Presenter window for your laptop. It is portable and has been tested on various Mac, Windows, and Linux systems.”

    You can download it … Read the rest “Showing a beamer presentation with preview of next slide”

  • Aspell does not work anymore with the new Emacs 26.1 for Windows: hunspell to the rescue

    I downloaded the newest version of Emacs (26.1) from Vincent Goublet’s homepage., and run into the problem that my spell-checking of documents doesn’t work anymore. I use ispell and Aspell but the new version of Emacs needs Aspell 6.0 which is not available for Windows. After some googling, I found a good replacement: hunspell. Now I can check my spelling again:


    I added the following code in my .emacs file (I found it somewhere on the internet).

    (setq ispell-program-name "C:/Program Files (x86)/hunspell/bin/hunspell")
    ;; "en_US" is key to lookup in `ispell-local-dictionary-alist`, please note it will be passed   to hunspell 
    Read the rest “Aspell does not work anymore with the new Emacs 26.1 for Windows: hunspell to the rescue”

  • Drawing nice side-by-side trees in LaTeX

    In my work I often have to describe the model I use. For this it is almost inevitable to draw some hierarchical production functions. The following shows you how to draw two production functions side by side using Tik/. TikZ is a German acronym and stands for “TikZ ist kein Zeichenprogramm” (TikZ is not a drawing program) and produces high-quality drawings in LaTeX.

    This is how the two production function look in the paper:

    2017-12-06 12_04_12-Report top-down modeling.pdf - SumatraPDF

    I use the Latex package subcaption (as the package subfigure is deprecated) to get the two production functions side by side. You further need to load … Read the rest “Drawing nice side-by-side trees in LaTeX”

  • Tables with footnotes in LaTeX

    Once in a while, I need a table in LaTeX with some footnotes below the table. Doing an internet search I found a nice solution using the package threeparttable. Here is a small example with the nuclear power plants in Switzerland:


    The LaTeX code for this table is self-explaining (note the special structure: table – threeparttable – tabular):

    Read the rest “Tables with footnotes in LaTeX”


Name *

Email *