Sideway
output.to from Sideway
Draft for Information Only

Content

 LaTeX Font Family
  LaTeX Font Typeface
   LaTeX Default Font Family
    Default Font Family Example
   Computer Modern Typefaces
    Computer Modern Family Example
 LaTeX Common Font Families
  Computer Modern Roman cmm Examples
   Computer Modern Roman cmm OT1 Example
   Computer Modern Roman cmm T1 Example
  Computer Modern Sans cmss Examples
   Computer Modern Sans cmss OT1 Example
   Computer Modern Sans cmss T1 Example
  Computer Modern Typewriter cmtt Examples
   Computer Modern Typewriter cmtt T1 Example
  Computer Modern Italic cmm Example
   Computer Modern Italic cmm OML Example
  Computer Modern Symbols cmsy Example
   Computer Modern Symbols cmsy OMS Example
  Computer Modern Extensions cmex Example
   Computer Modern Extensions cmex OMX Example
  Adobe Times ptm Example
   Adobe Times ptm T1 Example
  Adobe Helvetica phv Example
   Adobe Helvetica phv T1 Example
  Adobe Courier pcr Example
   Adobe Courier pcr T1 Example
 Common Font Code
 Source and Reference

LaTeX Font Family

LaTeX Font Typeface

There are many typefaces, or font families can be used for typsetting document. These typefaces can be grouped into serif, sans serif, and monspaced.

LaTeX Default Font Family

