Beautiful options for creating PDFs with LaTeX

Adobe’s PDF format has become a standard for the exchange of beautiful documents. Let’s start with some less obvious options for the meta data of PDF documents. These are important for search engines, both online and locally, to correctly index your document. It can dramatically improve the ranking of your documents.

Acrobat knows title, author, subject and keywords to describe your document:

In LaTeX, these options can be set using the popular hyperref package. I barely create any LaTeX project without it. You can setup the meta data for the PDF document with pdftitle, pdfauthor, pdfsubject and pdfkeywords:

    pdftitle={Swim Training Patterns},
    pdfauthor={Christoph Bartneck},
    pdfsubject={Exercise your body and mind.},
    pdfkeywords={swimming, XML, language, program, training},

Acrobat also offers options for how PDFs are displayed when first opened:

Important options here are the presence of the bookmarks. These will be based on the headlines used in your LaTeX code (pdfpagemode). I normally use a single page for the layout (pdfpagelayout) that is fitted to the screen (pdfstartview). The enclosing window can be resized to the initial page (pdffitwindow) and centred on the screen (pdfcenterwindow). Last, it makes sense to use the document title for the window title instead of the file name (pdfdisplaydoctitle).

If you set all these parameters, you get a beauatiful and functional PDF that gives a perfect first impression when the user opens it.

Overleaf supports visual tables directly

In the past, I used the TableGenerator to create tables for LaTeX. It was quick and easy to upload a CSV and then format the table. I then copied the LaTeX code to Overleaf.

Overleaf always had a macro for the generation of tables on the code level, but now they also have a visual table editor. To use it you have to switch to the Visual Editor and clicking on the three dots icons reveals the new insert table option. Similar to office applications, you can draw the number of rows and columns you want.

It is not yet possible to draw individual borders, such as horizontal lines. You can only select all or no borders. The menu does, however, announce that they are working in more border settings. TableGenerator is still ahead on this one.

You can enter data directly or copy and paste data from your spreadsheet program. You can also set the alignment of columns.

Merging cells also works already.

The complied table is clean and simple.

The resulting code is clean and correct.

 & \multicolumn{2}{c}{Data}\\
         Month&  Sales& Profit\\
         January&  100& 50\\
         February&  200& 70\\
    \caption{Test of the table feature}