1
vote
1answer
54 views

Extra code for \tableofcontents (renew)

I want my \tableofcontents command to include these two commands at the beginning: \pagestyle{headings} and \pdfbookmark[0]{Table of Contents}{contents} I tried using the etoolbox package, and I came ...
3
votes
3answers
401 views

Separation space between tableofcontents items in beamer

In beamer, I guess, the separation space between the items from tableofcontents is stretchable: Can you set it to a fixed value? e.g. to equal the value used in the itemize environment. Partial ...
3
votes
1answer
65 views

Wrong placement for \preto using etoolbox

I'm observing that the adding a text to a list of tables (or figures) through \preto from etoolbox does not work properly when the table is placed on the next page if it does not fit the page where it ...
1
vote
0answers
53 views

etoolbox preto command doesn't work when tocloft package is used

So I am trying to use: \preto\tableofcontents{ ... } to add something before ToC (and same thing for LoF and LoT) in the Class file (i.e. neither adding ... in the real .tex file, nor making ...
1
vote
1answer
120 views

Adding tables to list of tables with custom chapter breakdown

Running the code below is supposed to modify my list of tables to show the Chapter number above each set of tables related to that chapter. \usepackage{etoolbox} \preto\table{% ...
1
vote
1answer
259 views

Hyperref link jumps to the first entry of the bibliography entry rather than to its title [duplicate]

This is a follow-up question to Gonzalo Medina's answer of Bibliography in table of contents. One of his solutions for including the bibliography in the ToC is to use the following code: ...
11
votes
1answer
230 views

Problems with mathtools package

The following code produces an error. If the mathtools package is removed, it works. Why? \documentclass{report} \usepackage{mathtools} \usepackage{etoolbox} \newbool{shorttoc} \makeatletter ...
4
votes
1answer
588 views

Hyperref breaks my all-caps ToC entries

I started out on this earlier question. I now have a simple and elegant etoolbox solution to making all-caps chapter entries, but leaving appendix entries untouched. Simple, elegant, and incompatible ...
6
votes
1answer
863 views

Making memoir Chapter entries in ToC all-caps and Appendix entries regular case, without breaking hyperref

I have a thesis style working, but around 10% of my code is a copy of memoir's \def\@chapter that lets me put all regular chapter entries in all caps, and keep appendix entries in regular case. This ...