LyXCustomization of the ToC

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
et_gaudette
Posts: 2
Joined: Wed Dec 11, 2013 1:43 am

Customization of the ToC

Post by et_gaudette »

I usually just use the basic formatting and am not used to editing the preamble. However, my reviewer asked me to make some edits to my ToC and I am lost as to how to proceed. I am using the memoir class.
  1. I need to add dotted leaders after the chapters and main sections (LoF, LoT, chapters, etc.). After reading this forum, I installed the tocloft package with MiKTeX Package Manager, reconfigured LyX and added the following to my preamble.

    Code: Select all

    \usepackage{tocloft}
    \renewcommand{\cftchapdotsep}{\cftdotsep}
    When I try to compile my file, I get the following error:

    Code: Select all

    LaTeX Error: \cftchapdotsep undefined.
    I tried \newcommand{\cftchapdotsep}{\cftdotsep} instead, the file compiles but still without adding leaders. Any ideas about how I can fix this issue?
  2. I need to impose a specific format to all the titles of my document: bold format, large size and centered alignment. I was able to do it for all the chapters and the bibliography with the titlesec package by adding the following to the preamble.

    Code: Select all

    \usepackage{titlesec}
    \titleformat{\chapter}[display]
    {\normalfont\selectfont\bfseries\large\filcenter}
    {\MakeUppercase{\chaptertitlename}\ \thechapter}
    {20pt}
    {\MakeUppercase}
    Unfortunately the titles of the ToC, LoF and LoT maintain their original formatting. How can I impose it for them, too?
  3. I need to remove the page number for the first page of the ToC and lists of figures and tables. By default it appears at the bottom of the page for the first page of these sections. I tried inputting \thispagestyle{empty} before the ToC, LoF and LoT frames and had no result.
Thank you for your help!
Last edited by localghost on Wed Dec 11, 2013 11:03 am, 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

tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Customization of the ToC

Post by tom »

Hi!

Since you use memoir, things are somewhat different from the standard classes and you might want to check the documentation for more details.
  1. Code: Select all

    \renewcommand{\cftchapterdotsep}{\cftdotsep}
  2. Customize chapterstyle in memoir
HTH!
Post Reply