GB4E formatting for Linguistics examples

by teadrinker64   Last Updated August 13, 2019 23:23 PM

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: a) getting the \hspace line in the right place, and b) get the example number back to where it should be (as in the standard example)?

Thank you very much.

\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}
Tags : numbering gb4e


Related Questions


Disable \resetcounteronoverlays for single frames

Updated March 07, 2018 13:23 PM

gb4e roman enumeration format

Updated June 04, 2019 15:23 PM


gb4e examples numbering in chapters and footnotes

Updated June 15, 2017 14:23 PM

Changing counters across and within sections

Updated June 15, 2017 21:23 PM