New answers tagged

2

The main problem is the loading order of subfig and tocloft. subfig defines c@lotdepth by a \@nameuse statement - as such it's already defined at the time when tocloft tries to setup this new counter. The same is true for c@lofdepth, leading to a similar error. The other way round, using tocloft first before loading subfig poses no problem. Another ...


1

I think it would be better to approach the problem in a similar style to citations. First define a set of quotes (just like you'd define a set of citations in a .bib file) and then use the ones you want in the document. Here's an example using the glossaries package. The quotes are defined using the custom \newquote command that this example provides. To ...


4

\newcommand{\listsuppmatname}{Supplementary Materials} \newlistof{suppmat}{smat}{\listsuppmatname} \newcommand{\suppmat}[1]{% \refstepcounter{suppmat}%%%%% \noindent{Video \thechapter.\thesuppmat}%%%%%%%% \addcontentsline{smat}{suppmat}%%%%% {\protect\numberline{\thechapter.\thesuppmat}#1}%%%%% } Your macro was adding 4 spaces each time, I ...


1

I'm afraid tocloft is not compatible with the AMS classes. There is no way you can use it with amsbook.


0

The solution was to change the titleFormat using a negative value for vspace like below: \titleformat{name=\chapter,numberless}[display] {\normalfont\color{yourcolor}} {} {1ex} {\vspace{-20ex}\huge\sffamily\itshape\center} [] \titlespacing*{\chapter}{0pt}{50pt}{40pt}


0

Finally i found i was looking for. Here is my solution: \usepackage[titles]{tocloft} \renewcommand{\cftbeforesecskip}{0pt}%change indent between sections \renewcommand{\cftdot}{}%remove dots


2

Here is how to remove the dotted line from the toc, at least for article class. \documentclass{article} \makeatletter \renewcommand*\l@subsection[2]{% \ifnum \c@tocdepth >\@ne \addpenalty\@secpenalty \addvspace{\z@ \@plus\p@}% vertical space (1.0em \@plus\p@ for section} \setlength\@tempdima{2.3em}% #3 from \@dottedtocline \begingroup ...



Top 50 recent answers are included