Page LayoutPage Boarder and even pages

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
callkalpa
Posts: 2
Joined: Fri May 10, 2013 12:30 pm

Page Boarder and even pages

Post by callkalpa »

Hi,

I've got two questions,

1) How can I have a border around the page (I want to have a rectangle drawn at the margins so that my page content will be inside the border)
2) Can I have even pages (left pages) only when I need. In MS Word or LibreOffice Writer we can have page breaks to either left pages or right pages. Is this possible in latex. If so is there a special document class to be used to accomplish this task?

Thanks in advance

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Page Boarder and even pages

Post by cgnieder »

Hi callkalpa,

Welcome to the LaTeX community!
callkalpa wrote:1) How can I have a border around the page (I want to have a rectangle drawn at the margins so that my page content will be inside the border)
This should be doable with eso-pic or with TikZ/pgf.
callkalpa wrote:2) Can I have even pages (left pages) only when I need. In MS Word or LibreOffice Writer we can have page breaks to either left pages or right pages. Is this possible in latex. If so is there a special document class to be used to accomplish this task?
This sounds like a page layout question. Left or verso pages have a bigger margin to the left than to the right (in left-to-right books) and even page numbering. If that's what you want I'd define a layout with geometry for a oneside document that looks like verso pages and define \thepage to output the page number times two:

Code: Select all

\documentclass[oneside]{book}
\usepackage{geometry}
\geometry{left=1.4in,right=.7in}
\renewcommand*\thepage{\the\numexpr2*\value{page}\relax}

\usepackage{lipsum}% for dummy text

\begin{document}

\chapter{Foo Bar}
\lipsum
\lipsum

\end{document}
If that isn't waht you want I have misunderstood your question.

Regards
site moderator & package author
callkalpa
Posts: 2
Joined: Fri May 10, 2013 12:30 pm

Re: Page Boarder and even pages

Post by callkalpa »

Thanks cgnieder for your reply.

It seems that my requirement is not properly communicated over to you.

In simple terms, it is not a book which has content on both left side pages and right side pages. It will be a report with content only on right side pages. BUT in the middle of those right side pages I may want to add a left side page.

Say I am writing a report. I have a table and a graph based on the values of that table. When I open the report like a book, I want to have the table on the left side page and on next page (which is the right side page) the graph will be there. Other content will be only on right side pages (left side page is blank).
Post Reply