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.
This commit is contained in:
parent
69ccb94916
commit
d54b34cca6
1 changed files with 13 additions and 10 deletions
|
@ -7,17 +7,18 @@ $if(context-dir)$
|
||||||
$endif$
|
$endif$
|
||||||
% Enable hyperlinks
|
% Enable hyperlinks
|
||||||
\setupinteraction
|
\setupinteraction
|
||||||
[state=start$if(style)$,
|
[state=start,
|
||||||
style=$style$$endif$$if(linkcolor)$,
|
style=$if(style)$$style$$else$normal$endif$,
|
||||||
color=$linkcolor$,
|
color=$if(linkcolor)$$linkcolor$$else$black$endif$,
|
||||||
contrastcolor=$linkcolor$$endif$$if(title)$,
|
contrastcolor=$if(linkcolor)$$linkcolor$$else$black$endif$$if(title)$,
|
||||||
title=$title$$endif$$if(subtitle)$,
|
title=$title$$endif$$if(subtitle)$,
|
||||||
subtitle=$subtitle$$endif$$if(author)$,
|
subtitle=$subtitle$$endif$$if(author)$,
|
||||||
author=$author$$endif$$if(keywords)$,
|
author=$author$$endif$$if(keywords)$,
|
||||||
keyword=$keywords$$endif$]
|
keyword=$keywords$$endif$]
|
||||||
% make chapter, section bookmarks visible when opening document
|
% 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]
|
\setupinteractionscreen[option=bookmark]
|
||||||
|
\setuptagging[state=start]
|
||||||
|
|
||||||
$if(papersize)$
|
$if(papersize)$
|
||||||
\setuppapersize[$for(papersize)$$papersize$$sep$,
|
\setuppapersize[$for(papersize)$$papersize$$sep$,
|
||||||
|
@ -56,10 +57,12 @@ $if(interlinespace)$
|
||||||
\setupinterlinespace[$interlinespace$]
|
\setupinterlinespace[$interlinespace$]
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
\setuphead[chapter] [style=\tfd]
|
\setuphead[chapter] [style=\tfd,header=empty]
|
||||||
\setuphead[section] [style=\tfc]
|
\setuphead[section] [style=\tfc]
|
||||||
\setuphead[subsection] [style=\tfb]
|
\setuphead[subsection] [style=\tfb]
|
||||||
\setuphead[subsubsection][style=\bf]
|
\setuphead[subsubsection] [style=\bf]
|
||||||
|
\setuphead[subsubsubsection] [style=\sc]
|
||||||
|
\setuphead[subsubsubsubsection][style=\it]
|
||||||
|
|
||||||
$if(headertext)$
|
$if(headertext)$
|
||||||
\setupheadertexts[$headertext$]
|
\setupheadertexts[$headertext$]
|
||||||
|
@ -69,7 +72,7 @@ $if(footertext)$
|
||||||
$endif$
|
$endif$
|
||||||
$if(number-sections)$
|
$if(number-sections)$
|
||||||
$else$
|
$else$
|
||||||
\setuphead[chapter, section, subsection, subsubsection][number=no]
|
\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
\definedescription
|
\definedescription
|
||||||
|
|
Loading…
Reference in a new issue