I am writing a template for my lecture notes and I wanted to have a different color as my highlighted text.
\usepackage{soul}
\usepackage[dvipsnames]{xcolor}
\definecolor{delectricblue}{RGB}{93, 117, 131}
\newcommand{\hldb}[1]{\sethlcolor{delectricblue!30}\hl{#1}}
But the code doesn't look correctly as if there's a bug or sth. if I don't use the !30 part. the code highlights everything, otherwise it only highlights white spaces. What should I do?



\documentclassand ends with\end{document}. – Jasper Habicht Sep 26 '22 at 23:06