# Tag Info

2

I propose to put the the structure saving commands into the lower part only. Such, the numbering of the tcolorbox is not affected. To avoid the tocs and bookmarks problems, I suggest to deactivate \addtocontents and \addcontentsline as was done for \documentclass. My answer creates a new option protect structure which contains all this stuff. ...

2

The number within option in the definition of texexptitled has to be set to backupsection or \backupchapter (perhaps better) \documentclass[oneside]{book} \usepackage{listings} \usepackage{tcolorbox} \tcbuselibrary{listings}% \usepackage{xcolor} \usepackage[bookmarks=true, bookmarksopenlevel=2]{hyperref} %Definition of New Environments \tcbset{ ...

2

Manual additions to the ToC should be accompanied with \phantomsection before the sectioning command is issued, when used in conjunction with hyperref package. \documentclass{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[hidelinks,bookmarksopen=true]{hyperref} \begin{document} \tableofcontents \chapter{First} ...

2

I like Heiko Oberdiek's solution. The question remains what one can do if one wants to add Unicode characters that don't have predefined commands like \int and \sum. One option is to \usepackage[utf8]{inputenc} and \hypersetup{pdfencoding=unicode} (if it is not already set as an option to hyperref), and to include literal UTF-8 encoded characters in the ...

Top 50 recent answers are included