From 4e7ac069b9d79146c3d39a8514bbdbf81f51118e Mon Sep 17 00:00:00 2001 From: Denis Maier <maier.de@gmail.com> Date: Wed, 11 Dec 2019 17:28:11 +0100 Subject: [PATCH] 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. --- data/templates/default.context | 8 ++++---- 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