From a02f5ef96d8f2a3b3e8892d20b347c69e0f6c07c Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Thu, 6 Oct 2016 21:31:41 +0800 Subject: support backtick_code_blocks use \VerbatimFootnotes in template to enable code block in footnotes. --- Makefile | 2 +- pdf/template.tex | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 151ea3d..7501572 100755 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3