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 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 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 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


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?

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

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



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 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 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 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 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 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 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-25 Thread Typhoon
On Wed, 25 Mar 2009 23:51:04 + (UTC)
Anders Host-Madsen  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: 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 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 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 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 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
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 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 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 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 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


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

From: witek.fir...@gmail.com 
Subject: Re: LyX to HTML?
To: "Anders Host-Madsen" 
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  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
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 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 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  ::


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: 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-13 Thread Christian Ridderström

On Thu, 12 Mar 2009, Alex Fernandez wrote:

I have not published the repository for lack of a hosting facility (and 
lack of knowledge to set it up), but once I find a suitable place I will 
make it public.


Hi Alex,

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...


Btw, you may want more than just the repository, if people start giving 
you bug reports etc.


regards,
Christian

--
Christian Ridderström   Mobile: +46-70 687 39 44

Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread Alex Fernandez
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.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread Alex Fernandez
> 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).

It sure does help. I will try to make eLyXer compatible with at least 2.3.5.

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-13 Thread Alex Fernandez
> Lots of errors like this:
>
> Parsing line 3000
> Image images3/tweakui/my not found
> Image images3/tweakui/internet not found

I presume that the images have spaces in the path? -- the next version
should correct this problem.

> Error at 3246: \begin_deeper
> Error at 3265: \end_deeper

This is an unknown command (to eLyXer). I will modify the error
description to make it more specific.

> Output html file had no graphics and no TOC.

TOC is not supported yet. Could you please send me (privately) a copy
of your document, or at least the complete list of errors? In case
there is any problem: remove any sensitive material, I promise to keep
it confidential. Let's try to make it work.

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


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  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 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 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-12 Thread Alex Fernandez
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-12 Thread Joachim Osnabryg
Am 12.03.2009, 16:43 Uhr, schrieb Alex Fernandez  
:

Version 0.4 (20090312) is uploaded:
  http://wiki.lyx.org/Tools/ELyXer


OK, I dared to download and uncompress it.

And proceeded to the first step, with the response:

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

There is no userguide2.html in my /elyxer/docs directory.

So far, according to your userguide.lyx and .html not "everything is  
working fine".


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

Just to report it.

Good luck, 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-12 Thread Alex Fernandez
Nikos,

> it started producing html's for me :D

Great!

> Notes (which you probably already know):
> # using the KOMA-Script article class
>
> 1. All footnotes appear as normal text exactly there where they are
> inserted in LyX' document and therefore cannot be distinguished from the
> text-body.

As to the first point you may try to copy the docs/lyx.css file to
your html directory. It will improve significantly.

The rest will have to wait for the 0.5 (20090313) version :D

> 5. Pictures are used without the scaling that is defined within LyX
> (well... I don't know how hard this would be to implement).

Actually it doesn't looks too difficult.

Thanks for the report,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Nikos Alexandris
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote:
> Hi again,
> 
> Version 0.4 (20090312) is uploaded:
>   http://wiki.lyx.org/Tools/ELyXer
> Direct link:
>   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz
> It now ignores ERT, and supports footnotes, newlines, bibitem entries
> and citations. If you are interested in living on the rough frontiers
> of command line tools please give it a spin.
> 
> Thanks,
> 
> Alex.

OK,

it started producing html's for me :D

Notes (which you probably already know):
# using the KOMA-Script article class

1. All footnotes appear as normal text exactly there where they are
inserted in LyX' document and therefore cannot be distinguished from the
text-body.

2.  The section titles defined as "Section*" environments are ignored
and appear as normal text

3. The lstparams (parameters for the listings package) appear also in
the text.

4. Indentation of the LyX-Code environment is ignored

5. Pictures are used without the scaling that is defined within LyX
(well... I don't know how hard this would be to implement).

6. I would like to be able to control the "Copyright (C) 2009 by..."
message if possible, i.e. to be able to switch it off.


Cheers, Nikos



Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Nikos Alexandris
On Thu, 2009-03-12 at 17:11 +0100, Alex Fernandez wrote:
[...]
> Actually (and coincidentally) I am using git to manage the source code
> :D  I can confirm that it is very nice to work with, even easier to
> use than Subversion with which I have some previous experience.
> 
> I have not published the repository for lack of a hosting facility
> (and lack of knowledge to set it up), but once I find a suitable place
> I will make it public.
> 
> Thanks,
> Alex.

Great :D



Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Alex Fernandez
> Just as a side-note: I don't know how you manage your source code
> locally. I want only to mention that git is an excellent tool. It's
> something more than a tool actually. And it's not that difficult to
> start working with it. There are very nice and clean tutorials.

Actually (and coincidentally) I am using git to manage the source code
:D  I can confirm that it is very nice to work with, even easier to
use than Subversion with which I have some previous experience.

I have not published the repository for lack of a hosting facility
(and lack of knowledge to set it up), but once I find a suitable place
I will make it public.

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Nikos Alexandris
On Thu, 2009-03-12 at 16:43 +0100, Alex Fernandez wrote:
> Hi again,
> 
> Version 0.4 (20090312) is uploaded:
>   http://wiki.lyx.org/Tools/ELyXer
> Direct link:
>   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz
> It now ignores ERT, and supports footnotes, newlines, bibitem entries
> and citations. If you are interested in living on the rough frontiers
> of command line tools please give it a spin.
> 
> Thanks,
> 
> Alex.

Alex,

thanks a million :-).

Just as a side-note: I don't know how you manage your source code
locally. I want only to mention that git is an excellent tool. It's
something more than a tool actually. And it's not that difficult to
start working with it. There are very nice and clean tutorials.

I use git locally for my LyX documents :-). Afterall, LyX files are like
source code :-). No need to save with multiple names and get lost with
tens of files. I have to thank a friend of mine who pointed out to the
use of git.

