mirror of
https://github.com/phodal/github
synced 2026-05-22 00:29:47 +00:00
update templates
This commit is contained in:
parent
a4fbb2d0f1
commit
3d1cf8c489
3 changed files with 29 additions and 1 deletions
1
Makefile
1
Makefile
|
|
@ -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
25
listings-setup.tex
Normal 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,
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue