summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTong Hui <tonghuix@gmail.com>2016-10-06 21:41:22 +0800
committerGitHub <noreply@github.com>2016-10-06 21:41:22 +0800
commite0855fe7e015be9f8994c67102312e3caac548dc (patch)
tree0743b82a1258286d3af1ef560933891d530f1a0c
parent52bf302d934202401c77c3b805123d28e026c142 (diff)
parenta02f5ef96d8f2a3b3e8892d20b347c69e0f6c07c (diff)
downloadfsfs-zh-e0855fe7e015be9f8994c67102312e3caac548dc.tar.xz
Merge pull request #141 from beijinglug/codeblocks
support backtick_code_blocks
-rwxr-xr-xMakefile2
-rw-r--r--pdf/template.tex1
2 files changed, 2 insertions, 1 deletions
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