Skip to content

Commit

Permalink
pdf: escape dollar sign in lstlistings
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Jul 26, 2020
1 parent 1421f37 commit c015324
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 58 deletions.
1 change: 0 additions & 1 deletion pdf/en-us/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pdf: markdown
@echo "Compiling PDF file..."
pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H meta/cpp-listings.tex \
--template=meta/template.tex \
--pdf-engine=`which xelatex`
@echo "Done."
Expand Down
26 changes: 0 additions & 26 deletions pdf/en-us/meta/cpp-listings.tex

This file was deleted.

2 changes: 0 additions & 2 deletions pdf/en-us/meta/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
Expand Down
1 change: 0 additions & 1 deletion pdf/zh-cn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pdf: markdown
@echo "Compiling PDF file..."
pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H meta/cpp-listings.tex \
--template=meta/template.tex \
--pdf-engine=`which xelatex`
@echo "Done."
Expand Down
26 changes: 0 additions & 26 deletions pdf/zh-cn/meta/cpp-listings.tex

This file was deleted.

3 changes: 1 addition & 2 deletions pdf/zh-cn/meta/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{textcomp}
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
Expand Down

0 comments on commit c015324

Please sign in to comment.