@Kusalananda This
LaTeX package looks promising too. Again, the required syntax is quite similar to the one in the POSIX shell grammar specification. Not ideal for people (like me) who are not really familiar with LaTeX -- some effort is required to get started. But it likely allows for greater customization of the output.