On 03/18/2011 09:34 PM, Nikos Chantziaras wrote:
On 03/18/2011 11:21 AM, Guenter Milde wrote:
On 2011-03-16, Nikos Chantziaras wrote:
I'm using LyX from SVN on Linux and on top of TeX Live 2010. I'm using
XeTeX and have selected "Greek" as the language in the document's
settings. Everything is translated correctly except for floats. For
example, using a float figure results in a float that is labeled (for
example) "Figure 1.1". In English. It is not getting translated to
Greek.

Does anyone know of a quick fix for this?

Try in the LaTex preamble e.g.

\def\figurename{σχέδιο}%

I just tried this. It doesn't seem to work. I also tried
\renewcommand{\figurename}{TEST}% instead of \def, but still no go. The
generated text still prints "Figure".

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.

Reply via email to