{gb4e} is a package for formatting numbered examples as used in linguistics.

learn more… | top users | synonyms

0
votes
0answers
25 views

gb4e: overwrite italics in first line

Dear Stackexchange community, For my dissertation I use gb4e for my examples. To get the first line in italics, I use the following code: \let\eachwordone=\itshape In some examples, however, I ...
3
votes
1answer
33 views

gb4e: phantom, spacing

In order to provide my interlinear examples with a preamble line providing context, I use \pream and \pglt from gb4e: remove extra space below preamble/header lines. This works perfectly fine, unless ...
3
votes
1answer
35 views

breaking line in gb4e [duplicate]

I use gb4e for my linguistic examples. When the example is long, gb4e breaks it into two lines (of the first and second, glossing, lines). However, I sometimes want to break it at a certain point. How ...
2
votes
1answer
43 views

left-edge vertical alignment in gb4e

I use gb4e for formatting linguistic examples. I came to an example in which I want to show that one translation is correct and another reading is not allowed. I'd like to indicate that the second ...
2
votes
2answers
32 views

Indentation and lacking space when using gb4e with minipages

The normal behavior of a gb4e example environment is seen in (1) in the MWE below. But when I want two examples side by side, using minipage, the example is indented, and there is no space before or ...
1
vote
0answers
34 views

Aligning gb4e examples in multicols

For reasons of space I am trying to put pairs of correct and pairs of wrong examples next to each other in multicols environment. However, no matter what I do, they never align correctly. I tried ...
8
votes
1answer
182 views

Interlinear glosses with overlaps, line numbers, and speaker labels

I am trying to come up with a way to represent linguistic examples of naturally occurring dialog. I have not used LaTeX for linguistic glossing yet so I could need some help what package(s) would be ...
2
votes
1answer
37 views

\raggedright in glosses and switching back to normal alignment

I have to typeset long examples. Sometimes they span several lines. I would like to have them \raggedrightbut this should not affect the translation. The code for the glossed example taken from ...
2
votes
2answers
49 views

gb4e glosses are not aligned properly

