Write title block in ConTeXt using \title.
This prevents a page number from appearing on the first page.
This commit is contained in:
parent
d54b34cca6
commit
8264f9f8f8
1 changed files with 21 additions and 19 deletions
|
@ -13,7 +13,7 @@ $endif$
|
||||||
contrastcolor=$if(linkcolor)$$linkcolor$$else$black$endif$$if(title)$,
|
contrastcolor=$if(linkcolor)$$linkcolor$$else$black$endif$$if(title)$,
|
||||||
title=$title$$endif$$if(subtitle)$,
|
title=$title$$endif$$if(subtitle)$,
|
||||||
subtitle=$subtitle$$endif$$if(author)$,
|
subtitle=$subtitle$$endif$$if(author)$,
|
||||||
author=$author$$endif$$if(keywords)$,
|
author=$for(author)$$author$$sep$; $endfor$$endif$$if(keywords)$,
|
||||||
keyword=$keywords$$endif$]
|
keyword=$keywords$$endif$]
|
||||||
% make chapter, section bookmarks visible when opening document
|
% make chapter, section bookmarks visible when opening document
|
||||||
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
||||||
|
@ -87,32 +87,34 @@ $endif$
|
||||||
|
|
||||||
\setupthinrules[width=15em] % width of horizontal rules
|
\setupthinrules[width=15em] % width of horizontal rules
|
||||||
|
|
||||||
|
\setuphead[title][
|
||||||
|
style={\tfd\raggedcenter},
|
||||||
|
before={\startalignment[middle]},
|
||||||
|
after={
|
||||||
|
$if(subtitle)$
|
||||||
|
\smallskip
|
||||||
|
{\tfa $subtitle$}
|
||||||
|
$endif$
|
||||||
|
$if(author)$
|
||||||
|
\smallskip
|
||||||
|
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
|
||||||
|
$endif$
|
||||||
|
$if(date)$
|
||||||
|
\smallskip
|
||||||
|
{\tfa $date$}
|
||||||
|
$endif$
|
||||||
|
\bigskip\stopalignment}]
|
||||||
|
|
||||||
$for(header-includes)$
|
$for(header-includes)$
|
||||||
$header-includes$
|
$header-includes$
|
||||||
$endfor$
|
$endfor$
|
||||||
|
|
||||||
\starttext
|
\starttext
|
||||||
$if(title)$
|
$if(title)$
|
||||||
\startalignment[center]
|
\title{$title$}
|
||||||
\blank[2*big]
|
|
||||||
{\tfd $title$}
|
|
||||||
$if(subtitle)$
|
|
||||||
\blank[3*medium]
|
|
||||||
{\tfa $subtitle$}
|
|
||||||
$endif$
|
|
||||||
$if(author)$
|
|
||||||
\blank[3*medium]
|
|
||||||
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
|
|
||||||
$endif$
|
|
||||||
$if(date)$
|
|
||||||
\blank[2*medium]
|
|
||||||
{\tfa $date$}
|
|
||||||
$endif$
|
|
||||||
\blank[3*medium]
|
|
||||||
\stopalignment
|
|
||||||
$endif$
|
$endif$
|
||||||
$if(abstract)$
|
$if(abstract)$
|
||||||
\midaligned{\bf Abstract}
|
\midaligned{\it Abstract}
|
||||||
\startnarrower[2*middle]
|
\startnarrower[2*middle]
|
||||||
$abstract$
|
$abstract$
|
||||||
\stopnarrower
|
\stopnarrower
|
||||||
|
|
Loading…
Add table
Reference in a new issue