Ver código fonte

update template

Fengda HUANG 9 anos atrás
pai
commit
b93edc92d1
3 arquivos alterados com 32 adições e 5 exclusões
  1. 1 0
      Makefile
  2. 25 0
      listings-setup.tex
  3. 6 5
      style.css

+ 1 - 0
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/template.tex \
 		--normalize \
 		--smart \

+ 25 - 0
listings-setup.tex

@@ -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,
+}

+ 6 - 5
style.css

@@ -59,21 +59,22 @@ h1 a {
 }
 
 h2 {
-    font-size: 24px;
+    font-size: 28px;
     margin-bottom: 28px;
 }
 
 h3 {
-    font-size: 18px;
+    font-size: 24px;
     margin-bottom: 24px;
 }
 
 h4 {
-    font-size: 16px;
+    font-size: 20px;
+    margin-bottom: 20px;
 }
 
 h5 {
-    font-size: 14px;
+    font-size: 16px;
 }
 
 h6 {
@@ -215,4 +216,4 @@ td,th {
     margin: 0;
     overflow: visible;
     padding: .5em 1em
-}
+}