Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixes for Pandoc 2.0 (and require Pandoc >= 2.0)
- Loading branch information
Showing
with
5 additions
and
1 deletion.
-
+4
−1
utils/docs.py
-
+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} |
|
|
--- |