diff options
author | Denis Maier <maier.de@gmail.com> | 2019-12-11 17:28:11 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-12-11 08:28:11 -0800 |
commit | 4e7ac069b9d79146c3d39a8514bbdbf81f51118e (patch) | |
tree | ad83d81add8e289ec484ec22ef0a748576f45008 | |
parent | 90804b55067a1883f6663cc424429047c37c6e8a (diff) | |
download | pandoc-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.
-rw-r--r-- | data/templates/default.context | 8 | ||||
-rw-r--r-- | test/writer.context | 6 |
2 files changed, 7 insertions, 7 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 diff --git a/test/writer.context b/test/writer.context index 636a9bf8d..0c640472e 100644 --- a/test/writer.context +++ b/test/writer.context @@ -61,11 +61,11 @@ \starttext \startalignment[middle] - {\tfd Pandoc Test Suite} + {\tfd\setupinterlinespace Pandoc Test Suite} \smallskip - {\tfa John MacFarlane\crlf Anonymous} + {\tfa\setupinterlinespace John MacFarlane\crlf Anonymous} \smallskip - {\tfa July 17, 2006} + {\tfa\setupinterlinespace July 17, 2006} \bigskip \stopalignment |