Text FormattingFont Size Help

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
S_David
Posts: 45
Joined: Tue Jul 07, 2009 4:16 am

Font Size Help

Post by S_David »

Hello,

I want to ask how to control the font size (in points) of a specific line or paragraph.

Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Font Size Help

Post by localghost »

Setting a certain fontsize needs specification of the actual size and the interleaf.

Code: Select all

\fontsize{20}{24}\selectfont
This will set the size of the actual font to 20pt and the according interleaf (about +20% of font size). For better results it is recommendable to use scalable Postscript fonts.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
S_David
Posts: 45
Joined: Tue Jul 07, 2009 4:16 am

Font Size Help

Post by S_David »

localghost wrote:Setting a certain fontsize needs specification of the actual size and the interleaf.

Code: Select all

\fontsize{20}{24}\selectfont
This will set the size of the actual font to 20pt and the according interleaf (about +20% of font size). For better results it is recommendable to use scalable Postscript fonts.


Best regards and welcome to the board
Thorsten
Thank you, but this makes my master thesis title somewhat unclear. Is there any other way to do that? and I didn't understand the Postscript fonts part, can you explain, please?

Best regards
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Font Size Help

Post by localghost »

S_David wrote:Thank you, but this makes my master thesis title somewhat unclear. Is there any other way to do that? and I didn't understand the Postscript fonts part, can you explain, please? [...]
Explain by means of a minimal working example (MWE) what you mean with unclear. Postscript Type 1 fonts are fully scalable without loss in quality. Try the Latin Modern (LM) font which is derived from standard Computer Modern (CM).

Code: Select all

\usepackage[T1]{fontenc}
\usepackage{lmodern}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply