On Mon, Jul 13, 2015 at 08:01:48PM -0500, Dirk Eddelbuettel wrote: > | To make it work only when served by a webbrowser, use this: > | > | <script src="/javascript/mathjax/MathJax.js"></script> > > I think this is what I had in mind, thanks! > > | ...and make sure javascript-common is installed and in use by the > | web-server (all libjs-* packages should recommend it, and it should be > | enabled by default for apache). > > Hm, libjs-mathjax does not. So I'll add two depends. > > | To make it work only offline, use this: > | > | <script src="file://usr/share/javascript/mathjax/MathJax.js"></script> > > Icky that it is either or! > > | To make it work both offline and offline, use this: > | > | <script src="/usr/share/javascript/mathjax/MathJax.js"></script> > | > | ...and edit /etc/apache2/conf-available/javascript-common.conf or > | /etc/lighttpd/conf-available/90-javascript-alias.conf to use > | "/usr/share/javascript/" as base path.
Can't you make a link in the directory of the file referencing it and use a non-absolute path, i.e. src="MathJax.js"? That should work both locally and through a browser without any configuration, right? (Except that the directory must be served by the web server, of course.) Thanks, Bas -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150714061610.gk8...@fmf.nl