Skip to content

Commit

Permalink
made updates to scripts due to changes in mathbook
Browse files Browse the repository at this point in the history
  • Loading branch information
lightheartw committed Sep 2, 2020
1 parent 09fc9a9 commit b283026
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ lanepdf:
xelatex orcca.tex; \


odd-answers:
cd $(PRINTOUT); \
xsltproc --xinclude --stringparam publisher $(PUBFILE) --stringparam toc.level 3 --stringparam latex.pageref 'no' --stringparam latex.sides 'one' $(XSL)/orcca-odd-answers.xsl $(MAINFILE) > orcca-odd-answers.tex; \
xelatex orcca-odd-answers.tex; \
xelatex orcca-odd-answers.tex; \
xelatex orcca-odd-answers.tex;

# echo 'GLOBAL SPACING'; \
# echo 'Next line removes \leavevmode when it comes right before an enumerate'; \
# perl -p0i -e 's/\\leavevmode%\n(\\begin{enumerate})/\1/g' orcca.tex; \
Expand Down Expand Up @@ -648,7 +655,7 @@ html:
rsync -r --include='*.png' --exclude='*' . $(HTMLOUT)/images
cp $(CSS) $(HTMLOUT)
cd $(HTMLOUT); \
xsltproc -xinclude --stringparam publisher $(PUBFILE) --stringparam exercise.inline.hint no --stringparam exercise.inline.answer no --stringparam exercise.inline.solution yes --stringparam exercise.divisional.hint no --stringparam exercise.divisional.answer no --stringparam exercise.divisional.solution no --stringparam exercise.text.hint no --stringparam exercise.text.answer no --stringparam exercise.text.solution no --stringparam html.knowl.exercise.inline no --stringparam html.knowl.example no --stringparam html.css.extra orcca.css $(PRJXSL)/orcca-html.xsl $(MAINFILE)
xsltproc -xinclude --stringparam publisher $(PUBFILE) --stringparam exercise.inline.hint no --stringparam exercise.inline.answer no --stringparam exercise.inline.solution yes --stringparam exercise.divisional.hint no --stringparam exercise.divisional.answer no --stringparam exercise.divisional.solution no --stringparam html.knowl.exercise.inline no --stringparam html.knowl.example no --stringparam html.css.extra orcca.css $(PRJXSL)/orcca-html.xsl $(MAINFILE)

# make all the image files in svg format
laneimages:
Expand Down
2 changes: 1 addition & 1 deletion xsl/orcca-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- Thin layer on MathBook XML -->
<xsl:import href="../../mathbook/xsl/mathbook-html.xsl" />
<xsl:import href="../../mathbook/xsl/pretext-html.xsl" />



Expand Down

0 comments on commit b283026

Please sign in to comment.