[racket] How to take control of Scribble (or similar)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Oct 14 23:54:54 EDT 2013

At Fri, 11 Oct 2013 16:56:11 +1100, Daniel Prager wrote:
> How do I go about taking control of styling of Scribble's PDF output to do
> simple things like font selection and encourage TeX to place figures near
> text?
> 
> It looks like the hooks are there in or around
> scribble/latex-properties<http://docs.racket-lang.org/scribble/core.html?q=scri
> bble#%28mod-path._scribble%2Flatex-properties%29>
> but
> it's been over 15 years since I've used TeX or LaTeX, so I'd appreciate an
> example or two on where to start.  [This would also be good in the docs.]

See also section 7.10 in the docs, which tells you more about how
styles are mapped to Latex macros and how you can supply ".tex" files
to override the predefined macros:

  http://docs.racket-lang.org/scribble/config.html?q=scribble

But there's really not enough documented, so far. I have been working
my way in the direction of documenting all the relevant Latex macros,
but I was first working on documenting the CSS styles for HTML
rendering, and I haven't gotten very far on that, either --- see
http://lists.racket-lang.org/users/archive/2013-October/059838.html .

For now, you can look at "scribble.tex" to see what macros are defined
and that you can redefine.




Posted on the users mailing list.