diff options
author | Iru Cai <mytbk920423@gmail.com> | 2016-10-06 21:31:41 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2016-10-06 21:31:41 +0800 |
commit | a02f5ef96d8f2a3b3e8892d20b347c69e0f6c07c (patch) | |
tree | fd8209fe685babd14f5b30c32e7a6e8c7e24aebc | |
parent | 3022739ec488aee2283e0d53b26b8658e7c0a5e6 (diff) | |
download | fsfs-zh-a02f5ef96d8f2a3b3e8892d20b347c69e0f6c07c.tar.xz |
support backtick_code_blocks
use \VerbatimFootnotes in template to enable code block in footnotes.
-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 |