~mwshinn/+junk/notes3

« back to all changes in this revision

Viewing changes to ncompile

  • Committer: Max Shinn
  • Date: 2016-07-15 12:59:38 UTC
  • Revision ID: trombonechamp@gmail.com-20160715125938-xsego5z0zntnp9o0
Extra symbols and slightly more flexible config

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
NCDIR="/home/max/Scripts/notes3" # No trailing slash
 
3
NCDIR="/opt/notes3" # No trailing slash
 
4
PANDOC="/home/max/.cabal/bin/pandoc"
4
5
 
5
 
pandoc "$1" "$NCDIR/notessettings.yaml" -f markdown --smart -M filename:"$1" -f markdown+mmd_title_block-raw_html --filter "$NCDIR/mathfilter.py" --filter "$NCDIR/codefilter.py" --filter "$NCDIR/headerfilter.py" --filter "$NCDIR/datadirfilter.py" --filter "$NCDIR/shortfilelinksfilter.py" --filter "$NCDIR/importantfilter.py" --filter "$NCDIR/citationsfilter.py" --latex-engine=xelatex -o "$1.pdf"
 
6
$PANDOC "$1" "$NCDIR/notessettings.yaml" -f markdown --smart -M filename:"$1" -f markdown+mmd_title_block-raw_html --filter "$NCDIR/mathfilter.py" --filter "$NCDIR/codefilter.py" --filter "$NCDIR/headerfilter.py" --filter "$NCDIR/datadirfilter.py" --filter "$NCDIR/shortfilelinksfilter.py" --filter "$NCDIR/importantfilter.py" --filter "$NCDIR/citationsfilter.py" --latex-engine=xelatex -o "$1.pdf"