Questions tagged [expex]

expex is a package for formatting linguistic examples.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

Extra indent between two examples expex

The TEXT between examples 1a & 1b is indented more than the usual. Is there any way to make it "normal"? \documentclass{article} \usepackage{expex} \begin{document} \pex \a\begingl \gla ...
0
votes
0answers
26 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\@...
3
votes
1answer
80 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=...
0
votes
0answers
16 views

Using POJ in expex glosses

There's something weird with this code (I got a sample somewhere, so don't ask me why the preamble is what it is): \documentclass[11pt]{book} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \...
0
votes
0answers
17 views

expex: making comments on the right [duplicate]

Here's a code from this answer: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{expex} \gathertags \lingset{aboveglftskip=-.2ex,interpartskip=\...
2
votes
1answer
40 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 ...
1
vote
1answer
54 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) ...
1
vote
1answer
60 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
65 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
113 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
54 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
148 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
186 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
35 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
87 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
125 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
39 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
93 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
202 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
191 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
157 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
129 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
122 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
232 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
142 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
598 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
595 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
279 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
197 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
320 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
106 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
210 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
186 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
102 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
97 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
135 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
325 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
80 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
174 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
59 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
737 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
494 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
293 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
334 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
419 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 ...
2
votes
1answer
648 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
362 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
353 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
295 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} \...