Re: Converting to HTML

2008-04-05 Thread Pavel Sanda
 My question is whether I can insert a command that will appear in the 
 header of an .html file created by LyX. I'd like to do it through the 
 document settings or other means. Some background follows.

you can define your own script converting tex-html.

in preamble you will add some tex comment which does not change anything wrt
tex output but will be cought by your script. in case such comment is detected
you just pass the control to the previous script _and_ change the output file.

 I want to put some sort of security on the web versions to at least make it 
 difficult to print the file. When I used OpenOffice, I could save a .pdf 
 that required a password for printing.

don't see how to do directly inside lyx, but iirc pdftk utilities do this job,
so with some tweaking of your export scripts this could be automatized too.

With LyX, I didn't see how to do 
 this, but I inserted the lines:

 style media=print

 body {display: none;}

  /style

imho these attempts to secure docs against printing are just waste of your time,
only very weak students dont find way how to put it in print.

pavel


Re: Converting to HTML

2008-04-05 Thread Pavel Sanda
 My question is whether I can insert a command that will appear in the 
 header of an .html file created by LyX. I'd like to do it through the 
 document settings or other means. Some background follows.

you can define your own script converting tex-html.

in preamble you will add some tex comment which does not change anything wrt
tex output but will be cought by your script. in case such comment is detected
you just pass the control to the previous script _and_ change the output file.

 I want to put some sort of security on the web versions to at least make it 
 difficult to print the file. When I used OpenOffice, I could save a .pdf 
 that required a password for printing.

don't see how to do directly inside lyx, but iirc pdftk utilities do this job,
so with some tweaking of your export scripts this could be automatized too.

With LyX, I didn't see how to do 
 this, but I inserted the lines:

 style media=print

 body {display: none;}

  /style

imho these attempts to secure docs against printing are just waste of your time,
only very weak students dont find way how to put it in print.

pavel


Re: Converting to HTML

2008-04-05 Thread Pavel Sanda
> My question is whether I can insert a command that will appear in the 
> header of an .html file created by LyX. I'd like to do it through the 
> document settings or other means. Some background follows.

you can define your own script converting tex->html.

in preamble you will add some tex comment which does not change anything wrt
tex output but will be cought by your script. in case such comment is detected
you just pass the control to the previous script _and_ change the output file.

> I want to put some sort of security on the web versions to at least make it 
> difficult to print the file. When I used OpenOffice, I could save a .pdf 
> that required a password for printing.

don't see how to do directly inside lyx, but iirc pdftk utilities do this job,
so with some tweaking of your export scripts this could be automatized too.

>With LyX, I didn't see how to do 
> this, but I inserted the lines:
>
> 
>
> body {display: none;}
>
>  

imho these attempts to secure docs against printing are just waste of your time,
only very weak students dont find way how to put it in print.

pavel


Re: converting to html

2006-03-08 Thread Lee Yeoh

On 08/03/2006, at 10:06 PM, Stephen Harris wrote:

- Original Message - From: Lee Yeoh [EMAIL PROTECTED]

Hi,
I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X  
10.4.5.  I'm finding it very cool, a little bit of a learning  
curve to start  with, but pretty good in the end.
I'm specifically having problems converting to html (I want some   
documents on my palm v.4.1, which seems to have no DVI viewer or   
decent PDF viewer available, unfortunately).
I can export fine, but the html file appears to reference   
several .png files for some of the mathematical symbols that  
aren't  created. I thought it might have had something to do with  
not having  libpng, so i got that too, but that made no difference.
I googled exhaustively, and checked the wiki, but to no avail. If   
anyone can help me out it would be much appreciated.

Thanks,
Lee.



I would go to a temp directory under the /texmf tree and
place the .tex file which you want to convert there.
Run htlatex foo.tex from the command line.
This should generate an html file plus a bunch of png
files (maybe in sub-directory of the temp directory).

Now load the file in a web browser. Does it display
properly? If not, check to see if the png file actually
exists but the path to it is incorrect in the html source.

If it works on your machine, then it should work later.
on the Palm. If it doesn't display on the Palm later then
the html file and image files (which are in another sub-dir
having the same name) both haven't been transported
to the Palm. In the Html file under View, you can see
the source which can be edited in a text editor. I've
had to edit the source because the directory on the
machine one have moved the html file and sub-dir to,
doesn't have the same directory structure as the machine
that the html file was created on (also check image filename).
htlatex or some other html converter comes bundled with
Latex and LyX invokes htlatex to convert html files. The
conversions always have to be proofread. And there is a
htlatex webpage that explains how to tweak the conversion
with different switches from the command line. If you have
some png images which display then edit the source code
to make any images which don't display appear by using
the format; model the typing structure that does work.
I haven't had the experience where some png files were
not generated. Do all the images appear if you View the
document in pdf format before exporting to html?

Regards,
Stephen



Hi Stephen,

Thanks for the quick reply.  I ran the command line htlatex, and it  
appeared to create similar files as when I originally tried it (using  
the export html menu item). There were no png files created at all.  
There were none in the same directory (as referenced in the html  
file), and I tried a search for the name, but found nothing. PDF  
seems to display fine...


Actually, reading the terminal output, there are a whole lot of error  
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had  
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.


Re: converting to html

2006-03-08 Thread Stephen Harris


- Original Message - 
From: Lee Yeoh [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Wednesday, March 08, 2006 12:45 AM
Subject: converting to html



Hi,


I can export fine, but the html file appears to reference  
several .png files for some of the mathematical symbols that aren't  
created. I thought it might have had something to do with not having  
libpng, so i got that too, but that made no difference.




That is how htlatex works. It converts most equations to
png files. These filenames are embedded in the body of the 
html code. The png files need to go with the html file. Or the

browser can't locate the png files to display them in the places
they occur in the html doc which gets represented in the browser.
I think you may need to know how html works. 


Thanks,
Lee.

--
Lee Yeoh
[EMAIL PROTECTED]




Re: converting to html

2006-03-08 Thread Stephen Harris


- Original Message - 
From: Lee Yeoh [EMAIL PROTECTED]

To: Stephen Harris [EMAIL PROTECTED]; lyx-users@lists.lyx.org
Sent: Wednesday, March 08, 2006 3:30 AM
Subject: Re: converting to html



On 08/03/2006, at 10:06 PM, Stephen Harris wrote:
- Original Message - From: Lee Yeoh   



file), and I tried a search for the name, but found nothing. PDF  
seems to display fine...


Actually, reading the terminal output, there are a whole lot of error  
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had  
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.


Tetex or Miktex is a must have and it does some conversions
with epstopdf and sometimes Ghostscript does conversions.
Python, and also sed.exe , sh.exe , are needed, Aspell optional.

How about ImageMagick, that has a convert.exe, did you
install that yet? Remember to run LyX-Reconfigure if a
new program is installed that you want LyX to recognize.




Re: converting to html

2006-03-08 Thread Bennett Helm

On Mar 8, 2006, at 6:30 AM, Lee Yeoh wrote:

Thanks for the quick reply.  I ran the command line htlatex, and it  
appeared to create similar files as when I originally tried it  
(using the export html menu item). There were no png files created  
at all. There were none in the same directory (as referenced in the  
html file), and I tried a search for the name, but found nothing.  
PDF seems to display fine...


Actually, reading the terminal output, there are a whole lot of  
error messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I  
had another look and couldn't see anything obvious. Any hints?


You need ImageMagick. Either fink or i-Installer will let you install  
it easily.


Bennett


Re: converting to html

2006-03-08 Thread David L. Johnson
On Wed, 8 Mar 2006 19:45:32 +1100
Lee Yeoh [EMAIL PROTECTED] wrote:

 Hi,
 
 I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X 10.4.5.  
 I'm finding it very cool, a little bit of a learning curve to start  
 with, but pretty good in the end.
 
 I'm specifically having problems converting to html (I want some  
 documents on my palm v.4.1, which seems to have no DVI viewer or  
 decent PDF viewer available, unfortunately).
 
 I can export fine, but the html file appears to reference  
 several .png files for some of the mathematical symbols that aren't  
 created. I thought it might have had something to do with not having  
 libpng, so i got that too, but that made no difference.

