Test entering an endless loop in latex processing

Jürgen Spitzmüller spitz at lyx.org
Sat Aug 22 08:28:17 UTC 2020


Am Freitag, den 21.08.2020, 19:06 +0200 schrieb Kornel Benko:
> This version does hang. Switch the commented documentclass, and now
> the compilation does not hang.

It boils down to the order of hebrew and farsi (or arabic):

====

\documentclass[
	hebrew,% breaks
	farsi,% or: arabic
%	hebrew,% compiles
	english]{article}

\usepackage[LAE,LFE,T1]{fontenc}
\usepackage[cp1255,utf8,latin9]{inputenc}

\usepackage{babel}

\begin{document}

Hello.

\end{document}

====

If Hebrew comes after farsi and arabic, it compiles, if it precedes, it
breaks with the following error (which is only ssen when compiling
manually):

! Argument of \o at everypar has an extra }.
<inserted text> 
                \par 
l.126    \n at everypar\expandafter{\the\o at everypar}


My guess is that arabicore.sty (use by Farsi and Arabic) and
lhbabel.def (used by Hebrew) redefine \everypar in incompatible ways.

What we can do is to assure that hebrew is always output after arabic
and farsi. But this of course only works if Arabic or Farsi are not the
main language.

I can try and file a report, but both Arabi and babel-hebrew don't have
seen updates for a long time.

Jürgen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200822/1203b5b2/attachment.asc>


More information about the lyx-devel mailing list