chmduquesne.tex 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. % Copyright 2013 Christophe-Marie Duquesne <chmd@chmd.fr>
  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. \startmode[*mkii]
  9. \enableregime[utf-8]
  10. \setupcolors[state=start]
  11. \stopmode
  12. $if(mainlang)$
  13. \mainlanguage[$mainlang$]
  14. $endif$
  15. \setupcolor[hex]
  16. \definecolor[titlegrey][h=757575]
  17. \definecolor[sectioncolor][h=397249]
  18. \definecolor[rulecolor][h=9cb770]
  19. % Enable hyperlinks
  20. \setupinteraction[state=start, color=sectioncolor]
  21. \setuppapersize [$if(papersize)$$papersize$$else$letter$endif$][$if(papersize)$$papersize$$else$letter$endif$]
  22. \setuplayout [width=middle, height=middle,
  23. backspace=20mm, cutspace=0mm,
  24. topspace=10mm, bottomspace=20mm,
  25. header=0mm, footer=0mm]
  26. %\setuppagenumbering[location={footer,center}]
  27. \setupbodyfont[11pt, helvetica]
  28. \setupwhitespace[medium]
  29. \setupblackrules[width=31mm, color=rulecolor]
  30. \setuphead[chapter] [style=\tfd]
  31. \setuphead[section] [style=\tfd\bf, color=titlegrey, align=middle]
  32. \setuphead[subsection] [style=\tfb\bf, color=sectioncolor, align=right,
  33. before={\leavevmode\blackrule\hspace}]
  34. \setuphead[subsubsection][style=\bf]
  35. $if(number-sections)$
  36. $else$
  37. \setuphead[chapter, section, subsection, subsubsection][number=no]
  38. $endif$
  39. %\setupdescriptions[width=10mm]
  40. \definedescription
  41. [description]
  42. [headstyle=bold, style=normal,
  43. location=hanging, width=18mm, distance=14mm, margin=0cm]
  44. \setupitemize[autointro, packed] % prevent orphan list intro
  45. \setupitemize[indentnext=no]
  46. \defineitemgroup[enumerate]
  47. \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
  48. \setupfloat[figure][default={here,nonumber}]
  49. \setupfloat[table][default={here,nonumber}]
  50. \setuptables[textwidth=max, HL=none]
  51. \setupxtable[frame=off,option={stretch,width}]
  52. \setupthinrules[width=15em] % width of horizontal rules
  53. \setupdelimitedtext
  54. [blockquote]
  55. [before={\setupalign[middle]},
  56. indentnext=no,
  57. ]
  58. $if(toc)$
  59. \setupcombinedlist[content][list={$placelist$}]
  60. $endif$
  61. $for(header-includes)$
  62. $header-includes$
  63. $endfor$
  64. \starttext
  65. $if(title)$
  66. \startalignment[center]
  67. \blank[2*big]
  68. {\tfd $title$}
  69. $if(author)$
  70. \blank[3*medium]
  71. {\tfa $for(author)$$author$$sep$\crlf $endfor$}
  72. $endif$
  73. $if(date)$
  74. \blank[2*medium]
  75. {\tfa $date$}
  76. $endif$
  77. \blank[3*medium]
  78. \stopalignment
  79. $endif$
  80. $for(include-before)$
  81. $include-before$
  82. $endfor$
  83. $if(toc)$
  84. \placecontent
  85. $endif$
  86. $body$
  87. $for(include-after)$
  88. $include-after$
  89. $endfor$
  90. \stoptext