update templates

This commit is contained in:
Fengda HUANG 2016-05-06 07:35:57 +08:00
parent a4fbb2d0f1
commit 3d1cf8c489
No known key found for this signature in database
GPG key ID: 4D43418992F7BD15
3 changed files with 29 additions and 1 deletions

View file

@ -42,6 +42,7 @@ pdf: markdown
# Then symlink it: ln -s /path/to/pdflatex /usr/local/bin
pandoc -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H listings-setup.tex \
--template=template.tex \
--normalize \
--smart \

25
listings-setup.tex Normal file
View file

@ -0,0 +1,25 @@
% Contents of listings-setup.tex
\usepackage{xcolor}
\lstset{
basicstyle=\ttfamily,
numbers=left,
keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries,
stringstyle=\color[rgb]{0.31,0.60,0.02},
commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape,
numberstyle=\footnotesize,
stepnumber=1,
numbersep=5pt,
backgroundcolor=\color[RGB]{248,248,248},
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
captionpos=b,
breaklines=true,
breakatwhitespace=true,
breakautoindent=true,
escapeinside={\%*}{*)},
linewidth=\textwidth,
basewidth=0.5em,
}

View file

@ -130,7 +130,7 @@ pre {
line-height: 16px;
font-size: 11px;
border: 1px solid #d9d9d9;
white-space: pre-wrap;
white-space: pre-line;
word-wrap: break-word;
}
@ -139,8 +139,10 @@ pre code {
color: #737373;
font-size: 11px;
padding: 0;
white-space: pre-wrap;
}
figure img {
display: block;
margin: 0 auto;