%This document wants to the explain the quran package with some examples. \documentclass{article} \usepackage{fullpage} \usepackage{forloop} \usepackage{quran} %The xepersian package automatically load bidi, % It is loaded because it could be able to set a font that supports Arabic letters \usepackage{xepersian} % This macro set the main text font for non-latin letter, and it can scale font. \settextfont[Scale=1.1]{Scheherazade} \def\surna[#1]{\centerline{\hss سورة \surahname*[#1]\hss \lr{Surah \surahname[#1]}\hss}} \begin{document} \parindent=0pt \quransurah[1] \section{\lr{Typesetting Basmalah}} \surna[108] % Surah Al-Ikhlas % For typesetting بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ use below macro \centerline{\basmalah} {\ToggleBasmalah \quransurah[108] % Surah Al-Kauther } \section{Examples} \begin{latin} In the following examples, several macros have been used to get some portion of Quran. \end{latin} \subsection{\lr{Typesetting Surah}} \surna[110] \quransurah*[110] % Surah Al-Nasr %The below typeset 104th surah through 113th surah. \quransurah*[104-113] \subsection{\lr{Typesetting Juz}} %%You can typeset whole of Holy Quran with below commands. %%\newcounter{jz} %%\forloop{jz}{1}{\value{jz} < 31} {\quranjuz[\value{jz}]} {\tiny\quranjuz*[30]} \subsection{\lr{Typesetting Quran Pages}} \quranpage*[256] \quranpage*[3-4] %%You can typeset whole of Holy Quran with below commands, just replace 8 with 605. \newcounter{pg} \forloop{pg}{1}{\value{pg} < 8} { \hfill صفحة \arabic{pg} \par \quranpage*[\value{pg}]\bigskip} \subsection{\lr{Typesetting Hizb}} {\tiny \quranhizb*[57-60]} \subsection{\lr{Typesetting Quarter}} {\tiny \quranquarter*[1-4] \quranquarter*[239-240]} \subsection{\lr{Typesetting Ruku}} \quranruku[313] \quranruku[556] \subsection{\lr{Typesetting Manzil}} {\tiny \quranmanzil*[2]} \subsection{\lr{Typesetting any Portion of Quran Script}} % \surna[1] % \qurantext % Surah Al-Hamd \surna[1] \qurantext* % Surah Al-Hamd %\surna[114]\qurantext[6231-6236] % Surah Al-Nas \surna[114] \qurantext*[6231-6236] % Surah Al-Nas \surna[2] \qurantext*[142-160] % Surah Al-Baqara %\qurantext[1-6236] % The whole of Holy Quran \end{document}