Lyx to html with plastex

2009-04-19 Thread Parul Bali
Hi All,

I am trying to convert a latex document to html on Windows using Plastex.
The latex document has png and eps images. On running the Plastex command
for conversion, I get the following error. Any ideas what is going on? I
have attached the lyx file and the plain latex file.

 

Thanks 

Parul Bali 


--

ERROR: Error while expanding includegraphics in

   D:/Computerlinks/Projects/Documentation/Lex/Test.tex on line 35

   ('TEXINPUTS')

ERROR: An error occurred while building the document object in

   D:/Computerlinks/Projects/Documentation/Lex/Test.tex on line 35

   ('TEXINPUTS')

Traceback (most recent call last):

  File plastex, line 108, in ?

main(sys.argv)

  File plastex, line 54, in main

tex.parse()

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 390, in parse

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\__init__.py, line 893, in
digest

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\Base\LaTeX\Sectioning.py,
line 29

4, in digest

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\Base\LaTeX\Floats.py, line
35, in

 digest

res = Environment.digest(self, tokens)

  File C:\Python24\Lib\site-packages\plasTeX\__init__.py, line 893, in
digest

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\__init__.py, line 877, in
digest

for item in tokens:

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 46, in next

return self._next()

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 296, in __iter__

tokens = obj.invoke(self)

  File C:\Python24\Lib\site-packages\plasTeX\Packages\graphicx.py, line
38, in

 invoke

img = os.path.abspath(tex.kpsewhich(f+e))

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 1300, in
kpsewhich

TEXINPUTS = os.environ[TEXINPUTS]

  File C:\Python24\lib\os.py, line 422, in __getitem__

return self.data[key.upper()]

KeyError: 'TEXINPUTS'



Test.lyx
Description: application/lyx


Test.tex
Description: Binary data


Re: Lyx to html with plastex

2009-04-19 Thread Uwe Stöhr

Parul Bali schrieb:


I am trying to convert a latex document to html on Windows using Plastex.
The latex document has png and eps images. On running the Plastex command
for conversion, I get the following error. Any ideas what is going on?


No, but you should give this new program a try:

http://www.nongnu.org/elyxer/

regards Uwe


Re: Lyx to html with plastex

2009-04-19 Thread Alex Fernandez
Hi Parul,

 I am trying to convert a latex document to html on Windows using Plastex.
 The latex document has png and eps images. On running the Plastex command
 for conversion, I get the following error. Any ideas what is going on?

 No, but you should give this new program a try:

 http://www.nongnu.org/elyxer/

Yes, please give eLyXer a try. Version 0.15 has just been published
with a few improvements. If your favorite mirror does not carry it
yet, just go to
  http://download.savannah.gnu.org/releases-noredirect/elyxer/

Your document is rendered acceptably, although the date does not come
out centered -- it will be solved for next version. If you need
anything else to make it work for you just let me know.

Thanks,

Alex.


RE: Lyx to html with plastex

2009-04-19 Thread Parul Bali
Hi Alex,

Thanks for this. The html file looks very good indeed. However, was
wondering if it would be possible to have separate html files for each page
(as is possible with Plastex). Also, noticed that the table of contents
isn't displayed. Is it in the works?

Thanks,
Parul

-Original Message-
From: alejandro...@gmail.com [mailto:alejandro...@gmail.com] On Behalf Of
Alex Fernandez
Sent: 19 April 2009 18:01
To: Uwe Stöhr
Cc: Parul Bali; lyx-users@lists.lyx.org
Subject: Re: Lyx to html with plastex

Hi Parul,

 I am trying to convert a latex document to html on Windows using Plastex.
 The latex document has png and eps images. On running the Plastex command
 for conversion, I get the following error. Any ideas what is going on?

 No, but you should give this new program a try:

 http://www.nongnu.org/elyxer/

Yes, please give eLyXer a try. Version 0.15 has just been published
with a few improvements. If your favorite mirror does not carry it
yet, just go to
  http://download.savannah.gnu.org/releases-noredirect/elyxer/

Your document is rendered acceptably, although the date does not come
out centered -- it will be solved for next version. If you need
anything else to make it work for you just let me know.

Thanks,

Alex.



Re: Lyx to html with plastex

2009-04-19 Thread Alex Fernandez
Hi again,

On Sun, Apr 19, 2009 at 7:50 PM, Parul Bali parul.sarasw...@gmail.com wrote:
 Thanks for this. The html file looks very good indeed. However, was
 wondering if it would be possible to have separate html files for each page
 (as is possible with Plastex). Also, noticed that the table of contents
 isn't displayed. Is it in the works?

The first item is in the works, as you can see in the user guide:
  http://www.nongnu.org/elyxer/userguide.html
What I want to achieve is to be able to segment the HTML page in
chapters, parts or sections. Actually I need it for my own documents,
so you can rest assured that the tool will eventually get there. Is
this what you want?

The second point (table of contents) is related. Since eLyXer does the
conversion on the fly, keeping minimal state information on memory, it
is not possible right now to generate a table of contents: at the top
of the document it is not known how many chapters or sections there
will be. So a second pass is necessary. At the moment the planned
extension is to create a second utility which does both things:
segment the page and create a table of contents where needed.

I cannot give dates for these developments, since they depend on the
usual factors: day job, family, etc. But I would like to have them
ready before summer. Until then your best bet is to segment the
documents manually.

Cheers,

Alex.


Lyx to html with plastex

2009-04-19 Thread Parul Bali
Hi All,

I am trying to convert a latex document to html on Windows using Plastex.
The latex document has png and eps images. On running the Plastex command
for conversion, I get the following error. Any ideas what is going on? I
have attached the lyx file and the plain latex file.

 

Thanks 

Parul Bali 


--

ERROR: Error while expanding includegraphics in

   D:/Computerlinks/Projects/Documentation/Lex/Test.tex on line 35

   ('TEXINPUTS')

ERROR: An error occurred while building the document object in

   D:/Computerlinks/Projects/Documentation/Lex/Test.tex on line 35

   ('TEXINPUTS')

Traceback (most recent call last):

  File plastex, line 108, in ?

main(sys.argv)

  File plastex, line 54, in main

tex.parse()

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 390, in parse

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\__init__.py, line 893, in
digest

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\Base\LaTeX\Sectioning.py,
line 29

4, in digest

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\Base\LaTeX\Floats.py, line
35, in

 digest

res = Environment.digest(self, tokens)

  File C:\Python24\Lib\site-packages\plasTeX\__init__.py, line 893, in
digest

item.digest(tokens)

  File C:\Python24\Lib\site-packages\plasTeX\__init__.py, line 877, in
digest

for item in tokens:

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 46, in next

return self._next()

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 296, in __iter__

tokens = obj.invoke(self)

  File C:\Python24\Lib\site-packages\plasTeX\Packages\graphicx.py, line
38, in

 invoke

img = os.path.abspath(tex.kpsewhich(f+e))

  File C:\Python24\Lib\site-packages\plasTeX\TeX.py, line 1300, in
kpsewhich

TEXINPUTS = os.environ[TEXINPUTS]

  File C:\Python24\lib\os.py, line 422, in __getitem__

return self.data[key.upper()]

KeyError: 'TEXINPUTS'



Test.lyx
Description: application/lyx


Test.tex
Description: Binary data


Re: Lyx to html with plastex

2009-04-19 Thread Uwe Stöhr

Parul Bali schrieb:


I am trying to convert a latex document to html on Windows using Plastex.
The latex document has png and eps images. On running the Plastex command
for conversion, I get the following error. Any ideas what is going on?


No, but you should give this new program a try:

http://www.nongnu.org/elyxer/

regards Uwe


Re: Lyx to html with plastex

2009-04-19 Thread Alex Fernandez
Hi Parul,

 I am trying to convert a latex document to html on Windows using Plastex.
 The latex document has png and eps images. On running the Plastex command
 for conversion, I get the following error. Any ideas what is going on?

 No, but you should give this new program a try:

 http://www.nongnu.org/elyxer/

Yes, please give eLyXer a try. Version 0.15 has just been published
with a few improvements. If your favorite mirror does not carry it
yet, just go to
  http://download.savannah.gnu.org/releases-noredirect/elyxer/

Your document is rendered acceptably, although the date does not come
out centered -- it will be solved for next version. If you need
anything else to make it work for you just let me know.

Thanks,

Alex.


RE: Lyx to html with plastex

2009-04-19 Thread Parul Bali
Hi Alex,

Thanks for this. The html file looks very good indeed. However, was
wondering if it would be possible to have separate html files for each page
(as is possible with Plastex). Also, noticed that the table of contents
isn't displayed. Is it in the works?

Thanks,
Parul

