Skip to content

Instantly share code, notes, and snippets.

@daverosoff
Last active August 12, 2019 21:03
Show Gist options
  • Save daverosoff/f9418bbf0a9a3c840731e169bf55583d to your computer and use it in GitHub Desktop.
Save daverosoff/f9418bbf0a9a3c840731e169bf55583d to your computer and use it in GitHub Desktop.
ptx-check() {
java\
-classpath /home/vagrant/jing-trang/build\
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration\
-jar /home/vagrant/jing-trang/build/jing.jar\
/vagrant/mathbook/schema/pretext.rng "$1"
}
@daverosoff
Copy link
Author

daverosoff commented Apr 25, 2018

This utility function for PreTeXt schema validation is listed in the Author's Guide. It is due to @Jahrme. If you want to use it, you will probably need to make some changes to the paths PTX_DIR and JING_DIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment