Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [gb4e]

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

Filter by
Sorted by
Tagged with
5 votes
1 answer
24 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{...
user avatar
1 vote
1 answer
50 views

custom \xlist environment for simplistic speaker labels in gb4e

this is my first post to tex stack exchange so I apologise if the post is missing required information. I'm using gb4e to produce linguistic examples for my dissertation, and I'm trying to find the ...
user avatar
2 votes
1 answer
25 views

Turn on double spacing between gb4e lines

I need to set double spacing between the lines of linguistic examples. The command \doublespacing works for the regular paragraphs, but not inside exe environments. Below, I give a MWE. \documentclass{...
user avatar
0 votes
1 answer
41 views

Numbers appearing below figures when using gb4e

I'm trying to number my figures in Latex, and in linguistics it's conventional for the number to appear above the figure. It's also conventional for all tables, figures and examples to receive the ...
user avatar
  • 5
0 votes
1 answer
43 views

Reduce vertical space before and after gb4e in footnote, align example with footnote text

This is most definitely a follow-up question to Not excessively stretch vertical space between elements in gb4e (glossing verse text; issue w/ enumitem) and probably related to Adjust margins and ...
user avatar
  • 975
3 votes
1 answer
78 views

Not excessively stretch vertical space between elements in gb4e (glossing verse text; issue w/ enumitem)

Part of my data is verse text which I'd prefer to gloss line by line. I toyed with this setup (MWE): \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex \gll der wídem vnd der ...
user avatar
  • 975
1 vote
1 answer
32 views

How to reduce horizontal space between the label of top level and the second level using gb4e

In a list of linguistic example provided by gb4e, I would like to reduce the space between the label of the top level (enumerated label) and the label of the second level (label with alphabet). I know ...
user avatar
0 votes
0 answers
50 views

Aligning Multi-Digit Examples Numbers with gb4e

I am currently typesetting a document with very specific formatting requirements. By default, the gb4e package indents example numbers, such as below. However, this particular document needs to have ...
user avatar
2 votes
1 answer
45 views

\label seems to need space when used with gb4e

I try to keep examples typeset with gb4e on the same page. I extended gb4e by two shortcodes that wrap examples in a tabular environment. This worked until recently but now I get problems with \label ...
user avatar
2 votes
2 answers
77 views

limiting space used by gb4e and adding language information to the right

Often authors provide the language name together with examples. The language name is flushed to the right. This works well with short examples but looks ugly with long examples. The code below ...
user avatar
1 vote
1 answer
38 views

Times font usage changes the alignment (gb4e.sty)

My tags are follows: \documentclass{book} %\usepackage{times} \usepackage{tikz,tikz-qtree, tikz-qtree-compat} \usepackage{gb4e}% \begin{document} \newcommand{\LT}[1]{{\Large #1}} \newcommand{\TS}[1]{\...
user avatar
  • 10.9k
4 votes
1 answer
55 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. ]]\\ ...
user avatar
1 vote
1 answer
372 views

TeX capacity exceeded, sorry [parameter stack size=10000] [duplicate]

I am a Spanish linguist working on writing my dissertation using RMarkdown. My document was compiling fine into a pdf until I tried to add examples and glosses using the gb4e package. I am working on ...
user avatar
0 votes
1 answer
95 views

Italicize first line of /gll and second line of /glll

When using gb4e, is it possible to apply \let\eachwordone=\itshape to every \gll, and \let\eachwordtwo=\itshape to every \glll? In other words, is it possible to only italicize the phrase in latin ...
user avatar
  • 45
2 votes
1 answer
99 views

Updated gb4e + cgloss has fixed spacing between gloss and translation, but not between "preamble" and gloss

I just changed the glossing in a paper I am writing in order to fix the alignment spacing, so instead of using /glll, I am using /gll + adding the top line manually with //. However, this has resulted ...
user avatar
  • 319
2 votes
1 answer
119 views

Is there a way to make the first line of a four-line gloss not have gloss alignment spacing? [duplicate]

I was wondering if there was a way to make the first line in a four-line interlinear gloss not conform to glossing alignment/gloss spacing. \documentclass[12pt]{article} \usepackage{gb4e,cgloss} \...
user avatar
  • 319
2 votes
2 answers
53 views

How to Type Clitic Examples with the gb4e Package

I was struggling to use clitics in my glosses, as it forces the use of an = sign. I searched for a long time, but every question I was able to find was specific to math. Normally, the use of ...
user avatar
  • 319
1 vote
0 answers
30 views

Capacity Error (with isolated problematic excerpt from code/minimal non-working example) [duplicate]

I am working on an article in XeLaTeX and I am getting this error: capacity exceeded main memory size=5000000 By moving around \end{document} and by cutting and pasting various parts of the document, ...
user avatar
  • 319
1 vote
1 answer
55 views

Problem with using gb4e export of linguistic examples & unicode

I am new to LaTex - total rookie here, sorry if I'm not saying things properly lol! - and I am facing some problems with it. I am working with a web-based program called Dative for linguistic analysis ...
user avatar
3 votes
1 answer
171 views

Linguistics Example Alignment

I am currently working with the gb4e package for linguistics in LaTeX, and I am wondering if there is an easy way to align parts across examples. For instance, in the following example, I want to left ...
user avatar
0 votes
0 answers
38 views

Positioning two forest trees side by side as numbered gb4e subexamples [duplicate]

I am adjusting the tabularx solution to position two syntax trees side by side, as numbered subexamples. The problem I am having is too much whitespace between the second-level label ("a.") and the ...
user avatar
  • 28
1 vote
0 answers
32 views

Conflict between Tufte and gb4e in title \thanks [closed]

I use Tufte-book class and only add gb4e package as \usepackage{gb4e} \noautomath But after adding this, the thanks part in title does not go to the margin. Full code is as below: \usepackage{...
user avatar
  • 11
1 vote
2 answers
72 views

Conflict between gb4e and xyling

I am trying to use both the gb4e and xyling packages (I've long used the former, the latter is new for me), and they produce an error when used in the same document (whichever order they're called in)....
user avatar
  • 147
3 votes
1 answer
151 views

Crash between math \exp and that of gb4e

As originally tweeted here, I would like to use \exp to produce some exponential expressions in math mode, but since gb4e, which I also want to use to make interlinear glossing, overwrites the command ...
user avatar
1 vote
0 answers
43 views

Parallel examples with glosses on same line [duplicate]

I'm writing a linguistics paper and I need to use the example environment a lot. I have noticed in some papers that examples are presented in parallel, that is with 2 different examples starting on ...
user avatar
  • 479
2 votes
1 answer
75 views

tikz must be imported after gb4e?

I am using the gb4e and tikz packages. It seems that as long as I import gb4e before tikz, I will get an error: TeX capacity exceeded, sorry [parameter stack size=10000]. \catcode`\noexpand\^^A ...
user avatar
  • 75
1 vote
1 answer
25 views

gb4e & pst-jtree: Invalid item error when using "^" inside a jtree in a gb4e example enclosed by braces

Pst-jtree throws an invalid item error when you attempt to draw a tree that uses the carat inside a gb4e example enclosed in braces. If you do the example without enclosing it in braces or without ...
user avatar
  • 615
1 vote
0 answers
118 views

XeTeX - \glt or \trans don't work in gb4e [closed]

I have a quite big xetex file in which I wrote some examples with gloses and translations. The compilation fails, though it works on a small test file. I think there must be a conflict between ...
user avatar
  • 11
1 vote
1 answer
553 views

gb4e formatting for linguistic examples

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} ...
user avatar
3 votes
2 answers
321 views

customizing gb4e subexamples (not about cross-reference)

I'm using the gb4e for labeling examples in a semantic paper. The examples come with a specific context, and I want to mention that under this specific context, there are at least 2 felicitous answers....
user avatar
3 votes
1 answer
176 views

Reversing the direction of the arrow in gb4e

Any suggestions on how to reverse the direction of the arrow such that it starts from the word je pointing to the word very in the example below? \documentclass{article} \usepackage{gb4e} \primebars ...
user avatar
  • 81
0 votes
0 answers
49 views

alignment between an example in gb4e and the bracketed gloss

I need to have the words on the first line not so wide apart as in ex. 1 (ovaj and zadatak) and ex. 3 (je and vazan). Also, if possible, I'd like to have the bracketed second line more aligned with ...
user avatar
  • 81
6 votes
1 answer
218 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} \...
user avatar
2 votes
1 answer
61 views

Macro for expanding macro arguments to gb4e's \gll

This is a followup question to Problem with gb4e's spacing when using datatool, where I was trying to loop over glosses stored in a CSV with datatool and print them with gb4e's \gll. The issue was ...
user avatar
0 votes
2 answers
493 views

Roman numeration in an xlist environment

How do I set an xlist environment inside an exe environment to use lowercase roman numeration? It always defaults to lowercase letters.
user avatar
2 votes
1 answer
240 views

gb4e: Pull out only subexample label

Is there a way to pull out just the subexample number for a reference when using gb4e? Sometimes I'd like to do something like "In the (a) example(s)...," without having the number. It feels like this ...
user avatar
  • 615
1 vote
1 answer
241 views

Remove space when several gb4e examples

I would like to reduce the space when several examples follow each other. My examples are all quite long (several lines) and I provide a free translation (no gloss). [Edit] This is an attempt of a ...
user avatar
2 votes
2 answers
200 views

Not able to use images if I call gb4e.sty

My tags are follows: \documentclass{book} \usepackage{gb4e,qtree,skull} \usepackage{graphicx} \begin{document} \begin{figure} \includegraphics[width=\textwidth]{../74934_Art/Hackl.jpg} \caption{...
user avatar
  • 10.9k
2 votes
0 answers
80 views

flushleft by using gb4e.sty [duplicate]

My tags are follows: \documentclass{book} \usepackage{showframe} \usepackage{gb4e,qtree,skull} \begin{document} \begin{exe} \ex\emph{Superiority-obeying and Superiority-violating multiple \emph{...
user avatar
  • 10.9k
0 votes
1 answer
149 views

POMA Template: Tex capacity exceeded with line in math mode

I am required to use the POMA template for my paper, originally written in the ACL2017 template(links below). This has lead to some serious breakdowns wrt the bibliography and math mode, that I have ...
user avatar
4 votes
1 answer
226 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 ...
user avatar
  • 475
1 vote
1 answer
231 views

How to fix spacing with multi-line cgloss4e examples?

(Note: This is a follow-up to this question) I am using cgloss4e to write down some language examples. Some of these examples do not fit within a single line, therefore I am trying to distribute ...
user avatar
4 votes
1 answer
132 views

How to combine cgloss4e, colouring and pinyin?

This is a follow-up to this question. In this new question, I would like to be able to combine the colour-altering commands provided in the previous question with the automatic pinyin encoding of the ...
user avatar
4 votes
2 answers
263 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/...
user avatar
2 votes
2 answers
226 views

How to frame text of different lines

I'm trying to reproduce this: I was able to reproduce everything but the frame below "John sleeps": I first tried using gb4e, but I didn't find a solution. Now, my examples are written by hand, ...
user avatar
0 votes
0 answers
69 views

How to vertically align text in different examples using gb4e?

I'm trying to reproduce the following exemples using gb4e: Usually I would only vertically align the text within the same exemple, for glossing, for instance. But in this case, i have to align the ...
user avatar
2 votes
1 answer
143 views

Aligning gb4e examples with tikz-qtree

I would like to fit multiple tree structures onto one and the same page (preferably next to each other), while also numbering them with gb4e so I can refer to them later on. Although this seems to ...
user avatar
  • 151
2 votes
1 answer
912 views

Adjust margins and interline spaces in gb4e

I'm trying to condense the space around examples in gb4e, with the goal of removing unnecessary whitespace around examples in an abstract. Here's what gb4e gives me now: What I'd like is for the ...
user avatar
  • 615
2 votes
0 answers
101 views

Continuous numbering of examples with gb4e in both main text and footnotes

I would like to continue the numbering of the examples with gb4e from my main text in my footnotes. I guess that this has something to do with resetting the counter for \ex in footnotes, but I do not ...
user avatar
  • 151
3 votes
1 answer
485 views

How do I put text on multiple lines in a forest tree within a gb4e example?

I'm using gb4e and forest to present (linguistic) trees in a nice format. It's been working well except that I some of the text underneath the nodes presented on multiple lines. In the forest package ...
user avatar