On 2010-11-22, Nikos Chantziaras wrote:
> On 11/22/2010 01:43 PM, Guenter Milde wrote:
>> On 2010-11-22, Nikos Chantziaras wrote:

...

> Also, this is needed to in the preamble:

>    \let\textgre...@undefined

> otherwise xelatex can't process the file:

>    ! LaTeX Error: Command \textgreek already defined.

> (That one took me quite a bit of Googling to find out how to solve.)

This is (most probably) due to LyX's "textgreek" feature inserting

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\DeclareRobustCommand{\greektext}{%
  \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
\DeclareFontEncoding{LGR}{}{}
\DeclareTextSymbol{\~}{LGR}{126}

in the LaTeX source, even with ``\inputencoding utf8-plain``. 
(I.e. Document>Settings>Language>Encoding is set to "Unicode (XeTeX)
(utf8)" or Document>Settings>Outpu>tUse XeTeX is active.)

As "utf8-plain" bypasses LyX's Unicode->LaTeX conversion, the above
(re)definition of \greektext is not necessary and interfers with "babel"
or "polyglossia" loaded in the preamble.

Can you report this as bug to track?

Günter

Reply via email to