1

I have this:

 \documentclass[12pt]{arabbook}
%%%%%%%%%%% packages
\usepackage{fancyhdr}
 \usepackage{arabtex} 
 \usepackage{amssymb}
 \usepackage{amsmath}
\usepackage{amsfonts}% R ensemble des nombres reels
\usepackage{graphicx}% ajouter des photos
\usepackage{pstricks}% pour dessiner
%%%%%%%%%%%% ab3ad AlsfhA
\textwidth= 15truecm % 
\textheight= 22.27truecm % 
\hoffset= -1.5 cm%truecm %
\voffset= -1.5 cm%truecm %
%%%%%%%%%%
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\footrulewidth}{1.5pt}
\renewcommand{\baselinestretch}{1.5}
% `dm Alt^skyl 
\novocalize
% bdAyt Alw_tyqT
\rhead{\RL{Alf.sl Al'awl}}
\lhead{\RL{`nwAn Alf.sl}}
\begin{document}
\begin{arabtext}

\end{arabtext}
\end{document}

I want to define the theorem environment, to obtain "nzryT 1: ..."

How to do it please?

Thank you

  • not what you want, but i think it's better to use xelatex here is an example (not the best but...) – touhami Dec 31 '17 at 21:02
  • @touhami i want to write with "latin" to obtain Arabic, not use directly Arabic, because i write the document – Vrouvrou Dec 31 '17 at 21:14
  • @touhami i can't define it ? – Vrouvrou Dec 31 '17 at 21:41
  • @Vrouvrou: What is nzryT? Is that Arabic for number? or Theorem? – user31729 Dec 31 '17 at 21:42
  • @ChristianHupfer Theorem – Vrouvrou Dec 31 '17 at 21:49
2

Here is a solution with xelatex and the package arabxetex.

\documentclass{book}
%---------------------------------------------
\usepackage{fontspec}
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Amiri}
%---------------------------------------------
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amssymb}
%---------------------------------------------
\usepackage{polyglossia}
\makeatletter 
\AtBeginDocument{\bidi@isloaded{arabxetex}}
\makeatother
\setdefaultlanguage{arabic}
\setotherlanguage{english}
%---------------------------------------------
\usepackage[novoc]{arabxetex}
%---------------------------------------------
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\footrulewidth}{1.5pt}
\renewcommand{\baselinestretch}{1.5}
% bdAyt Alw_tyqT
\rhead{\textarab{Alf.sl Al'awl}}
\lhead{\textarab{`nwAn Alf.sl}}
%---------------------------------------------
\newtheorem{theorem}{n.zryT}
\renewcommand{\thetheorem}{\textLR{\arabic{theorem}}}
%---------------------------------------------
\begin{document}
\chapter{\textarab{alqsmT}}
\begin{arab}
\begin{theorem}
kl `dad yqbl alqsmT `l 1.
\end{theorem}
\begin{theorem}
kl `dad yqbl alqsmT `l nfsh.
\end{theorem}
\end{arab}
\end{document}
  • I try to put \usepackage{arqam} and i put the files arqam.sty in the same document but there is many error why please ? – Vrouvrou Jan 1 '18 at 17:10
  • i want to obtain the number 1,2,3,... – Vrouvrou Jan 1 '18 at 17:17
  • and we can't do \chapter ? – Vrouvrou Jan 1 '18 at 17:30
  • for numbering you need to add \renewcommand{\thetheorem}{\textLR{\arabic{theorem}}} – touhami Jan 1 '18 at 17:49
  • for chapter, you need to use the book class, i am sorry, and then \chapter{\textarab{alqsmT}} for example. – touhami Jan 1 '18 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.