font size latex code example
Example 1: latex text size
\Huge
\huge
\LARGE
\Large
\large
\normalsize
\small
\footnotesize
\scriptsize
\tiny
Example 2: latex font sizes
\Huge
\huge
\LARGE
\Large
\large
\normalsize (default)
\small
\footnotesize
\scriptsize
\tiny
Example 3: latex font sizes
Change global font size:
\documentclass[12pt]{report}
Example 4: latex default font size
\documentclass[12pt]{book}
Example 5: latex change size of text
%Article
\documentclass[9pt]{extarticle}
%Report
\documentclass[14pt]{extreport}
Example 6: font size table latex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{table}
\resizebox{\textwidth}{!}{%
\begin{tabular}{cc}
Knuth & Lamport
\end{tabular}}
\end{table}
\end{document}