我希望两列都沿着 对齐\dots
。我不清楚siunitx
基于 的解决方案是否适合此处。
%XeLaTeX
\documentclass[11pt]{scrbook}
\usepackage{libertine}
\usepackage{microtype}
\usepackage{booktabs}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{Linux Libertine O}
\newfontfamily\englishfont[Ligatures=NoCommon]{Linux Libertine O}
\begin{document}
\begin{tabular}{lr} \toprule
\multicolumn{2}{c}{Table Title} \\
\midrule
e/a\dots{} & \begin{Large}\texthebrew{א\dots}\end{Large}\\
t\dots{} & \begin{Large}\texthebrew{ת\dots}\end{Large} \\
t\dots{} & \begin{Large}\texthebrew{ת\dots{}י}\end{Large} \\
y\dots{} & \begin{Large}\texthebrew{י\dots{}}\end{Large} \\
t\dots{} & \begin{Large}\texthebrew{ת\dots{}}\end{Large} \\
\cmidrule(lr){1-2}
n\dots{} & \begin{Large}\texthebrew{נ\dots{}}\end{Large} \\
t\dots{}u & \begin{Large}\texthebrew{ת\dots{}ו}\end{Large} \\
y\dots{}u & \begin{Large}\texthebrew{י\dots{}ו}\end{Large} \\
\bottomrule
\end{tabular}
\end{document}
答案1
您可以从 2 列布局切换到 4 列布局。可以将第 1 列和第 2 列之间以及第 3 列和第 4 列之间的分隔符设置为@{\dots}
。(如果array
已加载包,@{\dots}
则表示“将正常的列间空白替换为\dots
”。)接下来,将第 1 列和第 3 列右对齐,将第 2 列和第 4 列左对齐。最后,将>{\Large}
前缀指令添加到第 3 列和第 4 列。
% !TEX TS-program = xelatex
\documentclass[11pt]{scrbook}
\usepackage{array} % <-- new
\usepackage{libertine}
\usepackage{microtype}
\usepackage{booktabs}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{Linux Libertine O}
\newfontfamily\englishfont[Ligatures=NoCommon]{Linux Libertine O}
\begin{document}
\noindent
\begin{tabular}{@{} r @{\dots} l @{\qquad}
>{\Large}r @{\dots} >{\Large}l @{}}
\toprule
\multicolumn{4}{c}{Table Title} \\
\midrule
e/a& & &\texthebrew{א} \\
t& & &\texthebrew{ת} \\
t& & \texthebrew{י} &\texthebrew{ת} \\
y& & &\texthebrew{י} \\
t& & &\texthebrew{ת} \\
\midrule
n& & &\texthebrew{נ} \\
t&u & \texthebrew{ו} &\texthebrew{ת}\\
y&u & \texthebrew{ו} &\texthebrew{י}\\
\bottomrule
\end{tabular}
\end{document}