Questions tagged [gb4e]
{gb4e} is a package for formatting numbered examples as used in linguistics.
178
questions
0
votes
0
answers
23
views
Use in examples and glosses commands that "see each other"
In my examples, I like to show judgment contrasts using brackets, such as
I [like/*likes] maths.
The result in (1) is what I seek (there is no real contrast: I use only 1 symbol, for the sake of ...
0
votes
1
answer
87
views
Creating a command equivalent to a \kern, for glosses
I am using gb4e for glosses inside the linguex environment.
In order to identify word-units, we have to input a space, not only after each unit we want to gloss on its own, but also after the ...
0
votes
3
answers
148
views
Parsing non-expandable commands like \small, using expl3
Using expl3 syntax, I want in my \coolgloss command to use as an optional argument one or several formatting commands such as \small and \itshape.
With a command like \newcommand{\coolgloss}[3][\small\...
1
vote
1
answer
38
views
Continuous numbering of examples (langsci-gb4e) over chapters
I tried to use
\counterwithout{exe}{chapter}
for continuous numbering over chapters of langsci-gb4e examples. But the following error appears.
Latex Error: No counter 'exe' defined
Working example
\...
1
vote
0
answers
86
views
Fontenc and tipa
I am layouting my PhD theses in linguistics and I am struggling with the layout of the linguistic examples. Thanks to StackExchange, I could solve the problem of font size (see here). Now, however, I ...
4
votes
1
answer
125
views
Font size of linguistic examples (langsci-gb4e)
I need to format my thesis in linguistics as required by the publisher. The font has to be Times New Roman 10,2°, spacing 11,9°. While this works for the main text, I cannot change the font size of ...
1
vote
1
answer
31
views
How can I remove punctuation/period after lettered subexamples in g4be/xlist
I have to change sub examples in xlist environments (or rather g4be's \ea \ea \ex \ex \ex \z \z ) from being letter plus period, e.g. a. to simple parentheses (a) not followed by a period/full stop.
I ...
1
vote
2
answers
93
views
Linguistic example with alternative gloss *and* translation
I'm writing a linguistics paper and I need to show alternative glosses and translations for a single example. I found the example here (Align glosses in more than one language with gb4e) which shows ...
5
votes
1
answer
26
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{...
1
vote
1
answer
115
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 ...
3
votes
1
answer
37
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{...
0
votes
1
answer
86
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 ...
0
votes
1
answer
69
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 ...
4
votes
1
answer
86
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 ...
1
vote
1
answer
45
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 ...
2
votes
1
answer
58
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 ...
2
votes
3
answers
119
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 ...
1
vote
1
answer
45
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]{\...
4
votes
1
answer
182
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. ]]\\
...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
192
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 ...
3
votes
1
answer
165
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 ...
2
votes
1
answer
174
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}
\...
2
votes
2
answers
56
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 ...
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, ...
1
vote
1
answer
64
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 ...
3
votes
1
answer
224
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 ...
0
votes
0
answers
39
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 ...
1
vote
0
answers
39
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{...
1
vote
2
answers
88
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)....
3
votes
1
answer
180
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 ...
1
vote
0
answers
44
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 ...
2
votes
1
answer
93
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
...
1
vote
1
answer
32
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 ...
1
vote
0
answers
155
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 ...
1
vote
1
answer
709
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}
...
3
votes
2
answers
406
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....
3
votes
1
answer
208
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
...
0
votes
0
answers
73
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 ...
6
votes
1
answer
249
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}
\...
2
votes
1
answer
65
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 ...
0
votes
2
answers
612
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.
2
votes
1
answer
301
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 ...
1
vote
1
answer
283
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 ...
2
votes
2
answers
274
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{...
2
votes
0
answers
81
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{...
0
votes
1
answer
167
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 ...
4
votes
1
answer
252
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 ...
2
votes
1
answer
258
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 ...
4
votes
1
answer
144
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 ...