0

We have a document that is structured for example as follows:

  1. Section

1.1 lorem

...

  1. Section

2.1 lorem

...

Pos. 3

Pos. 3.1

Pos. 3.2

Pos. 3.3

Pos. 4

Pos. 5

  1. Section

So I have to be free with the numbering and prefix. The positioning (Pos. XY) should display in the table of contents.

How does this work? Or does it at all?

5
  • Does the numbering of the "Pos" follow a certain numbering scheme, e.g. is there also a Pos 1?
    – leandriis
    Commented Nov 20, 2019 at 14:13
  • No, it must be as flexible as possible. The answer of skyter ist totally satisfying. Thank you!
    – Florian
    Commented Nov 20, 2019 at 15:08
  • If my answer is totally satisfying, it would be nice, if you would confirm it :)
    – skyter
    Commented Nov 27, 2019 at 21:29
  • Sorry, I didn't know this.
    – Florian
    Commented Nov 29, 2019 at 13:05
  • Thanks! That is, why I told you :)
    – skyter
    Commented Dec 2, 2019 at 10:47

1 Answer 1

1

you could use the \section* and \addcontentsline command. Such as this:

\documentclass{scrartcl}

\begin{document}

\tableofcontents

\newpage

\section{Section}

\subsection{lorem}

\section{Section}

\subsection{lorem}

\section*{Pos. 3}
\addcontentsline{toc}{section}{Pos. 3}

\subsection*{Pos. 3.1}
\addcontentsline{toc}{subsection}{Pos. 3.1}

\section{Section}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .