Making nice and easy to navigate PDFs

For some reason many people make PDFs that are nearly impossible to navigate. PDF is a format that is best of both worlds: it's a paged medium with fixed page geometry and thus allows traditional typesetting, but it's also a digital medium that allows full text search and uniquely digital navigation methods such as clickable hyperlinks and document outline menus.

While typesetting quality is somewhat subjective, and I don't mind reading poorly typeset documents if their content is worth it, I find lack of digital navigation aids very irritating, especially because they are so easy to produce automatically with almost any decent publishing system or office suite.

If you make a PDF, please set the correct title and include the outline, or a hyperlinked ToC, or both. It will show your readers that you really care about them and add a professional touch to your documents. It's simple, I'll show you how.

Document title

A minor issue with PDFs exported from editors I still find annoying is that they often have the original file name in their title, or, worse, have it prefixed with the name of the editor. It's absolutely not informative, it makes it hard to find the window you want if you have too many windows open (is there anyone this doesn't happen to?) and it just looks sloppy.

A real title of a document in the window title simply looks a lot better “Microsoft Word - my document.docx”.

Open/Libre Office Writer

In the File menu, go to Properties. In the properties dialog, select the Description tab and enter the title there.

Libre Office Writer file properties dialog

Google Docs

I couldn't find a way to set a PDF title in Google Docs. Apparently the only option is to import into something else and re-export from there.


Use the pdftitle option in \hypersetup. Example:

    pdftitle={Making nice PDFs},
    pdfauthor={Daniil Baturin}

Outline (also known as bookmarks)

The outline seems to be a relatively obscure feature for some reason. While everyone has seen and used it at least once, there's no standardized name for it. It is a document structure tree generated from its ToC that is displayed in the side pane of the PDF viewer.

In different PDF software it's variously named “outline”, “index”, or “bookmarks”. I'll use the term “outline” because it doesn't conflict with anything else, both index and bookmarks have additional meanings. This is what is looks like in Atril (which calls it index):

PDF outline side pane in Atril

Open/Libre Office Writer

LibreOffice Writer is capable of producing both outlines and hyperlinked tables of contents. The ToC in the exported PDFs is hyperlinked by default. The outline is not enabled by default, but it's easy to enable.

In the Export as PDF dialog, check the Export Bookmarks checkbox.

Export as PDF, check the Export Bookmarks checkbox

Google Docs

Hyperlinked ToC remains hyperlinked in the exported PDF. However, there's no way to produce indexed PDFs. Looks like the only solution is to import into something else and export to PDF from there.


The outline is called bookmarks in the world of TeX. Note that you'll need to compile the document with pdflatex if you want PDF-specific features to work.

There are lots of options for controlling the PDF output, but the minimal setup that you'll need to enable the bookmarks/outline is just:

\usepackage[pdftex, bookmarks=true]{hyperref}

However, if your document is in a language other than English and you are using the unicode inputenc, don't forget to add the “unicode” option.

\usepackage[unicode, pdftex, bookmarks=true]{hyperref}
This page was last modified: 2018 April 08