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