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:

image

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

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:

image

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

Read the rest “Tables with footnotes in LaTeX”

Using Powershell to clean up the animations your LaTeX file

In a previous post, I talked how to animate your Beamer presentations and how to print them as slides and article for the audience. One problem with a presentation with animations is that every element of an animation means one more slide. If you want to give the presentation to the audience so they can write on their slides using their ipad or touch screen notebook, they will complain that only one of the animated slides is complete.

The easiest way to remedy this, replace all overlays, \pause, etc. from your LaTeX file and print it like this. One could … Read the rest “Using Powershell to clean up the animations your LaTeX file”

Tricks with Beamer: Animations and Print-Outs

If you use Beamer for presentations, you might want to use “animations”: either show list elements successively or build up a diagram. Beamer has some nice possibilities for doing this:

  • In lists (enumerate, itemize) you can use the overlays. Just add <1-> after the first \item and this item will show up first. For the second item you just add <2->, etc. You can also let them disappear again by giving a range (e.g. <2-3>, which means that this item will appear at the second and third slide, but will disappear again after that. If you want all the list
Read the rest “Tricks with Beamer: Animations and Print-Outs”