Changing Background Color Of Text In Latex
Answer : I know this question has been answered very extensively. But not what I wanted or thought was the question based on the title. Therefore if others get in here looking for a possibility for colouring behind a word than this snippet is much easier: \colorbox{blue!30}{blue} or \textcolor{blue!30}{blue} resulting in: This is possible by only adding \usepackage{xcolor} . Just some extra info :) Colour Several Lines It is correct that the above methods does not work for several lines, if you to be more than one line you can do: {\color{green} the text you want to write} This can however also be wrapped in a function so it is easier to use several places during edits, e.g., for colouring new text or whatever: \newcommand{\added}[1]{{\color{green}[added]:#1}} I prefer using tcolorbox thinking that in future you may want the background to be fashionable. I have given many options (which are not needed for this particular case) in the tcbset so that you can p...