Cheers, Nikos



Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Alex Fernandez
Hi again,

Version 0.4 (20090312) is uploaded:
  http://wiki.lyx.org/Tools/ELyXer
Direct link:
  http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090312.tar.gz
It now ignores ERT, and supports footnotes, newlines, bibitem entries
and citations. If you are interested in living on the rough frontiers
of command line tools please give it a spin.

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Alex Fernandez
Hi,

> But if you and others who are able to develope eLyXer would build that
> capability in, it would serve very well my publications plans of texts
> with many short helping/illuminating notes in the margin (for less
> disconnect someone's reading of the main text.

Right now, and with the kind help of Nikos Alexandris, I have added
basic support for footnotes: they appear as floating boxes on the
right, although not numbered. You will find them in the next release,
probably sometime this afternoon.

> Just to make you know my wish,

Great! If there is any other missing feature be sure to tell me. You
can send document samples privately and I will do my best.

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Alex Fernandez
> It even validates.
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.html&charset=
> (detect+automatically)&doctype=Inline&group=0&verbose=1
>
> Please make sure this remains so.

Sure. If you find an example of invalid XHTML please notify me.
Quoting from the user guide:
  "The HTML code generated is technically XHTML Transitional, version
1.0, using UTF-8 encoding. It passes the W3C tests [w3c-validator]. If
your particular web page doesn't pass the tests, then it is a bug and
it will be treated as such."

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Joachim Osnabryg

Am 11.03.2009, 02:08 Uhr, schrieb Alex Fernandez
:


eLyXer is very much a work in progress, since it only supports a
pretty small subset of LyX features


Being very impressed of the quality of the example
http://vecinos-productions.com/rayleigh/book.html
I suppose that

margin notes in LyX

(or better footnotes as numbered margin notes in the Handout (Tufte) LyX  
layout) will not yet be translated as such (i. e. marginals) by eLyXer.


(Sorry, I didn't install and try out eLyXer yet.)

But if you and others who are able to develope eLyXer would build that
capability in, it would serve very well my publications plans of texts
with many short helping/illuminating notes in the margin (for less
disconnect someone's reading of the main text.

Just to make you know my wish,
Good luck, joachim



Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Wolfgang Keller
> A pretty example can be seen at
>  http://vecinos-productions.com/rayleigh/book.html

It even validates.

http://validator.w3.org/check?uri=http%3A%2F%2Fvecinos-productions.com%2Frayleigh%2Fbook.html&charset=
(detect+automatically)&doctype=Inline&group=0&verbose=1

Please make sure this remains so.

Sincerely,

Wolfgang


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Alex Fernandez
Hi Olivier,

> That looks like a very nice tool. The HTML code is indeed good-looking!

Thanks a lot! In time I hope it will be useful to other users. It is
the least I can do after having used LyX for several years so
satisfactorily.

> Is there a problem with the bibliography export ? It looks like the above
> example contains many more entries in the bibliography that there are
> references in the text, most having not numbers between the brackets.

No problem at all, just that my sample document contained both
referenced and unreferenced bibliography entries. In other words: I
cut most of the text but left the bibliography entries.

> PS: I noticed you use
> #!/usr/bin/python
> while the python scripts of LyX use
> #! /usr/bin/env python
>
> I'm not sure, but the later my be more 'universal' (tolerant/portable)

Changed now. I will release a new version later on today with the latter line :D

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-12 Thread Olivier Ripoll

Alex Fernandez wrote:

Dear LyX users,


Hi,

That looks like a very nice tool. The HTML code is indeed good-looking!


LyX is a wonderful editor; its PDF output is perhaps unmatched by
other graphical editors. But the most common interchange method of
today is HTML, and LyX does not produce good HTML. There are some
tools for TeX -> HTML conversion, and even LyX -> HTML, but the
results tend to be poor and rigid.

So undeterred by the myriad of similar efforts I set to the task of
producing a simple, specialized tool for LyX -> HTML conversion, and
the result is eLyXer. It is meant to produce acceptable-to-beautiful
HTML code, depending on your browser's Unicode and CSS rendering
merits. To use it just type at the prompt:
  $ elyxer document.lyx document.html
This command takes a LyX document called (surprisingly) document.lyx,
and produces (just as surprisingly) a web page called document.html.
Ta-dah! The conversion is complete. For better results you may need to
copy the file docs/lyx.css to your working directory, and perhaps
customize it a bit. See this wiki page for details:
  http://wiki.lyx.org/Tools/ELyXer
and be sure to read the user guide included in the package.

A pretty example can be seen at
 http://vecinos-productions.com/rayleigh/book.html


Is there a problem with the bibliography export ? It looks like the 
above example contains many more entries in the bibliography that there 
are references in the text, most having not numbers between the brackets.


Best regards,

Olivier

PS: I noticed you use
#!/usr/bin/python
while the python scripts of LyX use
#! /usr/bin/env python

I'm not sure, but the later my be more 'universal' (tolerant/portable)



Re: Introducing eLyXer: LyX to HTML converter

2009-03-11 Thread Nikos Alexandris

Nikos:
> > first of all thank you for your efforts. All sounds very promising. I
> > just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your
> > example-files userguide.lyx and devguide.lyx are translated without
> > errors.

> > Unfortunately, by testing on my own documents I receive only errors.
> > Some examples (of output) below. Let me know if you need full-preamble
> > and/or other details.


Alex:
> Right, it's a bug in the parsing tree. Now corrected to accept generic
> insets. Could you please try again? Same download link:
>   http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz
> 
> I would like to try a newer version; I am right now compiling LyX
> 1.6.2rc2 but it is going to take a while. Could you send me privately
> a sample document, even if it is a large one? It is probably the
> fastest way to diagnose any remaining problems.


Alex, the simple article with Title, a Section and some text lines is
translated now :-). The complete article though (both the KOMA-Script
and the standard article class) causes trouble. I am sending you
off-list my article (both versions, KOMA-Script and standard article).

(
And FWIW, regarding commands presented in any document (call it
userguide or tutorial or whatever) I think it's better if you use
Program Listings for code and set the font to courier. It's what this
environment is there for so you can manipulate all of your _listings_ at
once.
)

Keep up the good work and let us enjoy at some point full functionality
of eLyXer :-). Kindest regards, Nikos



Re: Introducing eLyXer: LyX to HTML converter

2009-03-11 Thread Alex Fernandez
Hi Nikos,

> first of all thank you for your efforts. All sounds very promising. I
> just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your
> example-files userguide.lyx and devguide.lyx are translated without
> errors.

Good to know! Thanks for trying it out, you are indeed a brave soul.

> Unfortunately, by testing on my own documents I receive only errors.
> Some examples (of output) below. Let me know if you need full-preamble
> and/or other details.

Right, it's a bug in the parsing tree. Now corrected to accept generic
insets. Could you please try again? Same download link:
  http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz

I would like to try a newer version; I am right now compiling LyX
1.6.2rc2 but it is going to take a while. Could you send me privately
a sample document, even if it is a large one? It is probably the
fastest way to diagnose any remaining problems.

Thanks,

Alex.


Re: Introducing eLyXer: LyX to HTML converter

2009-03-10 Thread Nikos Alexandris

Alex:
> So undeterred by the myriad of similar efforts I set to the task of
> producing a simple, specialized tool for LyX -> HTML conversion, and
> the result is eLyXer. It is meant to produce acceptable-to-beautiful
> HTML code, depending on your browser's Unicode and CSS rendering
> merits.


Dear Alex,

first of all thank you for your efforts. All sounds very promising. I
just ran eLyXer (under Ubuntu II/ 64-bit) a couple of times. Your
example-files userguide.lyx and devguide.lyx are translated without
errors.

Unfortunately, by testing on my own documents I receive only errors.
Some examples (of output) below. Let me know if you need full-preamble
and/or other details.

Kindest regards, Nikos



# article(KOMA-script)
./elyxer UpSideDown_World.lyx UpSideDown_world.html

Error at 223: \noindent
Line \begin_inset Newline newline not found
Traceback (most recent call last):
  File "./elyxer", line 1159, in 
createbook(args)
  File "./elyxer", line 1155, in createbook
book.parsecontents(reader, writer)
  File "./elyxer", line 1135, in parsecontents
container = ContainerFactory.create(reader)
  File "./elyxer", line 1128, in create
container.parse(reader)
  File "./elyxer", line 353, in parse
self.contents = self.parser.parse(reader)
  File "./elyxer", line 176, in parse
container = self.factory.create(reader)
  File "./elyxer", line 1128, in create
container.parse(reader)
  File "./elyxer", line 353, in parse
self.contents = self.parser.parse(reader)
  File "./elyxer", line 161, in parse
container = self.factory.create(reader)
  File "./elyxer", line 1124, in create
type = ContainerFactory.root.find(reader)
  File "./elyxer", line 134, in find
return tree[ParseTree.default]
KeyError: '~~default~~'


# the same file as above but using the standard article class
./elyxer UpSideDown_World_standard_article.lyx
UpSideDown_world_standard_article.html

Error at 213: \noindent
Line \begin_inset Newline newline not found
Traceback (most recent call last):
  File "./elyxer", line 1159, in 
createbook(args)
  File "./elyxer", line 1155, in createbook
book.parsecontents(reader, writer)
  File "./elyxer", line 1135, in parsecontents
container = ContainerFactory.create(reader)
  File "./elyxer", line 1128, in create
container.parse(reader)
  File "./elyxer", line 353, in parse
self.contents = self.parser.parse(reader)
  File "./elyxer", line 176, in parse
container = self.factory.create(reader)
  File "./elyxer", line 1128, in create
container.parse(reader)
  File "./elyxer", line 353, in parse
self.contents = self.parser.parse(reader)
  File "./elyxer", line 161, in parse
container = self.factory.create(reader)
  File "./elyxer", line 1124, in create
type = ContainerFactory.root.find(reader)
  File "./elyxer", line 134, in find
return tree[ParseTree.default]
KeyError: '~~default~~'


# standard article, just with a Title, Section and some text lines 
./elyxer test_greek_Dictum.lyx test_greek_Dictum.html

Line \begin_inset Newline newline not found
Traceback (most recent call last):
  File "../lyx-stuff/elyxer/elyxer", line 1159, in 
createbook(args)
  File "../lyx-stuff/elyxer/elyxer", line 1155, in createbook
book.parsecontents(reader, writer)
  File "../lyx-stuff/elyxer/elyxer", line 1135, in parsecontents
container = ContainerFactory.create(reader)
  File "../lyx-stuff/elyxer/elyxer", line 1128, in create
container.parse(reader)
  File "../lyx-stuff/elyxer/elyxer", line 353, in parse
self.contents = self.parser.parse(reader)
  File "../lyx-stuff/elyxer/elyxer", line 176, in parse
container = self.factory.create(reader)
  File "../lyx-stuff/elyxer/elyxer", line 1124, in create
type = ContainerFactory.root.find(reader)
  File "../lyx-stuff/elyxer/elyxer", line 134, in find
return tree[ParseTree.default]
KeyError: '~~default~~'



Introducing eLyXer: LyX to HTML converter

2009-03-10 Thread Alex Fernandez
Dear LyX users,

LyX is a wonderful editor; its PDF output is perhaps unmatched by
other graphical editors. But the most common interchange method of
today is HTML, and LyX does not produce good HTML. There are some
tools for TeX -> HTML conversion, and even LyX -> HTML, but the
results tend to be poor and rigid.

So undeterred by the myriad of similar efforts I set to the task of
producing a simple, specialized tool for LyX -> HTML conversion, and
the result is eLyXer. It is meant to produce acceptable-to-beautiful
HTML code, depending on your browser's Unicode and CSS rendering
merits. To use it just type at the prompt:
  $ elyxer document.lyx document.html
This command takes a LyX document called (surprisingly) document.lyx,
and produces (just as surprisingly) a web page called document.html.
Ta-dah! The conversion is complete. For better results you may need to
copy the file docs/lyx.css to your working directory, and perhaps
customize it a bit. See this wiki page for details:
  http://wiki.lyx.org/Tools/ELyXer
and be sure to read the user guide included in the package.

A pretty example can be seen at
 http://vecinos-productions.com/rayleigh/book.html

eLyXer is very much a work in progress, since it only supports a
pretty small subset of LyX features -- it doesn't support too many LyX
versions or even operating systems either. It is basically a
home-grown tool for my needs, and it shows. However I would like to
share it with other people who may have a use for it, and in the
process expand it for other uses. Some LyX developers have recommended
to get it in the hands of users ASAP, to calibrate interest and so you
can have a say in future developments. You know, "release early,
release often" is still the mantra. It is a command line tool written
in Python 2.5, in case you are not sufficiently scared yet. Those used
to smoother sailings can wait until the tool can be accessed from
within LyX, which (if there is any interest at all, and as time
allows) should be done in the next months.

Adventurous souls can download the second public version 0.2 as a .tar.gz file:
  http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.tar.gz
or as a zip file:
  http://wiki.lyx.org/uploads/Tools/eLyXer/elyxer-20090311.zip
Let me know how it goes.

Enjoy,

Alex Fernández (ely...@gmail.com)


Re: LyX to HTML

2007-12-02 Thread Richard Heck

Roberto Gorjão wrote:

Olá!

Lyx does a terrific job when converting to HTML, but, what I would 
need is a little different. LyX tries to reproduce some of the styles 
of the original document, thus creating a CSS stylesheet and 
introducing in the HTML lots of classes like "sectionHead", "itemize" 
and so on. What I would like would be to have pure HTML, just with 
different heading levels translating the different levels of sections 
and plain  or  translating the itemized and numbered lists in 
the LyX original document. Is this possible? Is there any translator 
out there able to handle it in this way?


Obrigado!
I don't know which converter you are using---check 
Tools>Preferences>Converters to find out---but there are options that 
can be set with some of them, I believe. LyX can use anything you like, 
with whatever options you like. I think LyX checks automatically for the 
htlatex package and latex2html, but there's also now the plastex 
package, which we should add for 1.6.


Richard


--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



LyX to HTML

2007-12-01 Thread Roberto Gorjão

Olá!

Lyx does a terrific job when converting to HTML, but, what I would need 
is a little different. LyX tries to reproduce some of the styles of the 
original document, thus creating a CSS stylesheet and introducing in the 
HTML lots of classes like "sectionHead", "itemize" and so on. What I 
would like would be to have pure HTML, just with different heading 
levels translating the different levels of sections and plain  or 
 translating the itemized and numbered lists in the LyX original 
document. Is this possible? Is there any translator out there able to 
handle it in this way?


Obrigado!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Lyx to word or lyx to html (to word)

2007-06-03 Thread David A. Case
On Sun, Jun 03, 2007, Miki Dovrat wrote:
> 
> How can I convert my lyx document to microsoft word 

Google is your friend here: the first hit for "convert latex to word" is:

http://www.tug.org/utilities/texconv/textopc.html

If you have a significant number of mathematical equations, I have found
tex2word to be better than anything else I have tried.  If you don't have much
math, there are lots of other options as well.

...dave case


Re: Lyx to word or lyx to html (to word)

2007-06-03 Thread cmiramon
Miki Dovrat wrote:

> Hi,
> 
> How can I convert my lyx document to microsoft word (or html, which word
> reads?, or openoffice, which can be exported to rtf, which word reads)?
> 
> These converters seem to be broken on Windows (still). I have lyx 1.4.4
> with Miktex 2.5 which has htlatex. In the past I have succeeded in getting
> html from this setup using htlatex from the command line, but I can't seem
> to reproduce my success.
> 
> I also have a linux box.
> 
> Please point me to a working solution either in linux or windows.
> 
> Miki

I've just converted two long articles (footnotes, bibliography in jurabib)
in LyX in odt -> Word using tex4ht. It went well except a table that was
not converted and that I retyped. There is a small problem with
superscripts in footnotes. I've also discovered that OpenWriter cannot
search and replace normal spaces by unbreakable spaces.

I would recommend tex4ht (oolatex) if you have footnotes and a BibTeX
bibliography.

Cheers,
Charles



Lyx to word or lyx to html (to word)

2007-06-03 Thread Miki Dovrat
Hi,

How can I convert my lyx document to microsoft word (or html, which word 
reads?, or openoffice, which can be exported to rtf, which word reads)?

These converters seem to be broken on Windows (still). I have lyx 1.4.4 with 
Miktex 2.5 which has htlatex. In the past I have succeeded in getting html 
from this setup using htlatex from the command line, but I can't seem to 
reproduce my success.

I also have a linux box.

Please point me to a working solution either in linux or windows.

Miki 





Re: LyX to HTML

2007-05-21 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, Richard Heck 
<[EMAIL PROTECTED]> wrote.


That doesn't look like HTML. It looks like a page image.


It is of course, in a roundabout way. As I mentioned, there are 
overheads, but the output is nicely rendered (on my screen, at least) 
and it loads quite quickly into a browser.


What I haven't tried yet is inserting links, but there are instructions 
for doing this. For web purposes it could be a useful alternative to 
using PDFs. The engine that Texmaker uses to do the conversion is I 
believe a Perl script called 'ttwp', but I haven't had much luck in 
making this work under XP.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Re: LyX to HTML

2007-05-21 Thread Richard Heck

That doesn't look like HTML. It looks like a page image.

Nick Hopton wrote:
> I've been playing with ways of converting LyX to HTML under XP. One
> way of doing this is by exporting the LyX document as LaTeX, loading
> it into Texmaker and then using the Texmaker function to convert to
> HTML. This produces HTML pages with the LyX/LaTeX formatting
> preserved. Perhaps this might be useful for HTML pages with advanced
> mathematics. The conversion does have overheads, but some might find
> that these are outweighed by the benefits.
>
> So far I've only tried this using an old LyX multi-page document, see
> what you think:
>
> http://www.hopton.dsl.pipex.com/page1.html
>
> Regards,
> Nick.
>


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



LyX to HTML

2007-05-20 Thread Nick Hopton
I've been playing with ways of converting LyX to HTML under XP. One way 
of doing this is by exporting the LyX document as LaTeX, loading it into 
Texmaker and then using the Texmaker function to convert to HTML. This 
produces HTML pages with the LyX/LaTeX formatting preserved. Perhaps 
this might be useful for HTML pages with advanced mathematics. The 
conversion does have overheads, but some might find that these are 
outweighed by the benefits.


So far I've only tried this using an old LyX multi-page document, see 
what you think:


http://www.hopton.dsl.pipex.com/page1.html

Regards,
Nick.

--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Re: Export from LyX to HTML

2007-02-23 Thread Jean-Pierre Chretien

>>Date: Fri, 23 Feb 2007 17:21:54 +0100 (CET)
>>Subject: Re: Export from LyX to HTML
>>From: [EMAIL PROTECTED]
>>To: "Nick Hopton" <[EMAIL PROTECTED]>
>>Cc: lyx-users@lists.lyx.org
>>
>>Nick,
>>
>>thanks a lot, your advice got it working.
[..]
>> - View HTML works, Export to HTML does not. Instead of the pngs
>>   it only shows the -text

Without originaldir, the conversion is made in the temporary dir where
the browser finds it. 
However, Export does not copy the files to the doc dir.

So if your reset the originaldir flag,  your files will be in
the doc dir all right.

So you have to choose berween Export and View

>> - pngs included in the original Lyx-files are not present

Export to latex and run the converter to get an idea of what's going on.

-- 
Jean-Pierre



Re: Export from LyX to HTML

2007-02-23 Thread gumm
Nick,

thanks a lot, your advice got it working.

>>I have not been able export from LyX to html. The error messages (see
>>below)
>>on the LyX-console seem to suggest that htlatex cannot deal with paths
>>containing
>>spaces.  Is this true, oand if so, there a way to circumvent this ?

> Before you do anything else, try this. Go Tools -> Preferences ->
> Converters, them click on 'LaTeX (plain) -> HTML'. Then delete
> 'originaldir,needaux' from the Extra Flag box. Then try View HTML or
> Export HTML.


I did get by though with only removing the "originaldir"-flag.
When I removed the "needaux" flag, my references were forgotten.

I can do what I want now, but there are still there are a few
quirks remaining, which might probably be easily corrected:

 - View HTML works, Export to HTML does not. Instead of the pngs
   it only shows the -text
   Of course I can just view and save the content from firefox

 - pngs included in the original Lyx-files are not present

Greetings,
 H.Peter


Re: Export from LyX to HTML

2007-02-23 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] wrote.



