On 22 Dec, 2006, at 3:20 AM, Georg Baum wrote:
That package is outdated, you should not use it. It was made for users
of
LyX 1.3.x who wanted to try tex2lyx before it was released officially.
Maybe you have that package installed somewhere? I don't know how
exactly
it works on the Mac, but on linux LyX searches for tex2lyx in the
path, so
if some old version is in the path before the new one the old one will
be
used.
That was it, thanks Georg. I managed to eliminate older versions of
tex2Lyx and reactivate the latest, working version.
That worked. Two problems were left though, detailed here for future
reference:
1. I encountered problems with the input encoding. LyX seems to assume
the encoding is always Latin1. That is not the default encoding on the
Mac, though. Originally, I edited the sed script provided by Charles in
a standard Mac editor (TextWrangler) without worrying about the
encoding. The accented letters looked fine in TextWrangler, but got
mangled up when imported into LyX. Solution: TextWrangler offers an
optional choice of encodings when opening (and, consequently, saving) a
file. I reopened the sed script as Latin1, and changed manually all the
accented letters. This worked.
2. Either tex2Lyx or Lyx itself (either when exporting to Latex or when
reading the file converted by tex2lyx) could not handle the user
defined preamble properly. When I was finally able to import the file
back into LyX with all the corrected accents, LyX would still refuse to
produce pdf output (with pdfLaTeX), complaining about missing a
\begin{document} command. Indeed, the preamble section of Document
settings showed both the user preamble and the LyX generated preamble.
Solution: erase the whole preamble from the converted file and cut and
paste it back from the original file.
Thanks to everyone who helped me during the long and painful process.
Happy holidays to everyone from a (once again) happy LyXer,
S.
__________________________________________________
Stefano Franchi
Department of Philosophy Ph: (64) 9 373-7599 x83940
University Of Auckland Fax: (64) 9 373-8768
Private Bag 92019 [EMAIL PROTECTED]
Auckland
New Zealand