On 2010-11-22, Nikos Chantziaras wrote:
> (This is probably grave-digging :P)

> I left LyX (and TeX) alone since that thread.  Recently I was asked to 
> create a paper in LaTeX and therefore looked at the LyX site again.  I 
> saw that LyX 2.0 beta supports "XeTeX", which presumably does exactly 
> what I described in this thread!

> So after all, thanks LyX devs!  I just tried it out and indeed it works 
> like a charm after enabling XeTeX in the Document Settings.  I can write 
> Latin and Greek characters at the same time without being driven insane 
> by constantly selecting text and switching language. :-)

Good news.

Beware, however that you must not use the "Babel" package with XeTeX
for Greek documents, as this would select a "traditional LaTeX" font
with Greek characters at the place of Latin ones.

Currently, this can be solved by changing \usepackage{babel} with 
\usepackage{polyglossia} in Tools>Preferences>Language.
You then need to set the document language in the LaTeX-preamble via e.g.
\setmainlanguage{greek}. (See the documentation polyglossia.pdf for
details.)

Alternative
-----------

I attach a file that provides "Latin in Greek" with the stable LyX 1.6
series and pdflatex. 

USAGE

Either insert its content or \input{UniGreek.tex} in the
Document>Settings>LaTeX-preamble (for the second option, the file must
reside in the working dir or the TEXPATH).

Use this together with the languages Greek or Greek (polytonic)
and the ASCII output encoding in Document>Settings>Language.

Converting this file into a LyX-Module is left as an exercise to the
reader.

Günter


Reply via email to