In the appendix of a document I want to add an additional table of content to represent the following drawings.

Please consider the following example code:



\section{Section 1}
\section{Section 2}

\section{Appendix 1}
\section{Appendix 2}

% Example of the structure of the additional table of content just for appendix
1.000.000               Fertigungskonzept       1
   1.100.000            Baugruppe               2
      1.110.000         Unterbaugruppe          3
         1.111.000      Unter-Unterbaugruppe    4
            1.111.001   Einzelteil              5
            1.111.002   Einzelteil              6
         1.112.000      Unter-Unterbaugruppe    7
           1.112.001    Einzelteil              8
           1.112.002    Einzelteil              9
      1.120.000         Unterbaugruppe          10

%Here the actual drawings are following
% etc...


The additional section in the appendix should not be shown in the main table of content, just in the appendix.

Do you know how to do this?

  • This means: A different section numbering system as well? – user31729 Jul 13 '15 at 20:17
  • 2
    Have a look at the etoc package – cgnieder Jul 13 '15 at 20:18
  • @ChristianHupfer that would be preferable. – larkee Jul 13 '15 at 20:18
  • 1
    @larkee, yes, but it is weird and illogical. You can't have more than 9 Unterbaugruppen before the counter 'overflows' ;-) – user31729 Jul 13 '15 at 20:39
  • 1
    @larkee: Are you currently using any packages related to sectioning or the appendix? – Werner Jul 13 '15 at 20:48

A very short version, with minitoc and a special way of generating the (strange) section etc. counter values.




  \ifnum#1 <100



\section{Normal section}



\addtocontents{toc}{\setcounter{tocdepth}{-5}} % preventing the appearance of the following sections in the normal ToC!

\subparagraph{Einzelteil 1}
\subparagraph{Einzelteil 2}
\subparagraph{Einzelteil 1}
\subparagraph{Einzelteil 2}

\subsubsection{Neue Unterbaugruppe}


enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.