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
|
||||||
|
\@ifundefined{if@rl}{}{
|
||||||
% arabic + hyperref redefines \noboundary as local textcommand
|
% arabic + hyperref redefines \noboundary as local textcommand
|
||||||
\let\orig@noboundary\noboundary
|
\let\orig@noboundary\noboundary
|
||||||
\DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
|
\DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
|
||||||
% work around too simple test for article-like classes in arabicore.sty
|
% work around too simple test for article-like classes in arabicore.sty
|
||||||
\ifdefined\chapter\else
|
\@ifundefined{chapter}{
|
||||||
\def\thesection{\protect\if@rl\protect\I{\number\c@section}%
|
\def\thesection{\protect\if@rl\protect\I{\number\c@section}%
|
||||||
\protect\else\protect\textLR{\number\c@section}%
|
\protect\else\protect\textLR{\number\c@section}%
|
||||||
\protect\fi}
|
\protect\fi}
|
||||||
\def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
|
\def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
|
||||||
\protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
|
\protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
|
||||||
\protect\fi}%
|
\protect\fi}
|
||||||
\def\thetable{\protect\if@rl\protect\I{\number\c@table}%
|
\def\thetable{\protect\if@rl\protect\I{\number\c@table}%
|
||||||
\protect\else\protect\textLR{\number\c@table}%
|
\protect\else\protect\textLR{\number\c@table}%
|
||||||
\protect\fi}%
|
\protect\fi}
|
||||||
\def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
|
\def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
|
||||||
\protect\else\protect\textLR{\number\c@figure}%
|
\protect\else\protect\textLR{\number\c@figure}%
|
||||||
\protect\fi}%
|
\protect\fi}
|
||||||
\fi
|
}{}
|
||||||
|
}
|
||||||
EndPostBabelPreamble
|
EndPostBabelPreamble
|
||||||
LangCode ar_SA
|
LangCode ar_SA
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user