/ [xepersian] / xepersian.dtx
To checkout: svn checkout http://svn.gnu.org.ua/sources/xepersian/xepersian.dtx
Puszcza

Diff of /xepersian.dtx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by vafa, Sun Nov 6 12:46:56 2011 UTC revision 2 by vafa, Mon Nov 7 02:56:32 2011 UTC
# Line 5  Line 5 
5  %<*readme>  %<*readme>
6  _________________  _________________
7  The XePersian package  The XePersian package
8  v1.3.3  v1.3.4
9    
10  XePersian is a package written for XeLaTeX that allows users to typeset  XePersian is a package written for XeLaTeX that allows users to typeset
11  Persian easily. The current version is 1.3.3 and it will be developed to  Persian easily. The current version is 1.3.4 and it will be developed to
12  meet the needs of Persian typesetting properly.  meet the needs of Persian typesetting properly.
13    
14  The XePersian package is independent of any operating system, meaning it  The XePersian package is independent of any operating system, meaning it
# Line 207  Line 207 
207  % Persian for \LaTeXe{} over \XeTeX}  % Persian for \LaTeXe{} over \XeTeX}
208  % \author{Vafa Khalighi\\  % \author{Vafa Khalighi\\
209  %   \url{vafaklg@gmail.com}}  %   \url{vafaklg@gmail.com}}
210  % \date{\today\qquad Version 1.3.3}  % \date{\today\qquad Version 1.3.4}
211  %\maketitle  %\maketitle
212  %\tableofcontents  %\tableofcontents
213  %\section{Introduction}  %\section{Introduction}
# Line 227  Line 227 
227  %Description: The package supports Persian  %Description: The package supports Persian
228  %typesetting, using fonts provided in the distribution.  %typesetting, using fonts provided in the distribution.
229  %Copyright © 2008-2012 Vafa Khalighi  %Copyright © 2008-2012 Vafa Khalighi
230  %v1.3.3, 2012/01/01  %v1.3.4, 2012/01/01
231  %License: LaTeX Project Public License, version 1.3c or higher (your choice)  %License: LaTeX Project Public License, version 1.3c or higher (your choice)
232  %Location on CTAN: /macros/xetex/latex/xepersian  %Location on CTAN: /macros/xetex/latex/xepersian
233  %\end{lstlisting}  %\end{lstlisting}
# Line 3466  Line 3466 
3466  \eqcommand{خط‌زیرنویس‌خودکار}{autofootnoterule}  \eqcommand{خط‌زیرنویس‌خودکار}{autofootnoterule}
3467  \eqcommand{اعدادفرمولهاخودکار}{AutoMathsDigits}  \eqcommand{اعدادفرمولهاخودکار}{AutoMathsDigits}
3468  \eqcommand{اعدادفرمولهالاتین}{DefaultMathsDigits}  \eqcommand{اعدادفرمولهالاتین}{DefaultMathsDigits}
3469    \eqcommand{معادل@کلید}{keyval@eq@alias@key}
3470  \eqcommand{تعریف‌قلم‌لاتین}{deflatinfont}  \eqcommand{تعریف‌قلم‌لاتین}{deflatinfont}
3471  \eqcommand{تعریف‌قلم‌پارسی}{defpersianfont}  \eqcommand{تعریف‌قلم‌پارسی}{defpersianfont}
3472  \eqcommand{کادراچپ}{hboxL}  \eqcommand{کادراچپ}{hboxL}
# Line 3946  Line 3947 
3947  \makezwnjletter  \makezwnjletter
3948  \newcommand*{\eqcommand}[2]{\if@bidi@csprimitive{#2}{\bidi@csletcs{#1}{#2}}{\bidi@csdefcs{#1}{#2}}}  \newcommand*{\eqcommand}[2]{\if@bidi@csprimitive{#2}{\bidi@csletcs{#1}{#2}}{\bidi@csdefcs{#1}{#2}}}
3949  \newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}}  \newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}}
3950    \@ifpackageloaded{keyval}{%
3951    \newcommand*\keyval@eq@alias@key[4][KV]{%
3952      \bidi@csletcs{#1@#2@#3}{#1@#2@#4}%
3953      \bidi@csletcs{#1@#2@#3@default}{#1@#2@#4@default}}%
3954    }{\@ifpackageloaded{xkeyval}{%
3955    \newcommand*\keyval@eq@alias@key[4][KV]{%
3956      \bidi@csletcs{#1@#2@#3}{#1@#2@#4}%
3957      \bidi@csletcs{#1@#2@#3@default}{#1@#2@#4@default}}%
3958    }{}}
3959  \input{commands-ltx.def}  \input{commands-ltx.def}
3960  \input{commands-xepersian.def}  \input{commands-xepersian.def}
3961  \input{environments-ltx.def}  \input{environments-ltx.def}
# Line 4801  Line 4811 
4811    }    }
4812  }  }
4813  \ExplSyntaxOff  \ExplSyntaxOff
4814    \@ifpackageloaded{graphicx}{%
4815    \def\Gin@boolkey#1#2{%
4816    \expandafter\@ifdefinable  \csname Gin@#2درست\endcsname{%
4817    \expandafter\let\csname Gin@#2درست\expandafter\endcsname\csname Gin@#2true\endcsname}%
4818    \expandafter\@ifdefinable  \csname Gin@#2نادرست\endcsname{%
4819    \expandafter\let\csname Gin@#2نادرست\expandafter\endcsname\csname Gin@#2false\endcsname}%
4820      \csname Gin@#2\ifx\relax#1\relax true\else#1\fi\endcsname}
4821    \define@key{Grot}{origin}[c]{%
4822     \@tfor\@tempa:=#1\do{%
4823        \if l\@tempa \Grot@x\z@\else
4824        \if چ\@tempa \Grot@x\z@\else
4825        \if r\@tempa \Grot@x\width\else
4826        \if ر\@tempa \Grot@x\width\else
4827        \if t\@tempa \Grot@y\height\else
4828        \if ب\@tempa \Grot@y\height\else
4829        \if b\@tempa \Grot@y-\depth\else
4830        \if ز\@tempa \Grot@y-\depth\else
4831        \if B\@tempa \Grot@y\z@\else
4832        \if ک\@tempa \Grot@y\z@\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}}
4833    \معادل@کلید{Gin}{پیش‌نویس}{draft}
4834    \معادل@کلید{Gin}{مبدا}{origin}
4835    \معادل@کلید{Grot}{مبدا}{origin}
4836    \معادل@کلید{Gin}{بی‌اضافه}{clip}
4837    \معادل@کلید{Gin}{حفظ‌تناسب}{keepaspectratio}
4838    \معادل@کلید{Gin}{پهنای‌طبیعی}{natwidth}
4839    \معادل@کلید{Gin}{بلندای‌طبیعی}{natheight}
4840    \معادل@کلید{Gin}{مختصات}{bb}
4841    \معادل@کلید{Gin}{محدوده‌نمایش}{viewport}
4842    \معادل@کلید{Gin}{حذف‌اطراف}{trim}
4843    \معادل@کلید{Gin}{زاویه}{angle}
4844    \معادل@کلید{Gin}{پهنا}{width}
4845    \معادل@کلید{Gin}{بلندا}{height}
4846    \معادل@کلید{Gin}{بلندای‌کل}{totalheight}
4847    \معادل@کلید{Gin}{ضریب}{scale}
4848    \معادل@کلید{Gin}{نوع}{type}
4849    \معادل@کلید{Gin}{پسوند}{ext}
4850    \معادل@کلید{Gin}{خواندنی}{read}
4851    \معادل@کلید{Gin}{فرمان}{command}
4852    \معادل@کلید{Grot}{طول}{x}
4853    \معادل@کلید{Grot}{عرض}{y}
4854    \معادل@کلید{Grot}{واحد}{units}
4855    }{}
4856  %    \end{macrocode}  %    \end{macrocode}
4857  % \iffalse  % \iffalse
4858  %</packages-localise-xepersian.def>  %</packages-localise-xepersian.def>
# Line 5051  Line 5103 
5103  % \subsection{\textsf{xepersian.sty}}  % \subsection{\textsf{xepersian.sty}}
5104  %    \begin{macrocode}  %    \begin{macrocode}
5105  \NeedsTeXFormat{LaTeX2e}  \NeedsTeXFormat{LaTeX2e}
5106  \def\xepersianversion{v1.3.3}  \def\xepersianversion{v1.3.4}
5107  \def\xepersiandate{2012/01/01}  \def\xepersiandate{2012/01/01}
5108  \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space  \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
5109  Persian typesetting in XeLaTeX]  Persian typesetting in XeLaTeX]

Legend:
Removed from v.1  
changed lines
  Added in v.2

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20