所有现有浮动元素的背景颜色(documentclass revtex 和 aastex)

所有现有浮动元素的背景颜色(documentclass revtex 和 aastex)

这个问题是

我希望能批量给所有浮动添加背景颜色,而不改变这些已有浮动的内容,这段代码在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}

相关内容