Document ClassesChapter break in LoT using Memoir

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
herqlix
Posts: 3
Joined: Tue Oct 13, 2009 9:07 pm

Chapter break in LoT using Memoir

Post by herqlix »

Hi all,

Using the memoir-class I experience the following:
I want the LoT/LoF to show only the actual index number,

Code: Select all

\renewcommand{\thetable}{\arabic{table}} 
works for this.
Now I need to reset the standard break before chapters by

Code: Select all

\setlength{\cftbeforechapterskip}{0pt}
BUT: This only affects the ToC and not my LoT. I got the impression from the memoir-documentation that the \cft... commands are precisely for changing ToC AND LoT/LoF.

Any suggestions (or do you need a working example to get me)?

Thanks in advance
Last edited by herqlix on Sun Mar 06, 2011 8:57 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Chapter break in LoT using Memoir

Post by gmedina »

Hi,
herqlix wrote:...(or do you need a working example to get me)?
We get you; however, a minimal working example will save all of us precious time.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
herqlix
Posts: 3
Joined: Tue Oct 13, 2009 9:07 pm

Chapter break in LoT using Memoir

Post by herqlix »

gmedina wrote:Hi,
herqlix wrote:...(or do you need a working example to get me)?
We get you; however, a minimal working example will save all of us precious time.
Here's a simple example:
\documentclass[
12pt,
DIV10,
a4paper,
oneside,
OnehalfSpacing
]{memoir}

\renewcommand*{\cfttablename}{Table \space}
\renewcommand*{\cfttableaftersnum}{:}

\renewcommand*{\cftfigurename}{Figure \space}
\renewcommand*{\cftfigureaftersnum}{:}


\begin{document}

%\setlength{\cftbeforechapterskip}{0pt}
\tableofcontents

\setlength{\cftbeforechapterskip}{0pt}
\newpage

\listoftables
\listoffigures

\chapter{One chapter}

\begin{figure}[h]
\caption{Anything}
\end{figure}

\begin{table}[h]
\caption{Anything}
\end{table}

\section{One section in first chapter}

\begin{figure}[h]
\caption{Anything}
\end{figure}

\begin{table}[h]
\caption{Anything}
\end{table}

\chapter{Another chapter}

\begin{figure}[h]
\caption{Anything}
\end{figure}

\begin{table}[h]
\caption{Anything}
\end{table}


\end{document}
When reactivating the line just before the ToC the chapter breaks in the latter are set to 0pt and the same should happen to the LoT/LoF. But this doesn't work.

Any suggestions?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Chapter break in LoT using Memoir

Post by gmedina »

Add the following line immediately after the redefinition of \cftbeforechspterskip:

Code: Select all

\renewcommand*{\insertchapterspace}{}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
herqlix
Posts: 3
Joined: Tue Oct 13, 2009 9:07 pm

Re: Chapter break in LoT using Memoir

Post by herqlix »

Thanks gmedina, that solves it. Even found the command in the manual.
Post Reply