forked from mszep/pandoc_resume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style_chmduquesne.tex
109 lines (87 loc) · 2.5 KB
/
style_chmduquesne.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
% Copyright 2013 Christophe-Marie Duquesne <chmd@chmd.fr>
% Copyright 2014 Mark Szepieniec <http://github.com/mszep>
%
% ConText style for making a resume with pandoc. Inspired by moderncv.
%
% This CSS document is delivered to you under the CC BY-SA 3.0 License.
% https://creativecommons.org/licenses/by-sa/3.0/deed.en_US
\startmode[*mkii]
\enableregime[utf-8]
\setupcolors[state=start]
\stopmode
$if(mainlang)$
\mainlanguage[$mainlang$]
$endif$
\setupcolor[hex]
\definecolor[titlegrey][h=757575]
\definecolor[sectioncolor][h=397249]
\definecolor[rulecolor][h=9cb770]
% Enable hyperlinks
\setupinteraction[state=start, color=sectioncolor]
\setuppapersize [$if(papersize)$$papersize$$else$letter$endif$][$if(papersize)$$papersize$$else$letter$endif$]
\setuplayout [width=middle, height=middle,
backspace=20mm, cutspace=0mm,
topspace=10mm, bottomspace=20mm,
header=0mm, footer=0mm]
%\setuppagenumbering[location={footer,center}]
\setupbodyfont[11pt, helvetica]
\setupwhitespace[medium]
\setupblackrules[width=31mm, color=rulecolor]
\setuphead[chapter] [style=\tfd]
\setuphead[section] [style=\tfd\bf, color=titlegrey, align=middle]
\setuphead[subsection] [style=\tfb\bf, color=sectioncolor, align=right,
before={\leavevmode\blackrule\hspace}]
\setuphead[subsubsection][style=\bf]
$if(number-sections)$
$else$
\setuphead[chapter, section, subsection, subsubsection][number=no]
$endif$
%\setupdescriptions[width=10mm]
\definedescription
[description]
[headstyle=bold, style=normal,
location=hanging, width=18mm, distance=14mm, margin=0cm]
\setupitemize[autointro, packed] % prevent orphan list intro
\setupitemize[indentnext=no]
\setupfloat[figure][default={here,nonumber}]
\setupfloat[table][default={here,nonumber}]
\setuptables[textwidth=max, HL=none]
\setupthinrules[width=15em] % width of horizontal rules
\setupdelimitedtext
[blockquote]
[before={\setupalign[middle]},
indentnext=no,
]
$if(toc)$
\setupcombinedlist[content][list={$placelist$}]
$endif$
$for(header-includes)$
$header-includes$
$endfor$
\starttext
$if(title)$
\startalignment[center]
\blank[2*big]
{\tfd $title$}
$if(author)$
\blank[3*medium]
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
$endif$
$if(date)$
\blank[2*medium]
{\tfa $date$}
$endif$
\blank[3*medium]
\stopalignment
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
\placecontent
$endif$
$body$
$for(include-after)$
$include-after$
$endfor$
\stoptext