From 1b42e05bd9fcbf74e31547024be228a7bef99bf5 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 16 Nov 2019 18:38:05 -0800 Subject: 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) --- data/templates/default.context | 2 ++ test/writer.context | 1 + test/writers-lang-and-dir.context | 1 + 3 files changed, 4 insertions(+) diff --git a/data/templates/default.context b/data/templates/default.context index 89944c372..1ad5779ab 100644 --- a/data/templates/default.context +++ b/data/templates/default.context @@ -36,6 +36,8 @@ $if(layout)$ $endif$ $if(pagenumbering)$ \setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$] +$else$ +\setuppagenumbering[location={footer,middle}] $endif$ $if(pdfa)$ % attempt to generate PDF/A diff --git a/test/writer.context b/test/writer.context index 619124788..636a9bf8d 100644 --- a/test/writer.context +++ b/test/writer.context @@ -11,6 +11,7 @@ \placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section] \setupinteractionscreen[option=bookmark] +\setuppagenumbering[location={footer,middle}] \setupbackend[export=yes] \setupstructure[state=start,method=auto] diff --git a/test/writers-lang-and-dir.context b/test/writers-lang-and-dir.context index b309d130b..318b538eb 100644 --- a/test/writers-lang-and-dir.context +++ b/test/writers-lang-and-dir.context @@ -9,6 +9,7 @@ \placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section] \setupinteractionscreen[option=bookmark] +\setuppagenumbering[location={footer,middle}] \setupbackend[export=yes] \setupstructure[state=start,method=auto] -- cgit v1.2.3