I am writing my PhD in Linguistics and I have a lot of examples extracted from the data. I'm using gb4e
for numbered examples and glossing. A standard example looks like this:
\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}
However as I have multiple lines from the transcripts and wanted them to line up, I tried to put them in a tabular environment. This seems to work fine for one example, but when I have 2 next to each other, the \hspace
line is all messed up and breaks into multiple places. The example number also somehow got moved to the middle, rather than at the beginning of the example as in the standard example above. Could someone familiar with the package help me with:
- getting the
\hspace
line in the right place, and - get the example number back to where it should be (as in the standard example)?
\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}
gb4e
to do things it's not quite set up to do, but this may be just because I'm not sure what you're doing. Could you post an image of the suggested format you're looking for (perhaps an example from a journal?).\begin{tabular}[t]{ll}
. But the reason I'm asking the more general question is that there may be better ways to achieve the output you want.