Skip to content
Permalink
Browse files

fixes for Pandoc 2.0 (and require Pandoc >= 2.0)

  • Loading branch information
samdoshi committed Nov 14, 2017
1 parent 245c643 commit 1ae0370a305e60010b404c0e2a5feb24c26b79b3
Showing with 5 additions and 1 deletion.
  1. +4 −1 utils/docs.py
  2. +1 −0 utils/templates/latex_preamble.jinja2.md
@@ -12,6 +12,9 @@
if (sys.version_info.major, sys.version_info.minor) < (3, 6):
raise Exception("need Python 3.6 or later")

if int(pypandoc.get_pandoc_version()[0]) < 2:
raise Exception("need Pandoc 2.0 or later")

THIS_FILE = Path(__file__).resolve()
ROOT_DIR = THIS_FILE.parent.parent
TEMPLATE_DIR = ROOT_DIR / "utils" / "templates"
@@ -173,7 +176,7 @@ def main():
"--column=80",
"--toc",
"--toc-depth=2",
"--latex-engine=xelatex",
"--pdf-engine=xelatex",
"--variable=papersize:A4"])


@@ -21,6 +21,7 @@ header-includes:
- \usepackage{titlesec}
- \titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter.}{1em}{}
- \titlespacing*{\chapter}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
- \usepackage{etoolbox}
- \AtBeginEnvironment{longtable}{\small}{}{}
- \renewcommand\arraystretch{1.3}
---

0 comments on commit 1ae0370

Please sign in to comment.