Integration of MathJax, KaTeX and Asymptote with scribble, to typeset math in Racket documentation
![]() When building the documentation, the call to asymptote outputs the pwd and the checksum; this interrupts the new progress bar mechanism in recent Racket versions. Silence it by removing the display entirely. (Perhaps we should provide a function to get the hash or document how it is computed? The function could also accept a side-channel to communicate the hash to, such as a box. Modifying it to return multiple values would be a breaking change.) |
||
---|---|---|
asymptote-images | ||
bower_components/katex | ||
katex | ||
MathJax | ||
scribblings | ||
.gitignore | ||
.travis.yml | ||
asymptote.rkt | ||
dollar.rkt | ||
html5-prefix.html | ||
info.rkt | ||
katex-convert-unicode.rkt | ||
LGPL3.txt | ||
LICENSE.txt | ||
main.css | ||
main.js | ||
main.rkt | ||
mathjax-convert-unicode.rkt | ||
README.md |
scribble-math
This library allows typesetting math and Asymptote figures in Scribble documents.
Installation
To install this package, use raco
:
raco pkg install --deps search-auto scribble-math
Documentation
See the online documentation for more information about the math syntax and the functionality of this library.
Usage example
The syntax used for mathematical formulas is a subset of the one used by LaTeX.
#lang scribble/manual
@require[scribble-math]
@title[#:style (with-html5 manual-doc-style)]{Example}
The derivative of @${x^2} is @${2x}. Complex formulas
look best when typeset in display mode:
@$${\sum_{i=0}^n x_i^3}