Skip to content
Permalink
Browse files

Merge pull request #77 from samdoshi/pdf-fixes

Fix pdf issues
  • Loading branch information
samdoshi committed Jul 20, 2017
2 parents 08e06df + e03a5cb commit 4a2c2c137db25e106ec9ee6628d7e32972f42d8f
@@ -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 4a2c2c1

Please sign in to comment.