Have been looking at the source code for enumitem in an effort to display the depth level of each item.

But am getting an error with

Code, hier editierbar zum Übersetzen:
\textbf #1->\ifmmode \nfss@text {\bfseries #1
}\else \hmode@bgroup \text@com...
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here is what I have done.

Code, hier editierbar zum Übersetzen:
\makeatletter
\newcount\depthitemizelevel
\depthitemizelevel=0
\def\@depthitemize@label{%
\textbf{Level \the\depthitemizelevel:}%
\the\depthitemizelevel\arabic{\@enumctr}%
\space
}
\newenvironment{depthitemize}{%
\advance\depthitemizelevel by 1%
\expandafter\edef\csname depthitemize@label\romannumeral\depthitemizelevel\endcsname{\@depthitemize@label}%
\list{\csname depthitemize@label\romannumeral\depthitemizelevel\endcsname}{%
\usecounter{enum\romannumeral\depthitemizelevel}%
\def\makelabel##1{\hss\llap{##1}}%
}%
}{%
\endlist
\advance\depthitemizelevel by -1%
}
\makeatother
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

gefragt 04 Nov '23, 12:14

Heime's gravatar image

Heime
11
Akzeptiert-Rate: 0%

@Heime Would you please post a complete minimal working example here. Then we can help you.

(08 Nov '23, 23:58) Delorian
Deine Antwort auf die Frage: (Bemerkungen bitte oben als Kommentar)
[Vorschau ausblenden]

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Frage-Themen:

×257

gestellte Frage: 04 Nov '23, 12:14

Frage wurde gesehen: 1,047 Mal

zuletzt geändert: 08 Nov '23, 23:58

Willkommen, erstes Mal hier? Schau mal unter FAQ!

×