There are several options to generate html from latex files.  You should be
able to use tth (I gather this is a Windows machine, which I know little
about, but check the tth website to see whether there is a Windows version;
there probably is), which does not generate bitmap graphics of mathematical
expressions; it does it all in (really ugly code) html, and it displays quite
nicely on most browsers.  It is at least worth a try.  One thing to check is
how whatever browser you have with the PDA handles the code.  I will send you
a sample output by e-mail.

LyX should be able to be re-configured to use tth instead of whatever you are
using.

-- 

David L. Johnson

   __o   | Accept risk.  Accept responsibility.  Put a lawyer out of
 _`\(,_  | business.  
(_)/ (_) | 
   


Re: converting to html

2006-03-08 Thread Paul A. Rubin

Lee Yeoh wrote:



Actually, reading the terminal output, there are a whole lot of error 
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent 
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had 
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.



LyX uses the ImageMagick convert utility to convert between graphics 
formats (in this case, from Postscript to PNG).  The error message 
indicates convert was not found.  So the first question is, did you 
install ImageMagick?  If yes, then make sure its directory is on the 
path prefix (Edit-Preferences-Paths-PATH prefix).


/Paul



Re: converting to html

2006-03-08 Thread Lee Yeoh

On 09/03/2006, at 1:06 AM, David L. Johnson wrote:
There are several options to generate html from latex files.  You  
should be
able to use tth (I gather this is a Windows machine, which I know  
little
about, but check the tth website to see whether there is a Windows  
version;
there probably is), which does not generate bitmap graphics of  
mathematical
expressions; it does it all in (really ugly code) html, and it  
displays quite
nicely on most browsers.  It is at least worth a try.  One thing to  
check is
how whatever browser you have with the PDA handles the code.  I  
will send you

a sample output by e-mail.

LyX should be able to be re-configured to use tth instead of  
whatever you are

using.



Thanks to everyone that helped me out, it *was* (the lack of)  
ImageMagick in the end that caused the problems. I thought I had  
installed it, but due to dependencies and the order I installed (I  
suppose), it didn't work the first time.


I attempted the tth-converted file David sent me, but unfortunately  
it was no good on my palm, using Plucker, with strange formatting  
such as odd ruled-line breaks mid-formulae. (It *is* only palm v.4,  
so perhaps I am limited in my options.)


I did have the default htlatex working reasonably well, but on my  
palm I appear to run into two other problems.


1. The code I use for nesting a list item *on the same line* as an  
itemize item doesn't translate. I use the ERT code {} within an  
itemise paragraph, and then the list environment on the next (nested  
right one), which displays fine on pdf, but converts onto the next  
line on all html. (This is a relatively minor issue.)


2. Certain characters don't seem to work on my palm (possible de- 
encoding issues?). For example, instead of a dot product sign, I get  
#x00D7; and other symbols such as theta are similarly represented.  
I know this is probably just issues with my (old) palm's programs  
(Plucker), but would there be a way to force htlatex to encode more  
primitively and convert more symbols to png?


Thanks,
Lee.
--
Lee Yeoh
[EMAIL PROTECTED]




Re: converting to html

2006-03-08 Thread Lee Yeoh

On 08/03/2006, at 10:06 PM, Stephen Harris wrote:

- Original Message - From: Lee Yeoh [EMAIL PROTECTED]

Hi,
I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X  
10.4.5.  I'm finding it very cool, a little bit of a learning  
curve to start  with, but pretty good in the end.
I'm specifically having problems converting to html (I want some   
documents on my palm v.4.1, which seems to have no DVI viewer or   
decent PDF viewer available, unfortunately).
I can export fine, but the html file appears to reference   
several .png files for some of the mathematical symbols that  
aren't  created. I thought it might have had something to do with  
not having  libpng, so i got that too, but that made no difference.
I googled exhaustively, and checked the wiki, but to no avail. If   
anyone can help me out it would be much appreciated.

Thanks,
Lee.



I would go to a temp directory under the /texmf tree and
place the .tex file which you want to convert there.
Run htlatex foo.tex from the command line.
This should generate an html file plus a bunch of png
files (maybe in sub-directory of the temp directory).

Now load the file in a web browser. Does it display
properly? If not, check to see if the png file actually
exists but the path to it is incorrect in the html source.

If it works on your machine, then it should work later.
on the Palm. If it doesn't display on the Palm later then
the html file and image files (which are in another sub-dir
having the same name) both haven't been transported
to the Palm. In the Html file under View, you can see
the source which can be edited in a text editor. I've
had to edit the source because the directory on the
machine one have moved the html file and sub-dir to,
doesn't have the same directory structure as the machine
that the html file was created on (also check image filename).
htlatex or some other html converter comes bundled with
Latex and LyX invokes htlatex to convert html files. The
conversions always have to be proofread. And there is a
htlatex webpage that explains how to tweak the conversion
with different switches from the command line. If you have
some png images which display then edit the source code
to make any images which don't display appear by using
the format; model the typing structure that does work.
I haven't had the experience where some png files were
not generated. Do all the images appear if you View the
document in pdf format before exporting to html?

Regards,
Stephen



Hi Stephen,

Thanks for the quick reply.  I ran the command line htlatex, and it  
appeared to create similar files as when I originally tried it (using  
the export html menu item). There were no png files created at all.  
There were none in the same directory (as referenced in the html  
file), and I tried a search for the name, but found nothing. PDF  
seems to display fine...


Actually, reading the terminal output, there are a whole lot of error  
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had  
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.


Re: converting to html

2006-03-08 Thread Stephen Harris


- Original Message - 
From: Lee Yeoh [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Wednesday, March 08, 2006 12:45 AM
Subject: converting to html



Hi,


I can export fine, but the html file appears to reference  
several .png files for some of the mathematical symbols that aren't  
created. I thought it might have had something to do with not having  
libpng, so i got that too, but that made no difference.




That is how htlatex works. It converts most equations to
png files. These filenames are embedded in the body of the 
html code. The png files need to go with the html file. Or the

browser can't locate the png files to display them in the places
they occur in the html doc which gets represented in the browser.
I think you may need to know how html works. 


Thanks,
Lee.

--
Lee Yeoh
[EMAIL PROTECTED]




Re: converting to html

2006-03-08 Thread Stephen Harris


- Original Message - 
From: Lee Yeoh [EMAIL PROTECTED]

To: Stephen Harris [EMAIL PROTECTED]; lyx-users@lists.lyx.org
Sent: Wednesday, March 08, 2006 3:30 AM
Subject: Re: converting to html



On 08/03/2006, at 10:06 PM, Stephen Harris wrote:
- Original Message - From: Lee Yeoh   



file), and I tried a search for the name, but found nothing. PDF  
seems to display fine...


Actually, reading the terminal output, there are a whole lot of error  
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had  
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.


Tetex or Miktex is a must have and it does some conversions
with epstopdf and sometimes Ghostscript does conversions.
Python, and also sed.exe , sh.exe , are needed, Aspell optional.

How about ImageMagick, that has a convert.exe, did you
install that yet? Remember to run LyX-Reconfigure if a
new program is installed that you want LyX to recognize.




Re: converting to html

2006-03-08 Thread Bennett Helm

On Mar 8, 2006, at 6:30 AM, Lee Yeoh wrote:

Thanks for the quick reply.  I ran the command line htlatex, and it  
appeared to create similar files as when I originally tried it  
(using the export html menu item). There were no png files created  
at all. There were none in the same directory (as referenced in the  
html file), and I tried a search for the name, but found nothing.  
PDF seems to display fine...


Actually, reading the terminal output, there are a whole lot of  
error messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I  
had another look and couldn't see anything obvious. Any hints?


You need ImageMagick. Either fink or i-Installer will let you install  
it easily.


Bennett


Re: converting to html

2006-03-08 Thread David L. Johnson
On Wed, 8 Mar 2006 19:45:32 +1100
Lee Yeoh [EMAIL PROTECTED] wrote:

 Hi,
 
 I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X 10.4.5.  
 I'm finding it very cool, a little bit of a learning curve to start  
 with, but pretty good in the end.
 
 I'm specifically having problems converting to html (I want some  
 documents on my palm v.4.1, which seems to have no DVI viewer or  
 decent PDF viewer available, unfortunately).
 
 I can export fine, but the html file appears to reference  
 several .png files for some of the mathematical symbols that aren't  
 created. I thought it might have had something to do with not having  
 libpng, so i got that too, but that made no difference.

There are several options to generate html from latex files.  You should be
able to use tth (I gather this is a Windows machine, which I know little
about, but check the tth website to see whether there is a Windows version;
there probably is), which does not generate bitmap graphics of mathematical
expressions; it does it all in (really ugly code) html, and it displays quite
nicely on most browsers.  It is at least worth a try.  One thing to check is
how whatever browser you have with the PDA handles the code.  I will send you
a sample output by e-mail.

LyX should be able to be re-configured to use tth instead of whatever you are
using.

-- 

David L. Johnson

   __o   | Accept risk.  Accept responsibility.  Put a lawyer out of
 _`\(,_  | business.  
(_)/ (_) | 
   


Re: converting to html

2006-03-08 Thread Paul A. Rubin

Lee Yeoh wrote:



Actually, reading the terminal output, there are a whole lot of error 
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent 
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had 
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.



LyX uses the ImageMagick convert utility to convert between graphics 
formats (in this case, from Postscript to PNG).  The error message 
indicates convert was not found.  So the first question is, did you 
install ImageMagick?  If yes, then make sure its directory is on the 
path prefix (Edit-Preferences-Paths-PATH prefix).


/Paul



Re: converting to html

2006-03-08 Thread Lee Yeoh

On 09/03/2006, at 1:06 AM, David L. Johnson wrote:
There are several options to generate html from latex files.  You  
should be
able to use tth (I gather this is a Windows machine, which I know  
little
about, but check the tth website to see whether there is a Windows  
version;
there probably is), which does not generate bitmap graphics of  
mathematical
expressions; it does it all in (really ugly code) html, and it  
displays quite
nicely on most browsers.  It is at least worth a try.  One thing to  
check is
how whatever browser you have with the PDA handles the code.  I  
will send you

a sample output by e-mail.

LyX should be able to be re-configured to use tth instead of  
whatever you are

using.



Thanks to everyone that helped me out, it *was* (the lack of)  
ImageMagick in the end that caused the problems. I thought I had  
installed it, but due to dependencies and the order I installed (I  
suppose), it didn't work the first time.


I attempted the tth-converted file David sent me, but unfortunately  
it was no good on my palm, using Plucker, with strange formatting  
such as odd ruled-line breaks mid-formulae. (It *is* only palm v.4,  
so perhaps I am limited in my options.)


I did have the default htlatex working reasonably well, but on my  
palm I appear to run into two other problems.


1. The code I use for nesting a list item *on the same line* as an  
itemize item doesn't translate. I use the ERT code {} within an  
itemise paragraph, and then the list environment on the next (nested  
right one), which displays fine on pdf, but converts onto the next  
line on all html. (This is a relatively minor issue.)


2. Certain characters don't seem to work on my palm (possible de- 
encoding issues?). For example, instead of a dot product sign, I get  
#x00D7; and other symbols such as theta are similarly represented.  
I know this is probably just issues with my (old) palm's programs  
(Plucker), but would there be a way to force htlatex to encode more  
primitively and convert more symbols to png?


