jspitz / covington

Maintenance of the covington LaTeX package
9 stars 0 forks source link

Integrate/Mention workaround for the use of glossing inside footnotes or similar environments #1

Closed simon-clematide closed 7 years ago

simon-clematide commented 7 years ago

There is a workaround on stackexchange on how to make the glossing makros work in footnotes or similar environments (e.g. baposter

BTW, it is important to note that each gloss \gll needs its own \xx opener.

jspitz commented 7 years ago

I have committed a solution inspired by David's suggestion, introducing new macros \xgll, \xglll and \xgle. Your example file would now read:

\documentclass{article}
\usepackage{covington}

\begin{document}
Some text.\footnote{This is commented with an example:

\begin{example}
\xgll qaama l-qawm-u illaa zayd-an\xgle
       stood.up DEF-people but zayd-ACC\xgle
\glt `Everyone stood up except for Zayd'
\glend
\end{example}

\begin{example}
This is an unglossed example.
\end{example}
}
\end{document}

Could you please test the development version?

simon-clematide commented 7 years ago

Tested with footnotes and baposter environment. Works. One question: Would it not make sense the put the x at the end? E.g. gllx glex

jspitz commented 7 years ago

I think as a prefix, the 'x' is more noticeable.

I'll push a new version to CTAN soon.

simon-clematide commented 7 years ago

Yes, that makes sense. Thanks a lot for integrating this so quickly.