From: Heime <heimeborgia@protonmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Using list with items showing the depth level
Date: Sat, 04 Nov 2023 11:08:00 +0000 [thread overview]
Message-ID: <LuE4SvulFuIqUxLK_jeGvlfefs1aDmRnP6nu0Y4uS6sEYLuL8PHYs_Ax0j4k7UgYcFCaCJqgA2fy8i0fmZqZ0gIE2smeut_w-weT0-XzfXU=@protonmail.com> (raw)
I am focused on making a style file in latex so that I can have a list where
each item displays the depth level.
I am getting the error
\textbf #1->\ifmmode \nfss@text {\bfseries #1
}\else \hmode@bgroup \text@com...
with the following code
\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
reply other threads:[~2023-11-04 11:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='LuE4SvulFuIqUxLK_jeGvlfefs1aDmRnP6nu0Y4uS6sEYLuL8PHYs_Ax0j4k7UgYcFCaCJqgA2fy8i0fmZqZ0gIE2smeut_w-weT0-XzfXU=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).