# Tag Info

## New answers tagged bookmarks

4

Bookmark are numbered with option numbered of package bookmark: \usepackage{bookmark} \bookmarksetup{numbered} Of without bookmark with hyperref only: \hypersetup{bookmarksnumbered} Adding prefixes Chapter and Exercise can be done via a trick: \renewcommand*{\thesection}{% \texorpdfstring{}{Chapter }% \arabic{section}% \texorpdfstring{}{:}% } ...

0

I think you are looking for the fancyhdr package. It will not only provide you with the possibility to have chapter, page number, section name, etc. on each page, but will also be fully compatible with the package you are loading (specially for cross referencing like hyperref and bookmark). It is also very easy to use, and can be set with just a few ...

5

Some remarks: \addcontentsline{toc}{...}{...} already adds a bookmark. I have disabled the page anchors for the pages with \pagenumbering{gobble} to avoid conflicts with page destinations for different pages, but the same destination name, because \thepage is empty. \pdfbookmark can be used here that automatically sets an anchor and avoids an explicit page ...

3

You don't need to append bookmark instructions for all chapters, nor \addcontentsline: \documentclass[12pt,letterpaper,openright]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,es-tabla]{babel} \usepackage{bookmark} \usepackage{titlesec} \usepackage{titletoc} \titleformat{\chapter}[display]{\Huge\bfseries}{\chaptertitlename\ ...

7

The following provides the functionality to swap titles and numbers in the bookmarks: \documentclass{scrbook}% http://ctan.org/pkg/KOMA-script % \usepackage{hyperref}% http://ctan.org/pkg/hyperref \usepackage[numbered]{bookmark}% http://ctan.org/pkg/bookmark \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox \makeatletter ...

8

The escape character is also used for escape sequences in PDF strings. A naked backslash confuses hyperref, because it does not know, whether it is a printed backslash or the start of a PDF escape sequence. To make it clear, use \textbackslash. But this will not work either, because of the wrong catcodes (tex.sprint(-2, ...)). Therefore \textbackslash ...

0

Just a guess, but I think you might need to replace \\wörld with \\\\wörld. Reasoning: \\wörld in Lua converts to \wörld in LaTeX, which converts to whatever the \w macro does. But \\\\wörld in Lua converts to \\wörld in LaTeX, which converts to backslash followed by 'wörld'.

4

from the documentation: 2\documentclass{article} 3 \usepackage{xcolor}[2007/01/21] 4 \usepackage{hyperref} 5 \usepackage[ 6 open, 7 openlevel=2, 8 atend 9 ]{bookmark}[2011/12/02] 10 11 \bookmarksetup{color=blue} ....

9

Next to the answer of Werner I want to point to the example of the documentation. There the package bookmark is loaded after hyperref. So you can setup options for hyperref separat. However related to the documentation it's important to load hyperref without disabling the bookmarks. Although bookmarks loads hyperref I prefer the loading of hyperref ...

12

bookmark loads hyperref since it uses some of the code contained within it. As such, it is sufficient to only load bookmark. Since loading of hyperref is included in bookmark, load order doesn't matter.

2

Yes, by default, unnumbered (or starred) sections do not show up in the bookmarks. And, as you noted, References are unnumbered. Use it as follows: \documentclass{article} \usepackage[bookmarks]{hyperref}% http://ctan.org/pkg/hyperref \begin{document} \begin{thebibliography}{1} \addcontentsline{toc}{section}{\refname}% Add references to ToC (and ...

Top 50 recent answers are included