Kevin Paunovic wrote: > When exporting a LyX file to latex (pdflatex) in MacOSX, the .tex > file is encoded using Western MacOS Roman but the .tex file declares > \usepackage[latin1]{inputenc} (it should be applemac and not latin1).
If your exported text file is in applemac encoding then it comes from an invalid LyX file, since LyX files cannot be encoded in applemac encoding. LyX simply passes most characters 1:1 to the .tex file. You can easily convert your .lyx file from applemac to latin1 (e.g. with recode or iconv), and then everything will be perfect. Does by any chance your LyX file come from tex2lyx? I ask because tex2lyx doe not know anything about encodings, and will happily create invalid LyX files. > I tried to specify applemac with no luck: one can only choose > between latin1, latex default (ie nothing), and some codepages (no > cp1252). > Does anyone know how to do this? (of course, one solution is to set > the encoding to 'latex default' then manually add inputenc in the > preamble) > Is there a way to teach LyX to use common characters when possible > while exporting? There will be a way in 1.5 for most characters, but there is no such way in 1.4. Georg