I am preparing a document containing some interlinear glossing, the glossing conventions themselves appearing as a separate list. I use the leipzig package to typeset the glosses, the expex package to format numbered examples and the glossaries package to create the list of abbreviations.
MWE#1 gets the shape of the glosses right, both inside a numbered example and outside: there is no spacing between the 1, the SG, the colon and the DAT in the pdf output.
\documentclass{article}
\usepackage{expex}
\usepackage{leipzig}
\begin{document}
\ex
\begingl
\gla mulle //
\glb \First\Sg:\Dat{} //
\endgl
\xe
go.\Pst{}
\end{document}
However, if I load the glossaries package in line with the instructions in the leipzig manual, as shown in MWE#2, I get unwanted spacing on either side of the SG bit. Besides, inline glosses appear in the output unfolded into go.PSTpastpst as opposed to the desired go.PST
\documentclass{article}
\usepackage{expex}
\usepackage[nomain,nostyles]{glossaries}
\usepackage{glossary-inline}
\usepackage{leipzig}
\makeglossaries
\begin{document}
\ex
\begingl
\gla mulle//
\glb \First\Sg:\Dat{}//
\endgl
\xe
go.\Pst{}
\printglossary[style=inline,type=\leipzigtype]
\end{document}
Is there a way of rectifying this? I'm compiling these particular MWEs with pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) but have tried both Xe- and LuaLaTeX as well, both times with the same result.
\glsunsetallin your preamble.The reason you see PSTpastpst is a combination of bugs, but mostly because leipzig thinks you want the full abbreviation printed, as if on first use. Using
\glsunsetallunsets the first use flag that is used by glossaries.(Sorry, I don't know why the extra spaces were showing up! Perhaps the above hack will fix that too.)
– Natalie Weber Jun 17 '17 at 16:24