Text Formattingfont size problem

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
grnivan
Posts: 1
Joined: Wed Aug 29, 2012 9:23 pm

font size problem

Post by grnivan »

Hi,

I'm writing a document. my code is:

Code: Select all

\documentclass[a4paper,10pt]{book}
\usepackage[utf8x]{inputenc}
\usepackage[italian]{babel}

\title{TESI FINASS}
\author{Ivan Granito}
I need to enlarge the font size but if I put 14 in the first command line the character in the pdf is always of size 10.

Have You some advice?

Tanks
Last edited by Stefan Kottwitz on Wed Aug 29, 2012 9:30 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.

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

font size problem

Post by Stefan Kottwitz »

Hi,

welcome to the board!

I recommend to use scrbook instead of book. It's a KOMA class, which can be seen as extension of the standard classes, have a look at the manual. With this class, many things are easier, and so is choosing an arbitrary fontsize, which you could give in pt and even in mm and other units.

Code: Select all

\documentclass[a4paper,fontsize=14pt]{scrbook}
Another possibility would be using a class of the extsizes bundle.

Within the text, you could choose any font size you like. However, the base font size is important, since various font sizes and spacing depend on it, for a consistent design.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

font size problem

Post by cgnieder »

The book class does not support 14pt font size IIRC. There are several possibilities, though:
  1. switch to a class that does support it, like memoir or the koma-script classes (scrbook would be the replacement for book then)
  2. use a class from the extsizes bundle like extbook
  3. load the scrextend package from the koma-script bundle which extends some of KOMA's features to other classes
Example for 2:

Code: Select all

\documentclass[a4paper,14pt]{extbook}
\usepackage[utf8x]{inputenc}
\usepackage[italian]{babel}

\title{TESI FINASS}
\author{Ivan Granito}

\usepackage{lipsum} for dummy text

\begin{document}

\maketitle

\lipsum

\end{document}
Example for 3 (beware of some possible warning messages):

Code: Select all

\documentclass[a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[italian]{babel}

\usepackage{scrextend}
\changefontsizes{14pt}

\title{TESI FINASS}
\author{Ivan Granito}

\usepackage{lipsum}% for dummy text

\begin{document}

\maketitle

\lipsum

\end{document}
Regards

PS: Oops, just seen that Stefan already replied
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

font size problem

Post by Stefan Kottwitz »

cgnieder wrote:PS: Oops, just seen that Stefan already replied
You gave very good additions, such as using memoir or scrextend as further options,

Stefan
LaTeX.org admin
Post Reply