diff options
author | Karl Berry <karl@freefriends.org> | 2012-10-31 21:48:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-10-31 21:48:35 +0000 |
commit | b78d2a1cda41c8e3d83c82800ca01abb8ddf2b1f (patch) | |
tree | acb1e721fe03b1333a3f6b4e976b8cc581ae0b3c /Master/texmf-dist/source/xelatex | |
parent | 94d42d7395b8167256c615f1045aef29418dd937 (diff) |
xepersian (31oct12)
git-svn-id: svn://tug.org/texlive/trunk@28145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 447 | ||||
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.ins | 4 |
2 files changed, 263 insertions, 188 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 674e63f7dd9..2a697f57147 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx @@ -3,13 +3,23 @@ \iffalse %</internal> %<*readme> -_________________ +____________________ The XePersian package -v11.143 +v12 (Final Version) XePersian is a package written for XeLaTeX that allows users to typeset -Persian easily. The current version is 11.143 and it will be developed to -meet the needs of Persian typesetting properly. +Persian easily. This is the final version of xepersian package and no more +updates of xepersian package will appear. I am working on a commercial +package (namely Simurgh, for typesetting high quality Persian/English +documents with LuaTeX, which does not have bugs and limitations of +xepersian package) and therefore do not wish to continue the +development of xepersian package. Hence you may like to consider +xepersian as obsolete and may wish to purchase a copy of Simurgh +package. If you are interested to purchase a copy of Simurgh package, +then send me an email. Please do not email me with questions/queries +about bugs/limitations/usage of xepersian package; I am not interested +in those emails and your email will be deleted immediately without replying +back. The XePersian package is independent of any operating system, meaning it will work on all operating systems. @@ -22,17 +32,10 @@ in the documentation. To get help, please explore http://forum.parsilatex.com -________________________________________________________ -How to file bug reports and follow development of XePersian package - -The XePersian package is developed on <https://github.com/vafa/xepersian>. - -Users are encouraged to offer suggestions and file bug reports on -the github issue tracker: <https://github.com/vafa/xepersian/issues>. ______________ Vafa Khalighi -vafakhlg@gmail.com +vafak12@gmail.com Copyright © 2008–2012 Distributed under the LaTeX Project Public License @@ -62,7 +65,7 @@ by Vafa Khalighi. \endpreamble \postamble -Copyright © 2008–2012 Vafa Khalighi <vafakhlg@gmail.com> +Copyright © 2008–2012 Vafa Khalighi <vafak12@gmail.com> It may be distributed and/or modified under the LaTeX Project Public License, version 1.3c or higher (your choice). The latest version of @@ -169,12 +172,9 @@ by Vafa Khalighi. \definecolor{myred}{rgb}{0.65,0.04,0.07} \definecolor{TFFrameColor}{rgb}{0.1,0.2,0.8} \definecolor{TFTitleColor}{rgb}{1,1,1} -\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={Vafa Khalighi <vafakhlg@gmail.com>},linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue} +\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={Vafa Khalighi <vafak12@gmail.com>},linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue} \usepackage{bidi} \setlength\columnseprule{.4pt} -\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro} -\setsansfont[Mapping=tex-text,Numbers=OldStyle]{Myriad Pro} -\setmonofont{Andale Mono} \newfontfamily\ParsiFont[Script=Arabic]{Iranian Sans} \def\Pcs#1{\nxPLcs{#1}} \def\nxPLcs#1{\RLE{\texttt{\symbol{92}\ParsiFont#1}}} @@ -224,15 +224,24 @@ by Vafa Khalighi. % \makeatletter % \title{The \textsf{\XePersian} Package\\[10pt] % \includegraphics[width=0.5\textwidth]{xepersian-logo}\\[10pt] -% Persian for \LaTeXe{} over \XeTeX\\ -%\url{https://github.com/vafa/xepersian}} +% Persian for \LaTeXe{} over \XeTeX} % \author{Vafa Khalighi\\ -% \url{vafakhlg@gmail.com}} -% \date{\today\qquad Version 11.143} +% \url{vafak12@gmail.com}} +% \date{\today\qquad Version 12 (Final Version)} %\maketitle -%\begin{titled-frame}{How to file bug reports and follow development of \textsf{XePersian} package} -%The \textsf{XePersian} package is developed on \url{https://github.com/vafa/xepersian}. Users are encouraged to offer suggestions and file bug reports on the github issue tracker: -%\url{https://github.com/vafa/xepersian/issues}. +%\begin{titled-frame}{Important Note} +%This is the final version of \textsf{xepersian} package and no more +%updates of \textsf{xepersian} package will appear. I am working on a commercial +%package (namely \textsf{Simurgh}, for typesetting high quality Persian/English +%documents with LuaTeX, which does not have bugs and limitations of +%\textsf{xepersian} package) and therefore do not wish to continue the +%development of \textsf{xepersian} package. Hence you may like to consider +%\textsf{xepersian} as obsolete and may wish to purchase a copy of \textsf{Simurgh} +%package. If you are interested to purchase a copy of \textsf{Simurgh} package, +%then send me an email. Please do not email me with questions/queries +%about bugs/limitations/usage of \textsf{xepersian} package; I am not interested +%in those emails and your email will be deleted immediately without replying +%back. %\end{titled-frame} %\newpage %\tableofcontents @@ -253,7 +262,7 @@ by Vafa Khalighi. %Description: The package supports Persian %typesetting, using fonts provided in the distribution. %Copyright © 2008-2012 Vafa Khalighi -%v11.143, 2012/07/25 +%v12 (Final Version), 2012/12/12 %License: LaTeX Project Public License, version 1.3c or higher (your choice) %Location on CTAN: /macros/xetex/latex/xepersian %\end{lstlisting} @@ -320,8 +329,8 @@ by Vafa Khalighi. %\end{document} %\end{lstlisting} %\subsection{{Options of The Package\label{options}}} -%There are three options: -%\subsection{\texttt{extrafootnotefeatures} Option} +%There are four options: +%\subsubsection{\texttt{extrafootnotefeatures} Option} %This is just the \texttt{extrafootnotefeatures} Option of \textsf{bidi} package. If you enable this option, you can typeset footnotes in paragraph form or in multi-columns (from two-columns to ten-columns). For more details, please read the manual of \textsf{bidi} package. %\subsubsection{\texttt{Kashida} Option} %If you pass \texttt{Kashida} option to the package, you will use Kashida for stretching words for better output quality and getting rid of underfull or overfull \Lcs{hbox} messages. @@ -1768,7 +1777,7 @@ by Vafa Khalighi. %\Lcs{harfinumeral}\Largb{\Larga{integer}}\quad\Lcs{adadinumeral}\Largb{\Larga{integer}}\quad\Lcs{tartibinumeral}\Largb{\Larga{integer}}\quad %\end{BDef} %\begin{itemize} -%\item The range of \texttt{harfi} counter is integers between 1 and 32 (number of the Persian alphabets) and \texttt{adadi} and \texttt{harfi} counters, are integers between 0 and 999,999,999. +%\item The range of \texttt{harfi} counter is integers between 1 and 32 (number of the Persian alphabets) and \texttt{adadi} and \texttt{tartibi} counters, are integers between 0 and 999,999,999. %\item For \texttt{harfi} counter, if you give an integer bigger than 32 or a negative integer (if you give integer 0, it returns nothing), then you get error and for \texttt{adadi} and \texttt{tartibi} counters, if you give an integer bigger than 999,999,999, then you get an error message. %\item For \texttt{adadi} and \texttt{tartibi} counters, if you give an integer less than 0 (a negative integer), then \texttt{adadi} and \texttt{tartibi} counters return \textbf{adadi} and \textbf{tartibi} form of the integer 0, respectively. %\item \Lcs{harfinumeral} returns the \textbf{harfi} form of \Larga{integer}, where $1\leq integer\leq32$ and \Lcs{adadinumeral}, and \Lcs{tartibinumeral} return \textbf{adadi}, and \textbf{tartibi} form of \Larga{integer} respectively, where $0\leq integer\leq 999,999,999$. @@ -1823,17 +1832,17 @@ by Vafa Khalighi. % % %\subsection{Converting Your Farsi\TeX\ Files To \XePersian\ or Unicode} -%There is a python program written by Mostafa Vahedi that enables you to convert Farsi\TeX\ files to \XePersian\ or unicode. This program can be found in \textsf{doc} folder with the name \texttt{ftxe-0.11.py}. To convert your Farsi\TeX\ files to \XePersian, put \texttt{ftxe-0.11.py} in the same directory that your Farsi\TeX\ file is, and then open a terminal/command prompt and do the following: +%There is a python program written by Mostafa Vahedi that enables you to convert Farsi\TeX\ files to \XePersian\ or unicode. This program can be found in \textsf{doc} folder with the name \texttt{ftxe-0.12.py}. To convert your Farsi\TeX\ files to \XePersian, put \texttt{ftxe-0.12.py} in the same directory that your Farsi\TeX\ file is, and then open a terminal/command prompt and do the following: % %\begin{BDef}\ttfamily -%python ftxe-0.11.py file.ftx file.tex +%python ftxe-0.12.py file.ftx file.tex %\end{BDef} % %This will convert your \texttt{file.ftx} (Farsi\TeX\ file) to \texttt{file.tex} (\XePersian\ file). % %The general syntax syntax of using the python script is as follow: %\begin{BDef}\ttfamily -%python ftxe-0.11.py [-r] [-s] [-x] [-u] input-filename1 input-filename2 +%python ftxe-0.12.py [-r] [-s] [-x] [-u] input-filename1 input-filename2 %\end{BDef} %Where %\begin{description} @@ -2274,48 +2283,61 @@ by Vafa Khalighi. \def\appendix{\par\c@section\z@ \c@subsection\z@ \let\sectionname\appendixname \def\thesection{\@harfi\c@section}} + \long\def\@footnotetext#1{% - \begingroup - \setbox\footins - \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}} + + + + + \long\def\@RTLfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLtrue\reset@font\footnotesize + \insert\footins{% + \@RTLtrue% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}} + + + + + + + \long\def\@LTRfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLfalse\reset@font\footnotesize + \insert\footins{% + \@RTLfalse% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}} + + +\footdir@temp\footdir@ORG@xepersian@amsart@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@amsart@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@amsart@LTRfootnotetext\@LTRfootnotetext{L}% + % \end{macrocode} % \iffalse %</amsart-xepersian.def> @@ -2330,48 +2352,60 @@ by Vafa Khalighi. \c@chapter\z@ \c@section\z@ \let\chaptername\appendixname \def\thechapter{\@harfi\c@chapter}} + \long\def\@footnotetext#1{% - \begingroup - \setbox\footins - \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}} + + + + + \long\def\@RTLfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLtrue\reset@font\footnotesize + \insert\footins{% + \@RTLtrue% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}} + + + + + + + \long\def\@LTRfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLfalse\reset@font\footnotesize + \insert\footins{% + \@RTLfalse% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}} + +\footdir@temp\footdir@ORG@xepersian@amsbook@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@amsbook@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@amsbook@LTRfootnotetext\@LTRfootnotetext{L}% + % \end{macrocode} % \iffalse %</amsbook-xepersian.def> @@ -3898,49 +3932,70 @@ by Vafa Khalighi. % \subsection{\textsf{footnote-bidi-xepersian.def}} % \begin{macrocode} \ProvidesFile{footnote-bidi-xepersian.def}[2010/07/25 v0.2 footnote macros for xepersian package] -\long\def\@footnotetext#1{% - \begingroup - \setbox\footins - \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize + + + +\long\def\@footnotetext#1{\insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox \floatingpenalty \@MM \hsize\columnwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\strut}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} -\long\def\@RTLfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLtrue\reset@font\footnotesize + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}% + \color@endgroup}}% + + + + + +\long\def\@RTLfootnotetext#1{\insert\footins{% + \@RTLtrue% + \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox \floatingpenalty \@MM \hsize\columnwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\strut}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} -\long\def\@LTRfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLfalse\reset@font\footnotesize + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\@finalstrut\strutbox}% + \color@endgroup}}% + + + + + +\long\def\@LTRfootnotetext#1{\insert\footins{% + \@RTLfalse% + \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox \floatingpenalty \@MM \hsize\columnwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\strut}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\@finalstrut\strutbox}% + \color@endgroup}}% + +\footdir@temp\footdir@ORG@xepersian@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@LTRfootnotetext\@LTRfootnotetext{L}% + + + \long\def\@mpfootnotetext#1{% + \ifbidi@autofootnoterule\ifnum\c@mpfootnote=1\if@RTL@footnote\rightfootnoterule\else\leftfootnoterule\fi\fi\fi% \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% \unvbox\@mpfootins \reset@font\footnotesize @@ -3949,12 +4004,16 @@ by Vafa Khalighi. \protected@edef\@currentlabel {\csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup - \bidi@footnotetext@dir{#1} - \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi \@makefntext{% \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}% - \color@endgroup}} + \color@endgroup}} + + + + + \long\def\@mpRTLfootnotetext#1{% + \ifbidi@autofootnoterule\ifnum\c@mpfootnote=1\rightfootnoterule\fi\fi% \global\setbox\@mpfootins\vbox{\@RTLtrue% \unvbox\@mpfootins \reset@font\footnotesize @@ -3963,12 +4022,13 @@ by Vafa Khalighi. \protected@edef\@currentlabel {\csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup - \bidi@footnotetext@dir{#1} - \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi \@makefntext{% - \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}% - \color@endgroup}} + \rule\z@\footnotesep\ignorespaces\persianfont #1\@finalstrut\strutbox}% + \color@endgroup}} + + \long\def\@mpLTRfootnotetext#1{% + \ifbidi@autofootnoterule\ifnum\c@mpfootnote=1\leftfootnoterule\fi\fi% \global\setbox\@mpfootins\vbox{\@RTLfalse% \unvbox\@mpfootins \reset@font\footnotesize @@ -3977,10 +4037,8 @@ by Vafa Khalighi. \protected@edef\@currentlabel {\csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup - \bidi@footnotetext@dir{#1} - \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi \@makefntext{% - \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}% + \rule\z@\footnotesep\ignorespaces\latinfont #1\@finalstrut\strutbox}% \color@endgroup}} % \end{macrocode} % \iffalse @@ -4044,7 +4102,7 @@ by Vafa Khalighi. %\fi % \subsection{\textsf{imsproc-xepersian.def}} % \begin{macrocode} -\ProvidesFile{imsproc-xepersian.def}[2012/05/03 v0.1 implementation of imsproc class for xepersian package] +\ProvidesFile{imsproc-xepersian.def}[2012/12/12 v0.1 implementation of imsproc class for xepersian package] \newenvironment{thebibliography}[1]{% \@bibtitlestyle \normalfont\bibliofont\labelsep .5em\relax @@ -4068,62 +4126,79 @@ by Vafa Khalighi. \if@RTL\raggedleft\else\raggedright\fi \hyphenpenalty\@M \footnotesize} +\def\@idxitem{\par\hangindent \if@RTL-\fi2em} +\def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}} +\def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}} \renewcommand \thepart {\@tartibi\c@part} \def\appendix{\par\c@section\z@ \c@subsection\z@ \let\sectionname\appendixname \def\thesection{\@harfi\c@section}} -\def\right@footnote{% +\def\right@footnoterule{% \hbox to \columnwidth {\beginR \vbox{\kern-.4\p@ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil\endR}} -\def\left@footnote{\kern-.4\p@ +\def\left@footnoterule{\kern-.4\p@ \hrule\@width 5pc\kern11\p@\kern-\footnotesep} \def\@makefnmark{% \leavevmode \raise.9ex\hbox{\fontsize\sf@size\z@\normalfont\@thefnmark}% } + + + \long\def\@footnotetext#1{% - \begingroup - \setbox\footins - \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}} + + + + + \long\def\@RTLfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLtrue\reset@font\footnotesize + \insert\footins{% + \@RTLtrue% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}} + + + + + + + \long\def\@LTRfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLfalse\reset@font\footnotesize + \insert\footins{% + \@RTLfalse% + \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\unskip\strut\par}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup} + \splittopskip\footnotesep \splitmaxdepth \dp\strutbox + \floatingpenalty\@MM \hsize\columnwidth + \@parboxrestore \parindent\normalparindent \sloppy + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}} + +\footdir@temp\footdir@ORG@xepersian@imsproc@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@imsproc@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@imsproc@LTRfootnotetext\@LTRfootnotetext{L}% + \def\part{\@startsection{part}{0}% \z@{\linespacing\@plus\linespacing}{.5\linespacing}% {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}} @@ -5426,8 +5501,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v11.143} -\def\xepersiandate{2012/07/25} +\def\xepersianversion{v12 (Final Version)} +\def\xepersiandate{2012/12/12} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -6008,7 +6083,7 @@ number is 999,999,999.}% \@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% \renewcommand\printindex{\newpage% \immediate\closeout\@indexfile -\immediate\write18{xindy -L persian -C utf8 -M texindy \jobname.idx} +\immediate\write18{xindy -L persian -C utf8 -M texindy -M page-ranges \jobname.idx} \@input@{\jobname.ind}}}% \else \PackageError{xepersian}{“shell escape” (or “write18”) is not enabled. You need to run “xelatex --shell-escape” on your TeX document for this feature to work}{} @@ -7493,7 +7568,7 @@ indexblock environment may only appear inside frontpage environment. وفا خلیقی، مهدی امیدعلی و مصطفی واحدی -\texttt{vafakhlg@gmail.com\\[5pt] +\texttt{vafak12@gmail.com\\[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 5ef51b7bd91..498575899d1 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins @@ -25,7 +25,7 @@ \endpreamble \postamble -Copyright © 2008–2012 Vafa Khalighi <vafakhlg@gmail.com> +Copyright © 2008–2012 Vafa Khalighi <vafak12@gmail.com> It may be distributed and/or modified under the LaTeX Project Public License, version 1.3c or higher (your choice). The latest version of @@ -99,7 +99,7 @@ by Vafa Khalighi. \generate{\file{xepersian-persiancal.sty}{\from{\jobname.dtx}{xepersian-persiancal.sty}}} \endbatchfile %% -%% Copyright © 2008–2012 Vafa Khalighi <vafakhlg@gmail.com> +%% Copyright © 2008–2012 Vafa Khalighi <vafak12@gmail.com> %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of |