我们使用了具有不同规则粗细和颜色的不同跨度线,当我们在同一行中使用多条跨度线时,规则无法使用禁忌正确对齐。
我们知道禁忌目前没有维护,有什么可能的解决方案来解决这个问题?
我的 MWE 文件:
\documentclass{book}
\usepackage{ragged2e}
\usepackage{Tabu}
\newcolumntype{L}[1]{>{\RaggedRight\arraybackslash\hspace{0pt}}p{#1}}%\PBS
\newcolumntype{C}[1]{>{\Centering\arraybackslash\hspace{0pt}}p{#1}}%\PBS
\newcolumntype{R}[1]{>{\RaggedLeft\arraybackslash\hspace{0pt}}p{#1}}%\PBS
\newtabulinestyle{TabuSolidOne=1pt}
\def\TabuDotted{\hbox{$\scriptstyle.$}}
\def\TabuStar{\hbox{$\scriptstyle\star$}}
\begin{document}
\begin{table}[!h]
\caption{Star, Asterisk, Bullet, Double Line, Dotted, Dashed, and Solid}{\begin{tabu}{L{80pt}C{60pt}C{49pt}C{49pt}C{90pt}}
\tabucline{-}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline{1-1}\tabucline{2-2}\tabucline{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline[TabuSolidOne]{1-1}\tabucline[TabuSolidOne]{2-2}\tabucline[TabuSolidOne]{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline[\TabuDotted]{1-1}\tabucline[\TabuDotted]{2-2}\tabucline[\TabuDotted]{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline[\TabuStar]{1-1}\tabucline[\TabuStar]{2-2}\tabucline[\TabuStar]{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline{-}
\end{tabu}}
\end{table}
\begin{table}[!h]
\caption{Star, Asterisk, Bullet, Double Line, Dotted, Dashed, and Solid}{\tabulinesep4pt\begin{tabu}{L{80pt}C{60pt}C{49pt}C{49pt}C{90pt}}
\tabucline{-}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline{1-1}\tabucline{2-2}\tabucline{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline[TabuSolidOne]{1-1}\tabucline[TabuSolidOne]{2-2}\tabucline[TabuSolidOne]{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline[\TabuDotted]{1-1}\tabucline[\TabuDotted]{2-2}\tabucline[\TabuDotted]{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline[\TabuStar]{1-1}\tabucline[\TabuStar]{2-2}\tabucline[\TabuStar]{4-4}
\multicolumn{1}{C{80pt}}{ Period} & 6 months & 1 year & 18 months & 2 years\\
\tabucline{-}
\end{tabu}}
\end{table}
\end{document}