Skip to content

Commit 3d1cf8c

Browse files
committed
update templates
1 parent a4fbb2d commit 3d1cf8c

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pdf: markdown
4242
# Then symlink it: ln -s /path/to/pdflatex /usr/local/bin
4343
pandoc -s $(filename).md -o $(filename).pdf \
4444
--title-prefix $(title) \
45+
--listings -H listings-setup.tex \
4546
--template=template.tex \
4647
--normalize \
4748
--smart \

listings-setup.tex

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
% Contents of listings-setup.tex
2+
\usepackage{xcolor}
3+
4+
\lstset{
5+
basicstyle=\ttfamily,
6+
numbers=left,
7+
keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries,
8+
stringstyle=\color[rgb]{0.31,0.60,0.02},
9+
commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape,
10+
numberstyle=\footnotesize,
11+
stepnumber=1,
12+
numbersep=5pt,
13+
backgroundcolor=\color[RGB]{248,248,248},
14+
showspaces=false,
15+
showstringspaces=false,
16+
showtabs=false,
17+
tabsize=2,
18+
captionpos=b,
19+
breaklines=true,
20+
breakatwhitespace=true,
21+
breakautoindent=true,
22+
escapeinside={\%*}{*)},
23+
linewidth=\textwidth,
24+
basewidth=0.5em,
25+
}

style.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pre {
130130
line-height: 16px;
131131
font-size: 11px;
132132
border: 1px solid #d9d9d9;
133-
white-space: pre-wrap;
133+
white-space: pre-line;
134134
word-wrap: break-word;
135135
}
136136

@@ -139,8 +139,10 @@ pre code {
139139
color: #737373;
140140
font-size: 11px;
141141
padding: 0;
142+
white-space: pre-wrap;
142143
}
143144

145+
144146
figure img {
145147
display: block;
146148
margin: 0 auto;

0 commit comments

Comments
 (0)