Questions tagged [gb4e]
{gb4e} is a package for formatting numbered examples as used in linguistics.
196
questions
16
votes
6
answers
10k
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 ...
12
votes
2
answers
3k
views
Movement arrow in gloss
This question led to a new package:
movement-arrows
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 ...
11
votes
1
answer
13k
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 ...
11
votes
1
answer
5k
views
gb4e + biblatex error "patching footnotes failed"
I'm having a problem while using gb4e and biblatex in the same file. It does compile, but I get an "patching footnotes failed" warning.
Minimal example:
\documentclass[11pt,a4paper]{article}
\...
10
votes
1
answer
1k
views
Can't compile XeLaTeX document with biblatex and gb4e together
The following document will not compile (using xelatex, biber) if the package gb4e is activated. If you comment out the gb4e package it works fine:
\documentclass{article}
\usepackage{fontspec}
\...
10
votes
1
answer
920
views
Cleveref range format for gb4e “(1a-c)"
I managed to get cross-referencing with cleveref to examples in the format "examples (1a-1c)" using
\crefrangeformat{xnumi}{examples~(#3#1#4--#5#2#6)}
but how can I get "examples (1a-c)"?
I found ...
10
votes
1
answer
2k
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 ...
9
votes
4
answers
2k
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. ...
9
votes
1
answer
2k
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 ...
9
votes
2
answers
336
views
While using package gb4e all the dental marks in IPA go berserk
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tipa}
\usepackage{gb4e}
\usepackage{nomencl}
\begin{document}
\begin{exe}
\ex
\gll \noautomath \textipa{\|[to} pani pito\\
ram.3P....
9
votes
2
answers
2k
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; ...
9
votes
1
answer
2k
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. ...
8
votes
2
answers
2k
views
Adjusting the gb4e {exe} environment locally
In my thesis I make extensive use of the exe environment of the gb4epackage and I love it. However, three of my approximately 100 examples need to have an alternative layout. Instead of the usual ...
8
votes
2
answers
555
views
Incompatibility between siunitx and gb4e
It looks like the siunitx package and the gb4e package are in conflict.
More specifically, the following code would not run:
\documentclass[11pt]{article}
\usepackage{gb4e}
\def\fg{}
\usepackage{...
8
votes
1
answer
3k
views
gb4e package causing capacity errors
I was using this:
http://www.essex.ac.uk/linguistics/external/clmt/latex4ling/examples/gb4e/
To try and create numbered examples in my document.
However, when I load it and put the example exe in ...
8
votes
2
answers
660
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 ...
7
votes
2
answers
916
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}
\begin{exe}...
7
votes
2
answers
977
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 ...
6
votes
2
answers
824
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 ...
6
votes
2
answers
1k
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 ...
6
votes
1
answer
315
views
Tikz-dependency and gb4e Alignment Issues
I am using tikz-dependency and gb4e inside one example. I want them to be centered, but I could not managed to do so. Here's my self advancement:
\documentclass{article}
\usepackage[utf8]{inputenc}
\...
6
votes
1
answer
366
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, ...
6
votes
1
answer
1k
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}
\lipsum[3-...
5
votes
2
answers
1k
views
Splitting examples in gb4e
I would like to split examples in the \usepackage{gb4e} to get explanatory remarks as close to the explained item as possible. Usually, my typeset examples are looking like this:
(1) blabla
(2) a. ...
5
votes
1
answer
590
views
Example number from bottom to top of a Tree in Forest
After a recent update from MacTex 2015 to 2016, the forest package also updates, which caused problems for an existing tree had. The problem concerns the example number the gb4e package creates. ...
5
votes
1
answer
1k
views
gb4e enumeration format
I am using gb4e for glossing examples in my thesis. I want to have the enumeration in such a format that the chapter number precedes the enumeration of samples, such as Example (1.2) which refers to ...
5
votes
1
answer
1k
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}
\setcounter{...
5
votes
1
answer
2k
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 ...
5
votes
1
answer
261
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
1
answer
1k
views
gb4e examples numbering in chapters and footnotes
I am using the package gb4e for managing linguistics examples. I want two things:
The examples should be numbered according to the chapter in which they appear, e.g. the first example of ch. 2 should ...
5
votes
1
answer
1k
views
Automatic parentheses around example numbers
As things work by default in LaTeX, references to example numbers with \ref simply print the number of the example, with no additional formatting. However, almost all of the time in the papers I write,...
5
votes
1
answer
1k
views
Example using gb4e without gloss line
Using gb4e I can leave off the free translation line of a three-line format, but is there a way to leave off the gloss line? I am using examples from linguists who gave only the source language and ...
5
votes
1
answer
981
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 ...
5
votes
2
answers
412
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 ...
5
votes
1
answer
903
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 ...
5
votes
1
answer
29
views
Using gb4e with amsbook class
I am required to use amsbook for a project, but I find that it messed up the alignment of interlinear glosses with the gb4e package.
Here's my code:
\documentclass{amsbook}
\usepackage{gb4e}
\begin{...
5
votes
3
answers
457
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 ...
5
votes
1
answer
253
views
Conflict between listings and gb4e?
this code doesn't compile for me. Could it be a bug or is something wrong with my LaTex installation?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{gb4e}
\usepackage{listings}
\begin{...
4
votes
2
answers
4k
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, say,...
4
votes
2
answers
404
views
Mis-aligned free translations in gb4e
When there is an example with a number more than three digits, the free translation line is too far to the left in gb4e examples.
\documentclass{article}
\usepackage{gb4e,cgloss4e}
\begin{document}
...
4
votes
2
answers
730
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 \underline{...
4
votes
1
answer
1k
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
1
answer
515
views
How to use gb4e to produce glossed example with bracket?
I would like to use the package gb4e to produce glossed example with bracket, but I don't know which part is incorrect.
\begin{exe}
\ex
\gll \lb{ }Zhangsan zhidao \lb{ } Lisi taoyan ziji. ]]\\
...
4
votes
1
answer
289
views
tufte-book and gb4e and footnotes / sidenotes
When using the tufte-book class (and other tufte classes, I imagine), footnotes / sidenotes seem to break the instant you load the gb4e package.
This compiles correctly, and displays a sidenote as ...
4
votes
2
answers
214
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
\documentclass{article}...
4
votes
1
answer
189
views
Cyrillic Italicization error for Times New Roman font from times package
I have problem with italicization using \let\eachwordone=\it for Times New Roman font from \usepackage{times}. Here is my tex document:
\documentclass[10pt]{article}
\ExpandArgs{c}\newcommand{new@...
4
votes
2
answers
363
views
How to colour text inside aligned gb4e gloss examples?
I am using the package gb4e to gloss a number of linguistic examples. Its main feature, is that it aligns the words in the original language with glosses.
I would like to be able to change the font/...
4
votes
1
answer
671
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\\
...
4
votes
1
answer
3k
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 ...
4
votes
1
answer
1k
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 ...