style_green.tex 2.2 KB

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