Discussion:
[l2h] Non standard class questions
Philippe Chauvat
2017-01-12 11:01:37 UTC
Permalink
Hello there,

I am investigating is bit deeper the usage of latex2html and I am facing
some issues. So I have some questions

a) I would be sure latex2html is still a good idea when it comes to
convert LaTeX files to HTML. If not please let me know how you would
suggest to proceed.

b) I am using a non standard class and therefore I tried to figure out
how to add it into the latex2html process. So far, my understanding is
that I need to define a myclass.perl file (assuming my non standard
class is named myclass) and put it into the styles directory. Am I right ?

c) Assuming the (b) is yes, I wrote the mylcass.perl file. Into that
class, I have some "RequirePackage" lines and I realized the related
packages are not loaded? Am I doing something wrong ? How do I need to
proceed to have these packages loaded automatically by the latex2html
process?

d) I should have to begin with this, probably,; is there any
"programming manual" for latex2html?

Thanks in advance for your help!
Philippe
Nasser M. Abbasi
2017-01-12 17:06:51 UTC
Permalink
Post by Philippe Chauvat
Hello there,
a) I would be sure latex2html is still a good idea when it comes to
convert LaTeX files to HTML. If not please let me know how you would
suggest to proceed.
If you can't get your latex class to work with l2h, you could try
tex4ht.

--Nasser
Post by Philippe Chauvat
b) I am using a non standard class and therefore I tried to figure out
how to add it into the latex2html process. So far, my understanding is
that I need to define a myclass.perl file (assuming my non standard
class is named myclass) and put it into the styles directory. Am I right ?
c) Assuming the (b) is yes, I wrote the mylcass.perl file. Into that
class, I have some "RequirePackage" lines and I realized the related
packages are not loaded? Am I doing something wrong ? How do I need to
proceed to have these packages loaded automatically by the latex2html
process?
d) I should have to begin with this, probably,; is there any
"programming manual" for latex2html?
Thanks in advance for your help!
Philippe
_______________________________________________
latex2html mailing list
http://tug.org/mailman/listinfo/latex2html
Julius Smith
2017-01-12 21:06:18 UTC
Permalink
Another good one is HeVeA. There is also TtM and LaTeXML.

I still use latex2html, but since perl5 there have been more problems than
I have time to track down and work around.

The biggest problem for me right now is that a comment on its own line is
removed WITH its newline as well, causing loss of any TeX command at end of
previous line due to concatenation with following line. I think it has to
do with incompatible evolution in perl regarding statements like

s/((\n$comment_mark\d*)+\n)//gm;

I have been able to repair some instances of this problem but not all. My
(weak) progress is at

https://github.com/josmithiii/l2hmj.git

and here are too small failing examples in case anyone is interested:

% l2h bug: comment in eqn comes out as ``< tex2html_comment_mark >''
\beqnopt
y(n) \eqsp \langle x, \shift_n[\flip(h)] \rangle. % \qquad\hbox{($h$ real)}
\eeqnopt

% l2h bug: HTML includes ``<15579>>''
% Rev2: Summarize this somewhere
\nocite{Nikolic02}

To make the 2nd bug go away, introduce a blank line after the comments.

- jos
Post by Nasser M. Abbasi
Post by Philippe Chauvat
Hello there,
a) I would be sure latex2html is still a good idea when it comes to
convert LaTeX files to HTML. If not please let me know how you would
suggest to proceed.
If you can't get your latex class to work with l2h, you could try
tex4ht.
--Nasser
Post by Philippe Chauvat
b) I am using a non standard class and therefore I tried to figure out
how to add it into the latex2html process. So far, my understanding is
that I need to define a myclass.perl file (assuming my non standard
class is named myclass) and put it into the styles directory. Am I right ?
c) Assuming the (b) is yes, I wrote the mylcass.perl file. Into that
class, I have some "RequirePackage" lines and I realized the related
packages are not loaded? Am I doing something wrong ? How do I need to
proceed to have these packages loaded automatically by the latex2html
process?
d) I should have to begin with this, probably,; is there any
"programming manual" for latex2html?
Thanks in advance for your help!
Philippe
_______________________________________________
latex2html mailing list
http://tug.org/mailman/listinfo/latex2html
_______________________________________________
latex2html mailing list
http://tug.org/mailman/listinfo/latex2html
--

Julius O. Smith III <***@ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/

Loading...