Questions tagged [expex]

expex is a package for formatting linguistic examples.

Filter by
Sorted by
Tagged with
2 votes
1 answer
29 views

Indent ExPex examples that are not numbered

ExPex offers \exdisplay to create linguistic examples without numbers (usually in combination with \noexno to prevent the counter being incremented). However, according to the manual (pg. 71), ...
Kyle F. Hartzenberg's user avatar
0 votes
0 answers
19 views

Expex command \begingl not avalaible in encoding TU when running lualatex [duplicate]

When using the expex package for glossing examples with the \begingl enviroment and running the following document with lualatex the following error is obtained: Too many }'s. \egroup l.41 \xe The ...
Norberto's user avatar
0 votes
0 answers
26 views

How do I connect two elements in a linguistic examples via lines when using expex package? [duplicate]

I am using expex package to list linguistic examples, but have no idea about how to connect two elements within an example via lines. Here's the initial code for the example: **\pex \a \rightcomment{...
Kelvin Hu's user avatar
0 votes
0 answers
47 views

How can I remove the space between the lines of linguistic examples?

When a linguistic example is very long, the defined format of such long examples in the expex package looks like this. How can I make the first part and second part of this long example align? \ex[...
Kelvin Hu's user avatar
9 votes
2 answers
289 views

ExPex fails with unicode-math. How to avoid the clash?

The following code fails: \documentclass{article} \usepackage{expex} \usepackage{unicode-math}% Works without this \begin{document} \pex<ex> \a<foo>\begingl \gla foo// \glb foo// \glft ...
Niranjan's user avatar
  • 3,435
2 votes
0 answers
21 views

How to use \pause without increasing the index in a beamer? [duplicate]

I am using the expex package in a beamer file. Every time I use the command \pause, all the indices in that frame would increase by one. I would want to know whether there is a way to get rid of it. \...
FSY's user avatar
  • 33
1 vote
0 answers
22 views

Expex \vskip before example does not disappear at a page break

I have a book document with \flushbottom. I use expex for linguistic examples. When an example is the first item on a page, the previous page ends with some spurious whitespace, as can be seen in the ...
Keelan's user avatar
  • 5,425
4 votes
2 answers
72 views

Referencing ExPex example from a different subfile?

Is there any way I can get subfiles to correctly reference ExPex example numbers? Say I had a main file which contained two subfiles. One subfile contains an ExPex example, and the other contains a ...
geordiekidd's user avatar
8 votes
1 answer
428 views

Modified Bourbaki problem

The expex package has a nice macro \trailingcitation which typesets a citation at the right margin of the same line if there is space, or flushed right on the line if there is no space (first two ...
Keelan's user avatar
  • 5,425
2 votes
1 answer
54 views

How to fix \pex label numbers inside tabularx?

expex's \tl command for placing labels inside tables seems to be incompatible with tabularx, with the label numbers starting at a higher number with every \tl placed. Is there an easy way to patch ...
schoekling's user avatar
  • 3,152
2 votes
1 answer
52 views

ExPex labels referred using cleveref shows section numbers instead of example numbers

MWE \documentclass{article} \usepackage{cleveref} \usepackage{expex} \begin{document} \section{Introduction}\label{sec:intro} \verb|ExPex| labels referred using \verb|cleveref| shows section numbers ...
Navi's user avatar
  • 68
4 votes
1 answer
131 views

How to insert a paragraph above a word, in between two lines of text

I am trying to add interlinear comments to a piece of text. I am currently using the solution here: How to do centered interlinear text in LaTeX This involved defining a command \newcommand\wrd[2]{% ...
Mason Wang's user avatar
1 vote
1 answer
222 views

How to add some space between subexamples of expex?

I want to add some space between the sub-examples generated with package expex. Here is an MWE: \documentclass{article} \usepackage{lipsum} \usepackage{expex} \lingset{% belowglpreambleskip=-0.5ex,% ...
Niranjan's user avatar
  • 3,435
0 votes
1 answer
132 views

Issues combining ExPeX with Tabular

I need to make tables of interlinear gloss. I have successfully made that happen, but the result is ugly. I have two issues in particular: The baselines of the three cells don't line up. The table ...
AML's user avatar
  • 2,265
3 votes
1 answer
75 views

KOMA footnotes and epltxfn.sty

I am trying to use my own style for footnotes defined with scrartcl together with the footnote-specific example labeling (i) for expex provided by epltxfn. However, whichever of the two footnote ...
akybaev's user avatar
  • 35
2 votes
1 answer
126 views

Aligning phonological rules on different lines to each other using expex and phonrule

I'm trying to typeset three rewrite rules to each other. Each rule is contained in an expex example to keep consistent with the numbering elsewhere in the document. At present, I have the following: ...
Peter Nyhuis Torres's user avatar
1 vote
0 answers
28 views

First glword of the next page alignment to a page number

\documentclass{article} \usepackage{expex} \usepackage{fwlw} \makeatletter \def\ps@foo{\def\@oddfoot{\footnotesize\centering\hfil\thepage\hfil\hbox to 0pt{\hss\usebox\NextWordBox}}\let\@evenfoot\@...
Ivi's user avatar
  • 83
4 votes
1 answer
144 views

Devanagari counters in package expex subexamples

I need Devanagari counters in package expex. %!TeX TS-Program=xelatex \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{marathi} \setmainfont[Script=Devanagari,Mapping=...
Niranjan's user avatar
  • 3,435
3 votes
1 answer
537 views

expex: referring to sentences

A question about this (or see the code below): Is there a way to be able to refer to the sentence/gloss right before it? Like this: Sentence (1) below shows that... (1) This is a sentence. When ...
user125234's user avatar
2 votes
1 answer
163 views

How can I define font size and style for ExPex text?

disclaimer: I am very new for LaTeX, so please do not redirect me to documentation, I read carefully several times ExPex PDF guide (http://mirrors.ibiblio.org/CTAN/macros/generic/expex/expex-doc.pdf) ...
Barat Sahdzijeu's user avatar
5 votes
1 answer
270 views

How do I get hyperref to play with expex and so getref is hyperlinked to the deftag

How do I get hyperref to allow me to link to individual examples created using expex (https://www.ctan.org/pkg/expex). I am aware of a \label based workaround, however my full document has too many ...
joe Lovick's user avatar
3 votes
1 answer
216 views

ExPex example numbers do not align to top of TikZ pictures or tabular

I'm submitting to a journal with a provided LaTeX template. They require examples to be done using ExPex. Many of my examples are in the form of TikzPicture "matrix of nodes" diagrams and tables. The ...
ghk128's user avatar
  • 87
3 votes
1 answer
385 views

Reference ExPex example's page number without \label

Question: Is there some way to accomplish a \getpageref equivalent of \getref and \getfullpageref equivalent of \getfullref in expex? Background: I have a lengthy document which uses expex for ...
whatisit's user avatar
  • 1,870
3 votes
1 answer
121 views

ExPex - Apply same formatting to a morpheme and its gloss

When using the expex package, is there an elegant way to apply the same formatting to both a morpheme and its gloss? Say, for example, that I'd like to bold each prefix in my data and its gloss, like ...
Will Oxford's user avatar
3 votes
2 answers
172 views

How to center 3 - 4 glwords?

\documentclass{article} % xelatex engine \usepackage{expex} \begin{document} \begingl \centering % just right-align \gla This is a test// \glb This is a test// \endgl \end{document}
Ivi's user avatar
  • 83
3 votes
0 answers
448 views

Hyperref of expex examples

I would like to have a hyperlink to my examples created with expex The use of \label and \ref produces the correct number, but the it links to the whole subsection and not to the example. \...
Help's user avatar
  • 31
3 votes
1 answer
44 views

Problem with stored values, macro options, and interaction with other package

Apologies for the rather general title, while trying to sort out a very specific problem: I'm trying to enhance the framework that Alan Munn provided here to represent naturally occurring discourse (...
jan's user avatar
  • 2,236
4 votes
2 answers
191 views

Mysterious vertical space when using \newcommand with expex

Ok, so here's some code that shows off the problem i'm having: \documentclass[10pt,letterpaper]{article} \usepackage{expex} \newcommand{\gloss}[3]{\ex[numoffset=2em,aboveglftskip=0pt] \begingl \gla #...
jakehuryn's user avatar
4 votes
1 answer
169 views

Modifying A Specific Example of Interlinear Text and Running it on Tex Live 2018

I am trying to modify this specific solution to interlinear texts, which I found here. % !TEX TS-program = XeLaTeX \documentclass[11pt]{book} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \...
user avatar
1 vote
1 answer
68 views

Expex - defining \NNNext

In expex we can define commands such as \NNext and \LLLast in the header: \newcommand{\NNext}[1][]{(\anextx{#1})\xspace} \newcommand{\LLLast}[1][]{(\bblastx{#1})\xspace} The former refers to the ...
Rethliopuks's user avatar
3 votes
1 answer
194 views

Vertically adjust example number in expex

The example number in the expex package can be adjusted horizontally with the numoffset and textoffset commands, as documented on page 11 of the documentation (links to PDF). But how can it be ...
AML's user avatar
  • 2,265
4 votes
1 answer
584 views

wrap a \lstlisting in a \minipage in an \ex in a \newenvironment

I'm using expex for linguistic examples but in my work I sometimes want to include code snippets instead. I like wrapping code snippets in lstlistings with particular language defined syntax stuff. ...
JawguyChooser's user avatar
4 votes
1 answer
329 views

Polyglot interlinear bible verses(rows) don't break but begin on new page

I'm looking for help! I used \usepackage{parcolumns} in order to manage splittings inside parallel verses on the same page. Here is the sample \documentclass[12pt,landscape]{report} \usepackage[...
Andrei's user avatar
  • 525
4 votes
1 answer
215 views

Big gap between two parboxes in modified RTL expex environment

Below are several sets of identical side-by-side parboxes; the right parbox contains an interlinear gloss (expex) and the left contains regular text. The top three sets are before the modified expex ...
AML's user avatar
  • 2,265
2 votes
1 answer
234 views

\ex with parbox causing example number to go into margin

The only difference between the two examples below is that the first one uses \ex (which displays an example number) and the second uses \exdisplay (no example number). They are otherwise exactly the ...
AML's user avatar
  • 2,265
3 votes
1 answer
151 views

Right to Left multicolumns not working (compatibility issue with ExPeX?)

According to the multicol documentation, on page 5 section 2.5, you can switch to right-to-left columns by invoking \RLmulticolcolumns. I have done this, yet it doesn't work. Is this a bug, or am I ...
AML's user avatar
  • 2,265
3 votes
1 answer
316 views

alignment issue with glbreaking (gloss breaking) in expex

I have set up a layout using paracol with expex glosses in one column and regular text in the other column directly across. At the page break of the MWE below, you can see that the regular-text ...
AML's user avatar
  • 2,265
2 votes
1 answer
227 views

parcolumns spacing problem when used with expex

I get two problems when I use expex and parcolumns together. A big gap appears in the non-glossed column. A gap above the gloss appears, such that the two columns/paragraphs are no longer aligned. ...
AML's user avatar
  • 2,265
5 votes
1 answer
1k views

Paracol alignment and justification

I am using paracol together with expex and am having two problems: Vertical alignment between the two columns (Issue #1 in red). I would like the tops (red lines) of each opposing paragraph to align ...
AML's user avatar
  • 2,265
0 votes
1 answer
1k views

Change fncychap language and "Chapter"

When I create a chapter heading using fncychap, it writes the word "chapter" in Hebrew (פרק), which makes sense given that Hebrew is the default language in this file. How can I change it to say ...
AML's user avatar
  • 2,265
4 votes
3 answers
639 views

Create symbols, arrows, text at beginning of hanging indents in ExPex

I am using the expex package with numerous examples which break into two or more lines due to the length of either \gla or \glb contents. The normal and cascading options for glhangstyle work without ...
whatisit's user avatar
  • 1,870
2 votes
2 answers
407 views

Parallel text spacing and numbering

This post is a follow up to my previous post. Here, I ask about two issues: Vertical spacing: How can I control the vertical spacing/padding in each of the cells? I would like to have full control, ...
AML's user avatar
  • 2,265
3 votes
1 answer
483 views

Gloss on opposite page as translation

This question is a follow-up to my previous question. In this MWE, the gloss/interlinear and the translation ("non lipsum" text on left) are in separate parboxes and then aligned vertically on the ...
AML's user avatar
  • 2,265
2 votes
0 answers
124 views

Preventing page break inside gloss environment

Because of my research interests, my documents are usually filled to the brim with examples in a language that needs to be glossed. For some reason, a lot of my expex glossed examples are split at ...
Bernat Bardagil's user avatar
2 votes
1 answer
482 views

Linguistic gloss for dialogue with expex and marking the speakers

I am looking to create something that will look like this: (1) A: word word word? gloss gloss gloss? translation translation translation? B: word word word! gloss gloss gloss! translation ...
LeighEnne's user avatar
1 vote
0 answers
19 views

Why does a \newcommand-defined gloss mess up the alignment in expex? [duplicate]

I am using the expex package to give a word-by-word translation in English of examples from foreign languages. Because word-by-word translations can be sometimes quite long and abstract, it is ...
mountainlinguist's user avatar
0 votes
1 answer
316 views

How to implement luabidi so that I can use luacode in XeLaTeX

I would like to use the following luacode (follow-up from this post): \usepackage{luacode} \begin{luacode*} function replace_punc ( buff ) if string.find ( buff , "\\gla" ) then buff = ...
AML's user avatar
  • 2,265
3 votes
1 answer
122 views

Make punctuation active characters and map them to the \nogloss macro (XeTeX)

This is a follow-up to this answer and comment. Does anyone have an idea how to automate the \nogloss macro so that I don't have to label every punctuation mark (or at least ! ? " , .) with it? EDIT:...
AML's user avatar
  • 2,265
1 vote
1 answer
141 views

Expex interlinear centering includes punctuation

As you can see in the image below, when using glwordalign=center, the punctuation in \gla counts as part of the word. As a result, \glb and \glc are centered not just on the word but also on the ...
AML's user avatar
  • 2,265
4 votes
1 answer
249 views

\linewidth in expex

It seems to me that examples in expex have no effect on the length of \linewidth, which is especially annoying if you want to put two things next to each other with a minipage, or you include a table. ...
Jipí's user avatar
  • 1,037