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.
commit4e7ac069b9d79146c3d39a8514bbdbf81f51118e
authorDenis Maier <maier.de@gmail.com>
dateWed 11 Dec 2019, 17:28 (7 years ago)
parent90804b5
data/templates/default.context+4−4
@@ -133,18 +133,18 @@ $endfor$
133133\starttext
134134$if(title)$
135135\startalignment[middle]
136− {\tfd $title$}
136+ {\tfd\setupinterlinespace $title$}
137137$if(subtitle)$
138138 \smallskip
139− {\tfa $subtitle$}
139+ {\tfa\setupinterlinespace $subtitle$}
140140$endif$
141141$if(author)$
142142 \smallskip
143− {\tfa $for(author)$$author$$sep$\crlf $endfor$}
143+ {\tfa\setupinterlinespace $for(author)$$author$$sep$\crlf $endfor$}
144144$endif$
145145$if(date)$
146146 \smallskip
147− {\tfa $date$}
147+ {\tfa\setupinterlinespace $date$}
148148$endif$
149149 \bigskip
150150\stopalignment
test/writer.context+3−3
@@ -61,11 +61,11 @@
6161
6262\starttext
6363\startalignment[middle]
64− {\tfd Pandoc Test Suite}
64+ {\tfd\setupinterlinespace Pandoc Test Suite}
6565 \smallskip
66− {\tfa John MacFarlane\crlf Anonymous}
66+ {\tfa\setupinterlinespace John MacFarlane\crlf Anonymous}
6767 \smallskip
68− {\tfa July 17, 2006}
68+ {\tfa\setupinterlinespace July 17, 2006}
6969 \bigskip
7070\stopalignment
7171