Supplemental code related to IMathAS
This is used by the "Convert to Word" print version option in IMathAS.
Note:
This sets up a websocket server to enable the LivePoll feature in IMathAS.
npm install
certs
subdirectoryThe code is set up to run on SSL, so you'll need to put your SSL keys in the directory indicated in the code. Also change the livepollpassword value.
To setup the SSL
livepoll.sh
into /etc/letsencrypt/renewal-hooks/deploy/
, and edit it
so the livepoll_cert_root
is the path to the certs
directory you created
earlier. Make sure to chmod a+x livepoll.sh
.To keep the server running in the background, you'll need to set up some kind of autostart config.
livepoll.service
to /lib/systemd/system/
, editing the ExecStart
path as needed.sudo systemctl start livepoll
Once set up, put $CFG['GEN']['livepollserver'] = 'your.server.com'
and
$CFG['GEN']['livepollpassword'] = 'yourpassword'
in your IMathAS config.php.
This script will attempt to convert all the <math>
tags in an HTML document
to Wordpress-style latex tags using an xsl transform