Changing Font Style in LaTeX

1
9

In LaTeX, there is a wide choice of formatting is available for a font style. Within each typeface or font family, there are usually several different looks to the text used in a document. Following are the type settings you can use in the LaTeX environment.

Type style Command Output
Bold \textbf{Changing Font Style in LaTeX} \textbf{Changing Font Style in LaTeX}
Italic \textit{Changing Font Style in LaTeX} \textit{Changing Font Style in LaTeX}
Slanted \textsl{Changing Font Style in LaTeX} \textsl{Changing Font Style in LaTeX}
Small Capital \textsc{Changing Font Style in LaTeX} \textsc{Changing Font Style in LaTeX}
Typewriter type \texttt{Changing Font Style in LaTeX} \texttt{Changing Font Style in LaTeX}
Emphazise \emph{Changing Font Style in LaTeX} \emph{Changing Font Style in LaTeX}
Underline \underline{Changing Font Style in LaTeX} \underline{Changing Font Style in LaTeX}

Example

\textit{The woods are lovely dark and deep. But \textbf{I have promises to keep, And miles to go before I sleep, And miles to go before I sleep.}} - \underline{Robert Frost}

\textit{The woods are lovely dark and deep. But \textbf{I have promises to keep, And miles to go before I sleep, And miles to go before I sleep.}} - \underline{Robert Frost}

Leave your queries in comment section below.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here