LaTeX Font Size
The LaTeX font size of a LaTeX document can be specified through.
documentclass globally
- predefined commands locally
- Packages for additional font size setting
Command documentclass
documentclass is used to specify the font size of a LaTeX document globally.
When specifying a document class to the argument
class of the command
documentclass, the global default font size of the corresponding LaTeX document are also specified accordingly. The command
\normalsize always set the font size to the global default font size. However, the global default font size together with the typesetting of command
\normalsize can be altered by specifying one of the available font size options to the optional argument
options .
Default Document Font Size
The default document font size of some document classes are
Class NameDescription
articleDefault is 10pt, other available options are 11 pt and 12 pt.
beamerDefault is 11pt
bookDefault is 10pt, other available options are 11 pt and 12 pt.
IEEEtranDefault is 10pt
letterDefault is 10pt, other available options are 11 pt and 12 pt.
memoirDefault is 10pt
minimalDefault is 10pt
procDefault is 10pt, other available options are 11 pt and 12 pt.
reportDefault is 10pt, other available options are 11 pt and 12 pt.
slideDefault is 20pt
standaloneDefault is 10pt
Default Document Font Size Examples
article Example
Code
\newcommand\x{article}
\documentclass{\x}
\usepackage[paperwidth=9cm,paperheight=8.1cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Example
Code
\newcommand\x{beamer}
\documentclass[handout]{\x}
\usepackage{pgfpages}
\paperwidth=10.3cm
\paperheight=8.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.35\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
book Example
Code
\newcommand\x{book}
\documentclass{\x}
\usepackage[paperwidth=9cm,paperheight=8.1cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
IEEEtran Example
Code
\newcommand\x{IEEEtran}
\documentclass{\x}
\usepackage[paperwidth=9cm,paperheight=8.1cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
letter Example
Code
\newcommand\x{letter}
\documentclass{\x}
\usepackage[paperwidth=8.1cm,paperheight=8.5cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
memoir Example
Code
\newcommand\x{memoir}
\documentclass{\x}
\usepackage[paperwidth=9.1cm,paperheight=8cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
minimal Example
Code
\newcommand\x{minimal}
\documentclass{\x}
\usepackage[paperwidth=6.5cm,paperheight=2.5cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
%\thefontsize{\Huge}
%\thefontsize{\huge}
%\thefontsize{\LARGE}
%\thefontsize{\Large}
%\thefontsize{\large}
\thefontsize{\normalsize}
%\thefontsize{\small}
%\thefontsize{\footnotesize}
%\thefontsize{\scriptsize}
%\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
proc Example
Code
\newcommand\x{proc}
\documentclass{\x}
\usepackage[paperwidth=8.7cm,paperheight=8cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
report Example
Code
\newcommand\x{report}
\documentclass{\x}
\usepackage[paperwidth=9cm,paperheight=8.2cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
slides Example
Code
\newcommand\x{slides}
\documentclass{\x}
\usepackage[paperwidth=20cm,paperheight=18.2cm,left=5px,top=5px,textwidth=21.5cm,textheight=18cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.5\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
standalone
Code
\newcommand\x{standalone}
\documentclass[border=10pt,varwidth]{\x}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.5\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
Command documentclass
\documentclass[<options>]{<class-name>}
Arguments
Argument <class-name>
<class-name> specifies the standard layout class of the LaTeX document.
Argument <options>
<options> specifies the predefined options of the corresponding specified class.
One typical option is to set the size of the main default font in the document. If no font size option is specified, the default font size is assumed.
Global Document Font Size Examples
article Examples
article Default Font Size Examples
Code
\newcommand\x{article}
\documentclass{\x}
\usepackage[paperwidth=9cm,paperheight=8.1cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
article Font Size 10pt Option Examples
Code
\newcommand\x{article}
\documentclass[10pt]{\x}
\usepackage[paperwidth=9cm,paperheight=8.1cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
article Font Size 11pt Option Examples
Code
\newcommand\x{article}
\documentclass[11pt]{\x}
\usepackage[paperwidth=9.2cm,paperheight=9cm,left=5px,top=5px,textwidth=11.5cm,textheight=12cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
article Font Size 12pt Option Examples
Code
\newcommand\x{article}
\documentclass[12pt]{\x}
\usepackage[paperwidth=9.3cm,paperheight=9.5cm,left=5px,top=5px,textwidth=11.5cm,textheight=12cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Examples
beamer Default Font Size Examples
Code
\newcommand\x{beamer}
\documentclass[handout]{\x}
\usepackage{pgfpages}
\paperwidth=10.3cm
\paperheight=8.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.35\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Font Size 11pt Option Examples
Code
\newcommand\x{beamer}
\documentclass[11pt,handout]{\x}
\usepackage{pgfpages}
\paperwidth=10.3cm
\paperheight=8.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.35\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Font Size 8pt Option Examples
Code
\newcommand\x{beamer}
\documentclass[8pt,handout]{\x}
\usepackage{pgfpages}
\paperwidth=10.3cm
\paperheight=6.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.35\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Font Size 20pt Option Examples
Code
\newcommand\x{beamer}
\documentclass[20pt,handout]{\x}
%\usepackage[scale=0.83]{beamerposter}
%\setlength{\paperwidth}{14.5cm}
%\setlength{\paperheight}{16cm}
\usepackage{pgfpages}
\paperwidth=13.6cm
\paperheight=15.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
%\begin{tabular}{p{0.041\textwidth}p{.06\textwidth}}
\begin{tabular}{p{0.41\textwidth}p{.6\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
Pre-defined Commands
Some predefined commands can be used to change the font size of a LaTeX document locally.
LaTeX Font Size Commands
LaTeX commands for setting local font size:
- \Huge
- \huge
- \LARGE
- \Large
- \large
- \normalsize
- \small
- \footnotesize
- \scriptsize
- \tiny
These commands are used to specify the local font size with respect to the global default font size.
LaTeX Font Size Examples
article Font Size Typesetting Examples
article Default Font Size Typesetting Examples
Code
\newcommand\x{article}
\documentclass{\x}
\usepackage[paperwidth=9cm,paperheight=8.1cm,left=5px,top=5px,textwidth=11.5cm,textheight=8cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
article Font Size 12pt Typesetting Examples
Code
\newcommand\x{article}
\documentclass[12pt]{\x}
\usepackage[paperwidth=9.3cm,paperheight=9.5cm,left=5px,top=5px,textwidth=11.5cm,textheight=12cm]{geometry}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.25\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Font Size Typesetting Examples
beamer Default Font Size Typesetting Examples
Code
\newcommand\x{beamer}
\documentclass[handout]{\x}
\usepackage{pgfpages}
\paperwidth=10.3cm
\paperheight=8.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
\begin{tabular}{p{0.35\textwidth}p{.35\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
beamer Font Size 20pt Typesetting Examples
Code
\newcommand\x{beamer}
\documentclass[20pt,handout]{\x}
%\usepackage[scale=0.83]{beamerposter}
%\setlength{\paperwidth}{14.5cm}
%\setlength{\paperheight}{16cm}
\usepackage{pgfpages}
\paperwidth=13.6cm
\paperheight=15.5cm
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}\f@size\ pt\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt}
\vskip 0.5em
%\begin{tabular}{p{0.041\textwidth}p{.06\textwidth}}
\begin{tabular}{p{0.41\textwidth}p{.6\textwidth}}
\LaTeX\ command & font size \rs
\thefontsize{\Huge}
\thefontsize{\huge}
\thefontsize{\LARGE}
\thefontsize{\Large}
\thefontsize{\large}
\thefontsize{\normalsize}
\thefontsize{\small}
\thefontsize{\footnotesize}
\thefontsize{\scriptsize}
\thefontsize{\tiny}
\end{tabular}
\end{document}
Output
Packages for Additional Font Size Setting
For examples, extsizes, moresize, and anyfontsize.
Package anyfontsize
Package
anyfontsize provides a new LaTeX command to scale the font to the specified font size.
Command anyfontsize
\fontsize{<fontsize>}{<baselineskip>}\selectfont
Package anyfontsize Examples
Code
\newcommand\x{article}
\documentclass{\x}
\usepackage[margin=0.5in,paperwidth=10in,paperheight=13.9in]{geometry}
\usepackage{anyfontsize}
\makeatletter
\newcommand\thefontsize[1]{#1{{\textbackslash\texttt{\expandafter\@gobble\string#1}}}&{#1\f@size pt HHH\par\the\baselineskip}\rs}
\makeatother
\newcommand\rs{\\\hline\noalign{\vskip 0.2em}}
\newcommand\showfontsize[2]{\fontsize{#1}{#2}\selectfont\texttt{\expandafter\string\csname fontsize{#1}{#2}\endcsname} &{\fontsize{#1}{#2}\selectfont \csname f@size\endcsname pt HHH\par\the\baselineskip}\rs}
\begin{document}
documentclass: \x \\
global default font size: {\csname f@size\endcsname pt\the\baselineskip}
\vskip 0.5em
\begin{tabular}{p{0.75\textwidth}p{.001\textwidth}}
\LaTeX\ command & font size \rs
\showfontsize{50}{50}
\showfontsize{42}{50}
\showfontsize{36}{36}
\showfontsize{32}{36}
\thefontsize{\Huge}
\showfontsize{24.88}{30}
{\Huge \textbackslash normalsize: }\thefontsize{\normalsize}
{\Huge 10pt: }\showfontsize{10}{12}
{\Huge tiny: }\thefontsize{\tiny}
{\Huge 5pt: }\showfontsize{5}{6}
{\Huge 3pt: }\showfontsize{3}{6}
{\Huge 1pt: }\showfontsize{1}{6}
\end{tabular}
\end{document}
Output
Source and Reference