LyX ⇒ No interlinear on first line of gloss?
No interlinear on first line of gloss?
I'm attaching a minimal example as a LyX file, which should be pretty straightforward. I'm also attaching a couple PDFs. The first is what the LyX file outputs. The second is what I have been able to do through a variety of workaround solutions. I'm hoping someone on the list has a much simpler redefinition code that would allow me to adjust the Tri-glosse environment.
What I currently get: What I want to get:
- Attachments
-
- Gloss and Tri-glosse.lyx
- Minimal working example
- (2.3 KiB) Downloaded 599 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
No interlinear on first line of gloss?
So excited when I found this solution, after many headaches, trial and error. I was able to locally redefine the
\threesent
macro for covington.sty
in my preamble.Just paste the following code in your document's preamble:
Code: Select all
{\catcode`\^^M=12 \endlinechar=-1 % 12 = other
\gdef\threesent#1^^M#2^^M#3^^M % #1 = first line, #2 = second line, #3 = third
{\eachwordone#1\newline%
\getwords(\linetwo,\eachwordtwo)#2 ^^M%
\getwords(\linethree,\eachwordthree)#3 ^^M%
\loop\lastword{\eachwordtwo}{\linetwo}{\wordtwo}%
\lastword{\eachwordthree}{\linethree}{\wordthree}%
\global\setbox\gline=\hbox{\unhbox\gline
\hskip\glossglue
\vtop{\box\lineone%\wordone % vtop was vbox
\nointerlineskip
\box\wordtwo
\nointerlineskip
\box\wordthree
}%
}%
\testdone
\ifnotdone
\repeat
\egroup % matches \bgroup in \gloss
}
}
I'm also attaching a .LyX file as a MWE.
- Attachments
-
- Gloss and Tri-glosse.lyx
- Working example with preamble code
- (3.32 KiB) Downloaded 572 times