언어적 예를 위한 gb4e 형식화

언어적 예를 위한 gb4e 형식화

저는 언어학 박사 학위를 쓰고 있는데 데이터에서 추출한 많은 예가 있습니다. 나는 gb4e번호가 매겨진 예제와 광택을 위해 사용하고 있습니다. 표준 예는 다음과 같습니다.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{gb4e}

\begin{document}
\begin{exe} 
\ex
\gll Reece\textsubscript{1}: this is an example \emph{trên} Internet, \\
\hspace{0cm} \hspace{0cm} \hspace{0cm} \hspace{0cm} \hspace{0cm} on \\
\glt \hspace{1cm} ‘This is an example on the internet’ \\
\hspace*{\fill} (SpeakerA.SpeakerB.0906, 0:37.6 - 0:42.8) 
\label{ex:internet}
\end{exe}
\end{document}

하지만 녹취록에 여러 줄이 있고 이를 일렬로 나열하기를 원했기 때문에 표 형식 환경에 넣으려고 했습니다. 한 가지 예에서는 이것이 잘 작동하는 것처럼 보이지만 2개가 나란히 있으면 선이 \hspace모두 엉망이 되어 여러 위치로 나누어집니다. 예제 번호도 위의 표준 예제처럼 예제의 시작 부분이 아닌 중간으로 이동되었습니다. 패키지에 익숙한 사람이 다음 작업에 도움을 줄 수 있습니까?

  1. \hspace올바른 위치에 줄을 세우고 ,
  2. 예제 번호를 원래 위치로 되돌리시겠습니까(표준 예제에서와 같이)?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{gb4e}

\begin{document}
\begin{exe} 
\ex
\begin{tabular}{l l}
   John\textsubscript{2}:  & $\emptyset$ you want to go to the zoo or Questacon? \\
                            & zoo see the animals. \\
\end{tabular}
\hspace*{\fill} (John.Mary.0709, 09:20.1 - 9:30.5) 
\label{ex:aux}
\end{exe}

\begin{exe} 
\ex
\begin{tabular}{l l}
   Mary\textsubscript{2}:  & you $\emptyset$ going there for nothing, \\
                            & because he is a man. \\
    Rosie\textsubscript{1}:   & He $\emptyset$ not giving standard.\\

\end{tabular}

\hspace*{\fill} (Mary.Rosie.0102, 2:12.3 - 3:32.1) 
\label{ex:aux4}
\end{exe}
\end{document}

답변1

이것이 당신이 원하는 것인지는 잘 모르겠지만 단어별로 예를 설명하는 것이 아니기 때문에 단어 세트를 그룹화하면 {...}를 사용할 필요 없이 정렬됩니다 tabular. 매크로 gb4e는 기본적으로 최대 3개의 정렬된 줄을 허용합니다. \gll두 줄을 제공합니다. \glll세 줄을 제공합니다. 줄 을 맞추려고 해서는 안 됩니다 \glt. 그건 그런 목적이 아닙니다. 더 많은 줄을 얻으려면 여기에 표시된 기술을 사용할 수 있습니다.gb4e를 사용하여 두 개 이상의 언어로 된 용어집 정렬추가 줄(또는 원칙적으로 그 이상)을 추가합니다. 그러나 라인이 더 많으면 ExPex가 더 나을 수도 있습니다.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{gb4e}
\newcommand\sub{\textsubscript}

\begin{document}
\begin{exe} 
\ex
\glll {Reece\sub{1}:} {this is an example} {\emph{trên} Internet,} \\
 {} {} on {}\\
 {} {‘This is an example} {on the internet’}\\

\hfill (SpeakerA.SpeakerB.0906, 0:37.6 - 0:42.8) 
\label{ex:internet}
\end{exe}

\begin{exe} 
\ex
\gll John\sub{2}:  {$\emptyset$ you want to go to the zoo or Questacon?} \\
   {} {zoo see the animals.} \\

\hfill(John.Mary.0709, 09:20.1 - 9:30.5) 
\label{ex:aux}
\end{exe}

\begin{exe} 
\ex
\glll
   {Mary\sub{2}:}  {you $\emptyset$ going there for nothing,} \\
        {}           {because he is a man. }\\
    {Rosie\sub{1}:}   {He $\emptyset$ not giving standard.}\\

\hfill (Mary.Rosie.0102, 2:12.3 - 3:32.1) 
\label{ex:aux4}
\end{exe}
\end{document}

코드 출력

관련 정보