-Original Message-
From: alejandro...@gmail.com [mailto:alejandro...@gmail.com] On Behalf Of
Alex Fernandez
Sent: 19 April 2009 18:01
To: Uwe Stöhr
Cc: Parul Bali; lyx-users@lists.lyx.org
Subject: Re: Lyx to html with plastex

Hi Parul,

 I am trying to convert a latex document to html on Windows using Plastex.
 The latex document has png and eps images. On running the Plastex command
 for conversion, I get the following error. Any ideas what is going on?

 No, but you should give this new program a try:

 http://www.nongnu.org/elyxer/

Yes, please give eLyXer a try. Version 0.15 has just been published
with a few improvements. If your favorite mirror does not carry it
yet, just go to
  http://download.savannah.gnu.org/releases-noredirect/elyxer/

Your document is rendered acceptably, although the date does not come
out centered -- it will be solved for next version. If you need
anything else to make it work for you just let me know.

Thanks,

Alex.



Re: Lyx to html with plastex

2009-04-19 Thread Alex Fernandez
Hi again,

On Sun, Apr 19, 2009 at 7:50 PM, Parul Bali parul.sarasw...@gmail.com wrote:
 Thanks for this. The html file looks very good indeed. However, was
 wondering if it would be possible to have separate html files for each page
 (as is possible with Plastex). Also, noticed that the table of contents
 isn't displayed. Is it in the works?

The first item is in the works, as you can see in the user guide:
  http://www.nongnu.org/elyxer/userguide.html
What I want to achieve is to be able to segment the HTML page in
chapters, parts or sections. Actually I need it for my own documents,
so you can rest assured that the tool will eventually get there. Is
this what you want?

The second point (table of contents) is related. Since eLyXer does the
conversion on the fly, keeping minimal state information on memory, it
is not possible right now to generate a table of contents: at the top
of the document it is not known how many chapters or sections there
will be. So a second pass is necessary. At the moment the planned
extension is to create a second utility which does both things:
segment the page and create a table of contents where needed.

I cannot give dates for these developments, since they depend on the
usual factors: day job, family, etc. But I would like to have them
ready before summer. Until then your best bet is to segment the
documents manually.

Cheers,

Alex.


Lyx to html with plastex

2009-04-19 Thread Parul Bali
Hi All,

I am trying to convert a latex document to html on Windows using Plastex.
The latex document has png and eps images. On running the Plastex command
for conversion, I get the following error. Any ideas what is going on? I
have attached the lyx file and the plain latex file.

 

Thanks 

Parul Bali 


--

ERROR: Error while expanding "includegraphics" in

   D:/Computerlinks/Projects/Documentation/Lex/Test.tex on line 35

   ('TEXINPUTS')

ERROR: An error occurred while building the document object in

   D:/Computerlinks/Projects/Documentation/Lex/Test.tex on line 35

   ('TEXINPUTS')

Traceback (most recent call last):

  File "plastex", line 108, in ?

main(sys.argv)

  File "plastex", line 54, in main

tex.parse()

  File "C:\Python24\Lib\site-packages\plasTeX\TeX.py", line 390, in parse

item.digest(tokens)

  File "C:\Python24\Lib\site-packages\plasTeX\__init__.py", line 893, in
digest

item.digest(tokens)

  File "C:\Python24\Lib\site-packages\plasTeX\Base\LaTeX\Sectioning.py",
line 29

4, in digest

item.digest(tokens)

  File "C:\Python24\Lib\site-packages\plasTeX\Base\LaTeX\Floats.py", line
35, in

 digest

res = Environment.digest(self, tokens)

  File "C:\Python24\Lib\site-packages\plasTeX\__init__.py", line 893, in
digest

item.digest(tokens)

  File "C:\Python24\Lib\site-packages\plasTeX\__init__.py", line 877, in
digest

for item in tokens:

  File "C:\Python24\Lib\site-packages\plasTeX\TeX.py", line 46, in next

return self._next()

  File "C:\Python24\Lib\site-packages\plasTeX\TeX.py", line 296, in __iter__

tokens = obj.invoke(self)

  File "C:\Python24\Lib\site-packages\plasTeX\Packages\graphicx.py", line
38, in

 invoke

img = os.path.abspath(tex.kpsewhich(f+e))

  File "C:\Python24\Lib\site-packages\plasTeX\TeX.py", line 1300, in
kpsewhich

TEXINPUTS = os.environ["TEXINPUTS"]

  File "C:\Python24\lib\os.py", line 422, in __getitem__

return self.data[key.upper()]

KeyError: 'TEXINPUTS'



Test.lyx
Description: application/lyx


Test.tex
Description: Binary data


Re: Lyx to html with plastex

2009-04-19 Thread Uwe Stöhr

Parul Bali schrieb:


I am trying to convert a latex document to html on Windows using Plastex.
The latex document has png and eps images. On running the Plastex command
for conversion, I get the following error. Any ideas what is going on?


No, but you should give this new program a try:

http://www.nongnu.org/elyxer/

regards Uwe


Re: Lyx to html with plastex

2009-04-19 Thread Alex Fernandez
Hi Parul,

>> I am trying to convert a latex document to html on Windows using Plastex.
>> The latex document has png and eps images. On running the Plastex command
>> for conversion, I get the following error. Any ideas what is going on?
>
> No, but you should give this new program a try:
>
> http://www.nongnu.org/elyxer/

Yes, please give eLyXer a try. Version 0.15 has just been published
with a few improvements. If your favorite mirror does not carry it
yet, just go to
  http://download.savannah.gnu.org/releases-noredirect/elyxer/

Your document is rendered acceptably, although the date does not come
out centered -- it will be solved for next version. If you need
anything else to make it work for you just let me know.

Thanks,

Alex.


RE: Lyx to html with plastex

2009-04-19 Thread Parul Bali
Hi Alex,

Thanks for this. The html file looks very good indeed. However, was
wondering if it would be possible to have separate html files for each page
(as is possible with Plastex). Also, noticed that the table of contents
isn't displayed. Is it in the works?

Thanks,
Parul

-Original Message-
From: alejandro...@gmail.com [mailto:alejandro...@gmail.com] On Behalf Of
Alex Fernandez
Sent: 19 April 2009 18:01
To: Uwe Stöhr
Cc: Parul Bali; lyx-users@lists.lyx.org
Subject: Re: Lyx to html with plastex

Hi Parul,

>> I am trying to convert a latex document to html on Windows using Plastex.
>> The latex document has png and eps images. On running the Plastex command
>> for conversion, I get the following error. Any ideas what is going on?
>
> No, but you should give this new program a try:
>
> http://www.nongnu.org/elyxer/

Yes, please give eLyXer a try. Version 0.15 has just been published
with a few improvements. If your favorite mirror does not carry it
yet, just go to
  http://download.savannah.gnu.org/releases-noredirect/elyxer/

Your document is rendered acceptably, although the date does not come
out centered -- it will be solved for next version. If you need
anything else to make it work for you just let me know.

Thanks,

Alex.



Re: Lyx to html with plastex

2009-04-19 Thread Alex Fernandez
Hi again,

On Sun, Apr 19, 2009 at 7:50 PM, Parul Bali  wrote:
> Thanks for this. The html file looks very good indeed. However, was
> wondering if it would be possible to have separate html files for each page
> (as is possible with Plastex). Also, noticed that the table of contents
> isn't displayed. Is it in the works?

The first item is in the works, as you can see in the user guide:
  http://www.nongnu.org/elyxer/userguide.html
What I want to achieve is to be able to segment the HTML page in
chapters, parts or sections. Actually I need it for my own documents,
so you can rest assured that the tool will eventually get there. Is
this what you want?

The second point (table of contents) is related. Since eLyXer does the
conversion on the fly, keeping minimal state information on memory, it
is not possible right now to generate a table of contents: at the top
of the document it is not known how many chapters or sections there
will be. So a second pass is necessary. At the moment the planned
extension is to create a second utility which does both things:
segment the page and create a table of contents where needed.

I cannot give dates for these developments, since they depend on the
usual factors: day job, family, etc. But I would like to have them
ready before summer. Until then your best bet is to segment the
documents manually.

Cheers,

Alex.


Re: LyX to HTML?

2009-03-27 Thread Guenter Milde
On 2009-03-27, rgheck wrote:
 Anders Host-Madsen wrote:
 john j...@... writes:

 But looking at the web site, it looks like latex2html was not updated
 since 2001. That makes me somewhat reluctant to rely on it.

 As the old saying goes: If it ain't broke, why fix it? LaTeX itself 
 hasn't really changed since then, has it?

A lot of packages have evolved or been added during this time, so
your mileage may vary.

(Even the newer latex4ht did not recognize/word with the enumitem
package.)

Günter



Re: LyX to HTML?

