Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [expex]

expex is a package for formatting linguistic examples.

2
votes
0answers
35 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. \...
2
votes
1answer
24 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 (...
3
votes
2answers
65 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 #...
3
votes
1answer
104 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} \...
1
vote
1answer
27 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 ...
2
votes
1answer
63 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 ...
3
votes
1answer
73 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. ...
3
votes
1answer
116 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[...
3
votes
1answer
127 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 ...
1
vote
1answer
81 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 ...
2
votes
1answer
102 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 ...
2
votes
1answer
165 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 ...
1
vote
1answer
92 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. ...
3
votes
1answer
320 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 ...
0
votes
1answer
267 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 ...
3
votes
3answers
184 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 ...
2
votes
2answers
140 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, ...
3
votes
1answer
211 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 ...
2
votes
0answers
89 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 ...
2
votes
1answer
122 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 ...
1
vote
0answers
18 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 ...
0
votes
1answer
138 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 = ...
3
votes
1answer
91 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:...
1
vote
1answer
67 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 ...
3
votes
1answer
103 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. ...
5
votes
2answers
230 views

expex: box around phrase and its gloss

Does anybody know how to achieve the effect illustrated in the picture? Using expex to typeset glossed linguistic examples, I'd like to be able to draw a box around an expression in the \gla line and ...
2
votes
1answer
57 views

Double-digit example number alignment in ExPex

So I've realised that when you go from a single digit example number to a double digit one in ExPex, the text for the double digit number isn't aligned to the text for the single digit example anymore....
1
vote
1answer
102 views

Indenting lines of expex within a list?

I'm having difficulty forcing expex to indent correctly with its containing element. Does anyone know how to force expex to indent? Below is a code snippet: \begin{enumerate} \item First piece of ...
3
votes
1answer
45 views

expex + epltxchapno suppressing chapter numbers in memoir

I've run into a strange problem while using expex in the memoir class. Specifically, I want to reset the example numbering at the beginning of each chapter, so I use \usepackage{epltxchapno} as ...
6
votes
2answers
562 views

Interlinear text with partial translation

I've got my file set up to create an interlinear two-language text (for this example using Russian). I created it using various code-snippets from this very same site. The problem is that the ...
0
votes
1answer
274 views

Difference between \textenglish{} and \begin{english} … \end{english} in expex in xelatex

Consider two LaTeX files. The first (test1.tex): \documentclass[12pt]{article} % extra packages \usepackage[margin=0.5in]{geometry} \usepackage{expex} \usepackage{polyglossia} \usepackage{setspace} ...
3
votes
1answer
242 views

Problems aligning left and right parbox

I previously asked a similar question, but that was related to paracol. This question is related to parbox, so I think the solution will be a bit different. As you can see, the two parboxes don't ...
2
votes
1answer
162 views

Vertical spacing between parbox

I have a running series of parboxes that contain interlinear glosses. Because of the parbox (and the gloss), there is no breaking across pages. As a result, the parboxes are evenly distributed ...
0
votes
1answer
284 views

How to adjust space between interlinear lines

How do you adjust the vertical space between the interlinear lines in expex? Specifically, I would like to reduce the vertical space between gla and glb, and between glb and glc. I have highlighted ...
1
vote
1answer
362 views

Problems aligning left and right columns in paracol

In the \paracol environment, I want the left and right column pairs to align at the top with each other. Hopefully the figure below will clarify what I want. There are three pairs of red and blue ...
1
vote
1answer
186 views

Justifying left-to-right text in ExPex free translation with default right-to-left language

This question is a follow up to this question, which asked about justifying all the glosses. The solution worked for justifying \gla, \glb, and \glc but not for \glft. The problem is clearly because ...
1
vote
1answer
212 views

Justifying text within ExPex

LaTeX justifies text by default, but this seems to not be the case for text within the ExPex package. I would like to fully justify the \gla, \glb, and \glc together, as well as the \glft. Here is a ...
3
votes
1answer
217 views

Horizontal curly braces in ExPex glossing example

This code, with line 52 not commented out, but line 53 commented out: \documentclass{report} % 07Examples.txt - New Early Babbish Gramamr \usepackage{fontspec} \usepackage{titlesec} \...
1
vote
1answer
416 views

Two examples side by side with expex

I'm using expex for linguistic examples. Frequently, examples are very short and I would like to avoid wasting all that space by basically formatting the examples in the usual two columns way. However,...
2
votes
2answers
237 views

ExPex - hide the example number

I'm trying to prevent ExPex glosses from being numbered. I've tried defining the number format to simply be an invisible character, but that fails as it seems that the character X must be present in ...
1
vote
0answers
106 views

How to make the interlinear wrap around the free translation

How can I make the interlinear text (X, Y, Z) continue into the unused space below the free translation? \documentclass{book} \usepackage[margin=1in]{geometry} \usepackage{expex} \begin{document} \...
3
votes
1answer
217 views

Expex and RL language (Arabic) with LR free text (English)

I am trying to use expex for interlinear glossing with the main text in a RL language (Arabic) but the free text in a LR language (English). As you can see from the output, the RL language formatting ...
13
votes
1answer
605 views

I get tofu instead of Lepcha (tibeto-burmese script)

for a school assignment I need to display some Lepcha. This is what I had initially: \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage{fontspec} \setmainfont{Gentium Plus} \...
1
vote
1answer
48 views

Expex example directly after section command doesn't prevent pagebreak before

Putting an expex example directly after a section command doesn't prevent a pagebreak before. Any idea how to avoid pagebreaks in this scenario? \documentclass{report} \usepackage{expex} \...
1
vote
1answer
98 views

Prevent pagebreak when nesting environments

I have two nested environments, each for a different purpose, the first one is giving me a title. Unforuntately, although I have a \nobreak at the appropriate spot (I think) when I call the ...
1
vote
1answer
204 views

How to change the font size in ExPex?

I'm fairly new to ExPex and the documentation is fairly large and I couldn't find anything about font size. Maybe I'm looking for the wrong words. I basically want to make a 5 storied gloss (original ...
2
votes
1answer
175 views

text box positioning

I need to put three text boxes in the example below: \documentclass[12pt]{article} \usepackage{expex} \usepackage{tikz} \usepackage{xparse} \newcommand\Tikzmark[2]{% \tikz[remember picture]\node[...
1
vote
1answer
315 views

Movement arrows in gloss (part II)

In reference to this question: Movement arrow in gloss I have two additional questions. How can I reduce the space between the lines and the example? How can I make it work for multiple examples ...
1
vote
0answers
98 views

coexistence of linguex and expex [duplicate]

I have a very naive question. I started using linguex package, but now I realized I need some options that only expex has. I was wondering if the two packages be used in the same document, or would ...
2
votes
0answers
93 views

XeLaTeX: Counters not working correctly with expex

I'm using expex for glossing translations of foreign languages. I want to label certain words in the gloss which I want to explain later with numbers in superscripts. Then I plan to use enumerate to ...