At Wed, 11 Jan 2017 23:21:22 -0500, Faré wrote:
> 0- Who if anyone is maintaining the LaTeX backend to Scribble?
That's me.
> 1- How do I insert arbitrary code in the LaTeX output stream, without
> an enclosing \begin{environment}...\end{environment} ?
You can use the 'exact-chars style property on an element.
If possible, it's usually better to add a Latex macro that adds
Latex-specific things and calls the macro with regular content. Then
it's easier to make HTML and other backends work, but it's not always
easy or possible to encode what you want that way.
> 2- How do I output [optional arguments] to LaTeX \commands as opposed
> to {compulsory arguments} or \begin...\end bodies?
I don't think there's a simple way to do that, currently. When I need
optional arguments, I make another Latex macro that takes non-optional
arguments and chains to the one that that optional arguments.
> 3- Should I support use of the HTML backend from the same source? If
> so, what is the "Right Thing" to bridge the gap between what arguments
> the two backends expect (e.g. with respect to @authorinfo vs
> \author\orcid\email\affiliation...)?
Generally, it's best to support HTML output, but I don't think there's
a simple and general-purpose answer of how to make it work. It always
takes some combination of Racket and ".tex" and ".css".