The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [expex]

expex is a package for formatting linguistic examples.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 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 ...
2
votes
1answer
24 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 ...
2
votes
1answer
17 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 ...
3
votes
1answer
33 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 ...
3
votes
2answers
116 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}
2
votes
0answers
75 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
28 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
76 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
116 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
29 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
81 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
96 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
144 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
134 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
94 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
111 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
200 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
116 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. ...
4
votes
1answer
456 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
339 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
203 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
152 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
251 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
96 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
145 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
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 ...
0
votes
1answer
150 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
94 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
78 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
112 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
258 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
62 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
120 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
51 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
614 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
345 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
266 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 ...
1
vote
1answer
213 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
321 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
435 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
261 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
260 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 ...
2
votes
1answer
244 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
480 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
301 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
125 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
258 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
677 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
52 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
119 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 ...