Page LayoutShowframe for all pages

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Showframe for all pages

Post by php1ic »

I have just discovered the showframe option for the geometry package, but can't workout how to get the frame on every page of my document and not just the first page.

The code below highlights the problem, does anybody know how I get the frame on all pages?

Code: Select all

\documentclass[a4paper,11pt]{report}

\usepackage[a4paper,showframe,
top    = 2.75cm,
bottom = 2.50cm,
left   = 3.00cm,
right  = 2.50cm]{geometry}
\usepackage[english]{babel}
\usepackage[math]{blindtext}

\begin{document}

\chapter{Start}
\blindtext

\section{One}
\blindtext

\section{Two}
\blindtext

\section{Three}
\blindtext

\section{Four}
\blindtext

\end{document}
Thanks.
Last edited by php1ic on Sun May 16, 2010 4:39 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Showframe for all pages

Post by gmedina »

Hi,

using your code I got the frame in both pages; I even did a test with a 14-page document and got 14 framed pages. Do you get something different with the following code?

Code: Select all

\documentclass[a4paper,11pt]{report}

\usepackage[a4paper,showframe,
top    = 2.75cm,
bottom = 2.50cm,
left   = 3.00cm,
right  = 2.50cm]{geometry}
\usepackage[english]{babel}
\usepackage[math]{blindtext}

\begin{document}

\Blinddocument

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Showframe for all pages

Post by php1ic »

I still only get a frame on the first page. My version of linux and latex is quite old. Could it be due to older versions of the packages?

I added \listfiles to your code, below is the output I get

Code: Select all

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./box.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/report.cls
Document Class: report 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size11.clo))
(/usr/share/texmf/tex/latex/geometry/geometry.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/geometry/geometry.cfg))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/english.ldf
(/usr/share/texmf/tex/generic/babel/babel.def))) (./blindtext.sty
(/usr/share/texmf/tex/latex/tools/xspace.sty)) (./box.aux)
Chapter 1.
[1] (/usr/share/texmf/tex/latex/base/omscmr.fd) [2] [3] (./box.aux)

 *File List*
  report.cls    2004/02/16 v1.4f Standard LaTeX document class
  size11.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
geometry.sty    2002/07/08 v3.2 Page Geometry
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
geometry.cfg
   babel.sty    2004/11/20 v3.8d The Babel package
 english.ldf    2004/06/14 v3.3o English support from the babel system
blindtext.sty    2009/06/14 V1.9b blindtext-Package
  xspace.sty    1997/10/13 v1.06 Space after command names (DPC)
  omscmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
 ***********

 )
Output written on box.dvi (3 pages, 10760 bytes).
Transcript written on box.log.
jocom
Posts: 25
Joined: Fri May 07, 2010 4:28 pm

Re: Showframe for all pages

Post by jocom »

Your idea is right.
The feature that showframes shows up on all pages was added in one of the later versions of geometry (5 I thought).
Updating that package should solve the problem.
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: Showframe for all pages

Post by php1ic »

I've just 'built' the newest version of geometry.sty file from CTAN and now I have a frame on every page.

Thanks for all you responses.
Post Reply