[Rivet] rivet-mkhtml output requires network access

Andy Buckley andy.buckley at cern.ch
Wed Nov 4 15:16:59 GMT 2015


On 04/11/15 14:54, David Bjergaard wrote:
> Just to reiterate (I dunno if my last email came through), it is possible to
> ship a lightweight MathJax that will work with most modern browsers.
>
> Here's a tutorial (1.4 mb stripped down):
> https://github.com/mathjax/MathJax-docs/wiki/Guide:-reducing-size-of-a-mathjax-installation/1814429ed1e97bfb7675c0fd400804baa9287249
>
> and here is a script that automates it:
> https://github.com/mathjax/MathJax-grunt-cleaner
>
> Though admittedly, I don't know how to use gruntfiles.

For me, this is looking like a diversion of already stretched effort on 
something ~cosmetic (if annoying). Not a priority for _me_, anyway.

But if someone has the motivation to find a solution that doesn't 
involve bundling any non-trivial amount of webby stuff (even 1.4 MB is 
large compared to Rivet itself), then I won't complain. Maybe there 
could be a (non-default) option on rivet-mkhtml to download and install 
that mini-MathJax when *making* the plots directories, and for the HTML 
to point at that local copy. Just thinking.

> PS. the latest matplotlib (on which rivet depends) also weighs ~51
> MB... Beautiful typesetting isn't cheap :)

We don't depend on it... yet! The latest versions of YODA don't try to 
import mpl unless you specifically import the yoda.plotting module.

I've had no time to improve the YODA plotting and will happily accept 
patches and good ideas. And demos that produce output as nice as 
make-plots... I have *still* to find a way to get consistently sized, 
weighted, and aligned plot labels in mpl despite some attempts, and the 
balance of line weights is also not as nice as those hard-coded in 
make-plots. If you want perfection, doing everything by hand is the only 
guaranteed way, it seems!

Andy


> David Grellscheid <david.grellscheid at durham.ac.uk> writes:
>
>> On 03/11/2015 15:30, David Bjergaard wrote:
>>> it works fine to have the url point to a local copy (say in the
>>> ${PREFIX}/share folder).
>>
>> Sure it does, but I'm not shipping 50 MB of Mathjax with 2.5 MB of Rivet :-)
>>
>>    David
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet
>


-- 
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow


More information about the Rivet mailing list