gb4e 注释中带下划线的单词未垂直对齐

gb4e 注释中带下划线的单词未垂直对齐

我正在注释我的语言示例,gb4e但在对齐方面遇到了一些问题。我正在使用的语言在正字法中使用下划线,而我的论文关注的词素需要下划线 g... 唉。

当我尝试添加下划线G变成一条光泽线,其中包含G它的行距与行上其他单词的行距不同,这使得它看起来非常不合适(特别是如果我有三条注释行,其中两行包含G)。这几乎影响了我的所有示例。有没有办法强制使用特定的行距来标记注释部分,而不会受到带有降部字符的下划线的影响?

这是一个例子。

\documentclass{article}

\usepackage{gb4e}
\newcommand{\Gitg}{\underline{g}}

\begin{document}
\begin{exe}
\ex \glll   Guhu'mhl wan \Gitg ant John.\\
            guxw-'m=hl wan  \Gitg an=t John\\
            shoot-1pl.ii=det deer GAN=det John\\
    \glt    \emph{John and I shot the deer.}
\end{exe}
\end{document}

理想情况下,解决方案应与兼容,cgloss因为我也将其用于\hfill右对齐引用。使用cgloss对此问题没有影响。

答案1

有两种方法:

\documentclass{article}

\usepackage{gb4e}

% Solution 1: expand the interline space in \glll
\usepackage{etoolbox}
\patchcmd{\glll}{\threesent}{\linespread{1.2}\threesent}{}{}
\newcommand{\Gitg}{\underline{g}}

% Solution 2: smash the underline
%\newcommand{\Gitg}{\leavevmode\smash{\underline{g}}\vphantom{g}}

\begin{document}

\begin{exe}
\ex \glll   Guhu'mhl wan \Gitg ant John.\\
            guxw-'m=hl wan  \Gitg an=t John\\
            shoot-1pl.ii=det deer GAN=det John\\
    \glt    \emph{John and I shot the deer.}\\
            \emph{John and I shot the deer.}
\end{exe}
\end{document}

正如您所注意到的,使用破坏下划线的解决方案可能会使线条相互碰撞。 稍微增加行间跳跃量后,这种情况就不会发生。

我添加了第二条\glt线来表明放大仅限于线条\glll

在此处输入图片描述

相关内容