Stuart Rackham <[email protected]> writes:
> On 24/08/10 00:31, Phillip Lord wrote:
>>
>>
>> I've been working up a wordpress plugin for this purpose -- it's useful
>> to just hand over the rendering work to server side. Ironically, the
>> main reason that mathjax is so huge, is that it's got all images fonts
>> included.
>>
>> Unfortunately, mathjax says "please don't link to the install at our
>> website", or the single line could work this way. At the moment, the
>> only solution that I can see is to add a command line option to asciidoc
>> for the location of mathjax.
>
> Couldn't you define an attribute and pass the attribute value?  or am I
> missing something e.g.
>
>   -a mathjax-url=http://location/of/mathjax/stuff

Yes, actually, this is a very sensible way of doing it; adding a unique
command line option is probably excessive. 

The only unfortunate thing is that for firefox (and probably other
browsers in future), the location has to be the same as the publication
location; firefox will only load webfonts from the same location as the
file. 


> You could also disable fonts, see:
> http://www.mathjax.org/resources/faqs/#fonts-too-big

You could, but this defeats one of the selling points of mathjax. It
works on any browser. It uses cute, scalable stix fonts if they are
available (i.e. the browser does webfonts) and falls back to crappy
image fonts if they are not.


The bottom line is, mathjax is the better solution, but more effort.
This is why, for blogging, I'd rather have it server side. None of which
negates the idea that support in asciidoc would be a good thing. 

Phil

-- 
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.

Reply via email to