TeX - LaTeX Asked on September 2, 2021
I’m currently writing a text in the new ACM Master Article Template. I have a colour-coded table looking like this:
documentclass[a4paper,12pt]{article}
usepackage[table,xcdraw]{xcolor}
begin{document}
begin{table}[]
begin{tabular}{|c|c|c|c|c|}
hline
& A & B & C & D hline
E & cellcolor[HTML]{67FD9A}1 & cellcolor[HTML]{67FD9A}2 & cellcolor[HTML]{67FD9A}3 & cellcolor[HTML]{67FD9A}4 hline
F & cellcolor[HTML]{67FD9A}5 & cellcolor[HTML]{FD6864}6 & cellcolor[HTML]{FD6864}7 & cellcolor[HTML]{FFCCC9}8 hline
G & cellcolor[HTML]{67FD9A}9 & cellcolor[HTML]{F8FF00}10 & cellcolor[HTML]{F8FF00}11 & cellcolor[HTML]{FCFF2F}12 hline
end{tabular}
end{table}
end{document}
I created this example using the Tables generator but unfortunately it makes use of the ‘xcolor’ package, which I’m not allowed to use with this template. The list of whitelisted packages can be found here.
My question is: How can I create a colour-coded table as above using only the whitelisted packages? I would like to be able to specify the colours in HTML format to make use of the colours coming from the ColorBrewer tool.
Thank you very much!
I contacted the ACM Latex support team and learnt that colouring tables is possible by adding the following command right before the "documentclass" statement:
PassOptionsToPackage{table,xcdraw}{xcolor}
Answered by Hagbard on September 2, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP