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.

With:

\documentclass{article}
\usepackage[hebrew,english]{babel}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}

You get:

! Missing \endcsname inserted.
<to be read again> 
                   \protect 
l.6 \end
        {document}
? 

The suggestions here do not work around the problem.

share|improve this question
    
One remark: I would define the language definitions as class options. They are forwarded to the packages, so each package (not only babel) will get the language. Or in other words: languages are document specific, not babel specific. This comment doesn't change anything for your problem. –  knut Mar 24 '12 at 9:32
add comment

1 Answer

up vote 9 down vote accepted

Hebrew babel redefines all the counter representation mechanism and lipsum relies on \roman for its inner workings.

You can change a macro in lipsum:

\usepackage{lipsum}
\makeatletter
\renewcommand\lips@dolipsum{%
  \ifnum\value{lips@count}<\lips@max\relax
    \addtocounter{lips@count}{1}%
    \csname lipsum@\romannumeral\c@lips@count\endcsname
    \lips@dolipsum
  \fi
}
\makeatother

so that it uses the primitive way of converting numbers to roman numerals.

Or you can use the similar kantlipsum package that doesn't suffer from the problem to begin with. (Disclaimer: I'm the author of kantlipsum.)

share|improve this answer
3  
..or blindtext (Disclaimer: I'm the author of blindtext ;) ) –  knut Mar 24 '12 at 9:29
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.