chmduquesne.tex 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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[10.1pt, helvetica]
  28. \setupwhitespace[medium]
  29. \setupblackrules[width=32mm, 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=19mm, distance=14mm, margin=0cm]
  44. \setupitemize[autointro, packed] % prevent orphan list intro
  45. \setupitemize[indentnext=no]
  46. \setupitemize[joindeup,nowhite,after]
  47. % \setupitemgroup[itemize][1][joindeup,nowhite, after]
  48. % \setupitemgroup[itemize][3][joindeup,nowhite, before]
  49. \defineitemgroup[enumerate]
  50. \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
  51. \setupfloat[figure][default={here,nonumber}]
  52. \setupfloat[table][default={here,nonumber}]
  53. \setuptables[textwidth=max, HL=none]
  54. \setupxtable[frame=off,option={stretch,width}]
  55. \setupthinrules[width=15em] % width of horizontal rules
  56. \setupdelimitedtext
  57. [blockquote]
  58. [before={\setupalign[middle]},
  59. indentnext=no,
  60. ]
  61. $if(toc)$
  62. \setupcombinedlist[content][list={$placelist$}]
  63. $endif$
  64. $for(header-includes)$
  65. $header-includes$
  66. $endfor$
  67. \starttext
  68. $if(title)$
  69. \startalignment[center]
  70. \blank[2*big]
  71. {\tfd $title$}
  72. $if(author)$
  73. \blank[3*medium]
  74. {\tfa $for(author)$$author$$sep$\crlf $endfor$}
  75. $endif$
  76. $if(date)$
  77. \blank[2*medium]
  78. {\tfa $date$}
  79. $endif$
  80. \blank[3*medium]
  81. \stopalignment
  82. $endif$
  83. $for(include-before)$
  84. $include-before$
  85. $endfor$
  86. $if(toc)$
  87. \placecontent
  88. $endif$
  89. $body$
  90. $for(include-after)$
  91. $include-after$
  92. $endfor$
  93. \stoptext