summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-24 22:03:43 +0000
committerKarl Berry <karl@freefriends.org>2017-08-24 22:03:43 +0000
commit07b662d6b533b08c361443670f6c2211ae4aa4f4 (patch)
tree14d4a49c822a61c63709543b39d7664fc2a08c7d /Master/texmf-dist
parent2beaa335bb29421ddc7eedf069eb782ac8127b55 (diff)
quran (24aug17)
git-svn-id: svn://tug.org/texlive/trunk@45122 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/README4
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-doc.pdfbin247504 -> 247612 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-doc.tex21
-rw-r--r--Master/texmf-dist/tex/xelatex/quran/quran.sty20
4 files changed, 30 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/xelatex/quran/README b/Master/texmf-dist/doc/xelatex/quran/README
index 31e58c1ca2c..2285bf41cde 100644
--- a/Master/texmf-dist/doc/xelatex/quran/README
+++ b/Master/texmf-dist/doc/xelatex/quran/README
@@ -1,6 +1,6 @@
_____________________
The quran package
-v1.252
+v1.261
The package is prepared for typesetting the Holy Quran. This work is inspired
by lipsum and ptext packages, provides several macros for typesetting the whole or
@@ -8,7 +8,7 @@ any parts of The Holy Quran based on its popular divisions.
For more information, please see the documentation.
-Current version release date: 2017/02/28
+Current version release date: 2017/08/22
___________________
Seiied-Mohammad-Javad Razvian
javadr@gmail.com
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf b/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
index e7942ac2e77..08ff05d0611 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex b/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
index f84b71fe2e9..f7f9c14ba0e 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
@@ -1,9 +1,7 @@
\documentclass{ltxdoc}
-%\usepackage{caption}
\usepackage{forloop}
\usepackage{pgf}
-%\usepackage{pgfcalendar}
\usepackage{framed}
\usepackage{holtxdoc}
\usepackage{url}
@@ -13,6 +11,14 @@
\usetikzlibrary{calc}
\usepackage{fontspec}
\newfontfamily\quran[Script=Arabic]{Scheherazade}
+\hypersetup{%
+ plainpages=false,%
+ bookmarksnumbered,%
+ pdftitle={The quran Package},%
+ pdfkeywords={quran, surah, ayah, juz, hizb, ruku, manzil},%
+ pdfauthor={Seiied-Mohammad-Javad Razavian},%
+ baseurl={http://mirrors.ctan.org/macros/xetex/latex/quran/doc/quran-doc.pdf},%
+}
% because of definition of \XeTeX and \XeLaTeX symbols in bidi, I should undef these macro that are also defined in holtxdoc package.
\makeatletter
\bidi@undef\XeTeX
@@ -74,14 +80,14 @@
The \xpackage{quran} Package\footnote{to one who has devoted his life to Quran}}
\author{Seiied Mohammad Javad Razavian\\\xemail{javadr@gmail.com}}
-\date{February 28, 2017}
+\date{August 22, 2017}
\begin{document}
\maketitle
\begin{framed}
This manual is incomplete and the package is under development. \par
-\centerline{ver 1.252}
+\centerline{ver 1.261}
\end{framed}
\tableofcontents
@@ -99,7 +105,7 @@ After loading the package, it writes some information about itself to the
terminal and to the log file, too. The information is something like:
\begin{lstlisting}[style=BashInputStyle, language=tex]
-Package: quran 2016/12/25 v1.251 An easy way to typeset the whole or any part of The Holy Quran
+Package: quran 2017/08/22 v1.261 An easy way to typeset the whole or any part of The Holy Quran
\end{lstlisting}
\section{Typesetting The Holy Quran}
@@ -512,6 +518,11 @@ fontspec{,} and bidi"]
\preto\qurantext{\quran}
\end{lstlisting}
+ By setting default font as above, if you want to use \cs{quratext}, you have to enclose it in curly braces. If you don't,
+ it will affect the following text font.
+\begin{lstlisting}[style=BashInputStyle]
+{\qurantext[x-y]}
+\end{lstlisting}
\subsection{How to typeset a portion of the Holy Quran in one paragraph
with no ayah number without affecting the behaviour of \xpackage{quran} package
in other cases?}
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}%