Apply suggestions from code review
This commit is contained in:
parent
2521bab254
commit
cb0c2b623a
|
@ -165,7 +165,8 @@ details see the documentation of @racket[with-html5].
|
||||||
recognise it and render it in @tech{display mode}.}
|
recognise it and render it in @tech{display mode}.}
|
||||||
|
|
||||||
@defproc[($-tex2svg [math (listof? string?)]) element?]{
|
@defproc[($-tex2svg [math (listof? string?)]) element?]{
|
||||||
Produces an @racket[element?] renders an HTML SVG literal.
|
Produces an @racket[element?] which contains the given
|
||||||
|
@racket[math] rendered as an HTML SVG literal.
|
||||||
It is rendered in @tech{inline mode} math using @tt{tex2svg}.
|
It is rendered in @tech{inline mode} math using @tt{tex2svg}.
|
||||||
More precisely, the resulting element uses the @racket[xexpr-property] to
|
More precisely, the resulting element uses the @racket[xexpr-property] to
|
||||||
render the SVG directly to the HTML document.
|
render the SVG directly to the HTML document.
|
||||||
|
@ -174,7 +175,8 @@ details see the documentation of @racket[with-html5].
|
||||||
}
|
}
|
||||||
|
|
||||||
@defproc[($$-tex2svg [math (listof? string?)]) element?]{
|
@defproc[($$-tex2svg [math (listof? string?)]) element?]{
|
||||||
Produces an @racket[element?] renders an HTML SVG literal.
|
Produces an @racket[element?] which contains the given
|
||||||
|
@racket[math] rendered as an HTML SVG literal.
|
||||||
It is rendered in @tech{display mode} math using @tt{tex2svg}.
|
It is rendered in @tech{display mode} math using @tt{tex2svg}.
|
||||||
More precisely, the resulting element uses the @racket[xexpr-property] to
|
More precisely, the resulting element uses the @racket[xexpr-property] to
|
||||||
render the SVG directly to the HTML document.
|
render the SVG directly to the HTML document.
|
||||||
|
@ -236,8 +238,8 @@ It also has no style, so its style cannot be customized.
|
||||||
A parameter whose value is the path to the @tt{tex2svg} binary.
|
A parameter whose value is the path to the @tt{tex2svg} binary.
|
||||||
This binary is used to transform math code into HTML when using the @tt{tex2svg}
|
This binary is used to transform math code into HTML when using the @tt{tex2svg}
|
||||||
backend.
|
backend.
|
||||||
The functions @racket[$] and @racket[$$] use this parameter only when rendering
|
The functions @racket[$-tex2svg] and @racket[$$-tex2svg] use this parameter only
|
||||||
the document as HTML.
|
when rendering the document as HTML.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -317,4 +319,4 @@ text $\sum x^3$ is typeset as-is, like the rest of the text.
|
||||||
draw(root, (0,0));
|
draw(root, (0,0));
|
||||||
shipout(scale(2)*currentpicture.fit());
|
shipout(scale(2)*currentpicture.fit());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user