From d54b34cca6d401b19883a719a468da131d1668bd Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Tue, 20 Oct 2015 15:31:11 -0400 Subject: 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. --- default.context | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/default.context b/default.context index 93602e65b..ca82d293c 100644 --- a/default.context +++ b/default.context @@ -7,17 +7,18 @@ $if(context-dir)$ $endif$ % Enable hyperlinks \setupinteraction - [state=start$if(style)$, - style=$style$$endif$$if(linkcolor)$, - color=$linkcolor$, - contrastcolor=$linkcolor$$endif$$if(title)$, + [state=start, + style=$if(style)$$style$$else$normal$endif$, + color=$if(linkcolor)$$linkcolor$$else$black$endif$, + contrastcolor=$if(linkcolor)$$linkcolor$$else$black$endif$$if(title)$, title=$title$$endif$$if(subtitle)$, subtitle=$subtitle$$endif$$if(author)$, author=$author$$endif$$if(keywords)$, keyword=$keywords$$endif$] % make chapter, section bookmarks visible when opening document -\placebookmarks[chapter,section,subsection,subsubsection][chapter,section] +\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section] \setupinteractionscreen[option=bookmark] +\setuptagging[state=start] $if(papersize)$ \setuppapersize[$for(papersize)$$papersize$$sep$, @@ -56,10 +57,12 @@ $if(interlinespace)$ \setupinterlinespace[$interlinespace$] $endif$ -\setuphead[chapter] [style=\tfd] -\setuphead[section] [style=\tfc] -\setuphead[subsection] [style=\tfb] -\setuphead[subsubsection][style=\bf] +\setuphead[chapter] [style=\tfd,header=empty] +\setuphead[section] [style=\tfc] +\setuphead[subsection] [style=\tfb] +\setuphead[subsubsection] [style=\bf] +\setuphead[subsubsubsection] [style=\sc] +\setuphead[subsubsubsubsection][style=\it] $if(headertext)$ \setupheadertexts[$headertext$] @@ -69,7 +72,7 @@ $if(footertext)$ $endif$ $if(number-sections)$ $else$ -\setuphead[chapter, section, subsection, subsubsection][number=no] +\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no] $endif$ \definedescription -- cgit v1.2.3