GeneralInline entries in TOC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
a_green
Posts: 1
Joined: Wed Jun 10, 2009 6:22 pm

Inline entries in TOC

Post by a_green »

Hi,

I'm writing a thesis using the Memoir class. I'm showing Parts, Chapters, Sections, and Subsections in my TOC. I'd like the entries for the Subsections to be inline, as shown in the attached image. That is to say, I don't want each Subsection entry on a separate line, but rather would like to flow them along in a little paragraph beneath each Section entry.
Example: inline subsubsection entries in TOC
Example: inline subsubsection entries in TOC
toc_inline_entries.png (43.28 KiB) Viewed 1542 times
I have made this work in a manual, error-prone way, and would like to make it automatic.

The manual way I'm using is with the \chapterprecistoc command after each \section command, as follows:

Code: Select all

\section{Conocimiento, ciencia y filosofía}
\chapterprecistoc{\tocref{sub:Epistemologia-y-el-analisis-tradicional-del-conocimiento} | \tocref{sub:Ciencia} |  \tocref{sub:Filosofia-y-ciencia} | \tocref{sub:Epistemologia-naturalista-y-complejidad}}
In my header, I've defined the \tocref command like this:

Code: Select all

\newcommand{\tocref}[1]{\titleref{#1}~\pageref{#1}}
What I'd really like is at least to have a command that automatically creates the contents that I put in the TOC by way of the \chapterprecistoc command. Either that, or redefine the part of the TOC code that generates the Subsection entries. I've tried sifting through the code of the memoir class, but am not proficient enough with LaTeX to understand how to do so.

Any help would be tremendously appreciated.

Thanks, greetings,
Andrew

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply