# Tag Info

## Hot answers tagged table-of-contents

6

Writing into the .toc file happens in two stages: The entry is written in the .aux file; you'll indeed find \@writefile{toc}{\contentsline {chapter}{\numberline {1}Title without slash Author}{3}} in it When the .aux file is input as part of the end game routine, those command write the entry in a fresh .toc file that can so be used anywhere during the ...

3

You can change the way subsubsections are shown in the ToCs by setting the subsubsectionstyle key; for example: subsubsectionstyle={show/show/show/show} The first part gives the style for the current subsubsection; the second one, for other subsubsections in current subsection, the third specification controls the appearance of subsubsections in other ...

3

I am really not sure, if i understoof the question correctly. In the following example, we simply patch the original definition of the tableofcontents to set the chapter title in ALL CAPS and the header in lower case. \documentclass{book} \usepackage{etoolbox} \usepackage{fontspec} \usepackage{titletoc} \usepackage{fancyhdr} % Set running headers to ...

3

You shouldn't be using \lowercase, but rather the fancyhdr provided command \nouppercase: \documentclass{book} \usepackage{fontspec} \usepackage{titletoc} \usepackage{fancyhdr} % Set running headers to use small capitals. % In my own document, I am actually selecting a different font. \newcommand{\headfont}{\scshape} \pagestyle{fancy} \fancyhf{} ...

3


3

The problem is the way link destination names are generated by hyperref. If the counter value is used, this will lead to errors, since Chapter 1 occurs four times in this document, each time the chapter counter has a value of 1 then. The relevant portion to change is hypertexnames=false (initial default value is true) From the manual of hyperref: ...

2

As mentioned in comments, in view of the other packages used by the OP's code, the simplest remedy is probably to drop use of etoc. In case some users of etoc find this question, I nevertheless provide this answer to explain what could be the way with etoc to handle the problem: just use the \etocifnumbered command. \documentclass{article} % appendix: ...

1

As you are using hyperref I dont see the need for any additional package like bookmark For the numbering of regular section : hyperref as has an option bookmarksnumbered which does the job ! For the label of *-section : hyperref also defines a \phantomsectioncommand which creates the expected (unnumbered) bookmark, and which can be used for bookmarking the ...

Only top voted, non community-wiki answers of a minimum length are eligible