2009-03-27 Thread Guenter Milde
On 2009-03-27, rgheck wrote:
 Anders Host-Madsen wrote:
 john j...@... writes:

 But looking at the web site, it looks like latex2html was not updated
 since 2001. That makes me somewhat reluctant to rely on it.

 As the old saying goes: If it ain't broke, why fix it? LaTeX itself 
 hasn't really changed since then, has it?

A lot of packages have evolved or been added during this time, so
your mileage may vary.

(Even the newer latex4ht did not recognize/word with the enumitem
package.)

Günter



Re: LyX to HTML?

2009-03-27 Thread Guenter Milde
On 2009-03-27, rgheck wrote:
> Anders Host-Madsen wrote:
>> john  writes:

>> But looking at the web site, it looks like latex2html was not updated
>> since 2001. That makes me somewhat reluctant to rely on it.

> As the old saying goes: If it ain't broke, why fix it? LaTeX itself 
> hasn't really changed since then, has it?

A lot of packages have evolved or been added during this time, so
your mileage may vary.

(Even the newer latex4ht did not recognize/word with the enumitem
package.)

Günter



Re: LyX to HTML?

2009-03-26 Thread rgheck

BH wrote:

On Wed, Mar 25, 2009 at 6:38 PM, Anders Host-Madsen
ahostmad...@yahoo.com wrote:
  

Typhoon typh...@... writes:




I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.
  

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?



Hevea can be installed via macports, and it's easy then to define a
converter in LyX that will go from latex to html.

I haven't used hevea, but I have used tex4ht, which is a part of
TeXLive; LyX should already recognize it.

  
The other possibility is plastex, which I haven't used but keep meaning 
to investigate. It's pure python, so should run anywhere LyX does.


rh


Bennett
  




Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
BH bewih...@... writes:

 I haven't used hevea, but I have used tex4ht, which is a part of
 TeXLive; LyX should already recognize it.
 
 Bennett

I tried using tex4ht on some other documents, and the result is
better than my initial judgement made them. Equations are actually
rendered quite faithfully. But, although this might not
be the right place, I wonder if anybody has some answers
to these questions

1. How do I change formatting, in particular font size? 
2. Similar, how to I change the margins (i.e., so that if I make
the browser window very wide, the text does not continue
to expand)

In general, I have a hard time finding documentation for tex4ht. The web
site says it's highly configurable, but I cannot figure out how.
My knowledge of CSS is limited to knowing what the 
acronym stands for.

3. It seems tex4ht uses latex to compile, and then translates.
That sounds good as it should respect the packages you use.
But, for example, I use enumitem, but that never seems to
work. How come?

4. Tables come out very poorly. Is that a general problem?






Re: LyX to HTML?

2009-03-26 Thread john
I have used LyX for many years (ab origine) and always used LaTeX2HTML
to create HTML documents.

The OpenSUSE distro's LyX package tries to use tex4ht (which comes with
the distro) but it is missing some vital ingredient and its export to
HTML does not work at all. However, you can load LaTeX2HTML from the
OpenSUSE DVD, and then configure LyX to use it instead of tex4ht.

The LaTeX2HTML program is a perl script originally written by Nikos
Dragos and maintained for many years by Ross Moore at an Australian
University. It is now maintained at the University of Beyreuth in
Germany. You can Google for it.

It does a very good job of understanding the documents I write (it is
intended for use in academic environments). But it does not fully
understand all of pdflatex's constructs.
As you would expect, you do need to tinker with the CSS files to get the
style of HTML layout you desire.
What I like about it is that you can configure it to produce a single
html page for the whole document, or break it into pages at the level
you choose (whether chapter, section, subsection, etc). It looks after
the navigation between pages (with Before, After, Up anchors).
It renders tables and included images correctly (although earlier
versions needed a patch from Ross Moore to translate tables).

I believe it can run wherever perl is installed (but I have no
experience of using MS or OSX).

John O'Gorman


Re: LyX to HTML?

2009-03-26 Thread M.O.B. i L.
Anders Host-Madsen wrote:
 Is there any good way to convert LyX (or LaTeX perhaps 
 more to the point) to HTML? I do know LyX can export 
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?
 
 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.

TtM, a TeX to MathML translator:
http://hutchinson.belmont.ma.us/tth/mml/.
TtM translates from Plain TeX and LaTeX into HTML including the
equations in the form of embedded MathML.

I have not tried it myself but it seems to work on:
http://www.my-tool.com/mathematics/maximaphp/mathml/.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
rgheck rgh...@... writes:

 The other possibility is plastex, which I haven't used but keep meaning 
 to investigate. It's pure python, so should run anywhere LyX does.

Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
john j...@... writes:

But looking at the web site, it looks like
latex2html was not updated since 2001. That makes
me somewhat reluctant to rely on it.



Re: LyX to HTML?

2009-03-26 Thread rgheck

Anders Host-Madsen wrote:

john j...@... writes:

But looking at the web site, it looks like latex2html was not updated since 
2001. That makes me somewhat reluctant to rely on it.

  
As the old saying goes: If it ain't broke, why fix it? LaTeX itself 
hasn't really changed since then, has it?


rh



Re: LyX to HTML?

2009-03-26 Thread rgheck

Anders Host-Madsen wrote:

rgheck rgh...@... writes:

  
The other possibility is plastex, which I haven't used but keep meaning 
to investigate. It's pure python, so should run anywhere LyX does.



Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.

  
Well, I'm glad to hear it works well, even if it doesn't do what you 
want. But yes, I think you can pretty much get plastex to do what you 
want. Once the LaTeX is parsed, you have this tree-thing, and the output 
routines are then highly customizable.


rh



Re: LyX to HTML?

2009-03-26 Thread rgheck

BH wrote:

On Wed, Mar 25, 2009 at 6:38 PM, Anders Host-Madsen
ahostmad...@yahoo.com wrote:
  

Typhoon typh...@... writes:




I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.
  

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?



Hevea can be installed via macports, and it's easy then to define a
converter in LyX that will go from latex to html.

I haven't used hevea, but I have used tex4ht, which is a part of
TeXLive; LyX should already recognize it.

  
The other possibility is plastex, which I haven't used but keep meaning 
to investigate. It's pure python, so should run anywhere LyX does.


rh


Bennett
  




Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
BH bewih...@... writes:

 I haven't used hevea, but I have used tex4ht, which is a part of
 TeXLive; LyX should already recognize it.
 
 Bennett

I tried using tex4ht on some other documents, and the result is
better than my initial judgement made them. Equations are actually
rendered quite faithfully. But, although this might not
be the right place, I wonder if anybody has some answers
to these questions

1. How do I change formatting, in particular font size? 
2. Similar, how to I change the margins (i.e., so that if I make
the browser window very wide, the text does not continue
to expand)

In general, I have a hard time finding documentation for tex4ht. The web
site says it's highly configurable, but I cannot figure out how.
My knowledge of CSS is limited to knowing what the 
acronym stands for.

3. It seems tex4ht uses latex to compile, and then translates.
That sounds good as it should respect the packages you use.
But, for example, I use enumitem, but that never seems to
work. How come?

4. Tables come out very poorly. Is that a general problem?






Re: LyX to HTML?

2009-03-26 Thread john
I have used LyX for many years (ab origine) and always used LaTeX2HTML
to create HTML documents.

The OpenSUSE distro's LyX package tries to use tex4ht (which comes with
the distro) but it is missing some vital ingredient and its export to
HTML does not work at all. However, you can load LaTeX2HTML from the
OpenSUSE DVD, and then configure LyX to use it instead of tex4ht.

The LaTeX2HTML program is a perl script originally written by Nikos
Dragos and maintained for many years by Ross Moore at an Australian
University. It is now maintained at the University of Beyreuth in
Germany. You can Google for it.

It does a very good job of understanding the documents I write (it is
intended for use in academic environments). But it does not fully
understand all of pdflatex's constructs.
As you would expect, you do need to tinker with the CSS files to get the
style of HTML layout you desire.
What I like about it is that you can configure it to produce a single
html page for the whole document, or break it into pages at the level
you choose (whether chapter, section, subsection, etc). It looks after
the navigation between pages (with Before, After, Up anchors).
It renders tables and included images correctly (although earlier
versions needed a patch from Ross Moore to translate tables).

I believe it can run wherever perl is installed (but I have no
experience of using MS or OSX).

John O'Gorman


Re: LyX to HTML?

2009-03-26 Thread M.O.B. i L.
Anders Host-Madsen wrote:
 Is there any good way to convert LyX (or LaTeX perhaps 
 more to the point) to HTML? I do know LyX can export 
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?
 
 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.

TtM, a TeX to MathML translator:
http://hutchinson.belmont.ma.us/tth/mml/.
TtM translates from Plain TeX and LaTeX into HTML including the
equations in the form of embedded MathML.

