This works, and I already use this sort of workaround (only with an empty
math-mode).
However, when I do this, it prints the section header (in the section
itself) aligned to the right side of the page instead of the left, and it
looks really bad (people have commented to me on how it looks).

Thanks,
- Amir Rachum


On Sat, May 29, 2010 at 8:10 PM, Enrico Forestieri <for...@lyx.org> wrote:

> On Sat, May 29, 2010 at 07:24:17PM +0300, Amir Rachum wrote:
>
> > Hi all,
> >
> > I'm writing a document of type article(hebrew) and some of the sections
> in
> > it are in English.
> > LyX's output pdf prints the section name ok in the document itself, but
> it
> > prints it backwards in the table of contents.
> > This seems like a bug and not user misuse, so I am posting this here.
> > I'm attaching a minimally reproducing example and pdf (in case you don't
> > have Hebrew fonts).
> >
> > Also, I have never seen LyX's code, but I was going to try to get
> involved
> > anyway,
> > so if this is an easy fix and you can give me some pointers on how to fix
> > this, I would be willing to patch this myself.
>
> The problem here is that language changing commands cannot occur in
> sections, so LyX is outputting \seleclanguage{english} outside of the
> \section command and thus the toc entry turns out to be in hebrew.
> Try forcing use of the \L macro, for example by inserting an empty ERT
> in hebrew language inside the section. See attached example (I cannot
> test it as I don't have the necessary fonts).
>
> --
> Enrico
>

Reply via email to