cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
385 stars 33 forks source link

Table of content (TOC) enumeration #407

Open domi413 opened 1 month ago

domi413 commented 1 month ago

It would be nice if the table of content were enumerated :)

cvfosammmm commented 1 month ago

What do you mean exactly, the document structure sidebar? I think it could have numbers if the corresponding LaTeX commands are not marked with a "*".

domi413 commented 1 month ago

If I compile the following example code:

\documentclass[10pt, a4paper, twoside]{article}
\usepackage{lipsum}

\begin{document}
    \section{Test0}
    \lipsum[1]

    \subsection{Test00}
    \lipsum[2]

    \subsection{Test000}
    \lipsum[4]

    \section{Test1}
    \lipsum[6]
\end{document}

I receive this document structure:

document structure

As you can see, the sections aren't marked with a "*", but there's just an "S" for section instead of the section enumeration.