![如何获得正确的并排语言示例?](https://linux22.com/image/475536/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%BE%97%E6%AD%A3%E7%A1%AE%E7%9A%84%E5%B9%B6%E6%8E%92%E8%AF%AD%E8%A8%80%E7%A4%BA%E4%BE%8B%EF%BC%9F.png)
我正在尝试使用包 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}