Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 45 lines (35 sloc) 0.999 kb
c62e711 initial commit
Claes Holmerson authored
1 #!/bin/sh
2 # Wrapper script around pandoc / markdown2pdf
3 # Provides templates to apply with pdf processing
4 # Copyright Claes Holmerson 2010, GPL licensed (see COPYING for details)
5
b5582bc Renamed for github
Claes Holmerson authored
6 #Find this directory
7 template_home=$(dirname $(readlink -f $0))
8
c62e711 initial commit
Claes Holmerson authored
9 paper=a4paper
10 hmargin=3cm
11 vmargin=3.5cm
12 fontsize=10pt
13 #fontsize=11pt
14 #fontsize=12pt
49b148e Added README and a few more things
Claes Holmerson authored
15
16 #mainfont=Cambria
17 #sansfont=Corbel
18 #monofont=Consolas
19 mainfont=Georgia
20 sansfont=Verdana
21 monofont="Courier New"
89277cb Changed language
Claes Holmerson authored
22 language=english
23 #language=swedish
c62e711 initial commit
Claes Holmerson authored
24 nohyphenation=false
25
26 columns=onecolumn
27 #columns=twocolumn
28
29 geometry=portrait
30 #geometry=landscape
31
32 #alignment=flushleft
33 #alignment=flushright
34 #alignment=center
35
36 markdown2pdf --xetex --template=$template_home/xetex.template \
37 -V language=$language -V paper=$paper -V hmargin=$hmargin -V vmargin=$vmargin \
49b148e Added README and a few more things
Claes Holmerson authored
38 -V mainfont="$mainfont" -V sansfont="$sansfont" -V monofont="$monofont" \
c62e711 initial commit
Claes Holmerson authored
39 -V geometry=$geometry -V alignment=$alignment -V columns=$columns \
40 -V fontsize=$fontsize -V nohyphenation=$nohyphenation \
41 -V toc=$toc \
42 $@
43
44
Something went wrong with that request. Please try again.