Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to use hyphens in a Hebrew document, but they do not appear in the resulting file. I've created this example to test the error. It seems only the unicode en-dash letter renders correctly when the Hebrew language is selected. Do you know why does this happens?

\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage[hebrew,english]{babel}

\begin{document}
Hyphen-Minus: Hello-World!

En dash: Hello–World!

Tex en dash: Hello--World!

Tex em dash: Hello---World!

\selectlanguage{hebrew}
\L{Maqaf } שלום־עולם!

\L{En dash } שלום–עולם!

\L{Hyphen-Minus } שלום-עולם!

\L{Tex en dash } שלום--עולם!

\L{Tex em dash } שלום---עולם!

\end{document}

The compiled example

share|improve this question
2  
I can't try your example as my system is missing the required fonts and don't know much about hebrew, but this is quite probably a font problem. Imho none of the package for hebrew with (pdf)latex is in good shape. I would suggest that you use xelatex instead. –  Ulrike Fischer Mar 12 '12 at 16:24
    
I installed ivritex (ivritex.sourceforge.net) for the fonts. I know using xelatex would be better, but I have to use pdflatex to cooperate with other people that only use it. –  haggai_e Mar 12 '12 at 20:04
add comment

1 Answer

It works for me with MikTeX 2.9 and the culmus package... Maybe you should try that instead of ivritex (I'm not sure how well they coexist).

share|improve this answer
    
Do you think it will work on Mac? –  haggai_e Mar 14 '12 at 11:51
    
@haggai_e: No idea. Googling yields this, but that may be out of date. –  einpoklum Mar 14 '12 at 18:53
    
Thanks. That's exactly what I've used in the first place. –  haggai_e Mar 14 '12 at 19:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.