I have not tried it myself but it seems to work on:
http://www.my-tool.com/mathematics/maximaphp/mathml/.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
rgheck rgh...@... writes:

 The other possibility is plastex, which I haven't used but keep meaning 
 to investigate. It's pure python, so should run anywhere LyX does.

Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
john j...@... writes:

But looking at the web site, it looks like
latex2html was not updated since 2001. That makes
me somewhat reluctant to rely on it.



Re: LyX to HTML?

2009-03-26 Thread rgheck

Anders Host-Madsen wrote:

john j...@... writes:

But looking at the web site, it looks like latex2html was not updated since 
2001. That makes me somewhat reluctant to rely on it.

  
As the old saying goes: If it ain't broke, why fix it? LaTeX itself 
hasn't really changed since then, has it?


rh



Re: LyX to HTML?

2009-03-26 Thread rgheck

Anders Host-Madsen wrote:

rgheck rgh...@... writes:

  
The other possibility is plastex, which I haven't used but keep meaning 
to investigate. It's pure python, so should run anywhere LyX does.



Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.

  
Well, I'm glad to hear it works well, even if it doesn't do what you 
want. But yes, I think you can pretty much get plastex to do what you 
want. Once the LaTeX is parsed, you have this tree-thing, and the output 
routines are then highly customizable.


rh



Re: LyX to HTML?

2009-03-26 Thread rgheck

BH wrote:

On Wed, Mar 25, 2009 at 6:38 PM, Anders Host-Madsen
 wrote:
  

Typhoon  writes:




I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.
  

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?



Hevea can be installed via macports, and it's easy then to define a
converter in LyX that will go from latex to html.

I haven't used hevea, but I have used tex4ht, which is a part of
TeXLive; LyX should already recognize it.

  
The other possibility is plastex, which I haven't used but keep meaning 
to investigate. It's pure python, so should run anywhere LyX does.


rh


Bennett
  




Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
BH  writes:

> I haven't used hevea, but I have used tex4ht, which is a part of
> TeXLive; LyX should already recognize it.
> 
> Bennett

I tried using tex4ht on some other documents, and the result is
better than my initial judgement made them. Equations are actually
rendered quite faithfully. But, although this might not
be the right place, I wonder if anybody has some answers
to these questions

1. How do I change formatting, in particular font size? 
2. Similar, how to I change the margins (i.e., so that if I make
the browser window very wide, the text does not continue
to expand)

In general, I have a hard time finding documentation for tex4ht. The web
site says it's highly configurable, but I cannot figure out how.
My knowledge of CSS is limited to knowing what the 
acronym stands for.

3. It seems tex4ht uses latex to compile, and then translates.
That sounds good as it should respect the packages you use.
But, for example, I use enumitem, but that never seems to
work. How come?

4. Tables come out very poorly. Is that a general problem?






Re: LyX to HTML?

2009-03-26 Thread john
I have used LyX for many years (ab origine) and always used LaTeX2HTML
to create HTML documents.

The OpenSUSE distro's LyX package tries to use tex4ht (which comes with
the distro) but it is missing some vital ingredient and its export to
HTML does not work at all. However, you can load LaTeX2HTML from the
OpenSUSE DVD, and then configure LyX to use it instead of tex4ht.

The LaTeX2HTML program is a perl script originally written by Nikos
Dragos and maintained for many years by Ross Moore at an Australian
University. It is now maintained at the University of Beyreuth in
Germany. You can Google for it.

It does a very good job of understanding the documents I write (it is
intended for use in academic environments). But it does not fully
understand all of pdflatex's constructs.
As you would expect, you do need to tinker with the CSS files to get the
style of HTML layout you desire.
What I like about it is that you can configure it to produce a single
html page for the whole document, or break it into pages at the level
you choose (whether chapter, section, subsection, etc). It looks after
the navigation between pages (with Before, After, Up anchors).
It renders tables and included images correctly (although earlier
versions needed a patch from Ross Moore to translate tables).

I believe it can run wherever perl is installed (but I have no
experience of using MS or OSX).

John O'Gorman


Re: LyX to HTML?

2009-03-26 Thread M.O.B. i L.
Anders Host-Madsen wrote:
> Is there any good way to convert LyX (or LaTeX perhaps 
> more to the point) to HTML? I do know LyX can export 
> to HTML, but the result is not pretty; it looks so
> last century. Also, many packages seems to be
> stripped away (such as enumitem). There is no
> options to format the HTML to look nice.
> I tried to google for LaTeX to HTML
> converters, but it seems few are actively maintained.
> Perhaps hyperlatex would be an option? There is also
> elyxer, which produces nice looking output, but has
> too many missing features. Any ideas?
> 
> I want to move all my word processing from MS Word
> to LyX, but one of the things that keeps me with Word
> is that it can do fair (not great, but fair) HTML conversion.

TtM, a TeX to MathML translator:
.
TtM translates from Plain TeX and LaTeX into HTML including the
equations in the form of embedded MathML.

I have not tried it myself but it seems to work on:
.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
rgheck  writes:

> The other possibility is plastex, which I haven't used but keep meaning 
> to investigate. It's pure python, so should run anywhere LyX does.

Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.



Re: LyX to HTML?

2009-03-26 Thread Anders Host-Madsen
john  writes:

But looking at the web site, it looks like
latex2html was not updated since 2001. That makes
me somewhat reluctant to rely on it.



Re: LyX to HTML?

2009-03-26 Thread rgheck

Anders Host-Madsen wrote:

john  writes:

But looking at the web site, it looks like latex2html was not updated since 
2001. That makes me somewhat reluctant to rely on it.

  
As the old saying goes: If it ain't broke, why fix it? LaTeX itself 
hasn't really changed since then, has it?


rh



Re: LyX to HTML?

2009-03-26 Thread rgheck

Anders Host-Madsen wrote:

rgheck  writes:

  
The other possibility is plastex, which I haven't used but keep meaning 
to investigate. It's pure python, so should run anywhere LyX does.



Now I tried out Plastex. The concept is a little different.
It makes the latex document into a complete, hierarchical web page.
The result is quite good (e.g., tables are rendered well, as
opposed to Tex4ht). I my case, though, I just want to
embed the html into an existing web page, with its
own navigational tools, so this is not exactly what I want.
But the documentation is comprehensive, so maybe
it can be configured to makes the document into a single
web page.

  
Well, I'm glad to hear it works well, even if it doesn't do what you 
want. But yes, I think you can pretty much get plastex to do what you 
want. Once the LaTeX is parsed, you have this tree-thing, and the output 
routines are then highly customizable.


rh



LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Is there any good way to convert LyX (or LaTeX perhaps 
more to the point) to HTML? I do know LyX can export 
to HTML, but the result is not pretty; it looks so
last century. Also, many packages seems to be
stripped away (such as enumitem). There is no
options to format the HTML to look nice.
I tried to google for LaTeX to HTML
converters, but it seems few are actively maintained.
Perhaps hyperlatex would be an option? There is also
elyxer, which produces nice looking output, but has
too many missing features. Any ideas?

I want to move all my word processing from MS Word
to LyX, but one of the things that keeps me with Word
is that it can do fair (not great, but fair) HTML conversion.



Re: LyX to HTML?

2009-03-25 Thread witek . firlej
On Wed, Mar 25, 2009 at 21:16, Anders Host-Madsen ahostmad...@yahoo.com wrote:
 Is there any good way to convert LyX (or LaTeX perhaps
 more to the point) to HTML? I do know LyX can export
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?

 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.


http://wiki.lyx.org/Tools/ELyXer



-- 
::  Witek Firlej  ::
:: Studencka wyprawa do Chin http://chiny2009.pl ::
::  http://grizz.pl  ::  http://galeria.firlej.org  ::  jid:
grizz//jabster.pl  ::


Re: LyX to HTML?

2009-03-25 Thread Iain Mac Donald
On Wed, 25 Mar 2009 20:16:32 + (UTC)
Anders Host-Madsen ahostmad...@yahoo.com wrote:

 Is there any good way to convert LyX (or LaTeX perhaps 
 more to the point) to HTML?

Have a look at the recent past of this list and the discussion about
Introducing eLyXer.

Produces very nice (X)HTML.

http://www.nongnu.org/elyxer/

Regards,
Iain.


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Iain Mac Donald iainj...@... writes:

Thanks, as I stated, I did try elyxer. That
actually produces nice output, but it seems
to support a very limited set of latex/lyx.
None of my equations or numbered lists
come out correctly. But maybe this will one
day be a good tool. It appears to be new.

I do like the philosophy of hyperlatex: you insert
some special commands to modify the html.
That way you can maintain and update a
document that you want to publish both
as pdf/print and html.



Re: LyX to HTML?

2009-03-25 Thread Robert Orr


--- On Wed, 3/25/09, witek.fir...@gmail.com witek.fir...@gmail.com wrote:

From: witek.fir...@gmail.com witek.fir...@gmail.com
Subject: Re: LyX to HTML?
To: Anders Host-Madsen ahostmad...@yahoo.com
Cc: lyx-users@lists.lyx.org
Date: Wednesday, March 25, 2009, 4:40 PM

On Wed, Mar 25, 2009 at 21:16, Anders Host-Madsen ahostmad...@yahoo.com wrote:
 Is there any good way to convert LyX (or LaTeX perhaps
 more to the point) to HTML? I do know LyX can export
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?

 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.


http://wiki.lyx.org/Tools/ELyXer

I guess there are some creative ways to do this.  I tried several mentioned 
here on the list.



One means that I've found as an alternative has been to export .pdf,
then convert it to html by sending it to adobe.   



I know it is a roundabout way to do it, but the result has been surprisingly 
good.   



Phil





  




  

Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Robert Orr philip_...@... writes:


 One means that I've found as an alternative has been to export .pdf,
 then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?



Re: LyX to HTML?

2009-03-25 Thread Robert Orr


 One means that I've found as an alternative has been to export .pdf,
 then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?


  


I used the email service.   I converted a modernCV and an article.    Result 
was good.



http://www.adobe.com/products/acrobat/access_onlinetools.html




  

Re: LyX to HTML?

2009-03-25 Thread Typhoon
On Wed, 25 Mar 2009 20:16:32 + (UTC)
Anders Host-Madsen ahostmad...@yahoo.com wrote:

 Is there any good way to convert LyX (or LaTeX perhaps 
 more to the point) to HTML? I do know LyX can export 
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?
 
 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.
 
I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.



Alan


Re: LyX to HTML?

2009-03-25 Thread Alex Fernandez
Hi Anders,

 Thanks, as I stated, I did try elyxer. That
 actually produces nice output, but it seems
 to support a very limited set of latex/lyx.
 None of my equations or numbered lists
 come out correctly. But maybe this will one
 day be a good tool. It appears to be new.

eLyXer is indeed pretty new: I started playing with the idea in
January for my own purposes, and have published it just a couple of
weeks ago. What we can do is that you send me your document (you can
Loremipsumize it as wished, although it will remain completely
confidential) and I will try to make eLyXer work for you. That way if
it works the whole community benefits; and if it is beyond my modest
means, or you don't like the results, no harm done.

Other LyX users have helped me a lot to make improvements, as you can
see in the acknowledgements -- it could not have progressed so quickly
from a custom personal tool to something more or less usable without
them. I encourage other LyX users to do the same. That is after all
the true Open Source way, isn't it?

Thanks,

Alex.


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Typhoon typh...@... writes:


 I use tex4ht or hevea. I find that either one of them does a reasonable
 job if you then apply a custom CSS. But my work is always plain text,
 no images. I'm using Debian Lenny.

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?






Re: LyX to HTML?

2009-03-25 Thread Uwe Stöhr

Anders Host-Madsen schrieb:


I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.


Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?


tex4ht works on all platforms. It is normally accessed when you view your document as HTML from LyX. 
If this is not the case tex4ht is not installed. (it is often part of the LaTeX distribution).


regards Uwe


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Alex Fernandez ely...@... writes:

Thanks for making this available. I will experiment a little
more with it, and possibly send you some files. 



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen

 tex4ht works on all platforms. It is normally accessed when you 
 view your document as HTML from LyX. 
 If this is not the case tex4ht is not installed. 
 (it is often part of the LaTeX distribution).

Yes, the translation from within lyx works (htlatex is there). But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.






Re: LyX to HTML?

2009-03-25 Thread Uwe Stöhr

Anders Host-Madsen schrieb:


Yes, the translation from within lyx works (htlatex is there).


htlatex is one of tex4ht's commands.


But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.


tex4ht doesn't work well in all cases, but the new eLyXer is under development and even at this 
early state for me more useful than tex4ht.


regards Uwe


Re: LyX to HTML?

2009-03-25 Thread BH
On Wed, Mar 25, 2009 at 6:38 PM, Anders Host-Madsen
ahostmad...@yahoo.com wrote:
 Typhoon typh...@... writes:


 I use tex4ht or hevea. I find that either one of them does a reasonable
 job if you then apply a custom CSS. But my work is always plain text,
 no images. I'm using Debian Lenny.

 Thanks, hevea does look interesting. But it seems to be a unix thing.
 How can I use it on a Mac?

Hevea can be installed via macports, and it's easy then to define a
converter in LyX that will go from latex to html.

I haven't used hevea, but I have used tex4ht, which is a part of
TeXLive; LyX should already recognize it.

Bennett


Re: LyX to HTML?

2009-03-25 Thread Typhoon
On Wed, 25 Mar 2009 23:51:04 + (UTC)
Anders Host-Madsen ahostmad...@yahoo.com wrote:

 
  tex4ht works on all platforms. It is normally accessed when you 
  view your document as HTML from LyX. 
  If this is not the case tex4ht is not installed. 
  (it is often part of the LaTeX distribution).
 
 Yes, the translation from within lyx works (htlatex is there). But I'm
 not very satisfied with the result. Maybe it's possible to customize,
 as in heava? The documentation page seems to be down.

tex4ht produces quiet a detailed CSS. I think that your customisation
could be done through that. In the latest versions, the CSS is a
separate file.

Hevea produces a somewhat less detailed CSS, but it is included inline.

tex4ht puts footnotes in separate files, which I don't like. I suppose
that behaviour can be changed, but I don't know how to do it.

Hevea only seems to work with the standard classes - at least it
doesn't know about the memoir class. Again, that can probably be fixed
- just not by me :-).

Alan
 
 
 
 
 


LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Is there any good way to convert LyX (or LaTeX perhaps 
more to the point) to HTML? I do know LyX can export 
to HTML, but the result is not pretty; it looks so
last century. Also, many packages seems to be
stripped away (such as enumitem). There is no
options to format the HTML to look nice.
I tried to google for LaTeX to HTML
converters, but it seems few are actively maintained.
Perhaps hyperlatex would be an option? There is also
elyxer, which produces nice looking output, but has
too many missing features. Any ideas?

I want to move all my word processing from MS Word
to LyX, but one of the things that keeps me with Word
is that it can do fair (not great, but fair) HTML conversion.



Re: LyX to HTML?

2009-03-25 Thread witek . firlej
On Wed, Mar 25, 2009 at 21:16, Anders Host-Madsen ahostmad...@yahoo.com wrote:
 Is there any good way to convert LyX (or LaTeX perhaps
 more to the point) to HTML? I do know LyX can export
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?

 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.


http://wiki.lyx.org/Tools/ELyXer



-- 
::  Witek Firlej  ::
:: Studencka wyprawa do Chin http://chiny2009.pl ::
::  http://grizz.pl  ::  http://galeria.firlej.org  ::  jid:
grizz//jabster.pl  ::


Re: LyX to HTML?

2009-03-25 Thread Iain Mac Donald
On Wed, 25 Mar 2009 20:16:32 + (UTC)
Anders Host-Madsen ahostmad...@yahoo.com wrote:

 Is there any good way to convert LyX (or LaTeX perhaps 
 more to the point) to HTML?

Have a look at the recent past of this list and the discussion about
Introducing eLyXer.

Produces very nice (X)HTML.

http://www.nongnu.org/elyxer/

Regards,
Iain.


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Iain Mac Donald iainj...@... writes:

Thanks, as I stated, I did try elyxer. That
actually produces nice output, but it seems
to support a very limited set of latex/lyx.
None of my equations or numbered lists
come out correctly. But maybe this will one
day be a good tool. It appears to be new.

I do like the philosophy of hyperlatex: you insert
some special commands to modify the html.
That way you can maintain and update a
document that you want to publish both
as pdf/print and html.



Re: LyX to HTML?

2009-03-25 Thread Robert Orr


--- On Wed, 3/25/09, witek.fir...@gmail.com witek.fir...@gmail.com wrote:

From: witek.fir...@gmail.com witek.fir...@gmail.com
Subject: Re: LyX to HTML?
To: Anders Host-Madsen ahostmad...@yahoo.com
Cc: lyx-users@lists.lyx.org
Date: Wednesday, March 25, 2009, 4:40 PM

On Wed, Mar 25, 2009 at 21:16, Anders Host-Madsen ahostmad...@yahoo.com wrote:
 Is there any good way to convert LyX (or LaTeX perhaps
 more to the point) to HTML? I do know LyX can export
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?

 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.


http://wiki.lyx.org/Tools/ELyXer

I guess there are some creative ways to do this.  I tried several mentioned 
here on the list.



One means that I've found as an alternative has been to export .pdf,
then convert it to html by sending it to adobe.   



I know it is a roundabout way to do it, but the result has been surprisingly 
good.   



Phil





  




  

Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Robert Orr philip_...@... writes:


 One means that I've found as an alternative has been to export .pdf,
 then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?



Re: LyX to HTML?

2009-03-25 Thread Robert Orr


 One means that I've found as an alternative has been to export .pdf,
 then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?


  


I used the email service.   I converted a modernCV and an article.    Result 
was good.



http://www.adobe.com/products/acrobat/access_onlinetools.html




  

Re: LyX to HTML?

2009-03-25 Thread Typhoon
On Wed, 25 Mar 2009 20:16:32 + (UTC)
Anders Host-Madsen ahostmad...@yahoo.com wrote:

 Is there any good way to convert LyX (or LaTeX perhaps 
 more to the point) to HTML? I do know LyX can export 
 to HTML, but the result is not pretty; it looks so
 last century. Also, many packages seems to be
 stripped away (such as enumitem). There is no
 options to format the HTML to look nice.
 I tried to google for LaTeX to HTML
 converters, but it seems few are actively maintained.
 Perhaps hyperlatex would be an option? There is also
 elyxer, which produces nice looking output, but has
 too many missing features. Any ideas?
 
 I want to move all my word processing from MS Word
 to LyX, but one of the things that keeps me with Word
 is that it can do fair (not great, but fair) HTML conversion.
 
I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.



Alan


Re: LyX to HTML?

2009-03-25 Thread Alex Fernandez
Hi Anders,

 Thanks, as I stated, I did try elyxer. That
 actually produces nice output, but it seems
 to support a very limited set of latex/lyx.
 None of my equations or numbered lists
 come out correctly. But maybe this will one
 day be a good tool. It appears to be new.

eLyXer is indeed pretty new: I started playing with the idea in
January for my own purposes, and have published it just a couple of
weeks ago. What we can do is that you send me your document (you can
Loremipsumize it as wished, although it will remain completely
confidential) and I will try to make eLyXer work for you. That way if
it works the whole community benefits; and if it is beyond my modest
means, or you don't like the results, no harm done.

Other LyX users have helped me a lot to make improvements, as you can
see in the acknowledgements -- it could not have progressed so quickly
from a custom personal tool to something more or less usable without
them. I encourage other LyX users to do the same. That is after all
the true Open Source way, isn't it?

Thanks,

Alex.


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Typhoon typh...@... writes:


 I use tex4ht or hevea. I find that either one of them does a reasonable
 job if you then apply a custom CSS. But my work is always plain text,
 no images. I'm using Debian Lenny.

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?






Re: LyX to HTML?

2009-03-25 Thread Uwe Stöhr

Anders Host-Madsen schrieb:


I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.


Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?


tex4ht works on all platforms. It is normally accessed when you view your document as HTML from LyX. 
If this is not the case tex4ht is not installed. (it is often part of the LaTeX distribution).


regards Uwe


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Alex Fernandez ely...@... writes:

Thanks for making this available. I will experiment a little
more with it, and possibly send you some files. 



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen

 tex4ht works on all platforms. It is normally accessed when you 
 view your document as HTML from LyX. 
 If this is not the case tex4ht is not installed. 
 (it is often part of the LaTeX distribution).

Yes, the translation from within lyx works (htlatex is there). But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.






Re: LyX to HTML?

2009-03-25 Thread Uwe Stöhr

Anders Host-Madsen schrieb:


Yes, the translation from within lyx works (htlatex is there).


htlatex is one of tex4ht's commands.


But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.


tex4ht doesn't work well in all cases, but the new eLyXer is under development and even at this 
early state for me more useful than tex4ht.


regards Uwe


Re: LyX to HTML?

2009-03-25 Thread BH
On Wed, Mar 25, 2009 at 6:38 PM, Anders Host-Madsen
ahostmad...@yahoo.com wrote:
 Typhoon typh...@... writes:


 I use tex4ht or hevea. I find that either one of them does a reasonable
 job if you then apply a custom CSS. But my work is always plain text,
 no images. I'm using Debian Lenny.

 Thanks, hevea does look interesting. But it seems to be a unix thing.
 How can I use it on a Mac?

Hevea can be installed via macports, and it's easy then to define a
converter in LyX that will go from latex to html.

I haven't used hevea, but I have used tex4ht, which is a part of
TeXLive; LyX should already recognize it.

Bennett


Re: LyX to HTML?

2009-03-25 Thread Typhoon
On Wed, 25 Mar 2009 23:51:04 + (UTC)
Anders Host-Madsen ahostmad...@yahoo.com wrote:

 
  tex4ht works on all platforms. It is normally accessed when you 
  view your document as HTML from LyX. 
  If this is not the case tex4ht is not installed. 
  (it is often part of the LaTeX distribution).
 
 Yes, the translation from within lyx works (htlatex is there). But I'm
 not very satisfied with the result. Maybe it's possible to customize,
 as in heava? The documentation page seems to be down.

tex4ht produces quiet a detailed CSS. I think that your customisation
could be done through that. In the latest versions, the CSS is a
separate file.

Hevea produces a somewhat less detailed CSS, but it is included inline.

tex4ht puts footnotes in separate files, which I don't like. I suppose
that behaviour can be changed, but I don't know how to do it.

Hevea only seems to work with the standard classes - at least it
doesn't know about the memoir class. Again, that can probably be fixed
- just not by me :-).

Alan
 
 
 
 
 


LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Is there any good way to convert LyX (or LaTeX perhaps 
more to the point) to HTML? I do know LyX can export 
to HTML, but the result is not pretty; it looks so
last century. Also, many packages seems to be
stripped away (such as enumitem). There is no
options to format the HTML to look nice.
I tried to google for LaTeX to HTML
converters, but it seems few are actively maintained.
Perhaps hyperlatex would be an option? There is also
elyxer, which produces nice looking output, but has
too many missing features. Any ideas?

I want to move all my word processing from MS Word
to LyX, but one of the things that keeps me with Word
is that it can do fair (not great, but fair) HTML conversion.



Re: LyX to HTML?

2009-03-25 Thread witek . firlej
On Wed, Mar 25, 2009 at 21:16, Anders Host-Madsen  wrote:
> Is there any good way to convert LyX (or LaTeX perhaps
> more to the point) to HTML? I do know LyX can export
> to HTML, but the result is not pretty; it looks so
> last century. Also, many packages seems to be
> stripped away (such as enumitem). There is no
> options to format the HTML to look nice.
> I tried to google for LaTeX to HTML
> converters, but it seems few are actively maintained.
> Perhaps hyperlatex would be an option? There is also
> elyxer, which produces nice looking output, but has
> too many missing features. Any ideas?
>
> I want to move all my word processing from MS Word
> to LyX, but one of the things that keeps me with Word
> is that it can do fair (not great, but fair) HTML conversion.
>
>
http://wiki.lyx.org/Tools/ELyXer



-- 
::  Witek Firlej  ::
:: Studencka wyprawa do Chin http://chiny2009.pl ::
::  http://grizz.pl  ::  http://galeria.firlej.org  ::  jid:
grizz//jabster.pl  ::


Re: LyX to HTML?

2009-03-25 Thread Iain Mac Donald
On Wed, 25 Mar 2009 20:16:32 + (UTC)
Anders Host-Madsen  wrote:

> Is there any good way to convert LyX (or LaTeX perhaps 
> more to the point) to HTML?

Have a look at the recent past of this list and the discussion about
"Introducing eLyXer".

Produces very nice (X)HTML.

http://www.nongnu.org/elyxer/

Regards,
Iain.


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Iain Mac Donald  writes:

Thanks, as I stated, I did try elyxer. That
actually produces nice output, but it seems
to support a very limited set of latex/lyx.
None of my equations or numbered lists
come out correctly. But maybe this will one
day be a good tool. It appears to be new.

I do like the philosophy of hyperlatex: you insert
some special commands to modify the html.
That way you can maintain and update a
document that you want to publish both
as pdf/print and html.



Re: LyX to HTML?

2009-03-25 Thread Robert Orr


--- On Wed, 3/25/09, witek.fir...@gmail.com <witek.fir...@gmail.com> wrote:

From: witek.fir...@gmail.com <witek.fir...@gmail.com>
Subject: Re: LyX to HTML?
To: "Anders Host-Madsen" <ahostmad...@yahoo.com>
Cc: lyx-users@lists.lyx.org
Date: Wednesday, March 25, 2009, 4:40 PM

On Wed, Mar 25, 2009 at 21:16, Anders Host-Madsen <ahostmad...@yahoo.com> wrote:
> Is there any good way to convert LyX (or LaTeX perhaps
> more to the point) to HTML? I do know LyX can export
> to HTML, but the result is not pretty; it looks so
> last century. Also, many packages seems to be
> stripped away (such as enumitem). There is no
> options to format the HTML to look nice.
> I tried to google for LaTeX to HTML
> converters, but it seems few are actively maintained.
> Perhaps hyperlatex would be an option? There is also
> elyxer, which produces nice looking output, but has
> too many missing features. Any ideas?
>
> I want to move all my word processing from MS Word
> to LyX, but one of the things that keeps me with Word
> is that it can do fair (not great, but fair) HTML conversion.
>
>
http://wiki.lyx.org/Tools/ELyXer

I guess there are some creative ways to do this.  I tried several mentioned 
here on the list.



One means that I've found as an alternative has been to export .pdf,
then convert it to html by sending it to adobe.   



I know it is a roundabout way to do it, but the result has been surprisingly 
good.   



Phil





  




  

Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Robert Orr  writes:


> One means that I've found as an alternative has been to export .pdf,
> then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?



Re: LyX to HTML?

2009-03-25 Thread Robert Orr


> One means that I've found as an alternative has been to export .pdf,
> then convert it to html by sending it to adobe.   

I actually did try this earlier, using Acrobat Pro. 
But the result was terrible, absolutely terrible. 
Any tricks?


  


I used the email service.   I converted a modernCV and an article.    Result 
was good.



http://www.adobe.com/products/acrobat/access_onlinetools.html




  

Re: LyX to HTML?

2009-03-25 Thread Typhoon
On Wed, 25 Mar 2009 20:16:32 + (UTC)
Anders Host-Madsen  wrote:

> Is there any good way to convert LyX (or LaTeX perhaps 
> more to the point) to HTML? I do know LyX can export 
> to HTML, but the result is not pretty; it looks so
> last century. Also, many packages seems to be
> stripped away (such as enumitem). There is no
> options to format the HTML to look nice.
> I tried to google for LaTeX to HTML
> converters, but it seems few are actively maintained.
> Perhaps hyperlatex would be an option? There is also
> elyxer, which produces nice looking output, but has
> too many missing features. Any ideas?
> 
> I want to move all my word processing from MS Word
> to LyX, but one of the things that keeps me with Word
> is that it can do fair (not great, but fair) HTML conversion.
> 
I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.



Alan


Re: LyX to HTML?

2009-03-25 Thread Alex Fernandez
Hi Anders,

> Thanks, as I stated, I did try elyxer. That
> actually produces nice output, but it seems
> to support a very limited set of latex/lyx.
> None of my equations or numbered lists
> come out correctly. But maybe this will one
> day be a good tool. It appears to be new.

eLyXer is indeed pretty new: I started playing with the idea in
January for my own purposes, and have published it just a couple of
weeks ago. What we can do is that you send me your document (you can
Loremipsumize it as wished, although it will remain completely
confidential) and I will try to make eLyXer work for you. That way if
it works the whole community benefits; and if it is beyond my modest
means, or you don't like the results, no harm done.

Other LyX users have helped me a lot to make improvements, as you can
see in the acknowledgements -- it could not have progressed so quickly
from a custom personal tool to something more or less usable without
them. I encourage other LyX users to do the same. That is after all
the true Open Source way, isn't it?

Thanks,

Alex.


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Typhoon  writes:


> I use tex4ht or hevea. I find that either one of them does a reasonable
> job if you then apply a custom CSS. But my work is always plain text,
> no images. I'm using Debian Lenny.

Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?






Re: LyX to HTML?

2009-03-25 Thread Uwe Stöhr

Anders Host-Madsen schrieb:


I use tex4ht or hevea. I find that either one of them does a reasonable
job if you then apply a custom CSS. But my work is always plain text,
no images. I'm using Debian Lenny.


Thanks, hevea does look interesting. But it seems to be a unix thing.
How can I use it on a Mac?


tex4ht works on all platforms. It is normally accessed when you view your document as HTML from LyX. 
If this is not the case tex4ht is not installed. (it is often part of the LaTeX distribution).


regards Uwe


Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen
Alex Fernandez  writes:

Thanks for making this available. I will experiment a little
more with it, and possibly send you some files. 



Re: LyX to HTML?

2009-03-25 Thread Anders Host-Madsen

> tex4ht works on all platforms. It is normally accessed when you 
> view your document as HTML from LyX. 
> If this is not the case tex4ht is not installed. 
> (it is often part of the LaTeX distribution).

Yes, the translation from within lyx works (htlatex is there). But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.






Re: LyX to HTML?

2009-03-25 Thread Uwe Stöhr

Anders Host-Madsen schrieb:


Yes, the translation from within lyx works (htlatex is there).


htlatex is one of tex4ht's commands.


But I'm
not very satisfied with the result. Maybe it's possible to customize,
as in heava? The documentation page seems to be down.


tex4ht doesn't work well in all cases, but the new eLyXer is under development and even at this 
early state for me more useful than tex4ht.


regards Uwe


Re: LyX to HTML?

2009-03-25 Thread BH
On Wed, Mar 25, 2009 at 6:38 PM, Anders Host-Madsen
 wrote:
> Typhoon  writes:
>
>
>> I use tex4ht or hevea. I find that either one of them does a reasonable
>> job if you then apply a custom CSS. But my work is always plain text,
>> no images. I'm using Debian Lenny.
>
> Thanks, hevea does look interesting. But it seems to be a unix thing.
> How can I use it on a Mac?

Hevea can be installed via macports, and it's easy then to define a
converter in LyX that will go from latex to html.

I haven't used hevea, but I have used tex4ht, which is a part of
TeXLive; LyX should already recognize it.

Bennett


Re: LyX to HTML?

2009-03-25 Thread Typhoon
On Wed, 25 Mar 2009 23:51:04 + (UTC)
Anders Host-Madsen <ahostmad...@yahoo.com> wrote:

> 
> > tex4ht works on all platforms. It is normally accessed when you 
> > view your document as HTML from LyX. 
> > If this is not the case tex4ht is not installed. 
> > (it is often part of the LaTeX distribution).
> 
> Yes, the translation from within lyx works (htlatex is there). But I'm
> not very satisfied with the result. Maybe it's possible to customize,
> as in heava? The documentation page seems to be down.

tex4ht produces quiet a detailed CSS. I think that your customisation
could be done through that. In the latest versions, the CSS is a
separate file.

Hevea produces a somewhat less detailed CSS, but it is included inline.

tex4ht puts footnotes in separate files, which I don't like. I suppose
that behaviour can be changed, but I don't know how to do it.

Hevea only seems to work with the standard classes - at least it
doesn't know about the memoir class. Again, that can probably be fixed
- just not by me :-).

Alan
> 
> 
> 
> 
> 


Re: Introducing eLyXer: LyX to HTML converter

2009-03-14 Thread Alex Fernandez
Hi folks,

On Sat, Mar 14, 2009 at 3:21 AM, Christian Ridderström
christian.ridderst...@gmail.com wrote:
 I believe there are free hosting facilities for git repositories, or you can
 surely get an account within the LyX repository (Subversion at the moment).
 Just google for free git repository, or something like that. Or ask on the
 developers list...

Following Christian's recommendation the project is now hosted at
Savannah.nongnu.org. Be sure to visit the main page (with its cheesy
logo):
  http://www.nongnu.org/elyxer/
The wiki page now points there too.
  http://wiki.lyx.org/Tools/ELyXer
And to celebrate it I have published version 0.6 over there. It
supports Flex URLs and code, and alignment. In a little while it
should hit the mirrors:
  https://savannah.nongnu.org/files/?group=elyxer

This means that from now on I will publish all versions there without
announcing them here in the lyx-users list. (That is, unless enough
people request it; I could post a little notice over here every time a
new version is ready, which from now on should be more infrequent.)

Thanks to everyone who has so far downloaded the tool and tested it.
With your help it can only get better.

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-14 Thread Nikos Alexandris
On Sat, 2009-03-14 at 00:47 +0100, Alex Fernandez wrote:
 Hi folks,
 
 A new version of eLyXer is online:
   http://wiki.lyx.org/Tools/ELyXer
 Direct downloads:
   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz
   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip
 
 Richard Talley: image filenames with spaces should now be working.
 Nested lists are supported.
 Nikos Alexandris: Section*s are working. Images are harder than I
 thought ;) only scaling is working. To avoid the copyright notice just
 run:
   $ elyxer --nocopy source.lyx destination.html
 Joachim Osnabryg: mostly running under Python 2.3.5, may need some further 
 work.
 
 Thanks,
 
 Alex.

That's really GREAT :-)

Thank you for your work Alex. It started working and giving
meaningful/useful html output. There are, of course, always details
which can be improved but the beginning is half of everything!

I'll report sooner or later more details. Le me/us know how we can help
more from an end-user perspective.

Cheers, Nikos



Re: Introducing eLyXer: LyX to HTML converter

2009-03-14 Thread Alex Fernandez
Hi folks,

On Sat, Mar 14, 2009 at 3:21 AM, Christian Ridderström
christian.ridderst...@gmail.com wrote:
 I believe there are free hosting facilities for git repositories, or you can
 surely get an account within the LyX repository (Subversion at the moment).
 Just google for free git repository, or something like that. Or ask on the
 developers list...

