1

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}
4
  • 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
    Commented Dec 14, 2015 at 20:32
  • 1
  • 1
    As CroCo noted: The error seems to be the wrong engine and has nothing to do with tcolorbox
    – user31729
    Commented Dec 14, 2015 at 20:37
  • 1
    Please modify the title to reflect the real issue to overcome wrong results in search engines.
    – CroCo
    Commented Dec 14, 2015 at 21:00

0

Browse other questions tagged .