tags:

views:

33

answers:

2

I'm using LyX, but I guess a solution would be some TeX code. I'm writing a document in English and I want to insert some Hebrew text, but the document encoding doesn't let me. Using Hebrew encoding for the entire document doesn't work as it ruins the TOC, etc. Is there a way to locally change the text's encoding?

+4  A: 

Amir, I would suggest to change ALL de document encoding for some Unicode one - for example, UTF-8. Unicode encodings can support all writing systems. Is it possible? If not, why?

brandizzi
When I do this I get an error that the character was "not set up to use with LaTeX".
Amir Rachum
When I changed to utf8x, the TOC turns into Hebrew (??) and all the English in the TOC is reversed.
Amir Rachum
Could you share some resumed verson of the document, or some files which produce this error? I usually recommend use XeTeX/XeLaTeX when people got weird problems with UTF-8 but it is just a general recomendation. I believe we can know better with some examples of yours.
brandizzi
I actually got this to work with utf8x, thanks!
Amir Rachum
@Amir: if you want a fixed-width, ASCII-compatible charset, Latin-8 supports Hebrew letters: you can use \RequirePackage[8859-8]{inputenc}.
Charles Stewart
A: 

The distribution from http://ivritex.sourceforge.net/ has several examples. Take a look -- one of them must have what you need.

AVB