On 8/9/2025 10:57 PM, Henning Hraban Ramm wrote:
I’m working on the rendering of directory trees. Before I try a MetaPost
drawing, I’d like to use a nested itemization.
What are my options for changing the symbol of some single items (not
whole levels)?
* \sym{} works, but there’s no \startsym … \stopsym and I’d prefer to
use a complete structure to properly wrap a sub-itemization.
* \startitem[symbol=1] … \stopitem isn’t possible.
hm, we can probably add that .. wolfgang?
So far I can do:
📂 root folder
📁 folder (closed)
📂 folder (open)
📄 file.tex
📄 file.mkiv
good
I guess I’d also manage to do:
📂 root folder
┣━📁 folder (closed)
┗━📂 folder (open)
┣━📄 file.tex
┗━📄 file.mkiv
also good you know the level so it's two symbols then
Would it be possible to do the following with an itemization?
▽ 📂 root folder
┆ ▷ 📁 folder (closed)
┆ ▽ 📂 folder (open)
┆ ┆ 📄 file.tex
┆ ┆ 📄 file.mkiv
the same but you check how many subtitems
Or are items the wrong approach for this?
sure, why not ... you hard code the tree .. of coure you need to update
the document when the icons become old fashioned and no one understands
them any more
(i played a bit with the dirtree module and can have these symbols but
you don't use that one so i leave it at that)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________