> For users that intend to frequently produce a significant number of
> pages with displayed math expression using MathJax, editing the
> relevant .conf files for the backend being used may be a useful
> workaround to editing the (X)HTML output file.
>
It is better not to edit the system conf files because they will be
overwritten every time you upgrade so if your package manager
automatically upgrades Asciidoc you will lose your changes.
As noted you can override the system files section by section (ie
don't copy the whole file, just the section you want to change) using
conf files in your local directory, specifying --conf-file on the
command line or using the conf-files attribute.
With all those options there should be no need to edit the system files.
> of the (X)HTML output file. However, it turns out that asciidoc(1)
> does
> not like the tex2jax: reference of the first <script> segment of code
> and
> returns a warning similar to:
>
> WARNING: mathmath.txt: line 4: illegal system attribute name: tex2jax
>
> This results in this entire line:
>
> Â MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\
> \)']]}});
The { } is the asciidoc syntax for attribute substitution. So
Asciidoc tries to find an attribute called tex2jax and when it can't
find it drops the line.
Use \{ } to avoid the problem.
See http://www.methods.co.nz/asciidoc/userguide.html#_attribute_references
for more info.
Cheers
Lex
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.