On Thu, Oct 17, 2002 at 07:49:19PM +0200, Amir Seginer wrote:
>
> Is this a problem with Lyx (ver. 1.2.1) or something in my setting?
I don't know. I have no problem on my machine.
> Also, when running latex2html manually I saw it looks for an .aux file.
> Does Lyx generate such a file before running latex2html?
Yes.
> Now for the hebrew problem.
>
> I'm trying to export a hebrew file (exercises and solutions for a
> course) to html. When I try to first export to latex and then manually
> to html (running latex2html from the console), the conversion works, but
> I get gibbrish from left to right instead of hebrew from right to left.
First, are you sure that you need to generate an html file ? Why not use
PDF ?
Conversion from lyx(latex) to html, is not perfect, especially with Hebrew
(you might have a problem with wrong position of punctuation).
In order to have an Hebrew HTML document, you need to have the following:
1. A tag
<meta http-equiv="Content-Type" content="text/html; charset=cp1255">
inside the HEAD part.
2. An dir="rtl" inside the BODY tag
Namely,
<!DOCTYPE...>
<html>
<head>
...
<meta http-equiv="Content-Type" content="text/html; charset=cp1255">
</head>
<body dir="rtl">
...
You should check the manual of latex2html to see if you can set the
charset/dir in the command line, and if not, you can write a wrapper script.
Another thing you should do is that latex2html might not recognize
the \L{} or \R{} commands.
So you need to add to the preamble of your document
\renewcommand{\L}[1]{#1}
\renewcommand{\R}[1]{#1}
This command should only be used when generating the HTML, so read the
latex2html manual to find out how to insert latex code that will only
affect latex2html.
You can also try other converters, which for example, might not have a problem
with the \L or \R commands.
I tried tex4ht (after modifying the htlatex script to use elatex), and it
generate an almost working file (the only change needed is changing the
charset from iso8859-8 to cp1255.