Thanks,
Lee.
--
Lee Yeoh
[EMAIL PROTECTED]




Re: converting to html

2006-03-08 Thread Lee Yeoh

On 08/03/2006, at 10:06 PM, Stephen Harris wrote:

- Original Message - From: "Lee Yeoh" <[EMAIL PROTECTED]>

Hi,
I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X  
10.4.5.  I'm finding it very cool, a little bit of a learning  
curve to start  with, but pretty good in the end.
I'm specifically having problems converting to html (I want some   
documents on my palm v.4.1, which seems to have no DVI viewer or   
decent PDF viewer available, unfortunately).
I can export fine, but the html file appears to reference   
several .png files for some of the mathematical symbols that  
aren't  created. I thought it might have had something to do with  
not having  libpng, so i got that too, but that made no difference.
I googled exhaustively, and checked the wiki, but to no avail. If   
anyone can help me out it would be much appreciated.

Thanks,
Lee.



I would go to a temp directory under the /texmf tree and
place the .tex file which you want to convert there.
Run "htlatex foo.tex" from the command line.
This should generate an html file plus a bunch of png
files (maybe in sub-directory of the temp directory).

Now load the file in a web browser. Does it display
properly? If not, check to see if the png file actually
exists but the path to it is incorrect in the html source.

If it works on your machine, then it should work later.
on the Palm. If it doesn't display on the Palm later then
the html file and image files (which are in another sub-dir
having the same name) both haven't been transported
to the Palm. In the Html file under View, you can see
the source which can be edited in a text editor. I've
had to edit the source because the directory on the
machine one have moved the html file and sub-dir to,
doesn't have the same directory structure as the machine
that the html file was created on (also check image filename).
htlatex or some other html converter comes bundled with
Latex and LyX invokes htlatex to convert html files. The
conversions always have to be proofread. And there is a
htlatex webpage that explains how to tweak the conversion
with different switches from the command line. If you have
some png images which display then edit the source code
to make any images which don't display appear by using
the format; model the typing structure that does work.
I haven't had the experience where some png files were
not generated. Do all the images appear if you View the
document in pdf format before exporting to html?

