2

Is it possible to customize the height of the highlighting with the soul package?

\documentclass{article}
\usepackage{soul}
\usepackage{xcolor}
\begin{document}
 \hl{game}
\end{document}

I would like to reduce a bit the height of the highlighting both from the top and from the bottom, is it possible?

4
\documentclass{article}
\usepackage{soul}
\usepackage{xcolor}

\makeatletter
 \def\SOUL@hlpreamble{%
 \setul{}{2ex}%         !!!change this value!!! default is 2.5ex
 \let\SOUL@stcolor\SOUL@hlcolor
 \SOUL@stpreamble
 }
\makeatother

\begin{document}
 \hl{(after) game}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.