Page LayoutProblem with Roman Page Numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
PaX
Posts: 1
Joined: Tue Jan 24, 2012 5:18 am

Problem with Roman Page Numbering

Post by PaX »

I make this code.. (this is a example...)

Code: Select all

\documentclass[a4paper,12pt]{report}
\usepackage[utf8x]{inputenc}
\usepackage[spanish] {babel}
\usepackage{graphicx} 
\usepackage{array,multirow,tabulary} 				%Usados para las tablas
\usepackage[left=4cm,top=3cm,right=3cm,bottom=3cm]{geometry} 	%Definimos los Margenes
\usepackage{pdfpages} 						%to import PDF pages
\pagestyle{plain} 
\renewcommand\familydefault{\sfdefault}
\renewcommand{\baselinestretch}{1.5}

\begin{document}
\pagenumbering{roman} 
\setcounter{page}{2}
\begin{center}
\large{Agradecimientos}\\
\end{center}
Lorem ipsum dolor sit amet, tempor et praesent, sed vestibulum mattis augue mattis
\end{document}
if i tray compile, launch a warnign...
LaTeX Font Warning: Font shape `OT1/cmss/m/sc' in size <12> not available
(Font) Font shape `OT1/cmr/m/sc' tried instead on input line 19.
i the numbering looks as if invoking

Code: Select all

\pagenumbering{Roman} 
but i really new the roman look.

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

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Problem with Roman Page Numbering

Post by Frits »

First, the warning comes from the fact that you're using cmss as the default font:

Code: Select all

\renewcommand\familydefault{\sfdefault}
Remove that line and the warning will disappear. It's because the roman numbering isn't supported by that font type.

The uppercase roman numbering is because of the spanish option in the babel package:

Code: Select all

\usepackage[spanish] {babel}
I don't know why, since I'm not spanish ;-) Apparently the page numbering is forced to uppercase.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Problem with Roman Page Numbering

Post by Stefan Kottwitz »

Hi PaX,

welcome to the board!

Traditional Spanish typography discourages the use of lowercase Roman
numerals; instead, babel uses small caps (scshape). In your sans serif font there's no small caps shape. If you really would like to use small caps in sans serif, you need to change the font.

However, you could switch to normal lowercase (sans serif, in your case) roman, in your preamble after loading babel:

Code: Select all

\spanishlcroman
Stefan
LaTeX.org admin
Post Reply