如何水平居中所有条目。具体来说,让左侧的标签居中

如何水平居中所有条目。具体来说,让左侧的标签居中

我不知道如何在这里将其显示为乳胶。如果有人能帮我编辑它,那就太好了。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[thinlines]{easytable}
\usepackage{mathtools}

...

\begin{tabular}{cccc}
& Front & Right & Up \\[0.25cm]
\phi_{cube}(F) & \begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 2 & 3  \\  1 &    & 3  \\  1 & 2 & 3 \end{TAB} &
\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB} & 
\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB} \\[0.25cm]
\phi_{cube}(FR)& \begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB} &  
\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB} &  
\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}  \\[0.25cm]
\phi_{cube}(FRU^-1) & \begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB} & 
\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB} &
\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}& \
\end{tabular}

\end{document}

答案1

根据您想要水平和垂直居中第一列内容的假设,这里有两个不同的建议:

在此处输入图片描述

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[thinlines]{easytable}
\usepackage{mathtools}

%%% added: 
\usepackage{adjustbox} % used in the first example only

\usepackage{array} % used in the second example only
\usepackage[column=0]{cellspace} % used in the second example only
\setlength{\cellspacetoplimit}{1.25\tabcolsep} % used in the second example only
\setlength{\cellspacebottomlimit}{\cellspacetoplimit} % used in the second example only
\begin{document}


horizontally and vertically centered using easytab and adjustbox:

\begin{tabular}{cccc}
& Front & Right & Up \\[0.25cm]
\(\phi_{cube}(F)\)
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 2 & 3    \\  1 &    & 3   \\  1 & 2  & 3  \end{TAB}}
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}} 
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}} \\[1.5cm]
\(\phi_{cube}(FR)\)
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}} 
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}} 
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}}  \\[1.5cm]
\(\phi_{cube}(FRU^{-1})\) 
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}} 
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}} 
  & \adjustbox{valign=c}{\begin{TAB}(e,0.75cm,0.75cm){|c|c|c|}{|c|c|c|} 1 & 10 & 14  \\  2 &    & 15  \\  3 & 11 & 16 \end{TAB}}
\end{tabular}

\bigskip
\bigskip

horizontally and vertically centered using tabular, cellspace and array:


\begin{tabular}{cccc}
& Front & Right & Up \\[0.25cm]
\(\phi_{cube}(F)\)
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 2  & 3  \\ \hline 1 &     & 3  \\ \hline  1 & 2  &  3 \\ \hline \end{tabular} 
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14 \\ \hline 2 &     & 15 \\ \hline  3 & 11 & 16 \\ \hline \end{tabular} 
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14 \\ \hline 2 &     & 15 \\ \hline  3 & 11 & 16 \\ \hline \end{tabular} \\[1.5cm]
\(\phi_{cube}(FR)\)
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14  \\ \hline 2 &    & 15  \\ \hline 3 & 11 & 16 \\ \hline \end{tabular}
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14  \\ \hline 2 &    & 15  \\ \hline 3 & 11 & 16 \\ \hline \end{tabular}
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14  \\ \hline 2 &    & 15  \\ \hline 3 & 11 & 16 \\ \hline \end{tabular} \\[1.5cm]
\(\phi_{cube}(FRU^{-1})\) 
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14  \\ \hline 2 &    & 15  \\ \hline 3 & 11 & 16 \\ \hline \end{tabular}  
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14  \\ \hline 2 &    & 15  \\ \hline 3 & 11 & 16 \\ \hline \end{tabular}  
  & \begin{tabular}{|*{3}{0{wc{0.35cm}}|}} \hline 1 & 10 & 14  \\ \hline 2 &    & 15  \\ \hline 3 & 11 & 16 \\ \hline \end{tabular} 
\end{tabular}



\end{document}

相关内容