latex italicized code example Example 1: latex italic text \textit{text} Example 2: latex italic \emph{accident}