On Tue, 9 Aug 2022, Henning Hraban Ramm via ntg-context wrote:
Am 09.08.22 um 18:57 schrieb Wolfgang Schuster via ntg-context:
Henning Hraban Ramm via ntg-context schrieb am 09.08.2022 um 16:51:
I actually never really looked into the nodes module, but I guess that would work.
There is a simple LaTeX / plain TeX package [1] for this but I don't know if the plain TeX version works with ConTeXt. [1] https://www.ctan.org/pkg/dirtree
That is advertised as “like Windows Explorer”, so I expected folder and file icons, but it makes quite ugly lines with square nodes.
Looking at the documentation, it appears that the size of the square node is configurable. So, if you set the size to be the same as line width, the square will be invisible.
Line drawing glyphs look better IMO, and the MP nodes module is probably even better, but I need to try...
It should be relatively easy to write a function that draws such trees without using any module as well. Aditya