Hot answers tagged

4

The title of the table of contents is set by macro \@tocmaketitle in memoir. This macro can be redefined to remove the title including the space: \documentclass[oneside,11pt]{memoir} % Hyperref \usepackage[colorlinks=true]{hyperref} \hypersetup{citecolor=red} \renewcommand{\thesection}{\arabic{section}} \usepackage{titletoc} \titlecontents*{section} % ...


4

Since the eskdtext document class appears to be built on the extarticle document class (which, in turn, appears to be derived from the report class), you could try adding the following instructions to the preamble: \usepackage[titles]{tocloft} \renewcommand{\cftsecfont}{\mdseries} \renewcommand{\cftsecpagefont}{\mdseries}


3

You can do this with \renewcommand\cftpartpresnum{\hfil} \renewcommand\cftpartleader{\hfil} complete code \documentclass[12pt,a4paper]{book} % Part name in TOC \usepackage{tocloft} \usepackage{xpatch} \renewcommand\cftpartpresnum{\hfil} \renewcommand\cftpartleader{\hfil} \addtocontents{toc}{\cftpagenumbersoff{part}} \renewcommand{\thepart}{ Partie ...


3

here is an example that should give the results you want with amsbook. \documentclass{amsbook} \usepackage{etoolbox} % Leader dots in toc \makeatletter %\renewcommand\@pnumwidth{1em} % <-- depending on total number of pages \patchcmd{\@tocline} {\hfil} {\leaders\hbox{\,.\,}\hfil} {}{} % Insert "Figure" or "Table" in "list of" entries ...


3

To add the chapters to the List of Corrections you can use \KOMAoptions{chapteratlists=entry} \addtotoclist[fixme.sty]{lox} \setuptoc{lox}{chapteratlist} \makeatletter \renewcommand*{\listoffixmes}{\listoftoc[{\@fxlistfixmename}]{lox}} \makeatother Result: To remove the chapter entries without fixmes you can use this solution of Markus Kohm (German): ...


2

Would you also be fine with a simple solution without titletoc? \documentclass{book} \renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\thesection}{\arabic{section}} \begin{document} \tableofcontents \chapter{cap1} \section{First section} \subsection{First subsection} \subsection{Second subsection} \section{Second ...


2

Try this \usepackage{titletoc} \titlecontents{chapter}[1em]{\smallskip}% {\contentslabel[\MakeUppercase{\romannumeral\thecontentslabel}.]{1.5em}\enspace } {}%numberless% {\enspace\dotfill\contentspage}[\medskip]% % \titlecontents{section}[0em]{\smallskip}% ...


2

Here is a solution. Use \addcontentsline{toc}{chapter}{Appendix} \addtocontents{toc}{\setcounter{tocdepth}{0}} %for main toc \addtocontents{ptc}{\setcounter{tocdepth}{2}} %for appendix toc Update because of expansion (issue with calc package see comments) it's better to use \addcontentsline{toc}{chapter}{Appendix} ...


2

It is already answered here. If you wish to remove page numbers for a certain level, such as subsection, redefine \l@subsection{title}{page number}.


1

The basic idea is to use the starred form: \chapter*{Attachments} associated with \addcontentsline{toc}{chapter}{Attachments}. This last bit is needed because the starred form strips down the chapter number but also prevents it to appear in the table of contents. \documentclass[a4paper,10pt]{book} \begin{document} \tableofcontents \chapter{This is chapter1} ...


1

Here's a tocloft way that has not been mentioned so far: tocloft provides the \cftbeforeXtitleskip and \cftafterXtitleskip lengths, where X stands for toc, lof or lot, depending on the specific needs. The advantage of using tocloft is that it hides the specific class settings. \documentclass{book} \usepackage{tocloft} \usepackage{blindtext} ...


1

You could hack \chapterformat to add it, although I don't know what side-effects this might have. Note that \fixme is deprecated and the package tells you this when you try to use it. Also, KOMA Script is not at all happy about one of the packages - presumably fixme. See the console output for information and recommendations. \documentclass{scrreprt} ...


1

Here is a solution for headers you need to set \makeatletter \renewcommand{\chaptermark}[1]{\markboth{\@chapapp~\thechapter~-~ #1}{}} \makeatother For toc you need to set \makeatletter \renewcommand\cftchappresnum{\@chapapp\ } \makeatother and add after \appendix \makeatletter ...



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