ConTeXt template: add a saner default for page numbers.
Previously they appeared centered at the top of the page; now we put them centered at the bottom, unless the `pagenumbering` variable is set (this gives users full control over page number format and position, https://wiki.contextgarden.net/Command/setuppagenumbering)
This commit is contained in:
parent
202d404d65
commit
1b42e05bd9
3 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@ $if(layout)$
|
||||||
$endif$
|
$endif$
|
||||||
$if(pagenumbering)$
|
$if(pagenumbering)$
|
||||||
\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
|
\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
|
||||||
|
$else$
|
||||||
|
\setuppagenumbering[location={footer,middle}]
|
||||||
$endif$
|
$endif$
|
||||||
$if(pdfa)$
|
$if(pdfa)$
|
||||||
% attempt to generate PDF/A
|
% attempt to generate PDF/A
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
||||||
\setupinteractionscreen[option=bookmark]
|
\setupinteractionscreen[option=bookmark]
|
||||||
|
|
||||||
|
\setuppagenumbering[location={footer,middle}]
|
||||||
\setupbackend[export=yes]
|
\setupbackend[export=yes]
|
||||||
\setupstructure[state=start,method=auto]
|
\setupstructure[state=start,method=auto]
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
||||||
\setupinteractionscreen[option=bookmark]
|
\setupinteractionscreen[option=bookmark]
|
||||||
|
|
||||||
|
\setuppagenumbering[location={footer,middle}]
|
||||||
\setupbackend[export=yes]
|
\setupbackend[export=yes]
|
||||||
\setupstructure[state=start,method=auto]
|
\setupstructure[state=start,method=auto]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue