Responsive Navbar with Google Search
☰ Menu
Home
Python
LaTeX
GNUPlot
Arduino
Feedback
Contact Us
Fonts and Size: Font Types
Fonts and Size
Font Types
Font Sizes
Font Types: Program 1
\documentclass{article} \begin {document} \section{Font emphasize} bold: \textbf{Einstein} \\ upright :\textup{Nikola Tesla}\\ italic: \textit{C.V. Raman} \\ Bold Italic: \textbf{\emph{bold italic text}} \\ Underline: \underline{underline text} \\ Small caps: \textsc{small caps text} \\ Monospaced: \texttt{monospaced text} \\ Sans serif: \textsf{sans serif text} \\ Superscript: \textsuperscript{superscript} \\ slanted :\textsl{Maxwell} \\ small capitals: \textsc{Newton}\\ medium font: \textmd{Dirac}\\ typewriter text: \texttt{J.J. Thomson} \section{Font family} \textrm{Roman family}\\ \textsf{Sans serif}\\ \sffamily{another way to change font family to sans serif}\\ \textnormal{normal document font} \end{document}
Run Code
Output 1