|
From: Eduardo O. <edu...@gm...> - 2025-12-04 12:19:30
|
Hi list, I found a way to write the display code for `verbatimmatrix'es, that, very roughly, are `matrix'es of strings without the outer brackets and without interline spacings. My code is here, https://anggtwu.net/MAXIMA/dim-verbatimbox.lisp.html https://anggtwu.net/MAXIMA/dim-verbatimbox.lisp and the part that is going to be more useful to other people is the part of the comments that explain that in the display code lists like these one ((3 0) (-2 -2 #\g) (-4 -1 #\f #\e) (0 0 #\d #\c #\b #\a)) are to be read by humans as: Start at (x,y)=(0,0). Typeset "abcd". Now (x,y)=(4,0). Move by x+=-4, y=-1. Now (x,y)=(0,-1). Typeset "ef". Now (x,y)=(2,-1). Move by x+=-2, y=-2. Now (x,y)=(0,-2). Typeset "g". Now (x,y)=(1,-2). Move by x+=3, y=0. Now (x,y)=(4,0), and we're after the "d" of the "abcd". I'm attaching a screenshot and a copy of the current version of code for reference, but the htmlized version in https://anggtwu.net/MAXIMA/dim-verbatimbox.lisp.html https://anggtwu.net/MAXIMA/dim-verbatimbox.lisp is much better becase its Eduardisms are explained by hyperlinks. Cheers =), Eduardo |