![所有现有浮动元素的背景颜色(documentclass revtex 和 aastex)](https://linux22.com/image/444380/%E6%89%80%E6%9C%89%E7%8E%B0%E6%9C%89%E6%B5%AE%E5%8A%A8%E5%85%83%E7%B4%A0%E7%9A%84%E8%83%8C%E6%99%AF%E9%A2%9C%E8%89%B2%EF%BC%88documentclass%20revtex%20%E5%92%8C%20aastex%EF%BC%89.png)
这个问题是这。
我希望能批量给所有浮动添加背景颜色,而不改变这些已有浮动的内容,这段代码在documentclass为article和amsart时可以正常使用,但是当documentclass为revtex和aastex时就会出现问题,请问该如何解决?
revtex4-1 的示例
\documentclass[english,aps,prl,amsmath,amssymb,reprint,superscriptaddress]{revtex4-1}
\usepackage{xcolor}
\usepackage{lipsum}
\begin{document}
\begin{table}
\begin{ruledtabular}
\caption{\label{tab1}test test test test test test test test test test test test test test test testtest test test test test test test test }
\begin{tabular}{cc}
Model & $\triangle\gamma$ \tabularnewline
\hline
ATI & 21.4, 21.6 , 23.8 \tabularnewline
UBB & 31.5 \tabularnewline
UBB & 31.5 \tabularnewline
\end{tabular}
\end{ruledtabular}
\end{table}
\lipsum
\end{document}
aastex 的示例
\documentclass{aastex63}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
header0 & $\begin{tabular}{@{}c@{}}header1\\ text after linebreak\end{tabular}$ & header2 \\
\midrule
0 & 1 & 2 \\
\bottomrule
\end{tabular}
\end{document}