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

learn more… | top users | synonyms

7
votes
1answer
52 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
42 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 ...
3
votes
1answer
51 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 ...
2
votes
1answer
25 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: ...
3
votes
3answers
89 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 ...
1
vote
1answer
54 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
30 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
75 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
96 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 ...
1
vote
1answer
98 views

Changing counters across and within sections

I am making a document with glosses (using package gb4e) and sections. The glosses correspond to certain numbers within certain chapters, but these chapters do not correspond to the sections I'm ...
6
votes
2answers
73 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
112 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
21 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 ...
9
votes
6answers
2k views

Labeling linguistic examples with language information

I'm writing a linguistics paper that uses a large amount of linguistic examples from a wide variety of languages, using the gb4e package. I want to be able to label each example with information about ...
6
votes
2answers
150 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
2answers
173 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; ...
10
votes
1answer
443 views

Movement arrow in gloss

Is it possible in gb4e to gloss an example AND have a movement arrow in the example. I'm currently using gb4e, and I want an arrow from 't' to 'een auto'. I already looked at other packages (xytree, ...
4
votes
2answers
151 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 ...
1
vote
0answers
38 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} ...
1
vote
1answer
66 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
51 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 ...
6
votes
1answer
4k views

Align the top of two tables horizontally (side-by-side with minipage)

I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
4
votes
2answers
328 views

How can I cross-reference cross-references with primes?

When I try to cross-reference with \ref to gb4e's cross-references with primes (\exp) I fail. Consider the following example: \documentclass{article} \usepackage{gb4e} \begin{document} ...
9
votes
1answer
993 views

Positioning of numbers in gb4e.sty examples

I'm planning to use the following numbered examples in a document (see example below). I would like the number to be at the top of the example, but for the ones with diagrams it ends up in the middle. ...
4
votes
2answers
358 views

How do I make gb4e.sty's commands overlay aware for beamer?

I use the gb4e package to set numbered examples. I want to put these on slides made with beamer. According to the beamer userguide I can make any command overlay specification aware using this in my ...
5
votes
1answer
283 views

Why is the gap between the translation and the last line of the gloss so wide in my interlinear gloss?

I notice if I take away some letters, the translation line goes to where it should be, but this big block of white space is pretty untenable. Ideas? \documentclass[11pt,a4paper]{book} ...
2
votes
1answer
39 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 ...
1
vote
1answer
63 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} ...
6
votes
1answer
85 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
333 views

Increase distance after examples created with gb4e

The package gb4e is used to create linguistic examples. I have noted, however, that the vertical space set before an exe environment in gb4e is larger than the space set after it. I don't really see ...
1
vote
1answer
143 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 ...
5
votes
1answer
79 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\\ ...
5
votes
1answer
210 views

Prevent page break after first line of example

I would like to find a way to prevent a page break between the first line of the example in following code. \documentclass{article} \usepackage{lipsum} \usepackage{gb4e} \begin{document} ...
2
votes
1answer
277 views

Restate linguistic example

I have made a numbered example with the package GB4E. I want to restate this example with the same number. I.e. istead of just refering to the example with \ref, i want the whole thing to show up ...
4
votes
1answer
183 views

Push table in a gb4e exe environment (almost?) to the margin

I use the package gb4e to number my (linguistic) examples in tabular format. In some of these tables, I add an extra letter counter to (some of) the rows. When there is a letter counter in the first ...
4
votes
2answers
280 views

How to format an arbitrary number of lines in interlinear text

I'm searching for packages for formatting interlinear text with an arbitrary number of lines. So far, it seems that the packages gb4e, covington, expex only format up to three aligned lines. ...
4
votes
1answer
352 views

How can I indent the second line of a linguistic gloss with gb4e.sty?

In accordance with the documentation, I've been happily plodding along making interlinear glosses. So far so good! But things get ugly when I make a longer gloss. Looking at example (5) on page (6) ...
1
vote
1answer
86 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 ...
3
votes
1answer
132 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 ...
2
votes
1answer
142 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 ...
4
votes
1answer
106 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). ...
3
votes
1answer
138 views

How can I solve this quotation problem with interlinear glosses in gb4e?

Observe how after the interlinear gloss I have to insert [''] -- otherwise, the quote continues (and in textmate4 the rest of the text is colored accordingly). Is there some way to resolve this ...
2
votes
1answer
162 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
165 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 ...
1
vote
1answer
91 views

gb4e breaks math subscripts in \caption

As @egreg notes in this answer to Can't compile XeLaTeX document with biblatex and gb4e together, the package gb4e makes _ and ^ active to be able to use subscripts and superscripts in ordinary ...
0
votes
1answer
90 views

Extra space between gloss and translations [duplicate]

In some examples in which I have an example (especially a multi-tier one) made in an example environment with gb4e, there's a huge gap between the the \glt line and the one directly above it. This ...
4
votes
1answer
71 views

How to maintain numbering and labels inside of a tabular

I'm using gb4e in order to number examples in my paper. I want to be able to number a tabular as an example, and then have each line of the tabular be a, b, c, etc. \documentclass{article} ...
3
votes
1answer
105 views

change gb4e enumeration in only one chapter

I am using gb4e for glossing examples in my thesis. I would like to set the example number back to zero for an appendix. I assume some variation of Alan Munn's solution at gb4e enumeration format ...
5
votes
2answers
233 views

Align glosses in more than one language with gb4e

I'm using the package gb4e to gloss my linguistic examples. It nicely aligns the words in the original language with its glosses. But this alignment does not extend beyond the first line of glosses. ...
4
votes
1answer
158 views

gb4e example with two-paragraphed footnote throws error

gb4e is a useful package for writing linguistics papers, as it allows one to append judgments to examples, via the optional argument of \ex{}. As such, I would like to retain the use of this package, ...