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 From 8264f9f8f837b13fb50c3631d0e2e1936aec1684 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Tue, 20 Oct 2015 16:07:18 -0400 Subject: Write title block in ConTeXt using \title. This prevents a page number from appearing on the first page. --- default.context | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/default.context b/default.context index ca82d293c..d4e8d29f0 100644 --- a/default.context +++ b/default.context @@ -13,7 +13,7 @@ $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)$, + author=$for(author)$$author$$sep$; $endfor$$endif$$if(keywords)$, keyword=$keywords$$endif$] % make chapter, section bookmarks visible when opening document \placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section] @@ -87,32 +87,34 @@ $endif$ \setupthinrules[width=15em] % width of horizontal rules -$for(header-includes)$ -$header-includes$ -$endfor$ - -\starttext -$if(title)$ -\startalignment[center] - \blank[2*big] - {\tfd $title$} +\setuphead[title][ + style={\tfd\raggedcenter}, + before={\startalignment[middle]}, + after={ $if(subtitle)$ - \blank[3*medium] - {\tfa $subtitle$} + \smallskip + {\tfa $subtitle$} $endif$ $if(author)$ - \blank[3*medium] - {\tfa $for(author)$$author$$sep$\crlf $endfor$} + \smallskip + {\tfa $for(author)$$author$$sep$\crlf $endfor$} $endif$ $if(date)$ - \blank[2*medium] - {\tfa $date$} + \smallskip + {\tfa $date$} $endif$ - \blank[3*medium] -\stopalignment + \bigskip\stopalignment}] + +$for(header-includes)$ +$header-includes$ +$endfor$ + +\starttext +$if(title)$ +\title{$title$} $endif$ $if(abstract)$ -\midaligned{\bf Abstract} +\midaligned{\it Abstract} \startnarrower[2*middle] $abstract$ \stopnarrower -- cgit v1.2.3