Page Layout ⇒ savetrees | Keep Page Numbers
-
- Posts: 7
- Joined: Sun May 15, 2011 11:33 pm
savetrees | Keep Page Numbers
Hi.
I'm using the savetrees package, which works excellent, except I want to keep the page numbers. Does anyone know how I can keep them in the document?
I tried reading through the savetrees manual, but I couldn't see where they remove the page numbers, and adding "\setcounter{page}{3}" didn't work either.
I'm using the savetrees package, which works excellent, except I want to keep the page numbers. Does anyone know how I can keep them in the document?
I tried reading through the savetrees manual, but I couldn't see where they remove the page numbers, and adding "\setcounter{page}{3}" didn't work either.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
savetrees | Keep Page Numbers
No problem here.
Well then?
Thorsten
Code: Select all
Code, edit and compile here:
\documentclass[11pt,a4paper,english]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{babel}\usepackage{savetrees}\usepackage[math]{blindtext}\title{A Title}\author{An Other}\begin{document}\maketitle\blinddocument\end{document}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 7
- Joined: Sun May 15, 2011 11:33 pm
savetrees | Keep Page Numbers
Thank you for answering!
I compiled your minimum file, and the page numbers appeared just like they are supposed to.
After some testing I discovered that the problem wasn't caused by savetrees, but by combining savetrees and fancyhdr. In the following example I get the page number 1 on the first page, but on the second page the page number has simply disappeared.
(Also, the page numbers are supposed to appear on the right hand side, but that works fine in my document so it's no big deal).
I compiled your minimum file, and the page numbers appeared just like they are supposed to.
After some testing I discovered that the problem wasn't caused by savetrees, but by combining savetrees and fancyhdr. In the following example I get the page number 1 on the first page, but on the second page the page number has simply disappeared.
(Also, the page numbers are supposed to appear on the right hand side, but that works fine in my document so it's no big deal).
Code: Select all
Code, edit and compile here:
\documentclass[11pt,a4paper,english]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{babel}\usepackage{savetrees}\usepackage{blindtext}\usepackage{fancyhdr}\pagestyle{fancy}\fancyhead[RO,RE]{\textbf{TITLE}\\Subtitle}\fancyfoot{} % clear all footer fields\fancyfoot[LE,RO]{\thepage}\title{A Title}\author{An Other}\begin{document}\maketitle\blinddocument\end{document}
-
- Posts: 7
- Joined: Sun May 15, 2011 11:33 pm
savetrees | Keep Page Numbers
Actually, the number didn't disappear, it just appeared on the top left for some mysterious reason. When I tried to place it there intentionally with
the page number really vanished.
If you know some nice way to fix this, that would be great, but if not I'll just leave the page numbers out. It's just a 10 page document anyway.
Code: Select all
\fancyhead[LE,LO]{\thepage}

If you know some nice way to fix this, that would be great, but if not I'll just leave the page numbers out. It's just a 10 page document anyway.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
savetrees | Keep Page Numbers
Still no problem here (except for a warning about 'twoside' option and two more concerning too small \footskip and \headheight). Next try.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 7
- Joined: Sun May 15, 2011 11:33 pm
Re: savetrees | Keep Page Numbers
I appreciate the help, but I don't think I'm going to spend any more time with this right now. I have to work on the document itself, not the LaTeX-details.
Thanks!

Thanks!