Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript,comp.infosystems.www.authoring.html Subject: Re: MathJax - "typesetting" of maths in Web pages Date: Fri, 17 Aug 2012 20:17:51 +0100 Organization: Home Lines: 45 Message-ID: References: <$yDAFaGXyBIQFwui@invalid.uk.co.demon.merlyn.invalid> Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="530603207bb5dc63eadbc45c88da0024"; logging-data="4403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MeeBBCzj+bji8eDdLPWL6YElhihAGRMo=" User-Agent: Turnpike/6.05-S () Cancel-Lock: sha1:HnS8aRNEYzZH2ZFlHP4xbZFosTI= Xref: csiph.com comp.lang.javascript:15389 comp.infosystems.www.authoring.html:2834 In comp.lang.javascript message , Thu, 16 Aug 2012 18:37:45, Norman Peelman posted: >On 08/13/2012 02:23 PM, Dr J R Stockton wrote: >> In comp.lang.javascript message , Sun, 12 >> Aug 2012 09:24:15, Norman Peelman posted: >> >>> >>> I'm surprised that MathJax doesn't offer the ability to create static >>> output, but maybe they didn't expect people would have hundreds of >>> equations on a single page... If you could grab the .innerHTML and >>> generated styles for each equation then you could simply include them. >> >> I fear that those might be quite large, possibly larger than a well- >> coded image of the electronically-typeset equations (which would at >> least be better than a cut of the scanned images of the c.19 inky >> printing). >> >> And MathJax's typesetting, while quite good, is likely to improve with >> time, whereas a capture would not. >> >> > > MathJax appears to add a lot of code (both HTML and CSS) to the >document. Upon closer examination it seems to me that MathJax should >possibly consolidate the CSS as quite a bit is redundant. Your current >page alone balloons from ~109KB to ~5.3MB It was under 58kB of ASCII when it left here. That 5.3 MB must be the size in RAM, which hardly matters. Page authors can configure aspects of the loading, which might help there. At the moment, I first wanted to get it all working in as near a default setup as I can, and next I want to move the equations into the HTML representation of the Englished text, at . That means delaying MathJax start until completion of the existing pre-processing. I gather that it would be easy enough if I first read and remember the right parts of the documentation. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05. Website - w. FAQish topics, links, acronyms PAS EXE etc. : - see in 00index.htm Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.