Page Layouthelp with \chapter, pagenumering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

help with \chapter, pagenumering

Post by fja »

Hello, I'm FJA and this is my 1st time here, and I have some questions to do.

What do I need:
- The table of contents, list of figures and list of tables in roman, e.g. i,ii,iii,iv,..., but I get I, II, III, IV, etc. after compiling)

-The pagenumber in ALL the pages in the "right-foot position", but I get the first page of \chapters, and the first one of TOC, list of figures and list of tables, centered in the bottom.

- I need to change the \chapter{} style: I need 1. Chapter Name instead of
Chapter 1.
Chapter Name
. I cannot use a \section{}, because I need this kind of leveling.

What do I use: Texshop, MacTex, and OSX 10.6.2

The code:

Code: Select all

\documentclass[letterpaper,12pt,oneside]{book}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{tocbibind}

\title{Tesis Final}
\author{}
\pagestyle{headings}
\usepackage{fancyhdr} 
\pagestyle{fancy}

\begin{document}
\maketitle
\frontmatter
\fancyhf{}
\lhead{}
\rfoot[rf-even]{\thepage}
\pagenumbering{roman}
\setcounter{page}{1}
\newpage
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables

\mainmatter
\pagenumbering{arabic}
\setcounter{page}{1}
…
\end{document}
PS. I apologize about my english…

Recommended reading 2024:

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

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

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

help with \chapter, pagenumering

Post by gmedina »

Hi,
fja wrote:...- The table of contents, list of figures and list of tables in roman, e.g. i,ii,iii,iv,..., but I get I, II, III, IV, etc. after compiling)...
This is so because the lower case roman numerals shouldn't be used in Spanish; however, adding the es-lcroman package option to babel, activates their use.

The document Estilo spanish para el sistema babel contains some other useful information regarding the spanish option for babel.

fja wrote:...-The pagenumber in ALL the pages in the "right-foot position", but I get the first page of \chapters, and the first one of TOC, list of figures and list of tables, centered in the bottom.

- I need to change the \chapter{} style: I need 1. Chapter Name instead of
Chapter 1.
Chapter Name
. I cannot use a \section{}, because I need this kind of leveling...
Both issues can be handled with the help of the titlesec package. Note that since you can define new (or redefine existing) page styles with this package, there's no need to use fancyhdr. Please refer to the package documentation for further information.

A little example code that incorporates some of my suggestions (of course, feel free to adapt it according to your needs):

Code: Select all

\documentclass[letterpaper,12pt,oneside]{book}
\usepackage[spanish,es-lcroman]{babel}
\usepackage[latin1]{inputenc}
\usepackage{tocbibind}
\usepackage[pagestyles]{titlesec}

\titleformat{\chapter}
  {\normalfont\LARGE\bfseries}{\thechapter.}{1em}{}
\titlespacing*{\chapter} 
  {0pt}{20pt}{30pt}

\renewpagestyle{plain}{%
  \sethead{}{}{}
  \setfoot{}{}{\thepage}
}

\title{Tesis Final}
\author{}

\pagestyle{plain}

\begin{document}
\maketitle

\frontmatter
\newpage
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables

\mainmatter
\chapter{Un cap\'itulo de prueba}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

Re: help with \chapter, pagenumering

Post by fja »

Thanks you, gmedina!! It really works!!
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

Re: help with \chapter, pagenumering

Post by fja »

Ok. I downloaded and I red the titlesec.pdf. But… I'm afraid my english is not good enough! So, I have another question: After the change in \chapter, I need this \chapter name two (simple) lines below the begining of the page (remember that I'm writting it with \doublespacing), then the text must be three (simple) lines or spaces below the \chapter name. Could you help me, please (again)? This must include the titles of the mainmatter as well those of the front/back-matter ;)

(By the way, yo hablo español, ya que soy de Chile.)
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

help with \chapter, pagenumering

Post by gmedina »

Change the values of the third and fourth arguments of the \titlespacing* command; an example:

Code: Select all

\titlespacing*{\chapter}
  {0pt}{\baselineskip}{2\baselineskip}
Of course, you will have to use values that will produce the spacing that you require.

Edit:
fja wrote:(By the way, yo hablo español, ya que soy de Chile.)
Yes, I know that, but since the board language is English, and few of the members speak Spanish, it would be impolite to post in Spanish. However, es grato tener a un forero chileno. ¡Bienvenido! (it's nice to have a member from Chile, welcome!)
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply