mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
fix-arabic-preamble-for-luatex
This commit is contained in:
parent
a03c442a62
commit
a2ad210926
@ -251,24 +251,26 @@ Language arabic_arabi
|
|||||||
DateFormats "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
|
DateFormats "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
|
||||||
RTL true
|
RTL true
|
||||||
PostBabelPreamble
|
PostBabelPreamble
|
||||||
% arabic + hyperref redefines \noboundary as local textcommand
|
\@ifundefined{if@rl}{}{
|
||||||
\let\orig@noboundary\noboundary
|
% arabic + hyperref redefines \noboundary as local textcommand
|
||||||
\DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
|
\let\orig@noboundary\noboundary
|
||||||
% work around too simple test for article-like classes in arabicore.sty
|
\DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
|
||||||
\ifdefined\chapter\else
|
% work around too simple test for article-like classes in arabicore.sty
|
||||||
\def\thesection{\protect\if@rl\protect\I{\number\c@section}%
|
\@ifundefined{chapter}{
|
||||||
\protect\else\protect\textLR{\number\c@section}%
|
\def\thesection{\protect\if@rl\protect\I{\number\c@section}%
|
||||||
\protect\fi}
|
\protect\else\protect\textLR{\number\c@section}%
|
||||||
\def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
|
\protect\fi}
|
||||||
\protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
|
\def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
|
||||||
\protect\fi}%
|
\protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
|
||||||
\def\thetable{\protect\if@rl\protect\I{\number\c@table}%
|
\protect\fi}
|
||||||
\protect\else\protect\textLR{\number\c@table}%
|
\def\thetable{\protect\if@rl\protect\I{\number\c@table}%
|
||||||
\protect\fi}%
|
\protect\else\protect\textLR{\number\c@table}%
|
||||||
\def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
|
\protect\fi}
|
||||||
\protect\else\protect\textLR{\number\c@figure}%
|
\def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
|
||||||
\protect\fi}%
|
\protect\else\protect\textLR{\number\c@figure}%
|
||||||
\fi
|
\protect\fi}
|
||||||
|
}{}
|
||||||
|
}
|
||||||
EndPostBabelPreamble
|
EndPostBabelPreamble
|
||||||
LangCode ar_SA
|
LangCode ar_SA
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user