93 lines
2.3 KiB
TeX
93 lines
2.3 KiB
TeX
% 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[couleurTitre1][h=0095d0]
|
|
\definecolor[couleurTitre2][h=555555]
|
|
\definecolor[couleurTitre3][h=00C0CD]
|
|
\definecolor[couleurDuTrait][h=00C0CD]
|
|
\definecolor[couleurTxtBlocDroit][h=555555]
|
|
|
|
% Enable hyperlinks
|
|
\setupinteraction[state=start, color=couleurTitre2]
|
|
|
|
\setuppapersize [$if(papersize)$$papersize$$else$letter$endif$][$if(papersize)$$papersize$$else$letter$endif$]
|
|
\setuplayout [width=middle, height=middle,
|
|
backspace=20mm, cutspace=0mm,
|
|
topspace=0mm, bottomspace=10mm,
|
|
header=0mm, footer=0mm]
|
|
|
|
\setupbodyfont[11pt, helvetica]
|
|
|
|
\setupwhitespace[medium]
|
|
|
|
\setupblackrules[width=31mm, color=couleurDuTrait]
|
|
|
|
\setuphead[chapter] [style=\tfd]
|
|
\setuphead[section] [style=\tfd\bf, color=couleurTitre1, align=middle]
|
|
\setuphead[subsection] [style=\tfa\bf, color=couleurTitre2, align=middle]
|
|
\setuphead[subsubsection][style=\tfb\bf, color=couleurTitre3, align=right,
|
|
before={\leavevmode\blackrule\hspace}]
|
|
|
|
$if(number-sections)$
|
|
$else$
|
|
\setuphead[chapter, section, subsection, subsubsection][number=no]
|
|
$endif$
|
|
|
|
\definedescription[blocText][
|
|
headstyle=bold,
|
|
style=normal,
|
|
color=couleurTxtBlocDroit,
|
|
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]
|
|
\setupxtable[frame=off,option={stretch,width}]
|
|
|
|
\setupthinrules[width=15em] % width of horizontal rules
|
|
|
|
\setupdelimitedtext
|
|
[blockquote]
|
|
[before={\setupalign[middle]},
|
|
indentnext=no,
|
|
]
|
|
|
|
$for(header-includes)$
|
|
$header-includes$
|
|
$endfor$
|
|
|
|
\starttext
|
|
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
|
|
$body$
|
|
|
|
$for(include-after)$
|
|
$include-after$
|
|
$endfor$
|
|
\stoptext
|