[OS X TeX] Still no short table of contents

Manuel libros2 at limay.de
Sun Sep 27 11:48:12 EDT 2015



Am 27/9/15 um 14:19 schrieb Josep Maria Font:
> I am using:
>
> %
> %%% First the less detailed toc:
> \shorttableofcontents{Contents}{2}%   % 2 = up to \subsection
> %
> \cleardoublepage
> %
> %%% Then the detailed one
> \setcounter{tocdepth}{3}%             % 3 = up to \subsubsection
> \renewcommand{\contentsname}{Detailed contents}
> \tableofcontents
> %
> \cleardoublepage
> %
> %
>
> This works for me: first a toc up to subsections is generated, then one up to subsubsections. Notice that I am changing tocdepth only after the first toc has been generated! And that this is not in the preamble, but in the document's body. I am using 2 and 3 because I use the "article" document class; if you use the "book" or "report" document class, perhaps numbering differs.
>
> Hope this helps. Sorry if someone already gave the same solution; I could not read the entire thread.
>
>
> JMaF
>
>
>
>
>
>
>
>
>
> Aquest correu electrònic i els annexos poden contenir informació confidencial o protegida legalment i està adreçat exclusivament a la persona o entitat destinatària. Si no sou el destinatari final o la persona encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu rebut aquest correu electrònic per error, us preguem que n’informeu al remitent i que elimineu del sistema el missatge i el material annex que pugui contenir. Gràcies per la vostra col·laboració.
>
> Este correo electrónico y sus anexos pueden contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no es el destinatario final o la persona encargada de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha recibido este mensaje electrónico por error, le rogamos que informe al remitente y elimine del sistema el mensaje y el material anexo que pueda contener. Gracias por su colaboración.
>
> This email message and any documents attached to it may contain confidential or legally protected material and are intended solely for the use of the individual or organization to whom they are addressed. We remind you that if you are not the intended recipient of this email message or the person responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any of its contents. If you have received this email message by mistake, we kindly ask you to inform the sender of this and to eliminate both the message and any attachments it carries from your account. Thank you for your collaboration.
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                  https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

Excellent! It goes this way:


\begin{document}
\maketitle
\clearpage
\shorttableofcontents{Zusammenfassung}{0}
\clearpage
\setcounter{tocdepth}{2}
\tableofcontents*
\clearpage


And the short toc shows no deeper than chapters, while the main toc 
lists up to subsections.

Problem solved. Thank you everybody for your help!

Manuel






More information about the MacOSX-TeX mailing list