2

I want to highlight my title with a certain color. My title is long and it lays in 3 lines. How can I create a colorbox for the title? \title{My Desired Title} conflicts with the command \hl.

  • Welcome to TeX.SE! Could you please provide a complete but minimal example which reproduces your problem? – CarLaTeX Jun 7 '19 at 6:59
2

Try

\documentclass[12pt]{article}
    \usepackage[a4paper]{geometry}
    \usepackage{color,graphicx,soul,lipsum}
\begin{document}
\title{\hl{Long Long Long Title  Long Long Long 
Title Long Long Long Title Long Long Long Title 
Long Long Long Title}}
\maketitle
\end{document} 

Giving you a title that is highlighted on several lines. Maybe I misunderstood your problem?

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.