On 03/19/2011 09:55 AM, Jürgen Spitzmüller wrote:
Nikos Chantziaras wrote:
Hm, LyX generated this LaTeX code when exporting to "LaTeX (XeTeX)":

    [...]
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
    \renewcommand{\figurename}{Xaxa}%

    \makeatother

    \usepackage{xunicode}
    \usepackage{polyglossia}
    \setdefaultlanguage{greek}
    \setotherlanguage{english}
    \addto\captionsenglish{\renewcommand{\figurename}{Figure}}
    \addto\captionsgreek{\renewcommand{\figurename}{Figure}}

    \begin{document}
    [...]

I'm confused.  Why does LyX change \figurename to "Figure" on its own?
It even does that after the preamble, so there's no hope of overriding it.

Can you post an example file?

I found the problem. If I remove all English-marked text from the document, then the problem goes away.

Here's a LyX file:

http://pastebin.com/raw.php?i=CsWzeg0v

Reply via email to