RE: lyx freezes during \HTML (MS WORD)\ export

2011-01-08 Thread Max Funk
Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-  HTML (with elyxer) is more stable and works out of the box

-  HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package natbib, then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-  in the LyX converter options I need htlatex $$i html,word
symbol/! -cvalidate (with double quotes instead of single quotes for
windows)

-  you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-  In the LaTeX distribution the packages with tex4ht and htlatex
must be installed. If MikTeX is used (not texlive), then the file
htlatex.bat has to be corrected: In the last two lines, there are wrong
paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -eC:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with convert.exe, then ImageMagick is not properly
installed. If there is an error tex4ht.env not found, the paths in
htlatex.bat are incorrect.

 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with save as, document type website complete. This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth.exe ( tex to html ) is
very good. Export your document from lyx into latex, then execute tth -e2
document.tex. 

Gives a very good html Document (similar to elyxer).

 

Regards, Max Funk

 



Re: lyx freezes during \HTML (MS WORD)\ export

2011-01-08 Thread Max Funk
Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-  HTML (with elyxer) is more stable and works out of the box

-  HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package natbib, then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-  in the converter I need htlatex $$i html,word symbol/!
-cvalidate (with double quotes instead of single quotes for windows)

-  you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-  In the LaTeX distribution the packages containing tex4ht must
be installed. If MikTeX is used (not texlive), then the file htlatex.bat has
to be corrected: In the last two lines, there are wrong paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -eC:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with convert.exe, then ImageMagick is not properly
installed. If there is an error tex4ht.env not found, the paths in
htlatex.bat are incorrect. 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with save as, document type website complete. This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth ( tex to html ) is very
good. Export your document from lyx into latex, then execute tth -e2
document.tex. 

Gives a very good html Document (similar to elyxer).

 

Regards



RE: lyx freezes during \HTML (MS WORD)\ export

2011-01-08 Thread Max Funk
Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-  HTML (with elyxer) is more stable and works out of the box

-  HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package natbib, then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-  in the LyX converter options I need htlatex $$i html,word
symbol/! -cvalidate (with double quotes instead of single quotes for
windows)

-  you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-  In the LaTeX distribution the packages with tex4ht and htlatex
must be installed. If MikTeX is used (not texlive), then the file
htlatex.bat has to be corrected: In the last two lines, there are wrong
paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -eC:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with convert.exe, then ImageMagick is not properly
installed. If there is an error tex4ht.env not found, the paths in
htlatex.bat are incorrect.

 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with save as, document type website complete. This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth.exe ( tex to html ) is
very good. Export your document from lyx into latex, then execute tth -e2
document.tex. 

Gives a very good html Document (similar to elyxer).

 

Regards, Max Funk

 



Re: lyx freezes during \HTML (MS WORD)\ export

2011-01-08 Thread Max Funk
Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-  HTML (with elyxer) is more stable and works out of the box

-  HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package natbib, then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-  in the converter I need htlatex $$i html,word symbol/!
-cvalidate (with double quotes instead of single quotes for windows)

-  you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-  In the LaTeX distribution the packages containing tex4ht must
be installed. If MikTeX is used (not texlive), then the file htlatex.bat has
to be corrected: In the last two lines, there are wrong paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -eC:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with convert.exe, then ImageMagick is not properly
installed. If there is an error tex4ht.env not found, the paths in
htlatex.bat are incorrect. 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with save as, document type website complete. This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth ( tex to html ) is very
good. Export your document from lyx into latex, then execute tth -e2
document.tex. 

Gives a very good html Document (similar to elyxer).

 

Regards



RE: lyx freezes during \"HTML (MS WORD)\" export

2011-01-08 Thread Max Funk
Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-  HTML (with elyxer) is more stable and works out of the box

-  HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package "natbib", then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-  in the LyX converter options I need htlatex $$i "html,word"
"symbol/!" "-cvalidate" (with double quotes instead of single quotes for
windows)

-  you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-  In the LaTeX distribution the packages with tex4ht and htlatex
must be installed. If MikTeX is used (not texlive), then the file
htlatex.bat has to be corrected: In the last two lines, there are wrong
paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -e"C:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env"

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with "convert.exe", then ImageMagick is not properly
installed. If there is an error "tex4ht.env not found", the paths in
htlatex.bat are incorrect.

 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with "save as", document type "website complete". This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth.exe ( tex to html ) is
very good. Export your document from lyx into latex, then execute "tth -e2
document.tex". 

Gives a very good html Document (similar to elyxer).

 

Regards, Max Funk

 



Re: lyx freezes during \"HTML (MS WORD)\" export

2011-01-08 Thread Max Funk
Hallo, 

 

I had similar problems of the export (Word HTML), with Lyx 1.6.8, as
described here.

 

First, I wanted to tell, that it is not bad to have both configurations: 

 

-  HTML (with elyxer) is more stable and works out of the box

-  HTML, Word (with htlatex) recognises more packages (if it works.)

 

Apparently, Htlatex recognises more packages. For example, in my tests I
found: If I have author - year - citation 

with package "natbib", then elyxer exports only numbers [1], [2],. but
htlatex exports the correct

citations (author, 2011).

 

So, I undertook the effort to configure htlatex. For my Windows system, I
found that the missing points of the configuration of htlatex are as
follows:

 

-  in the converter I need htlatex $$i "html,word" "symbol/!"
"-cvalidate" (with double quotes instead of single quotes for windows)

-  you must assure, that the program ImageMagick is installed and in
the system path (or in the PATH prefix of LyX). With the Lyx for Windows
AltInstaller this is done automatically.

-  In the LaTeX distribution the packages containing "tex4ht" must
be installed. If MikTeX is used (not texlive), then the file htlatex.bat has
to be corrected: In the last two lines, there are wrong paths.

For a standard installation, I corrected to

tex4ht %1  -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env

t4ht %1 %4 -e"C:\Program Files\MiKTeX 2.9\tex4ht\base\win32\tex4ht.env"

 

After these corrections, everything worked fine on my system. In case of
trouble, start LyX from a dos window, then the error messages can be seen. 

If there is an error with "convert.exe", then ImageMagick is not properly
installed. If there is an error "tex4ht.env not found", the paths in
htlatex.bat are incorrect. 

 

 

Finally two other remarks: 

 

- To open the document from elyxer in Word: Open in Firefox, then make a
copy with "save as", document type "website complete". This copy can
directly be opened in Word.

Also, the graphics and the .css file are copied in a suitable subdirectory.

 

- As a very easy to use converter, I found that tth ( tex to html ) is very
good. Export your document from lyx into latex, then execute "tth -e2
document.tex". 

Gives a very good html Document (similar to elyxer).

 

Regards



Re: lyx freezes during HTML (MS WORD) export

2010-12-23 Thread Alex Fernandez
Hi Joel,

On Thu, Dec 23, 2010 at 8:14 AM, Joel Schwartz j...@joelschwartz.com wrote:
 Thanks for the suggestion Wolfgang. I installed elyxer and attempted to use 
 it, but I had a few problems. After installing elyxer from the command line, 
 I typed the following to try and convert a lyx document to html:

  elyxer.py CSUS.lyx csus.html

 This gave the error message pasted just below (hopefully, you can see the 
 screenshot below):

Sure, it is just that eLyXer is not installed as an executable file.

 Then, based on the instructions in the readme file, I tried the following:

  python -m elyxer csus.lyx csus.html

 This worked in the sense that it created the html file (Question: Why did the 
 first command give an error, while the second one worked?).

eLyXer tries several installation methods and uses the one best
suited. On Windows it works more reliable as a module than as an
executable file, based on the reports I have got, so a module (python
-m) is the default installation method there.

 The html file looked pretty good in a Firefox browser window. However, when I 
 opened it in MS-Word, Word decided it was an xml file and the file was filled 
 with all sorts of tags at the begining and end of each line of text. I can't 
 figure out what to do with it to turn it into a normal Word document (I don't 
 know how to process xml).

eLyXer exports XHTML by default, which Word does not understand. To
export HTML 4.0 (a different HTML dialect which word does understand)
just use:
   python -m elyxer --html csus.lyx csus.html
and you will get a file which you can import in Word.

 Along with the document, Word opened an xml data views window in the 
 right-hand column of what would normally be the area where the document text 
 appears. The text at the top of this window reads This XML document has 
 multiple data views. Before making changes to the document, choose the data 
 view (XSLT) to apply. I don't know where to go with that, so I'm stuck at 
 the moment.

 Is it really this hard to get an MS Word-compatible document from a lyx 
 document? Is there an easier way that I've missed?

It is easy once you get the hang of it. You can even configure LyX so
that it exports to Word using eLyXer, but it can be a bit tricky. In
case you want to do it, here's how:
* Open Tools  Preferences.
* Select on the left menu: File Handling  Converters.
* Select LyX - HTML.
* Change the to format from HTML to HTML (Word).
* Change the converter line from:
python -m elyxer --directory $$r $$i $$o
  to:
python -m elyxer --html --directory $$r $$i $$o
* Click on Add.
* Click on Save.

