[l2h] hello everybody

Ross Moore ross@ics.mq.edu.au
Mon, 9 Dec 2002 09:26:07 +1100 (EST)


> I'm a student at Department of Computer Science, Dresden University of
> Technology. My job at University is converting documentation into the
> HTML-Format for using by handycaped students at my Department.
> The students can read the HTML with lynx and very large literal on the
> console.
> 
> This is a good thing, and the converter latex2html is mostly a great
> start for me.
> 
> But, I have two large problems in this situation:
> 
> First.
> The goal is a page-to-page conversation to HTML. If I have a tex-file I
> can use LaTeX and make by the end a ps-file. At this ps-file the layout
> at page is ok.
> The important point in this situation is the HTML-file the converter
> make a file chapter to chapter, not page to page.

You can make the translator split files at any sectioning-level;
e.g. \subsection \subsubsection  \paragraph  etc.
Use the  -split <num>   switch, or set the  $MAX_SPLIT_DEPTH  parameter.

> What can I do to convert a page-of-page document?

Furthermore, you could define your own markup to be a sectioning command
for LaTeX2HTML, but do nothing with normal LaTeX processing.
That sounds like an appropriate thing for your situation.

Consult the documentation for how to do this.
 
> And second.
> If the converter found a large picture, he wrote as HTML alternative-tag
> TeX-code. It' s ok, but in the center he make two cuts and the code is
> not complete.

Yes; that's true.
The maximum length of the coding is ~200 characters, for compatibility
with older database (DBM) software with Perl.

You could change this, with some strategic edits in the  latex2html  Perl script.
(Better is to find the appropriate subroutine, then place an edited copy
within an initialisation file.)

> This is very bad, the students can't reading the uncompletly TeX-Code.

 ... do they really *want* to read the TeX code ?

If the image is of a text-based environment, then it is surely better
to devise an appropriate translation into HTML.
Use conditional coding:

\usepackage{html}

\begin{htmlonly}
 \renewenvironment{myenv}
   {... start of simpler LaTeX environment(s) ... }
   {... end of simpler LaTeX environment(s) ... }
\end{htmlonly}

 
> What is the way for the correctly TeX-Code at the HTML alternative-tag?

You can do this using the  \htmlimage  command,
which can be placed anywhere with an environment that will be converted
into an image. (If not an image, the \htmlimage  command will be ignored.)

Try either:
  \htmlimage{... other options... , ALT=.... alt-text ....}
  \htmlimage{... other options... , .... alt-text ....}

In the latter case, everything that is not identified as one of the
specific options is interpreted as being for the ALT attribute.
(Beware of using ',' within the ALT-text.)
 

> 
> thanks and regards from Dresden/Germany

Hope this helps,

	Ross Moore

 
> Jan
> 
> _______________________________________________
> latex2html mailing list
> latex2html@tug.org
> http://tug.org/mailman/listinfo/latex2html