# Tag Info

2

You could try this approach which will certainly need some more modifications in case the ToC is more than two pages long. And perhaps there are some drawbacks which I don't see at the moment. It uses the »atbegshi« package from the »oberdiek« bundle which allows to add the "headline" quite flexible to the next page of the ToC. If necessary, this can also ...

4

The tocloft package indeed provides lots of handy macros to shape nearly every aspect of the appearance of the table of contents (and of the lists of figures and tables too). Once the tocloft package is loaded in the preamble \usepackage{tocloft} you'd issue the command \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} to enable dot leaders for ...

6

The label information is all in the aux file, so you can extract it something like this: \documentclass{article} \usepackage{hyperref} \long\def\findlabel#1#2\findlabel{% \ifx\newlabel#1\lablist\expandafter{\the\lablist\showlabel#2}\fi} %hyerref has 4 felds in each label culd use them but don't here \def\showlabel#1#2{% \par \noindent Label: ...

2

If you look at the .loa file you'll see \addvspace {10\p@ } \addvspace {10\p@ } \contentsline {algocf}{\numberline {1}{\ignorespaces test algorithm}}{5} \addvspace {10\p@ } \contentsline {algocf}{\numberline {2}{\ignorespaces another test algorithm}}{7} so, rather than \let\l@algorithm\l@algorithms you have to say \let\l@algocf\l@algorithmt Some other ...

1

Which document class do you use? With either the book or the report document class (and the tocloft package loaded), dot leaders are enabled by default for section, figure, and table items; there should thus be no need to (re)define the macros \cftsecleader, \cftfigleader, and \cfttableader to enable dot leaders for these items in the table of contents, the ...

6

The right way to do it should be to use \addtocontents{toc}{\cftpagenumbersoff{chapter}} instead of \cftpagenumbersoff{chapter} and \addtocontents{toc}{\cftpagenumberson{chapter}} instead of \cftpagenumberson{chapter} In fact, the following MWE \documentclass[twoside]{book} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} ...

3

I don't know if this will work for your use-case: \documentclass[a4paper,twoside]{memoir} \usepackage{tocloft} \usepackage{tocvsec2} \usepackage{etoolbox} \makeatletter \apptocmd\l@part{\null\kern-\baselineskip}{}{} \makeatother \begin{document} \setsecnumdepth{none} \addtocontents{toc}{\protect\renewcommand{\protect\cftpartpresnum}{}} ...

4

You need to insert the multicol environment definitions (start and end) at the appropriate locations: Immediately after \part you need \begin{multicol}{2} and immediately before \part you need \end{multicol}. \documentclass{book} \usepackage{tocloft,etoolbox,multicol,tikz} \renewcommand\cftpartafterpnum{\nopagebreak\vspace{-.7em}\par\tikz\draw (0,-0.1) ...

0

This short solutions is good enough for me. I don't know how it would work with subfigures. In either case @Jesse 's does much better at formatting. Maybe I'll use his in my document. In the preamble: \usepackage{caption}[2011/11/10] \newcommand{\figsource}[1]{% \addtocounter{figure}{-1} \captionlistentry{source: #1} } In the document: ...

3

This may not be perfect in a sense that figure caption is on top. But it has the main feature OP needs. \subcaptionbox command is used instead of subfigure environment. Need to compile twice. Code \documentclass[10pt,a4paper]{article} \usepackage[list=true]{subcaption} \usepackage[demo]{graphicx} \usepackage{tocloft} \setcounter{lofdepth}{2} ...

Top 50 recent answers are included