\documentclass[12pt,twoside]{report}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{tikz}
\usetikzlibrary{matrix,shadings,arrows,decorations.markings,decorations.pathmorphing}
\tikzset{
table/.style={
matrix of nodes,
row sep=-\pgflinewidth,
column sep=-\pgflinewidth,
nodes={
rectangle,
draw=black,
align=center,
},
rows /. style={nodes={fill=gray!10, text=black}}
}
}
\begin{document}
Hello World...
\begin{table}
\centering
\begin{tikzpicture}
\matrix[table, ampersand replacement=\&] (TabA1)
{
A1 \& A2 \\
B1 \& B2 \\
};
\end{tikzpicture}
\caption{Glossary}
\label{tabA1}
\end{table}
\end{document}
我试过这个:rows /. style={nodes={fill=gray!10, text=black}}
intikzset
但是不起作用。我也试过 in nodesfill=gray!10
但是这也不起作用?
我无法相信没有像
row 1 /. style={nodes={fill=gray!10, text=black}}
但是对于所有行或者所有节点来说?!?!