使用 polyglossia 包在 tcolorbox 中编译时出错

使用 polyglossia 包在 tcolorbox 中编译时出错

错误在哪里

\documentclass[a4paper, x11names]{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage{enumitem}
\usepackage{array,tabularx,multirow}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{fancyhdr}
\usepackage{tcolorbox}
\usepackage{tikz}
\tcbuselibrary{skins,breakable,xparse,listings}
\usetikzlibrary{patterns,calc,arrows.meta,arrows,positioning}
\usetikzlibrary{intersections,shapes}
\usepackage{float}
\usepackage{xcolor}
\usepackage{polyglossia}
    %select languages & fonts ==================================

    \setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic}
    \setotherlanguage{english}
    \newfontfamily\arabicfont[Script=Arabic,Scale=1.3]{Amiri}
    \newfontfamily\arabicfontsf[Script=Arabic,Scale=1.5]{Amiri}% Aljazeera

    \begin{document}

    \begin{tcblisting}{colback=red!5!white,colframe=red!75!black,listing and text}
    This is a  example.
    \end{tcblisting}

    \end{document}

相关内容