On Sun, Mar 04, 2001 at 10:12:07PM +0100, Guido Milanese wrote:
> My system is as follows: I use a Greek font for "sans serif" view on
> screen; after finishing my work, I export the file as LaTeX file, I run
> a program I am polishing, that changes all the "\textsf{here is greek}"
> instances into "\foreignlanguage{greek}{here is greek}" (= the Babel
> instruction for Greek text), making all the adaptations needed by
Why aren't you using the multi-lingual capabilities of LyX ?
With LyX 1.1.6, assuming you have (good) iso10646-1 screen fonts:
- Select iso10646-1 screen font encoding and select iso10646-1 fonts in the
Preferences dialog
- When entering greek text for the first time, open the Character layout
dialog, select Greek language and press apply and then close.
To finish the Greek text press the "Font+" button in the toolbar.
You can press this button again to start a new Greek text.
You put '\bind "F12" "language greek"' in your bind file, and then use F12
to switch to Greek (and back).
PS: You might have a problem if you have a table of contents in your documents.
However, that bug will be fixed in the next release.
PS: If you can't use the above, you do not need to use an external program
for converting \textsf to \foreignlanguage. You can just put the following
line in the preamble:
\renewcommand{\textsf}[1]{\foreignlanguage{greek}{#1}}