Graphics, Figures & Tables ⇒ Colorbox with HTML problem
Colorbox with HTML problem
[HTML]\colorbox{red}{Submit}[/HTML] and
\colorbox[HTML]{00FF00}{Submit}
and their variations but nothing seems to work. I always get a control sequence error.
Any ideas guys? Thanks in advance.
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
Re: Colorbox with HTML problem
\usepackage{xcolor}
Next, it should work just to write:
\colorbox{red}{Submit}
I’m not sure what you’re doing with the “HTML” there. Do you mean to use the HTML color model for hexcodes? If so, the following works for me (assuming xcolor is loaded):
\colorbox[HTML]{FF0000}{Submit}