Regards,
Stephen



Hi Stephen,

Thanks for the quick reply.  I ran the command line htlatex, and it  
appeared to create similar files as when I originally tried it (using  
the export html menu item). There were no png files created at all.  
There were none in the same directory (as referenced in the html  
file), and I tried a search for the name, but found nothing. PDF  
seems to display fine...


Actually, reading the terminal output, there are a whole lot of error  
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had  
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.


Re: converting to html

2006-03-08 Thread Stephen Harris


- Original Message - 
From: "Lee Yeoh" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, March 08, 2006 12:45 AM
Subject: converting to html



Hi,


I can export fine, but the html file appears to reference  
several .png files for some of the mathematical symbols that aren't  
created. I thought it might have had something to do with not having  
libpng, so i got that too, but that made no difference.




That is how htlatex works. It converts most equations to
png files. These filenames are embedded in the body of the 
html code. The png files need to go with the html file. Or the

browser can't locate the png files to display them in the places
they occur in the html doc which gets represented in the browser.
I think you may need to know how html works. 


Thanks,
Lee.

--
Lee Yeoh
<[EMAIL PROTECTED]>




Re: converting to html

2006-03-08 Thread Stephen Harris


- Original Message - 
From: "Lee Yeoh" <[EMAIL PROTECTED]>

