reutenauer / polyglossia

An alternative to Babel for XeLaTeX and LuaLaTeX
http://www.ctan.org/pkg/polyglossia
MIT License
190 stars 51 forks source link

Deprecated LaTeX hooks #523

Closed Basmah1961 closed 2 years ago

Basmah1961 commented 2 years ago

I get the following error when trying to use polyglossia with XeLaTeX

: Generic hook 'file/after/tracklang.sty' is deprecated. : Generic hook 'package/after/bidi' is deprecated.

Here is a code which illustrates the issue. This happened after update on MiKTeX on 8-Dec-2021. Switching to LuaLaTeX does not cause an error but causes the typeset text to overlap.

image

% !TeX TS-program = xelatex

\documentclass[a4paper]{article}

\usepackage{multicol}

    % ========== Indexing packages =========
\usepackage{nomencl}
% BEGIN_FOLD

\makenomenclature

\renewcommand{\nomlabelwidth}{2.2cm}

\newlength{\heightNomgroupSep}
\setlength{\heightNomgroupSep}{\baselineskip}
\renewcommand{\nomgroup}[1]{%
    \vspace{\heightNomgroupSep}%
    \item[%
    \ifthenelse{\equal{#1}{C}}{\vspace{\heightNomgroupSep}\bfseries Chemical Compounds}{}%
    \ifthenelse{\equal{#1}{T}}{\vspace{\heightNomgroupSep}\bfseries Abbreviations}{}%
    ]%
}

% END_FOLD

\usepackage{blindtext}

\usepackage{fontspec}
\usepackage{polyglossia}

\setmainlanguage{english}

\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{ScheherazadeNew-Regular}

\setotherlanguage{arabic}
%\RTLmulticolcolumns

\begin{document}

% BEGIN_FOLD

\nomenclature{fertilizers}{\textarabic{اسمده}}%

\nomenclature{pesticides}{\textarabic{مبيدات حشرية}}%

\nomenclature{pollute}{\textarabic{يلوث}}%

\nomenclature{toxic}{\textarabic{سام}}%

\nomenclature{aquatic}{\textarabic{بحري}}%

\nomenclature{monocultures}{\textarabic{الزراعة الأحادية}}%

\nomenclature{biodiversity}{\textarabic{التنوع الحيوي}}%

\nomenclature{landscapes}{\textarabic{المناظر الطبيعية}}%

\nomenclature{transportation}{\textarabic{النقل}}%

\nomenclature{artificial}{\textarabic{صناعي}}%

\nomenclature{nutrient}{\textarabic{غذائي}}%

\nomenclature{fracking}{\textarabic{التكسير}}%

\nomenclature{spillage}{\textarabic{تسرب}}%

\nomenclature{ocean}{\textarabic{محيط}}%

\nomenclature{dumping}{\textarabic{طرح}}%

\nomenclature{leakage}{\textarabic{تسرب}}%

\nomenclature{algae}{\textarabic{طحالب}}%

\nomenclature{depletion}{\textarabic{استنزاف}}%

\nomenclature{corrosive}{\textarabic{آكل (مسبب للتآكل)}}%

\nomenclature{carcinogen}{\textarabic{مسرطن}}%

\nomenclature{contaminated}{\textarabic{ملوث}}%

\nomenclature{hydraulic}{\textarabic{هيدروليكي}}%

\nomenclature{solvents}{\textarabic{المذيبات}}%

\nomenclature{endangered}{\textarabic{مهدد (بالانقراض)}}%

\nomenclature{extend}{\textarabic{يمتد}}%

\nomenclature{particulates}{\textarabic{الجسيمات}}%

% END_FOLD

\blindtext

\makeatletter
{

    \twocolumn

    \section*{\nomname} % nomenclature name

    \renewcommand{\nomname}{} % remove nomenclature name
    \printnomenclature

}
\makeatother

\end{document}
jspitz commented 2 years ago

I have fixed the warnings, but these were harmless anyway.

What do you mean by "XeLaTeX crashes"?

Basmah1961 commented 2 years ago

I have fixed the warnings, but these were harmless anyway.

What do you mean by "XeLaTeX crashes"?

I get the following message

Error: Command crashed: xelatex.exe -synctex=1 -interaction=nonstopmode

It seems to be an issue with XeLaTeX itself rather than polyglossia package

jspitz commented 2 years ago

I think so, too. Let's keep this open due to the warning issues.