When I put a footnote in tje environment \gla
using the ExPex package, the footnote does not appear in the document. I tried to put a new definition of the command like in the manual of the (ExPeX) package in section 6.8 but did not work.
Here is the code:
\documentclass[14pt]{book}
\usepackage[margin=0.5cm]{geometry}
\usepackage{titlesec}
\usepackage{polyglossia}
\usepackage{fontspec}
%\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage{brazil}
%\usepackage{longtable}
\usepackage{expex}
\usepackage{epltxfn}
\setmainfont{Arial Unicode MS}
\makeatletter
\def\everyfootnote{%
\keepexcntlocal
\excnt=1
\lingset{exskip=1ex,exnotype=roman,sampleexno=, labeltype=alpha,labelanchor=numright,labeloffset=.6em, textoffset=.6em}}
\renewcommand{\@makefntext}[1]{%
\everyfootnote
\parindent=1em
\noindent
\@thefnmark.\enspace #1%
}
\resetatcatcode
\lingset{glhangstyle=none, everyglb=\footnotesize, everyglft=\small}
\begin{document}
\begingl
\gla PLATON rêvait beaucoup, et on n’a pas moins rêvé depuis.
Il avait songé que\footnote{example here} la nature humaine était autrefois double, et
qu’en punition de ses fautes elle fut divisée en mâle et femelle.//
\glb Platão sonhar muito e {} {não ter} {} menos sonhar {desde então}
ele {} sonhar {} {} natureza humana ser outrora dupla e {que em} punicão
de {} faltas ele ser dividir em macho e fêmea
//
\endgl
\end{document}
\footnotemark
and\footnotetext
works but, as the text is processed twice, you end up with a wrong footnote number.