\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.NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p