How to Highlight (with a Marker) Text and Equations in LaTeX
Using the soul
package and the \hl
command, it is possible to highlight texts, equations, and more. In this case, the xcolor
package must also be loaded for the highlight color to appear. Applying this to display mode can be somewhat complex. Refer to the following code:
\documentclass{article}
\usepackage{xcolor}
\usepackage{soul}
\begin{document}
\hl{asdfasdf} \\
\begin{center}
\hl{$\displaystyle \int\limits_{-\infty}^{\infty} f(x) e^{-i\xi x} dx$}
\end{center}
\end{document}