aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2015-10-20 15:31:11 -0400
committerAndrew Dunning <adunning@users.noreply.github.com>2015-10-20 15:31:11 -0400
commitd54b34cca6d401b19883a719a468da131d1668bd (patch)
tree2ef6ba3c8b965d0df89b5ecd2a6ac649baefab99
parent69ccb949168d1f1a37c3a9213daf806a344226a6 (diff)
downloadpandoc-d54b34cca6d401b19883a719a468da131d1668bd.tar.gz
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.
-rw-r--r--default.context23
1 files 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