Skip to Content.
Sympa Menu

texmacs-users - Re: [texmacs-users] First subitem of nested enumerate and parent item in the same line?

Subject: mailing-list for TeXmacs Users

List archive

Chronological Thread  
  • From: vincent douce <address@concealed>
  • To: Thiago Melo <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [texmacs-users] First subitem of nested enumerate and parent item in the same line?
  • Date: Sat, 14 Dec 2024 10:12:40 +0100

Hello Thiago
i have no idea but i am interested in the solution you ‘ll find
i’ve had this questions from a long time also
Vincent

> Le 13 déc. 2024 à 20:21, Thiago Melo <address@concealed> a écrit :
>
> 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)




Archive powered by MHonArc 2.6.24.

Top of Page