# Tag Info

2

You can provide an additional toggle (or conditional) that is used in your hook. Below I defined \ifboldPDFchapters that you can switch depending on what you need, and added the conditional to the hook: \usepackage{bookmark} \newif\ifboldPDFchapters \bookmarksetup{ open, addtohook={% \ifnum\bookmarkget{level}=0 % \ifboldPDFchapters ...

2

The idea is correct using addtohook and \bookmarksetupnext. However, bold=false of \bookmarksetupnext is overwritten by the hook. Therefore \bookmarksetupnext must also use the hook: \documentclass[listof=totoc]{scrreprt} \usepackage{bookmark} \bookmarksetup{ open, addtohook={% \ifnum\bookmarkget{level}=0 % \bookmarksetup{bold}% ...

1

The bookmark text for \faWrench contains a font command \Segoe (BTW, the command is a font switch command, not a macro with an argument). Font switch commands are NOT allowed inside bookmarks. Or does a PDF viewer exists, which can make use of a LaTeX font switch command? Instead of \newfontfamily\Segoe{segoeui.ttf} ...

4

Bookmark The PDF bookmarks can be encoded in PDFDocEncoding (default, 8bit) or Unicode (UTF-16BE with BOM). Option pdfencoding=auto or unicode are needed to enable Unicode bookmarks: \usepackge[pdfencoding=auto]{hyperref} The wrench symbol 🔧 is available in Unicode as U+1F527. Then the symbol can be supported in the bookmarks via the generic ...

1

That's not an error: just a warning. It is just telling you it can't find bold so is using the regular weight instead. This is nothing to worry about unless you were expecting it to find a bold weight of a font. The bookmarks are displayed in a font determined by your PDF viewer - not the document - as far as I know. Notice that the font of the text does ...

5

Package bookmark also supports URI actions in bookmarks, which can be used to link to other files or URLs. \documentclass{article} \usepackage{hyperref} \usepackage{bookmark} \bookmarksetup{open,numbered} \begin{document} \section{Hello World} \bookmark[ level=subsection, uri={http://tex.stackexchange.com/}, ]{URI: TeX.SX} \end{document} However, it ...

Top 50 recent answers are included