diff options
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index b7799c17f02..b38f0c7ad03 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx @@ -5,7 +5,7 @@ %<*readme> ____________________ The XePersian package -v19.4 +v19.5 XePersian is a package written for XeLaTeX that allows users to typeset Persian easily. @@ -28,11 +28,10 @@ a minimal working example showing the issue, and always choose the appropriate label for your query (i.e. if you are reporting any bugs, choose `Bug' label). -Current version release date: 2017/11/29 +Current version release date: 2017/12/19 ______________ Vafa Khalighi persian-tex@tug.org -Phone: (+61) 412486635 Copyright (c) 2008--2017 Distributed under the LaTeX Project Public License @@ -274,10 +273,9 @@ by Vafa Khalighi. %\changes{v13.1}{2013/09/23}{Added implementation of the package.} % \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\ %\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt] -%\large Documentation for \textcolor{blue!65!black}{version 19.4}} +%\large Documentation for \textcolor{blue!65!black}{version 19.5}} % \author{Vafa Khalighi\\ -% \url{persian-tex@tug.org}\qquad -% Phone: (+61) 412486635} +% \url{persian-tex@tug.org}} %\setcounter{page}{0} %\thispagestyle{empty} %\includegraphics[width=.3\textwidth]{xepersian-logo}\qquad @@ -286,7 +284,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}} % %\Large -%Documentation for \textcolor{blue!65!black}{version 19.4}} +%Documentation for \textcolor{blue!65!black}{version 19.5}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -341,7 +339,7 @@ by Vafa Khalighi. %* %* Copyright (c) 2008--2017 Vafa Khalighi %* -%* v19.4, 2017/11/29 +%* v19.5, 2017/12/19 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -351,8 +349,6 @@ by Vafa Khalighi. %* Issue tracker: https://github.com/tex-xet/xepersian/issues %* %* Support: persian-tex@tug.org -%* -%* Phone: (+61) 412486635 %* %**************************************************** %\end{verbatim} @@ -2365,7 +2361,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{9414} +%% \CheckSum{9425} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z @@ -5293,8 +5289,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v19.4} -\def\xepersiandate{2017/11/29} +\def\xepersianversion{v19.5} +\def\xepersiandate{2017/12/19} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -5322,8 +5318,6 @@ Persian typesetting in XeLaTeX] * ^^J% * Support: persian-tex@tug.org^^J% * ^^J% -* Phone: (+61) 412486635^^J% -* ^^J% ****************************************************} \typeout{\@xepersian@info} \edef\xepersian@everyjob{\the\everyjob} @@ -6216,6 +6210,11 @@ number is 999,999,999.}% } + +\DeclareOptionX{fontsizescale}{% + \def\xepersian@@fontsize@scale{#1}% + } + \define@choicekey{xepersian.sty}{computeautoilg}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{% \ifcase\xepersian@tempb\relax \@xepersian@@computeautoilgtrue @@ -6245,7 +6244,8 @@ number is 999,999,999.}% footnotedirection=righttoleft, footnoterule=automatic, abjadvariant=two, - DetectColumn=off + DetectColumn=off, + fontsizescale=\@ne } \ProcessOptionsX @@ -6255,6 +6255,10 @@ number is 999,999,999.}% \input{extrafootnotefeatures-xepersian.def} \fi +\bidi@patchcmd{\set@fontsize}{\@tempdimb#2pt}{% + \@tempdimb\xepersian@@fontsize@scale\dimexpr#2pt\relax +}{}{} + \if@xepersian@@computeautoilg \bidi@patchcmd{\set@fontsize}{% \baselineskip\f@baselineskip\relax |