diff options
Diffstat (limited to 'macros/unicodetex/latex/quran/doc/quran-test2.tex')
-rw-r--r-- | macros/unicodetex/latex/quran/doc/quran-test2.tex | 103 |
1 files changed, 50 insertions, 53 deletions
diff --git a/macros/unicodetex/latex/quran/doc/quran-test2.tex b/macros/unicodetex/latex/quran/doc/quran-test2.tex index baed4dcdf9..7e2c88117f 100644 --- a/macros/unicodetex/latex/quran/doc/quran-test2.tex +++ b/macros/unicodetex/latex/quran/doc/quran-test2.tex @@ -1,96 +1,93 @@ %This document wants to the explain the quran package with some examples. \documentclass{article} +\usepackage{fullpage} \usepackage{forloop} -\usepackage[trans={lt,de,en,fa}, wordwise]{quran} -%The xepersian package automatically load bidi, and I've loaded it because I want to set a font that supports Arabic letters -\usepackage{xepersian} +\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\surahname[#1]\hss}} -\def\test#1{% - \par - \surna[#1] - \quransurah*[#1] - \bigskip -} +\def\surna[#1]{\centerline{\hss سورة \surahname*[#1]\hss \lr{Surah \surahname[#1]}\hss}} \begin{document} -\quransurah*[1] +\parindent=0pt -\quranayah*[2][286][5-24] +\quransurah[1] -\quranayah*[1][1-7][3-4] +\section{\lr{Typesetting Basmalah}} -\qurantext*[1-2][6]+ - -\qurantext*[1-2][6-8] +\surna[108] % Surah Al-Ikhlas % For typesetting بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ use below macro -%\centerline{\basmalah} - +\centerline{\basmalah} +{\ToggleBasmalah \quransurah[108] % Surah Al-Kauther +} -%%\surna[110]\quransurah*[110] % Surah Al-Nasr - -%The below typeset 104th surah through 113th surah. -%%\quransurah*[104-113] - -\makeatletter -\surna[\qt@surah@default]\quransurah* % Surah Al-Ikhlas -\makeatother +\section{Examples} +\begin{latin} +In the following examples, several macros have been used to get some portion of Quran. +\end{latin} -\quranayah[33][33] -\quranayah*[76][1-22] +\subsection{\lr{Typesetting Surah}} +\surna[110] +\quransurah*[110] % Surah Al-Nasr -%%You can typeset whole of Holy Quran with below commands. -\newcounter{ct} -\forloop{ct}{110}{\value{ct} < 115} {\test{\the\value{ct}}} +%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]} -%%\quranjuz*[28-30] +\subsection{\lr{Typesetting Quran Pages}} +\quranpage*[256] -%\quranpage*[256] -%\quranpage*[3-4] +\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}]\vfill} +\quranpage*[\value{pg}]\bigskip} -%\quranhizb*[57-60] +\subsection{\lr{Typesetting Hizb}} +{\tiny \quranhizb*[57-60]} -%\quranquarter*[1-4] -%\quranquarter*[239-240] +\subsection{\lr{Typesetting Quarter}} +{\tiny \quranquarter*[1-4] +\quranquarter*[239-240]} -%\quranruku[313] -%\quranruku[556] +\subsection{\lr{Typesetting Ruku}} +\quranruku[313] +\quranruku[556] -%\quranmanzil*[2] +\subsection{\lr{Typesetting Manzil}} +{\tiny \quranmanzil*[2]} -%%\surna[1]\qurantext % Surah Al-Hamd -%%\surna[1]\qurantext* % Surah Al-Hamd +\subsection{\lr{Typesetting any Portion of Quran Script}} +% \surna[1] +% \qurantext % Surah Al-Hamd -%%\surna[114]\qurantext[6231-6236] % Surah Al-Nas +\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*[8-293] % Surah Al-Baqara - -%\qurantext[1-6236] % The whole of Holy Quran +\surna[114] +\qurantext*[6231-6236] % Surah Al-Nas +\surna[2] +\qurantext*[142-160] % Surah Al-Baqara -\newcount\mysurah -\newcount\myayah -\indexconvert{1436}{\mysurah}{\myayah} -سوره \the\mysurah +%\qurantext[1-6236] % The whole of Holy Quran -آیه \the\myayah \end{document} |