aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2015-11-17 20:22:23 -0500
committerAndrew Dunning <adunning@users.noreply.github.com>2015-11-17 20:22:23 -0500
commit959c20399bdf5f44e56497352a63917c4db2a5ce (patch)
tree8cc31d7241d931e9d099fe62aecdd6b7156d294e
parentff9ebaa31ae31401e236574e81c2e75609adc727 (diff)
downloadpandoc-959c20399bdf5f44e56497352a63917c4db2a5ce.tar.gz
Revert use of \setuphead for ConTeXt title block.
Thanks to Rik Kabel on pandoc-discuss.
-rw-r--r--default.context35
1 files changed, 16 insertions, 19 deletions
diff --git a/default.context b/default.context
index c5ad2113f..1feff01b0 100644
--- a/default.context
+++ b/default.context
@@ -93,31 +93,28 @@ $endif$
\setupthinrules[width=15em] % width of horizontal rules
-\setuphead[title][
- style={\tfd\raggedcenter},
- before={\startalignment[middle]},
- after={
-$if(subtitle)$
- \smallskip
- {\tfa $subtitle$}
-$endif$
-$if(author)$
- \smallskip
- {\tfa $for(author)$$author$$sep$\crlf $endfor$}
-$endif$
-$if(date)$
- \smallskip
- {\tfa $date$}
-$endif$
- \bigskip\stopalignment}]
-
$for(header-includes)$
$header-includes$
$endfor$
\starttext
$if(title)$
-\title{$title$}
+\startalignment[middle]
+ {\tfd $title$}
+$if(subtitle)$
+ \smallskip
+ {\tfa $subtitle$}
+$endif$
+$if(author)$
+ \smallskip
+ {\tfa $for(author)$$author$$sep$\crlf $endfor$}
+$endif$
+$if(date)$
+ \smallskip
+ {\tfa $date$}
+$endif$
+ \bigskip
+\stopalignment
$endif$
$if(abstract)$
\midaligned{\it Abstract}