# Tag Info

0

You need an anchor for \addcontentsline. The anchor is usually set by a section command. This allows the bookmark by \addcontentsline to point to the section title and not to the place, where \addcontentsline is issued. An anchor can be set by \phantomsection. If the bookmark should point to the bold text on page 2, then put \phantomsection right after ...

1

DropDown menu at the top left corner->View->Bookmarks or F12.

1

Add \usepackage{bookmark}. It implements a more robust algorithm with duplicate anchors and broken section structure. Maybe it is able to fix some of the issues. But it cannot correct the LaTeX code: Setting \tableofcontents twice does not make sense. The entry for the table of contents in the table of contents is put after the table of contents. The page ...

4

The relevant command is from bookmark package, called \bookmarksetup -- since the appendix chapters should be on the same level as the parts, it's necessary to restart the next bookmark level again, using \bookmarksetup{startatroot} The bookmark package extends the hyperref bookmarking facilities and it does the whole bookmarking in one run, not in at least ...

2

hyperref has a companion, bookmark, which disables hyperref's bookmarks and gives you some additional power. Include it and also include: \bookmarksetup{startatroot} just before your appendix. That will fix the issue.

0

You can adjust the way \section works and make \section* act the same way \section does, only with some minor modifications: \documentclass{book} \usepackage{bookmark} \hypersetup{bookmarksnumbered=true} \usepackage{xparse} \makeatletter \renewcommand{\@seccntformat}[1]{\csname the#1\endcsname\space}% Just for this example \let\oldsection\section ...

1

This (minimal) document produces no bookmarks. Saying bookmarks=true or removing the statement bookmarks=false will enable them (perhaps it's necessary to click on the bookmarks panel of the viewer to see them in this case) Some remarks, unconnected to the underlying problem The \else ...\fi pair is not matched -- will lead to a compilation error then ...

1

Package hyperref already tries to filter out many commands, which have no meaning in bookmarks. Bookmark are simple text strings and the PDF viewers do not understand TeX markup. In this case I suspect that to comes from the TeX primitive \hbox which has to as keyword to specify the width of a box. \hbox is filtered out and if the width is a dimen register, ...

4

You should get a warning: Package hyperref Warning: bookmark level for unknown level4 defaults to 0. That means unknown section levels (level4, level5, ...) are treated with value 0 (chapter). The additional bookmark levels can be defined the following way: \@namedef{toclevel@level4}{4} \@namedef{toclevel@level5}{5} ... Or inside your loop: ...

1

Thank you, @ChristianClason, your suggestion worked. I see now that this is essentially a duplicate of the following question: PDF bookmarks for sections and subsections with the llncs class Here is the solution with the suggested extra line: \documentclass{siamltex} \usepackage{hyperref} \setcounter{tocdepth}{3} \usepackage{lipsum} \begin{document} ...

Top 50 recent answers are included