Arabtex compilé avec Xelatex
Bonjour
j'ai un code latex écrit en arabe et que je compile avec Xelatex. Mon souci est que j'arrive pas à avoir le titre du chapitre écrit en arabe en haut de chaque page. Comment faire?
Je vous remercie d'avance
\documentclass[12pt,leqno,oneside,headsepline,footsepline]{book}
\usepackage[dvipsnames]{xcolor}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{xcolor}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\pagestyle{empty}
\newcommand{\espaceh}{39mm}
\newcommand{\espacev}{23mm}
\newcommand{\taille}{-15mm}
\newcommand{\lisse}{\espaceh/2}
\newcommand{\continu}{\lisse + \espaceh - 5}
\newcommand{\mesurable}{\continu + \espaceh + 30}
\newcommand{\mesure}{\mesurable + \espaceh + 15}
\newcommand{\ordrefini}{\mesure + \espaceh - 10}
\newcommand{\distribution}{\ordrefini + \espaceh - 10}
\newcommand{\regularite}{-10mm}
\newcommand{\compact}{\espacev/2}
\newcommand{\decroitvite}{\compact + \espacev}
\newcommand{\integrable}{\decroitvite + \espacev + 2}
\newcommand{\borne}{\integrable + \espacev + 15}
\newcommand{\tempere}{\borne + \espacev}
\newcommand{\locmtfini}{\tempere + \espacev + 10}
\renewcommand{\c}{\centering}
\newcommand{\ex}{ex\,:\;}
\newcommand{\vertex}{\node[draw, rectangle, rounded corners=3pt]}
\newcommand{\subvertex}{\node[draw, rectangle, rounded corners=3pt, dashed]}
\newcommand{\fleche}{\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}}, postaction={decorate}, shorten >=0.4pt]}
\newcommand{\flechesuperieure}[1]{%
\draw[line width=5pt, white, shorten <=5pt, shorten >=5pt] #1
\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}}, postaction={decorate}, shorten >=0.4pt] #1}
\mdfsetup{%
middlelinecolor=red,
middlelinewidth=2pt,
backgroundcolor=red!10,
roundcorner=10pt}
%\mdfdefinestyle{exampledefault}{backgroundcolor=red!20}
%\usepackage{mathabx}
%%%
\textwidth=16truecm%13truecm
\textheight=23truecm
\voffset=-2truecm
\hoffset=-1.5truecm%-0.5truecm
%%%
\usepackage[pdfauthor={كلمة},
pdftitle={مدخل }]{hyperref}
%\hypersetup{% bookmarks=true,
% unicode=true,
% colorlinks=true,
% citecolor=green, %black,
% filecolor=black,
% linkcolor=blue,
% urlcolor=cyan,
%}
\usepackage{amsfonts,amssymb}
%\usepackage{amsmath} وجود هذه الرزمة يجل طبع رقم المعادات بقوسين مقلوبين.
\usepackage{mathabx}
\usepackage{mathrsfs}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}%\pgfplotsset{compat=1.13}
\usepackage{longtable}
\usetikzlibrary{arrows}
%%%
\usepackage[toc,page]{appendix}
\usepackage[markcase=noupper,% remove the uppercasing
automark]{scrlayer-scrpage}
\ofoot*{ الأستاذة
\ifoot*{الكلمة}
\cfoot*{}
\ohead*{\pagemark}
\ihead{\leftmark}
%%%
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Amiri}
\newfontfamily\arabicfonttt[Script=Arabic,Scale=.75]{Amiri}
\newfontfamily\arabicfontrm[Script=Arabic,Scale=.75]{Amiri}
\newfontfamily\englishfont[Scale=1]{DejaVu Sans Mono}%Ubuntu,
%\newfontfamily\englishfontrm[Scale=1]{Ubuntu}%,DejaVu Sans Mono
\usepackage{makeidx}
%\usepackage[active]{srcltx}
\makeindex
\usepackage{arabtex}
\setarab \novocalize \ligsfalse
%%% 13/08/20
\newtheorem{qad}{\textarabic{قضية}}[chapter]
\newtheorem{mob}{\textarabic{مبرهنة}}[chapter]
\newtheorem{t`}{\textarabic{تعريف}}[chapter]%t`ryf
\newtheorem{n.z}{\textarabic{نظرية}}[chapter]
\newtheorem{ml}{\textarabic{ملاحظة}}[chapter]
\newtheorem{tmr}{\textarabic{تمرين}}[chapter]
\newtheorem{htmr}{\textarabic{حل التمرين}}[chapter]
\newtheorem{tw}{\textarabic{توطئة}}[chapter]
\newtheorem{t`-n.z}{\textarabic{تعريف ـ نظرية}}[chapter]
\newtheorem{nt}{\textarabic{نتيجة}}[chapter]
%%%
\DeclareRobustCommand{\timesr}{\fontfamily{artimes}\selectfont}
\let\times\relax
\DeclareMathSymbol{\times}{\mathbin}{symbols}{"02}
\mathchardef\cap="225C
\mathchardef\times="2202
\mathchardef\omega="0121
%\input{latifa}
\newcommand{\dfrac}[2]{\displaystyle{{#1}\over {#2}}}
\newcommand{\binom}[2]{{{#1}\choose{#2}}}
\usetikzlibrary{shadows}
%\includeonly{dist-preface}
\begin{document}
\chapter{المعادلات}
\begin{english}
\begin{arabtext}
bla
\end{arabtext}
\end{english}
\newpage
\begin{english}
\begin{arabtext}
bla
\end{arabtext}
\end{english}
\end{document}
\usepackage[dvipsnames]{xcolor}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{xcolor}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\pagestyle{empty}
\newcommand{\espaceh}{39mm}
\newcommand{\espacev}{23mm}
\newcommand{\taille}{-15mm}
\newcommand{\lisse}{\espaceh/2}
\newcommand{\continu}{\lisse + \espaceh - 5}
\newcommand{\mesurable}{\continu + \espaceh + 30}
\newcommand{\mesure}{\mesurable + \espaceh + 15}
\newcommand{\ordrefini}{\mesure + \espaceh - 10}
\newcommand{\distribution}{\ordrefini + \espaceh - 10}
\newcommand{\regularite}{-10mm}
\newcommand{\compact}{\espacev/2}
\newcommand{\decroitvite}{\compact + \espacev}
\newcommand{\integrable}{\decroitvite + \espacev + 2}
\newcommand{\borne}{\integrable + \espacev + 15}
\newcommand{\tempere}{\borne + \espacev}
\newcommand{\locmtfini}{\tempere + \espacev + 10}
\renewcommand{\c}{\centering}
\newcommand{\ex}{ex\,:\;}
\newcommand{\vertex}{\node[draw, rectangle, rounded corners=3pt]}
\newcommand{\subvertex}{\node[draw, rectangle, rounded corners=3pt, dashed]}
\newcommand{\fleche}{\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}}, postaction={decorate}, shorten >=0.4pt]}
\newcommand{\flechesuperieure}[1]{%
\draw[line width=5pt, white, shorten <=5pt, shorten >=5pt] #1
\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}}, postaction={decorate}, shorten >=0.4pt] #1}
\mdfsetup{%
middlelinecolor=red,
middlelinewidth=2pt,
backgroundcolor=red!10,
roundcorner=10pt}
%\mdfdefinestyle{exampledefault}{backgroundcolor=red!20}
%\usepackage{mathabx}
%%%
\textwidth=16truecm%13truecm
\textheight=23truecm
\voffset=-2truecm
\hoffset=-1.5truecm%-0.5truecm
%%%
\usepackage[pdfauthor={كلمة},
pdftitle={مدخل }]{hyperref}
%\hypersetup{% bookmarks=true,
% unicode=true,
% colorlinks=true,
% citecolor=green, %black,
% filecolor=black,
% linkcolor=blue,
% urlcolor=cyan,
%}
\usepackage{amsfonts,amssymb}
%\usepackage{amsmath} وجود هذه الرزمة يجل طبع رقم المعادات بقوسين مقلوبين.
\usepackage{mathabx}
\usepackage{mathrsfs}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}%\pgfplotsset{compat=1.13}
\usepackage{longtable}
\usetikzlibrary{arrows}
%%%
\usepackage[toc,page]{appendix}
\usepackage[markcase=noupper,% remove the uppercasing
automark]{scrlayer-scrpage}
\ofoot*{ الأستاذة
\ifoot*{الكلمة}
\cfoot*{}
\ohead*{\pagemark}
\ihead{\leftmark}
%%%
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Amiri}
\newfontfamily\arabicfonttt[Script=Arabic,Scale=.75]{Amiri}
\newfontfamily\arabicfontrm[Script=Arabic,Scale=.75]{Amiri}
\newfontfamily\englishfont[Scale=1]{DejaVu Sans Mono}%Ubuntu,
%\newfontfamily\englishfontrm[Scale=1]{Ubuntu}%,DejaVu Sans Mono
\usepackage{makeidx}
%\usepackage[active]{srcltx}
\makeindex
\usepackage{arabtex}
\setarab \novocalize \ligsfalse
%%% 13/08/20
\newtheorem{qad}{\textarabic{قضية}}[chapter]
\newtheorem{mob}{\textarabic{مبرهنة}}[chapter]
\newtheorem{t`}{\textarabic{تعريف}}[chapter]%t`ryf
\newtheorem{n.z}{\textarabic{نظرية}}[chapter]
\newtheorem{ml}{\textarabic{ملاحظة}}[chapter]
\newtheorem{tmr}{\textarabic{تمرين}}[chapter]
\newtheorem{htmr}{\textarabic{حل التمرين}}[chapter]
\newtheorem{tw}{\textarabic{توطئة}}[chapter]
\newtheorem{t`-n.z}{\textarabic{تعريف ـ نظرية}}[chapter]
\newtheorem{nt}{\textarabic{نتيجة}}[chapter]
%%%
\DeclareRobustCommand{\timesr}{\fontfamily{artimes}\selectfont}
\let\times\relax
\DeclareMathSymbol{\times}{\mathbin}{symbols}{"02}
\mathchardef\cap="225C
\mathchardef\times="2202
\mathchardef\omega="0121
%\input{latifa}
\newcommand{\dfrac}[2]{\displaystyle{{#1}\over {#2}}}
\newcommand{\binom}[2]{{{#1}\choose{#2}}}
\usetikzlibrary{shadows}
%\includeonly{dist-preface}
\begin{document}
\chapter{المعادلات}
\begin{english}
\begin{arabtext}
bla
\end{arabtext}
\end{english}
\newpage
\begin{english}
\begin{arabtext}
bla
\end{arabtext}
\end{english}
\end{document}
Connectez-vous ou Inscrivez-vous pour répondre.
Bonjour!
Catégories
- 165.2K Toutes les catégories
- 60 Collège/Lycée
- 22.1K Algèbre
- 37.5K Analyse
- 6.3K Arithmétique
- 58 Catégories et structures
- 1.1K Combinatoire et Graphes
- 13 Sciences des données
- 5.1K Concours et Examens
- 20 CultureMath
- 51 Enseignement à distance
- 2.9K Fondements et Logique
- 10.7K Géométrie
- 83 Géométrie différentielle
- 1.1K Histoire des Mathématiques
- 79 Informatique théorique
- 3.9K LaTeX
- 39K Les-mathématiques
- 3.5K Livres, articles, revues, (...)
- 2.7K Logiciels pour les mathématiques
- 24 Mathématiques et finance
- 337 Mathématiques et Physique
- 5K Mathématiques et Société
- 3.3K Pédagogie, enseignement, orientation
- 10.1K Probabilités, théorie de la mesure
- 801 Shtam
- 4.2K Statistiques
- 3.8K Topologie
- 1.4K Vie du Forum et de ses membres