我正在尝试使用包 expex 并排创建两个语言学示例。对于 B 示例,我不知道如何让“re”出现在第一行,而它一直出现在第三行。有人能告诉我如何调整 B 示例中“re”的位置吗?以下是代码:
\documentclass[12pt]{article}
\usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
%packages for examples
\usepackage{expex}
\lingset{
aboveglftskip = -.05cm,
aboveexskip = 2 pt,
belowexskip = 2 pt,
belowpreambleskip = 0 pt,
extraglskip = 0 pt,
everygla=,
interpartskip= 0 pt
% numoffset=\parindent
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\ex[glhangstyle=none, glwidth=2.5in]<@period>
\begin{minipage}[t]{0.4\linewidth} % Adjusted width
A: \quad
\begingl
\gla BJ jintian you 35-du.//
\glb BJ today have 35-$^\circ C$//
\glft `It's $35^\circ C$ in BJ today.'//
\endgl
\end{minipage}%
\begin{minipage}[t]{0.4\linewidth} % Adjusted width
B: \quad
\begingl
\gla bu, BJ jintian bi \textbf{35-du} \nogloss{*(} @ \textbf{hai}) re.//
\glb NEG BJ today BI 35-$^\circ C$ even hot//
\glft `No, BJ is hotter than $35^\circ C$ today.'//
\endgl
\end{minipage}
\xe
\end{document}
答案1
您需要将设置glwidth
为\textwidth
,然后相应地调整的大小minipages
。
\documentclass[12pt]{article}
\usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
%packages for examples
\usepackage{expex}
\lingset{
aboveglftskip = -.05cm,
aboveexskip = 2 pt,
belowexskip = 2 pt,
belowpreambleskip = 0 pt,
extraglskip = 0 pt,
everygla=,
interpartskip= 0 pt
% numoffset=\parindent
}
\usepackage[T1]{fontenc}
\begin{document}
\ex[glhangstyle=none, glwidth=\textwidth]<@period>
\begin{minipage}[t]{0.4\linewidth} % Adjusted width
A: \quad
\begingl
\gla BJ jintian you 35-du.//
\glb BJ today have 35-$^\circ C$//
\glft `It's $35^\circ C$ in BJ today.'//
\endgl
\end{minipage}%
\begin{minipage}[t]{0.45\linewidth} % Adjusted width
B: \quad
\begingl
\gla bu, BJ jintian bi \textbf{35-du} \nogloss{*(} @ \textbf{hai}) re.//
\glb NEG BJ today BI 35-$^\circ C$ even hot//
\glft `No, BJ is hotter than $35^\circ C$ today.'//
\endgl
\end{minipage}
\xe
\end{document}