Page LayoutTrouble Customizing the ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
cjohnson
Posts: 6
Joined: Fri May 08, 2009 3:11 am

Trouble Customizing the ToC

Post by cjohnson »

Hi. I'm using the memoir document class (if that matters) and can't seem to custom the table of contents. One thing I'd like to do is remove the dots between headings and page numbers, but nothing seems to work. After looking around online, and in the memoir manual, I put this in my preamble:

Code: Select all

\makeatletter
\renewcommand{\@dotsep}{1000}
\makeatother
But after running xelatex (twice) the dots are still there. Any ideas? Many thanks!

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Trouble Customizing the ToC

Post by Stefan Kottwitz »

Hi cjohnson,

welcome to the board!
You could use

Code: Select all

\let\cftdotsep\cftnodots
Or more LaTeX-like ;)

Code: Select all

\renewcommand*{\cftdotsep}{\cftnodots}
Stefan
LaTeX.org admin
cjohnson
Posts: 6
Joined: Fri May 08, 2009 3:11 am

Re: Trouble Customizing the ToC

Post by cjohnson »

Well, that did it! Thanks!

Any ideas why my command wasn't working, though? I pulled it from page 193 of the memoir manual, and was getting really frustrated that it didn't want to work.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Trouble Customizing the ToC

Post by Stefan Kottwitz »

cjohnson wrote: Any ideas why my command wasn't working, though?
\@dotsep is used by standard LaTeX, \cftdotsep is used by tocloft and by the memoir class.

Stefan
LaTeX.org admin
cjohnson
Posts: 6
Joined: Fri May 08, 2009 3:11 am

Trouble Customizing the ToC

Post by cjohnson »

Ah, alright. Now, I'm pulling an example from the tocloft manual:

Code: Select all

\renewcommand{\cfttoctitlefont}{\hfill\Large\itshape}
But then I get "\cfttoctitlefont Undefined". Any ideas? Thanks again!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Trouble Customizing the ToC

Post by Stefan Kottwitz »

cjohnson wrote: But then I get "\cfttoctitlefont Undefined".
Obviously that feature is not supported by the memoir class.

Stefan
LaTeX.org admin
cjohnson
Posts: 6
Joined: Fri May 08, 2009 3:11 am

Re: Trouble Customizing the ToC

Post by cjohnson »

Ah, okay. I was under the impression that memoir completely emulated tocloft.
Post Reply