Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

31 Mai '19, 10:12

cis's gravatar image

cis
9.6k103460491

KOMA-Script: Aktuellen Aktuelle TOC-Einträge von chapter und section auslesen

Mit \makeatletter \newcommand{\CurrentTOCentry}{\@currenttocentry} \makeatother lese ich den aktuellen toc-Eintrag aus. Ich bräuchte sowas wie `\@currentchapterentry` und `\@currentsectionentry` um die aktuellen section- und chapter-Einträge auszulesen. Gibt es sowas? [![alt text][1]][1] \documentclass{scrreprt} \begin{document} \makeatletter \newcommand{\CurrentTOCentry}{\@currenttocentry} \makeatother \chapter[short]{long} CurrentTOCentry: \CurrentTOCentry \section{Abschnitt} CurrentTOCentry: \CurrentTOCentry \subsection{Unterabschnitt} CurrentTOCentry: \CurrentTOCentry \chapter{Long} CurrentTOCentry: \CurrentTOCentry \end{document} [1]: https://texwelt.de/wissen/upfiles/9999999999999_5.jpg
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

31 Mai '19, 10:11

cis's gravatar image

cis
9.6k103460491

KOMA-Script: Aktuellen TOC-Einträge von chapter und section auslesen

Mit \makeatletter \newcommand{\CurrentTOCentry}{\@currenttocentry} \makeatother lese ich den aktuellen toc-Eintrag aus. Ich bräuchte sowas wie `\@currentchapterentry` und `\@currentsectionentry` um die aktuellen section- und chapter-Einträge auszulesen. Gibt es sowas? [![alt text][1]][1] \documentclass{scrreprt} \begin{document} \makeatletter \newcommand{\CurrentTOCentry}{\@currenttocentry} \makeatother \chapter[short]{long} CurrentTOCentry: \CurrentTOCentry \section{Abschnitt} CurrentTOCentry: \CurrentTOCentry \subsection{Unterabschnitt} CurrentTOCentry: \CurrentTOCentry \chapter{Long} CurrentTOCentry: \CurrentTOCentry \end{document} [1]: https://texwelt.de/wissen/upfiles/9999999999999_5.jpg

Willkommen, erstes Mal hier? Schau mal unter FAQ!

×