To: "Stephen Harris" <[EMAIL PROTECTED]>; <lyx-users@lists.lyx.org>
Sent: Wednesday, March 08, 2006 3:30 AM
Subject: Re: converting to html



On 08/03/2006, at 10:06 PM, Stephen Harris wrote:
- Original Message - From: "Lee Yeoh"   



file), and I tried a search for the name, but found nothing. PDF  
seems to display fine...


Actually, reading the terminal output, there are a whole lot of error  
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had  
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.


Tetex or Miktex is a must have and it does some conversions
with epstopdf and sometimes Ghostscript does conversions.
Python, and also sed.exe , sh.exe , are needed, Aspell optional.

How about ImageMagick, that has a convert.exe, did you
install that yet? Remember to run LyX->Reconfigure if a
new program is installed that you want LyX to recognize.




Re: converting to html

2006-03-08 Thread Bennett Helm

On Mar 8, 2006, at 6:30 AM, Lee Yeoh wrote:

Thanks for the quick reply.  I ran the command line htlatex, and it  
appeared to create similar files as when I originally tried it  
(using the export html menu item). There were no png files created  
at all. There were none in the same directory (as referenced in the  
html file), and I tried a search for the name, but found nothing.  
PDF seems to display fine...


Actually, reading the terminal output, there are a whole lot of  
error messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent  
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I  
had another look and couldn't see anything obvious. Any hints?


