Skip to content
Permalink
Browse files

fix pdf issues

use the correct template for latex_preamble
correct jinga to jinja
force new lines after the latex_preamble to stop errors
  • Loading branch information
jlmitch5 authored and samdoshi committed Jul 20, 2017
1 parent 08e06df commit e03a5cbd38d91331e498d94e0ae5e025c2770529
@@ -81,8 +81,8 @@ def common_md():
print(f"Using ops docs directory: {OP_DOCS_DIR}")
print()

op_table_template = env.get_template("op_table.jinga2.md")
op_extended_template = env.get_template("op_extended.jinga2.md")
op_table_template = env.get_template("op_table.jinja2.md")
op_extended_template = env.get_template("op_extended.jinja2.md")

output = ""
output += Path(DOCS_DIR / "whats_new.md").read_text() + "\n\n"
@@ -172,8 +172,8 @@ def main():
"--toc-depth=2",
"--css=" + str(TEMPLATE_DIR / "docs.css")])
elif ext == ".pdf" or ext == ".tex":
latex_preamble = env.get_template("latex_preamble.jinga2.md")
latex = latex_preamble.render(fonts_dir=FONTS_DIR)
latex_preamble = env.get_template("latex_preamble.jinja2.md")
latex = latex_preamble.render(fonts_dir=FONTS_DIR) + "\n\n"
latex += output
pypandoc.convert_text(
latex,

This file was deleted.

@@ -1,19 +1,19 @@
---
title: Teletype Documenation
title: Teletype Documentation
documentclass: report
geometry: margin=1in
links-as-notes: true
subparagraph: true
fontsize: 12pt
mainfont: Roboto-Regular.ttf
mainfontoptions:
- Path={{fonts_dir}}roboto-hinted/
- Path={{fonts_dir}}/roboto-hinted/
- BoldFont=Roboto-Bold.ttf
- ItalicFont=Roboto-Italic.ttf
- BoldItalicFont=Roboto-BoldItalic.ttf
monofont: RobotoMono-Regular.ttf
monofontoptions:
- Path={{fonts_dir}}roboto-mono/
- Path={{fonts_dir}}/roboto-mono/
- BoldFont=RobotoMono-Bold.ttf
- ItalicFont=RobotoMono-Italic.ttf
- BoldItalicFont=RobotoMono-BoldItalic.ttf
@@ -24,5 +24,3 @@ header-includes:
- \AtBeginEnvironment{longtable}{\small}{}{}
- \renewcommand\arraystretch{1.3}
---


File renamed without changes.
File renamed without changes.

0 comments on commit e03a5cb

Please sign in to comment.