mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 09:16:43 +00:00
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:
committed by
John MacFarlane
parent
90804b5506
commit
4e7ac069b9
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user