git.iko.soy/typeable/pandoc
on master help sign in
ConTeXt link colour to black; define all sections.

Sets default link colour to black with normal style (default is bolded red/green links), per the discussion in #138. Provides heading styles for all section types applied by Pandoc.

commitd54b34cca6d401b19883a719a468da131d1668bd authorAndrew Dunning <adunning@users.noreply.github.com> dateTue 20 Oct 2015, 15:31 (11 years ago) parent69ccb94
1 file changed+13−10
default.context+13−10
default.context+13−10
@@ -7,17 +7,18 @@ $if(context-dir)$
77$endif$
88% Enable hyperlinks
99\setupinteraction
10− [state=start$if(style)$,
11− style=$style$$endif$$if(linkcolor)$,
12− color=$linkcolor$,
13− contrastcolor=$linkcolor$$endif$$if(title)$,
10+ [state=start,
11+ style=$if(style)$$style$$else$normal$endif$,
12+ color=$if(linkcolor)$$linkcolor$$else$black$endif$,
13+ contrastcolor=$if(linkcolor)$$linkcolor$$else$black$endif$$if(title)$,
1414 title=$title$$endif$$if(subtitle)$,
1515 subtitle=$subtitle$$endif$$if(author)$,
1616 author=$author$$endif$$if(keywords)$,
1717 keyword=$keywords$$endif$]
1818% make chapter, section bookmarks visible when opening document
19−\placebookmarks[chapter,section,subsection,subsubsection][chapter,section]
19+\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
2020\setupinteractionscreen[option=bookmark]
21+\setuptagging[state=start]
2122
2223$if(papersize)$
2324\setuppapersize[$for(papersize)$$papersize$$sep$,
@@ -56,10 +57,12 @@ $if(interlinespace)$
5657\setupinterlinespace[$interlinespace$]
5758$endif$
5859
59−\setuphead[chapter] [style=\tfd]
60−\setuphead[section] [style=\tfc]
61−\setuphead[subsection] [style=\tfb]
62−\setuphead[subsubsection][style=\bf]
60+\setuphead[chapter] [style=\tfd,header=empty]
61+\setuphead[section] [style=\tfc]
62+\setuphead[subsection] [style=\tfb]
63+\setuphead[subsubsection] [style=\bf]
64+\setuphead[subsubsubsection] [style=\sc]
65+\setuphead[subsubsubsubsection][style=\it]
6366
6467$if(headertext)$
6568\setupheadertexts[$headertext$]
@@ -69,7 +72,7 @@ $if(footertext)$
6972$endif$
7073$if(number-sections)$
7174$else$
72−\setuphead[chapter, section, subsection, subsubsection][number=no]
75+\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
7376$endif$
7477
7578\definedescription