Computer Modern typeface family, designed by Donald Knuth, is the default font used by $\(\LaTeX\)$ for typesetting document.And the default font family is Computer Modern Roman (serif type). The others are Computer Modern Sans Serif (sans serif type),  and Computer Modern Typewriter (monospaced type).
Default Font Family Example
Code
\documentclass[border=5pt,varwidth]{standalone}
\def\arraystretch{1.3}
\newcommand\resetfont[2]{
\renewcommand{\familydefault}{\rmdefault}\normalfont\underline{#2;\ Font Code: #1}\\
\renewcommand{\familydefault}{#1}\normalfont
\sample\\
}
\makeatletter
\newcommand\thefontsize{
The current font identifier is: \fontname\font \\
The current font size is: \f@size pt\\}
\makeatother
\newcommand\sample{\normalfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ\ \~{}!@\#\$\%\^{}\&*()\_+\\
abcdefghijklmnopqrstuvwxyz 0123456789\ \`{}-=\{\}\textbar[]\textbackslash:";'\textless\textgreater?,./
}
\begin{document}
\begin{tabular}{|l|c|c|}
\hline
Font Detail &Font Package&Font Code\\ 
\hline
Computer Modern Roman (Default) & Pre-Loaded & \familydefault \\
\hline
Computer Modern Sans Serif & Pre-Loaded & \sfdefault \\
\hline
Computer Modern Typewriter & Pre-Loaded & \ttdefault \\
\hline
\end{tabular}
\\\\
\thefontsize
\\\resetfont{\fontname\font}{Computer Modern Roman (Default)}
\\\resetfont{\rmdefault}{Computer Modern Roman}
\\\resetfont{\sfdefault}{Computer Modern Sans Serif}
\\\resetfont{\ttdefault}{Computer Modern Typewriter}

\end{document}
Output
image

Computer Modern Typefaces

Besides the standard Computer Modern typerfaces, more font typefaces are pre-loaded from Computer Modern typeface family, for example, Computer Modern Dunhill Roman, Computer Modern Roman Fibonacci, Computer Modern Sans Serif Quotation, Computer Modern Teletype Quotation, and Computer Modern Typewriter Proportional.
Font CodeDescription cmrComputer Modern roman cmdhComputer Modern Dunhill Roman cmfibComputer Modern Roman Fibonacci cmssComputer Modern Sans Serif lcmssCommputer Modern Sans Quotation cmttComputer Modern Typewriter lcmttComputer Modern Teletype Quotation cmvttComputer Modern Typewriter Proportional
Computer Modern Family Example
Code
\documentclass[border=5pt,varwidth]{standalone}
\newcommand\resetfont[2]{
\renewcommand{\familydefault}{\rmdefault}\normalfont\underline{\it #2;\ Font Code: {\bf#1}}\\
\renewcommand{\familydefault}{#1}\normalfont
\sample\\
}
\newcommand\sample{\normalfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ\ \~{}!@\#\$\%\^{}\&*()\_+\\
abcdefghijklmnopqrstuvwxyz 0123456789\ \`{}-=\{\}\textbar[]\textbackslash:";'\textless\textgreater?,./
}
\begin{document}
\linespread{0.6}
{\bf Pre-loaded Computer Modern Family:}\\\\
\resetfont{cmr}{Computer Modern Roman}\par
\resetfont{cmdh}{Computer Modern Dunhill Roman}\par
\resetfont{cmfib}{Computer Modern Roman Fibonacci}\par
\resetfont{cmss}{Computer Modern Sans Serif}\par
\resetfont{lcmss}{Computer Modern Sans Serif Quotation}\par
\resetfont{cmtt}{Computer Modern Typewriter}\par
\resetfont{lcmtt}{Computer Modern Teletype Quotation}\par
\resetfont{cmvtt}{Computer Modern Typewriter Proportional}

\end{document}
Output
image

LaTeX Common Font Families

The most common font families are:
Font CodeDescription cmrComputer Modern Roman cmssComputer Modern Sans cmttComputer Modern Typewriter cmmComputer Modern Italic cmsyComputer Modern Symbols cmexComputer Modern Extensions ptmAdobe Times phvAdobe Helvetica pcrAdobe Courier

Computer Modern Roman cmm Examples

Computer Modern Roman cmm OT1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=10cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=12cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{OT1}
\newcommand\family{cmr}
\begin{document}
\positiontextbox{1.5pt}{20.5pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Roman cmm T1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=18.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=12cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{T1}
\newcommand\family{cmr}
\begin{document}
\positiontextbox{7pt}{21.5pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Sans cmss Examples

Computer Modern Sans cmss OT1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=10cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=12cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{OT1}
\newcommand\family{cmss}
\begin{document}
\positiontextbox{-2pt}{20.5pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Sans cmss T1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=18.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=12cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{T1}
\newcommand\family{cmss}
\begin{document}
\positiontextbox{4pt}{21.5pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Typewriter cmtt Examples

Computer Modern Typewriter cmtt T1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=18.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=12cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{T1}
\newcommand\family{cmtt}
\begin{document}
\positiontextbox{6pt}{20.5pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Italic cmm Example

Computer Modern Italic cmm OML Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=10cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=12cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{OML}
\newcommand\family{cmm}
\begin{document}
\positiontextbox{-4pt}{21pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Symbols cmsy Example

Computer Modern Symbols cmsy OMS Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=10.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=11cm,textheight=19cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{OMS}
\newcommand\family{cmsy}
\begin{document}
\positiontextbox{-4pt}{26pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Computer Modern Extensions cmex Example

Computer Modern Extensions cmex OMX Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=20.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=11cm,textheight=21cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{OMX}
\newcommand\family{cmex}
\begin{document}
\positiontextbox{-4pt}{26pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Adobe Times ptm Example

Adobe Times ptm T1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=18.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=11cm,textheight=21cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{T1}
\newcommand\family{ptm}
\begin{document}
\positiontextbox{6pt}{21pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Adobe Helvetica phv Example

Adobe Helvetica phv T1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=18.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=11cm,textheight=21cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{T1}
\newcommand\family{phv}
\begin{document}
\positiontextbox{8pt}{21pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Adobe Courier pcr Example

Adobe Courier pcr T1 Example

Code
\documentclass{article}
\usepackage[paperwidth=13cm,paperheight=18.5cm]{geometry}
\geometry{left=5mm,top=-5mm,textwidth=11cm,textheight=21cm}
\usepackage{fonttable}
\usepackage{tikz}
\usetikzlibrary{calc}
\thispagestyle{empty}
\newcommand{\positiontextbox}[4][]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=5pt,right, fill=orange,#1] at ($(current page.north west) + (#2,-#3)$) {#4};
  \end{tikzpicture}%
}
\newcommand\code{T1}
\newcommand\family{pcr}
\begin{document}
\positiontextbox{9pt}{21pt}{\family\ \code}
\xfonttable{\code}{\family}{m}{n}
\end{document}
Output
image

Common Font Code

Font CodePackageDescription cmrpreloadedComputer Modern Roman cmsspreloadedComputer Modern Sans Serif cmttpreloadedComputer Modern Typewriter cmdhpreloadedComputer Modern Dunhill Roman cmfibpreloadedComputer Modern Roman Fibonacci lcmsspreloadedCommputer Modern Sans Quotation lcmttpreloadedComputer Modern Teletype Quotation cmvttpreloadedComputer Modern Typewriter Proportional cmmpreloadedComputer Modern Italic cmsypreloadedComputer Modern Symbols cmexpreloadedComputer Modern Extensions lmrlmodernLatin Modern Roman lmdhlmodernLatin Modern Dunhill lmsslmodernLatin Modern Sans Serif lmttlmodernLatin Modern Sans Typewriter ptmmathptmxTimes pututopia/fourierUtopia/Fourier pplpalatinoPalatino pbkbookmanBookman phyhelvetHelvetica pcrcourierCourier ptmpreloadedAdobe Times phvpreloadedAdobe Helvetica pcrpreloadedAdobe Courier bchcharterCharter qtmtgtermes$\(\TeX\)$ Gyre Termes qpltgpagella$\(\TeX\)$ Gyre Pagella qbktgbonum$\(\TeX\)$ Gyre Bonum qcstqschola$\(\TeX\)$ Gyre Schola qagtgadventor$\(\TeX\)$ Gyre Adventor qhvtgheros$\(\TeX\)$ Gyre Heros qcrtgcursor$\(\TeX\)$ Gyre Cursor NotoSans-TLF NotoSans-TLF pag Avant Grade fvs Bitstream Vera Sans ccr Concrete fi4 Inconsolata pnc New Century Schoolbook uncl Uncial put Utopia pzc Zapf Chancery  

Source and Reference


©sideway

ID: 220500003 Last Updated: 5/3/2022 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019