[LaTeX] [ACM] [colortbl] [xcolor] 解决 xcolor 包或者 colortbl 包不在 ACM 模版的白名单之中

Background

本来想在论文里用colortbl或者xcolor包来给表格上色,可是我发现 ACM 在官网提供了一个包的使用白名单,说只能使用白名单上列出来的包,而二者皆不在白名单之中。

Solution

长话短说,在\documentclass前面新加这个语句:\PassOptionsToPackage,如下所示:

\PassOptionsToPackage{table,xcdraw}{xcolor}\documentclass[acmsmall, screen=true]{acmart}

Reference

  1. Hagbard. (March 14, 2020). Coloured tables in ACM Master Article Template. Retrieved from https://tex.stackexchange.com/questions/496128/coloured-tables-in-acm-master-article-template
发布了40 篇原创文章 · 获赞 84 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/xovee/article/details/104869614