Converting LaTeX to Markdown

Using Regular Expressions

I'm usually writing my notes on physics and mathematics, e.g. the ongoing series of posts on Riemannian geometry, in \(\LaTeX\) documents, as probably most people do. For the purpose of this blog I regularly need to convert parts of these documents into markdown that Hugo can understand. Since I haven't found any better solution yet I decided to develop a set of regular expressions in Python that do the job pretty well. I normally run the code in a Jupyter notebook that allows me to check the quality of conversion immediately and do some minor tweaking if required.

[Read More]

Image Manipulation with Python Pillow

Normally I use GIMP when I need to resize, crop or retouch images in various ways. However, for my last post on the Berlin Festival of Light I would have had to manually resize and crop a whole bunch of images at a time. That's why I took a look how Python could help with this task, and found PIL, the Python Imaging Library, in newer versions known as Pillow.

[Read More]

First post!

Hello world, this is my first post!

Like many others, I start with some remarks on how this blog is set up. I'm using the static site generator hugo and the theme beautifulhugo. Since installation was straightforward, as described on the hugo website, I will only list a few remarks, as a memory aid, on how I tweaked details of the layout.

[Read More]