ExPeX 与 Tabular 结合的问题

ExPeX 与 Tabular 结合的问题

我需要制作行间注释表。我已经成功实现了这一点,但结果很糟糕。我特别遇到两个问题:

  1. 三个单元格的基线不对齐。
  2. 表格未与页面左边缘对齐。

梅威瑟:

%XeLaTeX
\documentclass[11pt]{scrbook}

\usepackage[
    paperwidth=8in,
    paperheight=10in,
    inner=0.5in,
    outer=0.5in,
    bindingoffset=0.25in,
    top=0.75in,
    bottom=0.75in,
    twoside,
    showframe
    ]{geometry}

\usepackage{scrlayer-scrpage} 
\usepackage{microtype}
\usepackage{booktabs,multirow,graphicx,adjustbox,makecell} 

\usepackage{polyglossia}
    \setdefaultlanguage{english}
    \setotherlanguage{hebrew}
    \newfontfamily\hebrewfont[Script=Hebrew]{Linux Libertine O}
    \newfontfamily\englishfont[Ligatures=NoCommon]{Linux Libertine O}
            
\usepackage{expex}

\makeatletter
\define@lingincdimenkeys{numoffset,textoffset,numvoffset}

\lingset{
    everygla=\LARGE, 
    everyglb=\footnotesize\englishfont,
    everyglc=\footnotesize\englishfont,
    everyglft=\footnotesize\englishfont,
    glwordalign=center,
    glhangindent=0em,
    glrightskip=0pt,
    glhangstyle=none,
    numvoffset=.3ex,   
    aboveglbskip=-0.7ex,
    aboveglcskip=-0.7ex
}

\begin{document}

\begin{tabular}{|p{.1\textwidth}|p{.2\textwidth}|p{.6\textwidth}|}
\multicolumn{3}{c}{\begin{LARGE}\texthebrew{א־ב־ד}\end{LARGE}} \\
\hline
\parbox[t]{.1\textwidth}{
\smallskip Adjective%
} 
&
\parbox[t]{.2\textwidth}{
\begin{hebrew}\begingl
\gla אבוד //
\glb avud //
\glc lost //
\endgl\end{hebrew}%
} 
&
\parbox[t]{.6\textwidth}{
\begin{hebrew}\begingl
\gla הקורס הזה קשה, אני אבודה לגמרי. //
\glb hakurs haze kasha ani avuda legamre //
\glc \textenglish{the course} \textenglish{the this} difficult I lost completely //
\glft \textenglish{This course is difficult, I am completely lost.} //
\endgl\end{hebrew}%
} \\
\hline
\end{tabular}

\end{document}

在此处输入图片描述

答案1

更新

(1)\noindent开头的 A 处理左侧不需要的空格。

(2) 希伯来文行错位是由 Lamed 的上升部引起的。\parbox[b] 对所有三个单元格使用相同的设置可使所有基线对齐。

(3)不需要使用 p 列。使用 \begin{tabular}{|c|c|c|}

% !TeX TS-program = xelatex 

\documentclass[11pt]{scrbook}

\usepackage[
paperwidth=8in,
paperheight=10in,
inner=0.5in,
outer=0.5in,
bindingoffset=0.25in,
top=0.75in,
bottom=0.75in,
twoside,
showframe
]{geometry}

\usepackage{scrlayer-scrpage} 
\usepackage{microtype}
\usepackage{booktabs,multirow,graphicx,adjustbox,makecell} 

\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{Linux Libertine O}
\newfontfamily\englishfont[Ligatures=NoCommon]{Linux Libertine O}
    
\usepackage{expex}

\makeatletter
\define@lingincdimenkeys{numoffset,textoffset,numvoffset}
\makeatother

\lingset{
    everygla=\LARGE, 
    everyglb=\footnotesize\englishfont,
    everyglc=\footnotesize\englishfont,
    everyglft=\footnotesize\englishfont,
    glwordalign=center,
    glhangindent=0em,
    glrightskip=0pt,
    glhangstyle=none,
    numvoffset=.3ex,   
    aboveglbskip=-0.7ex,
    aboveglcskip=-0.7ex
}

\begin{document}
    
\noindent   \begin{tabular}{|c|c|c|} % changed<<<<<<<
    \multicolumn{3}{c}{\begin{LARGE}\texthebrew{א־ב־ד} \end{LARGE}} \\
    \hline
    \parbox[b]{.1\textwidth}{% % changed <<<<<<<   parbox bottom aligned
        \begin{english}
            \begingl[everygla=\normalsize] 
            \gla Adjective //
            \endgl
        \end{english}%
    }
    &
    \parbox[b]{.2\textwidth}{% changed <<<<<<<   parbox bottom aligned
        \begin{hebrew}
            \begingl
            \gla אבוד //
            \glb avud //
            \glc lost //
            \endgl
        \end{hebrew}%
    } 
    &
    \parbox[b]{.6\textwidth}{% changed <<<<<<<   parbox bottom aligned
        \begin{hebrew}
            \begingl
            \gla  הקורס הזה קשה, אני אבודה לגמרי. //
            \glb hakurs haze kasha ani avuda legamre //
            \glc \textenglish{the course} \textenglish{the this} difficult I lost completely //
            \glft \textenglish{This course is difficult, I am completely lost.} //
            \endgl
        \end{hebrew}%
    } 
    \\
    \hline
\end{tabular}


\end{document}

是

相关内容