I’m considering using Quad for a project that’s not a typical prose document and has some layout needs. (It has just enough prose that I think Quad may be a better choice than pict
.) Based on this old discussion:
I expected this program to work:
#lang quadwriter
`(q ([pdf-title "Hello, world"]
[pdf-author "Philip McGrath"]
[page-size "A10"]
[page-orientation "landscape"]
[draw-debug "true"])
(q ([display "block"])
(q ([display "block"]
[line-align "left"])
"Hello,")
(q ([display "block"]
[background-color "#ffe303"]
[line-align "right"]
[anchor-from-parent "ne"]
[anchor-to "ne"])
"world.")))
Instead, I get this output (converted to JPEG because PDF isn’t a supported upload format here):
The fact that world.
isn’t on a yellow background suggests that I’m misunderstanding something on a deeper level.