More answers: On 7/15/19, Hendrik Boom <hend...@topoi.pooq.com> wrote: > (1) How does scribble handle mathematical notation? Presumably there's a > hack > for when I'm generating TeX, but is there anything reasonable when > generating > HTML? Mathjax is somewhat tolerable, but mathML would be nice.
For TeX, I tell Scribble exactly what characters to put in the document. The same idea might work for mathML. https://docs.racket-lang.org/scribble-abbrevs/index.html#(def._((lib._scribble-abbrevs%2Flatex..rkt)._~24)) The scribble-math package might be a better choice: https://docs.racket-lang.org/scribble-math/index.html > (2) How can I produce category-theoretical diagrams, such as the one on top > of > page 29 in section 3.7 in the pdf file > https://www.logicmatters.net/resources/pdfs/GentleIntro.pdf > Oh yes, category theorists also use different shapes of arrow > heads and tails just to challenge us computer people. You probably don't want to use Racket/Scribble for this, but here's a pict / ppict version of the diagram. (I don't know how to change the arrowheads.) https://gist.github.com/bennn/1523efe1e6759c67c6f16118aa6543d5 > (3) Are there practical ways of including images whose source code might be > jpegs ot pngs? Yes, @image{file.png} > (4) How can I include other scribble files into a main scribble file > *without* > making it a separate section? The tutorial > https://docs.racket-lang.org/scribble/getting-started.html > mentions include-section, but I'm looking for something like just C's > #include. https://groups.google.com/d/msg/racket-users/1cMufGgwtf0/-zTwzAKZAgAJ > (5) How can I make text conditional on the presence or absence of a > command-line parameter of the value of a global variable? Text can depend on an if-statement: @(if (f x) @elem{this} @elem{that}) > (6) How do I achieve precise, line-by-line control of indentation for > poetry? One way is to use @verbatim{....} or @codeblock{....} But you can also play with linebreaks and hspace: https://gist.github.com/bennn/b936b6caf8534b1a11b1bfa7de4e245c -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAFUu9R5vqgy%2BwPAcmBL0GekfTYUj3fpgUQaTiUQXp8rrPOaT0g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.