# Tag Info

10

A more elegant way to do this is to use the caption package, which allows you to specify special formats for an individual figure. Here's an example: \documentclass{article} \usepackage{caption} \usepackage[demo]{graphicx} \DeclareCaptionLabelFormat{blank}{} \begin{document} \listoffigures \begin{figure}[hpb] \includegraphics[width=2cm,height=1cm]{foo} ...

7

With titlesec it's easy to add a level. \documentclass{book} \usepackage{titlesec} \titleclass{\subchapter}{straight}[\chapter] \newcounter{subchapter}[chapter] \renewcommand{\thesubchapter}{\arabic{subchapter}} \titleformat{\subchapter}[display] {\LARGE\bfseries\filcenter} {Part \thesubchapter} {1ex} {} \titlespacing{\subchapter}{1ex}{0pt}{4ex ...

6


6

Forget the renaming of \refname and simply use »tocbibind«. \documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[nottoc,numbib]{tocbibind} \begin{document} \tableofcontents \bigskip \begin{thebibliography}{9} \bibitem{key} Author, Title, Journal \end{thebibliography} \end{document}

5

caption has a dedicated command to create (numbered) entries. And you can always use \addcontentsline: \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{caption} \begin{document} \listoffigures \section{section} \captionlistentry[figure]{a figure caption} \addcontentsline{lof}{figure}{another figure caption}% and ...

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 ...

4

In the arguments of \titlecontents, replace \chaptername with \@chapapp. Also, at the beginning of the appendices environment a changed definition of \@chapapp (to \appendixname) must be forwarded to the .toc file. Last, but not least, remove the titletoc option from the appendix package. \documentclass{book} \usepackage{titlesec} \usepackage{titletoc} ...

4

You can simply add a patched version of the \@makechapterhead macro (which is responsable for creating the chapter headings) to the \appendices macro which will be called when using the appendices environment via \g@addto@macro. This patch is locally bounded because it will be applied inside the environment. Complete Code ...

3

Sections S3, S4 and S5 have the same number as the corresponding sections S0, S1 and S2 (because the chapter number remains 0 after unnumbered chapters). Hyperref builds the destination names from these numbers. Thus you get a warning about duplicate destination names and only the first ones are active. (The same happens with pages, because you start the ...

3

This should do what you want. It is based on my previous comment. I am warning you that I don't like this at all, as it may break a lot of other things... If you are to use this seriously, what you really should be doing is to make your own document class, based on report, with the sectioning that you prefer. \documentclass{report} \makeatletter % Include ...

2

The approach I'm suggesting, for all intents and purposes, resets \part to make it behave like a synonym for \section, and it redefines the properties of the section- and subsection-related macros to make them conform to the following numbering scheme: A "part" number does not contain the "chapter" number as a prefix, and \part doesn't increment or reset ...

2

The heading elements end up in two lines because you tell them to be in two lines (i.e. \\ is responsable for that). The problem is that your \mychapter macro lacks a certain ability that standard commands of LaTeX have: Normally in LaTeX the sectioning commands have an optional argument that take the heading which will be written to the ToC. If it is not ...

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 ...

1

You can't redefine \chapter in terms of itself. Use the internal version \@schapter which is called when \chapter* is issued. We have to take into account that \tableofcontents calls \chapter*, so an indirect call has to be made. \documentclass{report} \title{An Example} \author{Nobody} \makeatletter ...

1

The problem is that you want the string "Appendix 1.A" the replace the numbering of the section, but there is not enough place for the whole string. You could specify some more room for it, but I think that the result is not what you expect. \documentclass{book} \usepackage{etoolbox} \newcommand*{\secappendix}[1]{% \setcounter{section}{0}% ...

1

Here's an MWE using the captionpackage: \documentclass{scrreprt} \usepackage[demo]{graphicx} \usepackage[labelformat=empty]{caption} \begin{document} \begin{figure}[p] \includegraphics{test} \caption[My TOC Caption]{~} \end{figure} \listoffigures \end{document}

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