Page LayoutSet page dimensions

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

Set page dimensions

Post by ffarr »

Hello, how can I set the page dimensions to 11 cm per 19,5 cm?
Last edited by ffarr on Tue May 10, 2011 11:42 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

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Set page dimensions

Post by Stefan Kottwitz »

Hi ffar,

use the geometry package, such as:

Code: Select all

\usepackage[papersize={110mm,195mm}]{geometry}
Stefan
LaTeX.org admin
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

Set page dimensions

Post by ffarr »

I get plenty of errors.. I post my code:

Code: Select all

\documentclass[11pt,a4paper,twoside,italian]{book}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[%
  headheight=14pt,
  includehead,
  nofoot
]{geometry}
\usepackage[papersize={110mm,195mm}]{geometry}
\usepackage{babel}
\usepackage[raggedright,pagestyles]{titlesec}
\usepackage{blindtext}
\usepackage{color}
\newpagestyle{main}{%
  \sethead[\thepage][][\chaptertitle]{\chaptertitle}{}{\thepage}
  \headrule
}
\pagestyle{main}

\titleformat{\chapter}{\normalfont\huge\bfseries}{}{0pt}{\Huge}
I put this code to display the name of the chapter in the headre without showing the chapter number.

Any tips?
Thanks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Set page dimensions

Post by Stefan Kottwitz »

Now you load geometry twice. You did not tell that you already use geometry.

So, merge the options, such as

Code: Select all

\usepackage[%
      papersize={110mm,195mm},
      headheight=14pt,
      includehead,
      nofoot
    ]{geometry}
or use the command

Code: Select all

\geometry{papersize={110mm,195mm}}
Stefan
LaTeX.org admin
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

Re: Set page dimensions

Post by ffarr »

Superb. Thank you!
Post Reply