如何制作凯莱表?

如何制作凯莱表?

我正在尝试制作一个凯莱表,如下图所示http://dogschool.tripod.com/cayley.html

因此这个问题没有帮助制作形状奇特的桌子

答案1

也许您需要的是一个示例代码:

\documentclass[12pt,a4paper]{article}

\usepackage{array}
\usepackage{booktabs}


\begin{document}

\begin{table}
\centering
\caption{Your caption here}\label{tab:yourlabel}
\begin{tabular}{l|lll}
\toprule
\textbf{Hola1} & \textbf{Hola2} & \textbf{Hola3}\\
\midrule
datum1 & datum2 &datum3 &etc\\
datum4 & datum5 &datum6 &etc\\
%\midrule
datum7 & datum8 &datum9 &etc\\
\bottomrule
\end{tabular}
\end{table}

\begin{table}
\centering
\caption{Your caption here}\label{tab:yourlabel}
\begin{tabular}{l|lll}
\toprule
\textbf{Hola1} & \textbf{Hola2} & \textbf{Hola3}\\
\hline
datum1 & datum2 &datum3 &etc\\
datum4 & datum5 &datum6 &etc\\
%\midrule
datum7 & datum8 &datum9 &etc\\
\bottomrule
\end{tabular}
\end{table}


\begin{table}
\centering
\caption{Your caption here}\label{tab:yourlabel}
\begin{tabular}{l|lll}
\textbf{Hola1} & \textbf{Hola2} & \textbf{Hola3}\\
\hline
datum1 & datum2 &datum3 &etc\\
datum4 & datum5 &datum6 &etc\\
%\midrule
datum7 & datum8 &datum9 &etc\\
\end{tabular}
\end{table}


\begin{table}
\centering
    \begin{tabular}{|r|r|r|}
    \hline
    1 & 2 & 3\\
    \hline
    4 & 5 & 6\\
    \hline
    \end{tabular}
\end{table}

\end{document}

结果是:

在此处输入图片描述

相关内容