Subject: mailing-list for TeXmacs Users
List archive
[texmacs-users] First subitem of nested enumerate and parent item in the same line?
- From: Thiago Melo <address@concealed>
- To: address@concealed
- Subject: [texmacs-users] First subitem of nested enumerate and parent item in the same line?
- Date: Fri, 13 Dec 2024 20:21:06 +0100
Dear all,
I'd like to have inline nested enumerate environments like this:
1. (a) foo
(b) bar
Instead of:
1.
(a) foo
(b) bar
What I've tried so far:
1. Editing my .tm file outside TeXmacs and removing the newlines
between the `item' tag and the nested `enumerate' tag (this same
approach can be used in LaTeX). It doesn't work very well here, since:
a) Indentation breaks. One workaround was to put each subitem
content inside a `document' environment outside TeXmacs, but then it
gave me other issues such as not being able to apply a different
alignment to parts of the subitem content (e.g., right or center
aligned);
b) Within TeXmacs, if a newline is added between the inlined first
subitem and its parent item, this newline cannot be removed anymore
(save for undoing it).
2. Customizing the `render-list' and `aligned-item' macros from the
std-list package to make the contents inline. It didn't work since
other macros that lists depend on, from the std-list package, are
built with block environments.
3. Using the structured-list package. Here, I could even make the
parent item and first nested subitem inline within TeXmacs. However,
the indentation of this particular line breaks (i.e., both parent item
the first nested subitem get more shifted to the right compared to the
rest). Still, it seems to be the most promising approach so far.
Does anyone have any suggestions? Perhaps on how to fix the
indentation issue with structured lists?
(TeXmacs version: 2.1.4, on Debian Bookworm)
-
[texmacs-users] First subitem of nested enumerate and parent item in the same line?,
Thiago Melo, 12/13/2024
- Re: [texmacs-users] First subitem of nested enumerate and parent item in the same line?, vincent douce, 12/14/2024
Archive powered by MHonArc 2.6.24.