logo

LaTeX에서 문자, 수식에 하이라이트(형광펜)하는 법 📂Writing

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}