jeudi 4 décembre 2014

Tocloft - change listof title format individually, while using titles option


I defined some new listofs with the tocloft package and used the provided titles option, but I only want the ToC to look like one of my chapters. My custom listofs should look like sections without numbers (\section*). Is there a way to change the format of certain titles of listofs while using the titles option?



\documentclass[twosite]{scrbook}
\usepackage[titles]{tocloft}
\newlistof[chapter]{som}{exp}{List of Something}
\newcommand{\something}[1]{%
\refstepcounter{som}
\par\noindent{Som.\hspace{1ex}\thesom:\hspace{1em}#1}
\addcontentsline{exp}{som}{\textbf{Som.\hspace{1ex}\protect\numberline{\thesom}:} #1}\par
}
\begin{document}
\something{Something is more than nothing}
\listofsom
\end{document}




Aucun commentaire:

Enregistrer un commentaire