Text Formattingincreasing of font size in output document

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
apkrishna
Posts: 5
Joined: Sun May 10, 2015 3:47 am

increasing of font size in output document

Post by apkrishna »

I would like to know how I can get the font size of the pdf output in LATEX. Presently the font size is 8. I have increased in the terminal to 12, but the font size of output document is still 8.It is too small to read.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

increasing of font size in output document

Post by Johannes_B »

Hi and welcome, i am not sure what you mean. Usually, the base size is given as an option to the class, \documentclass[10pt]{article}, \documentclass[8pt]{extbook} or \documentclass[fontsize=16pt]{scrreprt}.

Can you please be more specific?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
apkrishna
Posts: 5
Joined: Sun May 10, 2015 3:47 am

Re: increasing of font size in output document

Post by apkrishna »

I wish to have the document of larger size font (say 16).
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

increasing of font size in output document

Post by Johannes_B »

Use \documentclass[fontsize=16pt]{scrreprt} or define a new font size file as described in How to work with larger fonts.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

increasing of font size in output document

Post by Stefan Kottwitz »

Welcome to the forum!

It would be good if we would know your document class, so we could suggest the best way.

Personally, I would use

Code: Select all

\documentclass[fontsize=16pt]{scrartcl}
or scrreprt or scrbook. The main point is, using a flexible KOMA-Script class (name scr...) and the option fontsize=16pt. You could use other sizes, even em, ex, cm or mm at this option. KOMA-Script is very flexible.

There's also the extsizes bundle, which you can use like

Code: Select all

\documentclass[17pt]{extarticle}
It works like old base classes. 16pt is not available there though.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: increasing of font size in output document

Post by Johannes_B »

Stefan, as em and ex are relative sizes, dependant on the current font size, this will be a troublemaker.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

increasing of font size in output document

Post by Stefan Kottwitz »

Johannes_B wrote:em and ex are relative sizes, dependant on the current font size
Very good to point that out! So it's better to use other absolute size units, such as pt, bp, cm, mm, ... interesting to test it though.

Stefan
LaTeX.org admin
apkrishna
Posts: 5
Joined: Sun May 10, 2015 3:47 am

increasing of font size in output document

Post by apkrishna »

Hai Stefan, I am new to LATEX. But excited by its power. I am using \documentclass [10pt]{revtex4}.
What I did - introduced the command \Large after the \begin{document}, it worked.
Is it OK? Wish to know your comments.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: increasing of font size in output document

Post by Johannes_B »

REVTeX is for submission of documents to the American Physical Society onlly; they will postprocess your document to their guidelines, most likely removing the change. Why should one article in a journal be printed larger than any others?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply