2

Where is the error

\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}

closed as unclear what you're asking by user31729, user13907, Werner, Zarko, Mike Renfro Dec 23 '15 at 22:35

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    This is the error. The fontspec package requires either XeTeX or LuaTeX to function. You must change your typesetting engine to, e.g., "xelatex" or "lualatex" instead of plain "latex" or "pdflatex". :) – CroCo Dec 14 '15 at 20:32
  • 1
  • 1
    As CroCo noted: The error seems to be the wrong engine and has nothing to do with tcolorbox – user31729 Dec 14 '15 at 20:37
  • 1
    Please modify the title to reflect the real issue to overcome wrong results in search engines. – CroCo Dec 14 '15 at 21:00