Following Christian's recommendation the project is now hosted at
Savannah.nongnu.org. Be sure to visit the main page (with its cheesy
logo):
  http://www.nongnu.org/elyxer/
The wiki page now points there too.
  http://wiki.lyx.org/Tools/ELyXer
And to celebrate it I have published version 0.6 over there. It
supports Flex URLs and code, and alignment. In a little while it
should hit the mirrors:
  https://savannah.nongnu.org/files/?group=elyxer

This means that from now on I will publish all versions there without
announcing them here in the lyx-users list. (That is, unless enough
people request it; I could post a little notice over here every time a
new version is ready, which from now on should be more infrequent.)

Thanks to everyone who has so far downloaded the tool and tested it.
With your help it can only get better.

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-14 Thread Nikos Alexandris
On Sat, 2009-03-14 at 00:47 +0100, Alex Fernandez wrote:
 Hi folks,
 
 A new version of eLyXer is online:
   http://wiki.lyx.org/Tools/ELyXer
 Direct downloads:
   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz
   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip
 
 Richard Talley: image filenames with spaces should now be working.
 Nested lists are supported.
 Nikos Alexandris: Section*s are working. Images are harder than I
 thought ;) only scaling is working. To avoid the copyright notice just
 run:
   $ elyxer --nocopy source.lyx destination.html
 Joachim Osnabryg: mostly running under Python 2.3.5, may need some further 
 work.
 
 Thanks,
 
 Alex.

That's really GREAT :-)

Thank you for your work Alex. It started working and giving
meaningful/useful html output. There are, of course, always details
which can be improved but the beginning is half of everything!

I'll report sooner or later more details. Le me/us know how we can help
more from an end-user perspective.

Cheers, Nikos



Re: Introducing eLyXer: LyX to HTML converter

2009-03-14 Thread Alex Fernandez
Hi folks,

On Sat, Mar 14, 2009 at 3:21 AM, Christian Ridderström
 wrote:
> I believe there are free hosting facilities for git repositories, or you can
> surely get an account within the LyX repository (Subversion at the moment).
> Just google for free git repository, or something like that. Or ask on the
> developers list...

Following Christian's recommendation the project is now hosted at
Savannah.nongnu.org. Be sure to visit the main page (with its cheesy
logo):
  http://www.nongnu.org/elyxer/
The wiki page now points there too.
  http://wiki.lyx.org/Tools/ELyXer
And to celebrate it I have published version 0.6 over there. It
supports Flex URLs and code, and alignment. In a little while it
should hit the mirrors:
  https://savannah.nongnu.org/files/?group=elyxer

This means that from now on I will publish all versions there without
announcing them here in the lyx-users list. (That is, unless enough
people request it; I could post a little notice over here every time a
new version is ready, which from now on should be more infrequent.)

Thanks to everyone who has so far downloaded the tool and tested it.
With your help it can only get better.

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-14 Thread Nikos Alexandris
On Sat, 2009-03-14 at 00:47 +0100, Alex Fernandez wrote:
> Hi folks,
> 
> A new version of eLyXer is online:
>   http://wiki.lyx.org/Tools/ELyXer
> Direct downloads:
>   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.tar.gz
>   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-0.5.zip
> 
> Richard Talley: image filenames with spaces should now be working.
> Nested lists are supported.
> Nikos Alexandris: Section*s are working. Images are harder than I
> thought ;) only scaling is working. To avoid the copyright notice just
> run:
>   $ elyxer --nocopy source.lyx destination.html
> Joachim Osnabryg: mostly running under Python 2.3.5, may need some further 
> work.
> 
> Thanks,
> 
> Alex.

That's really GREAT :-)

Thank you for your work Alex. It started working and giving
meaningful/useful html output. There are, of course, always details
which can be improved but "the beginning is half of everything"!

I'll report sooner or later more details. Le me/us know how we can help
more from an end-user perspective.

Cheers, Nikos



Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread Joachim Osnabryg

Am 13.03.2009, 03:18 Uhr, schrieb Alex Fernandez:

It seems that your Python is not understanding the decorator syntax
for classmethods, which were introduced in Python 2.4:
  http://pyref.infogami.com/classmethod


I believe, but I'm not the one to understand these things.


The following command would verify that this is indeed the problem:
  $ python --version


I tried out:

joachim$ python --version
Unknown option: --
usage: python [option] ... [-c cmd | file | -] [arg] ...

... perhaps again specific to Mac-OSX, but:

joachim$ python -V
Python 2.3.5
localhost:/Developer/Applications joachim$ python_select -l
Available versions:
current none python23-apple python25

i. e. I have - besides python23-apple - also some python25, might be
incomplete. It had been installed together with some MacPorts program I
don't remember spontaneously. Because of a problem with LyX starting
Document = New, on advice of Konrad Hofbauer, I did then as I decribed
in that thread »defaults.lyx, lyx2lyx error in LyX 1.6 - resolved«:
-
localhost:/opt joachim$ sudo python_select python23-apple
Password:
Selecting version python23-apple for python


That resolved the problem. Experimentally today I tried to reselect  
python25

again, but the problem with LyX New came back, so I went immediately
back to python23-apple.


It would appear that Tiger comes with a Python 2.3 version. It is easy
to upgrade to a more current version:
  http://www.python.org/download/mac/


Unfortunately, on http://www.pythonmac.org/packages/ for Mac-OSX 10.4
Tiger there are only packages up to Python 2.4.1 and PPC ONLY. Python 2.5
seems to run only on  Mac-OSX 10.5 Leopard, if I understand well.


I would commit to make eLyXer work with Tiger, but only if you are
willing to be the guinea pig ... What do you think?


No problem with the role of guinea pig (the German Versuchskaninchen) with
the perspective of becoming a truffle pig and having eLyXer running
correctly on Mac-OSX 10.4.

But it seems rather impossible because of the python25 problem, as far
as I see.

=Has somebody activated python25 running on Mac-OSX 10.4 without problems
with LyX New? And if, which python 2.5 had you installed and how?

=Or have you, Alex, still an idea of resolving the problem?

But might be this would be wasted effort in the moment, for the time being
I share the happiness of Linuxers with eLyXer :-(

joachim
--
MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.1
MacBook Pro OSX 10.4.11 Tiger



Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread Alex Fernandez
 =Or have you, Alex, still an idea of resolving the problem?

With such a committed test subject as you, we may try to make eLyXer
work with Python 2.3 :D

I will send you a test version as soon as possible.

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread Richard Talley
Thank you for elyxer.

Running OS X 10.4.11 Tiger PPC with a Fink installed Python 2.5.2 in
/sw/bin/python.

I dropped a copy of elyxer into /usr/local/bin with the appropriate
owners and permissions.

I tried to process ~60 page document, book class, dozens of PNG
floating graphics, TOC, List of Figures, cross references. It's a
pretty generic technical document.

Lots of errors like this:

Parsing line 3000
Image images3/tweakui/my not found
Image images3/tweakui/internet not found
Error at 3246: \begin_deeper
Error at 3265: \end_deeper

Output html file had no graphics and no TOC.

-- Rich

On Thu, Mar 12, 2009 at 8:18 PM, Alex Fernandez alejandro...@gmail.com wrote:
 Hi, Joachim,

 OK, I dared to download and uncompress it.

 Great, another brave soul!

 And proceeded to the first step, with the response:

 joachim$ ../elyxer userguide.lyx userguide2.html
  File ../elyxer, line 21
@classmethod
^
 SyntaxError: invalid syntax

 It seems that your Python is not understanding the decorator syntax
 for classmethods, which were introduced in Python 2.4:
  http://pyref.infogami.com/classmethod
 The following command would verify that this is indeed the problem:
  $ python --version

 Might be because of Mac-OSX (as you haven’t tested it on Mac OS X)???

 You are right:
 MacBook Pro OSX 10.4.11 Tiger

 It would appear that Tiger comes with a Python 2.3 version. It is easy
 to upgrade to a more current version:
  http://www.python.org/download/mac/
 I would commit to make eLyXer work with Tiger, but only if you are
 willing to be the guinea pig -- I don't have a Python 2.3 installation
 and don't have the resources to create one. What do you think?

 Just to report it.

 Thanks!

 Alex.



Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread José Matos
On Friday 13 March 2009 14:59:20 Alex Fernandez wrote:
 With such a committed test subject as you, we may try to make eLyXer
 work with Python 2.3 :D

 I will send you a test version as soon as possible.

If that helps the minimum python version required by lyx is python-2.3.4 (if 
you are wondering about why the last 4 that is related with some unicode fixes 
there were only applied at that sub-version).

 Thanks,

 Alex.

-- 
José Abílio


  1   2   3   >