Tag Info

Hot answers tagged

7

Combining and adapting answers to other of your questions (Redefine \part style and \part Heading style) and adding the formatting for the part entries in the ToC, this might be what you're after: \documentclass{book} \usepackage[table]{xcolor} \usepackage{epigraph} \setlength\epigraphwidth{.6\textwidth} \makeatletter \def\@part[#1]#2{% \ifnum ...


6

You can use tocloft and its \cftXfont family of commands: \documentclass[a4paper,12pt]{book} % Packages \usepackage[english]{babel} \usepackage{blindtext} \usepackage{titlesec} \usepackage[titles]{tocloft} \titlespacing*{\chapter}{0pt}{-50pt}{20pt} \titleformat{\chapter}[display]{\normalfont\scshape\huge\bfseries}{\chaptertitlename\ ...


5

See the improved version below!!! First: Quick and dirty solution: This works, as long there are no \chapter commands, which reset the section counter. However, the subsection counter is reset by \section: Either one drops the resetting or a special redefinition of \subsection is applied, using another totalsubsection counter. After all, the value is ...


4

A possible solution using tocloft: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[titles]{tocloft} \usepackage{graphicx} \newlength\mylen \cftsetindents{figure}{0em}{0em} \let\orignumberline\numberline \let\origlistoffigures\listoffigures \renewcommand\listoffigures{% \renewcommand\numberline[1]{% ...


4

This seems to work, at least if the contents fits one page: the code is admittedly horrible. \documentclass[11pt, openany, oneside]{book} \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} \usepackage[paper=a4paper,margin=1.3 in]{geometry}% http://ctan.org/pkg/geometry \usepackage[demo]{graphicx} % demo is just for the example ...


3

One option using the multicol package: \documentclass{beamer} \usepackage{multicol} \begin{document} \begin{frame} \frametitle{Outline splitted} \begin{multicols}{2} \tableofcontents[pausesections,sections={1-10}] \end{multicols} \end{frame} \section{Test1} \frametitle{Test} \begin{frame} Test \end{frame} \section{Test2} ...


3

You can use the usual interface to specify a different <ToC title> to your <part title>: \part[<ToC title>]{<part title>} If you wish to adjust the font (and other characteristics) of the ToC-related entries, consider using tocloft. For example, using \usepackage{tocloft} \renewcommand{\cftpartfont}{\itshape\LARGE} prints the ...


3

The standard way to have different contents for the actual heading and the entry in the ToC is to use the optional argument of the sectional unit, as Werner mentioned in his answer: \part[Titlte for the ToC]{Title for the document} this, however, won't work in your actual code due to a mistake in the redefinition of \@part to produce the special ...


2

This is perhaps, what you want: Use a \chapter*{\appendixname} having no 'number' (i.e. no prefix 'A') and just provide the \thefigure with the prefix A, via \renewcommand{\thefigure}{A.\arabic{figure}} Additionally, add the Appendix to the TOC using \addcontentsline{toc}{chapter}{\appendixname} manually. See code below, where I commented some ...


2

You can do that with titlesec/titletoc which have a \titlerule command. Here is a way to obtain something (almost) close to the picture — I didn't want to hack for the appearance of ‘Contents’, which is not the main subject of your question. \documentclass{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{titletoc} ...


1

Just add to your preamble: \mtcsettitle{minitoc}{Contents \hspace{13.5cm} Page} Unfortunately \hfill renders an incorrect result. EDIT \hspace{} inside \mtcsettitleis not a good idea, many errors, no clue, why. Ahem, an even more dirty version: \mtcsettitle{minitoc}{Contents \textcolor{white}{mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm} Page} Of course ...


1

Yuo need to redefine the chapter counter right when the appendix part is started. Here is your MWE: \documentclass[lscape]{msu-thesis} \usepackage[T1]{fontenc} \usepackage{lipsum} \begin{document} \frontmatter \tableofcontents* \mainmatter \chapter{Introduction} \section{Some section} \lipsum[2] \subsection{Subsection} \lipsum ...


1

Got it but gonna post it anyway in case someone might need this one day. I looked up the definition of \tableofcontents in the document class file scrreprt.cls \newcommand*\tableofcontents{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\contentsname ...


1

Edit See improved version below This is some kind of a hack, redefining the \chapter, \section down to \subsubsection commands, which write an additional \jobname.tabletoc file. Remove the .tabletoc file after addition of new sections, this must improved later on, I will fix it. The traditional \tableofcontents is still available. It should also use a ...


1

The problem is in the last mandatory argument for \titlecontents for chapter in which you use \; which is a math-mode only space and you are trying to use it in text mode; replace those for text-mode spaces. I marked the problematic line below using "% the problem is here", so you can easily see where the problem is and can apply the necessary correction: ...


1

You would have to adjust the way tocloft constructs the LoF entry by modifying the margin lengths that are set. Below is a redefinition of \l@figure from tocloft to provide you with the necessary output: \makeatletter \renewcommand*{\l@figure}[2]{% \ifnum \c@lofdepth >\z@ \vskip \cftbeforefigskip {%\leftskip \cftfigindent\relax ...


1

Using \usepackage[bitstream-charter]{mathdesign} makes your entire document conform to the mdbch font family. To adjust the boldness of your ToC/LoT/LoF titles, you can add \renewcommand\cfttoctitlefont{\normalfont\Huge\mdseries} \let\cftlottitlefont\cfttoctitlefont \let\cftloftitlefont\cfttoctitlefont to your preamble. The first command adjusts the ...



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