From e8601bfcf3091f2cb941bbc4e793eb2dc5fca188 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 25 Sep 2014 21:41:58 +0000 Subject: xepersian (25sep14) git-svn-id: svn://tug.org/texlive/trunk@35260 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/xelatex/xepersian/xepersian.dtx | 167 ++++++++++++++++++--- .../source/xelatex/xepersian/xepersian.ins | 4 +- 2 files changed, 150 insertions(+), 21 deletions(-) (limited to 'Master/texmf-dist/source/xelatex') diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 781c46db2dd..b1beaf65e11 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 -v15 +v15.1 XePersian is a package written for XeLaTeX that allows users to typeset Persian easily. @@ -18,10 +18,20 @@ This version fixes bugs and adds new features; for more details please see the Change History section at the end of the documentation. -Current version release date: 2014/09/22 +If you want to report any bugs or typos and corrections in the documentation, +or ask for any new features, or suggest any improvements, or ask any questions +about the package, then please do not send any direct email to me; I will not +answer any direct email. Instead please use the issue tracker: + +In doing so, please always explain your issue well enough, always include +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: 2014/09/25 ______________ Vafa Khalighi -tex.ctan@gmail.com +persian-tex@tug.org Copyright © 2008–2014 Distributed under the LaTeX Project Public License @@ -43,7 +53,7 @@ by Vafa Khalighi. \preamble __________________________________________________ - Copyright © 2008–2014 Vafa Khalighi + Copyright © 2008–2014 Vafa Khalighi It may be distributed and/or modified under the LaTeX Project Public License, version 1.3c or higher (your choice). The latest version of @@ -144,14 +154,16 @@ by Vafa Khalighi. \documentclass{ltxdoc} \usepackage{supertabular} \usepackage{fontspec} +\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Iwona} \usepackage{calc} \usepackage{pifont} \usepackage{bbding} \usepackage{bidicode} +\usepackage{microtype} \definecolor{xepersianblue}{rgb}{0.1,0.2,0.8} \usepackage[numbered]{hypdoc} \definecolor{myred}{rgb}{0.65,0.04,0.07} -\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeX, using XeTeX engine)},pdfauthor={Vafa Khalighi },linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue} +\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeX, using XeTeX engine)},pdfauthor={Vafa Khalighi },linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue} \usepackage{bidi} \setlength\columnseprule{.4pt} \newfontfamily\ParsiFont[Script=Arabic]{Iranian Sans} @@ -175,7 +187,64 @@ by Vafa Khalighi. \pdfstringdefDisableCommands{% \renewcommand\Lcs[1]{\textbackslash#1} } +\newbox\xepersianlogobox +\sbox{\xepersianlogobox}{\includegraphics[height=0.5in,keepaspectratio=true]{xepersian-logo}} +\def\ps@docheadings{% + \let\@oddhead\@empty + \def\@oddfoot{\parbox{\textwidth}{\hfill\leftmark\quad\thepage\qquad\raisebox{-0.2in}{\usebox\xepersianlogobox}}}% + \let\@mkboth\markboth + \def\sectionmark##1{% + \markboth {% + ##1}{}}} +\def\@part[#1]#2{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{part}% + \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% + \else + \addcontentsline{toc}{part}{#1}% + \fi + {\parindent \z@ \raggedright + \interlinepenalty \@M + \normalfont + \ifnum \c@secnumdepth >\m@ne + \Large\bfseries\color{blue!65!black} \partname\nobreakspace\thepart + \par\nobreak + \fi + \huge \bfseries #2% + \markboth{}{}\par}% + \nobreak + \vskip 3ex + \@afterheading} +\def\@spart#1{% + {\parindent \z@ \raggedright + \interlinepenalty \@M + \normalfont + \huge \bfseries\color{blue!65!black} #1\par}% + \nobreak + \vskip 3ex + \@afterheading} +\renewcommand\section{\@startsection {section}{1}{\z@}% + {-3.5ex \@plus -1ex \@minus -.2ex}% + {2.3ex \@plus.2ex}% + {\normalfont\Large\bfseries\color{blue!65!black}}} +\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\normalfont\large\bfseries\color{blue!65!black}}} +\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\normalfont\normalsize\bfseries\color{blue!65!black}}} +\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% + {3.25ex \@plus1ex \@minus.2ex}% + {-1em}% + {\normalfont\normalsize\bfseries\color{blue!65!black}}} +\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% + {3.25ex \@plus1ex \@minus .2ex}% + {-1em}% + {\normalfont\normalsize\bfseries\color{blue!65!black}}} \makeatother +\pagestyle{docheadings} \newcounter{local} \renewcommand\theenumi{\protect\setcounter{local}% {201+\the\value{enumi}}\protect\ding{\value{local}}} @@ -200,14 +269,52 @@ by Vafa Khalighi. % % \GetFileInfo{\jobname.dtx} %\changes{v13.1}{2013/09/23}{Added implementation of the package.} -% \title{The \textsf{\XePersian} Package\\[10pt] -% \includegraphics[width=0.5\textwidth]{xepersian-logo}\\[10pt] -% Persian for \LaTeX, using {\XeTeX} engine} +% \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 15.1}} % \author{Vafa Khalighi\\ -% \url{tex.ctan@gmail.com}} -% \date{\today\qquad Version 15} +% \url{persian-tex@tug.org}} +%\setcounter{page}{0} +%\thispagestyle{empty} +%\includegraphics[width=.3\textwidth]{xepersian-logo}\qquad +%\parindent 0pt +%\vbox{\Huge +%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}} +% +%\Large +%Documentation for \textcolor{blue!65!black}{version 15.1}} +% +%\vskip 0pt plus 3fill +%\textit{\large to my Master, \textbf{Ferdowsi The Great}} +% +%\vskip 0pt plus 3fill +%{\color{red!85!black}\fbox{\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule} +%If you want to report any bugs or typos and corrections in the documentation, +%or ask for any new features, or suggest any improvements, or ask any questions +%about the package, then please do not send any direct email to me; I will not +%answer any direct email. Instead please use the issue tracker: +% +%\medskip +% \centerline{\url{https://github.com/persian-tex/xepersian/issues}} +% +%\medskip +%In doing so, please always explain your issue well enough, always include +%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). +%\end{minipage} +%}} +% +%\vskip 0pt plus 3fill +% +%Copyright © 2008–2014 Vafa Khalighi +% +%\medskip +%Permission is granted to distribute and/or modify \emph{both the documentation and the code} under the conditions of the \LaTeX{} Project Public License, either version 1.3c of this license or (at your option) any later version. +% +%\clearpage %\maketitle % \tableofcontents +%\clearpage %\section{Introduction} %\XePersian\ is a package for typesetting Persian/English documents with \XeLaTeX. The package includes adaptations for use with many other commonly-used packages. %\subsection{Important Notes} @@ -230,14 +337,16 @@ by Vafa Khalighi. %* %* Copyright © 2008–2014 Vafa Khalighi %* -%* v15, 2014/09/22 +%* v15.1, 2014/09/25 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) %* %* Location on CTAN: /macros/xetex/latex/xepersian %* -%* Support: tex.ctan@gmail.com +%* Issue tracker: https://github.com/persian-tex/xepersian/issues +%* +%* Support: persian-tex@tug.org %**************************************************** %\end{verbatim} %\section{Basics\label{basics}} @@ -2256,7 +2365,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{9947} +%% \CheckSum{9967} %% \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 @@ -5563,15 +5672,14 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v15} -\def\xepersiandate{2014/09/22} +\def\xepersianversion{v15.1} +\def\xepersiandate{2014/09/25} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} -\RequirePackage{xkeyval} \RequirePackage{xepersian-persiancal} \RequirePackage{xepersian-mathsdigitspec} -\RequirePackage[RTLdocument]{bidi} +\RequirePackage{bidi} \edef\@xepersian@info{****************************************************^^J% * ^^J% * xepersian package (Persian for LaTeX, using XeTeX engine)^^J% @@ -5589,7 +5697,9 @@ Persian typesetting in XeLaTeX] * ^^J% * Location on CTAN: /macros/xetex/latex/xepersian^^J% * ^^J% -* Support: tex.ctan@gmail.com^^J% +* Issue tracker: https://github.com/persian-tex/xepersian/issues^^J% +* ^^J% +* Support: persian-tex@tug.org^^J% ****************************************************} \typeout{\@xepersian@info} \edef\xepersian@everyjob{\the\everyjob} @@ -6191,6 +6301,18 @@ or load the package with `preloadedlatintextfont' option.}% \or \PersianMathsDigits \fi} +\define@choicekey{xepersian.sty}{RTLdocument}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{% + \ifcase\xepersian@tempb\relax + \@RTLtrue + \or + \@RTLfalse + \fi} +\define@choicekey{xepersian.sty}{rldocument}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{% + \ifcase\xepersian@tempb\relax + \@RTLtrue + \or + \@RTLfalse + \fi} \define@choicekey{xepersian.sty}{footnoterule}[\xepersian@tempa\xepersian@tempb]{automatic,left,right,split,textwidth}{% \ifcase\xepersian@tempb\relax \autofootnoterule @@ -6284,6 +6406,13 @@ or load the package with `preloadedlatintextfont' option.}% \DeclareOptionX{preloadedlatintextfont}{% \setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold},#1]{lmroman10-regular}% } + +\ExecuteOptionsX{% + RTLdocument=on, + footnotedirection=righttoleft, + footnoterule=automatic +} + \ProcessOptionsX \if@extrafootnotefeatures @@ -7787,7 +7916,7 @@ indexblock environment may only appear inside frontpage environment. وفا خلیقی، مهدی امیدعلی و مصطفی واحدی -\texttt{tex.ctan@gmail.com\\[5pt] +\texttt{persian-tex@tug.org\\[5pt] http://google.com}\\ \end{authorblock} \end{frontpage} diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins index 80e40702c7e..dd4b7d4fa60 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins @@ -7,7 +7,7 @@ %% xepersian.dtx (with options: `batchfile') %% %% __________________________________________________ -%% Copyright © 2008–2014 Vafa Khalighi +%% Copyright © 2008–2014 Vafa Khalighi %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -23,7 +23,7 @@ \preamble __________________________________________________ - Copyright © 2008–2014 Vafa Khalighi + Copyright © 2008–2014 Vafa Khalighi It may be distributed and/or modified under the LaTeX Project Public License, version 1.3c or higher (your choice). The latest version of -- cgit v1.2.3