[racket] Scribble and MathJax - how to configure the Scribble html renderer to output a custom head

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Fri Jul 2 15:54:57 EDT 2010

Hi All,

I'd like to use MathJax with Scribble. The blurb for MathJax is:

    Math display for all browsers

    MathJaxTM is an open source, Ajax-based math display solution
    designed with a goal of consolidating advances in many web
    technologies in a single definitive math-on-the-web platform
    supporting all major browsers.

    Examples: http://www.mathjax.org/preview/preview-tex-examples/

Installing MathJax consists of downloading and unzipping a single folder
(and the fonts) containing some JavaScript source.

In order to use MathJax, I need the Scribble html renderer to output the
following in the head:

<script type="text/javascript" src="/MathJax/MathJax.js"></script>

Is there a way to get Scribble do this?
I have looked at html-prefix, but it seems this is output before the head.

Jens Axel Søgaard

Posted on the users mailing list.