summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/quran/quran.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/quran/quran.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/quran/quran.sty20
1 files changed, 12 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/xelatex/quran/quran.sty b/Master/texmf-dist/tex/xelatex/quran/quran.sty
index 9d15f4422fa..48b5c00a8c0 100644
--- a/Master/texmf-dist/tex/xelatex/quran/quran.sty
+++ b/Master/texmf-dist/tex/xelatex/quran/quran.sty
@@ -23,6 +23,10 @@
%% to one who has devoted his life to Quran
%%
%% Change Log
+%% ver 1.261 ## August 22th, 2017
+%% typo in version number.
+%% ver 1.26 ## August 22th, 2017
+%% minor improvements, fixes a bug in using \quranayah[x][y] that in this case it hadn't enclosed in group + manual update.
%% ver 1.252 ## February 28th, 2017
%% minor improvements
%% ver 1.25 and 1.251## December 25th, 2016
@@ -80,11 +84,12 @@
%% initial commit
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{quran}[2017/02/28 v1.252 An easy way to typeset the whole or any part of The Holy Quran]
+\ProvidesPackage{quran}[2017/08/22 v1.261 An easy way to typeset the whole or any part of The Holy Quran]
\RequirePackage{biditools}
\newcounter{qt@count}
\setcounter{qt@count}{0}
-\newif\ifqt@uthmani
+\newif\ifqt@uthmani%
+\newif\ifqt@basmalah%
%
\def\qt@par{\par}%
\def\basmalah{بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ \qt@par}%
@@ -312,16 +317,15 @@
\addtocounter{qt@i}{1}%
\repeat%
%
- \newif\if@basmalah%
\ifx\qt@max\qt@min%
\ifnum\qt@max=1 %omitting basmalah when only first ayah is requested
- \@basmalahtrue%
+ \qt@basmalahtrue%
\else%
- \@basmalahfalse%
+ \qt@basmalahfalse%
\fi%
- \if@basmalah\ToggleBasmalah\fi%
- \qurantext[\value{qt@start}]%
- \if@basmalah\ToggleBasmalah\fi%
+ \ifqt@basmalah\ToggleBasmalah\fi%
+ \begingroup\qurantext[\value{qt@start}]\endgroup%
+ \ifqt@basmalah\ToggleBasmalah\fi%
\else%
\addtocounter{qt@end}{\value{qt@start}}%
\addtocounter{qt@end}{-\qt@min}%