Fonts & Character SetsChange the font to any size

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

Change the font to any size

Post by tarektarek »

Hi;
I asked before about how I can change the font size to any size. I had an answer that I must use the extsizes package. The problem is that I want for example:

new home to stay in (in font size 16pt)
and then later in the document I want to change the font size to 12 pt
Could you please show me what the commands will be?

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Change the font to any size

Post by Juanjo »

You had the answer in the last post of that thread, given by balf. Use \fontsize{16pt}{20pt}\selectfont. To simplify things you may consider to define a command like

Code: Select all

\newcommand{\bigsize}{\fontsize{16pt}{20pt}\selectfont}
So you can write:

Code: Select all

{\bigsize This text is written at 16pt}
Since the default font size you want is 12pt, just add this option to \documentclass. Change to 16pt whenever appropriate through the above \bigsize command.
Rakshath
Posts: 6
Joined: Sun Apr 01, 2012 4:55 pm

Re: font size

Post by Rakshath »

what is that 20 pt
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Change the font to any size

Post by Stefan Kottwitz »

Hi Rakshath,

welcome to the board! See Low-level font commands in the manual, it's the line spacing, the distance between the base of two consecutive text lines.

Stefan
LaTeX.org admin
Post Reply