chmduquesne.tex 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. \setupfloat[figure][default={here,nonumber}]
  47. \setupfloat[table][default={here,nonumber}]
  48. \setuptables[textwidth=max, HL=none]
  49. \setupxtable[frame=off,option={stretch,width}]
  50. \setupthinrules[width=15em] % width of horizontal rules
  51. \setupdelimitedtext
  52. [blockquote]
  53. [before={\setupalign[middle]},
  54. indentnext=no,
  55. ]
  56. $if(toc)$
  57. \setupcombinedlist[content][list={$placelist$}]
  58. $endif$
  59. $for(header-includes)$
  60. $header-includes$
  61. $endfor$
  62. \starttext
  63. $if(title)$
  64. \startalignment[center]
  65. \blank[2*big]
  66. {\tfd $title$}
  67. $if(author)$
  68. \blank[3*medium]
  69. {\tfa $for(author)$$author$$sep$\crlf $endfor$}
  70. $endif$
  71. $if(date)$
  72. \blank[2*medium]
  73. {\tfa $date$}
  74. $endif$
  75. \blank[3*medium]
  76. \stopalignment
  77. $endif$
  78. $for(include-before)$
  79. $include-before$
  80. $endfor$
  81. $if(toc)$
  82. \placecontent
  83. $endif$
  84. $body$
  85. $for(include-after)$
  86. $include-after$
  87. $endfor$
  88. \stoptext