In order to provide my interlinear examples with a preamble line providing context, I use \pream
and \pglt
from gb4e: remove extra space below preamble/header lines.
This works perfectly fine, unless I want to include acceptability judgments. Obviously, I cannot use the inherent judgment function of gb4e
, as this would put the judgment before the context and not before the first line. As a workaround, I thought of putting the judgment in the first line of the example itself and use {}
in the second line for an empty morpheme gloss. However, this gives a weird spacing in the translation line, even with \hphantom
. Does anyone have a solution to this problem?
\documentclass{scrbook}
\usepackage{gb4e}
\usepackage{lipsum}
\newcommand{\pream}[1]{#1:\\[-4.5ex]} % for preamble lines, supplies a colon and removes some vertical space
\newcommand{\pglt}{\vspace*{-2ex}\glt} % for use in examples that have a preamble
\begin{document}
The judgement function of gb4e does not yield an acceptable result with $\backslash$ pream:
\begin{exe}
\ex[\#]{\pream{Context: Somebody has arrived late.}
\gll Ich bin schon da\\
I am already there\\
\pglt \lq I am here already.'}
\end{exe}
Putting the judgement in the example line yields unacceptable spacing in the gloss line, even with $\backslash$ hphantom:
\begin{exe}
\ex \pream{Context: Somebody has arrived late.}
\gll \# Ich bin schon da\\
{} I am already there\\
\pglt \lq I am here already.'
\ex \pream{Context: Somebody has arrived late.}
\gll \# Ich bin schon da\\
{} I am already there\\
\pglt \hphantom{\#} \lq I am here already.'
\end{exe}
\end{document}