|
From: Eduardo O. <edu...@gm...> - 2025-12-14 12:25:34
|
Fantastic, thanks! =) Now this is mentioned and used in Lisptree, as one of the ways to display lisptrees nicely. Here's what the comments say: ;; The simplest way to display a lisptree is with a `matrix' of ;; strings - the o1 above. We can use a `barematrix' to get rid of the ;; outer brackets - the o2 above - but `barematrix'es have interline ;; spacings/paddings, that are ugly; if we replace `barematrix' by ;; `barematrixnp' we get a `barematrix' with no padding, that looks ;; great... but that only appears different from a normal `matrix' in ;; recent versions of Maxima. ;; ;; The objects o4 and o5 above use `verbatimbox' and `verbatimmatrix', ;; that work well on old versions of Maxima, so in most cases I prefer ;; to display lisptrees by using a `verbatimmatrix' instead of a ;; `matrix' or a `barematrixnp'. See: ;; ;; https://anggtwu.net/maxima-edrxbox.html I am attaching a screenshot in which that looks a bit better - because it has an example and colors. Cheers! =) Eduardo On Thu, 11 Dec 2025 at 15:15, Robert Dodier <rob...@gm...> wrote: > I've pushed some commits to src/displa.lisp to implement two more > display flags, display_matrix_padding_vertical and > display_matrix_padding_horizontal. > > By default, matrix elements are displayed with space between rows and > space between columns. These new flags enable (default) or disable > that spacing. > > I've attached some simple examples as an image (I couldn't figure out > a way to disable Gmail composer's interline spacing). This image shows > what I see in a terminal on an Ubuntu system. > > For more extensive examples, you can try, after building the current > version from GIt: > > batch ("tests/test_matrix_display.mac"); > > which shows a lot of examples of the recently-created display flags > for boxes and matrices. > > I think this will be useful. Any comments are welcome. > > Robert > |