Tag Info

Hot answers tagged

5

You can use the titletoc package for this: The code: \documentclass{book} \usepackage{titletoc} \renewcommand\thechapter{\Alph{chapter}} \renewcommand{\thesection}{\arabic{section}} \titlecontents*{subsubsection} [7em] {\small} {\thecontentslabel} {} {} [~---\ ] \setcounter{tocdepth}{3} \begin{document} \tableofcontents \chapter{A test ...


3

Use the tocloft package and its \cftsecnumwidth length, which holds the width used for sec(tion)num(bers). It's better to increase the current value it by some other value instead of direct usage of \setlength{\cftsecnumwidth}{...}. (The value of 20pt applied here is a pure guess, however.) Note: The explicit usage of \setcounter is just for demonstration ...


3

A solution without hardcoding or editing the .cls file directly: The O.P. was right in his assumption about \@makechapterhead: \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \huge\bfseries \@chapapp\space \thechapter \par\nobreak \vskip 20\p@ \fi ...


2

You could use the optional argument of the sectioning commands: \subsection[shorter title]{longer title} In this way LaTeX will show the longer title in the main document, using the shorter version for headings and toc entries.


1

Use the plain option for the frame: \documentclass[ ]{beamer} \usetheme{Singapore} \begin{document} \begin{frame}[plain] \tableofcontents \end{frame} \section{A test section} \begin{frame}test \end{frame} \section{Another test section} \begin{frame}test \end{frame} \end{document} The result, showing the frame with the ToC and a regular frame:


1

This is not the answer to the question (Thomas F. Sturm already stated that there was a bug in 3.70 of tcolorbox), but I wanted to suggest to use a separate newtcolorbox for this \l@part command -- it can be changed easier then: \documentclass[12pt,a4paper,openright,twoside]{book} \usepackage[english]{babel} \usepackage[most]{tcolorbox} ...


1

Here's something that should be workable. It assumes you have a relatively small list of authors, since their names are hard-coded into the author list commands and files. \documentclass{memoir} \newcommand{\authortoc}[2]{ \chapter{#2} \addcontentsline{#1}{chapter}{\numberline{#2}}\par% } \newcommand{\listkafkaname}{Kafka} ...


1

Well, this is somewhat a hack... The ordered appearance of \chapter in a ToC is 'messy' considered for the request, so I stored the contentslines in a Atoc, Btoc etc. file, where each author get's his own file, however only with 26 authors. If more is to be done, alphalph package will help ;-) The \chapter macro does no longer write an entry to the ToC, ...


1

More of a comment, but I wanted to include the picture: Have you at least tried my suggestion? (I really cant tell if thats your problem, but it sounds like it), consider the following near to minimal example \documentclass{article} \begin{document} \setcounter{secnumdepth}{1} \section{section} \subsection{subsection} \subsubsection{subsubsection} ...


1

Use the optional argument of \part: \documentclass{article} \begin{document} \tableofcontents \part[the title for the toc] {The title for the document\\[\bigskipamount] \large with a small subtitle} foo \end{document}


1

Don't set the counters inside the argument of \addchap. \documentclass{scrreprt} \usepackage{scrpage2}\pagestyle{scrheadings} \newcounter{chapterCounter} \newcounter{rsss} \DeclareRobustCommand{\appendix}[2]{% \clearpage \setcounter{rsss}{\value{chapter}}% \addtocounter{rsss}{- \value{chapterCounter}}% \addtocounter{rsss}{1}% ...


1

My mistake was a \begin{itemize} and did not close the \end{itemize} part in the main file. This main file has an \include{} . The MWE could not simulate the error on my case. Thanks for all the help and suggestions


1

I'm not sure why you're using such a complicated approach. \documentclass{scrreprt} \usepackage{scrpage2} \pagestyle{scrheadings} \newcommand{\appendixString}{Appendix \thechapter: } \newcommand{\addappendix}[1]{% \refstepcounter{chapter} \addchap{\appendixString #1}% \ihead{\appendixString #1}% } \begin{document} \tableofcontents \chapter{Bla} ...



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