I use the Linguex package for examples with glosses (word-for-word translations) and I want to add right-aligned comments to specify the language of my examples, but this doesn't work with glossed examples. I tried this:
\documentclass{article}
\usepackage{linguex}
\begin{document}
\exg. J'ai deux pommes.\hfill{French}\\
{I have} two apples.\
\end{document}
The \ \ is necessary when you add glosses and can't be omitted. I also tried using flushright and raggedright, but nothing seems to work.
Thanks in advance for any help!
linguexalso usescgloss4eto format glosses, so the solution posted there (use thecglosspackage instead) works too. – Alan Munn Aug 28 '13 at 14:17cglosspackage in your localtexmffolder, add\usepackage{cgloss}(after loadinglinguex)and replace thegb4ecode with the equivalentlinguexcode? I've added thelinguexcode to the linked answer. If you're still having problems, edit your question to include the revised code and we can reopen the question. – Alan Munn Aug 28 '13 at 21:33