I am attempting a simple gloss (with translation) using the gb4e package. The relevant code is as follows (2 issues): \begin{exe} \ex\label{myexample6} \gll \textit{Mieleeni tulu er\"{a}s ...
1
vote
0answers
31 views

Increase space between lines of glossed text, gb4e

I'm using gb4e in report class. I'd like to format the glossed examples created using gb4e. There are three lines in my glossed example: The original text and the gloss, which are presented in one ...
3
votes
1answer
36 views

Is it possible to insert a non-aligned line in gb4e?

I'm using gb4e for my linguistics examples. Is there any way to have one line that is not vertically aligned before the \gll or \glll line? I'd like to write a line of phonetic transcription (i.e. ...
3
votes
1answer
53 views

widen space between words in gb4e

I use the gb4e package for writing linguistics examples. A MWE is something like the following: \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex \gll aaaaa bbbbbb cccc\\ ...
1
vote
0answers
29 views

Italic page numbers using gb4e

A while I asked multiple questions regarding the construction of a quotation environment that - among others - is automatically indenting when exceeding a certain number of lines and that is ...
4
votes
1answer
79 views

Multiline/language linguistic glosses

I'm trying to typeset a linguistic gloss with at least two languages in it, although I'd like to add more. Unfortunately, it seems that the gb4e package doesn't support more gloss lines. I've ...
2
votes
1answer
64 views

gb4e roman enumeration format

I'm using gb4e package to enumerate examples in a paper, but in the footnotes I need no enumerate with roman numbers in small letters (i.a), (ii.b), etc. not in small capitals (I.a), (II.a), etc. I ...
1
vote
1answer
70 views

gb4e tabbing problem

I am using gb4e to align examples. But when elements within [] are complex, sentences cannot be aligned. For example, in the picture attached, two 'which' are not aligned. How can I align sentences ...
2
votes
1answer
26 views

Trouble with using pinyin and gb4e

I'm trying to use gb4e and pinyin package for putting pinyin in my linguistics examples. However I have a bunch of weird errors which would go away if I comment out using pinyin. Maybe \ex is causing ...
1
vote
1answer
70 views

Control gb4e's font family selection

In beamer, the default font is sans serif. But gb4e will override this default and select a serif font for both the line to be glossed (introduced with \gll) and the glosses. Only the translation line ...
2
votes
1answer
46 views

How to gloss lines in a dialogue in one example using gb4e?

It should look like this: and this does not work: \begin{exe} \ex\label{tomatoes} \gll Abe: Tomaten sind Obst.\\ {} tomatoes are fruit\\ Briselotta: Are you kidding me?\\ \gll Abe: Nein, natürlich ...
3
votes
2answers
157 views

Changing the number of a sentence in a linguistics example

I'm using the gb4e package for examples in syntax. As an example: \begin{exe} \ex It is scary PRO to be near dogs. \end{exe} It shows up as sentence 1 in the PDF automatically. How do I make it, ...
0
votes
0answers
13 views

gb4e: How to reference examples of \exp{}? [duplicate]

In gb4e package you can nicely and easily get examples by using \begin{exe} \ex asdf \label{a} \ex \begin{xlist} \ex jklm \label{b} \end{xlist} \end{exe} Then you can label and reference ...
7
votes
1answer
211 views

gb4e: remove extra space below preamble/header lines

I'm writing my PhD thesis on linguistics using gb4e. In a number of cases I want to add a preamble line to an interlinear example and in some other cases I need a tabbing environment embedded within ...
4
votes
2answers
62 views

Problem with gb4e and macro for tabular with curly brackets

When using the macro \CurlyBrackets at the beginning of a gb4e example, the example is not typeset as expected. Is there a better way to do this to get the desired output? MWE ...
2
votes
1answer
41 views

Double bar delimiter broken by gb4e package

I was trying to utilize the double bar delimiters \| and \|. The output should be of the form ||P||, but with the gb4e package only a single vertical bar gets printed. How can I fix this? MWE: ...
1
vote
1answer
72 views

gb4e: Highlighting examples

In a presentation of a colleague I saw that his examples were displayed in a filled grey square (he used powerpoint). This impressed me, because it highlighted the examples in a subtle and modest way. ...
2
votes
1answer
102 views

Changing example numbering with gb4e

I want to change the default behavior of gb4e for a small portion of the text. I have a series of modifications of an example that I want to be labelled as if they were subexamples. For example: ...
6
votes
2answers
170 views

Extra spacing before and after gb4e examples

I am using the gb4e package. When I have a list of examples, there is a large skip after the prose and before the first enumerated item. I do not want that skip there; instead, I want there to be ...
2
votes
1answer
178 views

XeLaTeX - gb4e example numbering in footnotes - Interaction with polyglossia package?

I thought the gb4e package for linguistic example typesetting would provide automatic switching of the numbering scheme between main text examples and examples in footnotes. This is not the behavior I ...
6
votes
2answers
121 views

Use monospaced numbers in gb4e's example number, but proportional elsewhere

I'm using proportional numbers in my document. But in gb4e's example numbers, I would like to have monospaced numbers, so that the width of the example parenthesis remains the same throughout my ...
4
votes
1answer
222 views

Margins and positioning with tikz-dependency

I am using gb4e and tikz-dependency simultaneously to demonstrate dependency examples with my glossed sentences. But if my example sentence is too long, it doesn't get split across lines and just goes ...
1
vote
1answer
33 views

gb4e: use of hash sign in front of semantically incorrect examples

I am working on a linguistic thesis and use the gb4e package to number my examples. I have been taught that semantically incorrect examples should be marked by a hash sign in front of them, so I am ...
3
votes
1answer
113 views

Cannot compile glosses using gb4e package

I'm trying to add glosses to my paper using TexMaker, MikTex and the gb4e package. But every time I hit compile it takes forever until it finally spits out an error (basically saying that it took too ...
7
votes
2answers
238 views

gb4e: vertical alignment when using brackets

\documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex \gll m-itoetra \lb{PP, ADJC}amin' ilay trano mena] izahay. \\ \textsc{pres-}live \qquad \qquad in that house ...
4
votes
3answers
118 views

Linguistics: what are the best packages to use create bracketed structures with movement lines?

I've been working with gb4e to manage numbered examples for a long time, but I was wondering it was possible to incorporate movement lines, or if I should use some other package. More concretely, I ...
3
votes
1answer
82 views

Vertical top align gloss with \gll from gb4e in tabular

I looked through the questions but couldn't find someone with the same problem. \documentclass[12pt,a5paper]{book} \usepackage{gb4e} \usepackage{tabularx} \begin{document} ...
5
votes
2answers
188 views

How to use \underline and \emph over several words with gb4e?

How can I underline several words in a gloss without messing up the alignment? Here is an MWE. \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex[*]{\gll Me ...
2
votes
1answer
89 views

gb4e: A package specific \ref{}-definition

I use \usepackage{gb4e} to reference and to contiuously number my linguistic examples. It works like this: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{gb4e} \begin{document} ...
2
votes
1answer
197 views

Typesetting Japanese in LaTeX errors because of gb4e

I'm trying to include Japanese and English text in the bibliography of LaTeX document while also using the package gb4eand no matter what Japanese text I input it comes out in the pdf as ...
1
vote
1answer
114 views

Problem with gb4e's spacing when using datatool

Say that I have a .csv file with sentences in IPA, their glosses, and their translations that I want to incorporate into a document. However, using datatool to loop over the .csv doesn't work with ...
2
votes
1answer
94 views

Automatically enclose \glt line from gb4e in \enquote{}

How can I automatically enclose the \glt (\trans) line in gb4e's interlinear glosses in context-aware quotation marks with \enquote{} from csquotes? \documentclass{article} ...
3
votes
1answer
220 views

using gb4e keeping interlinear glosses together on the same page

I am using gb4e for several hundred interlinear glosses in my dissertation. Several of the examples span more than one page, that is, the vernacular and gloss will be on one page, while the free ...
4
votes
1answer
65 views

Conflict between gb4e and standalone

Using an \exe environment in a document with the class ‘standalone’ is problematic for me. Here’s a MWE: \documentclass[12pt]{standalone} \usepackage{gb4e} \begin{document} \begin{exe} \ex ...
3
votes
1answer
70 views

gb4e center example text

I'm writing an article with several short example sentences. The document as a whole would look better if my example sentences were horizontally centered rather than left-aligned. Of course, I still ...
7
votes
1answer
159 views

Eliminate distance from phantom node in forest

Ignasi's answer to Forest trees on the same line shows how to effectively draw two trees in the same forest environment using the phantom trick noted in the forest documentation. Doing this, however, ...
2
votes
1answer
246 views

gb4e item numbers with tikz-qtree trees

I am using gb4e for numbered examples in my dissertation, since most of my examples are interlinear glosses. I am also including syntax trees, using tikz-qtree. One problem, though, is how to keep ...
5
votes
1answer
94 views

Remove parenthesis (and add period) from gb4e examples

I'm using the gb4e package to number my linguistic examples, cf. the example below. \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex \gll Dies ist ein Beispiel\\ ...
4
votes
1answer
124 views

How to bold (\textbf) an entire example in gb4e?

I am presenting linguistic examples using gb4e. For one example, I would like to make the entire example bold, either the source utterance or the entire thing (including gloss and free translation). ...
2
votes
1answer
256 views

Set more than one font feature in gb4e

I'm trying to get in gb4e glosses the first line to be in bold roman font but I can only set roman or bold, not both. How can I set both? The document is a beamer presentation with a sans serif font ...
4
votes
1answer
256 views

gb4e leaves extra space before translation

gb4e leaves extra (unwanted) blank line space between gloss and translation. Same problem as here: Why is the gap between the translation and the last line of the gloss so wide in my interlinear ...
6
votes
2answers
295 views

Unnumbered linguistic examples with glosses

I want to have an unnumbered and unindented linguistic example with glossing and free translation. In other words, I want what \exg. produces in linguex, but without the numbering and the indentation; ...