diff options
author | Tong Hui <tonghuix@gmail.com> | 2016-10-06 21:41:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-06 21:41:22 +0800 |
commit | e0855fe7e015be9f8994c67102312e3caac548dc (patch) | |
tree | 0743b82a1258286d3af1ef560933891d530f1a0c | |
parent | 52bf302d934202401c77c3b805123d28e026c142 (diff) | |
parent | a02f5ef96d8f2a3b3e8892d20b347c69e0f6c07c (diff) | |
download | fsfs-zh-e0855fe7e015be9f8994c67102312e3caac548dc.tar.xz |
Merge pull request #141 from beijinglug/codeblocks
support backtick_code_blocks
-rwxr-xr-x | Makefile | 2 | ||||
-rw-r--r-- | pdf/template.tex | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,7 @@ METADATA = ebook/metadata.xml TOC = --toc --toc-depth=2 --epub-chapter-level=2 COVER_IMAGE = docs/cover.png LATEX_CLASS = book -PANDOC_TEX = pandoc --from="markdown_mmd+link_attributes" $(TOC) --latex-engine=xelatex -V documentclass=book +PANDOC_TEX = pandoc --from="markdown_mmd+link_attributes+backtick_code_blocks" $(TOC) --latex-engine=xelatex -V documentclass=book TEMPLATE=./pdf PREFACES = docs/foreword-trans.md \ docs/foreword-v3.md \ diff --git a/pdf/template.tex b/pdf/template.tex index 5e4e1ed..d0f0eb4 100644 --- a/pdf/template.tex +++ b/pdf/template.tex @@ -171,6 +171,7 @@ framexleftmargin=20pt % below for code syntax highlight \usepackage{fancyvrb} +\VerbatimFootnotes %\DefineShortVerb[commandchars=\\\{\}]{\|} \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\},frame=leftline,fontsize=\small} % Add ',fontsize=\small' for more characters per line |