\colorbox{}{}
but this only appears on paper/pdf. Is there a native way to do this Lyx so that I can see the highlighted portion on-screen and not have to use an ERT for latex output.Any answers????
Thanks in advance,
Rahul
\colorbox{}{}
but this only appears on paper/pdf. Is there a native way to do this Lyx so that I can see the highlighted portion on-screen and not have to use an ERT for latex output.You're half-way there already with knowing how to use \colorbox. I don't know if you consider this solution "native" to LyX (LaTeX is really doing the rendering) but it should do what you want.rahul24 wrote:I want to highlight small portions of text (like 2-3 key words or a perhaps sentence (inline in a paragraph or standard environment)) in Lyx so that the highlight is visible on-screen. For the latex output I simply use \colorbox{}{} but this only appears on paper/pdf. Is there a native way to do this Lyx so that I can see the highlighted portion on-screen and not have to use an ERT for latex output.
Any answers????
Glad to hear that it's at least a bearable solution!rahul24 wrote:Thanks for the solution. Its a bit convoluted but does the job!!!!!
\colorbox
is not a great solution since it interferes greatly with text boxes and above all line heights. There is a better solution:\usepackage{soul}
\hl{highlighted text}