style_chmduquesne.tex 2.5 KB

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