Right now I agree that using eLyXer to export to Word is unnecessarily
hard. It appears that the upcoming version 2.0 will use eLyXer by
default for Word export, so it will be quite simpler.

 Once again, thanks for any suggestions from the lyx (and elyxer) gurus on 
 this list.

Let us me know how it goes.

Alex.


RE: lyx freezes during HTML (MS WORD) export

2010-12-23 Thread Joel Schwartz
Changing the file extension from html to doc didn't work, but it got me 
thinking...if I delete the first couple of xml tags in the file, maybe Word 
will try to open it as a regular document. It worked! (I then smacked my 
forehead and said doh! I should have thought of that before.) The document 
now looks like an html document opened in Word. The only weirdness is that the 
top-level headings have this series of characters at the beginning of the line 
3 , but that's pretty easy to remove. 
 
Thanks to both Michael and Wolfgang for their help. 
 
Just out of curiousity, is anybody working on an easier way to move between lyx 
and MS-Word? As much as I like and am impressed with lyx, there's no way I 
could use it for a document that would be co-written with others, or that would 
be edited by others. Easier movement between lyx and Word might greatly expand 
the potential lyx user base. I realize I must not be the first person to bring 
this up, but I thought I'd mention it now, given that I just tried to work 
through this very problem.
 
Thanks again,
Joel


  _  

From: Michael Joyner [mailto:mjoy...@vbservices.net] 
Sent: Wednesday, December 22, 2010 11:23 PM
To: Joel Schwartz
Cc: engelm...@uni-tuebingen.de; lyx-users@lists.lyx.org
Subject: Re: lyx freezes during HTML (MS WORD) export




On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz j...@joelschwartz.com wrote:


... The html file looked pretty good in a Firefox browser window. However, when 
I opened it in MS-Word, Word decided it was an xml file and the file was filled 
with all sorts of tags at the begining and end of each line of text. I can't 
figure out what to do with it to turn it into a normal Word document (I don't 
know how to process xml).


Try renaming it with '.doc' as the extension to try and trick word into 
properly importing it... or try openoffice followed up by save as word doc.

---


*   Learn to speak Cherokee: http://www.cherokeelessons.com/ 

*   Cherokee Language Help BBS/Chat: 
http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6 

*   Cherokee Lessons PDF made with: http://www.lyx.org/




Re: lyx freezes during HTML (MS WORD) export

2010-12-23 Thread Alex Fernandez
Hi Joel,

On Thu, Dec 23, 2010 at 8:14 AM, Joel Schwartz j...@joelschwartz.com wrote:
 Thanks for the suggestion Wolfgang. I installed elyxer and attempted to use 
 it, but I had a few problems. After installing elyxer from the command line, 
 I typed the following to try and convert a lyx document to html:

  elyxer.py CSUS.lyx csus.html

 This gave the error message pasted just below (hopefully, you can see the 
 screenshot below):

Sure, it is just that eLyXer is not installed as an executable file.

 Then, based on the instructions in the readme file, I tried the following:

  python -m elyxer csus.lyx csus.html

 This worked in the sense that it created the html file (Question: Why did the 
 first command give an error, while the second one worked?).

eLyXer tries several installation methods and uses the one best
suited. On Windows it works more reliable as a module than as an
executable file, based on the reports I have got, so a module (python
-m) is the default installation method there.

 The html file looked pretty good in a Firefox browser window. However, when I 
 opened it in MS-Word, Word decided it was an xml file and the file was filled 
 with all sorts of tags at the begining and end of each line of text. I can't 
 figure out what to do with it to turn it into a normal Word document (I don't 
 know how to process xml).

eLyXer exports XHTML by default, which Word does not understand. To
export HTML 4.0 (a different HTML dialect which word does understand)
just use:
   python -m elyxer --html csus.lyx csus.html
and you will get a file which you can import in Word.

 Along with the document, Word opened an xml data views window in the 
 right-hand column of what would normally be the area where the document text 
 appears. The text at the top of this window reads This XML document has 
 multiple data views. Before making changes to the document, choose the data 
 view (XSLT) to apply. I don't know where to go with that, so I'm stuck at 
 the moment.

 Is it really this hard to get an MS Word-compatible document from a lyx 
 document? Is there an easier way that I've missed?

It is easy once you get the hang of it. You can even configure LyX so
that it exports to Word using eLyXer, but it can be a bit tricky. In
case you want to do it, here's how:
* Open Tools  Preferences.
* Select on the left menu: File Handling  Converters.
* Select LyX - HTML.
* Change the to format from HTML to HTML (Word).
* Change the converter line from:
python -m elyxer --directory $$r $$i $$o
  to:
python -m elyxer --html --directory $$r $$i $$o
* Click on Add.
* Click on Save.

Right now I agree that using eLyXer to export to Word is unnecessarily
hard. It appears that the upcoming version 2.0 will use eLyXer by
default for Word export, so it will be quite simpler.

 Once again, thanks for any suggestions from the lyx (and elyxer) gurus on 
 this list.

Let us me know how it goes.

Alex.


RE: lyx freezes during HTML (MS WORD) export

2010-12-23 Thread Joel Schwartz
Changing the file extension from html to doc didn't work, but it got me 
thinking...if I delete the first couple of xml tags in the file, maybe Word 
will try to open it as a regular document. It worked! (I then smacked my 
forehead and said doh! I should have thought of that before.) The document 
now looks like an html document opened in Word. The only weirdness is that the 
top-level headings have this series of characters at the beginning of the line 
3 , but that's pretty easy to remove. 
 
Thanks to both Michael and Wolfgang for their help. 
 
Just out of curiousity, is anybody working on an easier way to move between lyx 
and MS-Word? As much as I like and am impressed with lyx, there's no way I 
could use it for a document that would be co-written with others, or that would 
be edited by others. Easier movement between lyx and Word might greatly expand 
the potential lyx user base. I realize I must not be the first person to bring 
this up, but I thought I'd mention it now, given that I just tried to work 
through this very problem.
 
Thanks again,
Joel


  _  

From: Michael Joyner [mailto:mjoy...@vbservices.net] 
Sent: Wednesday, December 22, 2010 11:23 PM
To: Joel Schwartz
Cc: engelm...@uni-tuebingen.de; lyx-users@lists.lyx.org
Subject: Re: lyx freezes during HTML (MS WORD) export




On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz j...@joelschwartz.com wrote:


... The html file looked pretty good in a Firefox browser window. However, when 
I opened it in MS-Word, Word decided it was an xml file and the file was filled 
with all sorts of tags at the begining and end of each line of text. I can't 
figure out what to do with it to turn it into a normal Word document (I don't 
know how to process xml).


Try renaming it with '.doc' as the extension to try and trick word into 
properly importing it... or try openoffice followed up by save as word doc.

---


*   Learn to speak Cherokee: http://www.cherokeelessons.com/ 

*   Cherokee Language Help BBS/Chat: 
http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6 

*   Cherokee Lessons PDF made with: http://www.lyx.org/




Re: lyx freezes during "HTML (MS WORD)" export

2010-12-23 Thread Alex Fernandez
Hi Joel,

On Thu, Dec 23, 2010 at 8:14 AM, Joel Schwartz  wrote:
> Thanks for the suggestion Wolfgang. I installed elyxer and attempted to use 
> it, but I had a few problems. After installing elyxer from the command line, 
> I typed the following to try and convert a lyx document to html:
>
> > elyxer.py CSUS.lyx csus.html
>
> This gave the error message pasted just below (hopefully, you can see the 
> screenshot below):

Sure, it is just that eLyXer is not installed as an executable file.

> Then, based on the instructions in the readme file, I tried the following:
>
> > python -m elyxer csus.lyx csus.html
>
> This worked in the sense that it created the html file (Question: Why did the 
> first command give an error, while the second one worked?).

eLyXer tries several installation methods and uses the one best
suited. On Windows it works more reliable as a module than as an
executable file, based on the reports I have got, so a module (python
-m) is the default installation method there.

> The html file looked pretty good in a Firefox browser window. However, when I 
> opened it in MS-Word, Word decided it was an xml file and the file was filled 
> with all sorts of tags at the begining and end of each line of text. I can't 
> figure out what to do with it to turn it into a normal Word document (I don't 
> know how to process xml).

eLyXer exports XHTML by default, which Word does not understand. To
export HTML 4.0 (a different HTML dialect which word does understand)
just use:
  > python -m elyxer --html csus.lyx csus.html
and you will get a file which you can import in Word.

> Along with the document, Word opened an "xml data views" window in the 
> right-hand column of what would normally be the area where the document text 
> appears. The text at the top of this window reads "This XML document has 
> multiple data views. Before making changes to the document, choose the data 
> view (XSLT) to apply." I don't know where to go with that, so I'm stuck at 
> the moment.
>
> Is it really this hard to get an MS Word-compatible document from a lyx 
> document? Is there an easier way that I've missed?

It is easy once you get the hang of it. You can even configure LyX so
that it exports to Word using eLyXer, but it can be a bit tricky. In
case you want to do it, here's how:
* Open "Tools > Preferences".
* Select on the left menu: "File Handling > Converters".
* Select "LyX -> HTML".
* Change the "to" format from "HTML" to "HTML (Word)".
* Change the "converter" line from:
python -m elyxer --directory $$r $$i $$o
  to:
python -m elyxer --html --directory $$r $$i $$o
* Click on "Add".
* Click on "Save".

Right now I agree that using eLyXer to export to Word is unnecessarily
hard. It appears that the upcoming version 2.0 will use eLyXer by
default for Word export, so it will be quite simpler.

> Once again, thanks for any suggestions from the lyx (and elyxer) gurus on 
> this list.

Let us me know how it goes.

Alex.


RE: lyx freezes during "HTML (MS WORD)" export

2010-12-23 Thread Joel Schwartz
Changing the file extension from "html" to "doc" didn't work, but it got me 
thinking...if I delete the first couple of xml tags in the file, maybe Word 
will try to open it as a regular document. It worked! (I then smacked my 
forehead and said "doh! I should have thought of that before.") The document 
now looks like an html document opened in Word. The only weirdness is that the 
top-level headings have this series of characters at the beginning of the line 
3 , but that's pretty easy to remove. 
 
Thanks to both Michael and Wolfgang for their help. 
 
Just out of curiousity, is anybody working on an easier way to move between lyx 
and MS-Word? As much as I like and am impressed with lyx, there's no way I 
could use it for a document that would be co-written with others, or that would 
be edited by others. Easier movement between lyx and Word might greatly expand 
the potential lyx user base. I realize I must not be the first person to bring 
this up, but I thought I'd mention it now, given that I just tried to work 
through this very problem.
 
Thanks again,
Joel


  _  

From: Michael Joyner [mailto:mjoy...@vbservices.net] 
Sent: Wednesday, December 22, 2010 11:23 PM
To: Joel Schwartz
Cc: engelm...@uni-tuebingen.de; lyx-users@lists.lyx.org
Subject: Re: lyx freezes during "HTML (MS WORD)" export




On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz <j...@joelschwartz.com> wrote:


... The html file looked pretty good in a Firefox browser window. However, when 
I opened it in MS-Word, Word decided it was an xml file and the file was filled 
with all sorts of tags at the begining and end of each line of text. I can't 
figure out what to do with it to turn it into a normal Word document (I don't 
know how to process xml).


Try renaming it with '.doc' as the extension to try and trick word into 
properly importing it... or try openoffice followed up by save as word doc.

---


*   Learn to speak Cherokee: http://www.cherokeelessons.com/ 

*   Cherokee Language Help BBS/Chat: 
http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6 

*   Cherokee Lessons PDF made with: http://www.lyx.org/




Re: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Wolfgang Engelmann
Am Wednesday 22 December 2010 18:29:04 schrieb Joel Schwartz:
 Dear lyx Users,

 I'm a new lyx user running lyx 1.6.8 and MikTex 2.8 on Windows XP-SP3. I
 tried exporting a lyx document in HTML (MS WORD) format and lyx froze
 (meaning the cursor turned to an hourglass and stayed that way for more
 than an hour before I finally killed the program).

 I couldn't find a bug report about anything like this so I'm writing to see
 if anyone knows if this is a current bug in the program or is more likely a
 problem with my particular system or lyx configuration.

 More generally, I'm interested in what the best options are for exporting a
 lyx document to an MS Word-usable format. Although I really like lyx both
 practically and philosophically, I'm concerned about being able to
 collaborate with others who don't (and likely don't want) to learn or use
 lyx.

 Thanks for any help and suggestions you can provide.

 Best Wishes,
 Joel

Have you tried to export it with elyxer to html and import this in Word?
Wolfgang

-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


RE: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Joel Schwartz
Thanks for the suggestion Wolfgang. I installed elyxer and attempted to use
it, but I had a few problems. After installing elyxer from the command line,
I typed the following to try and convert a lyx document to html: 

 elyxer.py CSUS.lyx csus.html

This gave the error message pasted just below (hopefully, you can see the
screenshot below):



Then, based on the instructions in the readme file, I tried the following:

 python -m elyxer csus.lyx csus.html

This worked in the sense that it created the html file (Question: Why did
the first command give an error, while the second one worked?). The html
file looked pretty good in a Firefox browser window. However, when I opened
it in MS-Word, Word decided it was an xml file and the file was filled with
all sorts of tags at the begining and end of each line of text. I can't
figure out what to do with it to turn it into a normal Word document (I
don't know how to process xml). 

Along with the document, Word opened an xml data views window in the
right-hand column of what would normally be the area where the document text
appears. The text at the top of this window reads This XML document has
multiple data views. Before making changes to the document, choose the data
view (XSLT) to apply. I don't know where to go with that, so I'm stuck at
the moment. 

Is it really this hard to get an MS Word-compatible document from a lyx
document? Is there an easier way that I've missed? 

Once again, thanks for any suggestions from the lyx (and elyxer) gurus on
this list.

Joel

 -Original Message-
 From: Wolfgang Engelmann [mailto:engelm...@uni-tuebingen.de]
 Sent: Wednesday, December 22, 2010 10:09 AM
 To: lyx-users@lists.lyx.org
 Cc: Joel Schwartz
 Subject: Re: lyx freezes during HTML (MS WORD) export

 Am Wednesday 22 December 2010 18:29:04 schrieb Joel Schwartz:
  Dear lyx Users,
 
  I'm a new lyx user running lyx 1.6.8 and MikTex 2.8 on
 Windows XP-SP3.
  I tried exporting a lyx document in HTML (MS WORD) format and lyx
  froze (meaning the cursor turned to an hourglass and stayed
 that way
  for more than an hour before I finally killed the program).
 
  I couldn't find a bug report about anything like this so
 I'm writing
  to see if anyone knows if this is a current bug in the
 program or is
  more likely a problem with my particular system or lyx
 configuration.
 
  More generally, I'm interested in what the best options are for
  exporting a lyx document to an MS Word-usable format. Although I
  really like lyx both practically and philosophically, I'm concerned
  about being able to collaborate with others who don't (and likely
  don't want) to learn or use lyx.
 
  Thanks for any help and suggestions you can provide.
 
  Best Wishes,
  Joel

 Have you tried to export it with elyxer to html and import
 this in Word?
 Wolfgang

 --
 -
 Wolfgang Engelmann
 Schlossgartenstrasse 22
 D-72070 Tübingen
 Tel 07071 68325

 

Outlook.jpg

Re: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Michael Joyner
On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz j...@joelschwartz.comwrote:

  ... The html file looked pretty good in a Firefox browser window.
 However, when I opened it in MS-Word, Word decided it was an xml file and
 the file was filled with all sorts of tags at the begining and end of each
 line of text. I can't figure out what to do with it to turn it into a normal
 Word document (I don't know how to process xml).


Try renaming it with '.doc' as the extension to try and trick word into
properly importing it... or try openoffice followed up by save as word doc.

---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Wolfgang Engelmann
Am Thursday 23 December 2010 08:22:50 schrieb Michael Joyner:
 On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz j...@joelschwartz.comwrote:
   ... The html file looked pretty good in a Firefox browser window.
  However, when I opened it in MS-Word, Word decided it was an xml file and
  the file was filled with all sorts of tags at the begining and end of
  each line of text. I can't figure out what to do with it to turn it into
  a normal Word document (I don't know how to process xml).

 Try renaming it with '.doc' as the extension to try and trick word into
 properly importing it... or try openoffice followed up by save as word doc.
Joel, 

Just saw Alex Fernandez anouncement of eLyXer 1.1.2 released on this list 
today. Maybe, you try that one.  Alex is VERY helpful, if you still have 
difficulties, and thankful for finding problems with elyxer.

Wolfgang


Re: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Wolfgang Engelmann
Am Wednesday 22 December 2010 18:29:04 schrieb Joel Schwartz:
 Dear lyx Users,

 I'm a new lyx user running lyx 1.6.8 and MikTex 2.8 on Windows XP-SP3. I
 tried exporting a lyx document in HTML (MS WORD) format and lyx froze
 (meaning the cursor turned to an hourglass and stayed that way for more
 than an hour before I finally killed the program).

 I couldn't find a bug report about anything like this so I'm writing to see
 if anyone knows if this is a current bug in the program or is more likely a
 problem with my particular system or lyx configuration.

 More generally, I'm interested in what the best options are for exporting a
 lyx document to an MS Word-usable format. Although I really like lyx both
 practically and philosophically, I'm concerned about being able to
 collaborate with others who don't (and likely don't want) to learn or use
 lyx.

 Thanks for any help and suggestions you can provide.

 Best Wishes,
 Joel

Have you tried to export it with elyxer to html and import this in Word?
Wolfgang

-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


RE: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Joel Schwartz
Thanks for the suggestion Wolfgang. I installed elyxer and attempted to use
it, but I had a few problems. After installing elyxer from the command line,
I typed the following to try and convert a lyx document to html: 

 elyxer.py CSUS.lyx csus.html

This gave the error message pasted just below (hopefully, you can see the
screenshot below):



Then, based on the instructions in the readme file, I tried the following:

 python -m elyxer csus.lyx csus.html

This worked in the sense that it created the html file (Question: Why did
the first command give an error, while the second one worked?). The html
file looked pretty good in a Firefox browser window. However, when I opened
it in MS-Word, Word decided it was an xml file and the file was filled with
all sorts of tags at the begining and end of each line of text. I can't
figure out what to do with it to turn it into a normal Word document (I
don't know how to process xml). 

Along with the document, Word opened an xml data views window in the
right-hand column of what would normally be the area where the document text
appears. The text at the top of this window reads This XML document has
multiple data views. Before making changes to the document, choose the data
view (XSLT) to apply. I don't know where to go with that, so I'm stuck at
the moment. 

Is it really this hard to get an MS Word-compatible document from a lyx
document? Is there an easier way that I've missed? 

Once again, thanks for any suggestions from the lyx (and elyxer) gurus on
this list.

Joel

 -Original Message-
 From: Wolfgang Engelmann [mailto:engelm...@uni-tuebingen.de]
 Sent: Wednesday, December 22, 2010 10:09 AM
 To: lyx-users@lists.lyx.org
 Cc: Joel Schwartz
 Subject: Re: lyx freezes during HTML (MS WORD) export

 Am Wednesday 22 December 2010 18:29:04 schrieb Joel Schwartz:
  Dear lyx Users,
 
  I'm a new lyx user running lyx 1.6.8 and MikTex 2.8 on
 Windows XP-SP3.
  I tried exporting a lyx document in HTML (MS WORD) format and lyx
  froze (meaning the cursor turned to an hourglass and stayed
 that way
  for more than an hour before I finally killed the program).
 
  I couldn't find a bug report about anything like this so
 I'm writing
  to see if anyone knows if this is a current bug in the
 program or is
  more likely a problem with my particular system or lyx
 configuration.
 
  More generally, I'm interested in what the best options are for
  exporting a lyx document to an MS Word-usable format. Although I
  really like lyx both practically and philosophically, I'm concerned
  about being able to collaborate with others who don't (and likely
  don't want) to learn or use lyx.
 
  Thanks for any help and suggestions you can provide.
 
  Best Wishes,
  Joel

 Have you tried to export it with elyxer to html and import
 this in Word?
 Wolfgang

 --
 -
 Wolfgang Engelmann
 Schlossgartenstrasse 22
 D-72070 Tübingen
 Tel 07071 68325

 

Outlook.jpg

Re: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Michael Joyner
On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz j...@joelschwartz.comwrote:

  ... The html file looked pretty good in a Firefox browser window.
 However, when I opened it in MS-Word, Word decided it was an xml file and
 the file was filled with all sorts of tags at the begining and end of each
 line of text. I can't figure out what to do with it to turn it into a normal
 Word document (I don't know how to process xml).


Try renaming it with '.doc' as the extension to try and trick word into
properly importing it... or try openoffice followed up by save as word doc.

---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: lyx freezes during HTML (MS WORD) export

2010-12-22 Thread Wolfgang Engelmann
Am Thursday 23 December 2010 08:22:50 schrieb Michael Joyner:
 On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz j...@joelschwartz.comwrote:
   ... The html file looked pretty good in a Firefox browser window.
  However, when I opened it in MS-Word, Word decided it was an xml file and
  the file was filled with all sorts of tags at the begining and end of
  each line of text. I can't figure out what to do with it to turn it into
  a normal Word document (I don't know how to process xml).

 Try renaming it with '.doc' as the extension to try and trick word into
 properly importing it... or try openoffice followed up by save as word doc.
Joel, 

Just saw Alex Fernandez anouncement of eLyXer 1.1.2 released on this list 
today. Maybe, you try that one.  Alex is VERY helpful, if you still have 
difficulties, and thankful for finding problems with elyxer.

Wolfgang


Re: lyx freezes during "HTML (MS WORD)" export

2010-12-22 Thread Wolfgang Engelmann
Am Wednesday 22 December 2010 18:29:04 schrieb Joel Schwartz:
> Dear lyx Users,
>
> I'm a new lyx user running lyx 1.6.8 and MikTex 2.8 on Windows XP-SP3. I
> tried exporting a lyx document in "HTML (MS WORD)" format and lyx froze
> (meaning the cursor turned to an hourglass and stayed that way for more
> than an hour before I finally killed the program).
>
> I couldn't find a bug report about anything like this so I'm writing to see
> if anyone knows if this is a current bug in the program or is more likely a
> problem with my particular system or lyx configuration.
>
> More generally, I'm interested in what the best options are for exporting a
> lyx document to an MS Word-usable format. Although I really like lyx both
> practically and philosophically, I'm concerned about being able to
> collaborate with others who don't (and likely don't want) to learn or use
> lyx.
>
> Thanks for any help and suggestions you can provide.
>
> Best Wishes,
> Joel

Have you tried to export it with elyxer to html and import this in Word?
Wolfgang

-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


RE: lyx freezes during "HTML (MS WORD)" export

2010-12-22 Thread Joel Schwartz
Thanks for the suggestion Wolfgang. I installed elyxer and attempted to use
it, but I had a few problems. After installing elyxer from the command line,
I typed the following to try and convert a lyx document to html: 

> elyxer.py CSUS.lyx csus.html

This gave the error message pasted just below (hopefully, you can see the
screenshot below):



Then, based on the instructions in the readme file, I tried the following:

> python -m elyxer csus.lyx csus.html

This worked in the sense that it created the html file (Question: Why did
the first command give an error, while the second one worked?). The html
file looked pretty good in a Firefox browser window. However, when I opened
it in MS-Word, Word decided it was an xml file and the file was filled with
all sorts of tags at the begining and end of each line of text. I can't
figure out what to do with it to turn it into a normal Word document (I
don't know how to process xml). 

Along with the document, Word opened an "xml data views" window in the
right-hand column of what would normally be the area where the document text
appears. The text at the top of this window reads "This XML document has
multiple data views. Before making changes to the document, choose the data
view (XSLT) to apply." I don't know where to go with that, so I'm stuck at
the moment. 

Is it really this hard to get an MS Word-compatible document from a lyx
document? Is there an easier way that I've missed? 

Once again, thanks for any suggestions from the lyx (and elyxer) gurus on
this list.

Joel

> -Original Message-
> From: Wolfgang Engelmann [mailto:engelm...@uni-tuebingen.de]
> Sent: Wednesday, December 22, 2010 10:09 AM
> To: lyx-users@lists.lyx.org
> Cc: Joel Schwartz
> Subject: Re: lyx freezes during "HTML (MS WORD)" export
>
> Am Wednesday 22 December 2010 18:29:04 schrieb Joel Schwartz:
> > Dear lyx Users,
> >
> > I'm a new lyx user running lyx 1.6.8 and MikTex 2.8 on
> Windows XP-SP3.
> > I tried exporting a lyx document in "HTML (MS WORD)" format and lyx
> > froze (meaning the cursor turned to an hourglass and stayed
> that way
> > for more than an hour before I finally killed the program).
> >
> > I couldn't find a bug report about anything like this so
> I'm writing
> > to see if anyone knows if this is a current bug in the
> program or is
> > more likely a problem with my particular system or lyx
> configuration.
> >
> > More generally, I'm interested in what the best options are for
> > exporting a lyx document to an MS Word-usable format. Although I
> > really like lyx both practically and philosophically, I'm concerned
> > about being able to collaborate with others who don't (and likely
> > don't want) to learn or use lyx.
> >
> > Thanks for any help and suggestions you can provide.
> >
> > Best Wishes,
> > Joel
>
> Have you tried to export it with elyxer to html and import
> this in Word?
> Wolfgang
>
> --
> -
> Wolfgang Engelmann
> Schlossgartenstrasse 22
> D-72070 Tübingen
> Tel 07071 68325
>
> 

<>

Re: lyx freezes during "HTML (MS WORD)" export

2010-12-22 Thread Michael Joyner
On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz wrote:

>  ... The html file looked pretty good in a Firefox browser window.
> However, when I opened it in MS-Word, Word decided it was an xml file and
> the file was filled with all sorts of tags at the begining and end of each
> line of text. I can't figure out what to do with it to turn it into a normal
> Word document (I don't know how to process xml).
>

Try renaming it with '.doc' as the extension to try and trick word into
properly importing it... or try openoffice followed up by save as word doc.

---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: lyx freezes during "HTML (MS WORD)" export

2010-12-22 Thread Wolfgang Engelmann
Am Thursday 23 December 2010 08:22:50 schrieb Michael Joyner:
> On Thu, Dec 23, 2010 at 2:14 AM, Joel Schwartz wrote:
> >  ... The html file looked pretty good in a Firefox browser window.
> > However, when I opened it in MS-Word, Word decided it was an xml file and
> > the file was filled with all sorts of tags at the begining and end of
> > each line of text. I can't figure out what to do with it to turn it into
> > a normal Word document (I don't know how to process xml).
>
> Try renaming it with '.doc' as the extension to try and trick word into
> properly importing it... or try openoffice followed up by save as word doc.
Joel, 

Just saw Alex Fernandez anouncement of "eLyXer 1.1.2 released" on this list 
today. Maybe, you try that one.  Alex is VERY helpful, if you still have 
difficulties, and thankful for finding problems with elyxer.

Wolfgang