aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-16 18:38:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-16 18:38:05 -0800
commit1b42e05bd9fcbf74e31547024be228a7bef99bf5 (patch)
treec9b37add45ebeef195ba4f48a7fda4749ab03204
parent202d404d654b0d5222124f3db15a9c9b9380193d (diff)
downloadpandoc-1b42e05bd9fcbf74e31547024be228a7bef99bf5.tar.gz
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)
-rw-r--r--data/templates/default.context2
-rw-r--r--test/writer.context1
-rw-r--r--test/writers-lang-and-dir.context1
3 files changed, 4 insertions, 0 deletions
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]