Skip to content

Commit

Permalink
Revert to off-the-shelf LaTeXML-maybeMathjax.js
Browse files Browse the repository at this point in the history
Our file was identical to the original one, so it is better to just as for the original, so that we can automatically benefit from upstream improvements.

Note that our copy was called 'LaTeXML-maybeMathJax.js' (upper case 'J' in 'Jax'), while the original file is called 'LaTeXML-maybeMathjax.js'.
  • Loading branch information
henrikt-ma committed Nov 9, 2020
1 parent df99345 commit a1471b2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .CI/Jenkinsfile
Expand Up @@ -30,7 +30,7 @@ pipeline {
sh 'mkdir -p /tmp/jenkins'
sh 'latexmk -pdf MLS.tex'
sh 'latexml --path=media MLS.tex --dest MLS.xml'
sh 'latexmlpost MLS.xml -format html -pmml --splitat=chapter --splitnaming=labelrelative --javascript=css/LaTeXML-maybeMathJax.js --navigationtoc=context --css=css/MLS.css --css=css/LaTeXML-navbar-left.css --dest MLS.html'
sh 'latexmlpost MLS.xml -format html -pmml --splitat=chapter --splitnaming=labelrelative --javascript=LaTeXML-maybeMathjax.js --navigationtoc=context --css=css/MLS.css --css=css/LaTeXML-navbar-left.css --dest MLS.html'
sh 'ln -s preface.html Chx1.html'
sh 'ln -s lexical-structure.html Ch2.html'
sh 'ln -s operators-and-expressions.html Ch3.html'
Expand Down Expand Up @@ -58,10 +58,10 @@ pipeline {
sh 'ln -s modelica-revision-history.html A5.html'
sh 'ln -s literature.html A6.html'
sh script: '! (find . -type l -xtype l | egrep \'.*\')', label: 'Verify symbolic links work'
sh 'tar czf MLS.tar.gz *.html *.css media css/'
sh 'tar czf MLS.tar.gz *.html *.css *.js media/ css/'
archiveArtifacts artifacts: 'MLS.tar.gz', fingerprint: true
archiveArtifacts artifacts: 'MLS.pdf', fingerprint: true
stash name: 'MLS', includes: '*.html,*.css,MLS.pdf,media/**,css/**,MLS.tar.gz'
stash name: 'MLS', includes: '*.html,*.css,*.js,MLS.pdf,media/**,css/**,MLS.tar.gz'
}
}
stage('upload') {
Expand All @@ -85,7 +85,7 @@ pipeline {
steps {
unstash name: 'MLS'
sh "test ! -z ${env.GIT_BRANCH}"
sshPublisher(publishers: [sshPublisherDesc(configName: 'ModelicaSpecification', transfers: [sshTransfer(remoteDirectory: "${env.GIT_BRANCH}", sourceFiles: '*.html,*.css,MLS.pdf,media/**,css/**')])])
sshPublisher(publishers: [sshPublisherDesc(configName: 'ModelicaSpecification', transfers: [sshTransfer(remoteDirectory: "${env.GIT_BRANCH}", sourceFiles: '*.html,*.css,*.js,MLS.pdf,media/**,css/**')])])
}
}
stage('index') {
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -148,10 +148,12 @@ sympy-plots-for-*.tex/
MLS\.pdf

LaTeXML.css
MLS.tar.gz
ltx-article.css
ltx-listings.css
ltx-report.css
LaTeXML-maybeMathjax.js

MLS.tar.gz

# Directories belonging to the LaTeXML build
/annotations/
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -12,7 +12,7 @@ clean-pdf:

.PHONY: clean-html
clean-html:
-rm MLS.xml LaTeXML.cache *.html
-rm MLS.xml LaTeXML.cache *.html *.css *.js

.PHONY: clean
clean: clean-pdf clean-html
Expand All @@ -24,4 +24,4 @@ MLS.pdf: *.tex chapters/*.tex
# Not using %.html since nmake does not support it (instead using old-style suffix rules)
MLS.html: MLS.tex chapters/*.tex
$(LATEXMLPREFIX)latexml MLS.tex --path=media --dest MLS.xml
$(LATEXMLPREFIX)latexmlpost MLS.xml -format html -pmml --splitat=chapter --splitnaming=labelrelative --javascript=css/LaTeXML-maybeMathJax.js --navigationtoc=context --css=css/MLS.css --css=css/MLS-navbar-left.css --dest $@
$(LATEXMLPREFIX)latexmlpost MLS.xml -format html -pmml --splitat=chapter --splitnaming=labelrelative --javascript=LaTeXML-maybeMathjax.js --navigationtoc=context --css=css/MLS.css --css=css/MLS-navbar-left.css --dest $@
34 changes: 0 additions & 34 deletions css/LaTeXML-maybeMathJax.js

This file was deleted.

1 change: 1 addition & 0 deletions edit/Sublime/config.sublime-project
Expand Up @@ -20,6 +20,7 @@
"ltx-article.css",
"ltx-listings.css",
"ltx-report.css",
"LaTeXML-maybeMathjax.js",
"MLS.fdb_latexmk",
"MLS.synctex.gz",
],
Expand Down

0 comments on commit a1471b2

Please sign in to comment.