aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDenis Maier <maier.de@gmail.com>2019-12-11 17:28:11 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2019-12-11 08:28:11 -0800
commit4e7ac069b9d79146c3d39a8514bbdbf81f51118e (patch)
treead83d81add8e289ec484ec22ef0a748576f45008 /data
parent90804b55067a1883f6663cc424429047c37c6e8a (diff)
downloadpandoc-4e7ac069b9d79146c3d39a8514bbdbf81f51118e.tar.gz
ConTeXt template: Adjustments to title formatting (#5949)
Added `\setupinterlinespace` to `title`, `subtitle`, `date` and `author` elements. Otherwise longer titles that run over multiple lines will look squashed as `\tfd` etc. won't adapt the line spacing to the font size.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.context8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/default.context b/data/templates/default.context
index b8886d963..5e67eaa67 100644
--- a/data/templates/default.context
+++ b/data/templates/default.context
@@ -133,18 +133,18 @@ $endfor$
\starttext
$if(title)$
\startalignment[middle]
- {\tfd $title$}
+ {\tfd\setupinterlinespace $title$}
$if(subtitle)$
\smallskip
- {\tfa $subtitle$}
+ {\tfa\setupinterlinespace $subtitle$}
$endif$
$if(author)$
\smallskip
- {\tfa $for(author)$$author$$sep$\crlf $endfor$}
+ {\tfa\setupinterlinespace $for(author)$$author$$sep$\crlf $endfor$}
$endif$
$if(date)$
\smallskip
- {\tfa $date$}
+ {\tfa\setupinterlinespace $date$}
$endif$
\bigskip
\stopalignment