Dear specialists,

I have not been able export from LyX to html. The error messages (see 
below)
on the LyX-console seem to suggest that htlatex cannot deal with paths 
containing

spaces.  Is this true, oand if so, there a way to circumvent this ?

Thanks,
H.Peter


Hello Peter,

Before you do anything else, try this. Go Tools -> Preferences -> 
Converters, them click on 'LaTeX (plain) -> HTML'. Then delete 
'originaldir,needaux' from the Extra Flag box. Then try View HTML or 
Export HTML.


This has always worked for me, but I think it leaves a number of 
temporary files behind that have to be cleaned-up by hand. Let me know 
how you get on.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Export from LyX to HTML

2007-02-22 Thread gumm

Dear specialists,

I have not been able export from LyX to html. The error messages (see 
below)
on the LyX-console seem to suggest that htlatex cannot deal with paths 
containing

spaces.  Is this true, oand if so, there a way to circumvent this ?

Thanks,
 H.Peter

  Error messages: ###

pplatex: Process input file xypic.dvi
pplatex: Copy data to xypic.dvi
pplatex: Process input file xypic.dvi
pplatex: Copy data to xypic.dvi
pplatex: Process input file xypic.dvi
pplatex: Copy data to xypic.dvi

F:\xypic>latex  
\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\

HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\L
[EMAIL PROTECTED]@[EMAIL PROTECTED],html]{tex4ht}}
\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\
def\csname 
tex4ht\endcsname{#1,html}\def\HCode1{\documentstyle[tex4ht,[EMAIL PROTECTED]
extchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode 
.a.b.c.\input  "C:/
Documents and Settings/gumm.INFORMATIK.001/Local 
Settings/Temp/lyx_tmpdir1276a02

748/lyx_tmpbuf0/xypic.tex"
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
entering extended mode
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, dumylang, 
nohyphenation, ge

rman, ngerman, french, loaded.
(C:\Documents)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
...

<*> ...atother\HCode .a.b.c.\input  C:/Documents a
 nd 
Settings/gumm.INFORMATI...


?



from lyx to html

2005-03-04 Thread Daniele Favara
actually i've added just the IEEEtran.cls ... and i would be able to convert 
docbook_article.lyx to html  i feel i need a cls to add 
in /usr/share/texmf/tex/latex/lyx as i made for IEEE.

where can i find it?

i 'm also trying to convert to html using linuxdoc_article.lyx and it 
works ... but i can't see the pictures included ... how can i get it?

thanks
-- 
DF




LyX to HTML- latex2html errors

2004-01-27 Thread John O'Gorman
Still no solution to my attempts to produce HTML from a master doc with 
the chapters included.

So I inserted each chapter as a LyX file into 1 large LyX document.
Now I can export to HTML (using args -split3 -link 4) to get exactly the 
 layout I want (1 HTML node per chapter with mini TOC at top of page).

But the latex2html errors complaining about \url \t1 \fontenc.
As a result, the stylesheets myname.css is incomplete (the h1 .. h8 
styles are defined with empty braces.

Anyone know how to fix this?

John O'Gorman



lyx to html ??

2003-11-13 Thread SARIN Supheakmungkol
Hello 

I am a newbie to Lyx I got a problem in converting a text that i 
write in French to the HTML format
The problem is some characters such as é, è, à is badly converted to 
HTML

Please help me ...

Thanks...






lyx to html

2003-01-28 Thread Raphael Clifford
What's the best way to convert a lyx document to html.  I have tried
exporting to latex and then using latex2html but the result was a mess. 
I have a document using foiltex as well and I tried
lyx->latex->latex2html with foilhtml and the results were even worse. 
The only foilhtml file I could find was dated 1998 as well which made me
slightly suspicious.

Any help is very much appreciated.

Raphael




Re: LyX to HTML via latex2html?

2001-08-29 Thread Stephen Carville

On Tue, 28 Aug 2001, Paul Lussier wrote:

-
- Hi all,
-
- For quite some time now, my colleague and I have been using LyX to
- write our internal documentation.  However, we now need to place this
- documentation on the internal website.  We've tried latex2html, and
- it works great as far as I can tell.  The problem is it's really ugly.
-
- For our internal web pages, we have look 'n' feel that we want to
- perpetuate throughout all our pages, documentation included. Most of
- our other pages are hand-crafted, so we just manually include all the
- header information that provides the look we want.
-
- Is there any way to do this with LyX/latex2html?  Is there a way to
- have latex2html use cascading style sheets, etc.?  Currently our
- websites all have a table at the top with certain text centered, and
- some images on both the left and right.  Obviously we don't want this
- to carry over to the printed versions, so we need some way of having
- latex2html include either a css or some other chunk of html code at
- the top of each generated page.
-
- Anyone doing this type of thing? Or should I start looking at SGML?

After a fashion.

I do not use CSS but I embed a header in the title page of each
document.  In the preamble add

\usepackage{html}
\usepackage{url}

Then I put something like (single paragraph labeled as LaTex):

\begin{rawhtml}




\end{rawhtml}

This doed not show in the printed output.

Inline links can be added as (inlined TeX):

\htmladdnormallink{Link Text}{http://URL}

Only "Link Text"  appears in the printed output.

If you use:

\htmladdnormallinkfoot{Link Text}{http://URL}

"http://URL"; will be added as a footnote to "Link Text"

-- 
-- Stephen Carville http://www.heronforge.net/~stephen/gnupgkey.txt
==
Government is like burning witches:  After years of burning young
women failed to solve any of society's problems, the solution was to
burn more young women.
==





Re: LyX to HTML via latex2html?

2001-08-28 Thread Jean-Pierre.Chretien


>>
>>
>>In a message dated: Tue, 28 Aug 2001 17:06:27 +0200
>>"Jean-Pierre.Chretien" said:
>>
>>>AFAIR, latex2html offers similar functionality,
>>>you can check the doc.
>>>
>>>Apart from CSS use, you may also try server side includes, or even
>>>simple embedding of the html code produced by latex2html
>>>in a mask written in Perl.
>>
>>Well, we did the "embedding" once before, but manually.  This proved 
>>to be quite a tedious and time consuming task, which we'd rather not 
>>repeat.  I suppose we could script the process, but this type of task 
>>seems like the type of thing that latex2html should  be able to do
>>(it's just a matter of figuring out how :)
>>-- 

Well, the latexonly and htmlonly environments allow
to deal pretty well with what's specific to paper layout
and to electronic publishing. You may control everything
from the latex source by \inputting the same html mask
in every original document.

Moreover, if you have a look at the latex2html Perl variables
and subroutines, you may easily improve also the navigation facilities
(if you want to split up your document, which is a good idea
for web publishing) to include header and footer.
The $ADDRESS variable allows also to set a footer in each page.
I guess the the more recent versions have supplementary stuff
available (I use 99 here).

To customize, I copy the .latex2html-init in the working dir
and tune everything from there, doing some  hoem made perl postprocessing
when needed (I happened to find out in the doc that the function 
DID exist :-).

-- 
Jean-Pierre





LyX to HTML via latex2html?

2001-08-28 Thread Paul Lussier


Hi all,

For quite some time now, my colleague and I have been using LyX to 
write our internal documentation.  However, we now need to place this 
documentation on the internal website.  We've tried latex2html, and 
it works great as far as I can tell.  The problem is it's really ugly.

For our internal web pages, we have look 'n' feel that we want to 
perpetuate throughout all our pages, documentation included. Most of
our other pages are hand-crafted, so we just manually include all the 
header information that provides the look we want.

Is there any way to do this with LyX/latex2html?  Is there a way to 
have latex2html use cascading style sheets, etc.?  Currently our 
websites all have a table at the top with certain text centered, and 
some images on both the left and right.  Obviously we don't want this 
to carry over to the printed versions, so we need some way of having 
latex2html include either a css or some other chunk of html code at 
the top of each generated page.

Anyone doing this type of thing? Or should I start looking at SGML?

Thanks a bunch,


-- 

Seeya,
Paul

...we don't need to be perfect to be the best around,
and we never stop trying to be better. 
   Tom Clancy, The Bear and The Dragon

 If you're not having fun, you're not doing it right!





UPDATE: LyX to (html,ps,pdf) script

2001-07-12 Thread Fernando Pérez

Update:

A. Poenitz found a dumb quoting error I made in yesterday's posting of this
script (note to self: don't post code at 3am when too tired to think).

The attached version is fixed and should work (I *did* check it :-)

Fernando.

-- Forwarded message --
Date: Thu, 12 Jul 2001 03:03:50 -0600 (MDT)
Subject: LyX to (html,ps,pdf) script

Hi Lyxers,

attached is a Perl script I wrote called lyxpub (short for "lyx publish",
for lack of a better name!). It borrows heavily from contributions by S.
Evers, but tries to be a bit cleaner and more robust (also do more).
 
>From the mini-documentation:
 
A simple Perl script which takes a LyX or TeX file as its only argument
(with or without extension) and produces HTML, PostScript and PDF versions
of the document.
 
I have tested it with some documents and it seems to work, but I'm sure
there are still many problems with it. Hopefully it will be useful to
others, and I would appreciate any comments/suggestions/bug reports/bug
fixes (especially the latter! :-)
 
Feel free to play with it and let me know what you think. Hopefully it will
ease the pain of making multiple versions from a LyX document in all the
cases when a simple lyx --export doesn't do what you want.
 
Regards,
 
Fernando.

PS: If anyone thinks it is appropriate, feel free to repost to the
lyx-devel list.

 lyxpub.gz


LyX to (html,ps,pdf) script

2001-07-12 Thread Fernando Pérez

Hi Lyxers,

attached is a Perl script I wrote called lyxpub (short for "lyx publish",
for lack of a better name!). It borrows heavily from contributions by S.
Evers, but tries to be a bit cleaner and more robust (also do more).
 
>From the mini-documentation:
 
A simple Perl script which takes a LyX or TeX file as its only argument
(with or without extension) and produces HTML, PostScript and PDF versions
of the document.
 
I have tested it with some documents and it seems to work, but I'm sure
there are still many problems with it. Hopefully it will be useful to
others, and I would appreciate any comments/suggestions/bug reports/bug
fixes (especially the latter! :-)
 
Feel free to play with it and let me know what you think. Hopefully it will
ease the pain of making multiple versions from a LyX document in all the
cases when a simple lyx --export doesn't do what you want.
 
Regards,
 
Fernando.

PS: If anyone thinks it is appropriate, feel free to repost to the
lyx-devel list.

 lyxpub.gz


Re: Extra LyX-to-HTML scripts...

2000-08-15 Thread Steffen Evers

David Utidjian wrote:
> > 0. Called by a command lyx2html DOC.lyx (requires an up-to-date latex-export
> > file)
> >
> > 1. Preparation of the latex file exported by LyX with the sed script
> > 'improvetex':
> 
> When I try to run it as a plain command: lyx2html DOC.lyx
> I get an error in improvetex:
> 
> *
> $ /home/utidjian/lyx2html/lyx2html AOspec_pfd.lyx
> 
> Setting environment variables
> rlog: RCS/AOspec_pfd.lyx,v: No such file or directory
> 
> Preparing latex-file for translation
> sed: file /home/utidjian/lyx2html/improvetex line 30: Unexpected ','

Ups... I haven't known that I'm using the new sed stuff. You need to get GNU sed
version 3.02.80 to run it. Get it from:
 ftp://alpha.gnu.org/pub/gnu/sed/sed-3.02.80.tar.gz

> Thanks for all the info. I have run latex2html on some of my LyX
> documents and it mangles the footnotes. I noticed in your thesis that
> the footnotes looked fine. I was hoping that your script(s) would fix
> that.

But before you do all this ... my script is customized for my document and you
might have to change several things before it's okay.

Maybe it will be sufficient for you to comment out the LyX specific Latex stuff
(including your preamble). Have a look at my improvetex script to do this with
sed.

Anyway, I am going to improve the script and get rid of my document specific
stuff sometimes, but I will not process many changes in the next two weeks or so
as I am probably heading for vacations in a few days.

When I come back we should find a better place to discuss these things. It's not
really a topic for the user list, I think. :-]

Bye, Steffen




Re: Extra LyX-to-HTML scripts...

2000-08-15 Thread Steffen Evers

David Utidjian wrote:
> 
> Steffen,
> 
> I saw you link to your thesis on the lyx-user mailing list. I like what
> you have done. However it is not clear to me how the scripts are
> applied.
> 
> Before lyx2html, during, after?
You mean before latex2html, right?

> 
> H... after reading the source :-) it appears that latex2html is
> called within lyx2html.
> 
> OK so what does it fix?
> 

lyx2html works as follows:

0. Called by a command lyx2html DOC.lyx (requires an up-to-date latex-export
file)

1. Preparation of the latex file exported by LyX with the sed script
'improvetex':
 a) Remove all pagerefs (senseless in HTML docs) and related text('on page ')
 b) Comment out redefintion of url tag (=>url tags will be recognized by
latex2html)
 c) Replace illegal characters from label tags with '_' (mainly ':')
 d) Remove empty pages (senseless in HTML docs; latex2html translates them as
empty
lines)
 e) Comment out ident/skip block command (produces error message; why?)
 f) Comment out special LyX-Latex code and custom Latex-preamble (normally
useless in
HTML and produced error messages and undesired behavior with latex2html)
 g) Make latex2html handle uppertitleback and lowertitleback as regular text,
but on
the coverpage

2. Run latex2html

3. Polish cover page with sed script 'improvecover':
 a) Remove navigation panels
 b) Remove all TOC entries that don't have their own file (subsections and
below)
 c) Remove (dummy) footnote numbers in TOC entries

4. Polish about page with sed script 'improveinfo':
 a) Change some text
 b) Teplace complex address parameter with the word ADDRESS and file with FILE

5. Polish contents page
 a) Remove (dummy) footnote numbers in TOC entries

6. Polish all html files with sed script 'improveall'
 a) Add a line after the both navigation panel
 b) Remove all table of contents for subsections
 c) Remove (dummy) footnote numbers in TOC entries
 d) Remove chapter number from footnote number (before: cno.fno, after: fno)
 e) Put the footnotes below the navigation panel
 f) Insert a SSI command for a hidden counter

7. Initialize all hit counters

8. Copy used scripts to a subdirectory of the generated html directory

9. Clean up and set correct access rights