Questions tagged [expex]
expex is a package for formatting linguistic examples.
103
questions
4
votes
1
answer
75
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]{%
...
1
vote
1
answer
33
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,%
...
0
votes
1
answer
65
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 ...
3
votes
1
answer
54
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 ...
2
votes
1
answer
71
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:
...
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\@...
4
votes
1
answer
121
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=...
3
votes
1
answer
205
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 ...
2
votes
1
answer
110
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) ...
3
votes
1
answer
133
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 ...
3
votes
1
answer
144
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 ...
3
votes
1
answer
247
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
1
answer
78
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
2
answers
165
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}
3
votes
0
answers
366
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.
\...
3
votes
1
answer
40
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 (...
4
votes
2
answers
103
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 #...
4
votes
1
answer
149
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
1
answer
58
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 ...
3
votes
1
answer
127
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 ...
4
votes
1
answer
352
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. ...
4
votes
1
answer
240
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[...
4
votes
1
answer
189
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 ...
2
votes
1
answer
183
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 ...
3
votes
1
answer
138
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 ...
3
votes
1
answer
268
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 ...
2
votes
1
answer
183
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.
...
5
votes
1
answer
819
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
1
answer
882
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 ...
4
votes
3
answers
429
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
2
answers
265
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
1
answer
380
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
0
answers
113
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
1
answer
327
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
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 ...
0
votes
1
answer
252
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
1
answer
114
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
1
answer
128
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
1
answer
180
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.
...
6
votes
2
answers
402
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
1
answer
96
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
1
answer
264
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 ...
4
votes
1
answer
82
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
2
answers
964
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
1
answer
691
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
1
answer
318
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
1
answer
385
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
1
answer
595
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
1
answer
999
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
1
answer
662
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 ...