I'm using tocloft
and tocstyle
using settings standard and nopagecolumn
for my book. I'd like these settings to apply to my user-defined list of examples (.loe), but haven't had much luck. I naively tried replacing \usetocstyle
with \useloestyle
, but that didn't work. Using \renewcommand{\cftloedotsep}{\cftnodots}
gives me the equivalent of nopagecolumn
, but the font does not match that of the toc.
I was unable to find enlightenment in the documentation (though I have faith that it's there somewhere). Can anyone offer some advice?
Thanks!
Here's a MWE:
\documentclass[12pt]{book}
% define table of contents style
\usepackage{tocstyle}
\usetocstyle{standard}
\usetocstyle{nopagecolumn}
\settocstylefeature{pagenumberhook}{\itshape~}
%create list-ofexamples's
\usepackage{tocloft}
\newcommand{\listloename}{Examples}
\newlistof{loe}{loe}{\listloename}
\renewcommand{\cftloedotsep}{\cftnodots} %this and the next 3 lines mimic
\renewcommand{\cftloeafterpnum}{\cftparfillskip} % nopagecolumn, but
\renewcommand{\cftloeleader}{\hspace*{.75cm}} % do not fully
\renewcommand{\cftpnumalign}{l} % reproduce it
\begin{document}
\tableofcontents
\listofloe
\newpage
\chapter{First Chapter}
\section{First Section}
\subsection{First part of the first section}
\addcontentsline{loe}{loe}{Example One}
\subsection{Second part of the first section}
\ldots
\addcontentsline{loe}{loe}{A 2nd Example}
\section{Second Section}
\subsection{First part of the second section}
\ldots
\end{document}
Note that if I were to add an appendix in the usual way, they would be listed in the toc with the same font as the chapters in the MWE. But not the loe's.
\documentclass
and end with\end{document}
and we want to copy-and-paste-and-compile and see exactly what you're currently seeing. That's the best way to help us help you.\chapter
s to the LoE as well? For every\chapter
? I guess I don't understand your last statement completely. Thetocstyle
package is in "alpha" version, and anything might change. My suggestion would be to mimicnopagecolumn
as best you can usingtocloft
and then apply the same definitions to the regular ToC. That way things (styles) will match up the way you want.