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.
This commit is contained in:
parent
90804b5506
commit
4e7ac069b9
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue