RE: Export/View to HTML/Word/OO.Writer not working at all

2006-07-15 Thread Jack M. Lyon
Dean O'Connor wrote:

> I have to take a step back here at say the reason I tried Lyx in the 
> first place was basically because my Dad writes books and is 
> constantly 
> dueling with formatting hassles with Word.
> I also have a biz partner who write mountains of doco in Word and is 
> tired of formatting hassles.
> So when I discovered Lyx I thought it might be easier for them, as it 
> concentrates on structure rather than the hassles with format.

If they really *have* to use Word but want to concentrate on structure
rather than formatting, they might find my Author Tools template useful
(created for MS Word but inspired by LyX). Click here to download:

http://www.editorium.com/ftp/authortemplate.zip

Feel free to pass it around. And if you have questions, holler.

Thanks!

Best wishes,
Jack M. Lyon
___

The EDITORIUM
Microsoft Word Add-Ins for Publishing Professionals
http://www.editorium.com
___


> -Original Message-
> From: Dean O'Connor [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, July 15, 2006 4:43 AM
> To: [EMAIL PROTECTED]; lyx-users@lists.lyx.org; 
> lyx-devel@lists.lyx.org
> Subject: Re: Export/View to HTML/Word/OO.Writer not working at all
> 
> 
> 
> well I have downloaded tex4ht-all.zip from 
> http://www.ctan.org/tex-archive/support/TeX4ht/ and unziped 
> it in c:/tex4ht.
> Also downloaded the newt4ht.zip 
> <http://www.cse.ohio-state.edu/%7Egurari/TeX4ht/fix/newt4ht.zip> from 
> http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html 
> and unzipped 
> it to c:/tex4ht.
> 
> I have mod'd the miktex-install.bat to match the current 
> package paths, 
> but still get a few errors and warnings.
> 
> I have to fiddle around trying to put tex4ht.zip in 
> C:\tex4ht\tex4ht dir.
> 
> Still after all this hackery I still get pretty much same 
> errors doing a 
> "htlatex xypic.tex".
> 
> I have yet to try that approach via the setup.exe you said 
> worked. Seems 
> a bit over the top to have to install parallel versions of Miktex to 
> accomplish this.
> 
> I have to take a step back here at say the reason I tried Lyx in the 
> first place was basically because my Dad writes books and is 
> constantly 
> dueling with formatting hassles with Word.
> I also have a biz partner who write mountains of doco in Word and is 
> tired of formatting hassles.
> So when I discovered Lyx I thought it might be easier for them, as it 
> concentrates on structure rather than the hassles with format.
> 
> Now this Lyx bundle offers a nice solution, and I still might go with 
> it, but I kinda wanted the Export to Word/html as a safety 
> net if people 
> required those formats.
> I cannot really go thru all this hassle trying to get this install 
> completely.
> 
> I totally agree with your motto about persistence being the key to 
> success, but unfortunately I am going to have to toss the 
> ball back into 
> the Lyx team's court on this one and hope they can get full Export 
> capability into the bundle.
> They advertise you don't have to delve into the Tex world to 
> use their 
> product so I am going to hold them to that :) Certainly is an 
> impressive 
> product tho.
> 
> I will check back regularly to see if there is a clean way to install 
> all this tex4ht component for Lyx..
> 
> Heaps of thanks for your efforts mate.
> 
> Cheers
> Dean.
> 
> 
> 
> Steve Harris wrote:
> > Dean O'Connor wrote:
> >>
> >
> >> So I guess if I have to get/install tex4ht, where exactly 
> do I get it 
> >> from ???
> >> Obviously, it seems only logical all this be included in 
> the Lyx bundle.
> >>
> >> Cheers
> >> Dean.
> >>
> >>
> >
> > The thing is that the whole miktex bundle is around 470mb and
> > the link is to about a 202mb installation of Miktex. Some
> > things get left out.
> >
> > You notice that Miktex2.5 is small and doesn't contain
> > tex4ht.cab in its download.
> >
> > I uninstalled Miktex2.4 in order to reproduce your error.
> > The 1.4.2 installer doesn't download the tex4ht package.
> >
> > Afterwards I reinstalled:
> > So I used the Miktex setup.exe to download all the 2.4
> > packages (cabs) to a local repository (miktexfiles). Then
> > I ran Miktex setup.exe again and chose install from a
> > local repository (C:\miktexfiles) to C:\texmf using
> > the defaults and choosing Complete. It is time-consuming
> > so let it run over lunch.
> >
> > htlatex works again. I have C:\texmf\miktex\bin in
> > Windows Path statement. Otherwise I have sent you two
> > posts with urls for the tex*zip files. That is not
> > the method I chose, I used the *.cab method.
> >
> > Good luck,
> > Stephen
> >
> 



Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-15 Thread Steve Harris

Dean O'Connor wrote:


well I have downloaded tex4ht-all.zip from 
http://www.ctan.org/tex-archive/support/TeX4ht/ and unziped it in 
c:/tex4ht.
Also downloaded the newt4ht.zip 
 from 
http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html and unzipped 
it to c:/tex4ht.


I have mod'd the miktex-install.bat to match the current package paths, 
but still get a few errors and warnings.


I have to fiddle around trying to put tex4ht.zip in C:\tex4ht\tex4ht dir.

Still after all this hackery I still get pretty much same errors doing a 
"htlatex xypic.tex".


I have yet to try that approach via the setup.exe you said worked. Seems 
a bit over the top to have to install parallel versions of Miktex to 
accomplish this.


I have to take a step back here at say the reason I tried Lyx in the 
first place was basically because my Dad writes books and is constantly 
dueling with formatting hassles with Word.
I also have a biz partner who write mountains of doco in Word and is 
tired of formatting hassles.
So when I discovered Lyx I thought it might be easier for them, as it 
concentrates on structure rather than the hassles with format.


Now this Lyx bundle offers a nice solution, and I still might go with 
it, but I kinda wanted the Export to Word/html as a safety net if people 
required those formats.
I cannot really go thru all this hassle trying to get this install 
completely.


I totally agree with your motto about persistence being the key to 
success, but unfortunately I am going to have to toss the ball back into 
the Lyx team's court on this one and hope they can get full Export 
capability into the bundle.
They advertise you don't have to delve into the Tex world to use their 
product so I am going to hold them to that :) Certainly is an impressive 
product tho.


I will check back regularly to see if there is a clean way to install 
all this tex4ht component for Lyx..


Heaps of thanks for your efforts mate.

Cheers
Dean.




I took a look at that tex4ht zip installation page. It should
never be recommended to a Windows user migrating to LyX and
who has chosen the AllinOne installer to avoid abstruse docs.

http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html
"To be installed, the system needs a port made up of native
utilities of TeX4ht and of non-native utilities. The easiest
way to establish an up to date port is to download an installed 
distribution of the system, and refresh it with the files

provided here." Eitan M. Gurari

So if you have a Miktex installation directory with Tex4ht
installed from the cab files it uses, you will find that
Tex4ht is installed to (default)C:\texmf\tex4ht and that
the helper files are mixed in with C:\texmf\miktex\bin
That provides a model for where your upgrading files go.
C:\texmf\miktex\bin has no spaces and should be in the PATH.

From the zip file method of Tex4ht installation webpage:
# Where do you want to put the TeX4ht files? I recommend
that you put them in c:\tex4ht, but you can change this
(eg, by putting them onto drive D). Your choice must not
contain spaces, though.

# Where do you want to put the batch files? Your choice
must be in your path. One suggestion is to put them with
MiKTeX’s (and TeX4ht’s) binaries, which by assumption is
a folder already in your path.

SH: Along with filling out a fairly complicated miktex-
install.bat, I think those instructions could confuse a
new user, who by definition isn't env. variable aware.

I think the solution isn't to point to a manual method.
The automatic solution is to include the tex4ht package
in the default Miktex install that LyX employs. Or if
that is hard to implement, include it like the Bakoma
fonts. LyX has Html as a viewer option. LyX generates

From "python configure.py"
checking for a LaTeX -> HTML converter...
+checking for "htlatex"...   yes

Why have the html converter process if it doesn't
write the result to Preferences->converters? It
used to do that. Perhaps it isn't intentional but
falls in this category: Tex Information doesn't
display even with a rescan:

Nicolás: ..."run TeXFiles.py and copy the generated files to
the right place." [SH: C:\LyX\LyX14\Resources , in my case]

Why run a process to find a html converter when the result
isn't supported like the other options with a download of
the files that make the converter work? Maybe the checking
just looks for "htlatex.exe" which isn't enough. For some
reason, htlatex.exe and the tex4ht package which includes the
support files for htlatex.exe come in two different packages.

The new user sees html view or html export, but it doesn't
work. He discovers that it is a bug (at least in Windows).
So he a workaround using "htlatex foo.tex" from the command
line to make foo.html. How is the new user to know that when
he reads this bug has been fixed, that he still needs to
download a zip file, or use Miktex Update Wizared (in this
case May,2006) because this package is treate

Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-15 Thread Dean O'Connor


well I have downloaded tex4ht-all.zip from 
http://www.ctan.org/tex-archive/support/TeX4ht/ and unziped it in c:/tex4ht.
Also downloaded the newt4ht.zip 
 from 
http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html and unzipped 
it to c:/tex4ht.


I have mod'd the miktex-install.bat to match the current package paths, 
but still get a few errors and warnings.


I have to fiddle around trying to put tex4ht.zip in C:\tex4ht\tex4ht dir.

Still after all this hackery I still get pretty much same errors doing a 
"htlatex xypic.tex".


I have yet to try that approach via the setup.exe you said worked. Seems 
a bit over the top to have to install parallel versions of Miktex to 
accomplish this.


I have to take a step back here at say the reason I tried Lyx in the 
first place was basically because my Dad writes books and is constantly 
dueling with formatting hassles with Word.
I also have a biz partner who write mountains of doco in Word and is 
tired of formatting hassles.
So when I discovered Lyx I thought it might be easier for them, as it 
concentrates on structure rather than the hassles with format.


Now this Lyx bundle offers a nice solution, and I still might go with 
it, but I kinda wanted the Export to Word/html as a safety net if people 
required those formats.
I cannot really go thru all this hassle trying to get this install 
completely.


I totally agree with your motto about persistence being the key to 
success, but unfortunately I am going to have to toss the ball back into 
the Lyx team's court on this one and hope they can get full Export 
capability into the bundle.
They advertise you don't have to delve into the Tex world to use their 
product so I am going to hold them to that :) Certainly is an impressive 
product tho.


I will check back regularly to see if there is a clean way to install 
all this tex4ht component for Lyx..


Heaps of thanks for your efforts mate.

Cheers
Dean.



Steve Harris wrote:

Dean O'Connor wrote:




So I guess if I have to get/install tex4ht, where exactly do I get it 
from ???

Obviously, it seems only logical all this be included in the Lyx bundle.

Cheers
Dean.




The thing is that the whole miktex bundle is around 470mb and
the link is to about a 202mb installation of Miktex. Some
things get left out.

You notice that Miktex2.5 is small and doesn't contain
tex4ht.cab in its download.

I uninstalled Miktex2.4 in order to reproduce your error.
The 1.4.2 installer doesn't download the tex4ht package.

Afterwards I reinstalled:
So I used the Miktex setup.exe to download all the 2.4
packages (cabs) to a local repository (miktexfiles). Then
I ran Miktex setup.exe again and chose install from a
local repository (C:\miktexfiles) to C:\texmf using
the defaults and choosing Complete. It is time-consuming
so let it run over lunch.

htlatex works again. I have C:\texmf\miktex\bin in
Windows Path statement. Otherwise I have sent you two
posts with urls for the tex*zip files. That is not
the method I chose, I used the *.cab method.

Good luck,
Stephen





Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Dean O'Connor


yeah I came across that link (below) before and actually had a stab at 
trying to get tex4ht, but unfortunately the link in section 3.2 for the 
install gives me a "server not found" error !!

http://facweb.knowlton.ohio-state.edu/pviton/support/tex4ht.html

Then down in section 6 where you setup tex4ht there is a link to 
tex4ht-miktex-install.zip 
 
which I can get, but it doesn't contain any htlatex.bat.
There is a miktex-install.bat but it requires I have the tex4ht 
installed in the first place !! I can see it will create a htlatex.bat 
from the .tab file there.
I tried copying the htlatexp.tab to my miktex bin and rename it to 
htlatex.bat, then running "htlatex xypic.tex". Lots of scrolling message 
and left at a latex prompt, but still no go. Also warnings about not 
finding tex4ht.env.


But I see that in my C:\texmf\miktex\bin most of the tex4ht stuff is 
already there (from bundle install). Well the tex4ht.exe anyways :) So 
it does seem that tex4ht stuff is already included in the bundle, 
just maybe not completely 


Steve, with the  htlatex.bat you sent me, I get "! LaTeX Error: File 
`tex4ht.sty' not found." error.


So I guess if I have to get/install tex4ht, where exactly do I get it 
from ???

Obviously, it seems only logical all this be included in the Lyx bundle.

Cheers
Dean.


Steve Harris wrote:


About a problem originally reported on the User list.
The html viewer option and export option usually
handled by htlatex doesn't work in LyX Windows XP.

Paul A. Rubin wrote:

I don't see a directory for tex4ht on the path (unless I'm missing it).



Dean: Any ideas ?



Paul:
Did you download and install tex4ht?  (There are instructions for 
MiKTeX users at 
http://facweb.knowlton.ohio-state.edu/pviton/support/tex4ht.html.)  
The htlatex.bat file is part of the installation, in root>\bin\win32\.


/Paul




A missing tex4ht package is confirmed as the problem.
I just tried the new 1.4.2 installer and it downloads
Miktex with an htlatex.exe file, but not the rest of it.

I reproduced the same error message as Dean earlier:

C:\texmf\miktex\bin>htlatex splash.tex
htlatex: the batch script could not be found.

In earlier versions of LyX, the installation searched
for an Html converter and under Preferences one could
usually find Latex -> HTML with htlatex listed/chosen.

This new installer apparently doesn't search for an html
converter although Html is still listed as a Viewer option.
I tried with tex4ht installed and the new 1.4.2 Win installer.

Since htlatex export never seems to have worked in WinLyX I
don't know that a solution would be for the new installer
to include tex4ht in its default download and installation
of Miktex when Miktex is missing. Htlatex would then work
from the command line without new users having to figure
out they needed to install another package too. I was
surprised that the default installation includes just
htlatex.exe but not the rest of the package.

I like the new installer.

Thank you,
Stephen





Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Steve Harris


About a problem originally reported on the User list.
The html viewer option and export option usually
handled by htlatex doesn't work in LyX Windows XP.

Paul A. Rubin wrote:

I don't see a directory for tex4ht on the path (unless I'm missing it).



Dean: Any ideas ?



Paul:
Did you download and install tex4ht?  (There are instructions for MiKTeX 
users at 
http://facweb.knowlton.ohio-state.edu/pviton/support/tex4ht.html.)  The 
htlatex.bat file is part of the installation, in \bin\win32\.


/Paul




A missing tex4ht package is confirmed as the problem.
I just tried the new 1.4.2 installer and it downloads
Miktex with an htlatex.exe file, but not the rest of it.

I reproduced the same error message as Dean earlier:

C:\texmf\miktex\bin>htlatex splash.tex
htlatex: the batch script could not be found.

In earlier versions of LyX, the installation searched
for an Html converter and under Preferences one could
usually find Latex -> HTML with htlatex listed/chosen.

This new installer apparently doesn't search for an html
converter although Html is still listed as a Viewer option.
I tried with tex4ht installed and the new 1.4.2 Win installer.

Since htlatex export never seems to have worked in WinLyX I
don't know that a solution would be for the new installer
to include tex4ht in its default download and installation
of Miktex when Miktex is missing. Htlatex would then work
from the command line without new users having to figure
out they needed to install another package too. I was
surprised that the default installation includes just
htlatex.exe but not the rest of the package.

I like the new installer.

Thank you,
Stephen



Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Dean O'Connor


ok thanks for staying with me on this on Steve ...

I have done a clean install of the Lyx bundle and also the latest Miktex 
2.5 on my home Windows XP computer.


I do not have any C:\texmf\usr\bin.

I have tried your suggestions of the xypic.tex etc.

I have set the PATH to a minimum of paths needed.

#1 Here I try to execute with the bundled Miktex:

C:\texmf\miktex\bin>path
PATH=c:\program 
files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Program 
Files\gs\gs8.54\bin;C:\Program Files\LyX14\bin;C:\Program Files

\LyX14\shell\bin;C:\WINDOWS\system32

C:\texmf\miktex\bin>htlatex xypic.tex
htlatex: the batch script could not be found.

#2 Here I try to execute with Miktex 2.5

C:\Program Files\MiKTeX 2.5\miktex\bin>path
PATH=C:\Program Files\MiKTeX 2.5\miktex\bin;c:\program 
files\imagemagick-6.2.8-q16;C:\Program Files\gs\gs8.54\bin;C:\Program

Files\LyX14\bin;C:\Program Files\LyX14\shell\bin;C:\WINDOWS\system32;

C:\Program Files\MiKTeX 2.5\miktex\bin>htlatex xypic.tex
htlatex: The Windows command script file could not be found.


In both cases if I add a htlatex.bat to the bin directory, the bat file 
is executed but nothing else happens.


Without knowing this system at all really, it seems as tho:
a) this htlatex.bat file MUST be present. Has anyone else got one ? If 
so where from ?
b) the contents of this .bat calls other things that actually do the 
conversion. Is the an example of the contents around ?


I have googled my butt off trying to find hits for this, but to no avail.

I cannot really make my environment any simpler.
Is there any config of some sort you have to run on Miktex after install 
to set things up right ?


So I have done 2 straight forward installs on 2 seperate PC's, no 
tweaking and exactly the same results.
There must be something fundamental missing here. An extra step no 
documented ???


btw with your comment "SH: You meant MIKTEX~2.5 not MIKTEX~1.5, right? "
I think it was just a coincidental windows name shortening that made it 
look like i had 1.5 on, really it was 2.5 for sure.


Cheers
Dean

Steve Harris wrote:

Dean O'Connor wrote:

Hello Dean,

I'm going to interweave my reply into your post rather
than bottom post, starting each with an "SH:"


Much appreciate all that info.

Firstly I hope the Lyx website can add the Export->HTML (etc) to their
list of Known Bugs. Save a lot of grief. If its there, appologies I
could not see it.



SH: I didn't see it either. I saw saw comments about latex2html
and files not being copied from tmp directories, but nothing
about the long hang when trying to export as html.

LyX runs a process called "configure" which finds different helper
apps. Sometimes you can see it finding htlatex in the black dos box.

So LyX calles htlatex if you have it installed which means making
sure that htlatex runs from the command line is a priority since
if it doesn't run from the command line it surely won't run from LyX.


Now onto the work around.

The Lyx 1.4.2 all-in-one install puts all these in the Lyx Path Prefix:
C:\Program Files\LyX14\latextools;C:\Program
Files\LyX14\python;C:\Program
Files\LyX14\shell\bin;C:\texmf\miktex\bin;C:\Program
Files\gs\gs8.54\bin;C:\Program Files\ImageMagick-6.2.8-Q16



SH: I don't know what goes into latextools, but this looks pretty good.


This is my env path value:

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Perl\bin\;C:\WINDOWS\
system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\LyX14\python

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\ImageMagick-6.2.8-Q16;C:\Program Files\LyX14\python

The Miktex directory with the Lyx bundle is: C:\texmf\miktex\bin

If I type "convert" I get the ImageMagick one.



SH: This also looks pretty good.


I also have installed the latest Miktex 2.5 beta (just now) and tried
running htlatex from there.
In a separate command window for that I put its own path at front of
PATH.
Ie. Above path prefixed with: C:\Program Files\MiKTeX 2.5\miktex\bin

In both the bundle and the beta Miktex envir

Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Paul A. Rubin

Dean O'Connor wrote:


This is my env path value:

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Perl\bin\;C:\WINDOWS\
system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\LyX14\python


I don't see a directory for tex4ht on the path (unless I'm missing it).
 
The Miktex directory with the Lyx bundle is: C:\texmf\miktex\bin


If I type "convert" I get the ImageMagick one.

I also have installed the latest Miktex 2.5 beta (just now) and tried
running htlatex from there.
In a separate command window for that I put its own path at front of
PATH.
Ie. Above path prefixed with: C:\Program Files\MiKTeX 2.5\miktex\bin

In both the bundle and the beta Miktex environments (which use the same
ImageMagick and GS paths) I get the same problem.

If I run htlatex.exe .. They both say: 


C:\texmf\miktex\bin>htlatex c:\docs\newfile1.tex
htlatex: the batch script could not be found.

C:\PROGRA~1\MIKTEX~1.5\miktex\bin>htlatex c:\docs\newfile1.tex
htlatex: The Windows command script file could not be found.

If I add an empty htlatex.bat file to both directories, it stops that
error, but nothing happens. Ie. It executes that batch file.
Why ? What is it with the batch file ?
Obviously I am missing some fundamental Miktex piece of the puzzle here,
but to be honest both installs were smooth as.

Any ideas ?


Did you download and install tex4ht?  (There are instructions for MiKTeX 
users at 
http://facweb.knowlton.ohio-state.edu/pviton/support/tex4ht.html.)  The 
htlatex.bat file is part of the installation, in \bin\win32\.


/Paul



Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Steve Harris

Dean O'Connor wrote:

Hello Dean,

I'm going to interweave my reply into your post rather
than bottom post, starting each with an "SH:"


Much appreciate all that info.

Firstly I hope the Lyx website can add the Export->HTML (etc) to their
list of Known Bugs. Save a lot of grief. If its there, appologies I
could not see it.



SH: I didn't see it either. I saw saw comments about latex2html
and files not being copied from tmp directories, but nothing
about the long hang when trying to export as html.

LyX runs a process called "configure" which finds different helper
apps. Sometimes you can see it finding htlatex in the black dos box.

So LyX calles htlatex if you have it installed which means making
sure that htlatex runs from the command line is a priority since
if it doesn't run from the command line it surely won't run from LyX.


Now onto the work around.

The Lyx 1.4.2 all-in-one install puts all these in the Lyx Path Prefix:
C:\Program Files\LyX14\latextools;C:\Program
Files\LyX14\python;C:\Program
Files\LyX14\shell\bin;C:\texmf\miktex\bin;C:\Program
Files\gs\gs8.54\bin;C:\Program Files\ImageMagick-6.2.8-Q16



SH: I don't know what goes into latextools, but this looks pretty good.


This is my env path value:

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Perl\bin\;C:\WINDOWS\
system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\LyX14\python

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\ImageMagick-6.2.8-Q16;C:\Program Files\LyX14\python

The Miktex directory with the Lyx bundle is: C:\texmf\miktex\bin

If I type "convert" I get the ImageMagick one.



SH: This also looks pretty good.


I also have installed the latest Miktex 2.5 beta (just now) and tried
running htlatex from there.
In a separate command window for that I put its own path at front of
PATH.
Ie. Above path prefixed with: C:\Program Files\MiKTeX 2.5\miktex\bin

In both the bundle and the beta Miktex environments (which use the same
ImageMagick and GS paths) I get the same problem.

If I run htlatex.exe .. They both say: 


C:\texmf\miktex\bin>htlatex c:\docs\newfile1.tex
htlatex: the batch script could not be found.

C:\PROGRA~1\MIKTEX~1.5\miktex\bin>htlatex c:\docs\newfile1.tex
htlatex: The Windows command script file could not be found.



SH: You meant MIKTEX~2.5 not MIKTEX~1.5, right?
I saw the first error message here (part of the Miktex Library)



http://www.koders.com/cpp/fid6740B87FEE382B9ACFF601ACB7D55D929FEFD106.aspx

// find batch file
  _TCHAR szScriptPath[_MAX_PATH];
  if (! FindBatchFile(szName, szScriptPath))
{
  _ftprintf (stderr,
 _T("%s: the batch script could not be found.\n"),
 szName);
  return (1);

--

SH: I've never seen the other error message. htlatex.exe is
an executable, it might invoke a script but I'm not so sure
that htlatex is corrupt because it isn't a script.

Let's make sure you actually have it: C:\texmf\miktex\bin
and I also have it in C:\texmf\usr\bin
check to see if htlatex.exe is actually there.

http://www.mathematik.uni-marburg.de/~gumm/LyX/Using_XYpic_in_LyX.htm
This webpage demonstrates "htlatex xypic.tex" -> xypic.html

http://www.mathematik.uni-marburg.de/%7Egumm/LyX/xypic/
download xypic.tex, xypic.aux, and xyfigure.png into your
C:\texmf\miktex\bin and run "htlatex xypic.tex" from C:\texmf\miktex\bin
If it works you can remove all the .png files with "del *.png" 
I suspect it is not going to work. I want to remove a troubleshooting
variable even though the way you did it above should work properly.

I want to be sure about htlatex.exe existing in your Miktex2.5 package
also. htlatex should be under \texmf\miktex\bin in this location too.
But these downloads come in small, large, and total. You may not
have received the tex4ht.cab which contains htlatex.exe in the
download you chose, so make sure htlatex.exe exists there.


If I add an empty htlatex.bat file to both direct

RE: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Daniel Watkins
Dean O'Connor wrote:
> Firstly I hope the Lyx website can add the Export->HTML (etc) to their
> list of Known Bugs. Save a lot of grief. If its there, appologies I
> could not see it.

If you go to http://bugzilla.lyx.org/ you will find you can file the bug
report yourself.

Dan



RE: Export/View to HTML/Word/OO.Writer not working at all

2006-07-13 Thread Dean O'Connor


Much appreciate all that info.

Firstly I hope the Lyx website can add the Export->HTML (etc) to their
list of Known Bugs. Save a lot of grief. If its there, appologies I
could not see it.

Now onto the work around.

The Lyx 1.4.2 all-in-one install puts all these in the Lyx Path Prefix:
C:\Program Files\LyX14\latextools;C:\Program
Files\LyX14\python;C:\Program
Files\LyX14\shell\bin;C:\texmf\miktex\bin;C:\Program
Files\gs\gs8.54\bin;C:\Program Files\ImageMagick-6.2.8-Q16

This is my env path value:

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Perl\bin\;C:\WINDOWS\
system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\LyX14\python

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\ImageMagick-6.2.8-Q16;C:\Program Files\LyX14\python

The Miktex directory with the Lyx bundle is: C:\texmf\miktex\bin

If I type "convert" I get the ImageMagick one.

I also have installed the latest Miktex 2.5 beta (just now) and tried
running htlatex from there.
In a separate command window for that I put its own path at front of
PATH.
Ie. Above path prefixed with: C:\Program Files\MiKTeX 2.5\miktex\bin

In both the bundle and the beta Miktex environments (which use the same
ImageMagick and GS paths) I get the same problem.

If I run htlatex.exe .. They both say: 

C:\texmf\miktex\bin>htlatex c:\docs\newfile1.tex
htlatex: the batch script could not be found.

C:\PROGRA~1\MIKTEX~1.5\miktex\bin>htlatex c:\docs\newfile1.tex
htlatex: The Windows command script file could not be found.

If I add an empty htlatex.bat file to both directories, it stops that
error, but nothing happens. Ie. It executes that batch file.
Why ? What is it with the batch file ?
Obviously I am missing some fundamental Miktex piece of the puzzle here,
but to be honest both installs were smooth as.

Any ideas ?

Cheers
Dean.

-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED] 
Sent: Friday, 14 July 2006 4:09 PM
To: Dean O'Connor
Subject: Re: Export/View to HTML/Word/OO.Writer not working at all

Dean O'Connor wrote:

> 
> Now this thread talks about same problem and someone gives a 
> workaround, but that work around doesn't seem to work.
> 
> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg48496.html
> 
> If I type that dos command I get this error: "htlatex: the batch 
> script could not be found."
> I have tried adding C:\texmf\miktex\bin to my PATH.
> 

You don't have Imagemagick and/or Ghostscript in your Windows Path or
they are not installed. Imagemagick uses convert.exe and I think
Ghostscript uses gswin32c.exe. GSview is gsview32.exe which may be
optional but very useful... Or you have conflicts from other installed
programs that use different versions of these same filenamed commands.
Move the others to the end of your Path.
You can find duplicates with the Windows Search tool.

The export to html is broken in LyX. But not the export to .tex.
Run htlatex on the exported .tex file. Running htlatex from the command
line is not broken, not a bug; if it doesn't work the problem is how
your system is set up.

Regards,
Stephen



Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-13 Thread Steve Harris

Dean O'Connor wrote:

I have freshly installed the lastest Lyx 1.4.2 r1, using the net
installer.

I can creates docs and view DVI without problems. Looks great.

But if I try to Export (or View) to HTML I get an "error occurred whilst
running htlatex" errors.

Firstly error is that htlatex still has problems with paths with spaces
in it, so in Lyx opts I have to change Temp (and prob Working) directory
from the Windows defaults to something like c:\docs and c:\tmp

When that is fixed I get the show stopper error where it shows a temp
file name (cut off screen tho).

Previously in 1.4.1, this would complete hang htlatex (for me) and I'd
have to kill the htlatex.exe process to recover.

For Exporting to Word I get a similar error, but this shows just the
file name (original without full path, not a tmp file) followed by args.

Exporting to OO.Writer there is no error, but no output either.

Exporting to PDF is fine.

Now this thread talks about same problem and someone gives a workaround,
but that work around doesn't seem to work.

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg48496.html

If I type that dos command I get this error: "htlatex: the batch script
could not be found."
I have tried adding C:\texmf\miktex\bin to my PATH.

Also this guy has a similar dos command that also gives me same error.
http://www.goland.org/lyx/#x1-90008

If it really is a known bug, can someone (a dev?) possibly give some
explanation and possible a work around that works.
I have looked in the dev mail achive a bit, see some sorta related hits,
but nothing concrete.
A workaround/fix that allows me to still use the File -> Export would be
nce :)

Cheers
Dean.



I wrote one of those messages, Steogeb is Stephen with my fingers
on the wrong keys. The export from LyX to html doesn't work. But
htlatex from the command line *always* works to produce html.

htlatex uses ImageMagick and Ghostscript and I didn't see you
mention having them installed and in your Windows path. My path:

c:\imagemagick;C:\ghostgum\gsview;C:\gs\gsv8.51\bin;C:\perl;C:\Python24;
C:\aspell;C:\aspell\bin;C:\texmf\miktex\bin;C:\Msys\1.0\bin; {C:\lyx\~}
I also have those in LyX->Tools->Preferences->Paths->Path_prefix:

I don't think you need Perl anymore, Aspell is optional, and
Msys/Python might not be used in this case. Make sure you have
these programs installed and in your Path because other LyX
activities may invoke them, especially Imagemagick and Ghostscript.

Another problem is if you have convert.exe or Ghostscript in
the Path from other programs ahead of the ones you need. Cygwin
is a prime example, if you have it, put it at the end of Path.
I don't know where your installer puts these helper apps because
I have them already installed and it doesn't install anything.
But, I think python and the shell/Msys are in the LyX directory.
Which means you need to check on GS* and Imagemagick.

This is not working because of your environment _not a bug_.
Also oolatex is htlatex dressed up with command line options:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn3.html

"Different variants of the htlatex command may be invoked by
introducing the commands as arguments to a driver named mk4ht.
When provided without arguments, the driver lists the commands
it recognizes.

mk4ht mzlatex filename "html,3" (htlatex filename "html,3,xhtml,mozilla" 
" -cmozhtf")


mk4ht oolatex filename 	(htlatex filename "xhtml,ooffice" "ooffice/! 
-coo") ...


OpenOffice and MS Word

A translation for an OpenOffice format can be requested by the
‘\oolatex’ command. The command is a variant of htlatex in which
the first list of options holds the entries ‘xhtml,ooffice’, the
second list holds the entry ‘-cmozhtf’ preceded by a space, and
the third list contains ‘-coo’ (htlatex filename "xhtml,ooffice"
"ooffice/! -cmozhtf" "-coo" "-cvalidate"). The output of a command
‘oolatex filename’ is a zipped file named with a ‘.sxw’ extension."

I have used "htlatex foo.tex" producing foo.html and imported
it into Word with excellent results. If you searched for this
I've provided urls which prove it amongst those posts. one was
Gumm's website and the other demoarticle.html.

Importing the html into OpenOffice and exporting to Word
was nearly just as good as directly importing into Word.
I haven't compared it to the oolatex->.sxw->Word method.

Ares got this to work also. But he wasn't pleased with the
default .png output that displays equations in the doc.
So he used "htaltex foo.tex "html,jpg" which are larger
files. For some systems, the default .pngs works very well.

--

Stephen
"Once you eliminate the impossible, whatever remains, no matter
how improbable, must be the truth." SH: Sherlock Holmes (Doyle)


Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-13 Thread Bo Peng

I have not tried htlatex on windows. When I tried ooffice format,
windows told me that "zip.exe not found" so the final step could not
be completed. I would suggest that you export to latex and try these
conversion tools in a command window. In this way, you will see what
has gone wrong with the conversion.

It is not exactly lyx' fault that these external conversion scripts do
not work well under windows.

Cheers,
Bo