On Wed, Jan 24, 2001 at 12:30:54PM -0600, Paul E Johnson wrote:
> With Lyx 1.1.6 on RedHat 7, I am trying to import a tex file I created
> with word2TeX from a Microsoft Word doc. I wrote the doc a few years
> ago, probably with Word 6, but I'm using Word from office 2000 and
> word2Tex to export it.
I do believe you've found a bug in reLyX!
It's pretty bizzarre. It turns out that reLyX thinks \)* is a starred
version of the \) command, rather than realizing that it's supposed to be \)
followed by an asterisk in plain text. (In case you're wondering, the $'s in
the .tex file get turned into \)'s. So it doesn't finish the math
environment, and gets all confused.
All you need to do is change line 290, putting a space after the dollar
signs. (Alternatively, you could put the asterisks into math mode.) The
reLyX works fine and lyx can read in the file. (You may want to do some
editing. There are a ton of latex \bigskips, which you could change to the
LyX equivalent, and there are a ton of braces in math mode that are
useless. Also, word2tex seems to put all of the subscripts into {\rm}
groups. I don't know if you'll have the energy to get rid of that.
I didn't actually check if lyx can create dvi with the file, but it can be
read in once you make that change.
I ought to be able to fix this with a one-line change to
reLyX/Text/TeX.pm:104. However, I don't have the energy to fight with
regexps right now, and this is, I think, a pretty obscure bug.
-Amir