Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[twoside]{book}
- usepackage{tikz}
- %%table
- usetikzlibrary{matrix}
- tikzset{
- table/.style={
- matrix of nodes,
- row sep=-pgflinewidth,
- column sep=-pgflinewidth,
- nodes={
- rectangle,
- draw=gray!50,
- align=center
- },
- minimum height=1.5em,
- text depth=0.5ex,
- text height=2ex,
- nodes in empty cells,
- %%
- every odd row/.style={
- nodes={fill=gray!05}
- },
- column 1/.style={
- nodes={text width=5em,font=bfseries}
- },
- row 1/.style={
- nodes={
- fill=gray!25,
- text=black,
- text height=2.5ex,
- font=bfseries, purple!75!black
- }
- }
- }
- }
- begin{document}
- begin{tikzpicture}
- matrix[table,text width=12em]
- {
- first & 2nd column & 3rd column\
- &A & B \
- & C & D \
- };
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement