Currently Browsing Tips & Tricks

Better bibliographies

Better bibliographies: Abbreviate author names with biblatex

While I might write a post one day on why you should use biblatex for your references in LaTeX, I’d like to start a new series of post. The topic: how to make better bibliographies in LaTeX (using biblatex). Today, we’ll see that abbreviating ALL first and middle names is an easy task when using biblatex.


How to include MATLAB code in LaTeX documents

Many packages exist that allow you to include source code of different programming languages into LaTeX document. The most popular once are probably listings and fancyvrb. However, due to their aim for being as general as possible, including MATLAB source code with the right color and markup can be tedious task. Fortunately, Florian Knorn over at MATLAB Central developed a standard featured image

How to create table cells of multiple rows in LaTeX

You may have encountered the problem where you wanted to merge multiple cells in a table column. Especially in the table headers (the leftmost column), this is not unthinkable. In this post, a simple way to realize this is described. We will be using the multirow package to do this.


Highlighting in TikZ plots

Elaborating plotted data and drawing conclusions from them in a (scientific) report can be cumbersome and often takes way too many words than necessary. Following the old saying ‘a picture is worth a thousand words‘, this post describes how to highlight certain areas in a TikZ plot. You’ll be able to adjust the color of the highlighted area, its layer standard featured image

Adding PDF metadata in LaTeX

When working on a LaTeX project of some value, you might want to add your credentials to the PDF metadata. This way, readers of the document will know who made the document and what its about without actually opening the document. Adding metadata might also be a good idea for copyright reasons, etc. As always, there are multiple ways of

Faster LaTeX part 1

Faster LaTeX part IV: Use a precompiled preamble

After the third part in this series on how to speed up the LaTeX compilation part I ran out of ideas. Fortunately, Stefan Kottwitz and Frakturfreund reminded me of one more thing: precompiled preambles. The idea is quite simple: Every time you compile a LaTeX document, it first reads all packages that are called in the preamble with the \usepackage{} standard featured image

Change margins of a single page

Once in a while I write a document with a lot of large figures in it. It then may occur that you want to change the margins of a single page in order to fit a number of figures in one page. This can be done with the geometry package (from version 5 and later) and the \newgeometry command. A

Faster LaTeX part 1

Faster LaTeX part III: Check syntax only

This is the third post in a series on how to speed up the process of ‘LaTeXing’. Part 1 was on how to make the LaTeX compilation process faster by compiling only parts of large documents and in part 2 I wrote about an external TikZ library. Today’s post is a little different. Mostly, the reason I compile my document