You need ImageMagick. Either fink or i-Installer will let you install  
it easily.


Bennett


Re: converting to html

2006-03-08 Thread David L. Johnson
On Wed, 8 Mar 2006 19:45:32 +1100
Lee Yeoh <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X 10.4.5.  
> I'm finding it very cool, a little bit of a learning curve to start  
> with, but pretty good in the end.
> 
> I'm specifically having problems converting to html (I want some  
> documents on my palm v.4.1, which seems to have no DVI viewer or  
> decent PDF viewer available, unfortunately).
> 
> I can export fine, but the html file appears to reference  
> several .png files for some of the mathematical symbols that aren't  
> created. I thought it might have had something to do with not having  
> libpng, so i got that too, but that made no difference.

There are several options to generate html from latex files.  You should be
able to use tth (I gather this is a Windows machine, which I know little
about, but check the tth website to see whether there is a Windows version;
there probably is), which does not generate bitmap graphics of mathematical
expressions; it does it all in (really ugly code) html, and it displays quite
nicely on most browsers.  It is at least worth a try.  One thing to check is
how whatever browser you have with the PDA handles the code.  I will send you
a sample output by e-mail.

LyX should be able to be re-configured to use tth instead of whatever you are
using.

-- 

David L. Johnson

   __o   | Accept risk.  Accept responsibility.  Put a lawyer out of
 _`\(,_  | business.  
(_)/ (_) | 
   


Re: converting to html

2006-03-08 Thread Paul A. Rubin

Lee Yeoh wrote:



Actually, reading the terminal output, there are a whole lot of error 
messages around the png conversion stage, for example:


System call: convert -trim +repage -density 110x110 -transparent 
'#FF' zzPhysics.ps Physics21x.png

sh: line 1: convert: command not found


I suppose I didn't download some part that I was meant too, but I had 
another look and couldn't see anything obvious. Any hints?


Thanks again,
Lee.



LyX uses the ImageMagick convert utility to convert between graphics 
formats (in this case, from Postscript to PNG).  The error message 
indicates convert was not found.  So the first question is, did you 
install ImageMagick?  If yes, then make sure its directory is on the 
path prefix (Edit->Preferences->Paths->PATH prefix).


/Paul



Re: converting to html

2006-03-08 Thread Lee Yeoh

On 09/03/2006, at 1:06 AM, David L. Johnson wrote:
There are several options to generate html from latex files.  You  
should be
able to use tth (I gather this is a Windows machine, which I know  
little
about, but check the tth website to see whether there is a Windows  
version;
there probably is), which does not generate bitmap graphics of  
mathematical
expressions; it does it all in (really ugly code) html, and it  
displays quite
nicely on most browsers.  It is at least worth a try.  One thing to  
check is
how whatever browser you have with the PDA handles the code.  I  
will send you

a sample output by e-mail.

LyX should be able to be re-configured to use tth instead of  
whatever you are

using.



Thanks to everyone that helped me out, it *was* (the lack of)  
ImageMagick in the end that caused the problems. I thought I had  
installed it, but due to dependencies and the order I installed (I  
suppose), it didn't work the first time.


I attempted the tth-converted file David sent me, but unfortunately  
it was no good on my palm, using Plucker, with strange formatting  
such as odd ruled-line breaks mid-formulae. (It *is* only palm v.4,  
so perhaps I am limited in my options.)


I did have the default htlatex working reasonably well, but on my  
palm I appear to run into two other problems.


1. The code I use for nesting a list item *on the same line* as an  
itemize item doesn't translate. I use the ERT code "{}" within an  
itemise paragraph, and then the list environment on the next (nested  
right one), which displays fine on pdf, but converts onto the next  
line on all html. (This is a relatively minor issue.)


2. Certain characters don't seem to work on my palm (possible de- 
encoding issues?). For example, instead of a dot product sign, I get  
"" and other symbols such as theta are similarly represented.  
I know this is probably just issues with my (old) palm's programs  
(Plucker), but would there be a way to force htlatex to encode more  
primitively and convert more symbols to png?


Thanks,
Lee.
--
Lee Yeoh
<[EMAIL PROTECTED]>