Skip to content

Commit

Permalink
Modeller LaTeX.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDiBernardo committed Jul 9, 2015
1 parent 25b7495 commit ad16652
Show file tree
Hide file tree
Showing 6 changed files with 2,096 additions and 831 deletions.
4 changes: 3 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def main(chapters=[], epub=False, pdf=False, html=False, mobi=False, pandoc_epub
'sample',
'crawler',
'template-engine',
'modeller',
]
if len(chapters) > 0:
chapter_dirs = [
Expand Down Expand Up @@ -54,6 +55,7 @@ def main(chapters=[], epub=False, pdf=False, html=False, mobi=False, pandoc_epub
image_paths = [
'./sample/sample-images',
'./crawler/crawler-images',
'./modeller/modeller-images',
]

run('cp -r minutiae/ tex')
Expand Down Expand Up @@ -186,7 +188,7 @@ def getbasename(chapter_markdown):
def _pandoc_cmd(chapter_markdown):
pandoc_path = 'pandoc'
# tex/md because that's where the preprocessed markdowns end up
temp = '{pandoc} -V chaptertoken={chaptertoken} -t latex --chapters -S -f markdown+mmd_title_block+tex_math_dollars --template=tex/chaptertemplate.tex -o tex/{basename}.tex.1 tex/{md}'
temp = '{pandoc} -V chaptertoken={chaptertoken} -t latex --chapters -S -f markdown+mmd_title_block+tex_math_dollars --template=tex/chaptertemplate.tex --no-highlight -o tex/{basename}.tex.1 tex/{md}'
basename = getbasename(chapter_markdown)
result = temp.format(pandoc=pandoc_path, basename=basename, md=chapter_markdown, chaptertoken='s:' + basename)
return result
Expand Down
Loading

0 comments on commit ad16652

Please sign in to comment.