mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
@@ -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."
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
|
||||
\usepackage{xcolor}
|
||||
|
||||
\definecolor{keyword}{HTML}{BA2CA3}
|
||||
\definecolor{string}{HTML}{D12F1B}
|
||||
\definecolor{comment}{HTML}{008400}
|
||||
|
||||
\lstset{
|
||||
basicstyle={\small\ttfamily},
|
||||
keywordstyle={\color[rgb]{0.13,0.29,0.53}\bfseries},
|
||||
breaklines=true,
|
||||
emphstyle={\bfseries\color{Rhodamine}},
|
||||
commentstyle={\color[rgb]{0.56,0.35,0.01}\itshape},
|
||||
stringstyle={\color[rgb]{0.31,0.60,0.02}},
|
||||
showstringspaces=false,
|
||||
frame=shadowbox,
|
||||
breakatwhitespace=false,
|
||||
captionpos=b,
|
||||
extendedchars=true,
|
||||
keepspaces=true,
|
||||
numbers=left,
|
||||
numberstyle=\tiny,
|
||||
rulecolor=\color{black},
|
||||
rulesepcolor={\color{blue!20!white}},
|
||||
showspaces=false,
|
||||
}
|
||||
@@ -47,9 +47,7 @@ $if(biblio-files)$
|
||||
\bibliography{$biblio-files$}
|
||||
$endif$
|
||||
$endif$
|
||||
$if(listings)$
|
||||
\usepackage{listings}
|
||||
$endif$
|
||||
$if(lhs)$
|
||||
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
|
||||
$endif$
|
||||
|
||||
Reference in New Issue
Block a user