New answers tagged

1

The issue is most likely the well-known problem: \setcounter{chapter}{0} leads to wrong hyperref anchors, since counter values are used to build such anchors. One solution is to provide another \theHchapter setup, say \renewcommand{\theHchapter}{\appendixname.\thechapter} This will write names like \@writefile{toc}{\contentsline {chapter}{Appendix ...


3

Not any character is possible in a PDF bookmark -- Unicode is supported but this requires a different setup of the content of bookmarks. This can be achieved with \texorpdfstring{TeX content}{pdf content} \documentclass{article} \usepackage{textgreek} \usepackage{hyperref} \hypersetup{pdftex,unicode,colorlinks=true,allcolors=black} \usepackage{hypcap} ...


1

You can load the bookmarks package. Here's a complete example; I also loaded tocbibind to avoid most of the \addcontentsline instructions. The key is \bookmarksetup{startatroot} in the appropriate place. \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[brazil]{babel} \usepackage{imakeidx} \usepackage[...


2

This does not solve the problem with the spacings due to the bottom alignment of the parbox usage here! You need a \texorpdfstring{tex content}{pdf content} switch,i.e. content which is allowed for TeX must be filtered for pdf and bookmarks. See the \chapterandAuthor command. \documentclass[10pt,final]{scrbook} \usepackage{titletoc} % modify toc title \...


0

The appendix package provides the appendices environment -- only this will guarantee that the relevant chapters are considered to belong to the appendix. The standard \appendix provides settings that leak into further additions, which is not wanted here! In addition, I completed the document to make it running and added \usepackage{tocbibind} to provide ...


3

The class simpleresumecv defines macro \section with three arguments: % Macro: section (new section for Education, Research Experience, etc.). \renewcommand{\section}[3]{\\[-1em]\pdfbookmark[2]{#2}{#3}\\% {\UseSectionFont\raggedright\MakeUppercase{#1}}% &} The third argument is used as last mandatory argument for \pdfbookmark, defined by package ...


3

If you look at the  simple-resume-cv.cls, you'll see arguments #2 and #3 are used by the \pdfbookmark command from hyperref. This command has a first optional argument, the bookmark level, and a pair of mandatory arguments: #2 is the text which appears in the resulting .pdf file, and #3 is the name of the anchor , for navigation.


4

The tocdepth must be set again to 1, lately at the end of the document. This can be done either manually or in the \AtEndDocument hook. This must be written to the .toc. In addition the tocdepth counter must be set to 0 before using the various blabla sections. \documentclass[11pt]{article} \usepackage[left=2cm,top=2cm,right=2cm,bottom=2cm]{geometry} \...


1

This should work: \documentclass{article} \usepackage{acro} \ExplSyntaxOn \cs_new:Npn \acro_expandable_long:n #1 { \prop_item:Nn \l__acro_long_prop {#1} } \cs_new:Npn \acro_expandable_long_plural:n #1 { \bool_if:nTF { \prop_item:Nn \l__acro_long_plural_form_prop {#1} } { \prop_item:Nn \l__acro_long_plural_prop {#1} } { \...


2

The easiest way I can think of is to hook into \caption and add the bookmark with a unique bookmark label (generated by the total number of figures or tables) To get the total numbers use (well, my ;-)) package xassocnt and associate stepping the relevant counters with them. The \pdfbookmark[2]{text}{label:name} will add the figure or table entry as ...


1

Handling LuaTeX with hyperref and lacking the unicode option is going to be tricky, but the other cases can all be covered by forcing expansion. You have to remember that hyperref is seeing not the result of the case changing but the input, otherwise. Something like \usepackage{xparse,letltxmacro} \LetLtxMacro\oldsection\section \makeatletter \...


4

The bookmark package is designed to fix a few features of hyperref; although the documentation doesn't tell it explicitly, it should be loaded after hyperref. Actually, bookmark loads hyperref itself, if not already done. Since hyperref changes the meaning of \index, it should be loaded later than imakeidx for hyperlinks to be added to index entries. So ...



Top 50 recent answers are included