有人知道表格是否具有任何属性,我们可以调整各个列的宽度吗?
我特别想减少箭头周围的空间以及左侧文本周围的空间。我本质上是在尝试减少整个表格的宽度而不改变表格的大小。我理想情况下想要一个不涉及创建任何新命令的解决方案,并希望有一种简单的方法可以做到这一点。
我也知道我制作箭的方式不是最有效的,但我想让箭比给定的更长一点。所以如果有人也有一个简单的解决方案,那就太棒了。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[thinlines]{easytable}
\usepackage{mathtools}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{graphicx}
\usepackage{enumerate}
\usepackage{permute}
\usepackage{xparse}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage[hmargin = 1.25 in, bmargin=1 in]{geometry}
\begin{document}
\centering
\begin{tabular}{rccccccc}
& Text && Text && Text && Text \\[0.25cm]
\begin{tabular}{c} TextText \\ Text: \end{tabular}
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} \\[1.5cm]
\begin{tabular}{c} TextText \\ Text: \end{tabular}
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.7cm,0.7cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} \\[1.5cm]
\end{tabular}
\end{document}
答案1
环境TAB
由包提供easytable
。从其文档在 中\begin{TAB}(e,0.7cm,0.7cm)
,每个单元格的最小 x 和 y 尺寸均设置为0.7cm
。
因此,使用较小的尺寸是可行的,例如0.5cm
:
\documentclass{article}
\usepackage{amsmath}
\usepackage[thinlines]{easytable}
\usepackage{adjustbox}
\begin{document}
\setlength{\tabcolsep}{3pt}
\centering
\begin{tabular}{rccccccc}
& Text && Text && Text && Text \\[0.25cm]
\begin{tabular}{c} TextText \\ Text: \end{tabular}
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} \\[1.5cm]
\begin{tabular}{c} TextText \\ Text: \end{tabular}
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} & \(\xrightarrow[\phantom{Spa}]{Text}\)
& \adjustbox{valign=c}{\begin{TAB}(e,0.5cm,0.5cm){|c|c|c|}{|c|c|c|} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{TAB}} \\[1.5cm]
\end{tabular}
\end{document}
请注意,\setlength{\tabcolsep}{3pt}
用于减少环境中的列分隔,即环境和/或箭头tabular
周围的分隔。TAB