summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-01-11 18:47:10 +0000
committerKarl Berry <karl@freefriends.org>2010-01-11 18:47:10 +0000
commit3a7e27adc553f5e0ccf8206fff4e757bf3cdf062 (patch)
tree75c7259adef2093a5209db323b3bbecf67dc1709 /Master
parentb2653703ac55bf05f550a80ffa1fe05c5fe8bd47 (diff)
xepersian update (6jan10)
git-svn-id: svn://tug.org/texlive/trunk@16675 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/bibtex/bst/xepersian/acm-fa.bst1357
-rw-r--r--Master/texmf-dist/bibtex/bst/xepersian/ieeetr-fa.bst1178
-rw-r--r--Master/texmf-dist/bibtex/bst/xepersian/plain-fa.bst1304
-rw-r--r--Master/texmf-dist/bibtex/bst/xepersian/unsrt-fa.bst1146
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/MyReferences.bib113
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/README18
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/README.xepersian23
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/acm-fa-output.tex17
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/acm-fa.bst1357
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/algorithm-xepersian.def32
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/algorithmic-xepersian.def31
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/amsart-xepersian.def34
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/amsbook-xepersian.def37
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/article-xepersian.def34
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/backref-xepersian.def30
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/bibtex-example.tex27
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/bidibeamer-xepersian.def45
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/bidimoderncv-xepersian.def30
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/book-xepersian.def44
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/bookest-xepersian.def36
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/commands-ltx.def841
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/commands-xepersian.def30
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/enumerate-xepersian.def45
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/environments-ltx.def91
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/environments-xepersian.def30
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/MyReferences.bib113
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/acm-fa-output.tex17
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/bibtex-example.tex27
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/ieeetr-fa-output.tex19
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/plain-fa-output.tex19
-rwxr-xr-xMaster/texmf-dist/doc/xelatex/xepersian/examples/logo.pdfbin10761 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/magazine-sample.tex171
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/test-correction.tex39
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/test-empty-form.tex43
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/test-question-only.tex39
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/test-solution-form.tex43
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/examples/thesis-sample.tex62
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/extbook-xepersian.def44
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/farsitex2xepersian/ftxe-0.11.py1045
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa-output.tex19
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa.bst1178
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/kashida-xepersian.def70
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/listings-xepersian.def31
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/localise-xepersian.def53
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/logo.pdfbin10761 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/magazine-sample.tex3
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/memoir-xepersian.def40
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/minitoc-xepersian.def38
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/misccommandsenvironments-ltx.def31
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/parsidigits.map46
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/parsidigits.tecbin666 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/plain-fa-output.tex19
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/plain-fa.bst1304
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/rapport3-xepersian.def35
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/refrep-xepersian.def36
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/report-xepersian.def36
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/scrartcl-xepersian.def64
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/scrbook-xepersian.def69
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/scrreprt-xepersian.def65
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/thesis-sample.tex62
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/tocloft-xepersian.def39
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/txt2maths.map48
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/txt2maths.tecbin698 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/unsrt-fa.bst1146
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.pdfbin0 -> 249682 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.tex1296
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-magazine.cls898
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-mathsdigitspec.sty106
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-multiplechoice.sty164
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-persiancal.sty197
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis-xepersian.def36
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis.cls174
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian.dtx9100
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/xepersian.sty284
-rwxr-xr-xMaster/texmf-dist/doc/xelatex/xepersian/xindy/persian.xdy118
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx9100
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def10
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def10
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def59
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def64
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/bidibeamer-xepersian.def45
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def28
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def30
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def65
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def1291
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def12
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def115
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def12
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def54
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def47
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def51
-rwxr-xr-xMaster/texmf-dist/tex/xelatex/xepersian/img/ireland.jpgbin18304 -> 0 bytes
-rwxr-xr-xMaster/texmf-dist/tex/xelatex/xepersian/img/weather/clouds.jpgbin13088 -> 0 bytes
-rwxr-xr-xMaster/texmf-dist/tex/xelatex/xepersian/img/weather/rain.jpgbin14616 -> 0 bytes
-rwxr-xr-xMaster/texmf-dist/tex/xelatex/xepersian/img/weather/sun.jpgbin10896 -> 0 bytes
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def52
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def27
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/misccommandsenvironments-ltx.def15
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/multicol-xepersian.def (renamed from Master/texmf-dist/doc/xelatex/xepersian/footnote-bidi-xepersian.def)63
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def18
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def18
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def18
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def11
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls12
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty20
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty12
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty12
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis-xepersian.def36
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis.cls174
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty185
123 files changed, 2472 insertions, 35753 deletions
diff --git a/Master/texmf-dist/bibtex/bst/xepersian/acm-fa.bst b/Master/texmf-dist/bibtex/bst/xepersian/acm-fa.bst
deleted file mode 100644
index e5fc7153bdf..00000000000
--- a/Master/texmf-dist/bibtex/bst/xepersian/acm-fa.bst
+++ /dev/null
@@ -1,1357 +0,0 @@
-%%
-%% This is file `acm-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `acm-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "acm-fa", Persian (farsi) version of acm.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%% NOTE: Its output for English references may has a bit difference with acm.bst, for pure English texts please use acm.bst
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright of acm.bst
-
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- acm-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. thesis" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
-{ add.period$ write$
- newline$
- "\newblock " write$
-}
-{ output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-FUNCTION {emphasizeic}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "\/}" * }
- if$
-}
-
-FUNCTION {scapify}
-{ duplicate$ empty$
- { pop$ "" }
- { "\textsc{ " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { t "others" =
-{ "," bbl.etal * * }
-{ "," bbl.and * * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.innames}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- {s nameptr "{ff}{vv~}{ll}{, jj}" format.name$ 't :=}
- {s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=}
- if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
-{ "," * }
-'skip$
- if$
- t "others" =
-{ bbl.etal * }
-{ bbl.and * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names scapify}
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names scapify
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.ineditors}
-{ editor empty$
- { "" }
- { editor format.innames
- editor num.names$ #1 >
-{ ", " * bbl.editors *}
-{ ", " * bbl.editor *}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { "volume" volume tie.or.space.connect
- series empty$
-'skip$
-{ " of " * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages n.dashify }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pp.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.journal.vol.num.date}
-{ journal empty$
- { "empty journal in " cite$ * warning$
- ""
- }
- { journal
- volume empty$
-'skip$
-{ " " * volume * }
- if$
- number empty$
-'emphasizeic
-{ emphasize ", " * number * }
- if$
- year empty$
-{ "empty year in " cite$ * warning$ }
-{ " (" * format.date * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pp.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pp.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- {bbl.in booktitle emphasize *
- editor empty$
-'skip$
-{ ", " * format.ineditors * }
- if$
- }
- if$
-}
-
-FUNCTION {format.proc.date}
-{ duplicate$ empty$
- { pop$ "" }
- { year empty$
-{ "empty year in " cite$ * warning$
- address empty$
- 'emphasize
- { emphasizeic
- " (" * address * ")" *
- }
- if$
-}
-{ emphasizeic
- " (" *
- address empty$
- 'skip$
- { address * ", " * }
- if$
- format.date *
- ")" *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.in.proc.date}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle format.proc.date * }
- if$
-}
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.journal.vol.num.date output
- format.pages output
- }
- { format.article.crossref output.nonnull
- format.pp.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
- format.edition output
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- {
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- format.chapter.pages "chapter and pages" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.edition output
- format.bvolume output
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- }
- if$
- format.chapter.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.proc.date "booktitle" output.check
- format.ineditors output
- format.bvolume output
- format.number.series output
- organization output
- publisher output
-}
- { format.incoll.inproc.crossref output.nonnull }
- if$
- format.pp.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization scapify output }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- author empty$
-{ address new.block.checka }
- { organization address new.block.checkb
- organization output
- }
- if$
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization scapify output }
- { format.editors output.nonnull }
- if$
- new.block
- title format.proc.date "title" output.check
- format.bvolume output
- format.number.series output
- editor empty$
-'skip$
-{ organization output }
- if$
- publisher output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Comput. Surv."}
-
-MACRO {acta} {"Acta Inf."}
-
-MACRO {cacm} {"Commun. ACM"}
-
-MACRO {ibmjrd} {"IBM J. Res. Dev."}
-
-MACRO {ibmsj} {"IBM Syst.~J."}
-
-MACRO {ieeese} {"IEEE Trans. Softw. Eng."}
-
-MACRO {ieeetc} {"IEEE Trans. Comput."}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Comput.-Aided Design Integrated Circuits"}
-
-MACRO {ipl} {"Inf. Process. Lett."}
-
-MACRO {jacm} {"J.~ACM"}
-
-MACRO {jcss} {"J.~Comput. Syst. Sci."}
-
-MACRO {scp} {"Sci. Comput. Programming"}
-
-MACRO {sicomp} {"SIAM J. Comput."}
-
-MACRO {tocs} {"ACM Trans. Comput. Syst."}
-
-MACRO {tods} {"ACM Trans. Database Syst."}
-
-MACRO {tog} {"ACM Trans. Gr."}
-
-MACRO {toms} {"ACM Trans. Math. Softw."}
-
-MACRO {toois} {"ACM Trans. Office Inf. Syst."}
-
-MACRO {toplas} {"ACM Trans. Program. Lang. Syst."}
-
-MACRO {tcs} {"Theoretical Comput. Sci."}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
-{ key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
-{ key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
-{ key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
-'editor.organization.sort
-{ type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
-}
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `acm-fa.bst'.
diff --git a/Master/texmf-dist/bibtex/bst/xepersian/ieeetr-fa.bst b/Master/texmf-dist/bibtex/bst/xepersian/ieeetr-fa.bst
deleted file mode 100644
index 6c49f4db12e..00000000000
--- a/Master/texmf-dist/bibtex/bst/xepersian/ieeetr-fa.bst
+++ /dev/null
@@ -1,1178 +0,0 @@
-%%
-%% This is file `ieeetr-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `ieeetr-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "ieeetr-fa", Persian (farsi) version of ieeetr.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.quote after.sentence
-after.quoted.block after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- ieeetr-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.quote :=
- #3 'after.sentence :=
- #4 'after.quoted.block :=
- #5 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.quote =
-{ " " * write$ }
-{ output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
-'write$
-{ output.state after.quoted.block =
- { write$
- newline$
- "\newblock " write$
- }
- { add.period$ " " * write$ }
- if$
-}
- if$
- }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {blank.sep}
-{ after.quote 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ output.state after.quoted.block =
- 'skip$
- 'add.period$
- if$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { output.state after.quote =
-{ after.quoted.block 'output.state := }
-{ after.block 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { %s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
- fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
-{ "," * }
-'skip$
- if$
- t "others" =
-{ " {\em" * bbl.etal * "}" * }
-{ bbl.and * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
-{ fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
-}
- if$
-}
-
-FUNCTION {format.title.p}
-{ title empty$
- { "" }
-{ fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
-}
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume *
- series empty$
-'skip$
-{ bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
-{ bbl.pages pages n.dashify * }
-{ bbl.page pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.volume}
-{ volume empty$
- { "" }
- { bbl.volume volume * }%M.Amintoosi "vol.~"
- if$
-}
-
-FUNCTION {format.number}
-{ number empty$
- { "" }
- { bbl.number number * }%M.Amintoosi "no.~"
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle emphasize *
- editor empty$
- 'skip$
- { " (" * format.editors * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- output.state after.block =
-{ type "t" change.case$ }
-{ type "l" change.case$ }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "l" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.addr.pub}
-{ publisher empty$
- { "" }
- { address empty$
-{ "" }
-{ address ": " * }
- if$
- publisher *
- }
- if$
-}
-
-FUNCTION {format.paddress}
-{ address empty$
- { "" }
- { "(" address * ")" * }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$
- #2 >
- { pop$ " {\em" * bbl.etal * "}" * }
- { #2 <
-'skip$
-{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { " {\em" bbl.etal * "}" * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in "{\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { journal emphasize "journal" output.check
- format.volume output
- month empty$
-{ format.number output }
-'skip$
- if$
- format.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- title empty$
- { "empty title in " cite$ * warning$
- howpublished new.sentence.checka
- }
- { howpublished empty$ not
- address empty$ month empty$ year empty$ and and
- or
-{ format.title.p output.nonnull }
-{ format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- format.addr.pub "publisher" output.check
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- format.pages output
- organization output
- publisher output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
-'skip$
-{ organization output.nonnull
- address output
-}
- if$
- }
- { format.authors output.nonnull }
- if$
- format.btitle "title" output.check
- author empty$
- { organization empty$
-{ address new.block.checka
- address output
-}
-'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- bbl.mthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title empty$
- { howpublished new.sentence.checka }
- { howpublished empty$ not
- month empty$ year empty$ and
- or
-{ format.title.p output.nonnull }
-{ format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.btitle "title" output.check
- new.block
- bbl.phdthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- format.title.p "title" output.check
- blank.sep
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications ACM"}
-
-MACRO {ibmjrd} {"IBM J. Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems~J."}
-
-MACRO {ieeese} {"IEEE Trans. Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Trans. Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Computer-Aided Design"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"J.~ACM"}
-
-MACRO {jcss} {"J.~Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM J. Computing"}
-
-MACRO {tocs} {"ACM Trans. Computer Systems"}
-
-MACRO {tods} {"ACM Trans. Database Systems"}
-
-MACRO {tog} {"ACM Trans. Graphics"}
-
-MACRO {toms} {"ACM Trans. Mathematical Software"}
-
-MACRO {toois} {"ACM Trans. Office Information Systems"}
-
-MACRO {toplas} {"ACM Trans. Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `ieeetr-fa.bst'.
diff --git a/Master/texmf-dist/bibtex/bst/xepersian/plain-fa.bst b/Master/texmf-dist/bibtex/bst/xepersian/plain-fa.bst
deleted file mode 100644
index 10ab3f0fbfe..00000000000
--- a/Master/texmf-dist/bibtex/bst/xepersian/plain-fa.bst
+++ /dev/null
@@ -1,1304 +0,0 @@
-%%
-%% This is file `plain-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `plain-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "plain-fa", Persian (farsi) version of plain.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.2" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- plain-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
-{ add.period$ write$
- newline$
- "\newblock " write$
-}
-{ output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {
- s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- %fa.isPersianLanguage
- % {s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- % }
- % {s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=
- %if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
-'skip$
-{ bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
-{ "there's a number but no volume in " cite$ * warning$ }
-'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
-{ pop$ format.pages }
-{ ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
-}
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =%"{ff }{vv }{ll}{ jj}"
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
-{ organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
-}
-{ address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
-}
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
-'skip$
-{ organization output.nonnull
- address output
-}
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
-{ address new.block.checka
- address output
-}
-'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
-{ publisher new.sentence.checka }
-{ organization publisher new.sentence.checkb
- organization output
-}
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
-'skip$
-{ organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- %{ t write$ t sortify * t write$ }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
-{ key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
-{ key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
-{ key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
-'editor.organization.sort
-{ type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
-}
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `plain-fa.bst'.
diff --git a/Master/texmf-dist/bibtex/bst/xepersian/unsrt-fa.bst b/Master/texmf-dist/bibtex/bst/xepersian/unsrt-fa.bst
deleted file mode 100644
index 1097d437d5a..00000000000
--- a/Master/texmf-dist/bibtex/bst/xepersian/unsrt-fa.bst
+++ /dev/null
@@ -1,1146 +0,0 @@
-%%
-%% This is file `unsrt-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `unsrt-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "usrt-fa", Persian (farsi) version of unsrt.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-
-%%%%%%%%%%% History:
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator }
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.22" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- unsrt-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " eds." 'bbl.editors :=
- " ed." 'bbl.editor :=
- " ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
-{ add.period$ write$
- newline$
- "\newblock " write$
-}
-{ output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff}{vv~}{ll}{, jj}
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
-{ "," * }
-'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
-}
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
-'skip$
-{ bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
-{ pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
-{ "there's a number but no volume in " cite$ * warning$ }
-'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
-{ pop$ format.pages }
-{ ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
-}
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
-{ organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
-}
-{ address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
-}
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
-'skip$
-{ organization output.nonnull
- address output
-}
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
-{ address new.block.checka
- address output
-}
-'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
-{ publisher new.sentence.checka }
-{ organization publisher new.sentence.checkb
- organization output
-}
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
-'skip$
-{ organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by unsrt-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `unsrt-fa.bst'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/MyReferences.bib b/Master/texmf-dist/doc/xelatex/xepersian/MyReferences.bib
deleted file mode 100644
index 77dd27e8cc8..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/MyReferences.bib
+++ /dev/null
@@ -1,113 +0,0 @@
-@article{Baker02limits,
- author = {Baker,, Simon and Kanade,, Takeo},
- title = {Limits on Super-Resolution and How to Break Them},
- journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
- volume = {24},
- number = {9},
- year = {2002},
- issn = {0162-8828},
- pages = {1167--1183},
- publisher = {IEEE Computer Society},
- address = {Washington, DC, USA}
- }
-
-@CONFERENCE{Amintoosi87using,
- AUTHOR = {\noopsort{امین‌طوسی,محمود}{امین‌طوسی,محمود} and others},
- TITLE = {استفاده از تجزیه ماتریس در وضوح برتر},
- BOOKTITLE = {پنجمین کنفرانس بینائی ماشین},
- YEAR = {1387},
- ORGANIZATION = {دانشگاه تبریز},
- ADDRESS = {تبریز، ایران},
- PAGES = {172-178},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{پورموسی۸۸ارشد,
- AUTHOR = {\noopsort{بپورموسی, امیرمسعود}{پورموسی, امیرمسعود}},
- TITLE = {یک موضوع فیزیک},
- SCHOOL = {دانشکده فیزیک، دانشگاه صنعتی‌شریف},
- YEAR = {۱۳۸۸},
- MONTH = {مرداد},
- NOTE = {(در حال انجام)},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{Khalighi07MscThesis,
- AUTHOR = {Vafa Khalighi},
- TITLE = {Category Theory},
- SCHOOL = {Sydny Univ.},
- YEAR = {2007},
- MONTH = {April}
-}
-
-@PHDTHESIS{امیدعلی82دکترا,
- AUTHOR = {\noopsort{امیدعلی, مهدی}{امیدعلی, مهدی}},
- TITLE = {تابع هیلبرت},
- SCHOOL = {دانشکده ریاضی، دانشگاه امیرکبیر},
- YEAR = {1382},
- MONTH = {تیر},
- LANGUAGE = {Persian}
-}
-
-@MISC{خلیقی۸۷زی‌پرشین,
- AUTHOR = {\noopsort{خلیقی,وفا}{خلیقی,وفا} and امیدعلی, مهدی and واحدی,مصطفی.},
- TITLE = {زی‌پرشین (\lr{\XePersian}): بسته فارسی برای حروف‌چینی در \lr{\LaTeX2e}},
- HOWPUBLISHED = {\lr{http://developer.berlios.de/projects/xepersian}},
- YEAR = {۱۳۸۷},
- LANGUAGE = {Persian}
- }
-
-@BOOK{استالینگ۸۰کتاب,
- AUTHOR = {\noopsort{استالینگ, ویلیام}{استالینگ, ویلیام}},
- EDITOR = {برنجکوب, محمود},
- translator = { صدیقی‌ مشکنانی, محسن and پدرام,حسین },
- TITLE = {اصول طراحی و ویژگیهای داخلی سیستم‌های عامل},
- PUBLISHER = {نشر شیخ بهایی},
- YEAR = {۱۳۸۰},
- ADDRESS = {اصفهان},
- edition = {سوم},
- MONTH = {بهار},
- LANGUAGE = {Persian}
-}
-
-@ARTICLE{واحدی87,
- AUTHOR = {\noopsort{واحدی, مصطفی}{واحدی, مصطفی}},
- TITLE = {موضوعی جدید در هندسه محاسباتی},
- JOURNAL = {مجله فارسی نمونه},
- VOLUME = {1},
- YEAR = {1387},
- NUMBER = {2},
- MONTH = {آبان},
- PAGES = {22-30},
- LANGUAGE = {Persian}
-}
-
-@CONFERENCE{Amintoosi09regional,
- author = {Mahmood Amintoosi and Mahmood Fathy and Nasser Mozayani},
- title = {Regional Varying Image Super-Resolution},
- booktitle = {(CSO 2009) The 2009 IEEE International Joint Conference on Computational Sciences and Optimization},
- year = {2009},
- month = {24-26 April},
- organization = {City University},
- address = {Sanya, Hainan, China},
- pages = {101-105}
-}
-
-@PHDTHESIS{Farsiu05thesis,
- AUTHOR = {Sina Farsiu},
- TITLE = {A Fast and Robust Framework for Image Fusion and Enhancement},
- SCHOOL = {Electrical Engineeting},
- YEAR = {2005},
- ADDRESS = {UC Santa Cruz},
- MONTH = {December}
-}
-
-@BOOK{Gonzalez02book,
- AUTHOR = {Gonzalez,, Rafael C. and Woods,, Richard E.},
- TITLE = {Digital Image Processing},
- PUBLISHER = {Prentice-Hall, Inc.},
- YEAR = {2006},
- ISBN = {013168728X},
- EDITION = {3rd},
- ADDRESS = {Upper Saddle River, NJ, USA},
-}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/README b/Master/texmf-dist/doc/xelatex/xepersian/README
index 43db0a51305..25bd34c4666 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/README
+++ b/Master/texmf-dist/doc/xelatex/xepersian/README
@@ -1,23 +1,27 @@
_________________
The XePersian package
-v1.0.3
+v1.0.4
XePersian is a package written for XeLaTeX that allows users to typeset
-Persian easily. The current version is 1.0.3 and it will be developed to
+Persian easily. The current version is 1.0.4 and it will be developed to
meet the needs of Persian typesetting properly.
The XePersian package is independent of any operating system, meaning it
will work on all operating systems.
-There are some excellent fonts made by IRMUG (Iranian Mac User Group) which you can download
-from http://wiki.irmug.org/index.php/X_Series_2#Download_fonts and
-http://wiki.irmug.org/index.php/XWZar
-This version fixes all known bugs and adds heaps of new things.
+
+This version fixes all known bugs and adds new features explained in the
+documentation. Support for xepersian-thesis class is removed as explained
+in the documentation.
+
+To get help, please subscribe to the XeTeX mailing list and ask your question there.
+
+Next version is planned to be ready for MiKTeX 2.9 and TeXLive 2010.
______________
Vafa Khalighi
vafa@users.berlios.de
-Copyright 2008-2009
+Copyright 2008-2010
Distributed under the LaTeX Project Public License
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/README.xepersian b/Master/texmf-dist/doc/xelatex/xepersian/README.xepersian
deleted file mode 100644
index 43db0a51305..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/README.xepersian
+++ /dev/null
@@ -1,23 +0,0 @@
-_________________
-The XePersian package
-v1.0.3
-
-XePersian is a package written for XeLaTeX that allows users to typeset
-Persian easily. The current version is 1.0.3 and it will be developed to
- meet the needs of Persian typesetting properly.
-
-The XePersian package is independent of any operating system, meaning it
-will work on all operating systems.
-
-There are some excellent fonts made by IRMUG (Iranian Mac User Group) which you can download
-from http://wiki.irmug.org/index.php/X_Series_2#Download_fonts and
-http://wiki.irmug.org/index.php/XWZar
-
-This version fixes all known bugs and adds heaps of new things.
-
-______________
-Vafa Khalighi
-vafa@users.berlios.de
-
-Copyright 2008-2009
-Distributed under the LaTeX Project Public License
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/acm-fa-output.tex b/Master/texmf-dist/doc/xelatex/xepersian/acm-fa-output.tex
deleted file mode 100644
index c0e153d6fb4..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/acm-fa-output.tex
+++ /dev/null
@@ -1,17 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{acm-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-\nocite{*}
-\bibliographystyle{acm-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/acm-fa.bst b/Master/texmf-dist/doc/xelatex/xepersian/acm-fa.bst
deleted file mode 100644
index e5fc7153bdf..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/acm-fa.bst
+++ /dev/null
@@ -1,1357 +0,0 @@
-%%
-%% This is file `acm-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `acm-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "acm-fa", Persian (farsi) version of acm.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%% NOTE: Its output for English references may has a bit difference with acm.bst, for pure English texts please use acm.bst
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright of acm.bst
-
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- acm-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. thesis" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
-{ add.period$ write$
- newline$
- "\newblock " write$
-}
-{ output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-FUNCTION {emphasizeic}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "\/}" * }
- if$
-}
-
-FUNCTION {scapify}
-{ duplicate$ empty$
- { pop$ "" }
- { "\textsc{ " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { t "others" =
-{ "," bbl.etal * * }
-{ "," bbl.and * * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.innames}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- {s nameptr "{ff}{vv~}{ll}{, jj}" format.name$ 't :=}
- {s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=}
- if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
-{ "," * }
-'skip$
- if$
- t "others" =
-{ bbl.etal * }
-{ bbl.and * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names scapify}
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names scapify
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.ineditors}
-{ editor empty$
- { "" }
- { editor format.innames
- editor num.names$ #1 >
-{ ", " * bbl.editors *}
-{ ", " * bbl.editor *}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { "volume" volume tie.or.space.connect
- series empty$
-'skip$
-{ " of " * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages n.dashify }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pp.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.journal.vol.num.date}
-{ journal empty$
- { "empty journal in " cite$ * warning$
- ""
- }
- { journal
- volume empty$
-'skip$
-{ " " * volume * }
- if$
- number empty$
-'emphasizeic
-{ emphasize ", " * number * }
- if$
- year empty$
-{ "empty year in " cite$ * warning$ }
-{ " (" * format.date * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pp.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pp.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- {bbl.in booktitle emphasize *
- editor empty$
-'skip$
-{ ", " * format.ineditors * }
- if$
- }
- if$
-}
-
-FUNCTION {format.proc.date}
-{ duplicate$ empty$
- { pop$ "" }
- { year empty$
-{ "empty year in " cite$ * warning$
- address empty$
- 'emphasize
- { emphasizeic
- " (" * address * ")" *
- }
- if$
-}
-{ emphasizeic
- " (" *
- address empty$
- 'skip$
- { address * ", " * }
- if$
- format.date *
- ")" *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.in.proc.date}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle format.proc.date * }
- if$
-}
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.journal.vol.num.date output
- format.pages output
- }
- { format.article.crossref output.nonnull
- format.pp.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
- format.edition output
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- {
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- format.chapter.pages "chapter and pages" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.edition output
- format.bvolume output
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- }
- if$
- format.chapter.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.proc.date "booktitle" output.check
- format.ineditors output
- format.bvolume output
- format.number.series output
- organization output
- publisher output
-}
- { format.incoll.inproc.crossref output.nonnull }
- if$
- format.pp.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization scapify output }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- author empty$
-{ address new.block.checka }
- { organization address new.block.checkb
- organization output
- }
- if$
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization scapify output }
- { format.editors output.nonnull }
- if$
- new.block
- title format.proc.date "title" output.check
- format.bvolume output
- format.number.series output
- editor empty$
-'skip$
-{ organization output }
- if$
- publisher output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Comput. Surv."}
-
-MACRO {acta} {"Acta Inf."}
-
-MACRO {cacm} {"Commun. ACM"}
-
-MACRO {ibmjrd} {"IBM J. Res. Dev."}
-
-MACRO {ibmsj} {"IBM Syst.~J."}
-
-MACRO {ieeese} {"IEEE Trans. Softw. Eng."}
-
-MACRO {ieeetc} {"IEEE Trans. Comput."}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Comput.-Aided Design Integrated Circuits"}
-
-MACRO {ipl} {"Inf. Process. Lett."}
-
-MACRO {jacm} {"J.~ACM"}
-
-MACRO {jcss} {"J.~Comput. Syst. Sci."}
-
-MACRO {scp} {"Sci. Comput. Programming"}
-
-MACRO {sicomp} {"SIAM J. Comput."}
-
-MACRO {tocs} {"ACM Trans. Comput. Syst."}
-
-MACRO {tods} {"ACM Trans. Database Syst."}
-
-MACRO {tog} {"ACM Trans. Gr."}
-
-MACRO {toms} {"ACM Trans. Math. Softw."}
-
-MACRO {toois} {"ACM Trans. Office Inf. Syst."}
-
-MACRO {toplas} {"ACM Trans. Program. Lang. Syst."}
-
-MACRO {tcs} {"Theoretical Comput. Sci."}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
-{ key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
-{ key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
-{ key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
-'editor.organization.sort
-{ type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
-}
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `acm-fa.bst'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/algorithm-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/algorithm-xepersian.def
deleted file mode 100644
index f1bcebdd26d..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/algorithm-xepersian.def
+++ /dev/null
@@ -1,32 +0,0 @@
-%%
-%% This is file `algorithm-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `algorithm-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi}
-\def\ALGS@name{الگوریتم‌ها}
-\def\listalgorithmname{\if@RTL لیست \ALGS@name\else List of \ALG@name s\fi}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `algorithm-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/algorithmic-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/algorithmic-xepersian.def
deleted file mode 100644
index 3a73b6afd02..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/algorithmic-xepersian.def
+++ /dev/null
@@ -1,31 +0,0 @@
-%%
-%% This is file `algorithmic-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `algorithmic-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi}
-\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `algorithmic-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/amsart-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/amsart-xepersian.def
deleted file mode 100644
index 9c741464de5..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/amsart-xepersian.def
+++ /dev/null
@@ -1,34 +0,0 @@
-%%
-%% This is file `amsart-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `amsart-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `amsart-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/amsbook-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/amsbook-xepersian.def
deleted file mode 100644
index 04376bfd4f8..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/amsbook-xepersian.def
+++ /dev/null
@@ -1,37 +0,0 @@
-%%
-%% This is file `amsbook-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `amsbook-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\frontmatter{\cleardoublepage\pagenumbering{harfi}}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `amsbook-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/article-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/article-xepersian.def
deleted file mode 100644
index afc406ba099..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/article-xepersian.def
+++ /dev/null
@@ -1,34 +0,0 @@
-%%
-%% This is file `article-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `article-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `article-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/backref-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/backref-xepersian.def
deleted file mode 100644
index 1b7b9c5a011..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/backref-xepersian.def
+++ /dev/null
@@ -1,30 +0,0 @@
-%%
-%% This is file `backref-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `backref-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\backrefpagesname{\if@RTL صفحات\else pages\fi}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `backref-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/bibtex-example.tex b/Master/texmf-dist/doc/xelatex/xepersian/bibtex-example.tex
deleted file mode 100644
index 6536265479b..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/bibtex-example.tex
+++ /dev/null
@@ -1,27 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-
-\usepackage{verbatim}
-\usepackage{backref}
-\def\backrefpagesname{}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Times New latin}
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با استیل فارسی \lr{unsrt-fa} برای \lr{BibTeX} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-مرجع \cite{امیدعلی82دکترا} یک نمونه پروژه دکترا و مرجع\cite{واحدی87} یک نمونه مقاله مجله فارسی است.
-مرجع \cite{Baker02limits} یک نمونه مقاله انگلیسی است که در بین مراجع فارسی قرار گرفته است، مرجع \cite{Amintoosi87using} یک نمونه مقاله کنفرانس فارسی و
-مرجع \cite{استالینگ۸۰کتاب} یک نمونه کتاب فارسی با ذکر مترجمان و ویراستاران فارسی است. مرجع \cite{Khalighi07MscThesis} یک نمونه پروژه کارشناسی ارشد انگلیسی و
-\cite{خلیقی۸۷زی‌پرشین} هم یک نمونه متفرقه می‌باشند.
-
-{\small
-\bibliographystyle{unsrt-fa}%{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/bidibeamer-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/bidibeamer-xepersian.def
deleted file mode 100644
index 86503d0d7ea..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/bidibeamer-xepersian.def
+++ /dev/null
@@ -1,45 +0,0 @@
-%%
-%% This is file `bidibeamer-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `bidibeamer-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\familydefault{\rmdefault}
-\def\latin{\bgroup\LatinAlphs\par\raggedright\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\raggedleft\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\biditheoremname{قضیه}
-\def\bidicorollaryname{نتیجه}
-\def\bidifactname{حقیقت}
-\def\bidilemmaname{لم}
-\def\bidiproblemname{مسئله}
-\def\bidisolutionname{پاسخ}
-\def\bididefinitionname{تعریف}
-\def\bididefinitionsname{تعریف‌ها}
-\def\bidiexamplename{مثال}
-\def\bidiexamplesname{مثال‌ها}
-\def\bidiproofname{اثبات}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `bidibeamer-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/bidimoderncv-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/bidimoderncv-xepersian.def
deleted file mode 100644
index 38e65837ca3..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/bidimoderncv-xepersian.def
+++ /dev/null
@@ -1,30 +0,0 @@
-%%
-%% This is file `bidimoderncv-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `bidimoderncv-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\refname{تألیفات}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `bidimoderncv-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/book-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/book-xepersian.def
deleted file mode 100644
index b555567e5ac..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/book-xepersian.def
+++ /dev/null
@@ -1,44 +0,0 @@
-%%
-%% This is file `book-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `book-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand\frontmatter{%
- \cleardoublepage
- \@mainmatterfalse
- \pagenumbering{harfi}}
-\renewcommand\mainmatter{%
- \cleardoublepage
- \@mainmattertrue
- \pagenumbering{arabic}}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `book-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/bookest-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/bookest-xepersian.def
deleted file mode 100644
index ff5a679666f..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/bookest-xepersian.def
+++ /dev/null
@@ -1,36 +0,0 @@
-%%
-%% This is file `bookest-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `bookest-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `bookest-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/commands-ltx.def b/Master/texmf-dist/doc/xelatex/xepersian/commands-ltx.def
deleted file mode 100644
index 2b3bf59a5e4..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/commands-ltx.def
+++ /dev/null
@@ -1,841 +0,0 @@
-%%
-%% This is file `commands-ltx.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `commands-ltx.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\eqcommand[]{\abovedisplayshortskip}
-\eqcommand[]{\abovedisplayskip}
-\eqcommand[]{\abstractname}
-\eqcommand[]{\acute}
-\eqcommand[]{\addcontentsline}
-\eqcommand[]{\address}
-\eqcommand[]{\addtocontents}
-\eqcommand[]{\addtocounter}
-\eqcommand[]{\addtolength}
-\eqcommand[]{\addvspace}
-\eqcommand[]{\aleph}
-\eqcommand[]{\allowdisplaybreaks}
-\eqcommand[]{\Alph}
-\eqcommand[]{\alph}
-\eqcommand[]{\alpha}
-\eqcommand[]{\alsoname}
-\eqcommand[]{\amalg}
-\eqcommand[]{\and}
-\eqcommand[]{\angle}
-\eqcommand[]{\appendixname}
-\eqcommand[]{\approx}
-\eqcommand[]{\arabic}
-\eqcommand[]{\arccos}
-\eqcommand[]{\arcsin}
-\eqcommand[]{\arctan}
-\eqcommand[]{\arg}
-\eqcommand[]{\arraycolsep}
-\eqcommand[]{\arrayrulewidth}
-\eqcommand[]{\arraystretch}
-\eqcommand[]{\ast}
-\eqcommand[]{\asymp}
-\eqcommand[]{\AtBeginDocument}
-\eqcommand[]{\AtEndDocument}
-\eqcommand[]{\AtEndOfClass}
-\eqcommand[]{\AtEndOfPackage}
-\eqcommand[]{\author}
-\eqcommand[]{\backmatter}
-\eqcommand[]{\backslash}
-\eqcommand[]{\bar}
-\eqcommand[]{\baselineskip}
-\eqcommand[]{\baselinestretch}
-\eqcommand[]{\begin}
-\eqcommand[]{\belowdisplayshortskip}
-\eqcommand[]{\belowdisplayskip}
-\eqcommand[]{\beta}
-\eqcommand[]{\bfdefault}
-\eqcommand[]{\bfseries}
-\eqcommand[]{\bibitem}
-\eqcommand[]{\bibliography}
-\eqcommand[]{\bibliographystyle}
-\eqcommand[]{\bibname}
-\eqcommand[]{\big}
-\eqcommand[]{\Big}
-\eqcommand[]{\bigcap}
-\eqcommand[]{\bigcirc}
-\eqcommand[]{\bigcup}
-\eqcommand[]{\bigg}
-\eqcommand[]{\Bigg}
-\eqcommand[]{\bigodot}
-\eqcommand[]{\bigoplus}
-\eqcommand[]{\bigotimes}
-\eqcommand[]{\bigskip}
-\eqcommand[]{\bigskipamount}
-\eqcommand[]{\bigsqcup}
-\eqcommand[]{\bigtriangledown}
-\eqcommand[]{\bigtriangleup}
-\eqcommand[]{\biguplus}
-\eqcommand[]{\bigvee}
-\eqcommand[]{\bigwedge}
-\eqcommand[]{\binom}
-\eqcommand[]{\bmod}
-\eqcommand[]{\boldmath}
-\eqcommand[]{\boldsymbol}
-\eqcommand[]{\bot}
-\eqcommand[]{\botfigrule}
-\eqcommand[]{\bottomfraction}
-\eqcommand[]{\bowtie}
-\eqcommand[]{\Box}
-\eqcommand[]{\boxed}
-\eqcommand[]{\breve}
-\eqcommand[]{\bullet}
-\eqcommand[]{\cap}
-\eqcommand[]{\caption}
-\eqcommand[]{\cc}
-\eqcommand[]{\ccname}
-\eqcommand[]{\cdot}
-\eqcommand[]{\cdots}
-\eqcommand[]{\centering}
-\eqcommand[]{\centerline}
-\eqcommand[]{\cfrac}
-\eqcommand[]{\chapter}
-\eqcommand[]{\chapter*}
-\eqcommand[]{\chaptername}
-\eqcommand[]{\check}
-\eqcommand[]{\CheckCommand}
-\eqcommand[]{\chi}
-\eqcommand[]{\circ}
-\eqcommand[]{\circle}
-\eqcommand[]{\circle*}
-\eqcommand[]{\cite}
-\eqcommand[]{\citep}
-\eqcommand[]{\citet}
-\eqcommand[]{\ClassError}
-\eqcommand[]{\ClassInfo}
-\eqcommand[]{\ClassWarning}
-\eqcommand[]{\ClassWarningNoLine}
-\eqcommand[]{\cleardoublepage}
-\eqcommand[]{\clearpage}
-\eqcommand[]{\cline}
-\eqcommand[]{\closing}
-\eqcommand[]{\clubsuit}
-\eqcommand[]{\color}
-\eqcommand[]{\colorbox}
-\eqcommand[]{\columnsep}
-\eqcommand[]{\columnseprule}
-\eqcommand[]{\cong}
-\eqcommand[]{\contentsline}
-\eqcommand[]{\contentsname}
-\eqcommand[]{\coprod}
-\eqcommand[]{\copyright}
-\eqcommand[]{\cos}
-\eqcommand[]{\cosh}
-\eqcommand[]{\cot}
-\eqcommand[]{\coth}
-\eqcommand[]{\csc}
-\eqcommand[]{\cup}
-\eqcommand[]{\CurrentOption}
-\eqcommand[]{\dag}
-\eqcommand[]{\dagger}
-\eqcommand[]{\dashbox}
-\eqcommand[]{\dashv}
-\eqcommand[]{\date}
-\eqcommand[]{\dbinom}
-\eqcommand[]{\dblfigrule}
-\eqcommand[]{\dblfloatpagefraction}
-\eqcommand[]{\dblfloatsep}
-\eqcommand[]{\dbltextfloatsep}
-\eqcommand[]{\dbltopfraction}
-\eqcommand[]{\ddag}
-\eqcommand[]{\ddagger}
-\eqcommand[]{\dddot}
-\eqcommand[]{\ddddot}
-\eqcommand[]{\ddot}
-\eqcommand[]{\ddots}
-\eqcommand[]{\DeclareGraphicsExtensions}
-\eqcommand[]{\DeclareGraphicsRule}
-\eqcommand[]{\DeclareOption}
-\eqcommand[]{\DeclareOption*}
-\eqcommand[]{\DeclareRobustCommand}
-\eqcommand[]{\DeclareRobustCommand*}
-\eqcommand[]{\definecolor}
-\eqcommand[]{\deg}
-\eqcommand[]{\DeleteShortVerb}
-\eqcommand[]{\Delta}
-\eqcommand[]{\delta}
-\eqcommand[]{\depth}
-\eqcommand[]{\det}
-\eqcommand[]{\dfrac}
-\eqcommand[]{\Diamond}
-\eqcommand[]{\diamond}
-\eqcommand[]{\diamondsuit}
-\eqcommand[]{\dim}
-\eqcommand[]{\discretionary}
-\eqcommand[]{\displaybreak}
-\eqcommand[]{\displaystyle}
-\eqcommand[]{\div}
-\eqcommand[]{\documentclass}
-\eqcommand[]{\dot}
-\eqcommand[]{\doteq}
-\eqcommand[]{\dotfill}
-\eqcommand[]{\dots}
-\eqcommand[]{\dotsb}
-\eqcommand[]{\dotsc}
-\eqcommand[]{\dotsi}
-\eqcommand[]{\dotsm}
-\eqcommand[]{\doublebox}
-\eqcommand[]{\doublerulesep}
-\eqcommand[]{\Downarrow}
-\eqcommand[]{\downarrow}
-\eqcommand[]{\ell}
-\eqcommand[]{\em}
-\eqcommand[]{\emph}
-\eqcommand[]{\emptyset}
-\eqcommand[]{\encl}
-\eqcommand[]{\enclname}
-\eqcommand[]{\end}
-\eqcommand[]{\endfirsthead}
-\eqcommand[]{\endfoot}
-\eqcommand[]{\endhead}
-\eqcommand[]{\endlastfoot}
-\eqcommand[]{\enlargethispage}
-\eqcommand[]{\enlargethispage*}
-\eqcommand[]{\ensuremath}
-\eqcommand[]{\epsilon}
-\eqcommand[]{\eqref}
-\eqcommand[]{\equiv}
-\eqcommand[]{\eta}
-\eqcommand[]{\euro}
-\eqcommand[]{\EUR}
-\eqcommand[]{\evensidemargin}
-\eqcommand[]{\ExecuteOptions}
-\eqcommand[]{\exists}
-\eqcommand[]{\exp}
-\eqcommand[]{\extracolsep}
-\eqcommand[]{\fancypage}
-\eqcommand[]{\fbox}
-\eqcommand[]{\fboxrule}
-\eqcommand[]{\fboxsep}
-\eqcommand[]{\fcolorbox}
-\eqcommand[]{\figurename}
-\eqcommand[]{\fill}
-\eqcommand[]{\flat}
-\eqcommand[]{\floatpagefraction}
-\eqcommand[]{\floatsep}
-\eqcommand[]{\flushbottom}
-\eqcommand[]{\fnsymbol}
-\eqcommand[]{\fontfamily}
-\eqcommand[]{\fontseries}
-\eqcommand[]{\fontshape}
-\eqcommand[]{\fontsize}
-\eqcommand[]{\LTRfootnote}
-\eqcommand[]{\footnote}
-\eqcommand[]{\footnotemark}
-\eqcommand[]{\footnoterule}
-\eqcommand[]{\footnotesep}
-\eqcommand[]{\footnotesize}
-\eqcommand[]{\footnotetext}
-\eqcommand[]{\footskip}
-\eqcommand[]{\forall}
-\eqcommand[]{\frac}
-\eqcommand[]{\frame}
-\eqcommand[]{\framebox}
-\eqcommand[]{\frenchspacing}
-\eqcommand[]{\frontmatter}
-\eqcommand[]{\frown}
-\eqcommand[]{\fussy}
-\eqcommand[]{\Gamma}
-\eqcommand[]{\gamma}
-\eqcommand[]{\gcd}
-\eqcommand[]{\ge}
-\eqcommand[]{\genfrac}
-\eqcommand[]{\geq}
-\eqcommand[]{\gets}
-\eqcommand[]{\gg}
-\eqcommand[]{\glossary}
-\eqcommand[]{\glossaryentry}
-\eqcommand[]{\graphpaper}
-\eqcommand[]{\grave}
-\eqcommand[]{\guillemotleft}
-\eqcommand[]{\guillemotright}
-\eqcommand[]{\guilsinglleft}
-\eqcommand[]{\guilsinglright}
-\eqcommand[]{\hat}
-\eqcommand[]{\hbar}
-\eqcommand[]{\headheight}
-\eqcommand[]{\headsep}
-\eqcommand[]{\headtoname}
-\eqcommand[]{\heartsuit}
-\eqcommand[]{\height}
-\eqcommand[]{\hfill}
-\eqcommand[]{\hline}
-\eqcommand[]{\hoffset}
-\eqcommand[]{\hom}
-\eqcommand[]{\hookleftarrow}
-\eqcommand[]{\hookrightarrow}
-\eqcommand[]{\hrulefill}
-\eqcommand[]{\hspace}
-\eqcommand[]{\hspace*}
-\eqcommand[]{\huge}
-\eqcommand[]{\Huge}
-\eqcommand[]{\hyperlink}
-\eqcommand[]{\hypersetup}
-\eqcommand[]{\hypertarget}
-\eqcommand[]{\hyphenation}
-\eqcommand[]{\idotsint}
-\eqcommand[]{\iff}
-\eqcommand[]{\IfFileExists}
-\eqcommand[]{\ifthenelse}
-\eqcommand[]{\Im}
-\eqcommand[]{\imath}
-\eqcommand[]{\in}
-\eqcommand[]{\include}
-\eqcommand[]{\includegraphics}
-\eqcommand[]{\includegraphics*}
-\eqcommand[]{\includeonly}
-\eqcommand[]{\indent}
-\eqcommand[]{\index}
-\eqcommand[]{\indexentry}
-\eqcommand[]{\indexname}
-\eqcommand[]{\indexspace}
-\eqcommand[]{\inf}
-\eqcommand[]{\infty}
-\eqcommand[]{\input}
-\eqcommand[]{\InputIfFileExists}
-\eqcommand[]{\int}
-\eqcommand[]{\iint}
-\eqcommand[]{\iiint}
-\eqcommand[]{\iiiint}
-\eqcommand[]{\intertext}
-\eqcommand[]{\intertextsep}
-\eqcommand[]{\invisible}
-\eqcommand[]{\iota}
-\eqcommand[]{\itdefault}
-\eqcommand[]{\item}
-\eqcommand[]{\itemindent}
-\eqcommand[]{\itemsep}
-\eqcommand[]{\itshape}
-\eqcommand[]{\jmath}
-\eqcommand[]{\join}
-\eqcommand[]{\jot}
-\eqcommand[]{\kappa}
-\eqcommand[]{\ker}
-\eqcommand[]{\kill}
-\eqcommand[]{\label}
-\eqcommand[]{\labelenumi}
-\eqcommand[]{\labelenumii}
-\eqcommand[]{\labelenumiii}
-\eqcommand[]{\labelenumiv}
-\eqcommand[]{\labelitemi}
-\eqcommand[]{\labelitemii}
-\eqcommand[]{\labelitemiii}
-\eqcommand[]{\labelitemiv}
-\eqcommand[]{\labelsep}
-\eqcommand[]{\labelwidth}
-\eqcommand[]{\Lambda}
-\eqcommand[]{\lambda}
-\eqcommand[]{\langle}
-\eqcommand[]{\language}
-\eqcommand[]{\large}
-\eqcommand[]{\Large}
-\eqcommand[]{\LARGE}
-\eqcommand[]{\LaTeX}
-\eqcommand[]{\LaTeXe}
-\eqcommand[]{\lceil}
-\eqcommand[]{\ldots}
-\eqcommand[]{\le}
-\eqcommand[]{\leadsto}
-\eqcommand[]{\left}
-\eqcommand[]{\Leftarrow}
-\eqcommand[]{\leftarrow}
-\eqcommand[]{\lefteqn}
-\eqcommand[]{\leftharpoondown}
-\eqcommand[]{\leftharpoonup}
-\eqcommand[]{\leftmargin}
-\eqcommand[]{\Leftrightarrow}
-\eqcommand[]{\leftrightarrow}
-\eqcommand[]{\leftroot}
-\eqcommand[]{\leq}
-\eqcommand[]{\lfloor}
-\eqcommand[]{\lg}
-\eqcommand[]{\lhd}
-\eqcommand[]{\lim}
-\eqcommand[]{\liminf}
-\eqcommand[]{\limits}
-\eqcommand[]{\limsup}
-\eqcommand[]{\line}
-\eqcommand[]{\linebreak}
-\eqcommand[]{\linethickness}
-\eqcommand[]{\linewidth}
-\eqcommand[]{\listfigurename}
-\eqcommand[]{\listfiles}
-\eqcommand[]{\listoffigures}
-\eqcommand[]{\listoftables}
-\eqcommand[]{\listparindent}
-\eqcommand[]{\listtablename}
-\eqcommand[]{\ll}
-\eqcommand[]{\ln}
-\eqcommand[]{\LoadClass}
-\eqcommand[]{\LoadClassWithOptions}
-\eqcommand[]{\location}
-\eqcommand[]{\log}
-\eqcommand[]{\Longleftarrow}
-\eqcommand[]{\longleftarrow}
-\eqcommand[]{\Longleftrightarrow}
-\eqcommand[]{\longleftrightarrow}
-\eqcommand[]{\longmapsto}
-\eqcommand[]{\Longrightarrow}
-\eqcommand[]{\longrightarrow}
-\eqcommand[]{\lvert}
-\eqcommand[]{\lVert}
-\eqcommand[]{\mainmatter}
-\eqcommand[]{\makebox}
-\eqcommand[]{\makeglossary}
-\eqcommand[]{\makeindex}
-\eqcommand[]{\makelabel}
-\eqcommand[]{\makelabels}
-\eqcommand[]{\MakeLowercase}
-\eqcommand[]{\MakeShortVerb}
-\eqcommand[]{\maketitle}
-\eqcommand[]{\MakeUppercase}
-\eqcommand[]{\mapsto}
-\eqcommand[]{\marginpar}
-\eqcommand[]{\marginparpush}
-\eqcommand[]{\marginparsep}
-\eqcommand[]{\marginparwidth}
-\eqcommand[]{\markboth}
-\eqcommand[]{\markright}
-\eqcommand[]{\mathbf}
-\eqcommand[]{\mathcal}
-\eqcommand[]{\mathindent}
-\eqcommand[]{\mathit}
-\eqcommand[]{\mathnormal}
-\eqcommand[]{\mathring}
-\eqcommand[]{\mathrm}
-\eqcommand[]{\mathsf}
-\eqcommand[]{\mathtt}
-\eqcommand[]{\max}
-\eqcommand[]{\mbox}
-\eqcommand[]{\mddefault}
-\eqcommand[]{\mdseries}
-\eqcommand[]{\medskip}
-\eqcommand[]{\medskipamount}
-\eqcommand[]{\medspace}
-\eqcommand[]{\MessageBreak}
-\eqcommand[]{\mho}
-\eqcommand[]{\mid}
-\eqcommand[]{\min}
-\eqcommand[]{\mod}
-\eqcommand[]{\models}
-\eqcommand[]{\mp}
-\eqcommand[]{\mspace}
-\eqcommand[]{\mu}
-\eqcommand[]{\multicolumn}
-\eqcommand[]{\multiput}
-\eqcommand[]{\multlinegap}
-\eqcommand[]{\nabla}
-\eqcommand[]{\name}
-\eqcommand[]{\natural}
-\eqcommand[]{\nearrow}
-\eqcommand[]{\NeedsTeXFormat}
-\eqcommand[]{\neg}
-\eqcommand[]{\negmedspace}
-\eqcommand[]{\negthickspace}
-\eqcommand[]{\negthinspace}
-\eqcommand[]{\neq}
-\eqcommand[]{\newboolean}
-\eqcommand[]{\newcommand}
-\eqcommand[]{\newcommand*}
-\eqcommand[]{\newcounter}
-\eqcommand[]{\newenvironment}
-\eqcommand[]{\newenvironment*}
-\eqcommand[]{\newfont}
-\eqcommand[]{\newlength}
-\eqcommand[]{\newline}
-\eqcommand[]{\newpage}
-\eqcommand[]{\newsavebox}
-\eqcommand[]{\newtheorem}
-\eqcommand[]{\ni}
-\eqcommand[]{\nocite}
-\eqcommand[]{\nofiles}
-\eqcommand[]{\noindent}
-\eqcommand[]{\nolimits}
-\eqcommand[]{\nolinebreak}
-\eqcommand[]{\nonfrenchspacing}
-\eqcommand[]{\nonumber}
-\eqcommand[]{\nopagebreak}
-\eqcommand[]{\normalcolor}
-\eqcommand[]{\normalfont}
-\eqcommand[]{\normalmarginpar}
-\eqcommand[]{\normalsize}
-\eqcommand[]{\not}
-\eqcommand[]{\notag}
-\eqcommand[]{\notin}
-\eqcommand[]{\nu}
-\eqcommand[]{\numberwithin}
-\eqcommand[]{\nwarrow}
-\eqcommand[]{\oddsidemargin}
-\eqcommand[]{\odot}
-\eqcommand[]{\oint}
-\eqcommand[]{\Omega}
-\eqcommand[]{\omega}
-\eqcommand[]{\ominus}
-\eqcommand[]{\onecolumn}
-\eqcommand[]{\onlynotes}
-\eqcommand[]{\onlyslides}
-\eqcommand[]{\opening}
-\eqcommand[]{\oplus}
-\eqcommand[]{\OptionNotUsed}
-\eqcommand[]{\oslash}
-\eqcommand[]{\otimes}
-\eqcommand[]{\oval}
-\eqcommand[]{\ovalbox}
-\eqcommand[]{\Ovalbox}
-\eqcommand[]{\overbrace}
-\eqcommand[]{\overleftarrow}
-\eqcommand[]{\overleftrightarrow}
-\eqcommand[]{\overline}
-\eqcommand[]{\overrightarrow}
-\eqcommand[]{\overset}
-\eqcommand[]{\PackageError}
-\eqcommand[]{\PackageInfo}
-\eqcommand[]{\PackageWarning}
-\eqcommand[]{\PackageWarningNoLine}
-\eqcommand[]{\pagebreak}
-\eqcommand[]{\pagecolor}
-\eqcommand[]{\pagename}
-\eqcommand[]{\pagenumbering}
-\eqcommand[]{\pageref}
-\eqcommand[]{\pagestyle}
-\eqcommand[]{\paperheight}
-\eqcommand[]{\paperwidth}
-\eqcommand[]{\par}
-\eqcommand[]{\paragraph}
-\eqcommand[]{\paragraph*}
-\eqcommand[]{\parallel}
-\eqcommand[]{\parbox}
-\eqcommand[]{\parindent}
-\eqcommand[]{\parsep}
-\eqcommand[]{\parskip}
-\eqcommand[]{\part}
-\eqcommand[]{\part*}
-\eqcommand[]{\partial}
-\eqcommand[]{\partname}
-\eqcommand[]{\partopsep}
-\eqcommand[]{\PassOptionToClass}
-\eqcommand[]{\PassOptionToPackage}
-\eqcommand[]{\path}
-\eqcommand[]{\prep}
-\eqcommand[]{\Phi}
-\eqcommand[]{\phi}
-\eqcommand[]{\Pi}
-\eqcommand[]{\pi}
-\eqcommand[]{\pm}
-\eqcommand[]{\pmb}
-\eqcommand[]{\pmod}
-\eqcommand[]{\pod}
-\eqcommand[]{\poptabs}
-\eqcommand[]{\pounds}
-\eqcommand[]{\Pr}
-\eqcommand[]{\prec}
-\eqcommand[]{\preceq}
-\eqcommand[]{\prime}
-\eqcommand[]{\printindex}
-\eqcommand[]{\ProcessOptions}
-\eqcommand[]{\ProcessOptions*}
-\eqcommand[]{\prod}
-\eqcommand[]{\propto}
-\eqcommand[]{\protect}
-\eqcommand[]{\providecommand}
-\eqcommand[]{\providecommand*}
-\eqcommand[]{\ProvidesClass}
-\eqcommand[]{\ProvidesFile}
-\eqcommand[]{\ProvidesPackage}
-\eqcommand[]{\ps}
-\eqcommand[]{\Psi}
-\eqcommand[]{\psi}
-\eqcommand[]{\pushtabs}
-\eqcommand[]{\put}
-\eqcommand[]{\qbezier}
-\eqcommand[]{\qquad}
-\eqcommand[]{\quad}
-\eqcommand[]{\raggedbottom}
-\eqcommand[]{\raggedleft}
-\eqcommand[]{\raggedright}
-\eqcommand[]{\raisebox}
-\eqcommand[]{\raisetag}
-\eqcommand[]{\rangle}
-\eqcommand[]{\rceil}
-\eqcommand[]{\Re}
-\eqcommand[]{\ref}
-\eqcommand[]{\reflectbox}
-\eqcommand[]{\refname}
-\eqcommand[]{\refstepcounter}
-\eqcommand[]{\renewcommand}
-\eqcommand[]{\renewcommand*}
-\eqcommand[]{\renewenvironment}
-\eqcommand[]{\renewenvironment*}
-\eqcommand[]{\RequirePackage}
-\eqcommand[]{\RequirePackageWithOptions}
-\eqcommand[]{\resizebox}
-\eqcommand[]{\resizebox*}
-\eqcommand[]{\reversemarginpar}
-\eqcommand[]{\rfloor}
-\eqcommand[]{\rhd}
-\eqcommand[]{\rho}
-\eqcommand[]{\right}
-\eqcommand[]{\Rightarrow}
-\eqcommand[]{\rightarrow}
-\eqcommand[]{\rightharpoondown}
-\eqcommand[]{\rightharpoonup}
-\eqcommand[]{\rightleftharpoons}
-\eqcommand[]{\rightmargin}
-\eqcommand[]{\rmdefault}
-\eqcommand[]{\rmfamily}
-\eqcommand[]{\Roman}
-\eqcommand[]{\roman}
-\eqcommand[]{\rotatebox}
-\eqcommand[]{\rule}
-\eqcommand[]{\rvert}
-\eqcommand[]{\rVert}
-\eqcommand[]{\savebox}
-\eqcommand[]{\sbox}
-\eqcommand[]{\scalebox}
-\eqcommand[]{\scdefault}
-\eqcommand[]{\scriptscriptstyle}
-\eqcommand[]{\scriptsize}
-\eqcommand[]{\scripstyle}
-\eqcommand[]{\scshape}
-\eqcommand[]{\searrow}
-\eqcommand[]{\sec}
-\eqcommand[]{\section}
-\eqcommand[]{\section*}
-\eqcommand[]{\see}
-\eqcommand[]{\seealso}
-\eqcommand[]{\seename}
-\eqcommand[]{\selectfont}
-\eqcommand[]{\setboolean}
-\eqcommand[]{\setcounter}
-\eqcommand[]{\setlength}
-\eqcommand[]{\setminus}
-\eqcommand[]{\settodepth}
-\eqcommand[]{\settoheight}
-\eqcommand[]{\settowidth}
-\eqcommand[]{\sfdefault}
-\eqcommand[]{\sffamily}
-\eqcommand[]{\shadowbox}
-\eqcommand[]{\sharp}
-\eqcommand[]{\shortstack}
-\eqcommand[]{\sideset}
-\eqcommand[]{\Sigma}
-\eqcommand[]{\sigma}
-\eqcommand[]{\signature}
-\eqcommand[]{\sim}
-\eqcommand[]{\simeq}
-\eqcommand[]{\sin}
-\eqcommand[]{\sinh}
-\eqcommand[]{\sldefault}
-\eqcommand[]{\sloppy}
-\eqcommand[]{\slshape}
-\eqcommand[]{\small}
-\eqcommand[]{\smallskip}
-\eqcommand[]{\smallskipamount}
-\eqcommand[]{\smash}
-\eqcommand[]{\smile}
-\eqcommand[]{\spadesuit}
-\eqcommand[]{\sqcap}
-\eqcommand[]{\sqcup}
-\eqcommand[]{\sqrt}
-\eqcommand[]{\sqsubset}
-\eqcommand[]{\sqsubseteq}
-\eqcommand[]{\sqsupset}
-\eqcommand[]{\sqsupseteq}
-\eqcommand[]{\stackrel}
-\eqcommand[]{\star}
-\eqcommand[]{\stepcounter}
-\eqcommand[]{\stretch}
-\eqcommand[]{\subitem}
-\eqcommand[]{\subparagraph}
-\eqcommand[]{\subparagraph*}
-\eqcommand[]{\subsection}
-\eqcommand[]{\subsection*}
-\eqcommand[]{\substack}
-\eqcommand[]{\subsubitem}
-\eqcommand[]{\subsubsection}
-\eqcommand[]{\subsubsection*}
-\eqcommand[]{\subset}
-\eqcommand[]{\subseteq}
-\eqcommand[]{\succ}
-\eqcommand[]{\succeq}
-\eqcommand[]{\sum}
-\eqcommand[]{\sup}
-\eqcommand[]{\supressfloats}
-\eqcommand[]{\supset}
-\eqcommand[]{\supseteq}
-\eqcommand[]{\surd}
-\eqcommand[]{\swarrow}
-\eqcommand[]{\tabbingsep}
-\eqcommand[]{\tabcolsep}
-\eqcommand[]{\tableofcontents}
-\eqcommand[]{\tablename}
-\eqcommand[]{\tabularnewline}
-\eqcommand[]{\tag}
-\eqcommand[]{\tan}
-\eqcommand[]{\tanh}
-\eqcommand[]{\tau}
-\eqcommand[]{\tbinom}
-\eqcommand[]{\telephone}
-\eqcommand[]{\TeX}
-\eqcommand[]{\text}
-\eqcommand[]{\textbullet}
-\eqcommand[]{\textemdash}
-\eqcommand[]{\textendash}
-\eqcommand[]{\textexclamdown}
-\eqcommand[]{\textperiodcentered}
-\eqcommand[]{\textquestiondown}
-\eqcommand[]{\textquotedblleft}
-\eqcommand[]{\textquotedblright}
-\eqcommand[]{\textquoteleft}
-\eqcommand[]{\textquoteright}
-\eqcommand[]{\textvisiblespace}
-\eqcommand[]{\textasciicircum}
-\eqcommand[]{\textasciitilde}
-\eqcommand[]{\textbackslash}
-\eqcommand[]{\textbar}
-\eqcommand[]{\textgreater}
-\eqcommand[]{\textless}
-\eqcommand[]{\textbf}
-\eqcommand[]{\textcircled}
-\eqcommand[]{\textcolor}
-\eqcommand[]{\textcompwordmark}
-\eqcommand[]{\textfloatsep}
-\eqcommand[]{\textfraction}
-\eqcommand[]{\textheight}
-\eqcommand[]{\textit}
-\eqcommand[]{\textmd}
-\eqcommand[]{\textnormal}
-\eqcommand[]{\textregistered}
-\eqcommand[]{\textrm}
-\eqcommand[]{\textsc}
-\eqcommand[]{\textsf}
-\eqcommand[]{\textsl}
-\eqcommand[]{\textstyle}
-\eqcommand[]{\textsuperscript}
-\eqcommand[]{\texttrademark}
-\eqcommand[]{\texttt}
-\eqcommand[]{\textup}
-\eqcommand[]{\textwidth}
-\eqcommand[]{\tfrac}
-\eqcommand[]{\thanks}
-\eqcommand[]{\Theta}
-\eqcommand[]{\theta}
-\eqcommand[]{\thicklines}
-\eqcommand[]{\thickspace}
-\eqcommand[]{\thinlines}
-\eqcommand[]{\thinspace}
-\eqcommand[]{\thisfancypage}
-\eqcommand[]{\thispagestyle}
-\eqcommand[]{\tilde}
-\eqcommand[]{\tiny}
-\eqcommand[]{\times}
-\eqcommand[]{\title}
-\eqcommand[]{\to}
-\eqcommand[]{\today}
-\eqcommand[]{\top}
-\eqcommand[]{\topfigrule}
-\eqcommand[]{\topfraction}
-\eqcommand[]{\topmargin}
-\eqcommand[]{\topsep}
-\eqcommand[]{\topskip}
-\eqcommand[]{\totalheight}
-\eqcommand[]{\triangle}
-\eqcommand[]{\triangleleft}
-\eqcommand[]{\triangleright}
-\eqcommand[]{\ttdefault}
-\eqcommand[]{\ttfamily}
-\eqcommand[]{\twocolumn}
-\eqcommand[]{\typein}
-\eqcommand[]{\typeout}
-\eqcommand[]{\unboldmath}
-\eqcommand[]{\underbrace}
-\eqcommand[]{\underleftarrow}
-\eqcommand[]{\underleftrightarrow}
-\eqcommand[]{\underline}
-\eqcommand[]{\underrightarrow}
-\eqcommand[]{\underset}
-\eqcommand[]{\unitlength}
-\eqcommand[]{\unlhd}
-\eqcommand[]{\unrhd}
-\eqcommand[]{\Uparrow}
-\eqcommand[]{\uparrow}
-\eqcommand[]{\updefault}
-\eqcommand[]{\Updownarrow}
-\eqcommand[]{\updownarrow}
-\eqcommand[]{\uplus}
-\eqcommand[]{\upshape}
-\eqcommand[]{\Upsilon}
-\eqcommand[]{\upsilon}
-\eqcommand[]{\uproot}
-\eqcommand[]{\url}
-\eqcommand[]{\urlstyle}
-\eqcommand[]{\usebox}
-\eqcommand[]{\usecounter}
-\eqcommand[]{\usefont}
-\eqcommand[]{\usepackage}
-\eqcommand[]{\value}
-\eqcommand[]{\varepsilon}
-\eqcommand[]{\varinjlim}
-\eqcommand[]{\varliminf}
-\eqcommand[]{\varlimsup}
-\eqcommand[]{\varphi}
-\eqcommand[]{\varpi}
-\eqcommand[]{\varprojlim}
-\eqcommand[]{\varrho}
-\eqcommand[]{\varsigma}
-\eqcommand[]{\vartheta}
-\eqcommand[]{\vdash}
-\eqcommand[]{\vdots}
-\eqcommand[]{\vec}
-\eqcommand[]{\vector}
-\eqcommand[]{\vee}
-\eqcommand[]{\verb}
-\eqcommand[]{\verb*}
-\eqcommand[]{\vfill}
-\eqcommand[]{\visible}
-\eqcommand[]{\vline}
-\eqcommand[]{\voffset}
-\eqcommand[]{\vpageref}
-\eqcommand[]{\vref}
-\eqcommand[]{\vspace}
-\eqcommand[]{\vspace*}
-\eqcommand[]{\wedge}
-\eqcommand[]{\whiledo}
-\eqcommand[]{\widehat}
-\eqcommand[]{\widetilde}
-\eqcommand[]{\width}
-\eqcommand[]{\wp}
-\eqcommand[]{\wr}
-\eqcommand[]{\Xi}
-\eqcommand[]{\xi}
-\eqcommand[]{\xleftarrow}
-\eqcommand[]{\xrightarrow}
-\eqcommand[]{\zeta}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `commands-ltx.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/commands-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/commands-xepersian.def
deleted file mode 100644
index 62b7995cba6..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/commands-xepersian.def
+++ /dev/null
@@ -1,30 +0,0 @@
-%%
-%% This is file `commands-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `commands-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `commands-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/enumerate-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/enumerate-xepersian.def
deleted file mode 100644
index 6f1998fd675..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/enumerate-xepersian.def
+++ /dev/null
@@ -1,45 +0,0 @@
-%%
-%% This is file `enumerate-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `enumerate-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\@enloop@{%
- \ifx ا\@entemp \def\@tempa{\@enLabel\harfi }\else
- \ifx ی\@entemp \def\@tempa{\@enLabel\adadi }\else
- \ifx ت\@entemp \def\@tempa{\@enLabel\tartibi }\else
- \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else
- \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else
- \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else
- \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else
- \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else
- \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else
- \ifx \bgroup\@entemp \let\@tempa\@enGroup \else
- \ifx \@enum@\@entemp \let\@tempa\@gobble \else
- \let\@tempa\@enOther
- \@enhook
- \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
- \@tempa}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `enumerate-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/environments-ltx.def b/Master/texmf-dist/doc/xelatex/xepersian/environments-ltx.def
deleted file mode 100644
index 996ce5b3047..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/environments-ltx.def
+++ /dev/null
@@ -1,91 +0,0 @@
-%%
-%% This is file `environments-ltx.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `environments-ltx.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\eqenvironment[]{abstract}
-\eqenvironment[]{align}
-\eqenvironment[]{alignat}
-\eqenvironment[]{aligned}
-\eqenvironment[]{appendix}
-\eqenvironment[]{array}
-\eqenvironment[]{center}
-\eqenvironment[]{alltt}
-\eqenvironment[]{bmatrix}
-\eqenvironment[]{Bmatrix}
-\eqenvironment[]{cases}
-\eqenvironment[]{description}
-\eqenvironment[]{displaymath}
-\eqenvironment[]{enumerate}
-\eqenvironment[]{eqnarray}
-\eqenvironment[]{eqnarray*}
-\eqenvironment[]{equation}
-\eqenvironment[]{equation*}
-\eqenvironment[]{falign}
-\eqenvironment[]{figure}
-\eqenvironment[]{figure*}
-\eqenvironment[]{filecontents}
-\eqenvironment[]{filecontents*}
-\eqenvironment[]{flushleft}
-\eqenvironment[]{flushright}
-\eqenvironment[]{gather}
-\eqenvironment[]{gathered}
-\eqenvironment[]{itemize}
-\eqenvironment[]{letter}
-\eqenvironment[]{list}
-\eqenvironment[]{longtable}
-\eqenvironment[]{lrbox}
-\eqenvironment[]{math}
-\eqenvironment[]{matrix}
-\eqenvironment[]{minipage}
-\eqenvironment[]{multicols}
-\eqenvironment[]{multline}
-\eqenvironment[]{note}
-\eqenvironment[]{overlay}
-\eqenvironment[]{picture}
-\eqenvironment[]{pmatrix}
-\eqenvironment[]{quotation}
-\eqenvironment[]{quote}
-\eqenvironment[]{slide}
-\eqenvironment[]{sloppypar}
-\eqenvironment[]{split}
-\eqenvironment[]{subarray}
-\eqenvironment[]{subequations}
-\eqenvironment[]{tabbing}
-\eqenvironment[]{table}
-\eqenvironment[]{table*}
-\eqenvironment[]{tabular}
-\eqenvironment[]{tabular*}
-\eqenvironment[]{thebibliography}
-\eqenvironment[]{theindex}
-\eqenvironment[]{titlepage}
-\eqenvironment[]{trivlist}
-\eqenvironment[]{verbatim}
-\eqenvironment[]{verbatim*}
-\eqenvironment[]{verse}
-\eqenvironment[]{vmatrix}
-\eqenvironment[]{Vmatrix}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `environments-ltx.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/environments-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/environments-xepersian.def
deleted file mode 100644
index 86e1256ccc4..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/environments-xepersian.def
+++ /dev/null
@@ -1,30 +0,0 @@
-%%
-%% This is file `environments-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `environments-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `environments-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/MyReferences.bib b/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/MyReferences.bib
deleted file mode 100644
index 77dd27e8cc8..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/MyReferences.bib
+++ /dev/null
@@ -1,113 +0,0 @@
-@article{Baker02limits,
- author = {Baker,, Simon and Kanade,, Takeo},
- title = {Limits on Super-Resolution and How to Break Them},
- journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
- volume = {24},
- number = {9},
- year = {2002},
- issn = {0162-8828},
- pages = {1167--1183},
- publisher = {IEEE Computer Society},
- address = {Washington, DC, USA}
- }
-
-@CONFERENCE{Amintoosi87using,
- AUTHOR = {\noopsort{امین‌طوسی,محمود}{امین‌طوسی,محمود} and others},
- TITLE = {استفاده از تجزیه ماتریس در وضوح برتر},
- BOOKTITLE = {پنجمین کنفرانس بینائی ماشین},
- YEAR = {1387},
- ORGANIZATION = {دانشگاه تبریز},
- ADDRESS = {تبریز، ایران},
- PAGES = {172-178},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{پورموسی۸۸ارشد,
- AUTHOR = {\noopsort{بپورموسی, امیرمسعود}{پورموسی, امیرمسعود}},
- TITLE = {یک موضوع فیزیک},
- SCHOOL = {دانشکده فیزیک، دانشگاه صنعتی‌شریف},
- YEAR = {۱۳۸۸},
- MONTH = {مرداد},
- NOTE = {(در حال انجام)},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{Khalighi07MscThesis,
- AUTHOR = {Vafa Khalighi},
- TITLE = {Category Theory},
- SCHOOL = {Sydny Univ.},
- YEAR = {2007},
- MONTH = {April}
-}
-
-@PHDTHESIS{امیدعلی82دکترا,
- AUTHOR = {\noopsort{امیدعلی, مهدی}{امیدعلی, مهدی}},
- TITLE = {تابع هیلبرت},
- SCHOOL = {دانشکده ریاضی، دانشگاه امیرکبیر},
- YEAR = {1382},
- MONTH = {تیر},
- LANGUAGE = {Persian}
-}
-
-@MISC{خلیقی۸۷زی‌پرشین,
- AUTHOR = {\noopsort{خلیقی,وفا}{خلیقی,وفا} and امیدعلی, مهدی and واحدی,مصطفی.},
- TITLE = {زی‌پرشین (\lr{\XePersian}): بسته فارسی برای حروف‌چینی در \lr{\LaTeX2e}},
- HOWPUBLISHED = {\lr{http://developer.berlios.de/projects/xepersian}},
- YEAR = {۱۳۸۷},
- LANGUAGE = {Persian}
- }
-
-@BOOK{استالینگ۸۰کتاب,
- AUTHOR = {\noopsort{استالینگ, ویلیام}{استالینگ, ویلیام}},
- EDITOR = {برنجکوب, محمود},
- translator = { صدیقی‌ مشکنانی, محسن and پدرام,حسین },
- TITLE = {اصول طراحی و ویژگیهای داخلی سیستم‌های عامل},
- PUBLISHER = {نشر شیخ بهایی},
- YEAR = {۱۳۸۰},
- ADDRESS = {اصفهان},
- edition = {سوم},
- MONTH = {بهار},
- LANGUAGE = {Persian}
-}
-
-@ARTICLE{واحدی87,
- AUTHOR = {\noopsort{واحدی, مصطفی}{واحدی, مصطفی}},
- TITLE = {موضوعی جدید در هندسه محاسباتی},
- JOURNAL = {مجله فارسی نمونه},
- VOLUME = {1},
- YEAR = {1387},
- NUMBER = {2},
- MONTH = {آبان},
- PAGES = {22-30},
- LANGUAGE = {Persian}
-}
-
-@CONFERENCE{Amintoosi09regional,
- author = {Mahmood Amintoosi and Mahmood Fathy and Nasser Mozayani},
- title = {Regional Varying Image Super-Resolution},
- booktitle = {(CSO 2009) The 2009 IEEE International Joint Conference on Computational Sciences and Optimization},
- year = {2009},
- month = {24-26 April},
- organization = {City University},
- address = {Sanya, Hainan, China},
- pages = {101-105}
-}
-
-@PHDTHESIS{Farsiu05thesis,
- AUTHOR = {Sina Farsiu},
- TITLE = {A Fast and Robust Framework for Image Fusion and Enhancement},
- SCHOOL = {Electrical Engineeting},
- YEAR = {2005},
- ADDRESS = {UC Santa Cruz},
- MONTH = {December}
-}
-
-@BOOK{Gonzalez02book,
- AUTHOR = {Gonzalez,, Rafael C. and Woods,, Richard E.},
- TITLE = {Digital Image Processing},
- PUBLISHER = {Prentice-Hall, Inc.},
- YEAR = {2006},
- ISBN = {013168728X},
- EDITION = {3rd},
- ADDRESS = {Upper Saddle River, NJ, USA},
-}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/acm-fa-output.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/acm-fa-output.tex
deleted file mode 100644
index c0e153d6fb4..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/acm-fa-output.tex
+++ /dev/null
@@ -1,17 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{acm-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-\nocite{*}
-\bibliographystyle{acm-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/bibtex-example.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/bibtex-example.tex
deleted file mode 100644
index 6536265479b..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/bibtex-example.tex
+++ /dev/null
@@ -1,27 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-
-\usepackage{verbatim}
-\usepackage{backref}
-\def\backrefpagesname{}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Times New latin}
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با استیل فارسی \lr{unsrt-fa} برای \lr{BibTeX} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-مرجع \cite{امیدعلی82دکترا} یک نمونه پروژه دکترا و مرجع\cite{واحدی87} یک نمونه مقاله مجله فارسی است.
-مرجع \cite{Baker02limits} یک نمونه مقاله انگلیسی است که در بین مراجع فارسی قرار گرفته است، مرجع \cite{Amintoosi87using} یک نمونه مقاله کنفرانس فارسی و
-مرجع \cite{استالینگ۸۰کتاب} یک نمونه کتاب فارسی با ذکر مترجمان و ویراستاران فارسی است. مرجع \cite{Khalighi07MscThesis} یک نمونه پروژه کارشناسی ارشد انگلیسی و
-\cite{خلیقی۸۷زی‌پرشین} هم یک نمونه متفرقه می‌باشند.
-
-{\small
-\bibliographystyle{unsrt-fa}%{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/ieeetr-fa-output.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/ieeetr-fa-output.tex
deleted file mode 100644
index b1b02051cf0..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/ieeetr-fa-output.tex
+++ /dev/null
@@ -1,19 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{ieeetr-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/plain-fa-output.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/plain-fa-output.tex
deleted file mode 100644
index 72345bfd1d3..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/bibtex/plain-fa-output.tex
+++ /dev/null
@@ -1,19 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{XB Zar}
-
-\title{نمونه خروجی با سبک فارسی \lr{plain-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences1}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/logo.pdf b/Master/texmf-dist/doc/xelatex/xepersian/examples/logo.pdf
deleted file mode 100755
index 1363dc199a9..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/logo.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/magazine-sample.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/magazine-sample.tex
deleted file mode 100644
index 9badb482be7..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/magazine-sample.tex
+++ /dev/null
@@ -1,171 +0,0 @@
-\documentclass[12pt,twoside]{xepersian-magazine}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\usepackage{xunicode}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Junicode}
-\setdigitfont{XB Zar}
-\pagestyle{fancy}
-\title{مجلهٔ زی‌پرشین}
-\author{وفا خلیقی}
-\edition{جلد اول}
-\customlogo{مجلهٔ زی‌پرشین}
-\customminilogo{مجلهٔ زی‌پرشین}
-\custommagazinename{مجلهٔ زی‌پرشین}
-\customwwwTxt{http://developer.berlios.de/projects/xepersian}
-\begin{document}
-\begin{frontpage}
-\firstimage{img/ireland.jpg}{این زیرنویس تصویر اصلی در صفحهٔ اول است.}
-\firstarticle{این تیتر مقالهٔ اول است.}
-{خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد.}%
-{۱۲:۳۴}
-\secondarticle{این هم سر تیتر مقالهٔ دوم است.}%
-{این هم زیر تیتر مقالهٔ دوم است که آن را در اینجا می‌نویسیم.}%
-{خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد.}%
-{قسمت الف}%
-{۱۰:۲۳}
-
-\thirdarticle{این سرتیتر مقالهٔ سوم است.}%
-{این هم زیرتیتر مقالهٔ سوم است که ما آن را در اینجا قرار می‌دهیم.}%
-{خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد. و همانطور که می‌بینید من مطلبی برای گفتن ندارم فقط متن علکی می‌نویسم تا کمی صفحه را پر کرده باشم. اما در قسمتهای بعدی مقداری از سهراب سپهری خواهم نوشت.}%
-
-{قسمت ب}%
-{۱۰:۰۲}
-
-\begin{indexblock}{نمایه (فهرست مطالب) اصلی}
-\indexitem{۱- مقاله اول}{1}
-
-\indexitem{۲- مقاله دوم}{3}
-
-\indexitem{۳- مقاله سوم}{3}
-
-\indexitem{۴- مقاله چهارم}{5}
-\end{indexblock}
-
-\begin{weatherblock}{وضع آب و هوا}
-\weatheritem{img/weather/rain.jpg}{امروز}{13}{9}{}
-\weatheritem{img/weather/sun.jpg}{فردا}{15}{1}{}
-\weatheritem{img/weather/clouds.jpg}{جمعه}{12}{6}{}
-\end{weatherblock}
-
-\begin{authorblock}
-\textbf{ویرایشگران}
-
-وفا خلیقی، مهدی امیدعلی و مصطفی واحدی
-
-\texttt{vafa@users.berlios.de\\[5pt]
-http://developer.berlios.de/projects/xepersian}\\
-\end{authorblock}
-\end{frontpage}
-\newsection{قسمت الف}
-\begin{article}{2}
-{این تیتر این مقاله است.}
-{این هم زیرتیتر این مقاله هست.}
-{قسمت الف}
-{1}
-\authorandplace{نام نویسنده}{مکان}
-
-\noindent\timestamp{۸:۲۵}
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-\footnote{این یک زیرنویس فارسی است.}\LTRfootnote{This is an English footnote.}
-\begin{equation}
-(a+b)^3=a^3+3a^2b+3ab^2+b^3\label{eq-1}
-\end{equation}
-این معادلهٔ \eqref{eq-1} است.
-\columntitle{lines}{این را برای مهم یا نشان دادن حرفی مهم در این مجله انجام می‌دهیم.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\begin{article}{2}
-{این تیتر این مقاله است.}
-{این هم زیرتیتر این مقاله هست.}
-{قسمت الف}
-{1}
-\authorandplace{نام نویسنده}{مکان}
-
-\noindent\timestamp{08:25}
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-\LTRfootnote{This is an English footnote.}\footnote{این یک زیرنویس فارسی است.}
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-\expandedtitle{doublebox}{این هم مطلی است مهم یا چیزی که از خلاصهٔ این مقاله ما متوجه شده‌ایم و این برای ما و خوانندگان خیلی مهم است.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\newsection{قسمت ب}
-
-\begin{article}{2}
-{این یک تیتر کوتاه است.وفا خلیقی}
-{این هم مثل همیشه زیرتیتر است که ما آن را در اینجا قرار می‌دهیم.}
-{قسمت ب}
-{3}
-
-\authorandplace{نام نویسنده}{مکان}
-
-\noindent\timestamp{08:25} et ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-\expandedtitle{lines}{این هم دوباره مطلب مهمی است که ما آن را از لابلای این مقاله برای خواننده درست کرده‌ایم.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\begin{editorial}{1}{این یک مثال از مقاله‌ای از طرف ویرایشگر است.}{نام و نام خانوادگی}{4}
-يژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{editorial}
-
-\articlesep
-
-\begin{shortarticle}{4}{محیط مقالهٔ کوتاه}{محیط مقالهٔ کوتاه داخل مجلهٔ زی‌پرشین}{5}
-\shortarticleitem{این یک تیتر کوتاه است}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\end{shortarticle}
-
-\articlesep
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-correction.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/test-correction.tex
deleted file mode 100644
index 9c542954ed6..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-correction.tex
+++ /dev/null
@@ -1,39 +0,0 @@
-\documentclass{article}
-\usepackage[correction]{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-empty-form.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/test-empty-form.tex
deleted file mode 100644
index 37a891b40fb..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-empty-form.tex
+++ /dev/null
@@ -1,43 +0,0 @@
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-\bigskip
-
-\begin{center}
-\makeform
-\end{center}
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-question-only.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/test-question-only.tex
deleted file mode 100644
index b3f84d4c9bf..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-question-only.tex
+++ /dev/null
@@ -1,39 +0,0 @@
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-solution-form.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/test-solution-form.tex
deleted file mode 100644
index 2492d6be6c1..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/test-solution-form.tex
+++ /dev/null
@@ -1,43 +0,0 @@
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-\bigskip
-\begin{center}
-\makemask
-\end{center}
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/examples/thesis-sample.tex b/Master/texmf-dist/doc/xelatex/xepersian/examples/thesis-sample.tex
deleted file mode 100644
index 1c9dd05c490..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/examples/thesis-sample.tex
+++ /dev/null
@@ -1,62 +0,0 @@
-\documentclass[a4paper,11pt]{xepersian-thesis}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{XB Zar}
-
-\begin{document}
-\title{اعداد مرکب}
-\author{وفا خلیقی}
-\degree{کارشناسی ریاضیات محض}
-\supervisor{محمد قدسی}
-\department{ریاضی}
-\university{تهران}
-\city{تهران}
-\thesisdate{\today}
-\maketitle
-\begin{acknowledgementpage}
-در اینجا دوست دارم از همه تشکر کنم
-\end{acknowledgementpage}
-\begin{abstractpage}
-اینجا هم باید مطلبی نوشت...
-\keywords{ریاضی محض، هندسه و توپولوژی}
-\end{abstractpage}
-\tableofcontents
-\listoftables
-\chapter{مجموعه اعداد}
-در اینجا لازم می‌دانم تا نگاهی روی مجموعهٔ اعداد اندازیم تا متوجه خصلت‌های آن شویم
-\begin{equation}
-(a+b)^2=a^2+2ab+b^3
-\end{equation}
-\newpage
-این صفحهٔ جدید است که ما در این صفحه به نوشتن مقالات دیگری مشغول هستیم.
-\section{مقدمه}
-
-\newpage
-این هم یک صفحهٔ جدید دیگر
-\chapter{دوم}
-\chapter{سوم}
-\appendix
-\chapter{اول}
-\chapter{دوم}
-\chapter{سوم}
-\bibliographystyle{unsrt}
-\begin{thebibliography}{99}
-\end{thebibliography}
-\begin{latin}
-\latintitle{Pure Mathematics}
-\latinauthor{Vafa Khalighi}
-\latindegree{Bachelor of Pure Mathematics}
-\latinthesisdate{\latintoday}
-\latinsupervisor{Mohammad Ghodsi}
-\latindepartment{Computer Science}
-\latinuniversity{Iran University of Science \& Technology}
-\latincity{Tehran}
-\begin{latinabstract}
-\noindent This is our abstract written in English and This thesis is written very very very carefully so that we can keep an eye on the beauty of typesetting.
-\latinkeywords{Mathematics, topology, geometry and category theory.}
-\end{latinabstract}
-\makelatintitle
-\end{latin}
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/extbook-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/extbook-xepersian.def
deleted file mode 100644
index 298e9fe9186..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/extbook-xepersian.def
+++ /dev/null
@@ -1,44 +0,0 @@
-%%
-%% This is file `extbook-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `extbook-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand\frontmatter{%
- \cleardoublepage
- \@mainmatterfalse
- \pagenumbering{harfi}}
-\renewcommand\mainmatter{%
- \cleardoublepage
- \@mainmattertrue
- \pagenumbering{arabic}}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `extbook-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/farsitex2xepersian/ftxe-0.11.py b/Master/texmf-dist/doc/xelatex/xepersian/farsitex2xepersian/ftxe-0.11.py
deleted file mode 100644
index eb01b1de984..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/farsitex2xepersian/ftxe-0.11.py
+++ /dev/null
@@ -1,1045 +0,0 @@
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses>
-
-##################################################
-# Author: Mostafa Vahedi #
-# Date: 06 July 2009 #
-# Version: 0-11 #
-# Application: FarsiTeX to XePersian converter #
-##################################################
-
-import codecs
-
-import sys
-import os
-
-ft_numerical = [
-chr(0xB9), # Arabic Thoushads Seperator
-chr(0xBC) # ARABIC DECIMAL SEPARATOR
-]
-
-
-ft_vowels = [
-chr(0xB0), # ARABIC FATHA
-chr(0xB1), # ARABIC KASRA
-chr(0xB2), # ARABIC DAMMA
-chr(0xB3), # ARABIC FATHATAN
-chr(0xB4), # ARABIC SHADDA
-chr(0xBA), # ARABIC LETTER SUPERSCRIPT ALEF
-chr(0xBB), # ARABIC HAMZA ABOVE
-chr(0xC4) # ARABIC SUKUN
-]
-
-ft_non_joiners = [
-chr(0x8F) # ARABIC LETTER HAMZA
-]
-
-ft_bidi_joiners_initial = [
-chr(0xE4), # ARABIC LETTER AIN, initial form
-chr(0xE8), # ARABIC LETTER GHAIN, initial form
-chr(0xFB) # ARABIC LETTER HEH, initial form
-]
-
-ft_bidi_joiners_medial = [
-chr(0xE3), # ARABIC LETTER AIN, medial form
-chr(0xE7), # ARABIC LETTER GHAIN, medial form
-chr(0xFA) # ARABIC LETTER HEH, medial form
-]
-
-ft_bidi_joiners_final = [
-chr(0xE2), # ARABIC LETTER AIN, final form
-chr(0xE6), # ARABIC LETTER GHAIN, final form
-chr(0xFC) # ARABIC LETTER FARSI YEH, final form
-]
-
-ft_bidi_joiners_isolated = [
-chr(0xE1), # ARABIC LETTER AIN, isolated form
-chr(0xE5), # ARABIC LETTER GHAIN, isolated form
-chr(0xFD) # ARABIC LETTER FARSI YEH, isolated form
-]
-
-ft_bidi_joiners_initial_medial = [
-chr(0x8B), # ARABIC TATWEEL
-chr(0x8E), # ARABIC LETTER YEH WITH HAMZA ABOVE, initial-medial form
-chr(0x93), # ARABIC LETTER BEH, initial-medial form
-chr(0x95), # ARABIC LETTER PEH, initial-medial form
-chr(0x97), # ARABIC LETTER TEH, initial-medial form
-chr(0x99), # ARABIC LETTER THEH, initial-medial form
-chr(0x9B), # ARABIC LETTER JEEM, initial-medial form
-chr(0x9D), # ARABIC LETTER TCHEH, initial-medial form
-chr(0x9F), # ARABIC LETTER HAH, initial-medial form
-chr(0xA1), # ARABIC LETTER KHAH, initial-medial form
-chr(0xA8), # ARABIC LETTER SEEN, initial-medial form
-chr(0xAA), # ARABIC LETTER SHEEN, initial-medial form
-chr(0xAC), # ARABIC LETTER SAD, initial-medial form
-chr(0xAE), # ARABIC LETTER DAD, initial-medial form
-chr(0xAF), # ARABIC LETTER TAH, initial-medial form
-chr(0xE0), # ARABIC LETTER ZAH, initial-medial form
-chr(0xEA), # ARABIC LETTER FEH, initial-medial form
-chr(0xEC), # ARABIC LETTER QAF, initial-medial form
-chr(0xEE), # ARABIC LETTER KEHEH, initial-medial form
-chr(0xF0), # ARABIC LETTER GAF, initial-medial form
-chr(0xF3), # ARABIC LETTER LAM, initial-medial form
-chr(0xF5), # ARABIC LETTER MEEM, initial-medial form
-chr(0xF7), # ARABIC LETTER NOON, initial-medial form
-chr(0xFE) # ARABIC LETTER FARSI YEH, initial-medial form
-]
-
-ft_bidi_joiners_final_isolated = [
-chr(0x92), # ARABIC LETTER BEH, final-isolated form
-chr(0x94), # ARABIC LETTER PEH, final-isolated form
-chr(0x96), # ARABIC LETTER TEH, final-isolated form
-chr(0x98), # ARABIC LETTER THEH, final-isolated form
-chr(0x9A), # ARABIC LETTER JEEM, final-isolated form
-chr(0x9C), # ARABIC LETTER TCHEH, final-isolated form
-chr(0x9E), # ARABIC LETTER HAH, final-isolated form
-chr(0xA0), # ARABIC LETTER KHAH, final-isolated form
-chr(0xA7), # ARABIC LETTER SEEN, final-isolated form
-chr(0xA9), # ARABIC LETTER SHEEN, final-isolated form
-chr(0xAB), # ARABIC LETTER SAD, final-isolated form
-chr(0xAD), # ARABIC LETTER DAD, final-isolated form
-chr(0xC1), # ARABIC LETTER TAH, final-isolated form
-chr(0xC2), # ARABIC LETTER ZAH, final-isolated form
-chr(0xE9), # ARABIC LETTER FEH, final-isolated form
-chr(0xEB), # ARABIC LETTER QAF, final-isolated form
-chr(0xED), # ARABIC LETTER KEHEH, final-isolated form
-chr(0xEF), # ARABIC LETTER GAF, final-isolated form
-chr(0xF1), # ARABIC LETTER LAM, final-isolated form
-chr(0xF4), # ARABIC LETTER MEEM, final-isolated form
-chr(0xF6), # ARABIC LETTER NOON, final-isolated form
-chr(0xF9) # ARABIC LETTER HEH, final-isolated form
-]
-
-ft_right_joiners_final = [
-chr(0x91) # ARABIC LETTER ALEF, final form
-]
-
-ft_right_joiners_isolated = [
-chr(0x8D), # ARABIC LETTER ALEF WITH MADDA ABOVE, isolated form
-chr(0x90) # ARABIC LETTER ALEF, isolated form
-]
-
-ft_right_joiners_final_isolated = [
-chr(0xA2), # ARABIC LETTER DAL
-chr(0xA3), # ARABIC LETTER THAL
-chr(0xA4), # ARABIC LETTER REH
-chr(0xA5), # ARABIC LETTER ZAIN
-chr(0xA6), # ARABIC LETTER JEH
-chr(0xBF), # ARABIC LETTER TEH MARBUTAH
-chr(0xF2), # ARABIC LIGATURE LAM WITH ALEF
-chr(0xF8) # ARABIC LETTER WAW
-]
-
-
-table_FT_UN = {
-chr(0x80) : [u'\u06F0'], # EXTENDED ARABIC-INDIC DIGIT ZERO
-chr(0x81) : [u'\u06F1'], # EXTENDED ARABIC-INDIC DIGIT ONE
-chr(0x82) : [u'\u06F2'], # EXTENDED ARABIC-INDIC DIGIT TWO
-chr(0x83) : [u'\u06F3'], # EXTENDED ARABIC-INDIC DIGIT THREE
-chr(0x84) : [u'\u06F4'], # EXTENDED ARABIC-INDIC DIGIT FOUR
-chr(0x85) : [u'\u06F5'], # EXTENDED ARABIC-INDIC DIGIT FIVE
-chr(0x86) : [u'\u06F6'], # EXTENDED ARABIC-INDIC DIGIT SIX
-chr(0x87) : [u'\u06F7'], # EXTENDED ARABIC-INDIC DIGIT SEVEN
-chr(0x88) : [u'\u06F8'], # EXTENDED ARABIC-INDIC DIGIT EIGHT
-chr(0x89) : [u'\u06F9'], # EXTENDED ARABIC-INDIC DIGIT NINE
-chr(0x8A) : [u'\u060C'], # ARABIC COMMA
-chr(0x8B) : [u'\u0640'], # ARABIC TATWEEL
-chr(0x8C) : [u'\u061F'], # ARABIC QUESTION MARK
-chr(0x8D) : [u'\u0622'], # ARABIC LETTER ALEF WITH MADDA ABOVE, isolated form
-chr(0x8E) : [u'\u0626'], # ARABIC LETTER YEH WITH HAMZA ABOVE, initial-medial form
-chr(0x8F) : [u'\u0621'], # ARABIC LETTER HAMZA
-chr(0x90) : [u'\u0627'], # ARABIC LETTER ALEF, isolated form
-chr(0x91) : [u'\u0627'], # ARABIC LETTER ALEF, final form
-chr(0x92) : [u'\u0628'], # ARABIC LETTER BEH, final-isolated form
-chr(0x93) : [u'\u0628'], # ARABIC LETTER BEH, initial-medial form
-chr(0x94) : [u'\u067E'], # ARABIC LETTER PEH, final-isolated form
-chr(0x95) : [u'\u067E'], # ARABIC LETTER PEH, initial-medial form
-chr(0x96) : [u'\u062A'], # ARABIC LETTER TEH, final-isolated form
-chr(0x97) : [u'\u062A'], # ARABIC LETTER TEH, initial-medial form
-chr(0x98) : [u'\u062B'], # ARABIC LETTER THEH, final-isolated form
-chr(0x99) : [u'\u062B'], # ARABIC LETTER THEH, initial-medial form
-chr(0x9A) : [u'\u062C'], # ARABIC LETTER JEEM, final-isolated form
-chr(0x9B) : [u'\u062C'], # ARABIC LETTER JEEM, initial-medial form
-chr(0x9C) : [u'\u0686'], # ARABIC LETTER TCHEH, final-isolated form
-chr(0x9D) : [u'\u0686'], # ARABIC LETTER TCHEH, initial-medial form
-chr(0x9E) : [u'\u062D'], # ARABIC LETTER HAH, final-isolated form
-chr(0x9F) : [u'\u062D'], # ARABIC LETTER HAH, initial-medial form
-chr(0xA0) : [u'\u062E'], # ARABIC LETTER KHAH, final-isolated form
-chr(0xA1) : [u'\u062E'], # ARABIC LETTER KHAH, initial-medial form
-chr(0xA2) : [u'\u062F'], # ARABIC LETTER DAL
-chr(0xA3) : [u'\u0630'], # ARABIC LETTER THAL
-chr(0xA4) : [u'\u0631'], # ARABIC LETTER REH
-chr(0xA5) : [u'\u0632'], # ARABIC LETTER ZAIN
-chr(0xA6) : [u'\u0698'], # ARABIC LETTER JEH
-chr(0xA7) : [u'\u0633'], # ARABIC LETTER SEEN, final-isolated form
-chr(0xA8) : [u'\u0633'], # ARABIC LETTER SEEN, initial-medial form
-chr(0xA9) : [u'\u0634'], # ARABIC LETTER SHEEN, final-isolated form
-chr(0xAA) : [u'\u0634'], # ARABIC LETTER SHEEN, initial-medial form
-chr(0xAB) : [u'\u0635'], # ARABIC LETTER SAD, final-isolated form
-chr(0xAC) : [u'\u0635'], # ARABIC LETTER SAD, initial-medial form
-chr(0xAD) : [u'\u0636'], # ARABIC LETTER DAD, final-isolated form
-chr(0xAE) : [u'\u0636'], # ARABIC LETTER DAD, initial-medial form
-chr(0xAF) : [u'\u0637'], # ARABIC LETTER TAH, initial-medial form
-chr(0xB0) : [u'\u064E'], # ARABIC FATHA
-chr(0xB1) : [u'\u0650'], # ARABIC KASRA
-chr(0xB2) : [u'\u064F'], # ARABIC DAMMA
-chr(0xB3) : [u'\u064B'], # ARABIC FATHATAN
-chr(0xB4) : [u'\u0651'], # ARABIC SHADDA
-chr(0xB5) : [u'\u0023'], # * #
-chr(0xB6) : [u'\u0024'], # * $
-chr(0xB7) : [u'\u0025'], # * %
-chr(0xB8) : [u'\u0026'], # * &
-chr(0xB9) : [u'\u066C'], # Arabic Thoushads Seperator
-chr(0xBA) : [u'\u0670'], # ARABIC LETTER SUPERSCRIPT ALEF
-chr(0xBB) : [u'\u0654'], # ARABIC HAMZA ABOVE
-chr(0xBC) : [u'\u066B'], # ARABIC DECIMAL SEPARATOR
-chr(0xBD) : [u'\u0029'], # * RIGHT PARENTHESIS
-chr(0xBE) : [u'\u0028'], # * LEFT PARENTHESIS
-chr(0xBF) : [u'\u0629'], # ARABIC LETTER TEH MARBUTAH
-chr(0xC0) : [u'\u00BB'], # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
-chr(0xC1) : [u'\u0637'], # ARABIC LETTER TAH, final-isolated form
-chr(0xC2) : [u'\u0638'], # ARABIC LETTER ZAH, final-isolated form
-chr(0xC3) : [u'\u00AB'], # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
-chr(0xC4) : [u'\u0652'], # ARABIC SUKUN
-chr(0xC5) : [u'\u002D'], # * -
-chr(0xC6) : [u'\u002E'], # * FULL STOP
-chr(0xC7) : [u'\u002F'], # * /
-chr(0xC8) : [u'\u002A'], # * *
-chr(0xC9) : [u'\u007E'], # * ~
-chr(0xCA) : [u'\u003A'], # * COLON
-chr(0xCB) : [u'\u061B'], # ARABIC SEMICOLON
-chr(0xCC) : [u'\u003E'], # * GREATER-THAN SIGN
-chr(0xCD) : [u'\u002B'], # * +
-chr(0xCE) : [u'\u003D'], # * =
-chr(0xCF) : [u'\u003C'], # * LESS-THAN SIGN
-# chr(0xD0) : [u'\u0040'], # * @
-chr(0xD0) : [u''], # * @
-chr(0xD1) : [u'\u005D'], # * [
-chr(0xD2) : [u'\u005C'], # * \
-chr(0xD3) : [u'\u005B'], # * ]
-chr(0xD4) : [u'\u005E'], # * ^
-chr(0xD5) : [u'\u005F'], # * _
-chr(0xD6) : [u'\u0060'], # * `
-chr(0xD7) : [u'\u007D'], # * {
-chr(0xD8) : [u'\u007C'], # * |
-chr(0xDA) : [u'\u0020'], # * SPACE
-chr(0xDD) : [u'\u0021'], # * EXCLAMATION MARK
-chr(0xDE) : [u'\u007B'], # * }
-chr(0xE0) : [u'\u0638'], # ARABIC LETTER ZAH, initial-medial form
-chr(0xE1) : [u'\u0639'], # ARABIC LETTER AIN, isolated form
-chr(0xE2) : [u'\u0639'], # ARABIC LETTER AIN, final form
-chr(0xE3) : [u'\u0639'], # ARABIC LETTER AIN, medial form
-chr(0xE4) : [u'\u0639'], # ARABIC LETTER AIN, initial form
-chr(0xE5) : [u'\u063A'], # ARABIC LETTER GHAIN, isolated form
-chr(0xE6) : [u'\u063A'], # ARABIC LETTER GHAIN, final form
-chr(0xE7) : [u'\u063A'], # ARABIC LETTER GHAIN, medial form
-chr(0xE8) : [u'\u063A'], # ARABIC LETTER GHAIN, initial form
-chr(0xE9) : [u'\u0641'], # ARABIC LETTER FEH, final-isolated form
-chr(0xEA) : [u'\u0641'], # ARABIC LETTER FEH, initial-medial form
-chr(0xEB) : [u'\u0642'], # ARABIC LETTER QAF, final-isolated form
-chr(0xEC) : [u'\u0642'], # ARABIC LETTER QAF, initial-medial form
-chr(0xED) : [u'\u06A9'], # ARABIC LETTER KEHEH, final-isolated form
-chr(0xEE) : [u'\u06A9'], # ARABIC LETTER KEHEH, initial-medial form
-chr(0xEF) : [u'\u06AF'], # ARABIC LETTER GAF, final-isolated form
-chr(0xF0) : [u'\u06AF'], # ARABIC LETTER GAF, initial-medial form
-chr(0xF1) : [u'\u0644'], # ARABIC LETTER LAM, final-isolated form
-chr(0xF2) : [u'\u0644\u0627'], # ARABIC LIGATURE LAM WITH ALEF
-chr(0xF3) : [u'\u0644'], # ARABIC LETTER LAM, initial-medial form
-chr(0xF4) : [u'\u0645'], # ARABIC LETTER MEEM, final-isolated form
-chr(0xF5) : [u'\u0645'], # ARABIC LETTER MEEM, initial-medial form
-chr(0xF6) : [u'\u0646'], # ARABIC LETTER NOON, final-isolated form
-chr(0xF7) : [u'\u0646'], # ARABIC LETTER NOON, initial-medial form
-chr(0xF8) : [u'\u0648'], # ARABIC LETTER WAW
-chr(0xF9) : [u'\u0647'], # ARABIC LETTER HEH, final-isolated form
-chr(0xFA) : [u'\u0647'], # ARABIC LETTER HEH, medial form
-chr(0xFB) : [u'\u0647'], # ARABIC LETTER HEH, initial form
-chr(0xFC) : [u'\u06CC'], # ARABIC LETTER FARSI YEH, final form
-chr(0xFD) : [u'\u06CC'], # ARABIC LETTER FARSI YEH, isolated form
-chr(0xFE) : [u'\u06CC'] # ARABIC LETTER FARSI YEH, initial-medial form
-}
-
-F_PERCENT_SIGN = chr(0xB7)
-F_AT_SIGN = chr(0xD0)
-F_SLASH = chr(0xD2)
-F_SPACE = chr(0xDA)
-F_PRNT_OPEN = chr(0xDE)
-F_PRNT_CLOSE = chr(0xD7)
-
-# latex and farsitex commands whose first parameter does not need \lr{...}
-commands = [
-"begin", "end",
-"input", "include", "includeonly",
-"hspace", "vspace", "hspace*", "vspace*",
-"label", "ref", "cite", "bibitem",
-"bibliographystyle",
-"parbox",
-"newenvironment", "newtheorem",
-"persianmathdigitsfamily",
-"fontfamily", "fontseries", "fontshape",
-"rmdefault", "sfdefault", "ttdefault",
-"bfdefault", "itdefault", "sldefault", "scdefault",
-"pagenumbering", "pagestyle", "thispagestyle",
-"setcounter", "stepcounter", "setlength", "addtolength"
-]
-
-def ft_is_all_persian_space(next_part):
- l = len(next_part)
- i = 0
- while (i < l):
- if (next_part[i] != F_SPACE):
- return 0
- i += 1
- return 1
-
-def ft_is_numeric(ch):
- if ((ch in ft_numerical) or
- ((ch >= chr(0x80)) and (ch <= chr(0x89))) ):
- return 1
- return 0
-
-def ft_can_join_left(ch):
- if ((ch in ft_bidi_joiners_initial) or
- (ch in ft_bidi_joiners_medial) or
- (ch in ft_bidi_joiners_final) or
- (ch in ft_bidi_joiners_isolated) or
- (ch in ft_bidi_joiners_initial_medial) or
- (ch in ft_bidi_joiners_final_isolated)):
- return 1
- return 0
-
-def ft_can_join_right(ch):
- if (ft_can_join_left(ch) or
- (ch in ft_right_joiners_final) or
- (ch in ft_right_joiners_isolated) or
- (ch in ft_right_joiners_final_isolated)):
- return 1
- return 0
-
-def ft_joining_left(ch):
- if ((ch in ft_bidi_joiners_initial) or
- (ch in ft_bidi_joiners_medial) or
- (ch in ft_bidi_joiners_initial_medial)):
- return 1
- return 0
-
-
-def ft_joining_right(ch):
- if ((ch in ft_right_joiners_final) or
- (ch in ft_bidi_joiners_medial) or
- (ch in ft_bidi_joiners_final)):
- return 1
- return 0
-
-def ft_not_right_joined(ch):
- if ((ch in ft_bidi_joiners_initial) or
- (ch in ft_right_joiners_isolated) or
- (ch in ft_bidi_joiners_isolated)):
- return 1
- return 0
-
-def ft_adjust_shaping(text, i):
- current = text[i]
- u = u''
- try:
- u = table_FT_UN[current][0]
- except KeyError:
- return u''
-
- #if you don't want shaping remove the following comment
- #return u
-
- if ((current in ft_vowels) or (ft_is_numeric(current))):
- return u
-
- #find next non-vowel character on the left
- text_len = len(text)
- next_index = i+1
- while ((next_index < text_len) and (text[next_index] in ft_vowels)):
- next_index += 1
-
- if (next_index == text_len):
- next = ''
- else:
- next = text[next_index]
-
- # if current letter is joining from left but next letter is or can not joining
- if (ft_joining_left(current)):
- if (not ft_can_join_right(next)):
- u += u'\u200D' #ZWJ
- elif (ft_not_right_joined(next)):
- u += u'\u200D\u200C' #ZWJ+ZWNJ
- # if current letter can join but next letter is joining from right
- elif (ft_can_join_left(current)):
- if (ft_joining_right(next)):
- u += u'\u200C\u200D' #ZWNJ+ZWJ
- elif (ft_can_join_right(next)):
- u += u'\u200C' #ZWNJ
- return u
-
-def ft_adjust_number(text):
- result = u''
- i = len(text)-1
- while (i >= 0):
- result += ft_adjust_shaping(text, i)
- i -= 1
- return result
-
-
-def map_ft_unicode(text):
- mapped_text = u''
-
- i = 0
- while (i < len(text)):
- if (ft_is_numeric(text[i])):
- next_index = i
- while ((next_index+1 < len(text)) and
- (ft_is_numeric(text[next_index+1]))):
- next_index += 1
- mapped_text += ft_adjust_number(text[i:next_index+1])
- i = next_index+1
- continue
-
- mapped_text += ft_adjust_shaping(text, i)
- i += 1
- return mapped_text
-
-# Finds next token all of the same language
-def ft_next_part(line, i, line_len):
- global global_state
- global recursive
- global filenames
-
- j = i
- language_flag = (line[j]<chr(0x80))
- while ((j<line_len) and ((line[j]<chr(0x80)) == language_flag) ):
- if ( (global_state == 0) and ( (line[j] == '%') or (line[j] == F_PERCENT_SIGN) ) and (line[j-1] != '\\') and (line[j-1] != F_SLASH) ):
- global_state = 1
- elif ((global_state == 0) and ((line[j:j+16] == '\\begin{verbatim}') or (line[j:j+17] == '\\begin{verbatim*}'))):
- global_state = 2
- elif ((global_state == 2) and ((line[j:j+14] == '\\end{verbatim}') or (line[j:j+15] == '\\end{verbatim*}'))):
- global_state = 0
- elif ((global_state == 0) and (line[j:j+6] == '\\verb*')):
- next_index = line.find(line[j+6], j+7)
- j = next_index
- elif ((global_state == 0) and (line[j:j+5] == '\\verb')):
- next_index = line.find(line[j+5], j+6)
- j = next_index
- elif (recursive == 1):
- if ((global_state == 0) and (line[j:j+9] == '\\include{')):
- next_index = line.find('}', j+9)
- filename = line[j+10:next_index-1] + '.ftx'
- if (os.path.exists(filename) and not filename in filenames):
- filenames.append(filename)
- elif ((global_state == 0) and (line[j:j+7] == '\\input{')):
- next_index = line.find('}', j+7)
- filename = line[j+8:next_index-1] + '.ftx'
- if (os.path.exists(filename) and not filename in filenames):
- filenames.append(filename)
- elif ((global_state == 0) and (line[j:j+9] == F_SLASH + 'include' + F_PRNT_OPEN)):
- next_index = line.find(F_PRNT_CLOSE, j+9)
- if (line[j+9]!=F_AT_SIGN):
- filename = line[j+9:next_index] + '.ftx'
- else:
- filename = line[j+10:next_index-1] + '.ftx'
- if (os.path.exists(filename) and not filename in filenames):
- filenames.append(filename)
- elif ((global_state == 0) and (line[j:j+7] == F_SLASH + 'input' + F_PRNT_OPEN)):
- next_index = line.find(F_PRNT_CLOSE, j+7)
- if (line[j+7]!=F_AT_SIGN):
- filename = line[j+7:next_index] + '.ftx'
- else:
- filename = line[j+8:next_index-1] + '.ftx'
- if (os.path.exists(filename) and not filename in filenames):
- filenames.append(filename)
- j += 1
- return j
-
-###############################################
-# from here all functions are used to translate
-# farsitex commands to xepersian commands
-###############################################
-
-def read_size(input,index,last_index):
- dim_index = -1
- inch_index = input.find(u'in', index)
- if (inch_index != -1):
- dim_index = inch_index
- mm_index = input.find(u'mm', index)
- if (mm_index != -1):
- if (dim_index == -1 or mm_index < index):
- dim_index = mm_index
- cm_index = input.find(u'cm', index)
- if (cm_index != -1):
- if (dim_index == -1 or cm_index < dim_index):
- dim_index = cm_index
- pt_index = input.find(u'pt', index)
- if (pt_index != -1):
- if (dim_index == -1 or pt_index < dim_index):
- dim_index = pt_index
- next_cmd = input.find(u'\\', index)
- if (next_cmd == -1 and dim_index == -1):
- print "Error in parsing \epsfxsize command at " + str(line_number) + "\n"
- return -1
- elif (next_cmd == -1 or (dim_index != -1 and next_cmd > dim_index)):
- epsfxsize = input[index:dim_index+2]
- return dim_index+2
- elif (next_cmd != -1):
- end_cmd = next_cmd+1
- while (end_cmd < last_index and input[end_cmd].isalpha()):
- end_cmd += 1
- return end_cmd
- else:
- print "Error in parsing \epsfxsize command at " + str(line_number) + "\n"
- return -1
-
-
-latex_options=[u'a4paper', u'a5paper', u'b5paper',
- u'letterpaper', u'legalpaper', u'executivepaper',
- u'landscape', u'10pt', u'11pt', u'12pt',
- u'oneside', u'twoside', u'draft',
- u'final', u'titlepage', u'notitlepage',
- u'onecolumn', u'twocolumn',
- u'leqno', u'fleqn']
-
-table_eq_packages = {
-u'poem' : u'persianpoem',
-u'fmakeidx' : u'makeidx',
-u'ffancyhe' : u'fancyhdr',
-u'fmultico' : u'multicol'
-}
-
-farsitex_ignore_options = [u'persian', u'farsi', u'epsf', u'fgraphix', u'lotusfont']
-
-xepersian_packages = u'\n\\usepackage{url}\n%\\usepackage{fancyvrb}\n\\usepackage{setspace}\\doublespacing\n\\usepackage{graphicx} \n\\usepackage{amssymb}\n'
-
-xepersian_preamble = u'\\settextfont[Scale=1.2]{XB Zar}\n\\setlatintextfont[Scale=1.1]{Times New Roman}\n\\setdigitfont{XB Zar}\n\\setpookfont{XB Kayhan Pook}\n\\setsayehfont{XB Kayhan Sayeh}\n\\defpersianfont\\lotoos[Scale=1.2]{XB Roya}\n\\defpersianfont\elmi[Scale=1.2]{XB Roya} \n\\def\\nazok{\\normalfont\\normalsize}\n\\let\\iranic\\it\n\\let\\siah\\bf\n\\let\\khabide\\sl\n\\def\\siahir{\\siah\\iranic} \n\\def\\siahkh{\\siah\\khabide}\n\\let\\tookhali\\pookfamily\n\\let\\sayedar\\sayehfamily\n\\let\\farsi\\Persian\n\\let\\english\\Latin \n\\let\\farmbox\\mbox\n\\newcommand{\\ftxepmatrix}[1]{\\begin{pmatrix}#1\\end{pmatrix}}\n\\newcommand{\\ftxematrix}[1]{\\begin{matrix}#1\\end{matrix}} \n\\def\\FarsiTeX{\\lr{FarsiTeX}}\n\\def\\فارسی‌تک{\\rl{فارسی‌‌تک}}\n\\def\\InE{\\begingroup\\beginL\\latinfont}\n\\def\\EnE{\\endL\\endgroup} \n\\def\\InF{\\begingroup\\beginR\\persianfont}\n\\def\\EnF{\\endR\\endgroup}\n\\newcommand{\\IE}[1]{\\lr{#1}}\n\\newcommand{\\IP}[1]{\\rl{#1}} \n\\newcommand{\\IF}[1]{\\rl{#1}}\n\\def\\persiandash{\\rl{-}} \n\\def\\DeclareRobustBiCommand#1#2#3#4{\\DeclareRobustCommand#1{\\if@rl{}#4\\else{}#3\\fi}\\let#2=#1} \n\\catcode`\\﷼=3\n\\catcode`‌=11\n\\newcommand\\dotsectionseparator{\\SepMark{.}}\n\\newcommand\\dashsectionseparator{\\SepMark{-}}\n'
-
-thesis_preamble = u'\\university{\\lr{UniversityName}}\n\\city{\\lr{CityName}}\n\\latinuniversity{UniversityName}\n\\latincity{CityName} \n\\let\\englishtitle\\latintitle\n\\let\\englishauthor\\latinauthor\n\\let\\englishdegree\\latindegree\n\\let\\englishthesisdate\\latinthesisdate \n\\let\\englishsupervisor\\latinsupervisor\n\\let\\englishdepartment\\latindepartment\n\\let\\makeenglishtitle\\makelatintitle \n\\let\\englishkeywords\\latinkeywords\n\\newenvironment{englishabstract}{\\begin{latinabstract}}{\\end{latinabstract}}\n'
-
-def is_alpha_numeric_space(input):
- input_len = len(input)
- i = 0
- while (i<input_len):
- if (not (input[i].isalpha() or input[i].isdigit() or input[i]==u'.' or input[i]==u' ') ):
- return 0
- i+=1
- return 1
-
-def is_alpha_numeric(input):
- input_len = len(input)
- i = 0
- while (i<input_len):
- if (not (input[i].isalpha() or input[i].isdigit() or input[i]=='.') ):
- return 0
- i+=1
- return 1
-
-def find_eq_cmd(keyword):
- try:
- eq_cmd = table_eq_packages[keyword]
- except KeyError:
- eq_cmd = u''
- return eq_cmd
-
-def convert_persian_to_english(num):
- result = u''
- num_len = len(num)
- index = 0
- while (index < num_len):
- if (ord(num[index]) >= ord(u'۰') and ord(num[index]) <= ord(u'۹')):
- result += unichr(ord(num[index]) - ord(u'۰') + ord(u'0'))
- else:
- result += num[index]
- index += 1
- return result
-
-def generate_farsitex_cmds_file(helper_filename,preamble):
- try:
- of = codecs.open(helper_filename, encoding='utf-8', mode='w')
- except IOError:
- print "Can not open the output file: " + helper_filename
- exit(0)
- of.write(preamble)
- of.close
-
-
-# \verb|| -> \item[\verb||] or \section{\verb||}
-# \kasre{} \alef{} ...
-def translate_cmds(output_line):
- global last_epsfxsize
- global last_epsfxsize_line
- global last_epsfysize
- global last_epsfysize_line
- global state
- global filename
-
- result = u''
- line_len = len(output_line)
- index = 0
- if (state == 1): #\begin{verbatim}
- end_verbatim = output_line.find('\\end{verbatim}')
- if (end_verbatim == -1):
- return output_line
- result += output_line[0:end_verbatim+14]
- index = end_verbatim+14
- state = 0
- elif (state == 2): #\begin{verbatim*}
- end_verbatim = output_line.find('\\end{verbatim*}')
- if (end_verbatim == -1):
- return output_line
- result += output_line[0:end_verbatim+15]
- index = end_verbatim+15
- state = 0
- elif (output_line[0:14] == "\\documentstyle"):
- result += u'\\documentclass'
- #process options
- last_index = output_line.find(u']')
- index = 15
- first_option = 1
- preamble = xepersian_preamble
- packages = xepersian_packages
- xe_document_class = u''
- while (index < last_index):
- next_comma = output_line.find(u',',index,last_index)
- if (next_comma == -1):
- next_comma = last_index
- first_of_option = index
- while (output_line[first_of_option] == u' '):
- first_of_option += 1
- end_of_option = next_comma
- while (output_line[end_of_option-1] == u' '):
- end_of_option -= 1
- option = output_line[first_of_option:end_of_option]
- index = next_comma+1
- eq_cmd = find_eq_cmd(option)
- if (eq_cmd != u''):
- packages += u'\\usepackage{' + eq_cmd + u'}\n'
- continue
- elif (option in farsitex_ignore_options):
- continue
- elif (option == u'sharifth'):
- xe_document_class = u'xepersian-thesis'
- preamble += thesis_preamble
- continue
- elif (not option in latex_options):
- packages += u'\\usepackage{' + option + u'}\n'
- continue
-
- if (first_option):
- result += u'['
- else:
- result += u','
- result += option
- first_option = 0
- #end while
- if (not first_option):
- result += u']'
- # process document style into document class
- index = output_line.find(u'}',last_index)
- document_class = output_line[last_index+2:index]
- if (xe_document_class != u''):
- result += u'{' + xe_document_class + u'}'
- elif (document_class == u'oldarticle'):
- result += u'{article}'
- elif (document_class == u'oldbook'):
- result += u'{book}'
- elif (document_class == u'oldreport'):
- result += u'{report}'
- else:
- result += u'{' + document_class + u'}'
- # I assume that nothing important is after
- # \documentstyle[...]{...}, otherwise it may conflict
- # with our preamble
- if (index != -1):
- result += output_line[index+1:]
- result += packages + u'\\usepackage{xepersian}\n'
- helper_filename = filename + '_farsitex_cmds_xepersian.tex'
- generate_farsitex_cmds_file(helper_filename,preamble)
- result += '\\input{' + helper_filename + '}\n'
- return result
- #end elif "documentstyle"
-
- while (index < line_len):
- next_index = output_line.find(u'\\', index)
- comment_index = output_line.find(u'%', index)
- if (next_index == -1):
- result += output_line[index:]
- break
- elif (state == 1):
- if (output_line[next_index:next_index+14] == u'\\end{verbatim}'):
- result += output_line[index:next_index+14]
- index = next_index+14
- state = 0
- else:
- result += output_line[index:next_index+1]
- index = next_index+1
- elif (state == 2):
- if (output_line[next_index:next_index+15] == u'\\end{verbatim*}'):
- result += output_line[index:next_index+15]
- index = next_index+15
- state = 0
- else:
- result += output_line[index:next_index+1]
- index = next_index+1
- elif (comment_index != -1 and comment_index < next_index):
- result += output_line[index:]
- break
- elif (output_line[next_index:next_index+14] == u"\\input{amssym}"):
- result += u'\\usepackage{amssymb}'
- index = next_index+14
- elif (output_line[next_index:next_index+12] == u"\\input{epsf}"):
- index = next_index+12
- elif (output_line[next_index:next_index+15] == u"\\includeepspdf{"):
- result += u'\\includegraphics{'
- index = next_index+15
- elif (output_line[next_index:next_index+16] == u"\\begin{verbatim}"):
- result += output_line[index:next_index+16]
- index = next_index+16
- state = 1
- elif (output_line[next_index:next_index+17] == u"\\begin{verbatim*}"):
- result += output_line[index:next_index+17]
- index = next_index+17
- state = 2
- elif (output_line[next_index:next_index+26] == u'\\setlength{\\headrulewidth}'):
- end_cmd = output_line.find('}', next_index+26)
- result += u'\\renewcommand{\\headrulewidth}' + output_line[next_index+26:end_cmd+1]
- index = end_cmd+1
- elif (output_line[next_index:next_index+26] == u'\\setlength{\\footrulewidth}'):
- end_cmd = output_line.find('}', next_index+26)
- result += u'\\renewcommand{\\footrulewidth}' + output_line[next_index+26:end_cmd+1]
- index = end_cmd+1
- elif (output_line[next_index:next_index+10] == u"\\epsffile{"):
- result += output_line[index:next_index]
- result += u'\\includegraphics'
- size_options = u''
- if (line_number - last_epsfxsize_line <= 3):
- size_options = u'width=' + last_epsfxsize
- if (line_number - last_epsfysize_line <= 3):
- if (size_options != u''):
- size_options += u','
- size_options += u'height=' + last_epsfysize
- if (size_options != u''):
- result += u'[' + size_options + u']'
- end_prn = output_line.find(u'.eps}', next_index+9)
-
- if (end_prn != -1):
- result += output_line[next_index+9:end_prn] + u'}'
- index = end_prn+5
- else:
- end_prn = output_line.find(u'.ps}', next_index+9)
- if (end_prn != -1):
- result += output_line[next_index+9:end_prn] + u'}'
- index = end_prn+4
- else:
- end_prn = output_line.find(u'}', next_index+9)
- result += output_line[next_index+9:end_prn+1]
- index = end_prn+1
- # I assume all the parameter of \epsfxsize comes in one line
- elif (output_line[next_index:next_index+11] == u"\\epsfxsize="):
- end_size = read_size(output_line, next_index+11, line_len)
- if (end_size != -1):
- last_epsfxsize = output_line[next_index+11:end_size]
- index = end_size
- else:
- index = next_index+11
- last_epsfxsize_line = line_number
- # I assume all the parameter of \epsfysize comes in one line
- elif (output_line[next_index:next_index+11] == u"\\epsfysize="):
- end_size = read_size(output_line, next_index+11, line_len)
- if (end_size != -1):
- last_epsfysize = output_line[next_index+11:end_size]
- index = end_size
- else:
- index = next_index+11
- last_epsfysize_line = line_number
- elif (output_line[next_index:next_index+10] == u"\\LR{\\verb*"):
- end_verb = output_line.find(output_line[next_index+10], next_index+11)
- verb_param = output_line[next_index+11:end_verb]
- if (is_alpha_numeric(verb_param)):
- result += output_line[index:next_index]
- result += u'\\lr{\\tt{}' + verb_param
- else:
- result += output_line[index:end_verb+1]
- index = end_verb+1
- elif (output_line[next_index:next_index+9] == u"\\LR{\\verb"):
- end_verb = output_line.find(output_line[next_index+9], next_index+10)
- verb_param = output_line[next_index+10:end_verb]
- if (is_alpha_numeric_space(verb_param)):
- result += output_line[index:next_index]
- result += u'\\lr{\\tt{}' + verb_param
- else:
- result += output_line[index:end_verb+1]
- index = end_verb+1
- elif (output_line[next_index:next_index+6] == u"\\verb*"):
- end_verb = output_line.find(output_line[next_index+6], next_index+7)
- result += output_line[index:end_verb+1]
- index = end_verb+1
- elif (output_line[next_index:next_index+5] == u"\\verb"):
- end_verb = output_line.find(output_line[next_index+5], next_index+6)
- result += output_line[index:end_verb+1]
- index = end_verb+1
- elif (output_line[next_index:next_index+9] == u"\\pmatrix{"):
- result += u'\\ftxepmatrix{'
- index = next_index+9
- elif (output_line[next_index:next_index+8] == u"\\matrix{"):
- result += u'\\ftxematrix{'
- index = next_index+8
- elif (output_line[next_index:next_index+16] == u"\\begin{document}"):
- result += u'\\begin{document}\n%\\VerbatimFootnotes'
- index = next_index+16
- elif (output_line[next_index:next_index+8] == u'\\label {'):
- begin_param = next_index+8
- end_param = output_line.find(u'}', begin_param)
- param = convert_persian_to_english(output_line[begin_param:end_param])
- result += output_line[index:begin_param-2]
- result += u'{' + param + u'}'
- index = end_param+1
- elif (output_line[next_index:next_index+6] == u'\\ref {'):
- begin_param = next_index+6
- end_param = output_line.find(u'}', begin_param)
- param = convert_persian_to_english(output_line[begin_param:end_param])
- result += output_line[index:begin_param-2]
- result += u'{' + param + u'}'
- index = end_param+1
- elif (output_line[next_index:next_index+7] == u'\\label{'):
- begin_param = next_index+7
- end_param = output_line.find(u'}', begin_param)
- param = convert_persian_to_english(output_line[begin_param:end_param])
- result += output_line[index:begin_param]
- result += param + u'}'
- index = end_param+1
- elif (output_line[next_index:next_index+5] == u'\\ref{'):
- begin_param = next_index+5
- end_param = output_line.find(u'}', begin_param)
- param = convert_persian_to_english(output_line[begin_param:end_param])
- result += output_line[index:begin_param]
- result += param + u'}'
- index = end_param+1
- elif (output_line[next_index:next_index+13] == u'\\multicolumn{'):
- begin_param = next_index+13
- end_param = output_line.find(u'}', begin_param)
- param = convert_persian_to_english(output_line[begin_param:end_param])
- result += output_line[index:begin_param]
- result += param + u'}'
- index = end_param+1
- elif (output_line[next_index:next_index+12] == u'\\setcounter{'):
- begin_num = output_line.find(u'{', next_index+12)
- end_num = output_line.find(u'}', begin_num)
- num = convert_persian_to_english(output_line[begin_num+1:end_num])
- result += output_line[index:begin_num+1]
- result += num + u'}'
- index = end_num+1
- elif (output_line[next_index:next_index+14] == u'\\addtocounter{'):
- begin_num = output_line.find(u'{', next_index+14)
- end_num = output_line.find(u'}', begin_num)
- num = convert_persian_to_english(output_line[begin_num+1:end_num])
- result += output_line[index:begin_num+1]
- result += num + u'}'
- index = end_num+1
- else:
- result += output_line[index:next_index+2]
- index = next_index+2
- #end while
- return result
-
-###############################################
-# from here all functions are mainly used to
-# convert farsitex format to unicode
-###############################################
-
-def convert_file(f, of, convert_cmds):
- global state
- global line_number
- global last_epsfysize_line
- global last_epsfxsize_line
- global last_epsfxsize
- global last_epsfysize
- global global_state
-
- state = 0
- line_number = 0
- last_epsfysize_line = 0
- last_epsfxsize_line = 0
- last_epsfxsize = u''
- last_epsfysize = u''
-
- for line in f:
- line_number += 1
- print line_number,
- output_line = u''
- line_len = len(line)
-
- # remove new-line characters from end of line
- if (line_len>1 and line[line_len-1] == '\n'):
- line_len-=1
- if (line_len>1 and line[line_len-1] == '\r'):
- line_len-=1
-
- # check line-direction character
- line_direction_rtl = (line[0] == '<')
- if (line[0] != '>') and (line[0] != '<'):
- print "FORMAT ERROR AT LINE: " + str(line_number)
- exit(0)
-
- i = 1
-
- while (i<line_len):
- next_part_index = ft_next_part(line, i, line_len)
- next_part = line[i:next_part_index]
- next_part_latin = (line[i]<chr(0x80))
-
- # see if we should put \lr{...} for the current english expression
- if (global_state == 0):
- if line_direction_rtl and next_part_latin:
- is_command_rtl = (next_part_latin and (i>1) and (line[i-1]==F_SLASH) )
- is_parameter_rtl = (next_part_latin and (i>1) and (next_part_index<line_len) and (line[i-1]==F_AT_SIGN) and (line[next_part_index]==F_AT_SIGN) )
- is_math_rtl = (next_part_latin and (line[i]=="$") and (line[next_part_index-1]=="$") )
- is_verb_parameter = ( (line[i-6:i] == F_SLASH+"verb") and not isalpha(line[i]))
- is_verb = (next_part_latin and (line[i:i+5]=='\\verb' or line[i:i+6]==' \\verb'))
- is_english = (next_part_latin and (line[i:i+8]=='\\english'))
-
- cmd_index = 0
- while cmd_index < len(commands):
- len_cmd = len(commands[cmd_index])+2
- if ( (i > len_cmd) and (line[i-len_cmd:i] == F_SLASH+commands[cmd_index]+F_PRNT_OPEN) ):
- break
- elif ( (i > len_cmd+1) and (line[i-len_cmd-1:i] == F_SLASH+commands[cmd_index]+F_SPACE+F_PRNT_OPEN) ):
- break
- cmd_index += 1
- is_commands_group = cmd_index < len(commands)
- is_documentstyle_cmd = (line_len > 15) and (line[1:15] == F_SLASH+"documentstyle")
-
- if next_part_latin:
- if (global_state == 0):
- # whether we should put a \lr{ command
- if ( line_direction_rtl and not (is_command_rtl or is_parameter_rtl or is_math_rtl or is_commands_group or is_documentstyle_cmd or is_verb_parameter or is_verb or is_english) ):
- output_line += u'\\lr{'
- if ( line_direction_rtl and is_verb):
- output_line += u'\\LR{'
-
- # here is the main place that converting happens
- output_line += next_part.encode( 'utf-8' )
-
- if (global_state == 0):
- # check whether we already used a \lr command: then end it
- if ( line_direction_rtl and not (is_command_rtl or is_parameter_rtl or is_math_rtl or is_commands_group or is_documentstyle_cmd or is_verb_parameter or is_verb or is_english) ):
- output_line += u'}'
- if ( line_direction_rtl and is_verb):
- output_line += u'}'
- else:
- if (global_state == 0):
- # whether we should put a \rl{} command
- if ( not line_direction_rtl and not ft_is_all_persian_space(next_part)):
- output_line += u'\\rl{'
-
- # here is the main place that converting happens
- output_line += map_ft_unicode(next_part)
-
- if (global_state == 0):
- # check whether we already used a \rl command: then end it
- if (not line_direction_rtl and not ft_is_all_persian_space(next_part)):
- output_line += u'}'
-
- i = next_part_index
- # end of while
-
- #if there was a % commenting then we can return to normal situation
- if (global_state == 1):
- global_state = 0
-
- # convert some of the FarsiTeX commands to XePersian commands
- # only if it is requested
- if (convert_cmds):
- result = translate_cmds(output_line)
- else:
- result = output_line
- output_line = result + u'\n'
- # write the processed line
- of.write(output_line)
- # end of line processing
- # end of file processing
-
-def print_usage():
- print 'usage: python ftxe-0-11 [-r] [-s] [-x] [-u] in_filename1 in_filename2'
- print '-r: (DEFAULT) recursively consider files included in the given files'
- print '-s: do not recursively consider files'
- print '-x: (DEFAULT) insert xepersian related commands'
- print '-u: only convert to unicode'
-
-###################################
-# Begin of main body of the program
-###################################
-
-# global variables
-line_number = 0
-last_epsfxsize = u''
-last_epsfxsize_line = 0
-last_epsfysize = u''
-last_epsfysize_line = 0
-state = 0
-global_state = 0
-recursive = 1
-convert_xepersian = 1
-filename = ''
-
-if len(sys.argv) <= 1:
- print_usage()
- exit(0)
-
-#find options
-options_index = 1
-while (options_index < len(sys.argv) and sys.argv[options_index][0]=='-'):
- if (sys.argv[options_index]=='-s'):
- recursive = 0
- elif (sys.argv[options_index]=='-u'):
- convert_xepersian = 0
- options_index += 1
-
-filenames = []
-while (options_index < len(sys.argv)):
- filenames.append(sys.argv[options_index])
- options_index += 1
-
-if (len(filenames) == 0):
- print 'error: no input filename is specified!'
- print_usage()
- exit(0)
-
-index = 0
-while (index < len(filenames)):
- filename = filenames[index]
- index += 1
-
- outfile = ''
- if (filename[-4:] != '.tex'):
- outfile = filename[0:-3] + 'tex'
- else:
- outfile = filename + '.tex'
-
- print '\n\nConverting "' + filename + '" into "' + outfile + '"'
- try:
- f = open(filename, 'r')
- except IOError:
- print "Can not open the input file: " + filename
- exit(0)
-
- try:
- of = codecs.open(outfile, encoding='utf-8', mode='w')
- except IOError:
- print "Can not open the output file: " + outfile
- exit(0)
-
- convert_file(f, of, convert_xepersian)
-
- of.close()
- f.close()
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa-output.tex b/Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa-output.tex
deleted file mode 100644
index b1b02051cf0..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa-output.tex
+++ /dev/null
@@ -1,19 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{ieeetr-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa.bst b/Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa.bst
deleted file mode 100644
index 6c49f4db12e..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/ieeetr-fa.bst
+++ /dev/null
@@ -1,1178 +0,0 @@
-%%
-%% This is file `ieeetr-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `ieeetr-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "ieeetr-fa", Persian (farsi) version of ieeetr.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.quote after.sentence
-after.quoted.block after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- ieeetr-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.quote :=
- #3 'after.sentence :=
- #4 'after.quoted.block :=
- #5 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.quote =
-{ " " * write$ }
-{ output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
-'write$
-{ output.state after.quoted.block =
- { write$
- newline$
- "\newblock " write$
- }
- { add.period$ " " * write$ }
- if$
-}
- if$
- }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {blank.sep}
-{ after.quote 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ output.state after.quoted.block =
- 'skip$
- 'add.period$
- if$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { output.state after.quote =
-{ after.quoted.block 'output.state := }
-{ after.block 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { %s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
- fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
-{ "," * }
-'skip$
- if$
- t "others" =
-{ " {\em" * bbl.etal * "}" * }
-{ bbl.and * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
-{ fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
-}
- if$
-}
-
-FUNCTION {format.title.p}
-{ title empty$
- { "" }
-{ fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
-}
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume *
- series empty$
-'skip$
-{ bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
-{ bbl.pages pages n.dashify * }
-{ bbl.page pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.volume}
-{ volume empty$
- { "" }
- { bbl.volume volume * }%M.Amintoosi "vol.~"
- if$
-}
-
-FUNCTION {format.number}
-{ number empty$
- { "" }
- { bbl.number number * }%M.Amintoosi "no.~"
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle emphasize *
- editor empty$
- 'skip$
- { " (" * format.editors * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- output.state after.block =
-{ type "t" change.case$ }
-{ type "l" change.case$ }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "l" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.addr.pub}
-{ publisher empty$
- { "" }
- { address empty$
-{ "" }
-{ address ": " * }
- if$
- publisher *
- }
- if$
-}
-
-FUNCTION {format.paddress}
-{ address empty$
- { "" }
- { "(" address * ")" * }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$
- #2 >
- { pop$ " {\em" * bbl.etal * "}" * }
- { #2 <
-'skip$
-{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { " {\em" bbl.etal * "}" * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in "{\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { journal emphasize "journal" output.check
- format.volume output
- month empty$
-{ format.number output }
-'skip$
- if$
- format.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- title empty$
- { "empty title in " cite$ * warning$
- howpublished new.sentence.checka
- }
- { howpublished empty$ not
- address empty$ month empty$ year empty$ and and
- or
-{ format.title.p output.nonnull }
-{ format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- format.addr.pub "publisher" output.check
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- format.pages output
- organization output
- publisher output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
-'skip$
-{ organization output.nonnull
- address output
-}
- if$
- }
- { format.authors output.nonnull }
- if$
- format.btitle "title" output.check
- author empty$
- { organization empty$
-{ address new.block.checka
- address output
-}
-'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- bbl.mthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title empty$
- { howpublished new.sentence.checka }
- { howpublished empty$ not
- month empty$ year empty$ and
- or
-{ format.title.p output.nonnull }
-{ format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.btitle "title" output.check
- new.block
- bbl.phdthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- format.title.p "title" output.check
- blank.sep
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications ACM"}
-
-MACRO {ibmjrd} {"IBM J. Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems~J."}
-
-MACRO {ieeese} {"IEEE Trans. Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Trans. Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Computer-Aided Design"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"J.~ACM"}
-
-MACRO {jcss} {"J.~Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM J. Computing"}
-
-MACRO {tocs} {"ACM Trans. Computer Systems"}
-
-MACRO {tods} {"ACM Trans. Database Systems"}
-
-MACRO {tog} {"ACM Trans. Graphics"}
-
-MACRO {toms} {"ACM Trans. Mathematical Software"}
-
-MACRO {toois} {"ACM Trans. Office Information Systems"}
-
-MACRO {toplas} {"ACM Trans. Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `ieeetr-fa.bst'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/kashida-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/kashida-xepersian.def
deleted file mode 100644
index 76325f1a653..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/kashida-xepersian.def
+++ /dev/null
@@ -1,70 +0,0 @@
-%%
-%% This is file `kashida-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `kashida-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\chardef\zwj="200D % zero-width joiner
-\chardef\ksh="0640 % kashida
-
-\chardef\D=10 % dual-joiner class
-\chardef\L=11 % lam
-\chardef\R=12 % right-joiner
-\chardef\A=13 % alef
-\chardef\V=256 % vowel or other combining mark (to be ignored)
-
-\def\kashida{\zwj\nobreak \setbox0=\hbox{\ksh}%
- \leaders\hrule height\ht0 \hskip0pt plus 0.5em \zwj}
-
-\def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}%
- \expandafter\dosetclass\charlist,\end}
-\def\dosetclass#1,#2\end{%
- \def\test{#1}\def\charlist{#2}%
- \ifx\test\empty\let\next\finishsetclass
- \else \XeTeXcharclass "\test = \theclass
- \let\next\dosetclass \fi
- \expandafter\next\charlist,,\end}
-\def\finishsetclass#1,,\end{}
-
-\setclass \A {0622,0623,0625,0627}
-\setclass \R {0624,0629,062F,0630,0631,0632,0648,0698}
-\setclass \D {0626,0628,062A,062B,062C,062D,062E}
-\setclass \D {0633,0634,0635,0636,0637,0638,0639,063A}
-\setclass \D {0640,0641,0642,0643,0645,0646,0647,0649,064A}
-\setclass \D {067E,0686,06A9,06AF,06CC}
-\setclass \L {0644}
-\setclass \V {064B,064C,064D,064E,064F,0650,0651,0652}
-
-\XeTeXinterchartoks \D \D = {\kashida}
-\XeTeXinterchartoks \L \D = {\kashida}
-\XeTeXinterchartoks \D \L = {\kashida}
-\XeTeXinterchartoks \L \L = {\kashida}
-\XeTeXinterchartoks \D \R = {\kashida}
-\XeTeXinterchartoks \D \A = {\kashida}
-\XeTeXinterchartoks \L \R = {\kashida}
-\XeTeXinterchartoks \L \A = {}
-
-\XeTeXinterchartokenstate=1
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `kashida-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/listings-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/listings-xepersian.def
deleted file mode 100644
index 5963ea43195..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/listings-xepersian.def
+++ /dev/null
@@ -1,31 +0,0 @@
-%%
-%% This is file `listings-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `listings-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\lstlistingname{برنامهٔ}
-\def\lstlistlistingname{فهرست برنامه‌ها}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `listings-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/localise-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/localise-xepersian.def
deleted file mode 100644
index a5fdd4d44a0..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/localise-xepersian.def
+++ /dev/null
@@ -1,53 +0,0 @@
-%%
-%% This is file `localise-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `localise-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\catcode`\﷼=3
-\catcode`‌=11
-\newcommand\eqcommand[2][]{\let#1=#2}
-\newcommand\eqenvironment[2][]{\newenvironment{#1}{\begin{#2}}{\end{#2}}}
-\define@key[zf]{options}{مقیاس}{%
- \edef\@tempa{#1}%
- \edef\@tempb{MatchLowercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{5}%
- \else
- \edef\@tempb{MatchUppercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{8}%
- \else
- \edef\zf@scale{#1}%
- \fi
- \fi
- \zf@update@family{+scale:\zf@scale}%
- \edef\zf@scale{s*[\zf@scale]}}
-\input{commands-ltx.def}
-\input{commands-xepersian.def}
-\input{environments-ltx.def}
-\input{environments-xepersian.def}
-\input{misccommandsenvironments-ltx.def}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `localise-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/logo.pdf b/Master/texmf-dist/doc/xelatex/xepersian/logo.pdf
deleted file mode 100644
index 1363dc199a9..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/logo.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/magazine-sample.tex b/Master/texmf-dist/doc/xelatex/xepersian/magazine-sample.tex
index 9badb482be7..28e19a651e2 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/magazine-sample.tex
+++ b/Master/texmf-dist/doc/xelatex/xepersian/magazine-sample.tex
@@ -1,7 +1,8 @@
\documentclass[12pt,twoside]{xepersian-magazine}
\usepackage{graphicx}
-\usepackage{xepersian}
\usepackage{xunicode}
+\usepackage{amsmath}
+\usepackage{xepersian}
\settextfont[Scale=1]{XB Zar}
\setlatintextfont[Scale=1]{Junicode}
\setdigitfont{XB Zar}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/memoir-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/memoir-xepersian.def
deleted file mode 100644
index 4137597ce92..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/memoir-xepersian.def
+++ /dev/null
@@ -1,40 +0,0 @@
-%%
-%% This is file `memoir-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `memoir-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand{\@memfront}{%
- \@smemfront\pagenumbering{harfi}}
-\renewcommand{\setthesection}{\thechapter\@SepMark\harfi{section}}
-\renewcommand*{\thebook}{\@tartibi\c@book}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand{\appendix}{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \anappendixtrue}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `memoir-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/minitoc-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/minitoc-xepersian.def
deleted file mode 100644
index 67ff92b9753..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/minitoc-xepersian.def
+++ /dev/null
@@ -1,38 +0,0 @@
-%%
-%% This is file `minitoc-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `minitoc-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\ptctitle{\if@RTL فهرست مطالب\else Table of Contents\fi}%
-\def\plftitle{\if@RTL لیست تصاویر\else List of Figures\fi}%
-\def\plttitle{\if@RTL لیست جداول\else List of Tables\fi}%
-\def\mtctitle{\if@RTL عناوین\else Contents\fi}%
-\def\mlftitle{\if@RTL اشکال\else Figures\fi}%
-\def\mlttitle{\if@RTL جداول\else Tables\fi}%
-\def\stctitle{\if@RTL عناوین\else Contents\fi}%
-\def\slftitle{\if@RTL اشکال\else Figures\fi}%
-\def\slttitle{\if@RTL جداول\else Tables\fi}%
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `minitoc-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/misccommandsenvironments-ltx.def b/Master/texmf-dist/doc/xelatex/xepersian/misccommandsenvironments-ltx.def
deleted file mode 100644
index 305d8903472..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/misccommandsenvironments-ltx.def
+++ /dev/null
@@ -1,31 +0,0 @@
-%%
-%% This is file `misccommandsenvironments-ltx.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `misccommandsenvironments-ltx.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\eqcommand[\سند]{\document}
-\eqcommand[\endسند]{\enddocument}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `misccommandsenvironments-ltx.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/parsidigits.map b/Master/texmf-dist/doc/xelatex/xepersian/parsidigits.map
deleted file mode 100644
index ff530f197a8..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/parsidigits.map
+++ /dev/null
@@ -1,46 +0,0 @@
-; Vafa Khalighi ...
-LHSName "Digits"
-RHSName "ParsiDigits"
-
-pass(Unicode)
-U+0030 <> U+06F0 ;
-U+0031 <> U+06F1 ;
-U+0032 <> U+06F2 ;
-U+0033 <> U+06F3 ;
-U+0034 <> U+06F4 ;
-U+0035 <> U+06F5 ;
-U+0036 <> U+06F6 ;
-U+0037 <> U+06F7 ;
-U+0038 <> U+06F8 ;
-U+0039 <> U+06F9 ;
-
-U+0644 U+0651 U+064E U+0627 <> U+0644 U+0627 U+0651 U+064E ; lam shadda fatha alif -> lam alif shadda fatha
-U+0644 U+0651 U+0627 <> U+0644 U+0627 U+0651 ; lam shadda alif -> lam alif shadda
-U+0644 U+0652 U+0622 <> U+0644 U+0622 U+0652 ; lam sukun alifmadda -> lam alifmadda sukun
-U+0644 U+0652 U+0623 <> U+0644 U+0623 U+0652 ; lam sukun alifhamzaabove -> lam alifhamzaabove sukun
-U+0644 U+0652 U+0625 <> U+0644 U+0625 U+0652 ; lam sukun alifhamzabelow -> lam alifhamzabelow sukun
-U+0644 U+0651 U+064B U+0627 <> U+0644 U+0627 U+0651 U+064b ; lam shadda fathatan alif -> lam alif shadda fathatan
-U+0644 U+064B U+0627 <> U+0644 U+0627 U+064B ; lam fathatan alif -> lam alif fathatan
-
-U+002C <> U+060C ; comma ­> arabic comma
-U+003F <> U+061F ; question mark -> arabic qm
-U+003B <> U+061B ; semicolon -> arabic semicolon
-
-; ligatures from Knuth's original CMR fonts
-U+002D U+002D <> U+2013 ; -- -> en dash
-U+002D U+002D U+002D <> U+2014 ; --- -> em dash
-
-U+0027 <> U+2019 ; ' -> right single quote
-U+0027 U+0027 <> U+201D ; '' -> right double quote
-U+0022 > U+201D ; " -> right double quote
-
-U+0060 <> U+2018 ; ` -> left single quote
-U+0060 U+0060 <> U+201C ; `` -> left double quote
-
-U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
-U+003F U+0060 <> U+00BF ; ?` -> inverted question
-
-; additions supported in T1 encoding
-U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
-U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
-U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/parsidigits.tec b/Master/texmf-dist/doc/xelatex/xepersian/parsidigits.tec
deleted file mode 100644
index 6844196c273..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/parsidigits.tec
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/plain-fa-output.tex b/Master/texmf-dist/doc/xelatex/xepersian/plain-fa-output.tex
deleted file mode 100644
index 72345bfd1d3..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/plain-fa-output.tex
+++ /dev/null
@@ -1,19 +0,0 @@
-\documentclass[11pt,a4paper]{article}
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{XB Zar}
-
-\title{نمونه خروجی با سبک فارسی \lr{plain-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences1}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/plain-fa.bst b/Master/texmf-dist/doc/xelatex/xepersian/plain-fa.bst
deleted file mode 100644
index 10ab3f0fbfe..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/plain-fa.bst
+++ /dev/null
@@ -1,1304 +0,0 @@
-%%
-%% This is file `plain-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `plain-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "plain-fa", Persian (farsi) version of plain.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.2" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- plain-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
-{ add.period$ write$
- newline$
- "\newblock " write$
-}
-{ output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {
- s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- %fa.isPersianLanguage
- % {s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- % }
- % {s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=
- %if$
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
-'skip$
-{ bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
-{ "there's a number but no volume in " cite$ * warning$ }
-'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
-{ pop$ format.pages }
-{ ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
-}
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =%"{ff }{vv }{ll}{ jj}"
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
-{ organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
-}
-{ address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
-}
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
-'skip$
-{ organization output.nonnull
- address output
-}
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
-{ address new.block.checka
- address output
-}
-'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
-{ publisher new.sentence.checka }
-{ organization publisher new.sentence.checkb
- organization output
-}
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
-'skip$
-{ organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- %{ t write$ t sortify * t write$ }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
-{ key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
-{ key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
-{ key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
-}
-{ "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
-'editor.organization.sort
-{ type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
-}
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `plain-fa.bst'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/rapport3-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/rapport3-xepersian.def
deleted file mode 100644
index c4f35c6a5f6..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/rapport3-xepersian.def
+++ /dev/null
@@ -1,35 +0,0 @@
-%%
-%% This is file `rapport3-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `rapport3-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand*\thepart{\@tartibi\c@part}
-\renewcommand*\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `rapport3-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/refrep-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/refrep-xepersian.def
deleted file mode 100644
index 7c34218c196..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/refrep-xepersian.def
+++ /dev/null
@@ -1,36 +0,0 @@
-%%
-%% This is file `refrep-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `refrep-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `refrep-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/report-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/report-xepersian.def
deleted file mode 100644
index d88e4ece981..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/report-xepersian.def
+++ /dev/null
@@ -1,36 +0,0 @@
-%%
-%% This is file `report-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `report-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `report-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/scrartcl-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/scrartcl-xepersian.def
deleted file mode 100644
index beafd08bf27..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/scrartcl-xepersian.def
+++ /dev/null
@@ -1,64 +0,0 @@
-%%
-%% This is file `scrartcl-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `scrartcl-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `scrartcl-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/scrbook-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/scrbook-xepersian.def
deleted file mode 100644
index eb621e8468b..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/scrbook-xepersian.def
+++ /dev/null
@@ -1,69 +0,0 @@
-%%
-%% This is file `scrbook-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `scrbook-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*\frontmatter{%
- \if@twoside\cleardoubleoddpage\else\clearpage\fi
- \@mainmatterfalse\pagenumbering{harfi}%
-}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `scrbook-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/scrreprt-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/scrreprt-xepersian.def
deleted file mode 100644
index ce36d9f3d8c..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/scrreprt-xepersian.def
+++ /dev/null
@@ -1,65 +0,0 @@
-%%
-%% This is file `scrreprt-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `scrreprt-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `scrreprt-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/thesis-sample.tex b/Master/texmf-dist/doc/xelatex/xepersian/thesis-sample.tex
deleted file mode 100644
index 1c9dd05c490..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/thesis-sample.tex
+++ /dev/null
@@ -1,62 +0,0 @@
-\documentclass[a4paper,11pt]{xepersian-thesis}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{XB Zar}
-
-\begin{document}
-\title{اعداد مرکب}
-\author{وفا خلیقی}
-\degree{کارشناسی ریاضیات محض}
-\supervisor{محمد قدسی}
-\department{ریاضی}
-\university{تهران}
-\city{تهران}
-\thesisdate{\today}
-\maketitle
-\begin{acknowledgementpage}
-در اینجا دوست دارم از همه تشکر کنم
-\end{acknowledgementpage}
-\begin{abstractpage}
-اینجا هم باید مطلبی نوشت...
-\keywords{ریاضی محض، هندسه و توپولوژی}
-\end{abstractpage}
-\tableofcontents
-\listoftables
-\chapter{مجموعه اعداد}
-در اینجا لازم می‌دانم تا نگاهی روی مجموعهٔ اعداد اندازیم تا متوجه خصلت‌های آن شویم
-\begin{equation}
-(a+b)^2=a^2+2ab+b^3
-\end{equation}
-\newpage
-این صفحهٔ جدید است که ما در این صفحه به نوشتن مقالات دیگری مشغول هستیم.
-\section{مقدمه}
-
-\newpage
-این هم یک صفحهٔ جدید دیگر
-\chapter{دوم}
-\chapter{سوم}
-\appendix
-\chapter{اول}
-\chapter{دوم}
-\chapter{سوم}
-\bibliographystyle{unsrt}
-\begin{thebibliography}{99}
-\end{thebibliography}
-\begin{latin}
-\latintitle{Pure Mathematics}
-\latinauthor{Vafa Khalighi}
-\latindegree{Bachelor of Pure Mathematics}
-\latinthesisdate{\latintoday}
-\latinsupervisor{Mohammad Ghodsi}
-\latindepartment{Computer Science}
-\latinuniversity{Iran University of Science \& Technology}
-\latincity{Tehran}
-\begin{latinabstract}
-\noindent This is our abstract written in English and This thesis is written very very very carefully so that we can keep an eye on the beauty of typesetting.
-\latinkeywords{Mathematics, topology, geometry and category theory.}
-\end{latinabstract}
-\makelatintitle
-\end{latin}
-\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/tocloft-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/tocloft-xepersian.def
deleted file mode 100644
index 72821e6cae7..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/tocloft-xepersian.def
+++ /dev/null
@@ -1,39 +0,0 @@
-%%
-%% This is file `tocloft-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `tocloft-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand*{\cftchapname}{\if@RTL فصل\else chapter\fi}
-\renewcommand*{\cftsecname}{\if@RTL قسمت\else section\fi}
-\renewcommand*{\cftsubsecname}{\if@RTL زیرقسمت\else subsection\fi}
-\renewcommand*{\cftsubsubsecname}{\if@RTL زیرزیرقسمت\else subsubsection\fi}
-\renewcommand*{\cftparaname}{\if@RTL پاراگراف\else paragraph\fi}
-\renewcommand*{\cftsubparaname}{\if@RTL زیرپاراگراف\else subparagraph\fi}
-\renewcommand*{\cftfigname}{\if@RTL شکل\else figure\fi}
-\renewcommand*{\cftsubfigname}{\if@RTL زیرشکل\else subfigure\fi}
-\renewcommand*{\cfttabname}{\if@RTL جدول\else table\fi}
-\renewcommand*{\cftsubtabname}{\if@RTL زیرجدول\else subtable\fi}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `tocloft-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/txt2maths.map b/Master/texmf-dist/doc/xelatex/xepersian/txt2maths.map
deleted file mode 100644
index f8b4dae0da6..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/txt2maths.map
+++ /dev/null
@@ -1,48 +0,0 @@
-; Vafa Khalighi ...
-LHSName "Digits"
-RHSName "txt2maths"
-
-Pass(Unicode)
-U+002E <> U+066B ; convert dot to Persian decimal separator
-U+002D <> U+2212 ; convert hyphen to minus sign
-U+0030 <> U+06F0 ;
-U+0031 <> U+06F1 ;
-U+0032 <> U+06F2 ;
-U+0033 <> U+06F3 ;
-U+0034 <> U+06F4 ;
-U+0035 <> U+06F5 ;
-U+0036 <> U+06F6 ;
-U+0037 <> U+06F7 ;
-U+0038 <> U+06F8 ;
-U+0039 <> U+06F9 ;
-
-U+0644 U+0651 U+064E U+0627 <> U+0644 U+0627 U+0651 U+064E ; lam shadda fatha alif -> lam alif shadda fatha
-U+0644 U+0651 U+0627 <> U+0644 U+0627 U+0651 ; lam shadda alif -> lam alif shadda
-U+0644 U+0652 U+0622 <> U+0644 U+0622 U+0652 ; lam sukun alifmadda -> lam alifmadda sukun
-U+0644 U+0652 U+0623 <> U+0644 U+0623 U+0652 ; lam sukun alifhamzaabove -> lam alifhamzaabove sukun
-U+0644 U+0652 U+0625 <> U+0644 U+0625 U+0652 ; lam sukun alifhamzabelow -> lam alifhamzabelow sukun
-U+0644 U+0651 U+064B U+0627 <> U+0644 U+0627 U+0651 U+064b ; lam shadda fathatan alif -> lam alif shadda fathatan
-U+0644 U+064B U+0627 <> U+0644 U+0627 U+064B ; lam fathatan alif -> lam alif fathatan
-
-U+002C <> U+060C ; comma ­> arabic comma
-U+003F <> U+061F ; question mark -> arabic qm
-U+003B <> U+061B ; semicolon -> arabic semicolon
-
-; ligatures from Knuth's original CMR fonts
-U+002D U+002D <> U+2013 ; -- -> en dash
-U+002D U+002D U+002D <> U+2014 ; --- -> em dash
-
-U+0027 <> U+2019 ; ' -> right single quote
-U+0027 U+0027 <> U+201D ; '' -> right double quote
-U+0022 > U+201D ; " -> right double quote
-
-U+0060 <> U+2018 ; ` -> left single quote
-U+0060 U+0060 <> U+201C ; `` -> left double quote
-
-U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
-U+003F U+0060 <> U+00BF ; ?` -> inverted question
-
-; additions supported in T1 encoding
-U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
-U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
-U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/txt2maths.tec b/Master/texmf-dist/doc/xelatex/xepersian/txt2maths.tec
deleted file mode 100644
index c51f869ddf7..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/txt2maths.tec
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/unsrt-fa.bst b/Master/texmf-dist/doc/xelatex/xepersian/unsrt-fa.bst
deleted file mode 100644
index 1097d437d5a..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/unsrt-fa.bst
+++ /dev/null
@@ -1,1146 +0,0 @@
-%%
-%% This is file `unsrt-fa.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `unsrt-fa.bst')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "usrt-fa", Persian (farsi) version of unsrt.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-
-%%%%%%%%%%% History:
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
-language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
-translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator }
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.22" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- unsrt-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " eds." 'bbl.editors :=
- " ed." 'bbl.editor :=
- " ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
-{ add.period$ write$
- newline$
- "\newblock " write$
-}
-{ output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
-}
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
-'skip$
-{ after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff}{vv~}{ll}{, jj}
- nameptr #1 >
-{ namesleft #1 >
- { ", " * t * }
- { numnames #2 >
-{ "," * }
-'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
-}
- if$
-}
-'t
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
-editor num.names$ #1 >
-{bbl.editors editor format.names * }
-{bbl.editor editor format.names * }
-if$
-}
-{
- editor format.names
-editor num.names$ #1 >
-{ ", " bbl.editors * *}
-{ ", " bbl.editor * *}
-if$
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
-bbl.translator translator format.names *
-}
-{
- translator format.names
-", " bbl.translator * *
-}
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
-{ t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
-{ "-" *
- t #2 global.max$ substring$ 't :=
-}
- while$
- }
- if$
-}
-{ t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
-}
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
-{ "" }
-{ "there's a month but no year in " cite$ * warning$
- month
-}
- if$
- }
- { month empty$
-'year
-{ month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
-'skip$
-{ bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
-{ series field.or.null }
-{ output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
-}
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
-}
-{
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
-}
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
-{ #1 'multiresult := }
-{ t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
-{ pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
-{ "there's a number but no volume in " cite$ * warning$ }
-'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
-{ pop$ format.pages }
-{ ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
-{ bbl.chapter }
-{ type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
-'skip$
-{ ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
-}
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
-{ "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
-}
-{ bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
-}
-{ key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
-{ booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
-}
-{ bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
-format.authors output
- new.block
- format.btitle "title" output.check
-new.block
- format.translators output
-format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
-{ "author and editor" editor either.or.check }
-'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
-{ organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
-}
-{ address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
-}
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
-'skip$
-{ organization output.nonnull
- address output
-}
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
-{ address new.block.checka
- address output
-}
-'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
-{ publisher new.sentence.checka }
-{ organization publisher new.sentence.checkb
- organization output
-}
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
-'skip$
-{ organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by unsrt-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `unsrt-fa.bst'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.pdf b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.pdf
new file mode 100644
index 00000000000..c92f2f4d9a3
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.tex b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.tex
new file mode 100644
index 00000000000..879ad1e3e7b
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.tex
@@ -0,0 +1,1296 @@
+\documentclass{report}
+\usepackage{supertabular}
+\usepackage{fontspec}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\usepackage[left=2.5cm,right=4cm,top=2.5cm,bottom=2.5cm,nohead]{geometry}
+\usepackage[colorlinks=true,linkcolor=mybrown,urlcolor=mygreen]{hyperref}
+\usepackage{bidicode}
+\usepackage{bidi}
+\newfontfamily\ParsiFont[Script=Arabic,Scale=1.2]{Scheherazade}
+\def\Pcs#1{\nxPLcs{#1}}
+\def\nxPLcs#1{\RLE{\texttt{\symbol{92}\ParsiFont#1}}}
+\def\Lenv#1{\texttt{#1}}
+\def\Penv#1{\RLE{\ParsiFont#1}}
+\def\xepersianversion{v1.0.4}
+\def\xepersianrevision{revision 147}
+\def\xepersiandate{2010/03/01}
+\def\XePersian{\leavevmode$\smash{\hbox{X\lower.5ex
+ \hbox{\kern-.125em\reflect{E}}Persian}}$}
+\newcounter{local}
+\renewcommand\theenumi{\protect\setcounter{local}%
+ {201+\the\value{enumi}}\protect\ding{\value{local}}}
+\renewcommand\labelenumi{\theenumi}
+\renewcommand\labelitemi{\HandRight}
+\renewcommand\labelitemii{\HandRightUp}
+\renewcommand\labelitemiii{\HandCuffRight}
+\renewcommand\labelitemiv{\HandPencilLeft}
+\definecolor{mybrown}{rgb}{.6,0,0}
+\definecolor{mygreen}{rgb}{0,.43,0}
+\definecolor{Orange}{rgb}{1,.4,.2}
+\title{The \textsf{\XePersian} Package\\ \href{http://xepersian.berlios.de}{\texttt{http://xepersian.berlios.de}}}
+\author{Vafa Khalighi\\ \href{mailto:vafa@users.berlios.de}{\texttt{vafa@users.berlios.de}}}
+\date{Version 1.0.4}
+\begin{document}
+\maketitle
+\tableofcontents
+\lstlistoflistings
+\chapter{Introduction}
+\XePersian\ is a package for typesetting Persian/English documents with \XeLaTeX. The package includes adaptations for use with many other commonly-used packages.
+\section{Important Notes}
+\begin{itemize}
+\item The \textsf{\XePersian} package only works with \XeTeX\ engine.
+\item Before reading this documentation, you should have read the documentation of the version 1.0.4 of \textsf{bidi} package. The \textsf{\XePersian} package automatically loads \textsf{bidi} package with \texttt{RTLdocument} option enabled and hence any commands that \textsf{bidi} package offers, is also available in \textsf{\XePersian} package. Here, in this documentation, we will not repeat any of \textsf{bidi} package's commands.
+\item In previous versions of \XePersian, a thesis class, namely \texttt{xepersian-thesis.cls} provided for typesetting thesis. I no longer provide this class because I am not familiar with specification of a thesis in Iran and even if I was, the specifications are different from University to University. \XePersian\ is a general package like \LaTeX\ and should not provide any class for typesetting thesis. So if you really want to have a class file for typesetting thesis, then you should ask your University/department to write one for you.
+\item To get help, please subscribe to \XeTeX\ mailing list and ask your question there.
+
+\end{itemize}
+\section{\textsf{\XePersian} Info On The Terminal and In The Log File}
+If you use \textsf{\XePersian} package to write any input \TeX\ document, and then run \texttt{xelatex} on your document, in addition to what \textsf{bidi} package writes to the terminal and to the log file, the \XePersian\ package also writes some information about itself to the terminal and to the log file, too. The information is something like:
+\begin{center}
+\colorbox{lightgray}{\begin{minipage}{0.9\textwidth}\ttfamily
+xepersian package (Persian for LaTeX over XeTeX)\\
+Description: The package supports Persian\\
+typesetting, using fonts provided in the distribution.\\
+Copyright © 2008-2010 Vafa Khalighi\\
+\xepersianversion, <\xepersianrevision>, \xepersiandate\\
+License: LaTeX Project Public License, version 1.3c or higher (your choice)\\
+Home: http://xepersian.berlios.de\\
+Location on CTAN: /macros/xetex/latex/xepersian
+\end{minipage}}
+\end{center}
+\section{PDF Creator of \textsf{\XePersian} Documents}
+If you use \textsf{\XePersian} package to produce a PDF file, the \textsf{\XePersian} package writes itself to the Application field of the PDF file and hyperref would have no effect since this is done at the beggining of the document. Thus if you produce a PDF file using the \textsf{\XePersian} package and then you look at the application field in the properties of the PDF file, you will see this:
+
+\begin{center}
+\colorbox{yellow}{\begin{minipage}{0.8\textwidth}%
+XePersian \xepersianversion\space <\xepersianrevision> Copyright © 2008-2010 Vafa Khalighi
+\end{minipage}}
+\end{center}
+
+\chapter{Basics\label{basics}}
+\section{Loading The Package}
+You can load the package in the ordinary way;
+\begin{BDef}
+\Lcs{usepackage}\OptArgs\Largb{xepersian}
+\end{BDef}
+Where \texttt{options} of the package are explained later in \autoref{options}.
+
+When loading the package, it is important to know that:
+\begin{enumerate}
+\item \textsf{xepersian} should be the last package that you load, because otherwise you are certainly going to overwrite \textsf{bidi} and \textsf{\XePersian} package's definitions and consequently, you will not get the expected output.
+\item In fact, in addition to \textsf{bidi}, \textsf{\XePersian} also makes sure that some specific packages are loaded before \textsf{bidi} and \textsf{\XePersian}; these are those packages that \textsf{bidi} and \textsf{\XePersian} modifies them for bidirectional and Persian/English typesetting.
+
+If you load \textsf{\XePersian} before any of these packages, then you will get an error saying that you should load \textsf{\XePersian} or \textsf{bidi} as your last package. When it says that you should load \textsf{bidi} package as your last package, it really means that you should load \textsf{\XePersian} as your last package as \textsf{bidi} package is loaded automatically by \textsf{\XePersian} package.
+
+For instance, consider the following minimal example:
+\begin{lstlisting}[caption={Wrong Order Of Loading \textsf{\XePersian} Package},morekeywords={settextfont}]
+\documentclass{minimal}
+\usepackage{xepersian}
+\usepackage{enumerate}
+\settextfont[Scale=1.5]{Scheherazade}
+\begin{document}
+This is just a test.
+\end{document}
+\end{lstlisting}
+Where \textsf{enumerate} is loaded after \textsf{\XePersian}. If you run \texttt{xelatex} on this document, you will get an error which looks like this:
+\begin{lstlisting}[numbers=none]
+! Package xepersian Error: Oops! you have loaded package enumerate after xepers
+ian package. Please load package enumerate before xepersian package, and then t
+ry to run xelatex on your document again.
+
+See the xepersian package documentation for explanation.
+Type H <return> for immediate help.
+ ...
+
+l.5 \begin{document}
+
+?
+
+\end{lstlisting}
+\item However, there is an exception to the two previous points. You should load \textsf{subfigure} package always after \textsf{\XePersian} package. Indeed, if like the following minimal example, you load \textsf{subfigure} package before \textsf{\XePersian} package:
+\begin{lstlisting}[caption={Wrong Order Of Loading \textsf{subfigure} Package},morekeywords={settextfont}]
+\documentclass{article}
+\usepackage{subfigure}
+\usepackage{xepersian}
+\settextfont[Scale=1.5]{Scheherazade}
+\begin{document}
+This is just a test.
+\end{document}
+\end{lstlisting}
+You will get an error saying that \textsf{subfigure} package should be loaded after \textsf{\XePersian} package. The error message looks like this:
+\begin{lstlisting}[numbers=none]
+! Package xepersian Error: Oops! you have loaded package subfigure before xeper
+sian package. Please load package subfigure after xepersian package, and then t
+ry to run xelatex on your document again.
+
+See the xepersian package documentation for explanation.
+Type H <return> for immediate help.
+ ...
+
+l.5 \begin{document}
+
+?
+
+\end{lstlisting}
+\end{enumerate}
+\section{Commands for Version, Subversion Revision and Date of The Package}
+\begin{BDef}
+\Lcs{xepersianversion}\quad\Lcs{xepersianrevision}\quad\Lcs{xepersiandate}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{xepersianversion} gives the current version of the package.
+\item \Lcs{xepersianrevision} gives the current subversion revision of the package.
+\item \Lcs{xepersiandate} gives the current date of the package.
+\end{itemize}
+\begin{lstlisting}[morekeywords={xepersianversion,xepersianrevision,xepersiandate,settextfont,XePersian},captionpos=t,caption={Version, SVN Revision and Date Commands}]
+\documentclass{article}
+\usepackage{xepersian}
+\settextfont[Scale=1.5]{Scheherazade}
+\begin{document}
+\begin{latin}
+This is typeset by \textsf{\XePersian} package, \xepersianversion, \xepersianrevision, \xepersiandate.
+\end{latin}
+\end{document}
+\end{lstlisting}
+\section{{Options of The Package\label{options}}}
+There are two options:
+\subsection{\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.
+\marginpar{This is the font issue not \XePersian's bug}Please note that X series fonts of IRMUG (Iranian Mac Users Group) have absolutely super poor quality and if you use any of these fonts with \texttt{Kashida} option enabled, the result on the PDF viewed on the monitor is the ugliest of any kind, however the print may look fine. Hence if you are going to enable \texttt{Kashida} option , then you are advised to use either ``Adobe Arabic'' or ``Scheherazade'' fonts.
+
+Note that you can not use \texttt{Kashida} option when you are using Nastaliq-like font (well, you still can use \texttt{Kashida} option when you use any Nastaliq-like font, but I can not guarantee high quality output!).
+
+\subsection{\texttt{localise} Option}
+If you enable \texttt{localise} option, then you can use most frequently-used \LaTeX\ commands and environments in Persian, almost like what \TeX-e-Parsi offers. This is still work in progress and we wish to add lots more Persian equivalents of \LaTeX\ and \TeX\ commands and environments. The Persian equivalents of \LaTeX\ and \TeX\ commands are shown in \autoref{pcmd} and Persian equivalents of \LaTeX\ environments are shown in \autoref{penv}.
+
+Please note that the Persian equivalents of \LaTeX\ and \TeX\ commands and environments are only available after loading \textsf{xepersian} package with \texttt{localise} option enabled. This means that even if you enable \texttt{localise} option, you still have to write all commands or environments that come before \Lcs{usepackage}\OptArg{localise}\Largb{xepersian}, in its original form, i.e. \Lcs{documentclass}.
+
+When you enable the \texttt{localise} option, not only you can use Persian equivalents of \LaTeX\ and \TeX\ commands and environments, but still original \LaTeX\ and \TeX\ commands and environments work too.
+
+The \TeX\ and \LaTeX\ commands and environments and their Persian equivalents listed in \autoref{pcmd} and \autoref{penv} is not the whole story; If any command and environment in \autoref{pcmd} and \autoref{penv} have a starred version, their starred version also work. For example in \autoref{pcmd}, the Persian equivalent of \Lcs{chapter} is \Pcs{فصل}. I know that \Lcs{chapter} has a starred version, so this means \Pcs{فصل*} is also the Persian equivalent of \Lcs{chapter*}. Is that clear?
+
+\bigskip
+\begin{center}
+\tablecaption{The Equivalent \LaTeX\ and \TeX\ Commands\label{pcmd}}
+\tablehead
+ {\bfseries Command in \TeX\ or \LaTeX\ &\bfseries Equivalent Persian Command\\ \hline}
+\tabletail
+ {\hline \multicolumn{2}{r}{\emph{Continued on next page}}\\}
+\tablelasttail{\hline}
+\begin{supertabular}{lr}
+\Lcs{abovedisplayshortskip}&\Pcs{پرش‌کوتاه‌بالای‌نمایش}\\
+\Lcs{abovedisplayskip}&\Pcs{پرش‌بالای‌نمایش}\\
+\Lcs{abstractname}&\Pcs{نام‌چکیده}\\
+\Lcs{addcontentsline}&\Pcs{بیفزاخط‌فهرست}\\
+\Lcs{address}&\Pcs{آدرس}\\
+\Lcs{addtocontents}&\Pcs{بیفزابرفهرست}\\
+\Lcs{addtocounter}&\Pcs{بیفزابرشمارنده}\\
+\Lcs{addtolength}&\Pcs{بیفزابرطول}\\
+\Lcs{addvspace}&\Pcs{بیفزافاصله‌ع}\\
+\Lcs{aleph}&\Pcs{الف}\\
+\Lcs{allowdisplaybreaks}&\Pcs{شکست‌نمایش‌مجاز}\\
+\Lcs{Alph}&\Pcs{حروف‌ب}\\
+\Lcs{alph}&\Pcs{حروف‌ک}\\
+\Lcs{alsoname}&\Pcs{نام‌همچنین}\\
+\Lcs{and}&\Pcs{و}\\
+\Lcs{angle}&\Pcs{زاویه}\\
+\Lcs{appendixname}&\Pcs{نام‌پیوست}\\
+\Lcs{approx}&\Pcs{تقریب}\\
+\Lcs{arabic}&\Pcs{عربی}\\
+\Lcs{arg}&\Pcs{آرگ}\\
+\Lcs{arraycolsep}&\Pcs{جداگرستون‌آرایه}\\
+\Lcs{arrayrulewidth}&\Pcs{عرض‌نوارآرایه}\\
+\Lcs{arraystretch}&\Pcs{کشیدگی‌آرایه}\\
+\Lcs{AtBeginDocument}&\Pcs{درشروع‌نوشتار}\\
+\Lcs{AtEndDocument}&\Pcs{درپایان‌نوشتار}\\
+\Lcs{AtEndOfClass}&\Pcs{درپایان‌کلاس}\\
+\Lcs{AtEndOfPackage}&\Pcs{درپایان‌بسته}\\
+\Lcs{author}&\Pcs{نویسنده}\\
+\Lcs{backmatter}&\Pcs{مطلب‌پشت}\\
+\Lcs{backslash}&\Pcs{شکاف‌پشت}\\
+\Lcs{bar}&\Pcs{میله}\\
+\Lcs{baselineskip}&\Pcs{پرش‌خط‌کرسی}\\
+\Lcs{baselinestretch}&\Pcs{کشیدگی‌خط‌کرسی}\\
+\Lcs{begin}&\Pcs{شروع}\\
+\Lcs{belowdisplayshortskip}&\Pcs{پرش‌کوتاه‌زیرنمایش}\\
+\Lcs{belowdisplayskip}&\Pcs{پرش‌زیرنمایش}\\
+\Lcs{bfdefault}&\Pcs{پیش‌فرض‌سیاه}\\
+\Lcs{bfseries}&\Pcs{سری‌سیاه}\\
+\Lcs{bibitem}&\Pcs{بندکتاب‌نامه}\\
+\Lcs{bibliography}&\Pcs{کتاب‌نامه}\\
+\Lcs{bibliographystyle}&\Pcs{سبک‌کتاب‌نامه}\\
+\Lcs{bibname}&\Pcs{نام‌کتاب‌نامه}\\
+\Lcs{bigskip}&\Pcs{پرش‌بزرگ}\\
+\Lcs{bigskipamount}&\Pcs{مقدارپرش‌بزرگ}\\
+\Lcs{botfigrule}&\Pcs{نوارپای‌عکس}\\
+\Lcs{bottomfraction}&\Pcs{کسرپایین}\\
+\Lcs{bullet}&\Pcs{گلوله}\\
+\Lcs{caption}&\Pcs{شرح}\\
+\Lcs{cc}&\Pcs{رونوشت}\\
+\Lcs{ccname}&\Pcs{نام‌رونوشت}\\
+\Lcs{cdot}&\Pcs{نقطه‌وسط}\\
+\Lcs{cdots}&\Pcs{نقاط‌وسط}\\
+\Lcs{centering}&\Pcs{وسط‌چین}\\
+\Lcs{centerline}&\Pcs{خط‌وسط}\\
+\Lcs{chapter}&\Pcs{فصل}\\
+\Lcs{chaptername}&\Pcs{نام‌فصل}\\
+\Lcs{cite}&\Pcs{سند}\\
+\Lcs{ClassError}&\Pcs{خطای‌کلاس}\\
+\Lcs{ClassInfo}&\Pcs{اطلاعات‌کلاس}\\
+\Lcs{ClassWarning}&\Pcs{هشدارکلاس}\\
+\Lcs{ClassWarningNoLine}&\Pcs{هشدارکلاس‌بدون‌خط}\\
+\Lcs{cleardoublepage}&\Pcs{دوصفحه‌پاک}\\
+\Lcs{clearpage}&\Pcs{صفحه‌پاک}\\
+\Lcs{cline}&\Pcs{خط‌س}\\
+\Lcs{closing}&\Pcs{بستن}\\
+\Lcs{clubsuit}&\Pcs{خاج}\\
+\Lcs{color}&\Pcs{رنگ}\\
+\Lcs{colorbox}&\Pcs{کادررنگی}\\
+\Lcs{columnsep}&\Pcs{جداگرستون}\\
+\Lcs{columnseprule}&\Pcs{نوارجداگرستون}\\
+\Lcs{contentsline}&\Pcs{خط‌فهرست}\\
+\Lcs{contentsname}&\Pcs{نام‌فهرست}\\
+\Lcs{copyright}&\Pcs{حق‌تالیف}\\
+\Lcs{CurrentOption}&\Pcs{گزینه‌جاری}\\
+\Lcs{dashbox}&\Pcs{کادربینابین}\\
+\Lcs{dashv}&\Pcs{بینابین‌ع}\\
+\Lcs{date}&\Pcs{تاریخ}\\
+\Lcs{dblfigrule}&\Pcs{نوارشکل‌دولا}\\
+\Lcs{dblfloatpagefraction}&\Pcs{کسرصفحه‌شناوردولا}\\
+\Lcs{dblfloatsep}&\Pcs{جداگرشناوردولا}\\
+\Lcs{dbltextfloatsep}&\Pcs{جداگرشناورمتن‌دولا}\\
+\Lcs{dbltopfraction}&\Pcs{کسربالادولا}\\
+\Lcs{DeclareGraphicsExtensions}&\Pcs{اعلام‌پسوندگرافیک}\\
+\Lcs{DeclareGraphicsRule}&\Pcs{اعلام‌دستورگرافیک}\\
+\Lcs{DeclareOption}&\Pcs{اعلام‌گزینه}\\
+\Lcs{DeclareRobustCommand}&\Pcs{اعلام‌فرمان‌قوی}\\
+\Lcs{definecolor}&\Pcs{معرفی‌رنگ}\\
+\Lcs{deg}&\Pcs{درجه}\\
+\Lcs{depth}&\Pcs{عمق}\\
+\Lcs{diamondsuit}&\Pcs{خشت}\\
+\Lcs{dim}&\Pcs{بعد}\\
+\Lcs{discretionary}&\Pcs{احتیاطی}\\
+\Lcs{displaybreak}&\Pcs{شکست‌نمایش}\\
+\Lcs{displaystyle}&\Pcs{سبک‌نمایش}\\
+\Lcs{documentclass}&\Pcs{کلاس‌نوشتار}\\
+\Lcs{dot}&\Pcs{نقطه}\\
+\Lcs{doteq}&\Pcs{نقطه‌مساوی}\\
+\Lcs{dotfill}&\Pcs{پرنقطه}\\
+\Lcs{dots}&\Pcs{نقاط}\\
+\Lcs{doublebox}&\Pcs{کادردولا}\\
+\Lcs{doublerulesep}&\Pcs{جداگرنواردولا}\\
+\Lcs{downarrow}&\Pcs{فلش‌پایین}\\
+\Lcs{em}&\Pcs{تا}\\
+\Lcs{emph}&\Pcs{تاکید}\\
+\Lcs{emptyset}&\Pcs{مجموعه‌تهی}\\
+\Lcs{end}&\Pcs{پایان}\\
+\Lcs{endfirsthead}&\Pcs{پایان‌اولین‌سر}\\
+\Lcs{endfoot}&\Pcs{پایان‌پا}\\
+\Lcs{endhead}&\Pcs{پایان‌سر}\\
+\Lcs{endlastfoot}&\Pcs{پایان‌آخرین‌پا}\\
+\Lcs{enlargethispage}&\Pcs{گسترش‌این‌صفحه}\\
+\Lcs{eqref}&\Pcs{ارجاع‌فر}\\
+\Lcs{euro}&\Pcs{یورو}\\
+\Lcs{evensidemargin}&\Pcs{حاشیه‌طرف‌راست}\\
+\Lcs{ExecuteOptions}&\Pcs{اجرای‌گزینه‌ها}\\
+\Lcs{extracolsep}&\Pcs{جداگرستون‌اضافی}\\
+\Lcs{fancypage}&\Pcs{صفحه‌تجملی}\\
+\Lcs{fbox}&\Pcs{کادرف}\\
+\Lcs{fboxrule}&\Pcs{نوارکادرف}\\
+\Lcs{fboxsep}&\Pcs{جداگرکادرف}\\
+\Lcs{fcolorbox}&\Pcs{کادرف‌رنگی}\\
+\Lcs{figurename}&\Pcs{نام‌شکل}\\
+\Lcs{fill}&\Pcs{پرر}\\
+\Lcs{flat}&\Pcs{پهن}\\
+\Lcs{floatpagefraction}&\Pcs{کسرصفحه‌شناور}\\
+\Lcs{floatsep}&\Pcs{جداگرشناور}\\
+\Lcs{flushbottom}&\Pcs{تنظیم‌پایین}\\
+\Lcs{fnsymbol}&\Pcs{نمادپن}\\
+\Lcs{fontfamily}&\Pcs{خانواده‌قلم}\\
+\Lcs{fontseries}&\Pcs{سری‌قلم}\\
+\Lcs{fontshape}&\Pcs{شکل‌قلم}\\
+\Lcs{fontsize}&\Pcs{اندازه‌قلم}\\
+\Lcs{LTRfootnote}&\Pcs{پانوشت‌چبر}\\
+\Lcs{footnote}&\Pcs{پانوشت}\\
+\Lcs{footnotemark}&\Pcs{نشان‌پانوشت}\\
+\Lcs{footnoterule}&\Pcs{نوار‌پانوشت}\\
+\Lcs{footnotesep}&\Pcs{جداگرپانوشت}\\
+\Lcs{footnotesize}&\Pcs{اندازه‌پانوشت}\\
+\Lcs{footnotetext}&\Pcs{متن‌پانوشت}\\
+\Lcs{footskip}&\Pcs{پرش‌پا}\\
+\Lcs{frame}&\Pcs{فریم}\\
+\Lcs{framebox}&\Pcs{کادرفریم}\\
+\Lcs{frenchspacing}&\Pcs{فاصله‌گذاری‌فرانسوی}\\
+\Lcs{frontmatter}&\Pcs{مطلب‌پیش}\\
+\Lcs{glossary}&\Pcs{فرهنگ}\\
+\Lcs{glossaryentry}&\Pcs{فقره‌فرهنگ}\\
+\Lcs{graphpaper}&\Pcs{کاغذگراف}\\
+\Lcs{guillemotleft}&\Pcs{گیومه‌چپ}\\
+\Lcs{guillemotright}&\Pcs{گیومه‌راست}\\
+\Lcs{guilsinglleft}&\Pcs{گیومه‌تکی‌چپ}\\
+\Lcs{guilsinglright}&\Pcs{گیومه‌تکی‌راست}\\
+\Lcs{headheight}&\Pcs{ارتفاع‌سر}\\
+\Lcs{headsep}&\Pcs{جداگرسر}\\
+\Lcs{headtoname}&\Pcs{سربه‌نام}\\
+\Lcs{heartsuit}&\Pcs{دل}\\
+\Lcs{height}&\Pcs{ارتفاع}\\
+\Lcs{hfill}&\Pcs{پرا}\\
+\Lcs{hline}&\Pcs{خط‌ا}\\
+\Lcs{hoffset}&\Pcs{مبداا}\\
+\Lcs{hrulefill}&\Pcs{نواراپرر}\\
+\Lcs{hspace}&\Pcs{فضاا}\\
+\Lcs{huge}&\Pcs{بزرگ}\\
+\Lcs{Huge}&\Pcs{بزرگ‌تر}\\
+\Lcs{hyperlink}&\Pcs{ابرپیوند}\\
+\Lcs{hypersetup}&\Pcs{بارگذاری‌ابر}\\
+\Lcs{hypertarget}&\Pcs{هدف‌ابر}\\
+\Lcs{hyphenation}&\Pcs{خط‌پیوند}\\
+\Lcs{iff}&\Pcs{گرر}\\
+\Lcs{IfFileExists}&\Pcs{گرپرونده‌موجود}\\
+\Lcs{ifthenelse}&\Pcs{گرآنگاه‌دیگر}\\
+\Lcs{include}&\Pcs{شامل}\\
+\Lcs{includegraphics}&\Pcs{شامل‌گرافیک}\\
+\Lcs{includeonly}&\Pcs{تنها‌شامل}\\
+\Lcs{indent}&\Pcs{تورفته}\\
+\Lcs{index}&\Pcs{نمایه}\\
+\Lcs{indexentry}&\Pcs{فقره‌نمایه}\\
+\Lcs{indexname}&\Pcs{نام‌نمایه}\\
+\Lcs{indexspace}&\Pcs{فضای‌نمایه}\\
+\Lcs{input}&\Pcs{ورود}\\
+\Lcs{InputIfFileExists}&\Pcs{ورودگرپرونده‌موجود}\\
+\Lcs{intertext}&\Pcs{بین‌متن}\\
+\Lcs{intertextsep}&\Pcs{جداگربین‌متن}\\
+\Lcs{invisible}&\Pcs{مخفی}\\
+\Lcs{itdefault}&\Pcs{پیش‌فرض‌ای}\\
+\Lcs{item}&\Pcs{بند}\\
+\Lcs{itemindent}&\Pcs{تورفتگی‌بند}\\
+\Lcs{itemsep}&\Pcs{جداگربند}\\
+\Lcs{itshape}&\Pcs{شکل‌ای}\\
+\Lcs{kill}&\Pcs{کشتن}\\
+\Lcs{label}&\Pcs{برچسب}\\
+\Lcs{labelenumi}&\Pcs{برچسب‌شمارش‌ی}\\
+\Lcs{labelenumii}&\Pcs{برچسب‌شمارش‌د}\\
+\Lcs{labelenumiii}&\Pcs{برچسب‌شمارش‌س}\\
+\Lcs{labelenumiv}&\Pcs{برچسب‌شمارش‌چ}\\
+\Lcs{labelitemi}&\Pcs{برچسب‌بندی}\\
+\Lcs{labelitemii}&\Pcs{برچسب‌بندد}\\
+\Lcs{labelitemiii}&\Pcs{برچسب‌بندس}\\
+\Lcs{labelitemiv}&\Pcs{برچسب‌بندچ}\\
+\Lcs{labelsep}&\Pcs{جداگربرچسب}\\
+\Lcs{labelwidth}&\Pcs{عرض‌برچسب}\\
+\Lcs{language}&\Pcs{زبان}\\
+\Lcs{large}&\Pcs{درشت}\\
+\Lcs{Large}&\Pcs{درشت‌تر}\\
+\Lcs{LARGE}&\Pcs{درشت‌درشت}\\
+\Lcs{LaTeX}&\Pcs{لاتک}\\
+\Lcs{LaTeXe}&\Pcs{لاتک‌ای}\\
+\Lcs{ldots}&\Pcs{نقاط‌خ}\\
+\Lcs{left}&\Pcs{چپ}\\
+\Lcs{leftmargin}&\Pcs{حاشیه‌چپ}\\
+\Lcs{line}&\Pcs{خط}\\
+\Lcs{linebreak}&\Pcs{شکست‌خط}\\
+\Lcs{linethickness}&\Pcs{ضخامت‌خط}\\
+\Lcs{linewidth}&\Pcs{عرض‌خط}\\
+\Lcs{listfigurename}&\Pcs{نام‌لیست‌شکل}\\
+\Lcs{listfiles}&\Pcs{لیست‌پرونده‌ها}\\
+\Lcs{listoffigures}&\Pcs{لیست‌شکل‌ها}\\
+\Lcs{listoftables}&\Pcs{لیست‌لوح‌ها}\\
+\Lcs{listparindent}&\Pcs{تورفتگی‌پارلیست}\\
+\Lcs{listtablename}&\Pcs{نام‌لیست‌جدول}\\
+\Lcs{LoadClass}&\Pcs{بارگذاری‌کلاس}\\
+\Lcs{LoadClassWithOptions}&\Pcs{بارگذاری‌کلاس‌باگزینه‌ها}\\
+\Lcs{location}&\Pcs{مکان}\\
+\Lcs{mainmatter}&\Pcs{مطلب‌اصلی}\\
+\Lcs{makebox}&\Pcs{ساخت‌کادر}\\
+\Lcs{makeglossary}&\Pcs{ساخت‌فرهنگ}\\
+\Lcs{makeindex}&\Pcs{ساخت‌نمایه}\\
+\Lcs{makelabel}&\Pcs{ساخت‌برچسب}\\
+\Lcs{makelabels}&\Pcs{ساخت‌برچسب‌ها}\\
+\Lcs{MakeLowercase}&\Pcs{ساخت‌حروف‌کوچک}\\
+\Lcs{maketitle}&\Pcs{ساخت‌عنوان}\\
+\Lcs{MakeUppercase}&\Pcs{ساخت‌حروف‌بزرگ}\\
+\Lcs{marginpar}&\Pcs{حاشیه‌پار}\\
+\Lcs{marginparsep}&\Pcs{جداگرحاشیه‌پار}\\
+\Lcs{marginparwidth}&\Pcs{عرض‌جداگرپار}\\
+\Lcs{markboth}&\Pcs{نشان‌هردو}\\
+\Lcs{markright}&\Pcs{نشان‌راست}\\
+\Lcs{mbox}&\Pcs{س‌کادر}\\
+\Lcs{medskip}&\Pcs{پرش‌متوسط}\\
+\Lcs{medskipamount}&\Pcs{مقدارپرش‌متوسط}\\
+\Lcs{medspace}&\Pcs{فضای‌متوسط}\\
+\Lcs{MessageBreak}&\Pcs{شکست‌پیام}\\
+\Lcs{multicolumn}&\Pcs{چندستونی}\\
+\Lcs{name}&\Pcs{نام}\\
+\Lcs{natural}&\Pcs{طبیعی}\\
+\Lcs{nearrow}&\Pcs{باریک}\\
+\Lcs{NeedsTeXFormat}&\Pcs{نیازبه‌فرم‌تک}\\
+\Lcs{neg}&\Pcs{منفی}\\
+\Lcs{negmedspace}&\Pcs{فضای‌متوسط‌منفی}\\
+\Lcs{negthickspace}&\Pcs{فضای‌ضخیم‌منفی}\\
+\Lcs{negthinspace}&\Pcs{فضای‌نازک‌منفی}\\
+\Lcs{newboolean}&\Pcs{بولی‌نو}\\
+\Lcs{newcommand}&\Pcs{فرمان‌نو}\\
+\Lcs{newcounter}&\Pcs{شمارنده‌نو}\\
+\Lcs{newenvironment}&\Pcs{محیط‌نو}\\
+\Lcs{newfont}&\Pcs{قلم‌نو}\\
+\Lcs{newlength}&\Pcs{طول‌نو}\\
+\Lcs{newline}&\Pcs{خط‌نو}\\
+\Lcs{newpage}&\Pcs{صفحه‌نو}\\
+\Lcs{newsavebox}&\Pcs{کادرذخیره‌نو}\\
+\Lcs{newtheorem}&\Pcs{قضیه‌نو}\\
+\Lcs{nocite}&\Pcs{بدون‌سند}\\
+\Lcs{nofiles}&\Pcs{بدون‌پرونده}\\
+\Lcs{noindent}&\Pcs{بدون‌تورفتگی}\\
+\Lcs{nolimits}&\Pcs{بدون‌حد}\\
+\Lcs{nolinebreak}&\Pcs{بدون‌شکست‌خط}\\
+\Lcs{nonfrenchspacing}&\Pcs{فاصله‌گذاری‌غیرفرانسوی}\\
+\Lcs{nonumber}&\Pcs{بدون‌شماره}\\
+\Lcs{nopagebreak}&\Pcs{بدون‌شکست‌صفحه}\\
+\Lcs{normalcolor}&\Pcs{رنگ‌نرمال}\\
+\Lcs{normalfont}&\Pcs{قلم‌نرمال}\\
+\Lcs{normalmarginpar}&\Pcs{حاشیه‌پارنرمال}\\
+\Lcs{normalsize}&\Pcs{اندازه‌نرمال}\\
+\Lcs{notag}&\Pcs{بدون‌اتیکت}\\
+\Lcs{numberwithin}&\Pcs{شماره‌مطابق}\\
+\Lcs{oddsidemargin}&\Pcs{حاشیه‌سمت‌چپ}\\
+\Lcs{onecolumn}&\Pcs{یک‌ستون}\\
+\Lcs{onlynotes}&\Pcs{تنها‌یادداشت‌ها}\\
+\Lcs{onlyslides}&\Pcs{تنهااسلایدها}\\
+\Lcs{OptionNotUsed}&\Pcs{گزینه‌استفاده‌نشد}\\
+\Lcs{PackageError}&\Pcs{خطای‌بسته}\\
+\Lcs{PackageInfo}&\Pcs{اطلاعات‌بسته}\\
+\Lcs{PackageWarning}&\Pcs{هشداربسته}\\
+\Lcs{PackageWarningNoLine}&\Pcs{هشداربسته‌بدون‌خط}\\
+\Lcs{pagebreak}&\Pcs{شکست‌صفحه}\\
+\Lcs{pagecolor}&\Pcs{رنگ‌صفحه}\\
+\Lcs{pagename}&\Pcs{نام‌صفحه}\\
+\Lcs{pagenumbering}&\Pcs{شماره‌گذاری‌صفحه}\\
+\Lcs{pageref}&\Pcs{ارجاع‌صفحه}\\
+\Lcs{pagestyle}&\Pcs{سبک‌صفحه}\\
+\Lcs{paperheight}&\Pcs{ارتفاع‌برگ}\\
+\Lcs{paperwidth}&\Pcs{عرض‌برگ}\\
+\Lcs{par}&\Pcs{پار}\\
+\Lcs{paragraph}&\Pcs{پاراگراف}\\
+\Lcs{parallel}&\Pcs{موازی}\\
+\Lcs{parbox}&\Pcs{کادرپار}\\
+\Lcs{parindent}&\Pcs{تورفتگی‌پار}\\
+\Lcs{parsep}&\Pcs{جداگرپار}\\
+\Lcs{parskip}&\Pcs{پرش‌پار}\\
+\Lcs{part}&\Pcs{قسمت}\\
+\Lcs{partname}&\Pcs{نام‌قسمت}\\
+\Lcs{partopsep}&\Pcs{جداگربالای‌پار}\\
+\Lcs{PassOptionToClass}&\Pcs{پاس‌گزینه‌به‌کلاس}\\
+\Lcs{PassOptionToPackage}&\Pcs{پاس‌گزینه‌به‌بسته}\\
+\Lcs{path}&\Pcs{مسیر}\\
+\Lcs{printindex}&\Pcs{چاپ‌نمایه}\\
+\Lcs{ProcessOptions}&\Pcs{پردازش‌گزینه‌ها}\\
+\Lcs{protect}&\Pcs{حمایت}\\
+\Lcs{providecommand}&\Pcs{تهیه‌فرمان}\\
+\Lcs{ProvidesClass}&\Pcs{تهیه‌کلاس}\\
+\Lcs{ProvidesFile}&\Pcs{تهیه‌پرونده}\\
+\Lcs{ProvidesPackage}&\Pcs{تهیه‌بسته}\\
+\Lcs{raggedbottom}&\Pcs{تنظیم‌پایین}\\
+\Lcs{raggedleft}&\Pcs{تنظیم‌چپ}\\
+\Lcs{raggedright}&\Pcs{تنظیم‌راست}\\
+\Lcs{raisebox}&\Pcs{ترفیع‌کادر}\\
+\Lcs{raisetag}&\Pcs{ترفیع‌اتیکت}\\
+\Lcs{rangle}&\Pcs{زاویه‌ر}\\
+\Lcs{rceil}&\Pcs{سقف‌ر}\\
+\Lcs{ref}&\Pcs{رجوع}\\
+\Lcs{reflectbox}&\Pcs{انعکاس‌کادر}\\
+\Lcs{refname}&\Pcs{نام‌رجوع}\\
+\Lcs{refstepcounter}&\Pcs{گام‌رجوع‌شمارنده}\\
+\Lcs{renewcommand}&\Pcs{فرمان‌ازنو}\\
+\Lcs{renewenvironment}&\Pcs{محیط‌ازنو}\\
+\Lcs{RequirePackage}&\Pcs{نیازبه‌بسته}\\
+\Lcs{RequirePackageWithOptions}&\Pcs{نیازبه‌بسته‌باگزینه}\\
+\Lcs{resizebox}&\Pcs{اندازه‌ازنوکادر}\\
+\Lcs{reversemarginpar}&\Pcs{حاشیه‌پارمعکوس}\\
+\Lcs{rfloor}&\Pcs{کف‌ر}\\
+\Lcs{right}&\Pcs{راست}\\
+\Lcs{rmdefault}&\Pcs{پیش‌فرض‌رم}\\
+\Lcs{rmfamily}&\Pcs{خانواده‌رم}\\
+\Lcs{Roman}&\Pcs{رومن‌بزرگ}\\
+\Lcs{roman}&\Pcs{رومن}\\
+\Lcs{rotatebox}&\Pcs{چرخاندن‌کادر}\\
+\Lcs{rule}&\Pcs{نوار}\\
+\Lcs{savebox}&\Pcs{ذخیره‌کادر}\\
+\Lcs{sbox}&\Pcs{کادرذ}\\
+\Lcs{scalebox}&\Pcs{کادرمقیاس}\\
+\Lcs{scdefault}&\Pcs{پیش‌فرض‌تمام‌بزرگ}\\
+\Lcs{scriptscriptstyle}&\Pcs{سبک‌ته‌نوشت‌ته‌نوشت}\\
+\Lcs{scriptsize}&\Pcs{اندازه‌ته‌نوشت}\\
+\Lcs{scripstyle}&\Pcs{سبک‌ته‌نوشت}\\
+\Lcs{section}&\Pcs{بخش}\\
+\Lcs{see}&\Pcs{ببینید}\\
+\Lcs{seealso}&\Pcs{نیزببینید}\\
+\Lcs{seename}&\Pcs{نام‌ببینید}\\
+\Lcs{selectfont}&\Pcs{انتخاب‌قلم}\\
+\Lcs{setboolean}&\Pcs{تنظیم‌بولی}\\
+\Lcs{setcounter}&\Pcs{تنظیم‌شمارنده}\\
+\Lcs{setlength}&\Pcs{تنظیم‌طول}\\
+\Lcs{setminus}&\Pcs{تنظیم‌منها}\\
+\Lcs{settodepth}&\Pcs{تنظیم‌به‌عمق}\\
+\Lcs{settoheight}&\Pcs{تنظیم‌به‌ارتفاع}\\
+\Lcs{settowidth}&\Pcs{تنظیم‌به‌عرض}\\
+\Lcs{sfdefault}&\Pcs{پیش‌فرض‌س‌ف}\\
+\Lcs{sffamily}&\Pcs{خانواده‌س‌ف}\\
+\Lcs{shadowbox}&\Pcs{کادرسایه‌دار}\\
+\Lcs{sharp}&\Pcs{تیز}\\
+\Lcs{shortstack}&\Pcs{پشته‌کوتاه}\\
+\Lcs{sldefault}&\Pcs{پیش‌فرض‌خو}\\
+\Lcs{sloppy}&\Pcs{نامرتب}\\
+\Lcs{slshape}&\Pcs{شمایل‌خو}\\
+\Lcs{small}&\Pcs{کوچک}\\
+\Lcs{smallskip}&\Pcs{پرش‌کوچک}\\
+\Lcs{smallskipamount}&\Pcs{مقدار‌پرش‌کوچک}\\
+\Lcs{smash}&\Pcs{کوب}\\
+\Lcs{smile}&\Pcs{لبخند}\\
+\Lcs{spadesuit}&\Pcs{پیک}\\
+\Lcs{star}&\Pcs{ستاره}\\
+\Lcs{stepcounter}&\Pcs{گام‌شمارنده}\\
+\Lcs{stretch}&\Pcs{کشی}\\
+\Lcs{subitem}&\Pcs{زیربند}\\
+\Lcs{subparagraph}&\Pcs{زیرپاراگراف}\\
+\Lcs{subsection}&\Pcs{زیربخش}\\
+\Lcs{substack}&\Pcs{زیرپشته}\\
+\Lcs{subsubitem}&\Pcs{زیرزیربند}\\
+\Lcs{subsubsection}&\Pcs{زیرزیربخش}\\
+\Lcs{subset}&\Pcs{زیرمجموعه}\\
+\Lcs{subseteq}&\Pcs{زیرمجموعه‌مس}\\
+\Lcs{tabbingsep}&\Pcs{جداگرجدول‌بندی}\\
+\Lcs{tabcolsep}&\Pcs{جداگرستون‌جدول}\\
+\Lcs{tableofcontents}&\Pcs{فهرست‌مطالب}\\
+\Lcs{tablename}&\Pcs{نام‌لوح}\\
+\Lcs{tabularnewline}&\Pcs{خط‌نوجدول}\\
+\Lcs{tag}&\Pcs{اتیکت}\\
+\Lcs{telephone}&\Pcs{تلفن}\\
+\Lcs{TeX}&\Pcs{تک}\\
+\Lcs{text}&\Pcs{متنی}\\
+\Lcs{textbullet}&\Pcs{گلوله‌متنی}\\
+\Lcs{textemdash}&\Pcs{ام‌دش‌متنی}\\
+\Lcs{textendash}&\Pcs{ان‌دش‌متنی}\\
+\Lcs{textexclamdown}&\Pcs{تعجب‌وارونه‌متنی}\\
+\Lcs{textperiodcentered}&\Pcs{نقطه‌وسط‌متنی}\\
+\Lcs{textquestiondown}&\Pcs{سوال‌وارونه‌متنی}\\
+\Lcs{textquotedblleft}&\Pcs{نقل‌چپ‌متنی‌دولا}\\
+\Lcs{textquotedblright}&\Pcs{نقل‌راست‌متنی‌دولا}\\
+\Lcs{textquoteleft}&\Pcs{نقل‌متنی‌چپ}\\
+\Lcs{textquoteright}&\Pcs{نقل‌متنی‌راست}\\
+\Lcs{textvisiblespace}&\Pcs{فضای‌نمایان‌متنی}\\
+\Lcs{textbackslash}&\Pcs{شکافت‌پشت‌متنی}\\
+\Lcs{textbar}&\Pcs{میله‌متنی}\\
+\Lcs{textgreater}&\Pcs{بزرگ‌تر‌متنی}\\
+\Lcs{textless}&\Pcs{کمتر‌متنی}\\
+\Lcs{textbf}&\Pcs{متن‌سیاه}\\
+\Lcs{textcircled}&\Pcs{مدور‌متنی}\\
+\Lcs{textcolor}&\Pcs{رنگ‌متن}\\
+\Lcs{textcompwordmark}&\Pcs{نشان‌کلمه‌مرکب‌متن}\\
+\Lcs{textfloatsep}&\Pcs{جداگرشناورمتن}\\
+\Lcs{textfraction}&\Pcs{کسرمتن}\\
+\Lcs{textheight}&\Pcs{ارتفاع‌متن}\\
+\Lcs{textit}&\Pcs{متن‌ایتالیک}\\
+\Lcs{textmd}&\Pcs{متن‌نازک}\\
+\Lcs{textnormal}&\Pcs{متن‌نرمال}\\
+\Lcs{textregistered}&\Pcs{ثبتی‌متنی}\\
+\Lcs{textrm}&\Pcs{متن‌رومن}\\
+\Lcs{textsc}&\Pcs{متن‌تمام‌بزرگ}\\
+\Lcs{textsf}&\Pcs{متن‌سانزسریف}\\
+\Lcs{textsl}&\Pcs{متن‌خوابیده}\\
+\Lcs{textstyle}&\Pcs{سبک‌متنی}\\
+\Lcs{textsuperscript}&\Pcs{بالانویس‌متنی}\\
+\Lcs{texttrademark}&\Pcs{علامت‌تجاری‌متنی}\\
+\Lcs{texttt}&\Pcs{متن‌تایپ}\\
+\Lcs{textup}&\Pcs{متن‌بالا}\\
+\Lcs{textwidth}&\Pcs{عرض‌متن}\\
+\Lcs{thanks}&\Pcs{تشکر}\\
+\Lcs{thicklines}&\Pcs{خط‌هاضخیم}\\
+\Lcs{thickspace}&\Pcs{فضاضخیم}\\
+\Lcs{thinlines}&\Pcs{خط‌هانازک}\\
+\Lcs{thinspace}&\Pcs{فضانازک}\\
+\Lcs{thisfancypage}&\Pcs{این‌صفحه‌تجملی}\\
+\Lcs{thispagestyle}&\Pcs{سبک‌این‌صفحه}\\
+\Lcs{tilde}&\Pcs{مد}\\
+\Lcs{tiny}&\Pcs{ریز}\\
+\Lcs{times}&\Pcs{ضرب}\\
+\Lcs{title}&\Pcs{عنوان}\\
+\Lcs{to}&\Pcs{به}\\
+\Lcs{today}&\Pcs{امروز}\\
+\Lcs{top}&\Pcs{بالا}\\
+\Lcs{topfigrule}&\Pcs{نواربالای‌شکل}\\
+\Lcs{topfraction}&\Pcs{کسر‌بالا}\\
+\Lcs{topmargin}&\Pcs{حاشیه‌بالا}\\
+\Lcs{topsep}&\Pcs{جداگربالا}\\
+\Lcs{topskip}&\Pcs{پرش‌بالا}\\
+\Lcs{totalheight}&\Pcs{ارتفاع‌کلی}\\
+\Lcs{triangle}&\Pcs{مثلث}\\
+\Lcs{ttdefault}&\Pcs{پیش‌فرض‌تایپ}\\
+\Lcs{ttfamily}&\Pcs{خانواده‌تایپ}\\
+\Lcs{twocolumn}&\Pcs{دوستون}\\
+\Lcs{underline}&\Pcs{زیرخط}\\
+\Lcs{updefault}&\Pcs{پیش‌فرض‌ایستاده}\\
+\Lcs{usebox}&\Pcs{استفاده‌کادر}\\
+\Lcs{usecounter}&\Pcs{استفاده‌شمارنده}\\
+\Lcs{usefont}&\Pcs{استفاده‌فونت}\\
+\Lcs{usepackage}&\Pcs{استفاده‌بسته}\\
+\Lcs{value}&\Pcs{ارزش}\\
+\Lcs{verb}&\Pcs{کبک}\\
+\Lcs{vfill}&\Pcs{پررع}\\
+\Lcs{visible}&\Pcs{نمایان}\\
+\Lcs{vline}&\Pcs{خط‌ع}\\
+\Lcs{voffset}&\Pcs{مبداع}\\
+\Lcs{vpageref}&\Pcs{ارجاع‌صفحه‌ع}\\
+\Lcs{vref}&\Pcs{ارجاع‌ع}\\
+\Lcs{vspace}&\Pcs{فضای‌ع}\\
+\Lcs{whiledo}&\Pcs{مادام‌بکن}\\
+\Lcs{widehat}&\Pcs{کلاه‌پهن}\\
+\Lcs{widetilde}&\Pcs{مدپهن}\\
+\Lcs{width}&\Pcs{عرض}\\
+\end{supertabular}
+\end{center}
+
+\bigskip
+\begin{center}
+\tablecaption{The Equivalent \LaTeX\ Environments\label{penv}}
+\tablehead
+ {\bfseries Environment in \LaTeX\ &\bfseries Equivalent Persian Environment\\ \hline}
+\tabletail
+ {\hline \multicolumn{2}{r}{\emph{Continued on next page}}\\}
+\tablelasttail{\hline}
+\begin{supertabular}{lr}
+\Lenv{abstract}&\Penv{چکیده}\\
+\Lenv{appendix}&\Penv{پیوست}\\
+\Lenv{array}&\Penv{آرایه}\\
+\Lenv{center}&\Penv{وسط}\\
+\Lenv{description}&\Penv{توضیح}\\
+\Lenv{document}&\Penv{نوشتار}\\
+\Lenv{enumerate}&\Penv{شماره‌بندی}\\
+\Lenv{figure}&\Penv{شکل}\\
+\Lenv{filecontents}&\Penv{محتویات‌پرونده}\\
+\Lenv{flushleft}&\Penv{چپ‌چین}\\
+\Lenv{flushright}&\Penv{راست‌چین}\\
+\Lenv{itemize}&\Penv{بنددار}\\
+\Lenv{letter}&\Penv{نامه}\\
+\Lenv{list}&\Penv{لیست}\\
+\Lenv{longtable}&\Penv{جدول‌دراز}\\
+\Lenv{lrbox}&\Penv{کادررچ}\\
+\Lenv{math}&\Penv{ریاضی}\\
+\Lenv{matrix}&\Penv{ماتریس}\\
+\Lenv{minipage}&\Penv{صفحه‌کوچک}\\
+\Lenv{multicols}&\Penv{چندستونی‌ها}\\
+\Lenv{multline}&\Penv{چندخطی}\\
+\Lenv{note}&\Penv{یادداشت}\\
+\Lenv{overlay}&\Penv{انباشتن}\\
+\Lenv{picture}&\Penv{تصویر}\\
+\Lenv{quotation}&\Penv{اقتباس}\\
+\Lenv{quote}&\Penv{نقل}\\
+\Lenv{slide}&\Penv{اسلاید}\\
+\Lenv{sloppypar}&\Penv{پارنامرتب}\\
+\Lenv{split}&\Penv{شکافتن}\\
+\Lenv{subarray}&\Penv{زیرآرایه}\\
+\Lenv{tabbing}&\Penv{جدول‌بندی}\\
+\Lenv{table}&\Penv{لوح}\\
+\Lenv{tabular}&\Penv{جدول}\\
+\Lenv{thebibliography}&\Penv{محتوای‌کتاب‌نامه}\\
+\Lenv{theindex}&\Penv{محتوای‌نمایه}\\
+\Lenv{titlepage}&\Penv{صفحه‌عنوان}\\
+\Lenv{verbatim}&\Penv{کلمه‌به‌کلمه}\\
+\Lenv{verse}&\Penv{شعر}\\
+\end{supertabular}
+\end{center}
+
+\section{A Sample Input \TeX\ File}
+\begin{lstlisting}[morekeywords={settextfont,maketitle,tableofcontents,part,subsection,subsubsection},caption={A Sample Input \TeX\ File}]
+\documentclass{article}
+\usepackage{xepersian}
+\settextfont[Scale=1.5]{Scheherazade}
+\title{<title>}
+\author{<author>}
+\begin{document}
+\maketitle
+\tableofcontents
+\part{<text>}
+...
+\section{<text>}
+...
+\subsection{<text>}
+...
+\subsubsection{<text>}
+...
+\end{document}
+\end{lstlisting}
+\section{Font Commands}
+\subsection{Basic Font Commands}
+\begin{BDef}
+\Lcs{settextfont}\OptArgs\Largb{\Larga{font name}}\quad\Lcs{setlatintextfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{setdigitfont}\OptArgs\Largb{\Larga{font name}}\quad
+\end{BDef}
+\begin{itemize}
+\item Options in any font command in this documentation are anything that \textsf{fontspec} package provides as the option of loading fonts, except \texttt{Script} and \texttt{Mapping}.
+\item \Lcs{settextfont} will choose the default font for Persian texts of your document. This command is compulsory and if you do not use it at least once, you will get error saying that you should choose a Persian font by using this command.
+\item \Lcs{setlatintextfont} will choose the font for Latin texts of your document. If you do not use this command at all, the default \TeX\ font (fonts used in this documentation) will be used for Latin texts of your document.
+\item \Lcs{setdigitfont} will choose the Persian font for digits in math mode. By using this command, digits in math mode will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode and digits appear in their original form (Western).
+\end{itemize}
+\subsection{Defining Extra Persian and Latin Fonts}
+\begin{BDef}
+\Lcs{defpersianfont}\Lcs{CS}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{deflatinfont}\Lcs{CS}\OptArgs\Largb{\Larga{font name}}
+\end{BDef}
+\begin{itemize}
+\item With \Lcs{defpersianfont}, you can define extra Persian fonts.
+\begin{lstlisting}[morekeywords={defpersianfont,Nastaliq},caption={Example Of Using \Lcs{defpersianfont}}]
+\defpersianfont\Nastaliq[Scale=1]{IranNastaliq}
+\end{lstlisting}
+In this example, we define \Lcs{Nastaliq} to stand for Nastaliq font.
+\item With \Lcs{deflatinfont}, you can define extra Latin fonts.
+\begin{lstlisting}[morekeywords={deflatinfont,junicode},caption={Example Of Using \Lcs{deflatinfont}}]
+\deflatinfont\junicode[Scale=1]{Junicode}
+\end{lstlisting}
+In this example, we define \Lcs{Junicode} to stand for Junicode font.
+\end{itemize}
+\subsection{Choosing Persian Sans Font}
+\begin{BDef}
+\Lcs{setpersiansansfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{persiansffamily}\quad\Lcs{textpersiansf}\Largb{\Larga{text}}
+\end{BDef}
+\subsection{Choosing Persian Mono Font}
+\begin{BDef}
+\Lcs{setpersianmonofont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{persianttfamily}\quad\Lcs{textpersiantt}\Largb{\Larga{text}}
+\end{BDef}
+\subsection{Choosing Persian Iranic Font}
+\begin{BDef}
+\Lcs{setiranicfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{iranicfamily}\quad\Lcs{textiranic}\Largb{\Larga{text}}
+\end{BDef}
+
+\subsection{Choosing Persian Navar Font}
+\begin{BDef}
+\Lcs{setnavarfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{navarfamily}\quad\Lcs{textnavar}\Largb{\Larga{text}}
+\end{BDef}
+
+\subsection{Choosing Persian Pook Font}
+\begin{BDef}
+\Lcs{setpookfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{pookfamily}\quad\Lcs{textpook}\Largb{\Larga{text}}
+\end{BDef}
+
+\subsection{Choosing Persian Sayeh Font}
+\begin{BDef}
+\Lcs{setsayehfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{sayehfamily}\quad\Lcs{textsayeh}\Largb{\Larga{text}}
+\end{BDef}
+
+\subsection{Choosing Latin Sans Font}
+\begin{BDef}
+\Lcs{setlatinsansfont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{sffamily}\quad\Lcs{textsf}\Largb{\Larga{text}}
+\end{BDef}
+\subsection{Choosing Latin Mono Font}
+\begin{BDef}
+\Lcs{setlatinmonofont}\OptArgs\Largb{\Larga{font name}}\\
+\Lcs{ttfamily}\quad\Lcs{texttt}\Largb{\Larga{text}}
+\end{BDef}
+\section{Latin and Persian Environment}
+\begin{BDef}
+\LBEG{latin}\quad\Larga{text}\quad\LEND{latin}\\
+\LBEG{persian}\quad\Larga{text}\quad\LEND{persian}
+\end{BDef}
+\begin{itemize}
+\item \texttt{latin} environment both changes direction of the paragraphs to LTR and font to Latin font.
+\item \texttt{persian} environment both changes direction of the Paragraphs to RTL and font to Persian font.
+\end{itemize}
+
+\section{Latin and Persian Commands}
+\begin{BDef}
+\Lcs{Latin}\quad\Lcs{Persian}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{Latin} command both changes direction of the paragraphs to LTR and font to Latin font.
+\item \Lcs{Persian} command both changes direction of the Paragraphs to RTL and font to Persian font.
+\end{itemize}
+\section{Short Latin and Persian Texts}
+\begin{BDef}
+\Lcs{lr}\Largb{\Larga{text}}\quad\Lcs{rl}\Largb{\Larga{text}}
+\end{BDef}
+\begin{itemize}
+\item With \Lcs{lr} command, you can typeset short LTR texts.
+\item With \Lcs{rl} command, you can typeset short RTL texts.
+\end{itemize}
+\section{Miscellaneous Commands}
+\begin{BDef}
+\Lcs{today}\quad\Lcs{latintoday}\quad\Lcs{twocolumnstableofcontents}\quad\Lcs{XePersian}\\
+\Lcs{plq}\quad\Lcs{prq}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{today} typesets current Persian date and \Lcs{latintoday} typesets current Latin date.
+\item \Lcs{twocolumnstableofcontents} typesets table of contents in two columns. This requires that you have loaded \textsf{multicol} package before \textsf{\XePersian} package, otherwise an error will be issued.
+\item \Lcs{\XePersian} typesets \XePersian's logo.
+\item \Lcs{plq} and \Lcs{prq} typeset Persian left quote and Persian right quote respectively.
+\end{itemize}
+
+\section{Additional Counters}
+\XePersian\ defines several additional counters to what already \LaTeX\ offers. These counters are \texttt{harfi}, \texttt{adadi}, and \texttt{tartibi}.
+
+\section{Things To Know About \Lcs{setdigitfont}}
+\begin{BDef}
+\Lcs{DefaultMathsDigits}\quad\Lcs{PersianMathsDigits}\quad\Lcs{AutoMathsDigits}
+\end{BDef}
+\begin{itemize}
+\item As we discussed before, \Lcs{setdigitfont} will choose the Persian font for digits in math mode. By using this command, digits in math mode will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode and digits appear in their original form (Western).
+
+If you use \Lcs{setdigitfont}, you should the know that:
+\begin{itemize}
+\item By default, \Lcs{AutoMathsDigits} is active, which means that in Persian mode, you get Persian digits in math mode and in Latin mode, you get \TeX's default font and digits in math mode.
+\item If you use \Lcs{PersianMathsDigits} anywhere, you will overwrite \XePersian's default behaviour and you will always get Persian digits in math mode.
+\item If you use \Lcs{DefaultMathsDigits} anywhere, again you will overwrite \XePersian's default behaviour and you will always get \TeX's default font and digits in math mode.
+\end{itemize}
+\item When you use \Lcs{setdigitfont}, you also will change the font used inside \Lcs{mathbf}, \Lcs{mathit} and \ldots, which means both letters and digits inside say \Lcs{mathbf} will be typeset in your chosen font. Please do not contact me, saying this is a bug, this is done on purpose and if I see such email, I will ignore it.
+\end{itemize}
+\section{Bilingual Captions}
+\XePersian\ sets caption bilingually. This means if you are in RTL mode, you get Persian caption and if you are in LTR mode, you get English caption.
+\section{Support For Various Packages}
+In addition to what \textsf{bidi} package supports, \XePersian\ also support a few packages. This support is more about language aspect rather than directionality. These packages are \textsf{algorithmic}, \textsf{algorithm},\textsf{enumerate}, and \textsf{backref} packages.
+
+\subsection{Things You Should Know about Support For \textsf{enumerate} Package}
+The \textsf{enumerate} package gives the enumerate environment an optional argument
+which determines the style in which the counter is printed.
+
+An occurrence of one of the tokens \texttt{A}, \texttt{a}, \texttt{I}, \texttt{i}, or \texttt{1} produces the value
+of the counter printed with (respectively) \Lcs{Alph}, \Lcs{alph}, \Lcs{Roman}, \Lcs{roman} or
+\Lcs{arabic}.
+
+In addition with the extra support that \XePersian\ provides, an occurrence of one of the tokens \Penv{ا}, \Penv{ی}, or \Penv{ت} produces the value of the counter printed with (respectively) \Lcs{harfi}, \Lcs{adadi}, or \Lcs{tartibi}.
+
+These letters may be surrounded by any strings involving any other \TeX\
+expressions, however the tokens \texttt{A}, \texttt{a}, \texttt{I}, \texttt{i}, \texttt{1}, \Penv{ا}, \Penv{ی}, \Penv{ت} must be inside a \Largb{} group if
+they are not to be taken as special.
+
+To see an Example, please look at \textsf{enumerate} package documentation.
+\section{Index Generation}
+For generating index, you are advised to use \textsf{xindy} program, any other program such as \textsf{makeindex} is not recommended.
+
+With \XePersian\ package, the file \texttt{persian.xdy} comes that should be in \texttt{doc} folder. To generate index, you will need to put \texttt{persian.xdy} file in the current directory and then open a terminal/command prompt and do the following:
+
+\begin{BDef}\ttfamily
+tex2xindy < filename.idx > filename.raw\\ \ttfamily
+xindy -I xindy -M persian.xdy filename.raw
+\end{BDef}
+
+Please note that this way of generating index with the \textsf{xindy} program is temporary and it will definitely be removed in the next version of \XePersian. We will have Persian support to the main \textsf{xindy} program in the next version of \XePersian. This perfectly means that by the next version of \XePersian's package, we will be able to use \textsf{glossaries} package too for making Persian and Latin glossaries.
+
+\section{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:
+
+\begin{BDef}\ttfamily
+python ftxe-0.11.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 [-r] [-s] [-x] [-u] input-filename1 input-filename2
+\end{BDef}
+Where
+\begin{description}
+\item[\texttt{-r}] (DEFAULT) recursively consider files included in the given files
+\item[\texttt{-s}] do not recursively consider files
+\item[\texttt{-x}] (DEFAULT) insert \XePersian\ related commands
+\item[\texttt{-u}] only convert to unicode (and not to \XePersian)
+\end{description}
+
+Please note that the python script will not with versions of python later than 2.6. So you are encouraged to use version 2.6 of python to benefit from this python script.
+
+\chapter{Extra Packages And Classes}
+\section{Magazine Typesetting}
+\subsection{Introduction}
+\textsf{xepersian-magazine} class allows you to create magazines, newspapers and any other types of papers. The output document has a front page and as many inner pages as desired. Articles appear one after another, telling the type, number of columns, heading, subheading, images, author and so forth. It is possible to change the aspect of (almost) everything therefore it is highly customisable. Commands to add different titles, headings and footers are also provided.
+\subsection{Usage}
+To create\footnote{For a sample file, please look at \texttt{magazine-sample.tex} in the \textsf{doc} folder} a magazine just load the class as usual\footnote{You also need to load \textsf{graphicx}, \textsf{xunicode} and \textsf{xepersian} packages respectively, after loading the document class and choose fonts for the main text, Latin text and digits in maths formulas. For more detail see \autoref{basics} of the documentation.}, with
+\begin{BDef}
+\Lcs{documentclass}\OptArgs\Largb{xepersian-magazine}
+\end{BDef}
+at the beginning of your source file. The class options are described in \autoref{s-options}.
+
+From this point it is possible to include packages and renew class commands described in \autoref{s-custom}.
+\subsection{Front Page}
+As every magazine, \textsf{xepersian-magazine} has its own front page. It includes main headings, an index, the magazine logo and other useful information. This environment should be the first you use within \textsf{xepersian-magazine} class but it is not mandatory.
+
+\begin{BDef}
+\Lcs{firstimage}\quad\Lcs{firstarticle}
+\end{BDef}
+The first two commands you can use inside the \texttt{frontpage} environment are \Lcs{firstimage} and \Lcs{firstarticle} which include, respectively, the main image and the main heading in the front page. The first one takes two arguments \Larga{image} and \Larga{description}. Notice that second argument is optional and it declares the image caption; \Larga{image} defines the relative path to the image. In order to include the first piece of article use
+\begin{BDef}
+\Lcs{firstarticle}\Largb{\Larga{title}}\Largb{\Larga{opening}}\Largb{\Larga{time}}
+\end{BDef}
+first two arguments are mandatory and represent heading and the opening paragraph. Last argument is optional (you can leave it blank) and indicates the time when article happened.
+\begin{BDef}
+\Lcs{secondarticle}
+\end{BDef}
+The second piece of article is included using the command \Lcs{secondarticle} just as the first article. The main difference are that this second piece has two more arguments and it does not include an image.
+
+\begin{BDef}
+\Lcs{secondarticle}\Largb{\Larga{title}}\Largb{\Larga{subtitle}}\Largb{\Larga{opening}}\Largb{\Larga{pagesof}}\Largb{\Larga{time}}
+\end{BDef}
+The new arguments \Larga{subtitle} and \Larga{pagesof} define a subtitle and the name of the section for this piece of article.
+
+\begin{BDef}
+\Lcs{thirdarticle}
+\end{BDef}
+The third piece of article is the last one in the \textsf{xepersian-magazine} front page. It works like the \Lcs{secondarticle}.
+\begin{BDef}
+\Lcs{thirdarticle}\Largb{\Larga{title}}\Largb{\Larga{subtitle}}\Largb{\Larga{opening}}%
+\Largb{\Larga{pagesof}}\Largb{\Larga{time}}
+\end{BDef}
+The arguments meaning is the same as \Lcs{secondarticle} command.
+
+The front page includes three information blocks besides the news: \texttt{indexblock} which contains the index, \texttt{authorblock} which includes information about the author and a \texttt{weatherblock} containing a weather forecast. All these three environments are mostly a frame in the front page therefore they can be redefined to fit your personal wishes but I kept them to give an example and to respec the original \textsf{xepersian-magazine} format.
+
+\begin{BDef}
+\Lcs{indexitem}
+\end{BDef}
+The \texttt{indexblock} environment contains a manually editted index of \textsf{xepersian-magazine}. It takes one optional argument \Larga{title} and places a title over the index block. To add entries inside the index just type
+\begin{BDef}
+\Lcs{indexitem}\Largb{\Larga{title}}\Largb{\Larga{reference}}
+\end{BDef}
+inside the environment. The \Larga{title} is the index entry text and the \Larga{reference} points to a article inside \textsf{xepersian-magazine}. It will be more clear when you read \autoref{sub-1}. In order to get a correct output, it is necessary to leave a blank line between index items.
+
+The \texttt{authorblock} environment can include whatever you would like. I called it \texttt{authorblock} because I think it is nice to include some author reference in the front page: who you are, why are you doing this... This environment creates a frame box in the bottom right corner of the front page with your own logo at the top.
+
+\begin{BDef}
+\Lcs{weatheritem}
+\end{BDef}
+Finally, the \texttt{weatherblock} lets you include a weather forecast. It takes one optional argument \Larga{title} that places a title over the weather block. It can
+ fit up to three weather icons with maximum and minimum temperatures,
+ description and name. To add each of the weather entries type the following
+
+\begin{BDef}
+\Lcs{weatheritem}\Largb{\Larga{image}}\Largb{\Larga{day-name}}\Largb{\Larga{max}}%
+\Largb{\Larga{min}}\Largb{\Larga{short-des}}
+\end{BDef}
+
+The first argument includes the path to the weather icon (i.e. sunny or rainy), \Larga{day-name} like Monday, \Larga{max} and \Larga{min} are the highest and lowest day temperatures and \Larga{short-des} is a brief description of the weather condition: partly cloudy, sunny and windy \ldots
+\subsection{Inside\label{sub-1}}
+Once we have created the front page we should include all articles inside our magazine. \textsf{xepersian-magazine} arranges all articles one after each other, expanding headings all over the page and splitting the article text in the number of columns we wish. There are three different environments to define a piece of article: the \texttt{article} environment described in \autoref{subsub-1}, the \texttt{editorial} environment \autoref{subsub-2} for opinion articles and the \texttt{shortarticle} environment explained in \autoref{subsub-3}.
+\subsubsection{The article environment\label{subsub-1}}
+The main environment to include a piece of article is called \texttt{article}. It takes four arguments that set up the headings and structure of the article.
+\begin{BDef}
+\LBEG{article}\Largb{\Larga{num-of-columns}}\Largb{\Larga{title}}\Largb{\Larga{subtitle}}%
+\Largb{\Larga{pagesof}}\Largb{\Larga{label}}\\
+\ldots\Larga{text}\ldots\\
+\LEND{article}
+\end{BDef}
+
+The first argument \Larga{num-of-columns} sets the number of columns the article will be divided whereas \Larga{label} is used when pointing an article from the index in the front page. The rest of the arguments are easy to understand.
+
+
+Inside the \texttt{article} environment, besides the main text of the article, it is possible to include additional information using several class commands.
+\begin{BDef}
+\Lcs{authorandplace}\quad\Lcs{timestamp}
+\end{BDef}
+
+The \Lcs{authorandplace}\Largb{\Larga{author}}\Largb{\Larga{place}} inserts the name of the editor and the place where the article happened in the way many magazines do. Another useful command is \Lcs{timestamp}\Largb{\Larga{time}} which includes the time and a separator just before the text. These two commands should be used before the text because they type the text as the same place they are executed.
+
+\begin{BDef}
+\Lcs{image}
+\end{BDef}
+To include images within the text of an article, \textsf{xepersian-magazine} provides an \Lcs{image} command. Since \textsf{multicol} package does not provide any float support for its \textsf{multicols} environment, I created a macro that includes an image only if that is possible, calculating if there is enough space for the image.It is not the best solution but it works quite well and I could not find a better one. To include an image use the command and its two arguments: the relative path to the image and a short description.
+\begin{BDef}
+\Lcs{image}\Largb{\Larga{image}}\Largb{\Larga{description}}
+\end{BDef}
+
+\begin{BDef}
+\Lcs{columntitle}\quad\Lcs{expandedtitle}
+\end{BDef}
+Within the text of the article, it is possible to add column and expanded titles. The main difference between them is that the first one keeps inside the width of an article column whereas the second expands all over the width of the page, breaking all the columns. Their use is analogous, as follows
+
+\begin{BDef}
+\Lcs{columntitle}\Largb{\Larga{type}}\Largb{\Larga{text}}\\
+\Lcs{expandedtitle}\Largb{\Larga{type}}\Largb{\Larga{text}}
+\end{BDef}
+These two commands use \textsf{fancybox} package features. That is why there are five different types of titles which correspond mainly with fancybox ones: \textsf{shadowbox},
+\textsf{doublebox}, \textsf{ovalbox}, \textsf{Ovalbox} and \textsf{lines}.
+\subsubsection{The editorial environment\label{subsub-2}}
+In addition to the editorial article environment, one can use the editorial environment to create editorial or opinion texts. The main feature is that it transforms the style
+of the heading. Although this environment accepts all the commands article takes, it does not make any sense to use the \Lcs{authorandplace} command within it since it includes an author argument. To create an editorial text use
+
+\begin{BDef}
+\LBEG{editorial}\Largb{\Larga{num-of-columns}}\Largb{\Larga{title}}\Largb{\Larga{author}}\Largb{\Larga{label}}\\
+\ldots\Larga{text}\ldots\\
+\LEND{editorial}
+\end{BDef}
+
+All arguments have the same meaning as article environment (see \autoref{subsub-1}).
+\subsubsection{The shortarticle environment\label{subsub-3}}
+The shortarticle environment creates a block of short article. Althought it has its own title and subtitle, each piece of article within it may have a title. To use it just
+type:
+
+\begin{BDef}
+\LBEG{shortarticle}\Largb{\Larga{num-of-columns}}\Largb{\Larga{title}}\Largb{\Larga{subtitle}}\Largb{\Larga{label}}\\
+\ldots\Larga{text}\ldots\\
+\Lcs{shortarticleitem}\Largb{\Larga{title}}\Largb{\Larga{text}}\\
+\ldots\\
+\LEND{shortarticle}
+\end{BDef}
+You can also specify the number of columns of the block like editorial and article environments. To add a piece of article inside the shortarticle use the \Lcs{shortarticleitem}, indicating a title and the text of the issue.
+\subsubsection{Commands between articles}
+\begin{BDef}
+\Lcs{articlesep}\quad\Lcs{newsection}
+\end{BDef}
+
+There are two commands you can use among the articles inside \textsf{xepersian-magazine}: \Lcs{articlesep} and \Lcs{newsection}. The first one does not take any parameter and just draws a line between two articles. The second changes the content of \Lcs{xepersian@section} to the new \Larga{section name}. From the point it is used, all articles which follow will be grouped within the new section.
+
+\begin{BDef}
+\Lcs{newsection}\Largb{\Larga{section name}}
+\end{BDef}
+\subsection{Customization\label{s-custom}}
+\textsf{xepersian-magazine} includes many commands which can be used to customize its aspect, from the front page to the last page. I will list them grouped so it is easy to find
+them. Treat them as standard \LaTeX\ commands, using \Lcs{renewcommand} to change
+their behaviour.
+\subsubsection{Front Page}
+
+\begin{BDef}
+\Lcs{customlogo}\quad\Lcs{customminilogo}\quad\Lcs{custommagazinename}
+\end{BDef}
+When creating a magazine, everyone wants to show its own logo instead of \textsf{xepersian-magazine} default heading. To achieve this, you need to put the following command at the preamble of your document:
+
+\begin{BDef}
+\Lcs{customlogo}\Largb{\Larga{text}}\\
+\Lcs{customminilogo}\Largb{\Larga{text}}\\
+\Lcs{custommagazinename}\Largb{\Larga{text}}
+\end{BDef}
+
+
+\begin{BDef}
+\Lcs{edition}\quad\Lcs{editionformat}
+\end{BDef}
+
+The edition text has to be declared in the preamble of the document. One important thing to know is that \Lcs{author}, \Lcs{date} and \Lcs{title} have no effect inside \textsf{xepersian-magazine} since the magazine date is taken from \Lcs{today} command and the other two are only for the title page (if using \Lcs{maketitle}).
+
+\begin{BDef}
+\Lcs{indexFormat}\quad\Lcs{indexEntryFormat}\quad\Lcs{indexEntryPageTxt}\quad\Lcs{indexEntryPageFormat}\\%
+\Lcs{indexEntrySeparator}
+\end{BDef}
+
+When defining the index in the front page, there are several commands to customize the final index style. \Lcs{indexFormat} sets the format of the title; \Lcs{indexEntryFormat}, the format of each index entry; \Lcs{indexEntryPageTxt} and \Lcs{indexEntryPageFormat} lets you define which is the text that goes with the page number and its format. Finally, \textsf{xepersian-magazine} creates a thin line between index entries, you can redefine it using \Lcs{indexEntrySeparator}. To get the index with \Lcs{xepersian@indexwidth} is provided.
+
+\begin{BDef}
+\Lcs{weatherFormat}\quad\Lcs{weatherTempFormat}\quad\Lcs{weatherUnits}
+\end{BDef}
+
+Relating to the weather block, the title format can be changed redefining \Lcs{weatherFormat}. In order to customize the format of the temperature numbers and their units it is necessary to redefine \Lcs{weatherTempFormat} and \Lcs{weatherUnits} respectively.
+
+\begin{BDef}
+\Lcs{*TitleFormat}\quad\Lcs{*SubtitleFormat}\quad\Lcs{*TextFormat}
+\end{BDef}
+The main article that appear in the front page can change their formats. To obtain that there are three standard commands to modify the title, subtitle and text style. You just have to replace the star (\texttt{*}) with first, second or third depending on which article you are editing. Note that first piece of article has no subtitle therefore it does not make any sense to use the non-existent command \Lcs{firstSubtitleFormat}.
+
+\begin{BDef}
+\Lcs{pictureCaptionFormat}\quad\Lcs{pagesFormat}
+\end{BDef}
+Two other elements to configure are the picture captions and the pages or section format in the entire document. To proceed just redefine the macros \Lcs{pictureCaptionFormat} and \Lcs{pagesFormat}.
+\subsubsection{Inside The Magazine}
+\begin{BDef}
+\Lcs{innerTitleFormat}\quad\Lcs{innerSubtitleFormat}\quad\Lcs{innerAuthorFormat}\quad\Lcs{innerPlaceFormat}
+\end{BDef}
+
+The articles inside \textsf{xepersian-magazine} may have a different format from the ones in the front page. To change their title or subtitle format redefine \Lcs{innerTitleFormat} and \Lcs{innerSubtitleFormat}. The article text format matches the document general definition. When using the \Lcs{authorandplace} command, you might want to change the default style. Just renew \Lcs{innerAuthorFormat} and \Lcs{innerPlaceFormat} to get the results.
+
+\begin{BDef}
+\Lcs{timestampTxt}\quad\Lcs{timestampSeparator}\quad\Lcs{timestampFormat}
+\end{BDef}
+
+The \Lcs{timestamp} command described in \autoref{subsub-1} lets you introduce the time of the event before the article text. You can configure its appearance by altering
+several commands: \Lcs{timestampTxt} which means the text after the timestamp; \Lcs{timestampSeparator} which defines the element between the actual timestamp and the beginning of the text and, finally, \Lcs{timestampFormat} to change the entire timestamp format.
+
+\begin{BDef}
+\Lcs{innerTextFinalMark}
+\end{BDef}
+
+\textsf{xepersian-magazine} puts a small black square at the end of the article. As I wanted to create a highly customizable \LaTeX\ class I added the macro \Lcs{innerTextFinalMark} to change this black square. This item will appear always following the last character of the text with the \texttt{\~} character.
+
+\begin{BDef}
+\Lcs{minraggedcols}\quad\Lcs{raggedFormat}
+\end{BDef}
+
+The \Lcs{minraggedcols} counter is used to tell \textsf{xepersian-magazine} when article text should be ragged instead of justified. The counter represents the minimum number of columns that are needed in order to use ragged texts. For example, if \Lcs{minraggedcols} is set to 3, all articles with 3 columns or more will be ragged. Articles with 1, 2 columns will have justified text. By default, \Lcs{minraggedcols} is set to 4.
+
+The \Lcs{raggedFormat} macro can be redefined to fit user ragged style. Default value is \Lcs{RaggedLeft}.
+
+\begin{BDef}
+\Lcs{heading}\quad\Lcs{foot}
+\end{BDef}
+\textsf{xepersian-magazine} includes package \textsf{fancyhdr} for changing headings and footers. Although it is possible to use its own commands to modify \textsf{xepersian-magazine} style, there are two commands to change headings and foot appearance. Place them in the preamble of your \textsf{xepersian-magazine} document.
+
+\begin{BDef}
+\Lcs{heading}\Largb{\Larga{left}}\Largb{\Larga{center}}\Largb{\Larga{right}}\\
+\Lcs{foot}\Largb{\Larga{left}}\Largb{\Larga{center}}\Largb{\Larga{right}}
+\end{BDef}
+
+ If you still prefer to use fancyhdr macros, use them after the \texttt{frontpage} environment.
+
+\textsf{xepersian-magazine} by default places no headers and footers. If you want headers and foooters, then after loading \textsf{xepersian} package, you should write \Lcs{pagestyle}\Largb{fancy} at the preamble of your document.
+
+\subsection{Class Options\label{s-options}}
+The \textsf{xepersian-magazine} class is in itself an alteration of the standard \textsf{article} class, thus it inherits most of its class options but \textsf{twoside}, \textsf{twocolumn}, \textsf{notitlepage} and \textsf{a4paper}. If you find problems when loading other article features, please let me know to fix it. There are also five own options that \textsf{xepersian-magazine} implements.
+\begin{description}
+\item[\textsf{a3paper}] (false) This option makes \textsf{xepersian-magazine} 297 mm width by 420 mm height. This option is implemented because the standard \textsf{article} class does not allow this document size.
+\item[\textsf{9pt}] (false) Allows the 9pt font size that \textsf{article} class does not include (default is 10pt).
+\item[\textsf{columnlines}] columnlines (false) Adds lines between columns in the entire \textsf{xepersian-magazine}. The default line width is 0.1pt but it is possible to change this by setting length \Lcs{columnlines} in the preamble.
+\item[\textsf{showgrid}] (false) This option is only for developing purposes. Because the front page has a personal design using the textpos package, I created this grid to make easier the lay out.
+\end{description}
+
+\section{Typesetting Multiple-choice Questions}
+\subsection{Introduction}
+\textsf{xepersian-multiplechoice} is a package for making multiple choices questionnaires under \LaTeX. A special environment
+allows you to define questions and possible answers. You can specify which
+answers are correct and which are not. \textsf{xepersian-multiplechoice} not only formats the questions
+for you, but also generates a ``form'' (a grid that your students will have to fill
+in), and a ``mask'' (the same grid, only with correct answers properly checked
+in). You can then print the mask on a slide and correct the questionnaires
+more easily by superimposing the mask on top of students' forms.
+
+\subsection{Usage}
+Here we now explain the usage of this package, however there are four example files, namely \texttt{test-question-only.tex}, \texttt{test-solution-form.tex}, \texttt{test-empty-form.tex} and \texttt{test-correction.tex}, available in \textsf{doc} folder that you may want to look at.
+\subsubsection{Loading The Package}
+You can load the package as usual by:
+\begin{BDef}
+\Lcs{usepackage}\OptArgs\Largb{xepersian-multiplechoice}
+\end{BDef}
+The available options are described along the text,
+where appropriate.
+\subsubsection{Creating Questions}
+Here's a simple example demonstrating how to produce a new question:
+\begin{lstlisting}[morekeywords={true,false},caption={Creating Questions With \textsf{xepersian-multiplechoice} Package}]
+\begin{question}{<question>}
+\false <answer1>
+\true <answer2>
+\false <answer3>
+\false <answer4>
+\end{question}
+\begin{correction}
+<real answer and reason why it is true>
+\end{correction}
+\end{lstlisting}
+\subsubsection{The \texttt{question} Environment}
+The \texttt{question} environment allows you to insert questions into your document. It
+takes one mandatory argument which specifies the actual question's text. The
+question will be displayed in a frame box, the size of the line.
+\begin{BDef}
+\Lcs{true}\quad\Lcs{false}
+\end{BDef}
+
+The proposed answers are displayed below the question in a list fashion (the
+question environment is a list-based one). Instead of using \Lcs{item} however, use
+either \Lcs{true} or \Lcs{false} to insert a possible answer.
+
+\subsubsection{Question Numbers}
+The \texttt{question} environment is associated with a \LaTeX\ counter named \texttt{question}.
+This counter stores the number of the next (or current) question. It is initialized
+to 1, and automatically incremented at the end of \texttt{question} environments. You
+might want to use it to format question titles. For instance, you could decide that
+each question belongs to a subsection in the \texttt{article} class, and use something like
+this before each question: \Lcs{subsection*}\Largb{Question \Lcs{thequestion}}
+
+\subsubsection{The Form and the Mask}
+\begin{BDef}
+\Lcs{makeform}\quad\Lcs{makemask}
+\end{BDef}
+Based on the questions appearing in your document, \textsf{xepersian-multiplechoice} has the ability to
+generate a ``form'' (a grid that your students will have to fill in), and a ``mask''
+(the same grid, only with correct answers properly checked in). This can make
+the correction process easier.
+
+To generate a form and a mask, use the macros \Lcs{makeform} and \Lcs{makemask}.
+\textsf{xepersian-multiplechoice} uses two auxiliary files to build them. These files have respectively an
+extension of \texttt{frm} and \texttt{msk}. If you use these macros, you will need two passes of
+\LaTeX\ in order to get a correctly formatted document.
+
+\subsubsection{Typesetting corrections}
+The ``correction'' mode allows you to automatically
+typeset and distribute corrections to your students. These corrections
+are slightly modified versions of your questionnaire: each possible answer is prefixed with a small symbol (a visual clue) indicating whether the answer was correct
+or wrong. In addition, you can typeset explanations below each question.
+
+To activate the correction mode, use the \texttt{correction} option. It is off by
+default.
+
+To typeset explanations below the questions, use the \texttt{correction} environment
+(no argument). The contents of this environment is displayed only in correction
+mode. In normal mode, it is simply discarded.
+
+In addition, note that \textsf{xepersian-multiplechoice} cancels the actions performed by \Lcs{makeform} and
+\Lcs{makemask} in \texttt{correction} mode. This is to avoid further edition of the source
+when typesetting a correction.
+
+\subsection{Important Note}
+Currently, \textsf{xepersian-multiplechoice} requires that you provide a constant number of proposed answers
+across all questions in your \textsf{xepersian-multiplechoice}. This is something natural when you want to
+build forms, but this might me too restrictive otherwise, I'm not sure, so it is
+possible that this restriction will be removed in future versions.
+
+Currently, there is a built-in mechanism for checking that the number of proposed
+answers remains constant: when \textsf{xepersian-multiplechoice} encounters the first occurrence of the
+\texttt{question} environment, it remembers the number of proposed answers from there.
+Afterwards, any noticed difference in subsequent occurrences will generate an error.
+As a consequence, you never have to tell \textsf{xepersian-multiplechoice} explicitly what that number
+is.
+
+\subsection{Customising The Package}
+\subsubsection{The \texttt{question} environment}
+\begin{BDef}
+\Lcs{questionspace}\quad\Lcs{answerstitlefont}\quad\Lcs{answernumberfont}
+\end{BDef}
+\Lcs{questionspace} is the amount of extra vertical space to put under the question,
+before the list of proposed answers. This is a \LaTeX\ length that defaults to \texttt{0pt}.
+
+Before the list of possible answers, a short title is displayed (for English, it
+reads ``Possible answers:''). The \Lcs{answerstitlefont} macro takes one mandatory
+argument which redefines the font to use for the answers title. By default,
+\Lcs{bfseries} is used.
+
+Each proposed answer in the list is numbered automatically (and alphabetically).
+The \Lcs{answernumberfont} macro takes one mandatory argument which
+redefines the font to use for displaying the answer number. By default, \Lcs{bfseries}
+is used.
+
+\subsubsection{The Form and the Mask}
+\begin{BDef}
+\Lcs{headerfont}\quad\Lcs{X}
+\end{BDef}
+
+The \Lcs{headerfont} macro takes one mandatory argument which redefines the font
+to use for the headers (first line and first column) of the form and mask arrays.
+By default, \Lcs{bfseries} is used.
+
+In the mask, correct answers are checked in by filling the corresponding cell
+with an ``X'' character. If you want to change this, call the \Lcs{X} macro with one
+(mandatory) argument.
+
+\subsubsection{The correction}
+\begin{BDef}
+\Lcs{truesymbol}\quad\Lcs{falsesymbol}
+\end{BDef}
+
+In correction mode, labels in front of answers are modified to give a visual clue
+about whether the answer was correct or wrong. By default, a cross and a small
+arrow are used. You can change these symbols by using the \Lcs{truesymbol} and
+
+\Lcs{falsesymbol} macros. For instance, you could give a fancier look to your correction
+by using the \textsf{pifont} package and issuing:
+
+\begin{verbatim}
+\truesymbol{\ding{'063}~}
+\falsesymbol{\ding{'067}~}
+\end{verbatim}
+
+\begin{BDef}
+\Lcs{correctionstyle}
+\end{BDef}
+The appearance of the contents of the correction environment can be adjusted
+by using the \Lcs{correctionstyle} macro. By default, \Lcs{itshape} is used.
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-magazine.cls b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-magazine.cls
deleted file mode 100644
index f17eec1b48f..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-magazine.cls
+++ /dev/null
@@ -1,898 +0,0 @@
-%%
-%% This is file `xepersian-magazine.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-magazine.cls')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-magazine}[2009/01/05 v0.1 Typesetting Persian magazines in XeLaTeX (Author: Vafa Khalighi)]
-\RequirePackage{ifthen}
-\newlength{\xepersian@imgsize}
-\newlength{\xepersian@coltitsize}
-\newlength{\xepersian@pageneed}
-\newlength{\xepersian@pageleft}
-\newlength{\xepersian@indexwidth}
-\newcommand{\xepersian@ncolumns}{0}
-\newlength{\columnlines}
-\setlength{\columnlines}{0 pt} % no lines by default
-\newboolean{xepersian@hyphenatedtitles}
-\setboolean{xepersian@hyphenatedtitles}{true}
-\newboolean{xepersian@ninepoints}
-\setboolean{xepersian@ninepoints}{false}
-\newboolean{xepersian@showgrid}
-\setboolean{xepersian@showgrid}{false}
-\newboolean{xepersian@a3paper}
-\setboolean{xepersian@a3paper}{false}
-\newboolean{xepersian@insidefrontpage}
-\setboolean{xepersian@insidefrontpage}{false}
-\newboolean{xepersian@insideweather}
-\setboolean{xepersian@insideweather}{false}
-\newboolean{xepersian@insideindex}
-\setboolean{xepersian@insideindex}{false}
-\newcount\xepersian@gridrows
-\newcount\xepersian@gridcolumns
-\xepersian@gridrows=40
-\xepersian@gridcolumns=50
-\newcount\minraggedcols
-\minraggedcols=5
-\DeclareOption{10pt}{\PassOptionsToClass{10pt}{article}}
-\DeclareOption{11pt}{\PassOptionsToClass{11pt}{article}}
-\DeclareOption{12pt}{\PassOptionsToClass{12pt}{article}}
-\DeclareOption{twocolumn}%
-{\ClassWarning{xepersian-magazine}{Option 'twocolumn' not available for xepersian-magazine.}}
-\DeclareOption{notitlepage}%
-{\ClassWarning{xepersian-magazine}{Option 'notitlepage' not available for xepersian-magazine.}}
-\DeclareOption{twoside}%
-{\ClassWarning{xepersian-magazine}{Option 'twoside' not available for xepersian-magazine.}}
-\DeclareOption{9pt}{\setboolean{xepersian@ninepoints}{true}}
-\DeclareOption{hyphenatedtitles}{\setboolean{xepersian@hyphenatedtitles}{false}}
-\DeclareOption{columnlines}{\setlength{\columnlines}{0.1 pt}}
-\DeclareOption{showgrid}{\setboolean{xepersian@showgrid}{true}}
-\DeclareOption{a3paper}{\setboolean{xepersian@a3paper}{true}}
-\ProcessOptions\relax
-\LoadClass[10pt, onecolumn, titlepage, a4paper]{article}
-\RequirePackage{ifxetex}
-\RequirePackage{multido}
-\RequirePackage{datetime}
-\RequirePackage{fmultico}
-\RequirePackage{fancyhdr}
-\RequirePackage{fancybox}
-\ifthenelse{\boolean{xepersian@a3paper}}{%
-\RequirePackage[a3paper,headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry}
-}{
-\RequirePackage[headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry}
-}
-\RequirePackage[absolute]{textpos} % absoulte positioning
-\RequirePackage{hyphenat} % when hyphenate
-\RequirePackage{lastpage} % to know the last page number
-\RequirePackage{setspace} % set space between lines
-\RequirePackage{ragged2e}
-\newcommand{\raggedFormat}{\RaggedLeft}
-\AtEndOfClass{\xepersianInit}
-\ifthenelse{\boolean{xepersian@showgrid}}{%
-\AtBeginDocument{
-\grid[show]{\xepersian@gridrows}{\xepersian@gridcolumns}}
-\advance\minraggedcols by -1
-}{%
-\AtBeginDocument{
-\grid[]{\xepersian@gridrows}{\xepersian@gridcolumns}}
-\advance\minraggedcols by -1
-}
-\ifthenelse{\boolean{xepersian@ninepoints}}{
-\renewcommand{\normalsize}{%
- \@setfontsize{\normalsize}{9pt}{10pt}%
- \setlength{\abovedisplayskip}{5pt plus 1pt minus .5pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{3pt plus 1pt minus 2pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\tiny}{\@setfontsize{\tiny}{5pt}{6pt}}
-
-\renewcommand{\scriptsize}{\@setfontsize{\scriptsize}{7pt}{8pt}}
-
-\renewcommand{\small}{%
- \@setfontsize{\small}{8pt}{9pt}%
- \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{2pt plus 1pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\footnotesize}{%
- \@setfontsize{\footnotesize}{8pt}{9pt}%
- \setlength{\abovedisplayskip}{4pt plus 1pt minus .5pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{2pt plus 1pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\large}{\@setfontsize{\large}{11pt}{13pt}}
-\renewcommand{\Large}{\@setfontsize{\Large}{14pt}{18pt}}
-\renewcommand{\LARGE}{\@setfontsize{\LARGE}{18pt}{20pt}}
-\renewcommand{\huge}{\@setfontsize{\huge}{20pt}{25pt}}
-\renewcommand{\Huge}{\@setfontsize{\Huge}{25pt}{30pt}}
-}{}
-\def\customwwwTxt#1{\gdef\@customwwwTxt{\lr{#1}}}
-\newcommand{\xepersian@wwwFormat}{\sffamily}
-\newcommand{\xepersian@www}{%
-\raisebox{-3pt}{{\xepersian@wwwFormat\@customwwwTxt}}
-}
-\newcommand{\xepersian@edition}{ویرایش من}
-\newcommand{\editionFormat}{\large\bfseries\texttt}
-\newcommand{\xepersian@editionLogo}{%
-\raisebox{-3pt}{%
-{\editionFormat\xepersian@edition}%
-}%
-}
-\newcommand{\indexFormat}{\large\bfseries}
-\newcommand{\xepersian@indexFrameTitle}[1]
-{\begin{flushright}{{\indexFormat #1}}\end{flushright}}
-
-\newcommand{\indexEntryFormat}{\normalsize}
-\newcommand{\xepersian@indexEntry}[1]{\begin{minipage}{13\TPHorizModule}%
-{\indexEntryFormat\noindent\ignorespaces{#1}}%
-\end{minipage}}
-\newcommand{\indexEntrySeparator}{\rule{\xepersian@indexwidth}{.1pt}}
-\newcommand{\indexEntryPageTxt}{صفحهٔ}
-\newcommand{\indexEntryPageFormat}{\footnotesize}
-\newcommand{\xepersian@indexEntryPage}[1]{%
-{\indexEntryPageFormat{\indexEntryPageTxt{}~#1}}%
-}
-\newcommand{\headDateTimeFormat}{}
-\newcommand{\xepersian@headDateTime}{%
-\headDateTimeFormat\date\hspace{5pt}$\parallel$\hspace{5pt}%
-\currenttime %
-}
-\newcommand{\weatherFormat}{\bfseries}
-\newcommand{\xepersian@weather}[1]{%
-\noindent{\weatherFormat #1}%
-}
-\newcommand{\weatherTempFormat}{\small}
-\newcommand{\weatherUnits}{\textdegree{}C}
-\newcommand{\xepersian@section}[0]{صفحهٔ جلو}
-\newcommand{\xepersian@headleft}{%
-{\small\bfseries \@custommagazinename}، \date
-}
-\newcommand{\xepersian@headcenter}{%
-\xepersian@section{}
-}
-\newcommand{\xepersian@headright}{%
-\small\xepersian@edition%
-\hspace*{5pt}\beginL\thepage\ / \pageref{LastPage}\endL
-}
-
-\newcommand{\heading}[3]{%
-\renewcommand{\xepersian@headleft}{\beginR#1\endR}%
-\renewcommand{\xepersian@headcenter}{\beginR#2\endR}%
-\renewcommand{\xepersian@headright}{\beginR#3\endR}%
-}
-\newcommand{\xepersian@footright}{%
-{\footnotesize\lr{\copyright\ \@customwwwTxt{}}---تهیه‌شده توسط \lr{\XePersian}}%
-}
-\newcommand{\xepersian@footcenter}{%
-}
-\newcommand{\xepersian@footleft}{%
-}
-
-\newcommand{\foot}[3]{%
-\renewcommand{\xepersian@footleft}{\beginR#1\endR}%
-\renewcommand{\xepersian@footcenter}{\beginR#2\endR}%
-\renewcommand{\xepersian@footright}{\beginR#3\endR}%
-}
-\newcommand{\firstTitleFormat}{\Huge\bfseries\flushright}
-\newcommand{\xepersian@firstTitle}[1]{%
-{%
-\begin{spacing}{2.0}{%
-\noindent\ignorespaces
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\firstTitleFormat #1}}%
-{{\firstTitleFormat #1}}%
-}%
-\end{spacing}%
-}%
-}
-\newcommand{\firstTextFormat}{}
-\newcommand{\xepersian@firstText}[1]{%
-{\noindent\ignorespaces\firstTextFormat #1}%
-}
-\newcommand{\secondTitleFormat}{\LARGE\bfseries}
-\newcommand{\xepersian@secondTitle}[1]{%
-\begin{spacing}{1.5}{%
-\noindent\ignorespaces\flushright
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\secondTitleFormat #1}}%
-{{\secondTitleFormat #1}}%
-}\end{spacing}%
-}
-\newcommand{\secondSubtitleFormat}{\large}
-\newcommand{\xepersian@secondSubtitle}[1]{%
-{\noindent\ignorespaces{\secondSubtitleFormat #1}}%
-}
-\newcommand{\secondTextFormat}{}
-\newcommand{\xepersian@secondText}[1]{%
-\begin{multicols}{2}
-{\noindent\ignorespaces\secondTextFormat #1}
-\end{multicols}
-}
-\newcommand{\thirdTitleFormat}{\Large\bfseries}
-\newcommand{\xepersian@thirdTitle}[1]{%
-\begin{spacing}{1.5}{%
-\noindent\ignorespaces\flushright
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\thirdTitleFormat #1}}%
-{{\thirdTitleFormat #1}}%
-}\end{spacing}%
-}
-\newcommand{\thirdSubtitleFormat}{\large}
-\newcommand{\xepersian@thirdSubtitle}[1]%
-{{\noindent\ignorespaces\thirdSubtitleFormat #1}}
-\newcommand{\thirdTextFormat}{}
-\newcommand{\xepersian@thirdText}[1]{{\thirdTextFormat #1}}
-\newcommand{\pictureCaptionFormat}{\small\bfseries}
-\newcommand{\xepersian@pictureCaption}[1]{%
-{\noindent\pictureCaptionFormat #1}%
-}
-\newcommand{\pagesFormat}{\bfseries\footnotesize}
-\newcommand{\xepersian@pages}[1]%
-{\noindent{\pagesFormat\MakeUppercase{#1}}}
-\newcommand{\innerTitleFormat}{\Huge}
-\newcommand{\xepersian@innerTitle}[1]{%
-\begin{flushright}{%
-\noindent
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\innerTitleFormat #1}}%
-{{\innerTitleFormat #1}}%
-}%
-\\%
-\end{flushright}%
-}
-\newcommand{\innerSubtitleFormat}{\large}
-\newcommand{\xepersian@innerSubtitle}[1]{{\innerSubtitleFormat #1}}
-\newcommand{\timestampTxt}{}
-\newcommand{\timestampSeparator}{|}
-\newcommand{\timestampFormat}{\small}
-\newcommand{\timestamp}[1]{%
-{\timestampFormat%
-#1~\timestampTxt{}%
-}~\timestampSeparator{}%
-}
-\newcommand{\innerAuthorFormat}{\footnotesize}
-\newcommand{\innerPlaceFormat}{\footnotesize\bfseries}
-\newcommand{\innerTextFinalMark}{\rule{0.65em}{0.65em}}
-\newcommand{\editorialTitleFormat}{\LARGE\textit}
-\newcommand{\xepersian@editorialTitle}[1]{\editorialTitleFormat{#1}}
-\newcommand{\editorialAuthorFormat}{\textsc}
-\newcommand{\shortarticleTitleFormat}{\LARGE\bfseries}
-\newcommand{\xepersian@shortarticleTitle}[1]{{\shortarticleTitleFormat #1}}
-\newcommand{\shortarticleSubtitleFormat}{\Large}
-\newcommand{\xepersian@shortarticleSubtitle}[1]{{\shortarticleSubtitleFormat #1}}
-\newcommand{\shortarticleItemTitleFormat}{\large\bfseries}
-\newcommand{\xepersian@shortarticleItemTitle}[1]{{\shortarticleItemTitleFormat #1}}
-\renewcommand{\maketitle}{\begin{titlepage}%
- \let\footnotesize\small
- \let\footnoterule\relax
- \let \footnote \thanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 1em%
- {\LARGE «\xepersian@edition» \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\newcommand{\xepersian@say}[1]{\typeout{#1}}
-\newsavebox{\xepersian@fmbox}
-\newenvironment{xepersian@fmpage}[1]
- {\begin{lrbox}{\xepersian@fmbox}\begin{minipage}{#1}}
- {\end{minipage}\end{lrbox}\fbox{\usebox{\xepersian@fmbox}}}
-\newcommand{\image}[2]{
-\vspace{5pt}
-\setlength{\fboxsep}{1pt}
-\addtolength{\xepersian@imgsize}{\columnwidth}
-\addtolength{\xepersian@imgsize}{-1\columnsep}
-\ifxetex
-\setlength{\xepersian@pageneed}{1.5\xepersian@imgsize}
-\addtolength{\xepersian@pageneed}{50pt}
-\ClassWarning{xepersian-magazine}{%
-Image #1 needs: \the\xepersian@pageneed \space %
-and there is left: \the\page@free\space%
-}
-\ifdim \xepersian@pageneed < \page@free
-
-{\centering\fbox{%
-\includegraphics[width = \xepersian@imgsize,
-height = \xepersian@imgsize,
-keepaspectratio ]{#1}}}
-\xepersian@pictureCaption{#2}
-
-\vspace{5pt}
-\else
-\ClassWarning{Image #1 needs more space!%
- It was not inserted!}
-\fi
-\fi
-}
-\textblockorigin{1cm}{1cm}
-\newdimen\xepersian@dx
-\newdimen\xepersian@dy
-\newcount\xepersian@cx
-\newcount\xepersian@cy
-\newcommand{\grid}[3][]{
-\xepersian@dx=\textwidth%
-\xepersian@dy=\textheight%
-\xepersian@cx=#3% %columns
-\xepersian@cy=#2% %rows
-
-\count1=#3%
-\advance\count1 by 1
-
-\count2=#2%
-\advance\count2 by 1
-
-\divide\xepersian@dx by #3
-\divide\xepersian@dy by #2
-
-\setlength{\TPHorizModule}{\xepersian@dx}
-\setlength{\TPVertModule}{\xepersian@dy}
-
-\ifthenelse{\equal{#1}{show}}{
-\multido{\xepersian@nrow=0+1}{\count2}{
-\begin{textblock}{\xepersian@cx}(0,\xepersian@nrow)
-\rule[0pt]{\textwidth}{.1pt}
-\end{textblock}
-}
-
-\multido{\xepersian@ncol=0+1}{\count1}{
-\begin{textblock}{\xepersian@cy}(\xepersian@ncol,0)
-\rule[0pt]{.1pt}{\textheight}
-\end{textblock}
-}
-}{}
-}
-\newcommand{\xepersianInit}{
-\setlength{\headheight}{14pt}
-\renewcommand{\headrulewidth}{0.4pt}
-
-\pagestyle{fancy}
-
-\setlength{\columnseprule}{\columnlines}
-\setlength{\fboxrule}{0.1 pt}
-
-}
-
-\def\customlogo#1{\gdef\@customlogo{\beginR#1\endR}}
-\def\customminilogo#1{\gdef\@customminilogo{\beginR#1\endR}}
-\def\custommagazinename#1{\gdef\@custommagazinename{\beginR#1\endR}}
-\newcommand{\logo}[0]{
-%% Heading %%
-\noindent\hrulefill\hspace{10pt}\xepersian@editionLogo\hspace{5pt}\xepersian@www
-
-\vspace*{-3pt}
-
-{\Large\bfseries \@customlogo}
-\hrulefill
-\hspace{10pt}\xepersian@headDateTime
-
-}
-\newcommand{\minilogo}[0]{
-{\large\bfseries \@customminilogo}
-
-\vspace*{5pt}
-}
-\newcommand{\mylogo}[1]{
-{\beginR#1\endR}
-
-\noindent
-\xepersian@editionLogo\hspace{5pt}
-\hrulefill
-\hspace{5pt}\xepersian@headDateTime
-}
-\newcommand{\edition}[1]{\renewcommand{\xepersian@edition}{#1}}
-\newenvironment{frontpage}[0]
-{
-\setboolean{xepersian@insidefrontpage}{true}
-\thispagestyle{empty}
-\logo
-
-}%
-{
-\thispagestyle{empty}
-\clearpage
-\newpage
-\fancyhead{}
- \fancyfoot{}
-\fancyhead[RO,LE]{\beginR\xepersian@headright\endR}
-\fancyhead[LO,RE]{\beginR\xepersian@headleft\endR}
- \fancyhead[C]{\beginR\xepersian@headcenter\endR}
- \fancyfoot[RO,LE]{\beginR\xepersian@footright\endR}
- \fancyfoot[LO,RE]{\beginR\xepersian@footleft\endR}
-\fancyfoot[C]{\beginR\xepersian@footcenter\endR}
-\renewcommand{\headrulewidth}{0.4pt}
-\setboolean{xepersian@insidefrontpage}{false}
-
-}
-\newcommand{\firstarticle}[3]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}{%
-\begin{textblock}{24}(22,5)
-}
-{
-\begin{textblock}{28}(22,5)
-}
-\vspace{-7pt}
-\xepersian@firstTitle{#1}
-\end{textblock}
-\begin{textblock}{29}(22,10)
-\vspace{5pt plus 2pt minus 2pt}
-
-\xepersian@firstText{\timestamp{#3}~#2}
-
-\end{textblock}
-
-\begin{textblock}{50}(0,15)
-\rule{50\TPHorizModule}{.3pt}
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\firstarticle\space in a wrong place.\MessageBreak
-\protect\firstarticle\space may only appear inside frontpage environment.
-}{%
-\protect\firstarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\secondarticle}[5]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{33}(2,16)
-\xepersian@pages{#4}
-\vspace{-5pt}
-\xepersian@secondTitle{#1}
-
-\vspace*{5pt}
-
-\xepersian@secondSubtitle{#2}
-
-\vspace*{-7pt}
-
-\xepersian@secondText{\timestamp{#5}~#3}
-
-\end{textblock}
-
-\begin{textblock}{33}(2,25)
-\vspace{5pt plus 2pt minus 2pt}
-
-\noindent\ignorespaces\rule{33\TPHorizModule}{.3pt}
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\secondarticle\space in a wrong place.\MessageBreak
-\protect\secondarticle\space may only appear inside frontpage environment.
-}{%
-\protect\secondarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\thirdarticle}[6]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{32}(2,26)
-\xepersian@pages{#5}
-\vspace{-5pt}
-\setlength{\fboxsep}{1pt}
-\xepersian@thirdTitle{#1}
-
-\vspace*{5pt}
-
-\xepersian@thirdSubtitle{#2}
-
-\vspace*{5pt}
-
-{\noindent\ignorespaces %
-\ifthenelse{\equal{#4}{}}{}
-
-\xepersian@thirdText{\timestamp{#6}~#3}
-
-}
-
-\vspace*{5pt}
-
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\thirdarticle\space in a wrong place.\MessageBreak
-\protect\thirdarticle\space may only appear inside frontpage environment.
-}{%
-\protect\thirdarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\firstimage}[2]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{18}(2,5)
-\setlength{\fboxsep}{1pt}
-\ifxetex % only in PDF
-\noindent\fbox{\includegraphics[width = 18\TPHorizModule ]{#1}}
-\fi
-
-\xepersian@pictureCaption{#2}
-\end{textblock}%
-}
-{\ClassError{xepersian-magazine}{%
-\protect\firstimage\space in a wrong place.\MessageBreak
-\protect\firstimage\space may only appear inside frontpage environment.
-}{%
-\protect\firstimage\space may only appear inside frontpage environment.
-}}
-}%
-\newcommand{\weatheritem}[5]{%
-\ifthenelse{\boolean{xepersian@insideweather}}{
-\begin{minipage}{45pt}
-\ifxetex
-\includegraphics[width=40pt]{#1}
-\fi
-\end{minipage}
-\begin{minipage}{50pt}
-\weatherTempFormat
-#2\\
-\beginL#3 $\|$ #4 \lr{\weatherUnits{}}\endL\\
-#5
-\end{minipage}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\weatheritem\space in a wrong place.\MessageBreak
-\protect\weatheritem\space may only appear inside weatherblock environment.
-}{%
-\protect\weatheritem\space may only appear inside weatherblock environment.\MessageBreak
-weatherblock environment may only appear inside frontpage environment.
-}%
-}
-}
-\newenvironment{weatherblock}[1]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\setboolean{xepersian@insideweather}{true}
-\begin{textblock}{32}(2,38)
-\vspace*{-15pt}
-
-\xepersian@weather{\beginR#1\endR}
-
-\vspace*{5pt}
-
-\noindent\begin{xepersian@fmpage}{32\TPHorizModule}
-\begin{minipage}{32\TPHorizModule}
-\hspace{5pt}
-
-}{%
-\ClassError{xepersian-magazine}{%
-weatherblock in a wrong place.\MessageBreak
-weatherblock may only appear inside frontpage environment.
-}{%
-weatherblock may only appear inside frontpage environment.
-}
-}
-}%
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-\setboolean{xepersian@insideweather}{false}
-}
-\newenvironment{authorblock}[0]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{15}(36,35)
-\setlength{\fboxsep}{5pt}
-\begin{xepersian@fmpage}{13\TPHorizModule}
-\begin{minipage}{13\TPHorizModule}
-\centering
-\minilogo
-
-}{%else
-\ClassError{xepersian-magazine}{%
-authorblock in a wrong place.\MessageBreak
-authorblock may only appear inside frontpage environment.
-}{%
-authorblock may only appear inside frontpage environment.
-}
-}
-}
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-}
-\newenvironment{indexblock}[1]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\setboolean{xepersian@insideindex}{true}%let's in
-\begin{textblock}{15}(36,16)
-\setlength{\xepersian@indexwidth}{13\TPHorizModule}
-\xepersian@indexFrameTitle{#1}
-
-\setlength{\fboxsep}{5pt} %espacio entre el frame y la imagen
-\begin{xepersian@fmpage}{\xepersian@indexwidth}
-\begin{minipage}{\xepersian@indexwidth}
-\vspace*{10pt}
-}{%else
-\ClassError{xepersian-magazine}{%
-indexblock in a wrong place.\MessageBreak
-indexblock may only appear inside frontpage environment.
-}{%
-indexblock may only appear inside frontpage environment.
-}
-}
-}%
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-\setboolean{xepersian@insideindex}{false}%let's out
-}
-\newcommand{\indexitem}[2]
-{
-\ifthenelse{\boolean{xepersian@insideindex}}{
-\xepersian@indexEntry{#1، \xepersian@indexEntryPage{\pageref{#2}}}
-
-\vspace{0.5cm}
-
-\noindent\ignorespaces\indexEntrySeparator{}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\indexitem\space in a wrong place.\MessageBreak
-\protect\indexitem\space may only appear inside indexblock environment.
-}{%
-\protect\indexitem\space may only appear inside indexblock environment.\MessageBreak
-indexblock environment may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\xepersian@inexpandedtitle}[1]{
-\begin{minipage}{.95\textwidth}
-\begin{center}
-\noindent\Large\textbf{\beginR#1\endR}
-\end{center}
-\end{minipage}
-}
-\newcommand{\expandedtitle}[2]{
-\end{multicols}
-
-\begin{center}
-\setlength{\fboxsep}{5pt}
-\setlength{\shadowsize}{2pt}
-\ifthenelse{\equal{#1}{shadowbox}}{%
-\shadowbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{doublebox}}{%
-\doublebox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{ovalbox}}{%
-\ovalbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{Ovalbox}}{%
-\Ovalbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{lines}}{
-\hrule
-\vspace*{8pt}
-\begin{center}
-\noindent\Large\textbf{#2}
-\end{center}
-\vspace*{8pt}
-\hrule
-}{}
-\end{center}
-
-\begin{multicols}{\xepersian@ncolumns{}}
-\ifnum \xepersian@ncolumns > \minraggedcols
-\raggedFormat
-\fi
-}
-\newcommand{\xepersian@incolumntitle}[2]{
-\begin{minipage}{#1}
-\begin{center}
-\noindent\normalsize\textbf{#2}
-\end{center}
-\end{minipage}
-}
-
-\newcommand{\columntitle}[2]{
-\vspace*{5pt}
-\begin{center}
-\setlength{\fboxsep}{5pt}
-\setlength{\shadowsize}{2pt}
-\addtolength{\xepersian@coltitsize}{\columnwidth}
-\addtolength{\xepersian@coltitsize}{-1\columnsep}
-\addtolength{\xepersian@coltitsize}{-5pt}
-\addtolength{\xepersian@coltitsize}{-1\shadowsize}
-\ifthenelse{\equal{#1}{shadowbox}}{%
-\shadowbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{doublebox}}{%
-\doublebox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{ovalbox}}{%
-\ovalbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{Ovalbox}}{%
-\Ovalbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{lines}}{
-\hrule
-\vspace*{5pt}
-\begin{center}
-\noindent\normalsize\textbf{#2}
-\end{center}
-\vspace*{5pt}
-\hrule
-}{}
-\end{center}
-}
-\renewcommand{\date}{%
-\longdate{\today}%
-}
-\newcommand{\authorandplace}[2]{%
-\rightline{%
-{\innerAuthorFormat #1},\space{}{\innerPlaceFormat #2}%
-}%
-\par %
-}
-\newcommand{\newsection}[1]{
-\renewcommand{\xepersian@section}{#1}
-}
-\newenvironment{article}[5]
-{
-\xepersian@say{Adding a new piece of article}
-\renewcommand{\xepersian@ncolumns}{#1}
-\begin{multicols}{#1}[
-\xepersian@pages{#4}
-\xepersian@innerTitle{#2}%
-\xepersian@innerSubtitle{#3}%
-][4cm]%
-\label{#5}
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{~\innerTextFinalMark{}
-\end{multicols}
-}
-\newcommand{\articlesep}{%
-\setlength{\xepersian@pageneed}{16000pt}
-\setlength\xepersian@pageleft{\pagegoal}
-\addtolength\xepersian@pageleft{-\pagetotal}
-
-\xepersian@say{How much left \the\xepersian@pageleft}
-
-\ifdim \xepersian@pageneed < \xepersian@pageleft
-\xepersian@say{Not enough space}
-\else
-\xepersian@say{Adding sep line between articles}
-\vspace*{10pt plus 10pt minus 5pt}
-\hrule
-\vspace*{10pt plus 5pt minus 5pt}
-\fi
-
-}
-\newcommand{\xepersian@editorialTit}[2]{
-\setlength{\arrayrulewidth}{.1pt}
-\begin{center}
-\begin{tabular}{c}
-\noindent
-\xepersian@editorialTitle{#1}
-\vspace{2pt plus 1pt minus 1pt}
-\\
-\hline
-\vspace{2pt plus 1pt minus 1pt}
-\\
-\editorialAuthorFormat{#2}
-\end{tabular}
-\end{center}
-}
-\newenvironment{editorial}[4]
-{
-\xepersian@say{Adding a new editorial}
-\begin{multicols}{#1}[%
-\xepersian@editorialTit{#2}{#3}%
-][4cm]
-\label{#4}
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{
-\end{multicols}
-}
-\newcommand{\xepersian@shortarticleTit}[2]{
-\begin{center}
-\vbox{%
-\noindent
-\xepersian@shortarticleTitle{#1}
-\vspace{4pt plus 2pt minus 2pt}
-\hrule
-\vspace{4pt plus 2pt minus 2pt}
-\xepersian@shortarticleSubtitle{#2}
-}
-\end{center}
-}
-\newenvironment{shortarticle}[4]
-{
-\xepersian@say{Adding a short article block}
-\begin{multicols}{#1}[\xepersian@shortarticleTit{#2}{#3}][4cm] %
- \label{#4}
-\par %
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{
-\end{multicols}
-}
-\newcommand{\shortarticleitem}[2]{
-\goodbreak
-\vspace{5pt plus 3pt minus 3pt}
-{\vbox{\noindent\xepersian@shortarticleItemTitle{#1}}}
-\vspace{5pt plus 3pt minus 3pt}
-{\noindent #2}\\
-}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-magazine.cls'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-mathsdigitspec.sty
deleted file mode 100644
index 845b7398b75..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-mathsdigitspec.sty
+++ /dev/null
@@ -1,106 +0,0 @@
-%%
-%% This is file `xepersian-mathsdigitspec.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-mathsdigitspec.sty')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-mathsdigitspec}
- [2009/04/22 v1.0.1 Unicode Persian maths digits in XeLaTeX (Author: Vafa Khalighi)]
-\@zf@mathfalse
-\def\@preamblecmds{}
-\newcommand\not@onlypreamble[1]{{%
- \def\do##1{\ifx#1##1\else\noexpand\do\noexpand##1\fi}%
- \xdef\@preamblecmds{\@preamblecmds}}}
-\def\gm@notprerr{ can be used only in preamble (\on@line)}
-\AtBeginDocument{%
- \def\do#1{\noexpand\do\noexpand#1}%
- \edef\@preamblecmds{%
- \def\noexpand\do##1{%
- \def##1{\noexpand\PackageError{gmutils/LaTeX}%
- {\noexpand\string##1 \noexpand\gm@notprerr}\noexpand\@eha}}%
- \@preamblecmds}}
-\def\nocite#1{%
- \@bsphack{\setbox0=\hbox{\cite{#1}}}\@esphack}
-\newcommand\xepersian@PackageInfo[1]{\PackageInfo{xepersian-mathsdigitspec}{#1}}
-\newcommand\SetMathCode[4]{%
- \XeTeXmathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
-\newcommand\SetMathCharDef[4]{%
- \XeTeXmathchardef#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
-\newcommand\setdigitfont[2][]{%
- \let\glb@currsize\relax
- \setkeys*[xepersian-mathsdigitspec]{options}{#1}%
- \edef\@tempa{\noexpand\zf@fontspec{%
- \XKV@rm}{#2}}\@tempa
- \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'}
- \DeclareSymbolFont{OPERATORS} {EU1}{\zf@family} {m}{n}
- \SetSymbolFont{OPERATORS}{bold}{EU1}{\zf@family} {bx}{n}
- \DeclareMathAlphabet {\mathit}{EU1}{\zf@family}{m}{it}
- \DeclareSymbolFontAlphabet{\mathrm} {OPERATORS}
- \DeclareMathAlphabet {\mathbf}{EU1}{\zf@family}{bx}{n}
- \SetMathCode{`0}{\mathalpha}{OPERATORS}{"06F0}
- \SetMathCode{`1}{\mathalpha}{OPERATORS}{"06F1}
- \SetMathCode{`2}{\mathalpha}{OPERATORS}{"06F2}
- \SetMathCode{`3}{\mathalpha}{OPERATORS}{"06F3}
- \SetMathCode{`4}{\mathalpha}{OPERATORS}{"06F4}
- \SetMathCode{`5}{\mathalpha}{OPERATORS}{"06F5}
- \SetMathCode{`6}{\mathalpha}{OPERATORS}{"06F6}
- \SetMathCode{`7}{\mathalpha}{OPERATORS}{"06F7}
- \SetMathCode{`8}{\mathalpha}{OPERATORS}{"06F8}
- \SetMathCode{`9}{\mathalpha}{OPERATORS}{"06F9}
- \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}
-}
-\ifx\newcommand\undefined\else
- \newcommand{\ZifferAn}{}
-\fi
-\mathchardef\ziffer@DotOri="013A
-{\ZifferAn
- \catcode`\.=\active\gdef.{\begingroup\obeyspaces\futurelet\n\ziffer@dcheck}}
-\def\ziffer@dcheck{\ziffer@check\ZifferLeer\ziffer@DotOri}
-\def\ziffer@check#1#2{%
- \ifx\n1\endgroup#1\else
- \ifx\n2\endgroup#1\else
- \ifx\n3\endgroup#1\else
- \ifx\n4\endgroup#1\else
- \ifx\n5\endgroup#1\else
- \ifx\n6\endgroup#1\else
- \ifx\n7\endgroup#1\else
- \ifx\n8\endgroup#1\else
- \ifx\n9\endgroup#1\else
- \ifx\n0\endgroup#1\else
- \endgroup#2%
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi}
-\mathcode`.="8000\relax
-\def\ZifferLeer{\ifx\decimalseparator\undefied .\else \decimalseparator\fi}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-mathsdigitspec.sty'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-multiplechoice.sty b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-multiplechoice.sty
deleted file mode 100644
index 226ccacf409..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-multiplechoice.sty
+++ /dev/null
@@ -1,164 +0,0 @@
-%%
-%% This is file `xepersian-multiplechoice.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-multiplechoice.sty')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-multiplechoice}[2009/03/21 v0.1
- Multiple Choice Questionnaire class for Persian in XeLaTeX (Author: Vafa Khalighi)]
-\RequirePackage{pifont}
-\RequirePackage{fullpage}
-\RequirePackage{ifthen}
-\RequirePackage{calc}
-\RequirePackage{verbatim}
-\RequirePackage{fmultico}
-\def\@headerfont{\bfseries}
-\newcommand\headerfont[1]{\gdef\@headerfont{#1}}
-\def\@X{X}
-\newcommand\X[1]{\gdef\@X{#1}}
-\def\pbs#1{\let\tmp=\\#1\let\\=\tmp}
-\newcommand\makeform@nocorrection{%
- \addtocontents{frm}{\protect\end{tabular}}
- \@starttoc{frm}}
-\newcommand\makeform@correction{%
- \addtocontents{frm}{\protect\end{tabular}}}
-\newcommand\makemask@nocorrection{%
- \addtocontents{msk}{\protect\end{tabular}}
- \@starttoc{msk}}
-\newcommand\makemask@correction{%
- \addtocontents{msk}{\protect\end{tabular}}}
-\newlength\questionspace
-\setlength\questionspace{0pt}
-\newcommand\answerstitle[1]{\gdef\@answerstitle{#1}}
-\def\@answerstitlefont{\bfseries}
-\newcommand\answerstitlefont[1]{\gdef\@answerstitlefont{#1}}
-\def\@answernumberfont{\bfseries}
-\newcommand\answernumberfont[1]{\gdef\@answernumberfont{#1}}
-\newcounter{question}\stepcounter{question}
-\newcounter{@choice}
-\def\@initorcheck{%
- \xdef\@choices{\the@choice}%
- \setcounter{@choice}{1}%
- \gdef\@arraydesc{|l||}%
- \gdef\@headerline{}%
- \whiledo{\not{\value{@choice}>\@choices}}{
- \xdef\@arraydesc{\@arraydesc c|}
- \def\@appendheader{\g@addto@macro\@headerline}
- \@appendheader{&\protect\@headerfont}
- \edef\@the@choice{{\alph{@choice}}}
- \expandafter\@appendheader\@the@choice
- \stepcounter{@choice}}%
- \addtocontents{frm}{%
- \protect\begin{tabular}{\@arraydesc}
- \protect\hline
- \@headerline\protect\\\protect\hline\protect\hline}%
- \addtocontents{msk}{%
- \protect\begin{tabular}{\@arraydesc}
- \protect\hline
- \@headerline\protect\\\protect\hline\protect\hline}%
- \gdef\@initorcheck{%
- \ifthenelse{\value{@choice} = \@choices}{}{%
- \ClassError{xepersian-multiplechoice}{Question \thequestion: wrong number of choices
- (\the@choice\space instead of \@choices)}{%
- Questions must all have the same number of proposed answers.%
- \MessageBreak
- Type X <return> to quit, fix your MCQ (multiple choice question) and rerun XeLaTeX.}}}}
-\newenvironment{question}[1]{%
- %% \begin{question}
- \begin{minipage}{\textwidth}
- \xdef\@formanswerline{\@questionheader}%
- \xdef\@maskanswerline{\@questionheader}%
- \fbox{\parbox[c]{\linewidth}{#1}}
- \vspace\questionspace\par
- {\@answerstitlefont\@answerstitle}
-\begin{multicols}{4}
- \begin{list}{\@answernumberfont\alph{@choice})~}{\usecounter{@choice}}}{%
- %% \end{question}
- \end{list}
-\end{multicols}
- \@initorcheck%
- \addtocontents{frm}{\@formanswerline\protect\\\protect\hline}%
- \addtocontents{msk}{\@maskanswerline\protect\\\protect\hline}%
- \end{minipage}
- \stepcounter{question}}
-\def\@truesymbol{\ding{52}~}
-\def\@falsesymbol{\ding{56}~}
-\newcommand\truesymbol[1]{\gdef\@truesymbol{#1}}
-\newcommand\falsesymbol[1]{\gdef\@falsesymbol{#1}}
-\def\@true@nocorrection{\item}
-\def\@false@nocorrection{\item}
-\def\@true@correction{\item[\@truesymbol\refstepcounter{@choice}]}
-\def\@false@correction{\item[\@falsesymbol\refstepcounter{@choice}]}
-\newcommand\true{%
- \xdef\@formanswerline{\@formanswerline&}%
- \xdef\@maskanswerline{\@maskanswerline&\@X}%
- \@true}%
-\newcommand\false{%
- \xdef\@formanswerline{\@formanswerline&}%
- \xdef\@maskanswerline{\@maskanswerline&}%
- \@false}%
-\def\@correctionstyle{\itshape}
-\newcommand\correctionstyle[1]{\gdef\@correctionstyle{#1}}
-\newenvironment{@correction}{\@correctionstyle}{}
- \def\@questionheader{سؤال \thequestion}
- \answerstitle{جوابهای ممکن:}
-\DeclareOption{nocorrection}{%
- \let\@true\@true@nocorrection
- \let\@false\@false@nocorrection
- \let\correction\comment
- \let\endcorrection\endcomment
- \def\makeform{\makeform@nocorrection}
- \def\makemask{\makemask@nocorrection}}
-\DeclareOption{correction}{%
- \let\@true\@true@correction
- \let\@false\@false@correction
- \let\correction\@correction
- \let\endcorrection\end@correction
- \def\makeform{\makeform@correction}
- \def\makemask{\makemask@correction}}
-\ExecuteOptions{nocorrection}
-\newcommand\questiontitle[1]{\gdef\@questiontitle{#1}}
-\def\@questiontitlefont{\bfseries}
-\newcommand\questiontitlefont[1]{\gdef\@questiontitlefont{#1}}
-\newlength\questiontitlespace
-\setlength\questiontitlespace{5pt}
-\newlength\questionsepspace
-\setlength\questionsepspace{20pt}
-\gdef\@questionsepspace{0pt}
-\let\old@question\question
-\let\old@endquestion\endquestion
-\renewenvironment{question}[1]{%
- %% \begin{question}
- \vspace\@questionsepspace
- \fbox{\parbox[c]{0.25\linewidth}{\@questiontitlefont\@questiontitle}}
- \nopagebreak\vspace\questiontitlespace\par
- \old@question{#1}}{%
- %% \end{question}
- \old@endquestion
- \gdef\@questionsepspace{\questionsepspace}}
- \questiontitle{سؤال \thequestion:}
-\ProcessOptions
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-multiplechoice.sty'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-persiancal.sty b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-persiancal.sty
deleted file mode 100644
index c3ed422f0d6..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-persiancal.sty
+++ /dev/null
@@ -1,197 +0,0 @@
-%%
-%% This is file `xepersian-persiancal.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-persiancal.sty')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-persiancal}
-
-\newif\ifXePersian@leap \newif\ifXePersian@kabiseh
-\newcount\XePersian@i \newcount\XePersian@y \newcount\XePersian@m \newcount\XePersian@d
-\newcount\XePersian@latini \newcount\XePersian@persiani
-\newcount\XePersian@latinii \newcount\XePersian@persianii
-\newcount\XePersian@latiniii \newcount\XePersian@persianiii
-\newcount\XePersian@latiniv \newcount\XePersian@persianiv
-\newcount\XePersian@latinv \newcount\XePersian@persianv
-\newcount\XePersian@latinvi \newcount\XePersian@persianvi
-\newcount\XePersian@latinvii \newcount\XePersian@persianvii
-\newcount\XePersian@latinviii \newcount\XePersian@persianviii
-\newcount\XePersian@latinix \newcount\XePersian@persianix
-\newcount\XePersian@latinx \newcount\XePersian@persianx
-\newcount\XePersian@latinxi \newcount\XePersian@persianxi
-\newcount\XePersian@latinxii \newcount\XePersian@persianxii
- \newcount\XePersian@persianxiii
-
-\newcount\XePersian@temp
-\newcount\XePersian@temptwo
-\newcount\XePersian@tempthree
-\newcount\XePersian@yModHundred
-\newcount\XePersian@thirtytwo
-\newcount\XePersian@dn
-\newcount\XePersian@sn
-\newcount\XePersian@mminusone
-
-\def\persiantoday{%
-\XePersian@y=\year \XePersian@m=\month \XePersian@d=\day
-\XePersian@temp=\XePersian@y
-\divide\XePersian@temp by 100\relax
-\multiply\XePersian@temp by 100\relax
-\XePersian@yModHundred=\XePersian@y
-\advance\XePersian@yModHundred by -\XePersian@temp\relax
-\ifodd\XePersian@yModHundred
- \XePersian@leapfalse
-\else
- \XePersian@temp=\XePersian@yModHundred
- \divide\XePersian@temp by 2\relax
- \ifodd\XePersian@temp\XePersian@leapfalse
- \else
- \ifnum\XePersian@yModHundred=0%
- \XePersian@temp=\XePersian@y
- \divide\XePersian@temp by 400\relax
- \multiply\XePersian@temp by 400\relax
- \ifnum\XePersian@y=\XePersian@temp\XePersian@leaptrue\else\XePersian@leapfalse\fi
- \else\XePersian@leaptrue
- \fi
- \fi
-\fi
-\XePersian@latini=31\relax
-\ifXePersian@leap
- \XePersian@latinii = 29\relax
-\else
- \XePersian@latinii = 28\relax
-\fi
-\XePersian@latiniii = 31\relax
-\XePersian@latiniv = 30\relax
-\XePersian@latinv = 31\relax
-\XePersian@latinvi = 30\relax
-\XePersian@latinvii = 31\relax
-\XePersian@latinviii = 31\relax
-\XePersian@latinix = 30\relax
-\XePersian@latinx = 31\relax
-\XePersian@latinxi = 30\relax
-\XePersian@latinxii = 31\relax
-\XePersian@thirtytwo=32\relax
-\XePersian@temp=\XePersian@y
-\advance\XePersian@temp by -17\relax
-\XePersian@temptwo=\XePersian@temp
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 33\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\ifnum\XePersian@temp=\XePersian@thirtytwo\XePersian@kabisehfalse
-\else
- \XePersian@temptwo=\XePersian@temp
- \divide\XePersian@temptwo by 4\relax
- \multiply\XePersian@temptwo by 4\relax
- \advance\XePersian@temp by -\XePersian@temptwo
- \ifnum\XePersian@temp=\z@\XePersian@kabisehtrue\else\XePersian@kabisehfalse\fi
-\fi
-\XePersian@tempthree=\XePersian@y % Number of Leap years
-\advance\XePersian@tempthree by -1
-\XePersian@temp=\XePersian@tempthree % T := (MY-1) div 4
-\divide\XePersian@temp by 4\relax
-\XePersian@temptwo=\XePersian@tempthree % T := T - ((MY-1) div 100)
-\divide\XePersian@temptwo by 100\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\XePersian@temptwo=\XePersian@tempthree % T := T + ((MY-1) div 400)
-\divide\XePersian@temptwo by 400\relax
-\advance\XePersian@temp by \XePersian@temptwo
-\advance\XePersian@tempthree by -611 % Number of Kabise years
-\XePersian@temptwo=\XePersian@tempthree % T := T - ((SY+10) div 33) * 8
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 8\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\XePersian@temptwo=\XePersian@tempthree %
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 33\relax
-\advance\XePersian@tempthree by -\XePersian@temptwo
-\ifnum\XePersian@tempthree=32\advance\XePersian@temp by 1\fi % if (SY+10) mod 33=32 then Inc(T);
-\divide\XePersian@tempthree by 4\relax % T := T - ((SY+10) mod 33) div 4
-\advance\XePersian@temp by -\XePersian@tempthree
-\advance\XePersian@temp by -137 % T := T - 137 Adjust the value
-\XePersian@persiani=31
-\advance\XePersian@persiani by -\XePersian@temp % now 31 - T is the persiani
-\XePersian@persianii = 30\relax
-\ifXePersian@kabiseh
- \XePersian@persianiii = 30\relax
-\else
- \XePersian@persianiii = 29\relax
-\fi
-\XePersian@persianiv = 31\relax
-\XePersian@persianv = 31\relax
-\XePersian@persianvi = 31\relax
-\XePersian@persianvii = 31\relax
-\XePersian@persianviii= 31\relax
-\XePersian@persianix = 31\relax
-\XePersian@persianx = 30\relax
-\XePersian@persianxi = 30\relax
-\XePersian@persianxii = 30\relax
-\XePersian@persianxiii= 30\relax
-\XePersian@dn= 0\relax
-\XePersian@sn= 0\relax
-\XePersian@mminusone=\XePersian@m
-\advance\XePersian@mminusone by -1\relax
-\XePersian@i=0\relax
-\ifnum\XePersian@i < \XePersian@mminusone
-\loop
-\advance \XePersian@i by 1\relax
-\advance\XePersian@dn by \csname XePersian@latin\romannumeral\the\XePersian@i\endcsname
-\ifnum\XePersian@i<\XePersian@mminusone \repeat
-\fi
-\advance \XePersian@dn by \XePersian@d
-\XePersian@i=1\relax
-\XePersian@sn = \XePersian@persiani
-\ifnum \XePersian@sn<\XePersian@dn
-\loop
-\advance \XePersian@i by 1\relax
-\advance\XePersian@sn by \csname XePersian@persian\romannumeral\the\XePersian@i\endcsname
-\ifnum \XePersian@sn<\XePersian@dn \repeat
-\fi
-\ifnum \XePersian@i < 4
- \XePersian@m = 9 \advance\XePersian@m by \XePersian@i
- \advance \XePersian@y by -622\relax
-\else
- \XePersian@m = \XePersian@i \advance \XePersian@m by -3\relax
- \advance \XePersian@y by -621\relax
-\fi
-\advance\XePersian@sn by -\csname XePersian@persian\romannumeral\the\XePersian@i%
-\endcsname
-\ifnum\XePersian@i = 1
- \XePersian@d = \XePersian@dn \advance \XePersian@d by 30 \advance\XePersian@d by -\XePersian@persiani
-\else
- \XePersian@d = \XePersian@dn \advance \XePersian@d by -\XePersian@sn
-\fi
-\beginL\number\XePersian@d\endL\space%
-\persianmonth{\XePersian@m}\space\beginL\number\XePersian@y\endL%
-}
-\def\persianmonth#1{\ifcase#1\or فروردین\or
-اردیبهشت\or
-خرداد\or تیر\or
-مرداد\or
-شهریور\or مهر\or
-آبان\or آذر\or
-دی\or بهمن\or
-اسفند\fi}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-persiancal.sty'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis-xepersian.def b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis-xepersian.def
deleted file mode 100644
index 2c416f9af98..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis-xepersian.def
+++ /dev/null
@@ -1,36 +0,0 @@
-%%
-%% This is file `xepersian-thesis-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-thesis-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-thesis-xepersian.def'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis.cls b/Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis.cls
deleted file mode 100644
index f80b47ebc52..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian-thesis.cls
+++ /dev/null
@@ -1,174 +0,0 @@
-%%
-%% This is file `xepersian-thesis.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-thesis.cls')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-thesis}
- [2009/01/05 v0.1
- Persian thesis document class in XeLaTeX]
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
-\ProcessOptions
-\LoadClass{report}
-\def\university#1{\gdef\@university{#1}}
-\def\department#1{\gdef\@department{#1}}
-\def\degree#1{\gdef\@degree{#1}}
-\def\thesisdate#1{\gdef\@thesisdate{#1}}
-\def\supervisor#1{\gdef\@supervisor{#1}}
-\def\city#1{\gdef\@city{#1}}
-
-\def\latintitle#1{\gdef\@latintitle{#1}}
-\def\latinauthor#1{\gdef\@latinauthor{#1}}
-\def\latindegree#1{\gdef\@latindegree{#1}}
-\def\latindepartment#1{\gdef\@latindepartment{#1}}
-\def\latinthesisdate#1{\gdef\@latinthesisdate{#1}}
-\def\latinsupervisor#1{\gdef\@latinsupervisor{#1}}
-\def\latincity#1{\gdef\@latincity{#1}}
-\def\latinuniversity#1{\gdef\@latinuniversity{#1}}
-
-\def\maketitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-{\Huge\bfseries \@title}\par
-\vskip 1cm
-{\large%
- \by}\par
-{\Large\bfseries \@author}\par
-\vskip 5mm
-{\large\bfseries\writtenfor
-\par
-\@degree}
-\par
-\vskip 1cm
-{\large
- \undersupervision\par
-\Large\bfseries \@supervisor}
-\par
-\vskip 1cm
-{\large \@thesisdate}
-\par
-\vskip 1cm
-{\large\bfseries\departmentof\space\@department}
-\par
-{\large\bfseries\universityof\space\@university \par\@city}
-\vfill
-\end{titlepage}%
-}
-
-\def\abstractpage{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\large{\bfseries \@title} \\}
-\end{center}
-\par
-\begin{abstract}}
-\def\endabstractpage{\end{abstract}
-\newpage
-}
-
-\def\latinabstract{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\Large\bfseries \@latintitle \\[5mm]}
-{\bfseries Abstract}
-\end{center}
-\vspace{5mm}}
-
-\def\endlatinabstract{\newpage}
-
-\def\acknowledgementpage{\newpage
-\thispagestyle{empty}
-\centerline{\Large \bfseries\acknowledgementname}
-\vspace{1cm}
-\par\noindent}
-\def\endacknowledgementpage{\newpage}
-
-\def\titlepage{\newpage\centering
- \thispagestyle{empty}
- \parindent 0pt \parskip 10pt plus 1fil minus 1fil
- \def\baselinestretch{1}\@normalsize\vbox to \vsize\bgroup\vbox to 9in\bgroup}
-\def\endtitlepage{\par\kern 0pt\egroup\vss\egroup\newpage}
-
-\def\signature#1#2{\par\noindent#1\dotfill\null\\*
- {\raggedright #2\par}}
-
-\def\abstract{\subsection*{\abstractname}\small
-\@normalsize}
-\def\endabstract{\par}
-
-\pagenumbering{harfi}
-\let\ol@chapter\@chapter
-\def\@chapter{%
- \ifnum\c@chapter=0 \pagenumbering{arabic}\setcounter{page}{1}\fi
- \ol@chapter}
-
-\def\keywords#1{\par \vspace{5mm}
-{\textbf{واژه‌های کلیدی:}} {\textit{ #1}}}
-
-\def\latinkeywords#1{\par \vspace{5mm}
-\noindent {\textbf{Keywords:}} {\textit{ #1}}}
-
-\font\titlefont=cmssbx10 scaled 2074
-\font\supervisorfont=cmbxti10
-\def\makelatintitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-\addtolength{\baselineskip}{5mm}
-{\titlefont \@latintitle} \par
-\addtolength{\baselineskip}{-5mm}
-\vskip 1cm
-{\bfseries\latinby}\par
-{\Large\bfseries \@latinauthor}\par
-\vskip 5mm
-{\latinwrittenfor\par
-\large\@latindegree}
-\par
-\vskip 1cm
-Under supervision of \\
-{\supervisorfont\@latinsupervisor}
-\par
-\vskip 1cm
-{\@latinthesisdate}
-\par
-\vskip 1cm
-\large\bfseries
-\@latindepartment\space Department
-\par
-\@latinuniversity \par\@latincity
-\vfill
-\end{titlepage}%
-}
-
-\def\acknowledgementname{قدردانی}
-\def\by{توسط}
-\def\writtenfor{ رسالهٔ ارائه شده به عنوان بخشی از ملزومات برای دریافت درجهٔ}
-\def\undersupervision{زیر نظر}
-\def\departmentof{دانشکدهٔ}
-\def\universityof{دانشگاه}
-\def\latinby{by}
-\def\latinwrittenfor{Submitted in Partial Fulfillment\\ of the Requirements\\ for the Degree of}
-\def\latinundersupervision{Under supervision of}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-thesis.cls'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/doc/xelatex/xepersian/xepersian.dtx
deleted file mode 100644
index d63c4bd5c6e..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian.dtx
+++ /dev/null
@@ -1,9100 +0,0 @@
-% \iffalse
-%<*internal>
-\iffalse
-%</internal>
-%<*readme>
-_________________
-The XePersian package
-v1.0.3
-
-XePersian is a package written for XeLaTeX that allows users to typeset
-Persian easily. The current version is 1.0.1 and it will be developed to
- meet the needs of Persian typesetting properly.
-
-The XePersian package is independent of any operating system, meaning it
-will work on all operating systems.
-
-There are some excellent fonts made by IRMUG (Iranian Mac User Group) which you can download
-from http://wiki.irmug.org/index.php/X_Series_2#Download_fonts and
-http://wiki.irmug.org/index.php/XWZar
-
-
-This version fixes all known bugs and adds heaps of new things.
-
-______________
-Vafa Khalighi
-vafa@users.berlios.de
-
-Copyright 2008-2009
-Distributed under the LaTeX Project Public License
-%</readme>
-%<*internal>
-\fi
-%
-%</internal>
-%
-%<*internal>
-\begingroup
-%</internal>
-%<*batchfile>
-\input docstrip.tex
-\keepsilent
-\preamble
-
- __________________________________
- Copyright © 2008-2009 Vafa Khalighi
-
- License information appended.
-
-
-\endpreamble
-\postamble
-
-Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-
-Distributable under the LaTeX Project Public License,
-version 1.3c or higher (your choice). The latest version of
-this license is at: http://www.latex-project.org/lppl.txt
-
-This work is "maintained" (as per LPPL maintenance status)
-by Vafa Khalighi.
-
-
-
-
-\endpostamble
-\askforoverwritefalse
-\generate{\file{xepersian.sty}{\from{xepersian.dtx}{xepersian.sty}}}
-\generate{\file{algorithmic-xepersian.def}{\from{xepersian.dtx}{algorithmic-xepersian.def}}}
-\generate{\file{algorithm-xepersian.def}{\from{xepersian.dtx}{algorithm-xepersian.def}}}
-\generate{\file{amsart-xepersian.def}{\from{xepersian.dtx}{amsart-xepersian.def}}}
-\generate{\file{amsbook-xepersian.def}{\from{xepersian.dtx}{amsbook-xepersian.def}}}
-\generate{\file{article-xepersian.def}{\from{xepersian.dtx}{article-xepersian.def}}}
-\generate{\file{backref-xepersian.def}{\from{xepersian.dtx}{backref-xepersian.def}}}
-\generate{\file{bidibeamer-xepersian.def}{\from{xepersian.dtx}{bidibeamer-xepersian.def}}}
-\generate{\file{bidimoderncv-xepersian.def}{\from{xepersian.dtx}{bidimoderncv-xepersian.def}}}
-\generate{\file{bookest-xepersian.def}{\from{xepersian.dtx}{bookest-xepersian.def}}}
-\generate{\file{book-xepersian.def}{\from{xepersian.dtx}{book-xepersian.def}}}
-\generate{\file{footnote-bidi-xepersian.def}{\from{xepersian.dtx}{footnote-bidi-xepersian.def}}}
-\generate{\file{localise-xepersian.def}{\from{xepersian.dtx}{localise-xepersian.def}}}
-\generate{\file{commands-ltx.def}{\from{xepersian.dtx}{commands-ltx.def}}}
-\generate{\file{commands-xepersian.def}{\from{xepersian.dtx}{commands-xepersian.def}}}
-\generate{\file{enumerate-xepersian.def}{\from{xepersian.dtx}{enumerate-xepersian.def}}}
-\generate{\file{environments-ltx.def}{\from{xepersian.dtx}{environments-ltx.def}}}
-\generate{\file{environments-xepersian.def}{\from{xepersian.dtx}{environments-xepersian.def}}}
-\generate{\file{extbook-xepersian.def}{\from{xepersian.dtx}{extbook-xepersian.def}}}
-\generate{\file{kashida-xepersian.def}{\from{xepersian.dtx}{kashida-xepersian.def}}}
-\generate{\file{listings-xepersian.def}{\from{xepersian.dtx}{listings-xepersian.def}}}
-\generate{\file{memoir-xepersian.def}{\from{xepersian.dtx}{memoir-xepersian.def}}}
-\generate{\file{minitoc-xepersian.def}{\from{xepersian.dtx}{minitoc-xepersian.def}}}
-\generate{\file{misccommandsenvironments-ltx.def}{\from{xepersian.dtx}{misccommandsenvironments-ltx.def}}}
-\generate{\file{refrep-xepersian.def}{\from{xepersian.dtx}{refrep-xepersian.def}}}
-\generate{\file{report-xepersian.def}{\from{xepersian.dtx}{report-xepersian.def}}}
-\generate{\file{rapport3-xepersian.def}{\from{xepersian.dtx}{rapport3-xepersian.def}}}
-\generate{\file{scrartcl-xepersian.def}{\from{xepersian.dtx}{scrartcl-xepersian.def}}}
-\generate{\file{scrbook-xepersian.def}{\from{xepersian.dtx}{scrbook-xepersian.def}}}
-\generate{\file{scrreprt-xepersian.def}{\from{xepersian.dtx}{scrreprt-xepersian.def}}}
-\generate{\file{tocloft-xepersian.def}{\from{xepersian.dtx}{tocloft-xepersian.def}}}
-\generate{\file{xepersian-magazine.cls}{\from{xepersian.dtx}{xepersian-magazine.cls}}}
-\generate{\file{xepersian-mathsdigitspec.sty}{\from{xepersian.dtx}{xepersian-mathsdigitspec.sty}}}
-\generate{\file{xepersian-multiplechoice.sty}{\from{xepersian.dtx}{xepersian-multiplechoice.sty}}}
-\generate{\file{xepersian-persiancal.sty}{\from{xepersian.dtx}{xepersian-persiancal.sty}}}
-\generate{\file{xepersian-thesis.cls}{\from{xepersian.dtx}{xepersian-thesis.cls}}}
-\generate{\file{xepersian-thesis-xepersian.def}{\from{xepersian.dtx}{xepersian-thesis-xepersian.def}}}
-\generate{\file{acm-fa.bst}{\from{xepersian.dtx}{acm-fa.bst}}}
-\generate{\file{ieeetr-fa.bst}{\from{xepersian.dtx}{ieeetr-fa.bst}}}
-\generate{\file{plain-fa.bst}{\from{xepersian.dtx}{plain-fa.bst}}}
-\generate{\file{unsrt-fa.bst}{\from{xepersian.dtx}{unsrt-fa.bst}}}
-%</batchfile>
-%<batchfile>\endbatchfile
-%<*internal>
-\generate{\file{xepersian.ins}{\from{xepersian.dtx}{batchfile}}}
-\nopreamble\nopostamble
-\generate{\file{README.txt}{\from{xepersian.dtx}{readme}}}
-\generate{\file{parsidigits.map}{\from{xepersian.dtx}{parsidigits.map}}}
-\generate{\file{txt2maths.map}{\from{xepersian.dtx}{txt2maths.map}}}
-\generate{\file{thesis-sample.tex}{\from{xepersian.dtx}{thesis-sample.tex}}}
-\generate{\file{magazine-sample.tex}{\from{xepersian.dtx}{magazine-sample.tex}}}
-\generate{\file{test-correction.tex}{\from{xepersian.dtx}{test-correction.tex}}}
-\generate{\file{test-empty-form.tex}{\from{xepersian.dtx}{test-empty-form.tex}}}
-\generate{\file{test-question-only.tex}{\from{xepersian.dtx}{test-question-only.tex}}}
-\generate{\file{test-solution-form.tex}{\from{xepersian.dtx}{test-solution-form.tex}}}
-\generate{\file{acm-fa-output.tex}{\from{xepersian.dtx}{acm-fa-output.tex}}}
-\generate{\file{bibtex-example.tex}{\from{xepersian.dtx}{bibtex-example.tex}}}
-\generate{\file{ieeetr-fa-output.tex}{\from{xepersian.dtx}{ieeetr-fa-output.tex}}}
-\generate{\file{MyReferences.bib}{\from{xepersian.dtx}{MyReferences.bib}}}
-\generate{\file{plain-fa-output.tex}{\from{xepersian.dtx}{plain-fa-output.tex}}}
-\endgroup
-%</internal>
-%
-%<*driver>
-\documentclass{ltxdoc}
-\usepackage[sc,osf]{mathpazo}
-\usepackage{fvrb-ex}
-\EnableCrossrefs
-\CodelineIndex
-\RecordChanges
-\OnlyDescription
-
-\begin{document}
- \DocInput{xepersian.dtx}
-\end{document}
-%</driver>
-%
-%
-% \fi
-%
-% \GetFileInfo{bidi.sty}
-% \makeatletter
-%
-%\title{The \textsf{XePersian} Package}
-%\author{Vafa Khalighi\\
-%\footnotesize\texttt{<vafa@users.berlios.de>}}
-%
-% \StopEventually{}
-% \section{Implementation}
-% \part{xepersian.sty}
-%\iffalse
-%<*xepersian.sty>
-% \fi
-%
-%
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v1.0.3}
-\def\xepersianrevision{revision 93}
-\def\xepersiandate{2009/08/09}
-\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space <\xepersianrevision>
- Persian typesetting in XeLaTeX]
-\DeclareOption{Kashida}{\input{kashida-xepersian.def}}
-\DeclareOption{localise}{\input{localise-xepersian.def}}
-\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{bidi}}
-\ProcessOptions\relax
-\newcommand\xepersian@isloaded[2][]{
- \expandafter\ifx\csname if@xepersian@#2loaded@\endcsname\relax
- \expandafter\newif\csname if@xepersian@#2loaded@\endcsname
- \fi
- \@ifpackageloaded{#2}
- {\csname @xepersian@#2loaded@true\endcsname #1}
- {\csname @xepersian@#2loaded@false\endcsname}}
-\xepersian@isloaded{xunicode}
-\AtBeginDocument{
- \if@xepersian@xunicodeloaded@
- \xepersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package xunicode before xepersian package. Please load package xunicode after xepersian package, and then try to run xelatex on your document again}{}]{xunicode}
- \fi%
-}
-\AtBeginDocument{\ifdefined\persianfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the main text of the document. Please specify a font for the main text of the document by using \settextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\latinfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the Latin texts of the document. Please specify a font for the Latin texts of the document by using \setlatintextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\decimalseparator\relax\else%
-\PackageWarning{xepersian}{“You have not specified any font for the digits in maths mode and so the digits in maths mode will appear Latin. If you would like to have Persian digits in maths mode, then please specify a font for the digits in maths mode by using \setdigitfont\space CS, and then try to run xelatex on your document again”}%
-\fi}
-\RequirePackage[RTLdocument]{bidi}
-\RequirePackage{fontspec}
-\RequirePackage{xepersian-persiancal}
-\RequirePackage{xepersian-mathsdigitspec}
-\RequirePackage{etoolbox}
-\AtBeginDocument{\special{pdf: docinfo <<
- /Creator (X∃Persian \xepersianversion\space <\xepersianrevision> Copyright © 2008-2009 Vafa Khalighi)
- >>}}
-\gdef\@latex@error#1#2{%
- \GenericError{%
- \space\space\space\@spaces\@spaces\@spaces
- }{%
- XePersian Error: #1%
- }{%
- Oops! either you have done something wrong or it is a xepersian bug. Please first produce a similar file without using XePersian package and then compile it with xelatex, if you got the same error, then please study the Persian translation of “The not so Short Introduction to LaTeX” by MEHDI OMIDALI, otherwise please report the error with a minimal tex file which shows the error to the Author of XePersian.%
- }{#2}%
-}
-\gdef\@latexbug{%
- \@latex@error{This may be a XePersian bug}{Please inform the Author of XePersian}}
-\def\prq{«}
-\def\plq{»}
-\newfontscript{Persian}{arab}
-\newfontlanguage{Persian}{ARA}
-\newcommand*\settextfont[2][]{%
-\newfontfamily\persianfont[Script=Persian,Mapping=parsidigits,#1]{#2}
-\let\rmdefault\zf@family
- \normalfont
-}
-\newcommand*\settxtmathfont[2][]{%
-\newfontfamily\TXTmath[Mapping=txt2maths,#1]{#2}
-}
-\newcommand*\setlatintextfont[2][]{%
-\newfontfamily\latinfont[Mapping=tex-text,#1]{#2}
-}
-\newcommand*\defpersianfont[1]{%
- \@ifnextchar[{\defpersianfont@i#1}{\defpersianfont@i#1[]}}
-\def\defpersianfont@i#1[#2]#3{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#2}{#3}%
- \edef\@tempa{%
- \noexpand\DeclareRobustCommand\noexpand#1
- {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
- \@tempa}
-\newcommand*\deflatinfont[1]{%
- \@ifnextchar[{\deflatinfont@i#1}{\deflatinfont@i#1[]}}
-\def\deflatinfont@i#1[#2]#3{%
- \zf@fontspec{Mapping=tex-text,#2}{#3}%
- \edef\@tempa{%
- \noexpand\DeclareRobustCommand\noexpand#1
- {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
- \@tempa}
-\newcommand\persiansfdefault{}
-\newcommand\persianttdefault{}
-\newcommand\navardefault{}
-\newcommand\pookdefault{}
-\newcommand\sayehdefault{}
-\DeclareRobustCommand\persiansffamily
- {\not@math@alphabet\persiansffamily\mathpersiansf
- \fontfamily\persiansfdefault\selectfont}
-\DeclareRobustCommand\persianttfamily
- {\not@math@alphabet\persianttfamily\mathpersiantt
- \fontfamily\persianttdefault\selectfont}
-\DeclareRobustCommand\navarfamily
- {\not@math@alphabet\navarfamily\mathnavar
- \fontfamily\navardefault\selectfont}
-\DeclareRobustCommand\pookfamily
- {\not@math@alphabet\pookfamily\mathpook
- \fontfamily\pookdefault\selectfont}
-\DeclareRobustCommand\sayehfamily
- {\not@math@alphabet\sayehfamily\mathsayeh
- \fontfamily\sayehdefault\selectfont}
-\DeclareTextFontCommand{\textpersiansf}{\persiansffamily}
-\DeclareTextFontCommand{\textpersiantt}{\persianttfamily}
-\DeclareTextFontCommand{\textnavar}{\navarfamily}
-\DeclareTextFontCommand{\textpook}{\pookfamily}
-\DeclareTextFontCommand{\textsayeh}{\sayehfamily}
-\newcommand*\setpersiansansfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\persiansfdefault\zf@family
- \normalfont}
-\newcommand*\setpersianmonofont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\persianttdefault\zf@family
- \normalfont}
-\newcommand*\setnavarfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\navardefault\zf@family
- \normalfont}
-\newcommand*\setpookfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\pookdefault\zf@family
- \normalfont}
-\newcommand*\setsayehfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\sayehdefault\zf@family
- \normalfont}
-\def\lr#1{\begingroup\beginL\latinfont#1\endL\endgroup}
-\def\rl#1{\begingroup\beginR\persianfont#1\endR\endgroup}
-\def\latin{\bgroup\LatinAlphs\par\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\Latin{\if@RTL\par\LatinAlphs\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont\fi}
-\def\Persian{\if@RTL\relax\else\par\PersianAlphs\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont\fi}
-\let\originaltoday=\today
-\def\today{\lr{\originaltoday}}
-\let\latintoday\today
-\def\today{\rl{\persiantoday}}
-\newcommand\twocolumnstableofcontents{%
- \begin{multicols}{2}[\section*{\contentsname}]%
- \small
- \@starttoc{toc}%
- \end{multicols}}
-\def\XePersian{\lr{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\reflect{E}}Persian}}$}}
-\def\TeX{\lr{\@@TeX}}
-\def\LaTeX{\lr{\@@LaTeX}}
-\def\LaTeXe{\lr{\@@LaTeXe}}
-\let\origin@XeTeX\XeTeX
-\def\XeTeX{\lr{\origin@XeTeX}}
-\let\origin@XeLaTeX\XeLaTeX
-\def\XeLaTeX{\lr{\origin@XeLaTeX}}
-\def\figurename{\if@RTL شکل\else Figure\fi}
-\def\tablename{\if@RTL جدول\else Table\fi}
-\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi}
-\def\listfigurename{\if@RTL لیست تصاویر\else List of Figures\fi}
-\def\listtablename{\if@RTL لیست جداول\else List of Tables\fi}
-\def\appendixname{\if@RTL پیوست\else Appendix\fi}
-\def\indexname{\if@RTL نمایه\else Index\fi}
-\def\refname{\if@RTL مراجع\else References\fi}
-\def\abstractname{\if@RTL چکیده\else Abstract\fi}
-\def\partname{\if@RTL بخش\else Part\fi}
-\def\datename{\if@RTL تاریخ:\else Date:\fi}
-\def\@@and{\if@RTL و\else and\fi}
-\def\bibname{\if@RTL کتاب‌نامه\else Bibliography\fi}
-\def\chaptername{\if@RTL فصل\else Chapter\fi}
-\def\ccname{\if@RTL رونوشت\else cc\fi}
-\def\enclname{\if@RTL پیوست\else encl\fi}
-\def\pagename{\if@RTL صفحه\else Page\fi}
-\def\headtoname{\if@RTL به\else To\fi}
-\def\proofname{\if@RTL اثبات\else Proof\fi}
-\def\@harfi#1{\ifcase#1\or الف\char"200D\or ب\or پ\or ت\or ث\or
-ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or س\or ش\or ص\or ض\or ع\or غ\or
-ف\or ق\or ک\or گ\or ل\or م\or ن\or ه\or و\or ی\else\@ctrerr\fi}
-\def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname}
-\def\@adadi#1{\ifcase#1 \or یک\or دو\or سه\or چهار\or پنج\or شش\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده\or چهارده\or پانزده\or شانزده\or هفده\or هجده\or نوزده\or بیست\else\@ctrerr\fi}
-\def\adadi#1{\expandafter\@adadi\csname c@#1\endcsname}
-\def\@tartibi#1{\ifcase#1 \or اول \or دوم \or سوم \or چهارم \or پنجم \or ششم \or هفتم \or هشتم \or نهم \or دهم \or یازدهم \or دوازدهم \or سیزدهم \or چهاردهم \or پانزدهم \or شانزدهم \or هفدهم \or هجدهم \or نوزدهم \or بیستم\else\@ctrerr\fi}
-\def\tartibi#1{\expandafter\@tartibi\csname c@#1\endcsname}
-\providecommand*{\xpg@warning}[1]{%
- \PackageWarning{XePersian}%
- {#1}}
-\ifcsdef{abjad}{}{%
-\def\abjad#1{%
-\ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1}
-\else
- \ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}%
- \else
- \ifnum#1<10\expandafter\abj@num@i\number#1%
- \else
- \ifnum#1<100\expandafter\abj@num@ii\number#1%
- \else
- \ifnum#1<\@m\expandafter\abj@num@iii\number#1%
- \else
- \ifnum#1<\@M\expandafter\abj@num@iv\number#1%since #1<2000, we must have 1000
- \fi
- \fi
- \fi
- \fi
- \fi
-\fi
-}
-\def\abjad@zero{}
-\def\abj@num@i#1{%
- \ifcase#1\or الف\or ب\or ج\or د%
- \or ه\char"200D\or و\or ز\or ح\or ط\fi
- \ifnum#1=\z@\abjad@zero\fi}
-\def\abj@num@ii#1{%
- \ifcase#1\or ی\or ک\or ل\or م\or ن%
- \or س\or ع\or ف\or ص\fi
- \ifnum#1=\z@\fi\abj@num@i}
-\def\abj@num@iii#1{%
- \ifcase#1\or ق\or ر\or ش\or ت\or ث%
- \or خ\or ذ\or ض\or ظ\fi
- \ifnum#1=\z@\fi\abj@num@ii}
-\def\abj@num@iv#1{%
- \ifcase#1\or غ\fi
- \ifnum#1=\z@\fi\abj@num@iii}
-}
- \let\@latinalph\@alph%
- \let\@latinAlph\@Alph%
-\def\PersianAlphs{%
- \let\@alph\abjad%
- \let\@Alph\abjad%
-}
-\def\LatinAlphs{%
- \let\@alph\@latinalph%
- \let\@Alph\@latinAlph%
-}
-\PersianAlphs
-\@ifpackageloaded{listings}{\input{listings-xepersian.def}}{}
-\@ifpackageloaded{algorithmic}{\input{algorithmic-xepersian.def}}{}
-\@ifpackageloaded{algorithm}{\input{algorithm-xepersian.def}}{}
-\@ifpackageloaded{backref}{\input{backref-xepersian.def}}{}
-\@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{}
-\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{}
-\@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{}
-\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{}
-\@ifclassloaded{article}{\input{article-xepersian.def}}{}
-\@ifclassloaded{amsart}{\input{amsart-xepersian.def}}{}
-\@ifclassloaded{bidimoderncv}{\input{bidimoderncv-xepersian.def}}{}
-\@ifclassloaded{report}{\input{report-xepersian.def}}{}
-\@ifclassloaded{rapport3}{\input{rapport3-xepersian.def}}{}
-\@ifclassloaded{scrartcl}{\input{scrartcl-xepersian.def}}{}
-\@ifclassloaded{scrbook}{\input{scrbook-xepersian.def}}{}
-\@ifclassloaded{scrreprt}{\input{scrreprt-xepersian.def}}{}
-\@ifclassloaded{xepersian-thesis}{\input{xepersian-thesis-xepersian.def}}{}
-\@ifclassloaded{amsbook}{\input{amsbook-xepersian.def}}{}
-\@ifclassloaded{bookest}{\input{bookest-xepersian.def}}{}
-\@ifclassloaded{extbook}{\input{extbook-xepersian.def}}{}
-\@ifclassloaded{book}{\input{book-xepersian.def}}{}
-\@ifclassloaded{refrep}{\input{refrep-xepersian.def}}{}
-\@ifclassloaded{bidibeamer}{\input{bidibeamer-xepersian.def}}{}
-\@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{}
-% \end{macrocode}
-% \iffalse
-%</xepersian.sty>
-%<*algorithmic-xepersian.def>
-% \fi
-% \part{algorithmic-xepersian.def}
-% \begin{macrocode}
-\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi}
-\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi}
-% \end{macrocode}
-% \iffalse
-%</algorithmic-xepersian.def>
-%<*algorithm-xepersian.def>
-% \fi
-% \part{algorithm-xepersian.def}
-% \begin{macrocode}
-\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi}
-\def\ALGS@name{الگوریتم‌ها}
-\def\listalgorithmname{\if@RTL لیست \ALGS@name\else List of \ALG@name s\fi}
-% \end{macrocode}
-% \iffalse
-%</algorithm-xepersian.def>
-%<*amsart-xepersian.def>
-% \fi
-% \part{amsart-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
-% \end{macrocode}
-% \iffalse
-%</amsart-xepersian.def>
-%<*amsbook-xepersian.def>
-% \fi
-% \part{amsbook-xepersian.def}
-% \begin{macrocode}
-\def\frontmatter{\cleardoublepage\pagenumbering{harfi}}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</amsbook-xepersian.def>
-%<*article-xepersian.def>
-% \fi
-% \part{article-xepersian-def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
-% \end{macrocode}
-% \iffalse
-%</article-xepersian.def>
-%<*backref-xepersian.def>
-% \fi
-% \part{backref-xepersian.def}
-% \begin{macrocode}
-\def\backrefpagesname{\if@RTL صفحات\else pages\fi}
-% \end{macrocode}
-% \iffalse
-%</backref-xepersian.def>
-%<*bidibeamer-xepersian.def>
-% \fi
-% \part{bidibeamer-xepersian.def}
-% \begin{macrocode}
-\def\familydefault{\rmdefault}
-\def\latin{\bgroup\LatinAlphs\par\raggedright\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\raggedleft\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\biditheoremname{قضیه}
-\def\bidicorollaryname{نتیجه}
-\def\bidifactname{حقیقت}
-\def\bidilemmaname{لم}
-\def\bidiproblemname{مسئله}
-\def\bidisolutionname{پاسخ}
-\def\bididefinitionname{تعریف}
-\def\bididefinitionsname{تعریف‌ها}
-\def\bidiexamplename{مثال}
-\def\bidiexamplesname{مثال‌ها}
-\def\bidiproofname{اثبات}
-% \end{macrocode}
-% \iffalse
-%</bidibeamer-xepersian.def>
-%<*bidimoderncv-xepersian.def>
-% \fi
-% \part{bidimoderncv-xepersian.def}
-% \begin{macrocode}
-\def\refname{تألیفات}
-% \end{macrocode}
-% \iffalse
-%</bidimoderncv-xepersian.def>
-%<*bookest-xepersian.def>
-% \fi
-% \part{bookest-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</bookest-xepersian.def>
-%<*book-xepersian.def>
-% \fi
-% \part{book-xepersian.def}
-% \begin{macrocode}
-\renewcommand\frontmatter{%
- \cleardoublepage
- \@mainmatterfalse
- \pagenumbering{harfi}}
-\renewcommand\mainmatter{%
- \cleardoublepage
- \@mainmattertrue
- \pagenumbering{arabic}}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</book-xepersian.def>
-%<*footnote-bidi-xepersian.def>
-% \fi
-% \part{footnote-bidi-xepersian.def}
-% \begin{macrocode}
-\long\def\@footnotetext#1{%
- \begingroup
- \setbox\footins
- \vbox{\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
- \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
- \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}
-\long\def\@mpfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
- \color@begingroup
- \bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}
- \color@endgroup}}
-\long\def\@mpRTLfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLtrue
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
- \color@begingroup
- \bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}
- \color@endgroup}}
-\long\def\@mpLTRfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLfalse
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
- \color@begingroup
- \bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}
- \color@endgroup}}
-% \end{macrocode}
-% \iffalse
-%</footnote-bidi-xepersian.def>
-%<*localise-xepersian.def>
-% \fi
-% \part{localise-xepersian.def}
-% \begin{macrocode}
-\catcode`\﷼=3
-\catcode`‌=11
-\newcommand\eqcommand[2][]{\let#1=#2}
-\newcommand\eqenvironment[2][]{\newenvironment{#1}{\begin{#2}}{\end{#2}}}
-\define@key[zf]{options}{مقیاس}{%
- \edef\@tempa{#1}%
- \edef\@tempb{MatchLowercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{5}%
- \else
- \edef\@tempb{MatchUppercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{8}%
- \else
- \edef\zf@scale{#1}%
- \fi
- \fi
- \zf@update@family{+scale:\zf@scale}%
- \edef\zf@scale{s*[\zf@scale]}}
-\input{commands-ltx.def}
-\input{commands-xepersian.def}
-\input{environments-ltx.def}
-\input{environments-xepersian.def}
-\input{misccommandsenvironments-ltx.def}
-% \end{macrocode}
-% \iffalse
-%</localise-xepersian.def>
-%<*commands-ltx.def>
-% \fi
-% \part{commands-ltx.def}
-% \begin{macrocode}
-\eqcommand[]{\abovedisplayshortskip}
-\eqcommand[]{\abovedisplayskip}
-\eqcommand[]{\abstractname}
-\eqcommand[]{\acute}
-\eqcommand[]{\addcontentsline}
-\eqcommand[]{\address}
-\eqcommand[]{\addtocontents}
-\eqcommand[]{\addtocounter}
-\eqcommand[]{\addtolength}
-\eqcommand[]{\addvspace}
-\eqcommand[]{\aleph}
-\eqcommand[]{\allowdisplaybreaks}
-\eqcommand[]{\Alph}
-\eqcommand[]{\alph}
-\eqcommand[]{\alpha}
-\eqcommand[]{\alsoname}
-\eqcommand[]{\amalg}
-\eqcommand[]{\and}
-\eqcommand[]{\angle}
-\eqcommand[]{\appendixname}
-\eqcommand[]{\approx}
-\eqcommand[]{\arabic}
-\eqcommand[]{\arccos}
-\eqcommand[]{\arcsin}
-\eqcommand[]{\arctan}
-\eqcommand[]{\arg}
-\eqcommand[]{\arraycolsep}
-\eqcommand[]{\arrayrulewidth}
-\eqcommand[]{\arraystretch}
-\eqcommand[]{\ast}
-\eqcommand[]{\asymp}
-\eqcommand[]{\AtBeginDocument}
-\eqcommand[]{\AtEndDocument}
-\eqcommand[]{\AtEndOfClass}
-\eqcommand[]{\AtEndOfPackage}
-\eqcommand[]{\author}
-\eqcommand[]{\backmatter}
-\eqcommand[]{\backslash}
-\eqcommand[]{\bar}
-\eqcommand[]{\baselineskip}
-\eqcommand[]{\baselinestretch}
-\eqcommand[]{\begin}
-\eqcommand[]{\belowdisplayshortskip}
-\eqcommand[]{\belowdisplayskip}
-\eqcommand[]{\beta}
-\eqcommand[]{\bfdefault}
-\eqcommand[]{\bfseries}
-\eqcommand[]{\bibitem}
-\eqcommand[]{\bibliography}
-\eqcommand[]{\bibliographystyle}
-\eqcommand[]{\bibname}
-\eqcommand[]{\big}
-\eqcommand[]{\Big}
-\eqcommand[]{\bigcap}
-\eqcommand[]{\bigcirc}
-\eqcommand[]{\bigcup}
-\eqcommand[]{\bigg}
-\eqcommand[]{\Bigg}
-\eqcommand[]{\bigodot}
-\eqcommand[]{\bigoplus}
-\eqcommand[]{\bigotimes}
-\eqcommand[]{\bigskip}
-\eqcommand[]{\bigskipamount}
-\eqcommand[]{\bigsqcup}
-\eqcommand[]{\bigtriangledown}
-\eqcommand[]{\bigtriangleup}
-\eqcommand[]{\biguplus}
-\eqcommand[]{\bigvee}
-\eqcommand[]{\bigwedge}
-\eqcommand[]{\binom}
-\eqcommand[]{\bmod}
-\eqcommand[]{\boldmath}
-\eqcommand[]{\boldsymbol}
-\eqcommand[]{\bot}
-\eqcommand[]{\botfigrule}
-\eqcommand[]{\bottomfraction}
-\eqcommand[]{\bowtie}
-\eqcommand[]{\Box}
-\eqcommand[]{\boxed}
-\eqcommand[]{\breve}
-\eqcommand[]{\bullet}
-\eqcommand[]{\cap}
-\eqcommand[]{\caption}
-\eqcommand[]{\cc}
-\eqcommand[]{\ccname}
-\eqcommand[]{\cdot}
-\eqcommand[]{\cdots}
-\eqcommand[]{\centering}
-\eqcommand[]{\centerline}
-\eqcommand[]{\cfrac}
-\eqcommand[]{\chapter}
-\eqcommand[]{\chapter*}
-\eqcommand[]{\chaptername}
-\eqcommand[]{\check}
-\eqcommand[]{\CheckCommand}
-\eqcommand[]{\chi}
-\eqcommand[]{\circ}
-\eqcommand[]{\circle}
-\eqcommand[]{\circle*}
-\eqcommand[]{\cite}
-\eqcommand[]{\citep}
-\eqcommand[]{\citet}
-\eqcommand[]{\ClassError}
-\eqcommand[]{\ClassInfo}
-\eqcommand[]{\ClassWarning}
-\eqcommand[]{\ClassWarningNoLine}
-\eqcommand[]{\cleardoublepage}
-\eqcommand[]{\clearpage}
-\eqcommand[]{\cline}
-\eqcommand[]{\closing}
-\eqcommand[]{\clubsuit}
-\eqcommand[]{\color}
-\eqcommand[]{\colorbox}
-\eqcommand[]{\columnsep}
-\eqcommand[]{\columnseprule}
-\eqcommand[]{\cong}
-\eqcommand[]{\contentsline}
-\eqcommand[]{\contentsname}
-\eqcommand[]{\coprod}
-\eqcommand[]{\copyright}
-\eqcommand[]{\cos}
-\eqcommand[]{\cosh}
-\eqcommand[]{\cot}
-\eqcommand[]{\coth}
-\eqcommand[]{\csc}
-\eqcommand[]{\cup}
-\eqcommand[]{\CurrentOption}
-\eqcommand[]{\dag}
-\eqcommand[]{\dagger}
-\eqcommand[]{\dashbox}
-\eqcommand[]{\dashv}
-\eqcommand[]{\date}
-\eqcommand[]{\dbinom}
-\eqcommand[]{\dblfigrule}
-\eqcommand[]{\dblfloatpagefraction}
-\eqcommand[]{\dblfloatsep}
-\eqcommand[]{\dbltextfloatsep}
-\eqcommand[]{\dbltopfraction}
-\eqcommand[]{\ddag}
-\eqcommand[]{\ddagger}
-\eqcommand[]{\dddot}
-\eqcommand[]{\ddddot}
-\eqcommand[]{\ddot}
-\eqcommand[]{\ddots}
-\eqcommand[]{\DeclareGraphicsExtensions}
-\eqcommand[]{\DeclareGraphicsRule}
-\eqcommand[]{\DeclareOption}
-\eqcommand[]{\DeclareOption*}
-\eqcommand[]{\DeclareRobustCommand}
-\eqcommand[]{\DeclareRobustCommand*}
-\eqcommand[]{\definecolor}
-\eqcommand[]{\deg}
-\eqcommand[]{\DeleteShortVerb}
-\eqcommand[]{\Delta}
-\eqcommand[]{\delta}
-\eqcommand[]{\depth}
-\eqcommand[]{\det}
-\eqcommand[]{\dfrac}
-\eqcommand[]{\Diamond}
-\eqcommand[]{\diamond}
-\eqcommand[]{\diamondsuit}
-\eqcommand[]{\dim}
-\eqcommand[]{\discretionary}
-\eqcommand[]{\displaybreak}
-\eqcommand[]{\displaystyle}
-\eqcommand[]{\div}
-\eqcommand[]{\documentclass}
-\eqcommand[]{\dot}
-\eqcommand[]{\doteq}
-\eqcommand[]{\dotfill}
-\eqcommand[]{\dots}
-\eqcommand[]{\dotsb}
-\eqcommand[]{\dotsc}
-\eqcommand[]{\dotsi}
-\eqcommand[]{\dotsm}
-\eqcommand[]{\doublebox}
-\eqcommand[]{\doublerulesep}
-\eqcommand[]{\Downarrow}
-\eqcommand[]{\downarrow}
-\eqcommand[]{\ell}
-\eqcommand[]{\em}
-\eqcommand[]{\emph}
-\eqcommand[]{\emptyset}
-\eqcommand[]{\encl}
-\eqcommand[]{\enclname}
-\eqcommand[]{\end}
-\eqcommand[]{\endfirsthead}
-\eqcommand[]{\endfoot}
-\eqcommand[]{\endhead}
-\eqcommand[]{\endlastfoot}
-\eqcommand[]{\enlargethispage}
-\eqcommand[]{\enlargethispage*}
-\eqcommand[]{\ensuremath}
-\eqcommand[]{\epsilon}
-\eqcommand[]{\eqref}
-\eqcommand[]{\equiv}
-\eqcommand[]{\eta}
-\eqcommand[]{\euro}
-\eqcommand[]{\EUR}
-\eqcommand[]{\evensidemargin}
-\eqcommand[]{\ExecuteOptions}
-\eqcommand[]{\exists}
-\eqcommand[]{\exp}
-\eqcommand[]{\extracolsep}
-\eqcommand[]{\fancypage}
-\eqcommand[]{\fbox}
-\eqcommand[]{\fboxrule}
-\eqcommand[]{\fboxsep}
-\eqcommand[]{\fcolorbox}
-\eqcommand[]{\figurename}
-\eqcommand[]{\fill}
-\eqcommand[]{\flat}
-\eqcommand[]{\floatpagefraction}
-\eqcommand[]{\floatsep}
-\eqcommand[]{\flushbottom}
-\eqcommand[]{\fnsymbol}
-\eqcommand[]{\fontfamily}
-\eqcommand[]{\fontseries}
-\eqcommand[]{\fontshape}
-\eqcommand[]{\fontsize}
-\eqcommand[]{\LTRfootnote}
-\eqcommand[]{\footnote}
-\eqcommand[]{\footnotemark}
-\eqcommand[]{\footnoterule}
-\eqcommand[]{\footnotesep}
-\eqcommand[]{\footnotesize}
-\eqcommand[]{\footnotetext}
-\eqcommand[]{\footskip}
-\eqcommand[]{\forall}
-\eqcommand[]{\frac}
-\eqcommand[]{\frame}
-\eqcommand[]{\framebox}
-\eqcommand[]{\frenchspacing}
-\eqcommand[]{\frontmatter}
-\eqcommand[]{\frown}
-\eqcommand[]{\fussy}
-\eqcommand[]{\Gamma}
-\eqcommand[]{\gamma}
-\eqcommand[]{\gcd}
-\eqcommand[]{\ge}
-\eqcommand[]{\genfrac}
-\eqcommand[]{\geq}
-\eqcommand[]{\gets}
-\eqcommand[]{\gg}
-\eqcommand[]{\glossary}
-\eqcommand[]{\glossaryentry}
-\eqcommand[]{\graphpaper}
-\eqcommand[]{\grave}
-\eqcommand[]{\guillemotleft}
-\eqcommand[]{\guillemotright}
-\eqcommand[]{\guilsinglleft}
-\eqcommand[]{\guilsinglright}
-\eqcommand[]{\hat}
-\eqcommand[]{\hbar}
-\eqcommand[]{\headheight}
-\eqcommand[]{\headsep}
-\eqcommand[]{\headtoname}
-\eqcommand[]{\heartsuit}
-\eqcommand[]{\height}
-\eqcommand[]{\hfill}
-\eqcommand[]{\hline}
-\eqcommand[]{\hoffset}
-\eqcommand[]{\hom}
-\eqcommand[]{\hookleftarrow}
-\eqcommand[]{\hookrightarrow}
-\eqcommand[]{\hrulefill}
-\eqcommand[]{\hspace}
-\eqcommand[]{\hspace*}
-\eqcommand[]{\huge}
-\eqcommand[]{\Huge}
-\eqcommand[]{\hyperlink}
-\eqcommand[]{\hypersetup}
-\eqcommand[]{\hypertarget}
-\eqcommand[]{\hyphenation}
-\eqcommand[]{\idotsint}
-\eqcommand[]{\iff}
-\eqcommand[]{\IfFileExists}
-\eqcommand[]{\ifthenelse}
-\eqcommand[]{\Im}
-\eqcommand[]{\imath}
-\eqcommand[]{\in}
-\eqcommand[]{\include}
-\eqcommand[]{\includegraphics}
-\eqcommand[]{\includegraphics*}
-\eqcommand[]{\includeonly}
-\eqcommand[]{\indent}
-\eqcommand[]{\index}
-\eqcommand[]{\indexentry}
-\eqcommand[]{\indexname}
-\eqcommand[]{\indexspace}
-\eqcommand[]{\inf}
-\eqcommand[]{\infty}
-\eqcommand[]{\input}
-\eqcommand[]{\InputIfFileExists}
-\eqcommand[]{\int}
-\eqcommand[]{\iint}
-\eqcommand[]{\iiint}
-\eqcommand[]{\iiiint}
-\eqcommand[]{\intertext}
-\eqcommand[]{\intertextsep}
-\eqcommand[]{\invisible}
-\eqcommand[]{\iota}
-\eqcommand[]{\itdefault}
-\eqcommand[]{\item}
-\eqcommand[]{\itemindent}
-\eqcommand[]{\itemsep}
-\eqcommand[]{\itshape}
-\eqcommand[]{\jmath}
-\eqcommand[]{\join}
-\eqcommand[]{\jot}
-\eqcommand[]{\kappa}
-\eqcommand[]{\ker}
-\eqcommand[]{\kill}
-\eqcommand[]{\label}
-\eqcommand[]{\labelenumi}
-\eqcommand[]{\labelenumii}
-\eqcommand[]{\labelenumiii}
-\eqcommand[]{\labelenumiv}
-\eqcommand[]{\labelitemi}
-\eqcommand[]{\labelitemii}
-\eqcommand[]{\labelitemiii}
-\eqcommand[]{\labelitemiv}
-\eqcommand[]{\labelsep}
-\eqcommand[]{\labelwidth}
-\eqcommand[]{\Lambda}
-\eqcommand[]{\lambda}
-\eqcommand[]{\langle}
-\eqcommand[]{\language}
-\eqcommand[]{\large}
-\eqcommand[]{\Large}
-\eqcommand[]{\LARGE}
-\eqcommand[]{\LaTeX}
-\eqcommand[]{\LaTeXe}
-\eqcommand[]{\lceil}
-\eqcommand[]{\ldots}
-\eqcommand[]{\le}
-\eqcommand[]{\leadsto}
-\eqcommand[]{\left}
-\eqcommand[]{\Leftarrow}
-\eqcommand[]{\leftarrow}
-\eqcommand[]{\lefteqn}
-\eqcommand[]{\leftharpoondown}
-\eqcommand[]{\leftharpoonup}
-\eqcommand[]{\leftmargin}
-\eqcommand[]{\Leftrightarrow}
-\eqcommand[]{\leftrightarrow}
-\eqcommand[]{\leftroot}
-\eqcommand[]{\leq}
-\eqcommand[]{\lfloor}
-\eqcommand[]{\lg}
-\eqcommand[]{\lhd}
-\eqcommand[]{\lim}
-\eqcommand[]{\liminf}
-\eqcommand[]{\limits}
-\eqcommand[]{\limsup}
-\eqcommand[]{\line}
-\eqcommand[]{\linebreak}
-\eqcommand[]{\linethickness}
-\eqcommand[]{\linewidth}
-\eqcommand[]{\listfigurename}
-\eqcommand[]{\listfiles}
-\eqcommand[]{\listoffigures}
-\eqcommand[]{\listoftables}
-\eqcommand[]{\listparindent}
-\eqcommand[]{\listtablename}
-\eqcommand[]{\ll}
-\eqcommand[]{\ln}
-\eqcommand[]{\LoadClass}
-\eqcommand[]{\LoadClassWithOptions}
-\eqcommand[]{\location}
-\eqcommand[]{\log}
-\eqcommand[]{\Longleftarrow}
-\eqcommand[]{\longleftarrow}
-\eqcommand[]{\Longleftrightarrow}
-\eqcommand[]{\longleftrightarrow}
-\eqcommand[]{\longmapsto}
-\eqcommand[]{\Longrightarrow}
-\eqcommand[]{\longrightarrow}
-\eqcommand[]{\lvert}
-\eqcommand[]{\lVert}
-\eqcommand[]{\mainmatter}
-\eqcommand[]{\makebox}
-\eqcommand[]{\makeglossary}
-\eqcommand[]{\makeindex}
-\eqcommand[]{\makelabel}
-\eqcommand[]{\makelabels}
-\eqcommand[]{\MakeLowercase}
-\eqcommand[]{\MakeShortVerb}
-\eqcommand[]{\maketitle}
-\eqcommand[]{\MakeUppercase}
-\eqcommand[]{\mapsto}
-\eqcommand[]{\marginpar}
-\eqcommand[]{\marginparpush}
-\eqcommand[]{\marginparsep}
-\eqcommand[]{\marginparwidth}
-\eqcommand[]{\markboth}
-\eqcommand[]{\markright}
-\eqcommand[]{\mathbf}
-\eqcommand[]{\mathcal}
-\eqcommand[]{\mathindent}
-\eqcommand[]{\mathit}
-\eqcommand[]{\mathnormal}
-\eqcommand[]{\mathring}
-\eqcommand[]{\mathrm}
-\eqcommand[]{\mathsf}
-\eqcommand[]{\mathtt}
-\eqcommand[]{\max}
-\eqcommand[]{\mbox}
-\eqcommand[]{\mddefault}
-\eqcommand[]{\mdseries}
-\eqcommand[]{\medskip}
-\eqcommand[]{\medskipamount}
-\eqcommand[]{\medspace}
-\eqcommand[]{\MessageBreak}
-\eqcommand[]{\mho}
-\eqcommand[]{\mid}
-\eqcommand[]{\min}
-\eqcommand[]{\mod}
-\eqcommand[]{\models}
-\eqcommand[]{\mp}
-\eqcommand[]{\mspace}
-\eqcommand[]{\mu}
-\eqcommand[]{\multicolumn}
-\eqcommand[]{\multiput}
-\eqcommand[]{\multlinegap}
-\eqcommand[]{\nabla}
-\eqcommand[]{\name}
-\eqcommand[]{\natural}
-\eqcommand[]{\nearrow}
-\eqcommand[]{\NeedsTeXFormat}
-\eqcommand[]{\neg}
-\eqcommand[]{\negmedspace}
-\eqcommand[]{\negthickspace}
-\eqcommand[]{\negthinspace}
-\eqcommand[]{\neq}
-\eqcommand[]{\newboolean}
-\eqcommand[]{\newcommand}
-\eqcommand[]{\newcommand*}
-\eqcommand[]{\newcounter}
-\eqcommand[]{\newenvironment}
-\eqcommand[]{\newenvironment*}
-\eqcommand[]{\newfont}
-\eqcommand[]{\newlength}
-\eqcommand[]{\newline}
-\eqcommand[]{\newpage}
-\eqcommand[]{\newsavebox}
-\eqcommand[]{\newtheorem}
-\eqcommand[]{\ni}
-\eqcommand[]{\nocite}
-\eqcommand[]{\nofiles}
-\eqcommand[]{\noindent}
-\eqcommand[]{\nolimits}
-\eqcommand[]{\nolinebreak}
-\eqcommand[]{\nonfrenchspacing}
-\eqcommand[]{\nonumber}
-\eqcommand[]{\nopagebreak}
-\eqcommand[]{\normalcolor}
-\eqcommand[]{\normalfont}
-\eqcommand[]{\normalmarginpar}
-\eqcommand[]{\normalsize}
-\eqcommand[]{\not}
-\eqcommand[]{\notag}
-\eqcommand[]{\notin}
-\eqcommand[]{\nu}
-\eqcommand[]{\numberwithin}
-\eqcommand[]{\nwarrow}
-\eqcommand[]{\oddsidemargin}
-\eqcommand[]{\odot}
-\eqcommand[]{\oint}
-\eqcommand[]{\Omega}
-\eqcommand[]{\omega}
-\eqcommand[]{\ominus}
-\eqcommand[]{\onecolumn}
-\eqcommand[]{\onlynotes}
-\eqcommand[]{\onlyslides}
-\eqcommand[]{\opening}
-\eqcommand[]{\oplus}
-\eqcommand[]{\OptionNotUsed}
-\eqcommand[]{\oslash}
-\eqcommand[]{\otimes}
-\eqcommand[]{\oval}
-\eqcommand[]{\ovalbox}
-\eqcommand[]{\Ovalbox}
-\eqcommand[]{\overbrace}
-\eqcommand[]{\overleftarrow}
-\eqcommand[]{\overleftrightarrow}
-\eqcommand[]{\overline}
-\eqcommand[]{\overrightarrow}
-\eqcommand[]{\overset}
-\eqcommand[]{\PackageError}
-\eqcommand[]{\PackageInfo}
-\eqcommand[]{\PackageWarning}
-\eqcommand[]{\PackageWarningNoLine}
-\eqcommand[]{\pagebreak}
-\eqcommand[]{\pagecolor}
-\eqcommand[]{\pagename}
-\eqcommand[]{\pagenumbering}
-\eqcommand[]{\pageref}
-\eqcommand[]{\pagestyle}
-\eqcommand[]{\paperheight}
-\eqcommand[]{\paperwidth}
-\eqcommand[]{\par}
-\eqcommand[]{\paragraph}
-\eqcommand[]{\paragraph*}
-\eqcommand[]{\parallel}
-\eqcommand[]{\parbox}
-\eqcommand[]{\parindent}
-\eqcommand[]{\parsep}
-\eqcommand[]{\parskip}
-\eqcommand[]{\part}
-\eqcommand[]{\part*}
-\eqcommand[]{\partial}
-\eqcommand[]{\partname}
-\eqcommand[]{\partopsep}
-\eqcommand[]{\PassOptionToClass}
-\eqcommand[]{\PassOptionToPackage}
-\eqcommand[]{\path}
-\eqcommand[]{\prep}
-\eqcommand[]{\Phi}
-\eqcommand[]{\phi}
-\eqcommand[]{\Pi}
-\eqcommand[]{\pi}
-\eqcommand[]{\pm}
-\eqcommand[]{\pmb}
-\eqcommand[]{\pmod}
-\eqcommand[]{\pod}
-\eqcommand[]{\poptabs}
-\eqcommand[]{\pounds}
-\eqcommand[]{\Pr}
-\eqcommand[]{\prec}
-\eqcommand[]{\preceq}
-\eqcommand[]{\prime}
-\eqcommand[]{\printindex}
-\eqcommand[]{\ProcessOptions}
-\eqcommand[]{\ProcessOptions*}
-\eqcommand[]{\prod}
-\eqcommand[]{\propto}
-\eqcommand[]{\protect}
-\eqcommand[]{\providecommand}
-\eqcommand[]{\providecommand*}
-\eqcommand[]{\ProvidesClass}
-\eqcommand[]{\ProvidesFile}
-\eqcommand[]{\ProvidesPackage}
-\eqcommand[]{\ps}
-\eqcommand[]{\Psi}
-\eqcommand[]{\psi}
-\eqcommand[]{\pushtabs}
-\eqcommand[]{\put}
-\eqcommand[]{\qbezier}
-\eqcommand[]{\qquad}
-\eqcommand[]{\quad}
-\eqcommand[]{\raggedbottom}
-\eqcommand[]{\raggedleft}
-\eqcommand[]{\raggedright}
-\eqcommand[]{\raisebox}
-\eqcommand[]{\raisetag}
-\eqcommand[]{\rangle}
-\eqcommand[]{\rceil}
-\eqcommand[]{\Re}
-\eqcommand[]{\ref}
-\eqcommand[]{\reflectbox}
-\eqcommand[]{\refname}
-\eqcommand[]{\refstepcounter}
-\eqcommand[]{\renewcommand}
-\eqcommand[]{\renewcommand*}
-\eqcommand[]{\renewenvironment}
-\eqcommand[]{\renewenvironment*}
-\eqcommand[]{\RequirePackage}
-\eqcommand[]{\RequirePackageWithOptions}
-\eqcommand[]{\resizebox}
-\eqcommand[]{\resizebox*}
-\eqcommand[]{\reversemarginpar}
-\eqcommand[]{\rfloor}
-\eqcommand[]{\rhd}
-\eqcommand[]{\rho}
-\eqcommand[]{\right}
-\eqcommand[]{\Rightarrow}
-\eqcommand[]{\rightarrow}
-\eqcommand[]{\rightharpoondown}
-\eqcommand[]{\rightharpoonup}
-\eqcommand[]{\rightleftharpoons}
-\eqcommand[]{\rightmargin}
-\eqcommand[]{\rmdefault}
-\eqcommand[]{\rmfamily}
-\eqcommand[]{\Roman}
-\eqcommand[]{\roman}
-\eqcommand[]{\rotatebox}
-\eqcommand[]{\rule}
-\eqcommand[]{\rvert}
-\eqcommand[]{\rVert}
-\eqcommand[]{\savebox}
-\eqcommand[]{\sbox}
-\eqcommand[]{\scalebox}
-\eqcommand[]{\scdefault}
-\eqcommand[]{\scriptscriptstyle}
-\eqcommand[]{\scriptsize}
-\eqcommand[]{\scripstyle}
-\eqcommand[]{\scshape}
-\eqcommand[]{\searrow}
-\eqcommand[]{\sec}
-\eqcommand[]{\section}
-\eqcommand[]{\section*}
-\eqcommand[]{\see}
-\eqcommand[]{\seealso}
-\eqcommand[]{\seename}
-\eqcommand[]{\selectfont}
-\eqcommand[]{\setboolean}
-\eqcommand[]{\setcounter}
-\eqcommand[]{\setlength}
-\eqcommand[]{\setminus}
-\eqcommand[]{\settodepth}
-\eqcommand[]{\settoheight}
-\eqcommand[]{\settowidth}
-\eqcommand[]{\sfdefault}
-\eqcommand[]{\sffamily}
-\eqcommand[]{\shadowbox}
-\eqcommand[]{\sharp}
-\eqcommand[]{\shortstack}
-\eqcommand[]{\sideset}
-\eqcommand[]{\Sigma}
-\eqcommand[]{\sigma}
-\eqcommand[]{\signature}
-\eqcommand[]{\sim}
-\eqcommand[]{\simeq}
-\eqcommand[]{\sin}
-\eqcommand[]{\sinh}
-\eqcommand[]{\sldefault}
-\eqcommand[]{\sloppy}
-\eqcommand[]{\slshape}
-\eqcommand[]{\small}
-\eqcommand[]{\smallskip}
-\eqcommand[]{\smallskipamount}
-\eqcommand[]{\smash}
-\eqcommand[]{\smile}
-\eqcommand[]{\spadesuit}
-\eqcommand[]{\sqcap}
-\eqcommand[]{\sqcup}
-\eqcommand[]{\sqrt}
-\eqcommand[]{\sqsubset}
-\eqcommand[]{\sqsubseteq}
-\eqcommand[]{\sqsupset}
-\eqcommand[]{\sqsupseteq}
-\eqcommand[]{\stackrel}
-\eqcommand[]{\star}
-\eqcommand[]{\stepcounter}
-\eqcommand[]{\stretch}
-\eqcommand[]{\subitem}
-\eqcommand[]{\subparagraph}
-\eqcommand[]{\subparagraph*}
-\eqcommand[]{\subsection}
-\eqcommand[]{\subsection*}
-\eqcommand[]{\substack}
-\eqcommand[]{\subsubitem}
-\eqcommand[]{\subsubsection}
-\eqcommand[]{\subsubsection*}
-\eqcommand[]{\subset}
-\eqcommand[]{\subseteq}
-\eqcommand[]{\succ}
-\eqcommand[]{\succeq}
-\eqcommand[]{\sum}
-\eqcommand[]{\sup}
-\eqcommand[]{\supressfloats}
-\eqcommand[]{\supset}
-\eqcommand[]{\supseteq}
-\eqcommand[]{\surd}
-\eqcommand[]{\swarrow}
-\eqcommand[]{\tabbingsep}
-\eqcommand[]{\tabcolsep}
-\eqcommand[]{\tableofcontents}
-\eqcommand[]{\tablename}
-\eqcommand[]{\tabularnewline}
-\eqcommand[]{\tag}
-\eqcommand[]{\tan}
-\eqcommand[]{\tanh}
-\eqcommand[]{\tau}
-\eqcommand[]{\tbinom}
-\eqcommand[]{\telephone}
-\eqcommand[]{\TeX}
-\eqcommand[]{\text}
-\eqcommand[]{\textbullet}
-\eqcommand[]{\textemdash}
-\eqcommand[]{\textendash}
-\eqcommand[]{\textexclamdown}
-\eqcommand[]{\textperiodcentered}
-\eqcommand[]{\textquestiondown}
-\eqcommand[]{\textquotedblleft}
-\eqcommand[]{\textquotedblright}
-\eqcommand[]{\textquoteleft}
-\eqcommand[]{\textquoteright}
-\eqcommand[]{\textvisiblespace}
-\eqcommand[]{\textasciicircum}
-\eqcommand[]{\textasciitilde}
-\eqcommand[]{\textbackslash}
-\eqcommand[]{\textbar}
-\eqcommand[]{\textgreater}
-\eqcommand[]{\textless}
-\eqcommand[]{\textbf}
-\eqcommand[]{\textcircled}
-\eqcommand[]{\textcolor}
-\eqcommand[]{\textcompwordmark}
-\eqcommand[]{\textfloatsep}
-\eqcommand[]{\textfraction}
-\eqcommand[]{\textheight}
-\eqcommand[]{\textit}
-\eqcommand[]{\textmd}
-\eqcommand[]{\textnormal}
-\eqcommand[]{\textregistered}
-\eqcommand[]{\textrm}
-\eqcommand[]{\textsc}
-\eqcommand[]{\textsf}
-\eqcommand[]{\textsl}
-\eqcommand[]{\textstyle}
-\eqcommand[]{\textsuperscript}
-\eqcommand[]{\texttrademark}
-\eqcommand[]{\texttt}
-\eqcommand[]{\textup}
-\eqcommand[]{\textwidth}
-\eqcommand[]{\tfrac}
-\eqcommand[]{\thanks}
-\eqcommand[]{\Theta}
-\eqcommand[]{\theta}
-\eqcommand[]{\thicklines}
-\eqcommand[]{\thickspace}
-\eqcommand[]{\thinlines}
-\eqcommand[]{\thinspace}
-\eqcommand[]{\thisfancypage}
-\eqcommand[]{\thispagestyle}
-\eqcommand[]{\tilde}
-\eqcommand[]{\tiny}
-\eqcommand[]{\times}
-\eqcommand[]{\title}
-\eqcommand[]{\to}
-\eqcommand[]{\today}
-\eqcommand[]{\top}
-\eqcommand[]{\topfigrule}
-\eqcommand[]{\topfraction}
-\eqcommand[]{\topmargin}
-\eqcommand[]{\topsep}
-\eqcommand[]{\topskip}
-\eqcommand[]{\totalheight}
-\eqcommand[]{\triangle}
-\eqcommand[]{\triangleleft}
-\eqcommand[]{\triangleright}
-\eqcommand[]{\ttdefault}
-\eqcommand[]{\ttfamily}
-\eqcommand[]{\twocolumn}
-\eqcommand[]{\typein}
-\eqcommand[]{\typeout}
-\eqcommand[]{\unboldmath}
-\eqcommand[]{\underbrace}
-\eqcommand[]{\underleftarrow}
-\eqcommand[]{\underleftrightarrow}
-\eqcommand[]{\underline}
-\eqcommand[]{\underrightarrow}
-\eqcommand[]{\underset}
-\eqcommand[]{\unitlength}
-\eqcommand[]{\unlhd}
-\eqcommand[]{\unrhd}
-\eqcommand[]{\Uparrow}
-\eqcommand[]{\uparrow}
-\eqcommand[]{\updefault}
-\eqcommand[]{\Updownarrow}
-\eqcommand[]{\updownarrow}
-\eqcommand[]{\uplus}
-\eqcommand[]{\upshape}
-\eqcommand[]{\Upsilon}
-\eqcommand[]{\upsilon}
-\eqcommand[]{\uproot}
-\eqcommand[]{\url}
-\eqcommand[]{\urlstyle}
-\eqcommand[]{\usebox}
-\eqcommand[]{\usecounter}
-\eqcommand[]{\usefont}
-\eqcommand[]{\usepackage}
-\eqcommand[]{\value}
-\eqcommand[]{\varepsilon}
-\eqcommand[]{\varinjlim}
-\eqcommand[]{\varliminf}
-\eqcommand[]{\varlimsup}
-\eqcommand[]{\varphi}
-\eqcommand[]{\varpi}
-\eqcommand[]{\varprojlim}
-\eqcommand[]{\varrho}
-\eqcommand[]{\varsigma}
-\eqcommand[]{\vartheta}
-\eqcommand[]{\vdash}
-\eqcommand[]{\vdots}
-\eqcommand[]{\vec}
-\eqcommand[]{\vector}
-\eqcommand[]{\vee}
-\eqcommand[]{\verb}
-\eqcommand[]{\verb*}
-\eqcommand[]{\vfill}
-\eqcommand[]{\visible}
-\eqcommand[]{\vline}
-\eqcommand[]{\voffset}
-\eqcommand[]{\vpageref}
-\eqcommand[]{\vref}
-\eqcommand[]{\vspace}
-\eqcommand[]{\vspace*}
-\eqcommand[]{\wedge}
-\eqcommand[]{\whiledo}
-\eqcommand[]{\widehat}
-\eqcommand[]{\widetilde}
-\eqcommand[]{\width}
-\eqcommand[]{\wp}
-\eqcommand[]{\wr}
-\eqcommand[]{\Xi}
-\eqcommand[]{\xi}
-\eqcommand[]{\xleftarrow}
-\eqcommand[]{\xrightarrow}
-\eqcommand[]{\zeta}
-% \end{macrocode}
-% \iffalse
-%</commands-ltx.def>
-%<*commands-xepersian.def>
-% \fi
-% \part{commands-xepersian.def}
-% \begin{macrocode}
-
-% \end{macrocode}
-% \iffalse
-%</commands-xepersian.def>
-%<*enumerate-xepersian.def>
-% \fi
-% \part{enumerate-xepersian.def}
-% \begin{macrocode}
-\def\@enloop@{%
- \ifx ا\@entemp \def\@tempa{\@enLabel\harfi }\else
- \ifx ی\@entemp \def\@tempa{\@enLabel\adadi }\else
- \ifx ت\@entemp \def\@tempa{\@enLabel\tartibi }\else
- \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else
- \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else
- \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else
- \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else
- \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else
- \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else
- \ifx \bgroup\@entemp \let\@tempa\@enGroup \else
- \ifx \@enum@\@entemp \let\@tempa\@gobble \else
- \let\@tempa\@enOther
- \@enhook
- \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
- \@tempa}
-% \end{macrocode}
-% \iffalse
-%</enumerate-xepersian.def>
-%<*minitoc-xepersian.def>
-% \fi
-% \part{minitoc-xepersian.def}
-% \begin{macrocode}
-\def\ptctitle{\if@RTL فهرست مطالب\else Table of Contents\fi}%
-\def\plftitle{\if@RTL لیست تصاویر\else List of Figures\fi}%
-\def\plttitle{\if@RTL لیست جداول\else List of Tables\fi}%
-\def\mtctitle{\if@RTL عناوین\else Contents\fi}%
-\def\mlftitle{\if@RTL اشکال\else Figures\fi}%
-\def\mlttitle{\if@RTL جداول\else Tables\fi}%
-\def\stctitle{\if@RTL عناوین\else Contents\fi}%
-\def\slftitle{\if@RTL اشکال\else Figures\fi}%
-\def\slttitle{\if@RTL جداول\else Tables\fi}%
-% \end{macrocode}
-% \iffalse
-%</minitoc-xepersian.def>
-%<*environments-ltx.def>
-% \fi
-% \part{environments-ltx.def}
-% \begin{macrocode}
-\eqenvironment[]{abstract}
-\eqenvironment[]{align}
-\eqenvironment[]{alignat}
-\eqenvironment[]{aligned}
-\eqenvironment[]{appendix}
-\eqenvironment[]{array}
-\eqenvironment[]{center}
-\eqenvironment[]{alltt}
-\eqenvironment[]{bmatrix}
-\eqenvironment[]{Bmatrix}
-\eqenvironment[]{cases}
-\eqenvironment[]{description}
-\eqenvironment[]{displaymath}
-\eqenvironment[]{enumerate}
-\eqenvironment[]{eqnarray}
-\eqenvironment[]{eqnarray*}
-\eqenvironment[]{equation}
-\eqenvironment[]{equation*}
-\eqenvironment[]{falign}
-\eqenvironment[]{figure}
-\eqenvironment[]{figure*}
-\eqenvironment[]{filecontents}
-\eqenvironment[]{filecontents*}
-\eqenvironment[]{flushleft}
-\eqenvironment[]{flushright}
-\eqenvironment[]{gather}
-\eqenvironment[]{gathered}
-\eqenvironment[]{itemize}
-\eqenvironment[]{letter}
-\eqenvironment[]{list}
-\eqenvironment[]{longtable}
-\eqenvironment[]{lrbox}
-\eqenvironment[]{math}
-\eqenvironment[]{matrix}
-\eqenvironment[]{minipage}
-\eqenvironment[]{multicols}
-\eqenvironment[]{multline}
-\eqenvironment[]{note}
-\eqenvironment[]{overlay}
-\eqenvironment[]{picture}
-\eqenvironment[]{pmatrix}
-\eqenvironment[]{quotation}
-\eqenvironment[]{quote}
-\eqenvironment[]{slide}
-\eqenvironment[]{sloppypar}
-\eqenvironment[]{split}
-\eqenvironment[]{subarray}
-\eqenvironment[]{subequations}
-\eqenvironment[]{tabbing}
-\eqenvironment[]{table}
-\eqenvironment[]{table*}
-\eqenvironment[]{tabular}
-\eqenvironment[]{tabular*}
-\eqenvironment[]{thebibliography}
-\eqenvironment[]{theindex}
-\eqenvironment[]{titlepage}
-\eqenvironment[]{trivlist}
-\eqenvironment[]{verbatim}
-\eqenvironment[]{verbatim*}
-\eqenvironment[]{verse}
-\eqenvironment[]{vmatrix}
-\eqenvironment[]{Vmatrix}
-% \end{macrocode}
-% \iffalse
-%</environments-ltx.def>
-%<*environments-xepersian.def>
-% \fi
-% \part{environments-xepersian.def}
-% \begin{macrocode}
-
-% \end{macrocode}
-% \iffalse
-%</environments-xepersian.def>
-%<*extbook-xepersian.def>
-% \fi
-% \part{extbook-xepersian.def}
-% \begin{macrocode}
-\renewcommand\frontmatter{%
- \cleardoublepage
- \@mainmatterfalse
- \pagenumbering{harfi}}
-\renewcommand\mainmatter{%
- \cleardoublepage
- \@mainmattertrue
- \pagenumbering{arabic}}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</extbook-xepersian.def>
-%<*kashida-xepersian.def>
-% \fi
-% \part{kashida-xepersian.def}
-% \begin{macrocode}
-\chardef\zwj="200D % zero-width joiner
-\chardef\ksh="0640 % kashida
-
-\chardef\D=10 % dual-joiner class
-\chardef\L=11 % lam
-\chardef\R=12 % right-joiner
-\chardef\A=13 % alef
-\chardef\V=256 % vowel or other combining mark (to be ignored)
-
-\def\kashida{\zwj\nobreak \setbox0=\hbox{\ksh}%
- \leaders\hrule height\ht0 \hskip0pt plus 0.5em \zwj}
-
-\def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}%
- \expandafter\dosetclass\charlist,\end}
-\def\dosetclass#1,#2\end{%
- \def\test{#1}\def\charlist{#2}%
- \ifx\test\empty\let\next\finishsetclass
- \else \XeTeXcharclass "\test = \theclass
- \let\next\dosetclass \fi
- \expandafter\next\charlist,,\end}
-\def\finishsetclass#1,,\end{}
-
-\setclass \A {0622,0623,0625,0627}
-\setclass \R {0624,0629,062F,0630,0631,0632,0648,0698}
-\setclass \D {0626,0628,062A,062B,062C,062D,062E}
-\setclass \D {0633,0634,0635,0636,0637,0638,0639,063A}
-\setclass \D {0640,0641,0642,0643,0645,0646,0647,0649,064A}
-\setclass \D {067E,0686,06A9,06AF,06CC}
-\setclass \L {0644}
-\setclass \V {064B,064C,064D,064E,064F,0650,0651,0652}
-
-\XeTeXinterchartoks \D \D = {\kashida}
-\XeTeXinterchartoks \L \D = {\kashida}
-\XeTeXinterchartoks \D \L = {\kashida}
-\XeTeXinterchartoks \L \L = {\kashida}
-\XeTeXinterchartoks \D \R = {\kashida}
-\XeTeXinterchartoks \D \A = {\kashida}
-\XeTeXinterchartoks \L \R = {\kashida}
-\XeTeXinterchartoks \L \A = {}
-
-\XeTeXinterchartokenstate=1
-% \end{macrocode}
-% \iffalse
-%</kashida-xepersian.def>
-%<*listings-xepersian.def>
-% \fi
-% \part{listings-xepersian.def}
-% \begin{macrocode}
-\def\lstlistingname{برنامهٔ}
-\def\lstlistlistingname{فهرست برنامه‌ها}
-% \end{macrocode}
-% \iffalse
-%</listings-xepersian.def>
-%<*memoir-xepersian.def>
-% \fi
-% \part{memoir-xepersian.def}
-% \begin{macrocode}
-\renewcommand{\@memfront}{%
- \@smemfront\pagenumbering{harfi}}
-\renewcommand{\setthesection}{\thechapter\@SepMark\harfi{section}}
-\renewcommand*{\thebook}{\@tartibi\c@book}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand{\appendix}{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \anappendixtrue}
-% \end{macrocode}
-% \iffalse
-%</memoir-xepersian.def>
-%<*misccommandsenvironments-ltx.def>
-% \fi
-% \part{misccommandsenvironments-ltx.def}
-% \begin{macrocode}
-\eqcommand[\سند]{\document}
-\eqcommand[\endسند]{\enddocument}
-% \end{macrocode}
-% \iffalse
-%</misccommandsenvironments-ltx.def>
-%<*refrep-xepersian.def>
-% \fi
-% \part{refrep-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</refrep-xepersian.def>
-%<*report-xepersian.def>
-% \fi
-% \part{report-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</report-xepersian.def>
-%<*rapport3-xepersian.def>
-% \fi
-% \part{rapport3-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\thepart{\@tartibi\c@part}
-\renewcommand*\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}}
-% \end{macrocode}
-% \iffalse
-%</rapport3-xepersian.def>
-%<*scrartcl-xepersian.def>
-% \fi
-% \part{scrartcl-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-% \end{macrocode}
-% \iffalse
-%</scrartcl-xepersian.def>
-%<*scrbook-xepersian.def>
-% \fi
-% \part{scrbook-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*\frontmatter{%
- \if@twoside\cleardoubleoddpage\else\clearpage\fi
- \@mainmatterfalse\pagenumbering{harfi}%
-}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-% \end{macrocode}
-% \iffalse
-%</scrbook-xepersian.def>
-%<*scrreprt-xepersian.def>
-% \fi
-% \part{scrreprt-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-% \end{macrocode}
-% \iffalse
-%</scrreprt-xepersian.def>
-%<*tocloft-xepersian.def>
-% \fi
-% \part{tocloft-xepersian.def}
-% \begin{macrocode}
-\renewcommand*{\cftchapname}{\if@RTL فصل\else chapter\fi}
-\renewcommand*{\cftsecname}{\if@RTL قسمت\else section\fi}
-\renewcommand*{\cftsubsecname}{\if@RTL زیرقسمت\else subsection\fi}
-\renewcommand*{\cftsubsubsecname}{\if@RTL زیرزیرقسمت\else subsubsection\fi}
-\renewcommand*{\cftparaname}{\if@RTL پاراگراف\else paragraph\fi}
-\renewcommand*{\cftsubparaname}{\if@RTL زیرپاراگراف\else subparagraph\fi}
-\renewcommand*{\cftfigname}{\if@RTL شکل\else figure\fi}
-\renewcommand*{\cftsubfigname}{\if@RTL زیرشکل\else subfigure\fi}
-\renewcommand*{\cfttabname}{\if@RTL جدول\else table\fi}
-\renewcommand*{\cftsubtabname}{\if@RTL زیرجدول\else subtable\fi}
-% \end{macrocode}
-% \iffalse
-%</tocloft-xepersian.def>
-%<*xepersian-magazine.cls>
-% \fi
-% \part{xepersian-magazine.cls}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-magazine}[2009/01/05 v0.1 Typesetting Persian magazines in XeLaTeX (Author: Vafa Khalighi)]
-\RequirePackage{ifthen}
-\newlength{\xepersian@imgsize}
-\newlength{\xepersian@coltitsize}
-\newlength{\xepersian@pageneed}
-\newlength{\xepersian@pageleft}
-\newlength{\xepersian@indexwidth}
-\newcommand{\xepersian@ncolumns}{0}
-\newlength{\columnlines}
-\setlength{\columnlines}{0 pt} % no lines by default
-\newboolean{xepersian@hyphenatedtitles}
-\setboolean{xepersian@hyphenatedtitles}{true}
-\newboolean{xepersian@ninepoints}
-\setboolean{xepersian@ninepoints}{false}
-\newboolean{xepersian@showgrid}
-\setboolean{xepersian@showgrid}{false}
-\newboolean{xepersian@a3paper}
-\setboolean{xepersian@a3paper}{false}
-\newboolean{xepersian@insidefrontpage}
-\setboolean{xepersian@insidefrontpage}{false}
-\newboolean{xepersian@insideweather}
-\setboolean{xepersian@insideweather}{false}
-\newboolean{xepersian@insideindex}
-\setboolean{xepersian@insideindex}{false}
-\newcount\xepersian@gridrows
-\newcount\xepersian@gridcolumns
-\xepersian@gridrows=40
-\xepersian@gridcolumns=50
-\newcount\minraggedcols
-\minraggedcols=5
-\DeclareOption{10pt}{\PassOptionsToClass{10pt}{article}}
-\DeclareOption{11pt}{\PassOptionsToClass{11pt}{article}}
-\DeclareOption{12pt}{\PassOptionsToClass{12pt}{article}}
-\DeclareOption{twocolumn}%
-{\ClassWarning{xepersian-magazine}{Option 'twocolumn' not available for xepersian-magazine.}}
-\DeclareOption{notitlepage}%
-{\ClassWarning{xepersian-magazine}{Option 'notitlepage' not available for xepersian-magazine.}}
-\DeclareOption{twoside}%
-{\ClassWarning{xepersian-magazine}{Option 'twoside' not available for xepersian-magazine.}}
-\DeclareOption{9pt}{\setboolean{xepersian@ninepoints}{true}}
-\DeclareOption{hyphenatedtitles}{\setboolean{xepersian@hyphenatedtitles}{false}}
-\DeclareOption{columnlines}{\setlength{\columnlines}{0.1 pt}}
-\DeclareOption{showgrid}{\setboolean{xepersian@showgrid}{true}}
-\DeclareOption{a3paper}{\setboolean{xepersian@a3paper}{true}}
-\ProcessOptions\relax
-\LoadClass[10pt, onecolumn, titlepage, a4paper]{article}
-\RequirePackage{ifxetex}
-\RequirePackage{multido}
-\RequirePackage{datetime}
-\RequirePackage{fmultico}
-\RequirePackage{fancyhdr}
-\RequirePackage{fancybox}
-\ifthenelse{\boolean{xepersian@a3paper}}{%
-\RequirePackage[a3paper,headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry}
-}{
-\RequirePackage[headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry}
-}
-\RequirePackage[absolute]{textpos} % absoulte positioning
-\RequirePackage{hyphenat} % when hyphenate
-\RequirePackage{lastpage} % to know the last page number
-\RequirePackage{setspace} % set space between lines
-\RequirePackage{ragged2e}
-\newcommand{\raggedFormat}{\RaggedLeft}
-\AtEndOfClass{\xepersianInit}
-\ifthenelse{\boolean{xepersian@showgrid}}{%
-\AtBeginDocument{
-\grid[show]{\xepersian@gridrows}{\xepersian@gridcolumns}}
-\advance\minraggedcols by -1
-}{%
-\AtBeginDocument{
-\grid[]{\xepersian@gridrows}{\xepersian@gridcolumns}}
-\advance\minraggedcols by -1
-}
-\ifthenelse{\boolean{xepersian@ninepoints}}{
-\renewcommand{\normalsize}{%
- \@setfontsize{\normalsize}{9pt}{10pt}%
- \setlength{\abovedisplayskip}{5pt plus 1pt minus .5pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{3pt plus 1pt minus 2pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\tiny}{\@setfontsize{\tiny}{5pt}{6pt}}
-
-\renewcommand{\scriptsize}{\@setfontsize{\scriptsize}{7pt}{8pt}}
-
-\renewcommand{\small}{%
- \@setfontsize{\small}{8pt}{9pt}%
- \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{2pt plus 1pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\footnotesize}{%
- \@setfontsize{\footnotesize}{8pt}{9pt}%
- \setlength{\abovedisplayskip}{4pt plus 1pt minus .5pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{2pt plus 1pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\large}{\@setfontsize{\large}{11pt}{13pt}}
-\renewcommand{\Large}{\@setfontsize{\Large}{14pt}{18pt}}
-\renewcommand{\LARGE}{\@setfontsize{\LARGE}{18pt}{20pt}}
-\renewcommand{\huge}{\@setfontsize{\huge}{20pt}{25pt}}
-\renewcommand{\Huge}{\@setfontsize{\Huge}{25pt}{30pt}}
-}{}
-\def\customwwwTxt#1{\gdef\@customwwwTxt{\lr{#1}}}
-\newcommand{\xepersian@wwwFormat}{\sffamily}
-\newcommand{\xepersian@www}{%
-\raisebox{-3pt}{{\xepersian@wwwFormat\@customwwwTxt}}
-}
-\newcommand{\xepersian@edition}{ویرایش من}
-\newcommand{\editionFormat}{\large\bfseries\texttt}
-\newcommand{\xepersian@editionLogo}{%
-\raisebox{-3pt}{%
-{\editionFormat\xepersian@edition}%
-}%
-}
-\newcommand{\indexFormat}{\large\bfseries}
-\newcommand{\xepersian@indexFrameTitle}[1]
-{\begin{flushright}{{\indexFormat #1}}\end{flushright}}
-
-\newcommand{\indexEntryFormat}{\normalsize}
-\newcommand{\xepersian@indexEntry}[1]{\begin{minipage}{13\TPHorizModule}%
-{\indexEntryFormat\noindent\ignorespaces{#1}}%
-\end{minipage}}
-\newcommand{\indexEntrySeparator}{\rule{\xepersian@indexwidth}{.1pt}}
-\newcommand{\indexEntryPageTxt}{صفحهٔ}
-\newcommand{\indexEntryPageFormat}{\footnotesize}
-\newcommand{\xepersian@indexEntryPage}[1]{%
-{\indexEntryPageFormat{\indexEntryPageTxt{}~#1}}%
-}
-\newcommand{\headDateTimeFormat}{}
-\newcommand{\xepersian@headDateTime}{%
-\headDateTimeFormat\date\hspace{5pt}$\parallel$\hspace{5pt}%
-\currenttime %
-}
-\newcommand{\weatherFormat}{\bfseries}
-\newcommand{\xepersian@weather}[1]{%
-\noindent{\weatherFormat #1}%
-}
-\newcommand{\weatherTempFormat}{\small}
-\newcommand{\weatherUnits}{\textdegree{}C}
-\newcommand{\xepersian@section}[0]{صفحهٔ جلو}
-\newcommand{\xepersian@headleft}{%
-{\small\bfseries \@custommagazinename}، \date
-}
-\newcommand{\xepersian@headcenter}{%
-\xepersian@section{}
-}
-\newcommand{\xepersian@headright}{%
-\small\xepersian@edition%
-\hspace*{5pt}\beginL\thepage\ / \pageref{LastPage}\endL
-}
-
-\newcommand{\heading}[3]{%
-\renewcommand{\xepersian@headleft}{\beginR#1\endR}%
-\renewcommand{\xepersian@headcenter}{\beginR#2\endR}%
-\renewcommand{\xepersian@headright}{\beginR#3\endR}%
-}
-\newcommand{\xepersian@footright}{%
-{\footnotesize\lr{\copyright\ \@customwwwTxt{}}---تهیه‌شده توسط \lr{\XePersian}}%
-}
-\newcommand{\xepersian@footcenter}{%
-}
-\newcommand{\xepersian@footleft}{%
-}
-
-\newcommand{\foot}[3]{%
-\renewcommand{\xepersian@footleft}{\beginR#1\endR}%
-\renewcommand{\xepersian@footcenter}{\beginR#2\endR}%
-\renewcommand{\xepersian@footright}{\beginR#3\endR}%
-}
-\newcommand{\firstTitleFormat}{\Huge\bfseries\flushright}
-\newcommand{\xepersian@firstTitle}[1]{%
-{%
-\begin{spacing}{2.0}{%
-\noindent\ignorespaces
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\firstTitleFormat #1}}%
-{{\firstTitleFormat #1}}%
-}%
-\end{spacing}%
-}%
-}
-\newcommand{\firstTextFormat}{}
-\newcommand{\xepersian@firstText}[1]{%
-{\noindent\ignorespaces\firstTextFormat #1}%
-}
-\newcommand{\secondTitleFormat}{\LARGE\bfseries}
-\newcommand{\xepersian@secondTitle}[1]{%
-\begin{spacing}{1.5}{%
-\noindent\ignorespaces\flushright
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\secondTitleFormat #1}}%
-{{\secondTitleFormat #1}}%
-}\end{spacing}%
-}
-\newcommand{\secondSubtitleFormat}{\large}
-\newcommand{\xepersian@secondSubtitle}[1]{%
-{\noindent\ignorespaces{\secondSubtitleFormat #1}}%
-}
-\newcommand{\secondTextFormat}{}
-\newcommand{\xepersian@secondText}[1]{%
-\begin{multicols}{2}
-{\noindent\ignorespaces\secondTextFormat #1}
-\end{multicols}
-}
-\newcommand{\thirdTitleFormat}{\Large\bfseries}
-\newcommand{\xepersian@thirdTitle}[1]{%
-\begin{spacing}{1.5}{%
-\noindent\ignorespaces\flushright
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\thirdTitleFormat #1}}%
-{{\thirdTitleFormat #1}}%
-}\end{spacing}%
-}
-\newcommand{\thirdSubtitleFormat}{\large}
-\newcommand{\xepersian@thirdSubtitle}[1]%
-{{\noindent\ignorespaces\thirdSubtitleFormat #1}}
-\newcommand{\thirdTextFormat}{}
-\newcommand{\xepersian@thirdText}[1]{{\thirdTextFormat #1}}
-\newcommand{\pictureCaptionFormat}{\small\bfseries}
-\newcommand{\xepersian@pictureCaption}[1]{%
-{\noindent\pictureCaptionFormat #1}%
-}
-\newcommand{\pagesFormat}{\bfseries\footnotesize}
-\newcommand{\xepersian@pages}[1]%
-{\noindent{\pagesFormat\MakeUppercase{#1}}}
-\newcommand{\innerTitleFormat}{\Huge}
-\newcommand{\xepersian@innerTitle}[1]{%
-\begin{flushright}{%
-\noindent
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\innerTitleFormat #1}}%
-{{\innerTitleFormat #1}}%
-}%
-\\%
-\end{flushright}%
-}
-\newcommand{\innerSubtitleFormat}{\large}
-\newcommand{\xepersian@innerSubtitle}[1]{{\innerSubtitleFormat #1}}
-\newcommand{\timestampTxt}{}
-\newcommand{\timestampSeparator}{|}
-\newcommand{\timestampFormat}{\small}
-\newcommand{\timestamp}[1]{%
-{\timestampFormat%
-#1~\timestampTxt{}%
-}~\timestampSeparator{}%
-}
-\newcommand{\innerAuthorFormat}{\footnotesize}
-\newcommand{\innerPlaceFormat}{\footnotesize\bfseries}
-\newcommand{\innerTextFinalMark}{\rule{0.65em}{0.65em}}
-\newcommand{\editorialTitleFormat}{\LARGE\textit}
-\newcommand{\xepersian@editorialTitle}[1]{\editorialTitleFormat{#1}}
-\newcommand{\editorialAuthorFormat}{\textsc}
-\newcommand{\shortarticleTitleFormat}{\LARGE\bfseries}
-\newcommand{\xepersian@shortarticleTitle}[1]{{\shortarticleTitleFormat #1}}
-\newcommand{\shortarticleSubtitleFormat}{\Large}
-\newcommand{\xepersian@shortarticleSubtitle}[1]{{\shortarticleSubtitleFormat #1}}
-\newcommand{\shortarticleItemTitleFormat}{\large\bfseries}
-\newcommand{\xepersian@shortarticleItemTitle}[1]{{\shortarticleItemTitleFormat #1}}
-\renewcommand{\maketitle}{\begin{titlepage}%
- \let\footnotesize\small
- \let\footnoterule\relax
- \let \footnote \thanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 1em%
- {\LARGE «\xepersian@edition» \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\newcommand{\xepersian@say}[1]{\typeout{#1}}
-\newsavebox{\xepersian@fmbox}
-\newenvironment{xepersian@fmpage}[1]
- {\begin{lrbox}{\xepersian@fmbox}\begin{minipage}{#1}}
- {\end{minipage}\end{lrbox}\fbox{\usebox{\xepersian@fmbox}}}
-\newcommand{\image}[2]{
-\vspace{5pt}
-\setlength{\fboxsep}{1pt}
-\addtolength{\xepersian@imgsize}{\columnwidth}
-\addtolength{\xepersian@imgsize}{-1\columnsep}
-\ifxetex
-\setlength{\xepersian@pageneed}{1.5\xepersian@imgsize}
-\addtolength{\xepersian@pageneed}{50pt}
-\ClassWarning{xepersian-magazine}{%
-Image #1 needs: \the\xepersian@pageneed \space %
-and there is left: \the\page@free\space%
-}
-\ifdim \xepersian@pageneed < \page@free
-
-{\centering\fbox{%
-\includegraphics[width = \xepersian@imgsize,
-height = \xepersian@imgsize,
-keepaspectratio ]{#1}}}
-\xepersian@pictureCaption{#2}
-
-\vspace{5pt}
-\else
-\ClassWarning{Image #1 needs more space!%
- It was not inserted!}
-\fi
-\fi
-}
-\textblockorigin{1cm}{1cm}
-\newdimen\xepersian@dx
-\newdimen\xepersian@dy
-\newcount\xepersian@cx
-\newcount\xepersian@cy
-\newcommand{\grid}[3][]{
-\xepersian@dx=\textwidth%
-\xepersian@dy=\textheight%
-\xepersian@cx=#3% %columns
-\xepersian@cy=#2% %rows
-
-\count1=#3%
-\advance\count1 by 1
-
-\count2=#2%
-\advance\count2 by 1
-
-\divide\xepersian@dx by #3
-\divide\xepersian@dy by #2
-
-\setlength{\TPHorizModule}{\xepersian@dx}
-\setlength{\TPVertModule}{\xepersian@dy}
-
-\ifthenelse{\equal{#1}{show}}{
-\multido{\xepersian@nrow=0+1}{\count2}{
-\begin{textblock}{\xepersian@cx}(0,\xepersian@nrow)
-\rule[0pt]{\textwidth}{.1pt}
-\end{textblock}
-}
-
-\multido{\xepersian@ncol=0+1}{\count1}{
-\begin{textblock}{\xepersian@cy}(\xepersian@ncol,0)
-\rule[0pt]{.1pt}{\textheight}
-\end{textblock}
-}
-}{}
-}
-\newcommand{\xepersianInit}{
-\setlength{\headheight}{14pt}
-\renewcommand{\headrulewidth}{0.4pt}
-
-\pagestyle{fancy}
-
-\setlength{\columnseprule}{\columnlines}
-\setlength{\fboxrule}{0.1 pt}
-
-}
-
-\def\customlogo#1{\gdef\@customlogo{\beginR#1\endR}}
-\def\customminilogo#1{\gdef\@customminilogo{\beginR#1\endR}}
-\def\custommagazinename#1{\gdef\@custommagazinename{\beginR#1\endR}}
-\newcommand{\logo}[0]{
-%% Heading %%
-\noindent\hrulefill\hspace{10pt}\xepersian@editionLogo\hspace{5pt}\xepersian@www
-
-\vspace*{-3pt}
-
-{\Large\bfseries \@customlogo}
-\hrulefill
-\hspace{10pt}\xepersian@headDateTime
-
-}
-\newcommand{\minilogo}[0]{
-{\large\bfseries \@customminilogo}
-
-\vspace*{5pt}
-}
-\newcommand{\mylogo}[1]{
-{\beginR#1\endR}
-
-\noindent
-\xepersian@editionLogo\hspace{5pt}
-\hrulefill
-\hspace{5pt}\xepersian@headDateTime
-}
-\newcommand{\edition}[1]{\renewcommand{\xepersian@edition}{#1}}
-\newenvironment{frontpage}[0]
-{
-\setboolean{xepersian@insidefrontpage}{true}
-\thispagestyle{empty}
-%\pdfbookmark[1]{صفحهٔ اول}{\thepage}
-\logo
-
-}%
-{
-\thispagestyle{empty}
-\clearpage
-\newpage
-\fancyhead{}
- \fancyfoot{}
-\fancyhead[RO,LE]{\beginR\xepersian@headright\endR}
-\fancyhead[LO,RE]{\beginR\xepersian@headleft\endR}
- \fancyhead[C]{\beginR\xepersian@headcenter\endR}
- \fancyfoot[RO,LE]{\beginR\xepersian@footright\endR}
- \fancyfoot[LO,RE]{\beginR\xepersian@footleft\endR}
-\fancyfoot[C]{\beginR\xepersian@footcenter\endR}
-\renewcommand{\headrulewidth}{0.4pt}
-\setboolean{xepersian@insidefrontpage}{false}
-
-}
-\newcommand{\firstarticle}[3]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}{%
-\begin{textblock}{24}(22,5)
-}
-{
-\begin{textblock}{28}(22,5)
-}
-\vspace{-7pt}
-\xepersian@firstTitle{#1}
-\end{textblock}
-\begin{textblock}{29}(22,10)
-\vspace{5pt plus 2pt minus 2pt}
-
-\xepersian@firstText{\timestamp{#3}~#2}
-
-\end{textblock}
-
-\begin{textblock}{50}(0,15)
-\rule{50\TPHorizModule}{.3pt}
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\firstarticle\space in a wrong place.\MessageBreak
-\protect\firstarticle\space may only appear inside frontpage environment.
-}{%
-\protect\firstarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\secondarticle}[5]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{33}(2,16)
-\xepersian@pages{#4}
-\vspace{-5pt}
-\xepersian@secondTitle{#1}
-
-\vspace*{5pt}
-
-\xepersian@secondSubtitle{#2}
-
-\vspace*{-7pt}
-
-\xepersian@secondText{\timestamp{#5}~#3}
-
-\end{textblock}
-
-\begin{textblock}{33}(2,25)
-\vspace{5pt plus 2pt minus 2pt}
-
-\noindent\ignorespaces\rule{33\TPHorizModule}{.3pt}
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\secondarticle\space in a wrong place.\MessageBreak
-\protect\secondarticle\space may only appear inside frontpage environment.
-}{%
-\protect\secondarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\thirdarticle}[6]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{32}(2,26)
-\xepersian@pages{#5}
-\vspace{-5pt}
-\setlength{\fboxsep}{1pt}
-\xepersian@thirdTitle{#1}
-
-\vspace*{5pt}
-
-\xepersian@thirdSubtitle{#2}
-
-\vspace*{5pt}
-
-{\noindent\ignorespaces %
-\ifthenelse{\equal{#4}{}}{}
-
-\xepersian@thirdText{\timestamp{#6}~#3}
-
-}
-
-\vspace*{5pt}
-
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\thirdarticle\space in a wrong place.\MessageBreak
-\protect\thirdarticle\space may only appear inside frontpage environment.
-}{%
-\protect\thirdarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\firstimage}[2]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{18}(2,5)
-\setlength{\fboxsep}{1pt}
-\ifxetex % only in PDF
-\noindent\fbox{\includegraphics[width = 18\TPHorizModule ]{#1}}
-\fi
-
-\xepersian@pictureCaption{#2}
-\end{textblock}%
-}
-{\ClassError{xepersian-magazine}{%
-\protect\firstimage\space in a wrong place.\MessageBreak
-\protect\firstimage\space may only appear inside frontpage environment.
-}{%
-\protect\firstimage\space may only appear inside frontpage environment.
-}}
-}%
-\newcommand{\weatheritem}[5]{%
-\ifthenelse{\boolean{xepersian@insideweather}}{
-\begin{minipage}{45pt}
-\ifxetex
-\includegraphics[width=40pt]{#1}
-\fi
-\end{minipage}
-\begin{minipage}{50pt}
-\weatherTempFormat
-#2\\
-\beginL#3 $\|$ #4 \lr{\weatherUnits{}}\endL\\
-#5
-\end{minipage}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\weatheritem\space in a wrong place.\MessageBreak
-\protect\weatheritem\space may only appear inside weatherblock environment.
-}{%
-\protect\weatheritem\space may only appear inside weatherblock environment.\MessageBreak
-weatherblock environment may only appear inside frontpage environment.
-}%
-}
-}
-\newenvironment{weatherblock}[1]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\setboolean{xepersian@insideweather}{true}
-\begin{textblock}{32}(2,38)
-\vspace*{-15pt}
-
-\xepersian@weather{\beginR#1\endR}
-
-\vspace*{5pt}
-
-\noindent\begin{xepersian@fmpage}{32\TPHorizModule}
-\begin{minipage}{32\TPHorizModule}
-\hspace{5pt}
-
-}{%
-\ClassError{xepersian-magazine}{%
-weatherblock in a wrong place.\MessageBreak
-weatherblock may only appear inside frontpage environment.
-}{%
-weatherblock may only appear inside frontpage environment.
-}
-}
-}%
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-\setboolean{xepersian@insideweather}{false}
-}
-\newenvironment{authorblock}[0]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{15}(36,35)
-\setlength{\fboxsep}{5pt}
-\begin{xepersian@fmpage}{13\TPHorizModule}
-\begin{minipage}{13\TPHorizModule}
-\centering
-\minilogo
-
-}{%else
-\ClassError{xepersian-magazine}{%
-authorblock in a wrong place.\MessageBreak
-authorblock may only appear inside frontpage environment.
-}{%
-authorblock may only appear inside frontpage environment.
-}
-}
-}
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-}
-\newenvironment{indexblock}[1]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\setboolean{xepersian@insideindex}{true}%let's in
-\begin{textblock}{15}(36,16)
-\setlength{\xepersian@indexwidth}{13\TPHorizModule}
-\xepersian@indexFrameTitle{#1}
-
-\setlength{\fboxsep}{5pt} %espacio entre el frame y la imagen
-\begin{xepersian@fmpage}{\xepersian@indexwidth}
-\begin{minipage}{\xepersian@indexwidth}
-\vspace*{10pt}
-}{%else
-\ClassError{xepersian-magazine}{%
-indexblock in a wrong place.\MessageBreak
-indexblock may only appear inside frontpage environment.
-}{%
-indexblock may only appear inside frontpage environment.
-}
-}
-}%
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-\setboolean{xepersian@insideindex}{false}%let's out
-}
-\newcommand{\indexitem}[2]
-{
-\ifthenelse{\boolean{xepersian@insideindex}}{
-\xepersian@indexEntry{#1، \xepersian@indexEntryPage{\pageref{#2}}}
-
-\vspace{0.5cm}
-
-\noindent\ignorespaces\indexEntrySeparator{}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\indexitem\space in a wrong place.\MessageBreak
-\protect\indexitem\space may only appear inside indexblock environment.
-}{%
-\protect\indexitem\space may only appear inside indexblock environment.\MessageBreak
-indexblock environment may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\xepersian@inexpandedtitle}[1]{
-\begin{minipage}{.95\textwidth}
-\begin{center}
-\noindent\Large\textbf{\beginR#1\endR}
-\end{center}
-\end{minipage}
-}
-\newcommand{\expandedtitle}[2]{
-\end{multicols}
-
-\begin{center}
-\setlength{\fboxsep}{5pt}
-\setlength{\shadowsize}{2pt}
-\ifthenelse{\equal{#1}{shadowbox}}{%
-\shadowbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{doublebox}}{%
-\doublebox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{ovalbox}}{%
-\ovalbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{Ovalbox}}{%
-\Ovalbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{lines}}{
-\hrule
-\vspace*{8pt}
-\begin{center}
-\noindent\Large\textbf{#2}
-\end{center}
-\vspace*{8pt}
-\hrule
-}{}
-\end{center}
-
-\begin{multicols}{\xepersian@ncolumns{}}
-\ifnum \xepersian@ncolumns > \minraggedcols
-\raggedFormat
-\fi
-}
-\newcommand{\xepersian@incolumntitle}[2]{
-\begin{minipage}{#1}
-\begin{center}
-\noindent\normalsize\textbf{#2}
-\end{center}
-\end{minipage}
-}
-
-\newcommand{\columntitle}[2]{
-\vspace*{5pt}
-\begin{center}
-\setlength{\fboxsep}{5pt}
-\setlength{\shadowsize}{2pt}
-\addtolength{\xepersian@coltitsize}{\columnwidth}
-\addtolength{\xepersian@coltitsize}{-1\columnsep}
-\addtolength{\xepersian@coltitsize}{-5pt}
-\addtolength{\xepersian@coltitsize}{-1\shadowsize}
-\ifthenelse{\equal{#1}{shadowbox}}{%
-\shadowbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{doublebox}}{%
-\doublebox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{ovalbox}}{%
-\ovalbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{Ovalbox}}{%
-\Ovalbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{lines}}{
-\hrule
-\vspace*{5pt}
-\begin{center}
-\noindent\normalsize\textbf{#2}
-\end{center}
-\vspace*{5pt}
-\hrule
-}{}
-\end{center}
-}
-\renewcommand{\date}{%
-\longdate{\today}%
-}
-\newcommand{\authorandplace}[2]{%
-\rightline{%
-{\innerAuthorFormat #1},\space{}{\innerPlaceFormat #2}%
-}%
-\par %
-}
-\newcommand{\newsection}[1]{
-%\pdfbookmark[0]{#1}{\thepage} %bookmark para el pdf
-\renewcommand{\xepersian@section}{#1}
-}
-\newenvironment{article}[5]
-{
-\xepersian@say{Adding a new piece of article}
-\renewcommand{\xepersian@ncolumns}{#1}
-\begin{multicols}{#1}[
-\xepersian@pages{#4}
-\xepersian@innerTitle{#2}%
-\xepersian@innerSubtitle{#3}%
-][4cm]%
-\label{#5}
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{~\innerTextFinalMark{}
-\end{multicols}
-}
-\newcommand{\articlesep}{%
-\setlength{\xepersian@pageneed}{16000pt}
-\setlength\xepersian@pageleft{\pagegoal}
-\addtolength\xepersian@pageleft{-\pagetotal}
-
-\xepersian@say{How much left \the\xepersian@pageleft}
-
-\ifdim \xepersian@pageneed < \xepersian@pageleft
-\xepersian@say{Not enough space}
-\else
-\xepersian@say{Adding sep line between articles}
-\vspace*{10pt plus 10pt minus 5pt}
-\hrule
-\vspace*{10pt plus 5pt minus 5pt}
-\fi
-
-}
-\newcommand{\xepersian@editorialTit}[2]{
-\setlength{\arrayrulewidth}{.1pt}
-\begin{center}
-\begin{tabular}{c}
-\noindent
-\xepersian@editorialTitle{#1}
-\vspace{2pt plus 1pt minus 1pt}
-\\
-\hline
-\vspace{2pt plus 1pt minus 1pt}
-\\
-\editorialAuthorFormat{#2}
-\end{tabular}
-\end{center}
-}
-\newenvironment{editorial}[4]
-{
-\xepersian@say{Adding a new editorial}
-\begin{multicols}{#1}[%
-\xepersian@editorialTit{#2}{#3}%
-][4cm]
-\label{#4}
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{
-\end{multicols}
-}
-\newcommand{\xepersian@shortarticleTit}[2]{
-\begin{center}
-\vbox{%
-\noindent
-\xepersian@shortarticleTitle{#1}
-\vspace{4pt plus 2pt minus 2pt}
-\hrule
-\vspace{4pt plus 2pt minus 2pt}
-\xepersian@shortarticleSubtitle{#2}
-}
-\end{center}
-}
-\newenvironment{shortarticle}[4]
-{
-\xepersian@say{Adding a short article block}
-\begin{multicols}{#1}[\xepersian@shortarticleTit{#2}{#3}][4cm] %
- \label{#4}
-\par %
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{
-\end{multicols}
-}
-\newcommand{\shortarticleitem}[2]{
-\goodbreak
-\vspace{5pt plus 3pt minus 3pt}
-{\vbox{\noindent\xepersian@shortarticleItemTitle{#1}}}
-\vspace{5pt plus 3pt minus 3pt}
-{\noindent #2}\\
-}
-% \end{macrocode}
-% \iffalse
-%</xepersian-magazine.cls>
-%<*xepersian-mathsdigitspec.sty>
-% \fi
-% \part{xepersian-mathsdigitspec.sty}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-mathsdigitspec}
- [2009/04/22 v1.0.1 Unicode Persian maths digits in XeLaTeX (Author: Vafa Khalighi)]
-\@zf@mathfalse
-\def\@preamblecmds{}
-\newcommand\not@onlypreamble[1]{{%
- \def\do##1{\ifx#1##1\else\noexpand\do\noexpand##1\fi}%
- \xdef\@preamblecmds{\@preamblecmds}}}
-\def\gm@notprerr{ can be used only in preamble (\on@line)}
-\AtBeginDocument{%
- \def\do#1{\noexpand\do\noexpand#1}%
- \edef\@preamblecmds{%
- \def\noexpand\do##1{%
- \def##1{\noexpand\PackageError{gmutils/LaTeX}%
- {\noexpand\string##1 \noexpand\gm@notprerr}\noexpand\@eha}}%
- \@preamblecmds}}
-\def\nocite#1{%
- \@bsphack{\setbox0=\hbox{\cite{#1}}}\@esphack}
-\newcommand\xepersian@PackageInfo[1]{\PackageInfo{xepersian-mathsdigitspec}{#1}}
-\newcommand\SetMathCode[4]{%
- \XeTeXmathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
-\newcommand\SetMathCharDef[4]{%
- \XeTeXmathchardef#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
-\newcommand\setdigitfont[2][]{%
- \let\glb@currsize\relax
- \setkeys*[xepersian-mathsdigitspec]{options}{#1}%
- \edef\@tempa{\noexpand\zf@fontspec{%
- \XKV@rm}{#2}}\@tempa
- \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'}
- \DeclareSymbolFont{OPERATORS} {EU1}{\zf@family} {m}{n}
- \SetSymbolFont{OPERATORS}{bold}{EU1}{\zf@family} {bx}{n}
- \DeclareMathAlphabet {\mathit}{EU1}{\zf@family}{m}{it}
- \DeclareSymbolFontAlphabet{\mathrm} {OPERATORS}
- \DeclareMathAlphabet {\mathbf}{EU1}{\zf@family}{bx}{n}
- \SetMathCode{`0}{\mathalpha}{OPERATORS}{"06F0}
- \SetMathCode{`1}{\mathalpha}{OPERATORS}{"06F1}
- \SetMathCode{`2}{\mathalpha}{OPERATORS}{"06F2}
- \SetMathCode{`3}{\mathalpha}{OPERATORS}{"06F3}
- \SetMathCode{`4}{\mathalpha}{OPERATORS}{"06F4}
- \SetMathCode{`5}{\mathalpha}{OPERATORS}{"06F5}
- \SetMathCode{`6}{\mathalpha}{OPERATORS}{"06F6}
- \SetMathCode{`7}{\mathalpha}{OPERATORS}{"06F7}
- \SetMathCode{`8}{\mathalpha}{OPERATORS}{"06F8}
- \SetMathCode{`9}{\mathalpha}{OPERATORS}{"06F9}
- \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}
-}
-\ifx\newcommand\undefined\else
- \newcommand{\ZifferAn}{}
-\fi
-\mathchardef\ziffer@DotOri="013A
-{\ZifferAn
- \catcode`\.=\active\gdef.{\begingroup\obeyspaces\futurelet\n\ziffer@dcheck}}
-\def\ziffer@dcheck{\ziffer@check\ZifferLeer\ziffer@DotOri}
-\def\ziffer@check#1#2{%
- \ifx\n1\endgroup#1\else
- \ifx\n2\endgroup#1\else
- \ifx\n3\endgroup#1\else
- \ifx\n4\endgroup#1\else
- \ifx\n5\endgroup#1\else
- \ifx\n6\endgroup#1\else
- \ifx\n7\endgroup#1\else
- \ifx\n8\endgroup#1\else
- \ifx\n9\endgroup#1\else
- \ifx\n0\endgroup#1\else
- \endgroup#2%
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi}
-\mathcode`.="8000\relax
-\def\ZifferLeer{\ifx\decimalseparator\undefied .\else \decimalseparator\fi}
-% \end{macrocode}
-% \iffalse
-%</xepersian-mathsdigitspec.sty>
-%<*xepersian-multiplechoice.sty>
-% \fi
-% \part{xepersian-multiplechoice.sty}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-multiplechoice}[2009/03/21 v0.1
- Multiple Choice Questionnaire class for Persian in XeLaTeX (Author: Vafa Khalighi)]
-\RequirePackage{pifont}
-\RequirePackage{fullpage}
-\RequirePackage{ifthen}
-\RequirePackage{calc}
-\RequirePackage{verbatim}
-\RequirePackage{fmultico}
-\def\@headerfont{\bfseries}
-\newcommand\headerfont[1]{\gdef\@headerfont{#1}}
-\def\@X{X}
-\newcommand\X[1]{\gdef\@X{#1}}
-\def\pbs#1{\let\tmp=\\#1\let\\=\tmp}
-\newcommand\makeform@nocorrection{%
- \addtocontents{frm}{\protect\end{tabular}}
- \@starttoc{frm}}
-\newcommand\makeform@correction{%
- \addtocontents{frm}{\protect\end{tabular}}}
-\newcommand\makemask@nocorrection{%
- \addtocontents{msk}{\protect\end{tabular}}
- \@starttoc{msk}}
-\newcommand\makemask@correction{%
- \addtocontents{msk}{\protect\end{tabular}}}
-\newlength\questionspace
-\setlength\questionspace{0pt}
-\newcommand\answerstitle[1]{\gdef\@answerstitle{#1}}
-\def\@answerstitlefont{\bfseries}
-\newcommand\answerstitlefont[1]{\gdef\@answerstitlefont{#1}}
-\def\@answernumberfont{\bfseries}
-\newcommand\answernumberfont[1]{\gdef\@answernumberfont{#1}}
-\newcounter{question}\stepcounter{question}
-\newcounter{@choice}
-\def\@initorcheck{%
- \xdef\@choices{\the@choice}%
- \setcounter{@choice}{1}%
- \gdef\@arraydesc{|l||}%
- \gdef\@headerline{}%
- \whiledo{\not{\value{@choice}>\@choices}}{
- \xdef\@arraydesc{\@arraydesc c|}
- \def\@appendheader{\g@addto@macro\@headerline}
- \@appendheader{&\protect\@headerfont}
- \edef\@the@choice{{\alph{@choice}}}
- \expandafter\@appendheader\@the@choice
- \stepcounter{@choice}}%
- \addtocontents{frm}{%
- \protect\begin{tabular}{\@arraydesc}
- \protect\hline
- \@headerline\protect\\\protect\hline\protect\hline}%
- \addtocontents{msk}{%
- \protect\begin{tabular}{\@arraydesc}
- \protect\hline
- \@headerline\protect\\\protect\hline\protect\hline}%
- \gdef\@initorcheck{%
- \ifthenelse{\value{@choice} = \@choices}{}{%
- \ClassError{xepersian-multiplechoice}{Question \thequestion: wrong number of choices
- (\the@choice\space instead of \@choices)}{%
- Questions must all have the same number of proposed answers.%
- \MessageBreak
- Type X <return> to quit, fix your MCQ (multiple choice question) and rerun XeLaTeX.}}}}
-\newenvironment{question}[1]{%
- %% \begin{question}
- \begin{minipage}{\textwidth}
- \xdef\@formanswerline{\@questionheader}%
- \xdef\@maskanswerline{\@questionheader}%
- \fbox{\parbox[c]{\linewidth}{#1}}
- \vspace\questionspace\par
- {\@answerstitlefont\@answerstitle}
-\begin{multicols}{4}
- \begin{list}{\@answernumberfont\alph{@choice})~}{\usecounter{@choice}}}{%
- %% \end{question}
- \end{list}
-\end{multicols}
- \@initorcheck%
- \addtocontents{frm}{\@formanswerline\protect\\\protect\hline}%
- \addtocontents{msk}{\@maskanswerline\protect\\\protect\hline}%
- \end{minipage}
- \stepcounter{question}}
-\def\@truesymbol{\ding{52}~}
-\def\@falsesymbol{\ding{56}~}
-\newcommand\truesymbol[1]{\gdef\@truesymbol{#1}}
-\newcommand\falsesymbol[1]{\gdef\@falsesymbol{#1}}
-\def\@true@nocorrection{\item}
-\def\@false@nocorrection{\item}
-\def\@true@correction{\item[\@truesymbol\refstepcounter{@choice}]}
-\def\@false@correction{\item[\@falsesymbol\refstepcounter{@choice}]}
-\newcommand\true{%
- \xdef\@formanswerline{\@formanswerline&}%
- \xdef\@maskanswerline{\@maskanswerline&\@X}%
- \@true}%
-\newcommand\false{%
- \xdef\@formanswerline{\@formanswerline&}%
- \xdef\@maskanswerline{\@maskanswerline&}%
- \@false}%
-\def\@correctionstyle{\itshape}
-\newcommand\correctionstyle[1]{\gdef\@correctionstyle{#1}}
-\newenvironment{@correction}{\@correctionstyle}{}
- \def\@questionheader{سؤال \thequestion}
- \answerstitle{جوابهای ممکن:}
-\DeclareOption{nocorrection}{%
- \let\@true\@true@nocorrection
- \let\@false\@false@nocorrection
- \let\correction\comment
- \let\endcorrection\endcomment
- \def\makeform{\makeform@nocorrection}
- \def\makemask{\makemask@nocorrection}}
-\DeclareOption{correction}{%
- \let\@true\@true@correction
- \let\@false\@false@correction
- \let\correction\@correction
- \let\endcorrection\end@correction
- \def\makeform{\makeform@correction}
- \def\makemask{\makemask@correction}}
-\ExecuteOptions{nocorrection}
-\newcommand\questiontitle[1]{\gdef\@questiontitle{#1}}
-\def\@questiontitlefont{\bfseries}
-\newcommand\questiontitlefont[1]{\gdef\@questiontitlefont{#1}}
-\newlength\questiontitlespace
-\setlength\questiontitlespace{5pt}
-\newlength\questionsepspace
-\setlength\questionsepspace{20pt}
-\gdef\@questionsepspace{0pt}
-\let\old@question\question
-\let\old@endquestion\endquestion
-\renewenvironment{question}[1]{%
- %% \begin{question}
- \vspace\@questionsepspace
- \fbox{\parbox[c]{0.25\linewidth}{\@questiontitlefont\@questiontitle}}
- \nopagebreak\vspace\questiontitlespace\par
- \old@question{#1}}{%
- %% \end{question}
- \old@endquestion
- \gdef\@questionsepspace{\questionsepspace}}
- \questiontitle{سؤال \thequestion:}
-\ProcessOptions
-% \end{macrocode}
-% \iffalse
-%</xepersian-multiplechoice.sty>
-%<*xepersian-persiancal.sty>
-% \fi
-% \part{xepersian-persiancal.sty}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-persiancal}
-
-\newif\ifXePersian@leap \newif\ifXePersian@kabiseh
-\newcount\XePersian@i \newcount\XePersian@y \newcount\XePersian@m \newcount\XePersian@d
-\newcount\XePersian@latini \newcount\XePersian@persiani
-\newcount\XePersian@latinii \newcount\XePersian@persianii
-\newcount\XePersian@latiniii \newcount\XePersian@persianiii
-\newcount\XePersian@latiniv \newcount\XePersian@persianiv
-\newcount\XePersian@latinv \newcount\XePersian@persianv
-\newcount\XePersian@latinvi \newcount\XePersian@persianvi
-\newcount\XePersian@latinvii \newcount\XePersian@persianvii
-\newcount\XePersian@latinviii \newcount\XePersian@persianviii
-\newcount\XePersian@latinix \newcount\XePersian@persianix
-\newcount\XePersian@latinx \newcount\XePersian@persianx
-\newcount\XePersian@latinxi \newcount\XePersian@persianxi
-\newcount\XePersian@latinxii \newcount\XePersian@persianxii
- \newcount\XePersian@persianxiii
-
-\newcount\XePersian@temp
-\newcount\XePersian@temptwo
-\newcount\XePersian@tempthree
-\newcount\XePersian@yModHundred
-\newcount\XePersian@thirtytwo
-\newcount\XePersian@dn
-\newcount\XePersian@sn
-\newcount\XePersian@mminusone
-
-\def\persiantoday{%
-\XePersian@y=\year \XePersian@m=\month \XePersian@d=\day
-%
-\XePersian@temp=\XePersian@y
-\divide\XePersian@temp by 100\relax
-\multiply\XePersian@temp by 100\relax
-\XePersian@yModHundred=\XePersian@y
-\advance\XePersian@yModHundred by -\XePersian@temp\relax
-%
-\ifodd\XePersian@yModHundred
- \XePersian@leapfalse
-\else
- \XePersian@temp=\XePersian@yModHundred
- \divide\XePersian@temp by 2\relax
- \ifodd\XePersian@temp\XePersian@leapfalse
- \else
- \ifnum\XePersian@yModHundred=0%
- \XePersian@temp=\XePersian@y
- \divide\XePersian@temp by 400\relax
- \multiply\XePersian@temp by 400\relax
- \ifnum\XePersian@y=\XePersian@temp\XePersian@leaptrue\else\XePersian@leapfalse\fi
- \else\XePersian@leaptrue
- \fi
- \fi
-\fi
-%
-\XePersian@latini=31\relax
-\ifXePersian@leap
- \XePersian@latinii = 29\relax
-\else
- \XePersian@latinii = 28\relax
-\fi
-\XePersian@latiniii = 31\relax
-\XePersian@latiniv = 30\relax
-\XePersian@latinv = 31\relax
-\XePersian@latinvi = 30\relax
-\XePersian@latinvii = 31\relax
-\XePersian@latinviii = 31\relax
-\XePersian@latinix = 30\relax
-\XePersian@latinx = 31\relax
-\XePersian@latinxi = 30\relax
-\XePersian@latinxii = 31\relax
-%
-\XePersian@thirtytwo=32\relax
-%
-\XePersian@temp=\XePersian@y
-\advance\XePersian@temp by -17\relax
-\XePersian@temptwo=\XePersian@temp
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 33\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\ifnum\XePersian@temp=\XePersian@thirtytwo\XePersian@kabisehfalse
-\else
- \XePersian@temptwo=\XePersian@temp
- \divide\XePersian@temptwo by 4\relax
- \multiply\XePersian@temptwo by 4\relax
- \advance\XePersian@temp by -\XePersian@temptwo
- \ifnum\XePersian@temp=\z@\XePersian@kabisehtrue\else\XePersian@kabisehfalse\fi
-\fi
-%
-% In fact persiani is equal to the Leap years from a fixed year to the last
-% year minus the Kabise years from a fixed year to the last year plus a const.
-%
-\XePersian@tempthree=\XePersian@y % Number of Leap years
-\advance\XePersian@tempthree by -1
-\XePersian@temp=\XePersian@tempthree % T := (MY-1) div 4
-\divide\XePersian@temp by 4\relax
-\XePersian@temptwo=\XePersian@tempthree % T := T - ((MY-1) div 100)
-\divide\XePersian@temptwo by 100\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\XePersian@temptwo=\XePersian@tempthree % T := T + ((MY-1) div 400)
-\divide\XePersian@temptwo by 400\relax
-\advance\XePersian@temp by \XePersian@temptwo
-\advance\XePersian@tempthree by -611 % Number of Kabise years
-\XePersian@temptwo=\XePersian@tempthree % T := T - ((SY+10) div 33) * 8
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 8\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\XePersian@temptwo=\XePersian@tempthree %
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 33\relax
-\advance\XePersian@tempthree by -\XePersian@temptwo
-\ifnum\XePersian@tempthree=32\advance\XePersian@temp by 1\fi % if (SY+10) mod 33=32 then Inc(T);
-\divide\XePersian@tempthree by 4\relax % T := T - ((SY+10) mod 33) div 4
-\advance\XePersian@temp by -\XePersian@tempthree
-\advance\XePersian@temp by -137 % T := T - 137 Adjust the value
-\XePersian@persiani=31
-\advance\XePersian@persiani by -\XePersian@temp % now 31 - T is the persiani
-%
-\XePersian@persianii = 30\relax
-\ifXePersian@kabiseh
- \XePersian@persianiii = 30\relax
-\else
- \XePersian@persianiii = 29\relax
-\fi
-\XePersian@persianiv = 31\relax
-\XePersian@persianv = 31\relax
-\XePersian@persianvi = 31\relax
-\XePersian@persianvii = 31\relax
-\XePersian@persianviii= 31\relax
-\XePersian@persianix = 31\relax
-\XePersian@persianx = 30\relax
-\XePersian@persianxi = 30\relax
-\XePersian@persianxii = 30\relax
-\XePersian@persianxiii= 30\relax
-%
-\XePersian@dn= 0\relax
-\XePersian@sn= 0\relax
-\XePersian@mminusone=\XePersian@m
-\advance\XePersian@mminusone by -1\relax
-%
-\XePersian@i=0\relax
-\ifnum\XePersian@i < \XePersian@mminusone
-\loop
-\advance \XePersian@i by 1\relax
-\advance\XePersian@dn by \csname XePersian@latin\romannumeral\the\XePersian@i\endcsname
-\ifnum\XePersian@i<\XePersian@mminusone \repeat
-\fi
-\advance \XePersian@dn by \XePersian@d
-%
-\XePersian@i=1\relax
-\XePersian@sn = \XePersian@persiani
-\ifnum \XePersian@sn<\XePersian@dn
-\loop
-\advance \XePersian@i by 1\relax
-\advance\XePersian@sn by \csname XePersian@persian\romannumeral\the\XePersian@i\endcsname
-\ifnum \XePersian@sn<\XePersian@dn \repeat
-\fi
-\ifnum \XePersian@i < 4
- \XePersian@m = 9 \advance\XePersian@m by \XePersian@i
- \advance \XePersian@y by -622\relax
-\else
- \XePersian@m = \XePersian@i \advance \XePersian@m by -3\relax
- \advance \XePersian@y by -621\relax
-\fi
-\advance\XePersian@sn by -\csname XePersian@persian\romannumeral\the\XePersian@i%
-\endcsname
-\ifnum\XePersian@i = 1
- \XePersian@d = \XePersian@dn \advance \XePersian@d by 30 \advance\XePersian@d by -\XePersian@persiani
-\else
- \XePersian@d = \XePersian@dn \advance \XePersian@d by -\XePersian@sn
-\fi
-\beginL\number\XePersian@d\endL\space%
-\persianmonth{\XePersian@m}\space\beginL\number\XePersian@y\endL%
-}
-\def\persianmonth#1{\ifcase#1\or فروردین\or
-اردیبهشت\or
-خرداد\or تیر\or
-مرداد\or
-شهریور\or مهر\or
-آبان\or آذر\or
-دی\or بهمن\or
-اسفند\fi}
-% \end{macrocode}
-% \iffalse
-%</xepersian-persiancal.sty>
-%<*xepersian-thesis.cls>
-% \fi
-% \part{xepersian-thesis.cls}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-thesis}
- [2009/01/05 v0.1
- Persian thesis document class in XeLaTeX]
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
-\ProcessOptions
-\LoadClass{report}
-\def\university#1{\gdef\@university{#1}}
-\def\department#1{\gdef\@department{#1}}
-\def\degree#1{\gdef\@degree{#1}}
-\def\thesisdate#1{\gdef\@thesisdate{#1}}
-\def\supervisor#1{\gdef\@supervisor{#1}}
-\def\city#1{\gdef\@city{#1}}
-
-\def\latintitle#1{\gdef\@latintitle{#1}}
-\def\latinauthor#1{\gdef\@latinauthor{#1}}
-\def\latindegree#1{\gdef\@latindegree{#1}}
-\def\latindepartment#1{\gdef\@latindepartment{#1}}
-\def\latinthesisdate#1{\gdef\@latinthesisdate{#1}}
-\def\latinsupervisor#1{\gdef\@latinsupervisor{#1}}
-\def\latincity#1{\gdef\@latincity{#1}}
-\def\latinuniversity#1{\gdef\@latinuniversity{#1}}
-
-\def\maketitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-{\Huge\bfseries \@title}\par
-\vskip 1cm
-{\large%
- \by}\par
-{\Large\bfseries \@author}\par
-\vskip 5mm
-{\large\bfseries\writtenfor
-\par
-\@degree}
-\par
-\vskip 1cm
-{\large
- \undersupervision\par
-\Large\bfseries \@supervisor}
-\par
-\vskip 1cm
-{\large \@thesisdate}
-\par
-\vskip 1cm
-{\large\bfseries\departmentof\space\@department}
-\par
-{\large\bfseries\universityof\space\@university \par\@city}
-\vfill
-\end{titlepage}%
-}
-
-\def\abstractpage{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\large{\bfseries \@title} \\}
-\end{center}
-\par
-\begin{abstract}}
-\def\endabstractpage{\end{abstract}
-\newpage
-}
-
-\def\latinabstract{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\Large\bfseries \@latintitle \\[5mm]}
-{\bfseries Abstract}
-\end{center}
-\vspace{5mm}}
-
-\def\endlatinabstract{\newpage}
-
-\def\acknowledgementpage{\newpage
-\thispagestyle{empty}
-\centerline{\Large \bfseries\acknowledgementname}
-\vspace{1cm}
-\par\noindent}
-\def\endacknowledgementpage{\newpage}
-
-\def\titlepage{\newpage\centering
- \thispagestyle{empty}
- \parindent 0pt \parskip 10pt plus 1fil minus 1fil
- \def\baselinestretch{1}\@normalsize\vbox to \vsize\bgroup\vbox to 9in\bgroup}
-\def\endtitlepage{\par\kern 0pt\egroup\vss\egroup\newpage}
-
-\def\signature#1#2{\par\noindent#1\dotfill\null\\*
- {\raggedright #2\par}}
-
-\def\abstract{\subsection*{\abstractname}\small
-\@normalsize}
-\def\endabstract{\par}
-
-\pagenumbering{harfi}
-\let\ol@chapter\@chapter
-\def\@chapter{%
- \ifnum\c@chapter=0 \pagenumbering{arabic}\setcounter{page}{1}\fi
- \ol@chapter}
-
-
-
-\def\keywords#1{\par \vspace{5mm}
-{\textbf{واژه‌های کلیدی:}} {\textit{ #1}}}
-
-\def\latinkeywords#1{\par \vspace{5mm}
-\noindent {\textbf{Keywords:}} {\textit{ #1}}}
-
-\font\titlefont=cmssbx10 scaled 2074
-\font\supervisorfont=cmbxti10
-\def\makelatintitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-\addtolength{\baselineskip}{5mm}
-{\titlefont \@latintitle} \par
-\addtolength{\baselineskip}{-5mm}
-\vskip 1cm
-{\bfseries\latinby}\par
-{\Large\bfseries \@latinauthor}\par
-\vskip 5mm
-{\latinwrittenfor\par
-\large\@latindegree}
-\par
-\vskip 1cm
-Under supervision of \\
-{\supervisorfont\@latinsupervisor}
-\par
-\vskip 1cm
-{\@latinthesisdate}
-\par
-\vskip 1cm
-\large\bfseries
-\@latindepartment\space Department
-\par
-\@latinuniversity \par\@latincity
-\vfill
-\end{titlepage}%
-}
-
-
-\def\acknowledgementname{قدردانی}
-\def\by{توسط}
-\def\writtenfor{ رسالهٔ ارائه شده به عنوان بخشی از ملزومات برای دریافت درجهٔ}
-\def\undersupervision{زیر نظر}
-\def\departmentof{دانشکدهٔ}
-\def\universityof{دانشگاه}
-\def\latinby{by}
-\def\latinwrittenfor{Submitted in Partial Fulfillment\\ of the Requirements\\ for the Degree of}
-\def\latinundersupervision{Under supervision of}
-% \end{macrocode}
-% \iffalse
-%</xepersian-thesis.cls>
-%<*xepersian-thesis-xepersian.def>
-% \fi
-% \part{xepersian-thesis-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</xepersian-thesis-xepersian.def>
-%<*acm-fa.bst>
-% \fi
-% \part{acm-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "acm-fa", Persian (farsi) version of acm.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%% NOTE: Its output for English references may has a bit difference with acm.bst, for pure English texts please use acm.bst
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright of acm.bst
-% ACM Transactions bibliography style (24-Jan-88 version)
-% A lot like abbrv.bst, but names come out "Last, initials", and in \sc.
-% Some dates are parenthesized.
-
-% History of acm-fa.bst
-% 2009/02/12, The initial release was a combination of acm.bst and plain-fa.bst
-% \textsc is used here instead of \sc.
-%
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- acm-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. thesis" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-FUNCTION {emphasizeic}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "\/}" * }
- if$
-}
-
-FUNCTION {scapify}
-{ duplicate$ empty$
- { pop$ "" }
- { "\textsc{ " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { "," bbl.etal * * }
- { "," bbl.and * * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-% For names inside entries (e.g., editors of an "In ...");
-% this is exactly ABBRV.BST's `format.names' function.
-FUNCTION {format.innames}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- {s nameptr "{ff}{vv~}{ll}{, jj}" format.name$ 't :=}
- {s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=}
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names scapify}
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names scapify
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.ineditors}
-{ editor empty$
- { "" }
- { editor format.innames
- editor num.names$ #1 >
- { ", " * bbl.editors *}
- { ", " * bbl.editor *}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { "volume" volume tie.or.space.connect
- series empty$
- 'skip$
- { " of " * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages n.dashify }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pp.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.journal.vol.num.date}
-{ journal empty$
- { "empty journal in " cite$ * warning$
- ""
- }
- { journal
- volume empty$
- 'skip$
- { " " * volume * }
- if$
- number empty$
- 'emphasizeic
- { emphasize ", " * number * }
- if$
- year empty$
- { "empty year in " cite$ * warning$ }
- { " (" * format.date * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pp.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pp.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- {bbl.in booktitle emphasize *
- editor empty$
- 'skip$
- { ", " * format.ineditors * }
- if$
- }
- if$
-}
-
-% The proceedings title (it's on the stack) gets an (address, date) appended
-FUNCTION {format.proc.date}
-{ duplicate$ empty$
- { pop$ "" }
- { year empty$
- { "empty year in " cite$ * warning$
- address empty$
- 'emphasize
- { emphasizeic
- " (" * address * ")" *
- }
- if$
- }
- { emphasizeic
- " (" *
- address empty$
- 'skip$
- { address * ", " * }
- if$
- format.date *
- ")" *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.proc.date}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle format.proc.date * }
- if$
-}
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.journal.vol.num.date output
- format.pages output
- }
- { format.article.crossref output.nonnull
- format.pp.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- format.edition output
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- {
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- format.chapter.pages "chapter and pages" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.edition output
- format.bvolume output
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- }
- if$
- format.chapter.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.proc.date "booktitle" output.check
- format.ineditors output
- format.bvolume output
- format.number.series output
- organization output
- publisher output
- }
- { format.incoll.inproc.crossref output.nonnull }
- if$
- format.pp.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization scapify output }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- author empty$
- { address new.block.checka }
- { organization address new.block.checkb
- organization output
- }
- if$
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization scapify output }
- { format.editors output.nonnull }
- if$
- new.block
- title format.proc.date "title" output.check
- format.bvolume output
- format.number.series output
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Comput. Surv."}
-
-MACRO {acta} {"Acta Inf."}
-
-MACRO {cacm} {"Commun. ACM"}
-
-
-MACRO {ibmjrd} {"IBM J. Res. Dev."}
-
-MACRO {ibmsj} {"IBM Syst.~J."}
-
-
-MACRO {ieeese} {"IEEE Trans. Softw. Eng."}
-
-MACRO {ieeetc} {"IEEE Trans. Comput."}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Comput.-Aided Design Integrated Circuits"}
-
-
-MACRO {ipl} {"Inf. Process. Lett."}
-
-MACRO {jacm} {"J.~ACM"}
-
-
-MACRO {jcss} {"J.~Comput. Syst. Sci."}
-
-MACRO {scp} {"Sci. Comput. Programming"}
-
-MACRO {sicomp} {"SIAM J. Comput."}
-
-
-MACRO {tocs} {"ACM Trans. Comput. Syst."}
-
-MACRO {tods} {"ACM Trans. Database Syst."}
-
-MACRO {tog} {"ACM Trans. Gr."}
-
-
-MACRO {toms} {"ACM Trans. Math. Softw."}
-
-MACRO {toois} {"ACM Trans. Office Inf. Syst."}
-
-
-MACRO {toplas} {"ACM Trans. Program. Lang. Syst."}
-
-MACRO {tcs} {"Theoretical Comput. Sci."}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
- { key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
- { key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
- { key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
- 'editor.organization.sort
- { type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
- }
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</acm-fa.bst>
-%<*ieeetr-fa.bst>
-% \fi
-% \part{ieeetr-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "ieeetr-fa", Persian (farsi) version of ieeetr.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-% IEEE Transactions bibliography style (29-Jan-88 version)
-% numeric labels, order-of-reference, IEEE abbreviations,
-% quotes around article titles, commas separate all fields
-% except after book titles and before "notes". Otherwise,
-% much like the "plain" family, from which this is adapted.
-%
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.quote after.sentence
- after.quoted.block after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- ieeetr-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.quote :=
- #3 'after.sentence :=
- #4 'after.quoted.block :=
- #5 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.quote =
- { " " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { output.state after.quoted.block =
- { write$
- newline$
- "\newblock " write$
- }
- { add.period$ " " * write$ }
- if$
- }
- if$
- }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {blank.sep}
-{ after.quote 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ output.state after.quoted.block =
- 'skip$
- 'add.period$
- if$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { output.state after.quote =
- { after.quoted.block 'output.state := }
- { after.block 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { %s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
- fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { " {\em" * bbl.etal * "}" * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.title.p}
-{ title empty$
- { "" }
- { fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
- }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume *
- series empty$
- 'skip$
- { bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify * }
- { bbl.page pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.volume}
-{ volume empty$
- { "" }
- { bbl.volume volume * }%M.Amintoosi "vol.~"
- if$
-}
-
-FUNCTION {format.number}
-{ number empty$
- { "" }
- { bbl.number number * }%M.Amintoosi "no.~"
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle emphasize *
- editor empty$
- 'skip$
- { " (" * format.editors * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- output.state after.block =
- { type "t" change.case$ }
- { type "l" change.case$ }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "l" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.addr.pub}
-{ publisher empty$
- { "" }
- { address empty$
- { "" }
- { address ": " * }
- if$
- publisher *
- }
- if$
-}
-
-FUNCTION {format.paddress}
-{ address empty$
- { "" }
- { "(" address * ")" * }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$
- #2 >
- { pop$ " {\em" * bbl.etal * "}" * }
- { #2 <
- 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { " {\em" bbl.etal * "}" * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in "{\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { journal emphasize "journal" output.check
- format.volume output
- month empty$
- { format.number output }
- 'skip$
- if$
- format.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- title empty$
- { "empty title in " cite$ * warning$
- howpublished new.sentence.checka
- }
- { howpublished empty$ not
- address empty$ month empty$ year empty$ and and
- or
- { format.title.p output.nonnull }
- { format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- format.addr.pub "publisher" output.check
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- format.pages output
- organization output
- publisher output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
- 'skip$
- { organization output.nonnull
- address output
- }
- if$
- }
- { format.authors output.nonnull }
- if$
- format.btitle "title" output.check
- author empty$
- { organization empty$
- { address new.block.checka
- address output
- }
- 'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- bbl.mthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title empty$
- { howpublished new.sentence.checka }
- { howpublished empty$ not
- month empty$ year empty$ and
- or
- { format.title.p output.nonnull }
- { format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.btitle "title" output.check
- new.block
- bbl.phdthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- format.title.p "title" output.check
- blank.sep
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications ACM"}
-
-MACRO {ibmjrd} {"IBM J. Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems~J."}
-
-MACRO {ieeese} {"IEEE Trans. Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Trans. Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Computer-Aided Design"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"J.~ACM"}
-
-MACRO {jcss} {"J.~Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM J. Computing"}
-
-MACRO {tocs} {"ACM Trans. Computer Systems"}
-
-MACRO {tods} {"ACM Trans. Database Systems"}
-
-MACRO {tog} {"ACM Trans. Graphics"}
-
-MACRO {toms} {"ACM Trans. Mathematical Software"}
-
-MACRO {toois} {"ACM Trans. Office Information Systems"}
-
-MACRO {toplas} {"ACM Trans. Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</ieeetr-fa.bst>
-%<*plain-fa.bst>
-% \fi
-% \part{plain-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "plain-fa", Persian (farsi) version of plain.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-% BibTeX standard bibliography style `plain'
- % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- % Copyright (C) 1985, all rights reserved.
- % Copying of this file is authorized only if either
- % (1) you make absolutely no changes to your copy, including name, or
- % (2) if you do make changes, you name it something other than
- % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
- % This restriction helps ensure that all standard styles are identical.
- % The file btxbst.doc has the documentation for this style.
-
-%History
-% 2009/02/11, Copy and made the necessary changes from unsrt-fa.bst
-% Changing the sortify function so that it does nothing for persian entries
-% 2009/02/12, Chaniging format.names so that prints last name and then first names,
-% also it uses only one character of latin first names and whole persian first names
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.2" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- plain-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {
- s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- %fa.isPersianLanguage
- % {s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- % }
- % {s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=
- %t "t" change.case$ 't := %I wrote it to lower the letters of latin last names, but it also affected the first name
- %}
- %if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
- 'skip$
- { bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
- { "there's a number but no volume in " cite$ * warning$ }
- 'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
- { pop$ format.pages }
- { ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =%"{ff }{vv }{ll}{ jj}"
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
- { organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
- }
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
- 'skip$
- { organization output.nonnull
- address output
- }
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
- { address new.block.checka
- address output
- }
- 'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
- { publisher new.sentence.checka }
- { organization publisher new.sentence.checkb
- organization output
- }
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- %{ t write$ t sortify * t write$ }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
- { key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
- { key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
- { key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
- 'editor.organization.sort
- { type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
- }
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</plain-fa.bst>
-%<*unsrt-fa.bst>
-% \fi
-% \part{unsrt-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "usrt-fa", Persian (farsi) version of unsrt.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-% BibTeX standard bibliography style `unsrt'
- % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- % Copyright (C) 1985, all rights reserved.
- % Copying of this file is authorized only if either
- % (1) you make absolutely no changes to your copy, including name, or
- % (2) if you do make changes, you name it something other than
- % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
- % This restriction helps ensure that all standard styles are identical.
- % The file btxbst.doc has the documentation for this style.
-
-%%%%%%%%%%% History:
-% 2009/02/07: v.1, First Release
-% 2009/02/08: v.2, Some bugs fixed
-% 2009/02/09: v.21, I have to check the persian language in format.edition, because in Persian, "edition" lies before the edition number.
-% 2009/02/09: v.22, I added a field Translator for translated books
-
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator }
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.22" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- unsrt-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " eds." 'bbl.editors :=
- " ed." 'bbl.editor :=
- " ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff}{vv~}{ll}{, jj}
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
- 'skip$
- { bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
- { "there's a number but no volume in " cite$ * warning$ }
- 'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
- { pop$ format.pages }
- { ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
- { organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
- }
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
- 'skip$
- { organization output.nonnull
- address output
- }
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
- { address new.block.checka
- address output
- }
- 'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
- { publisher new.sentence.checka }
- { organization publisher new.sentence.checkb
- organization output
- }
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by unsrt-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</unsrt-fa.bst>
-% \fi
-% \clearpage
-% \PrintChanges
-% \Finale
-%
-% \iffalse
-%<*parsidigits.map>
-; Vafa Khalighi ...
-LHSName "Digits"
-RHSName "ParsiDigits"
-
-pass(Unicode)
-U+0030 <> U+06F0 ;
-U+0031 <> U+06F1 ;
-U+0032 <> U+06F2 ;
-U+0033 <> U+06F3 ;
-U+0034 <> U+06F4 ;
-U+0035 <> U+06F5 ;
-U+0036 <> U+06F6 ;
-U+0037 <> U+06F7 ;
-U+0038 <> U+06F8 ;
-U+0039 <> U+06F9 ;
-
-U+0644 U+0651 U+064E U+0627 <> U+0644 U+0627 U+0651 U+064E ; lam shadda fatha alif -> lam alif shadda fatha
-U+0644 U+0651 U+0627 <> U+0644 U+0627 U+0651 ; lam shadda alif -> lam alif shadda
-U+0644 U+0652 U+0622 <> U+0644 U+0622 U+0652 ; lam sukun alifmadda -> lam alifmadda sukun
-U+0644 U+0652 U+0623 <> U+0644 U+0623 U+0652 ; lam sukun alifhamzaabove -> lam alifhamzaabove sukun
-U+0644 U+0652 U+0625 <> U+0644 U+0625 U+0652 ; lam sukun alifhamzabelow -> lam alifhamzabelow sukun
-U+0644 U+0651 U+064B U+0627 <> U+0644 U+0627 U+0651 U+064b ; lam shadda fathatan alif -> lam alif shadda fathatan
-U+0644 U+064B U+0627 <> U+0644 U+0627 U+064B ; lam fathatan alif -> lam alif fathatan
-
-U+002C <> U+060C ; comma ­> arabic comma
-U+003F <> U+061F ; question mark -> arabic qm
-U+003B <> U+061B ; semicolon -> arabic semicolon
-
-; ligatures from Knuth's original CMR fonts
-U+002D U+002D <> U+2013 ; -- -> en dash
-U+002D U+002D U+002D <> U+2014 ; --- -> em dash
-
-U+0027 <> U+2019 ; ' -> right single quote
-U+0027 U+0027 <> U+201D ; '' -> right double quote
-U+0022 > U+201D ; " -> right double quote
-
-U+0060 <> U+2018 ; ` -> left single quote
-U+0060 U+0060 <> U+201C ; `` -> left double quote
-
-U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
-U+003F U+0060 <> U+00BF ; ?` -> inverted question
-
-; additions supported in T1 encoding
-U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
-U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
-U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
-%</parsidigits.map>
-%<*txt2maths.map>
-; Vafa Khalighi ...
-LHSName "Digits"
-RHSName "txt2maths"
-
-Pass(Unicode)
-U+002E <> U+066B ; convert dot to Persian decimal separator
-U+002D <> U+2212 ; convert hyphen to minus sign
-U+0030 <> U+06F0 ;
-U+0031 <> U+06F1 ;
-U+0032 <> U+06F2 ;
-U+0033 <> U+06F3 ;
-U+0034 <> U+06F4 ;
-U+0035 <> U+06F5 ;
-U+0036 <> U+06F6 ;
-U+0037 <> U+06F7 ;
-U+0038 <> U+06F8 ;
-U+0039 <> U+06F9 ;
-
-U+0644 U+0651 U+064E U+0627 <> U+0644 U+0627 U+0651 U+064E ; lam shadda fatha alif -> lam alif shadda fatha
-U+0644 U+0651 U+0627 <> U+0644 U+0627 U+0651 ; lam shadda alif -> lam alif shadda
-U+0644 U+0652 U+0622 <> U+0644 U+0622 U+0652 ; lam sukun alifmadda -> lam alifmadda sukun
-U+0644 U+0652 U+0623 <> U+0644 U+0623 U+0652 ; lam sukun alifhamzaabove -> lam alifhamzaabove sukun
-U+0644 U+0652 U+0625 <> U+0644 U+0625 U+0652 ; lam sukun alifhamzabelow -> lam alifhamzabelow sukun
-U+0644 U+0651 U+064B U+0627 <> U+0644 U+0627 U+0651 U+064b ; lam shadda fathatan alif -> lam alif shadda fathatan
-U+0644 U+064B U+0627 <> U+0644 U+0627 U+064B ; lam fathatan alif -> lam alif fathatan
-
-U+002C <> U+060C ; comma ­> arabic comma
-U+003F <> U+061F ; question mark -> arabic qm
-U+003B <> U+061B ; semicolon -> arabic semicolon
-
-; ligatures from Knuth's original CMR fonts
-U+002D U+002D <> U+2013 ; -- -> en dash
-U+002D U+002D U+002D <> U+2014 ; --- -> em dash
-
-U+0027 <> U+2019 ; ' -> right single quote
-U+0027 U+0027 <> U+201D ; '' -> right double quote
-U+0022 > U+201D ; " -> right double quote
-
-U+0060 <> U+2018 ; ` -> left single quote
-U+0060 U+0060 <> U+201C ; `` -> left double quote
-
-U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
-U+003F U+0060 <> U+00BF ; ?` -> inverted question
-
-; additions supported in T1 encoding
-U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
-U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
-U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
-%</txt2maths.map>
-%<*thesis-sample.tex>
-\documentclass[a4paper,11pt]{xepersian-thesis}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{XB Zar}
-
-
-
-
-\begin{document}
-\title{اعداد مرکب}
-\author{وفا خلیقی}
-\degree{کارشناسی ریاضیات محض}
-\supervisor{محمد قدسی}
-\department{ریاضی}
-\university{تهران}
-\city{تهران}
-\thesisdate{\today}
-\maketitle
-\begin{acknowledgementpage}
-در اینجا دوست دارم از همه تشکر کنم
-\end{acknowledgementpage}
-\begin{abstractpage}
-اینجا هم باید مطلبی نوشت...
-\keywords{ریاضی محض، هندسه و توپولوژی}
-\end{abstractpage}
-\tableofcontents
-\listoftables
-\chapter{مجموعه اعداد}
-در اینجا لازم می‌دانم تا نگاهی روی مجموعهٔ اعداد اندازیم تا متوجه خصلت‌های آن شویم
-\begin{equation}
-(a+b)^2=a^2+2ab+b^3
-\end{equation}
-\newpage
-این صفحهٔ جدید است که ما در این صفحه به نوشتن مقالات دیگری مشغول هستیم.
-\section{مقدمه}
-
-\newpage
-این هم یک صفحهٔ جدید دیگر
-\chapter{دوم}
-\chapter{سوم}
-\appendix
-\chapter{اول}
-\chapter{دوم}
-\chapter{سوم}
-\bibliographystyle{unsrt}
-\begin{thebibliography}{99}
-\end{thebibliography}
-%\printindex
-\begin{latin}
-\latintitle{Pure Mathematics}
-\latinauthor{Vafa Khalighi}
-\latindegree{Bachelor of Pure Mathematics}
-\latinthesisdate{\latintoday}
-\latinsupervisor{Mohammad Ghodsi}
-\latindepartment{Computer Science}
-\latinuniversity{Iran University of Science \& Technology}
-\latincity{Tehran}
-\begin{latinabstract}
-\noindent This is our abstract written in English and This thesis is written very very very carefully so that we can keep an eye on the beauty of typesetting.
-\latinkeywords{Mathematics, topology, geometry and category theory.}
-\end{latinabstract}
-\makelatintitle
-\end{latin}
-\end{document}
-%</thesis-sample.tex>
-%<*magazine-sample.tex>
-\documentclass[12pt,twoside]{xepersian-magazine}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\usepackage{xunicode}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Junicode}
-\setdigitfont{XB Zar}
-\pagestyle{fancy}
-\title{مجلهٔ زی‌پرشین}
-\author{وفا خلیقی}
-\edition{جلد اول}
-\customlogo{مجلهٔ زی‌پرشین}
-\customminilogo{مجلهٔ زی‌پرشین}
-\custommagazinename{مجلهٔ زی‌پرشین}
-\customwwwTxt{http://developer.berlios.de/projects/xepersian}
-\begin{document}
-\begin{frontpage}
-\firstimage{img/ireland.jpg}{این زیرنویس تصویر اصلی در صفحهٔ اول است.}
-\firstarticle{این تیتر مقالهٔ اول است.}
- {خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد.}%
- {۱۲:۳۴}
-\secondarticle{این هم سر تیتر مقالهٔ دوم است.}%
- {این هم زیر تیتر مقالهٔ دوم است که آن را در اینجا می‌نویسیم.}%
- {خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد.}%
- {قسمت الف}%
- {۱۰:۲۳}
-
-\thirdarticle{این سرتیتر مقالهٔ سوم است.}%
- {این هم زیرتیتر مقالهٔ سوم است که ما آن را در اینجا قرار می‌دهیم.}%
- {خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد. و همانطور که می‌بینید من مطلبی برای گفتن ندارم فقط متن علکی می‌نویسم تا کمی صفحه را پر کرده باشم. اما در قسمتهای بعدی مقداری از سهراب سپهری خواهم نوشت.}%
-
- {قسمت ب}%
- {۱۰:۰۲}
-
-\begin{indexblock}{نمایه (فهرست مطالب) اصلی}
-\indexitem{۱- مقاله اول}{1}
-
-\indexitem{۲- مقاله دوم}{3}
-
-\indexitem{۳- مقاله سوم}{3}
-
-\indexitem{۴- مقاله چهارم}{5}
-\end{indexblock}
-
-\begin{weatherblock}{وضع آب و هوا}
-\weatheritem{img/weather/rain.jpg}{امروز}{13}{9}{}
-\weatheritem{img/weather/sun.jpg}{فردا}{15}{1}{}
-\weatheritem{img/weather/clouds.jpg}{جمعه}{12}{6}{}
-\end{weatherblock}
-
-
-\begin{authorblock}
-\textbf{ویرایشگران}
-
-وفا خلیقی، مهدی امیدعلی و مصطفی واحدی
-
-\texttt{vafa@users.berlios.de\\[5pt]
-http://developer.berlios.de/projects/xepersian}\\
-\end{authorblock}
-\end{frontpage}
-\newsection{قسمت الف}
-\begin{article}{2}
- {این تیتر این مقاله است.}
- {این هم زیرتیتر این مقاله هست.}
- {قسمت الف}
- {1}
-\authorandplace{نام نویسنده}{مکان}
-
-
-
-
-\noindent\timestamp{۸:۲۵}
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-\footnote{این یک زیرنویس فارسی است.}\LTRfootnote{This is an English footnote.}
-\begin{equation}
-(a+b)^3=a^3+3a^2b+3ab^2+b^3\label{eq-1}
-\end{equation}
-این معادلهٔ \eqref{eq-1} است.
-\columntitle{lines}{این را برای مهم یا نشان دادن حرفی مهم در این مجله انجام می‌دهیم.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\begin{article}{2}
- {این تیتر این مقاله است.}
- {این هم زیرتیتر این مقاله هست.}
- {قسمت الف}
- {1}
-\authorandplace{نام نویسنده}{مکان}
-
-\noindent\timestamp{08:25}
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-\LTRfootnote{This is an English footnote.}\footnote{این یک زیرنویس فارسی است.}
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-\expandedtitle{doublebox}{این هم مطلی است مهم یا چیزی که از خلاصهٔ این مقاله ما متوجه شده‌ایم و این برای ما و خوانندگان خیلی مهم است.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\newsection{قسمت ب}
-
-
-\begin{article}{2}
- {این یک تیتر کوتاه است.وفا خلیقی}
- {این هم مثل همیشه زیرتیتر است که ما آن را در اینجا قرار می‌دهیم.}
- {قسمت ب}
- {3}
-
-\authorandplace{نام نویسنده}{مکان}
-
-
-
-\noindent\timestamp{08:25} et ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-\expandedtitle{lines}{این هم دوباره مطلب مهمی است که ما آن را از لابلای این مقاله برای خواننده درست کرده‌ایم.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-
-\begin{editorial}{1}{این یک مثال از مقاله‌ای از طرف ویرایشگر است.}{نام و نام خانوادگی}{4}
-يژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{editorial}
-
-\articlesep
-
-
-\begin{shortarticle}{4}{محیط مقالهٔ کوتاه}{محیط مقالهٔ کوتاه داخل مجلهٔ زی‌پرشین}{5}
-\shortarticleitem{این یک تیتر کوتاه است}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\end{shortarticle}
-
-\articlesep
-
-\end{document}
-%</magazine-sample.tex>
-%<*test-correction.tex>
-\documentclass{article}
-\usepackage[correction]{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-
-\end{document}
-%</test-correction.tex>
-%<*test-empty-form.tex>
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-\bigskip
-
-\begin{center}
-\makeform
-\end{center}
-\end{document}
-%</test-empty-form.tex>
-%<*test-question-only.tex>
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-
-\end{document}
-%</test-question-only.tex>
-%<*test-solution-form.tex>
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-\bigskip
-\begin{center}
-\makemask
-\end{center}
-\end{document}
-%</test-solution-form.tex>
-%<*acm-fa-output.tex>
-\documentclass[11pt,a4paper]{article}
-
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{acm-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-\nocite{*}
-\bibliographystyle{acm-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-
-\end{document}
-%</acm-fa-output.tex>
-%<*bibtex-example.tex>
-\documentclass[11pt,a4paper]{article}
-% محمود امین‌طوسی، http://webpages.iust.ac.ir/mamintoosi
-% فایل حاضر مثالی برای استفاده از سبک‌های فارسی در زی‌پرشین می‌باشد.
-% توجه نمایید که برای استفاده از این مثال باید به صورت زیر عمل نمایید:
-% xelatex filename (در نوت‌پد++ F6 یا Ctrl+F6) - با توجه به راهنمای زی‌پرشین
-% bibtex filename (تایپ دستور در خط فرمان نوت‌پد++)
-% xelatex filename (در نوت‌پد++ F6)
-% xelatex filename (در نوت‌پد++ F6 یا Ctrl+F6)
-% در این مثال به جای filename باید bibtex_example قرار دهید.
-% برای ویرایش مدخل‌ها فایل MyReferences.bib را باز کنید. در صورت تغییر این فایل بایستی دو مرحله‌ی میانی را پس از ذخیره‌ی آن اجرا نمایید.
-% در صورت تغییر در ارجاعات در این فایل باید هر چهار مرحله انجام شوند.
-
-% به جای unsrt می‌توانید سایر سبک‌ها را قرار داده و نتیجه را مشاهده نمایید. (plain-fa, acm-fa, ieeetr-fa, persia)
-
-\usepackage{verbatim}
-\usepackage{backref}
-\def\backrefpagesname{}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Times New latin}
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با استیل فارسی \lr{unsrt-fa} برای \lr{BibTeX} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-مرجع \cite{امیدعلی82دکترا} یک نمونه پروژه دکترا و مرجع\cite{واحدی87} یک نمونه مقاله مجله فارسی است.
-مرجع \cite{Baker02limits} یک نمونه مقاله انگلیسی است که در بین مراجع فارسی قرار گرفته است، مرجع \cite{Amintoosi87using} یک نمونه مقاله کنفرانس فارسی و
-مرجع \cite{استالینگ۸۰کتاب} یک نمونه کتاب فارسی با ذکر مترجمان و ویراستاران فارسی است. مرجع \cite{Khalighi07MscThesis} یک نمونه پروژه کارشناسی ارشد انگلیسی و
-\cite{خلیقی۸۷زی‌پرشین} هم یک نمونه متفرقه می‌باشند.
-
-%\nocite{*}
-{\small
-\bibliographystyle{unsrt-fa}%{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-}
-
-\end{document}
-%</bibtex-example.tex>
-%<*ieeetr-fa-output.tex>
-\documentclass[11pt,a4paper]{article}
-% محمود امین‌طوسی، http://webpages.iust.ac.ir/mamintoosi
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{ieeetr-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-
-\end{document}
-%</ieeetr-fa-output.tex>
-%<*MyReferences.bib>
-@article{Baker02limits,
- author = {Baker,, Simon and Kanade,, Takeo},
- title = {Limits on Super-Resolution and How to Break Them},
- journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
- volume = {24},
- number = {9},
- year = {2002},
- issn = {0162-8828},
- pages = {1167--1183},
- publisher = {IEEE Computer Society},
- address = {Washington, DC, USA}
- }
-
-@CONFERENCE{Amintoosi87using,
- AUTHOR = {\noopsort{امین‌طوسی,محمود}{امین‌طوسی,محمود} and others},
- TITLE = {استفاده از تجزیه ماتریس در وضوح برتر},
- BOOKTITLE = {پنجمین کنفرانس بینائی ماشین},
- YEAR = {1387},
- ORGANIZATION = {دانشگاه تبریز},
- ADDRESS = {تبریز، ایران},
- PAGES = {172-178},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{پورموسی۸۸ارشد,
- AUTHOR = {\noopsort{بپورموسی, امیرمسعود}{پورموسی, امیرمسعود}},
- TITLE = {یک موضوع فیزیک},
- SCHOOL = {دانشکده فیزیک، دانشگاه صنعتی‌شریف},
- YEAR = {۱۳۸۸},
- MONTH = {مرداد},
- NOTE = {(در حال انجام)},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{Khalighi07MscThesis,
- AUTHOR = {Vafa Khalighi},
- TITLE = {Category Theory},
- SCHOOL = {Sydny Univ.},
- YEAR = {2007},
- MONTH = {April}
-}
-
-@PHDTHESIS{امیدعلی82دکترا,
- AUTHOR = {\noopsort{امیدعلی, مهدی}{امیدعلی, مهدی}},
- TITLE = {تابع هیلبرت},
- SCHOOL = {دانشکده ریاضی، دانشگاه امیرکبیر},
- YEAR = {1382},
- MONTH = {تیر},
- LANGUAGE = {Persian}
-}
-
-@MISC{خلیقی۸۷زی‌پرشین,
- AUTHOR = {\noopsort{خلیقی,وفا}{خلیقی,وفا} and امیدعلی, مهدی and واحدی,مصطفی.},
- TITLE = {زی‌پرشین (\lr{\XePersian}): بسته فارسی برای حروف‌چینی در \lr{\LaTeX2e}},
- HOWPUBLISHED = {\lr{http://developer.berlios.de/projects/xepersian}},
- YEAR = {۱۳۸۷},
- LANGUAGE = {Persian}
- }
-
-@BOOK{استالینگ۸۰کتاب,
- AUTHOR = {\noopsort{استالینگ, ویلیام}{استالینگ, ویلیام}},
- EDITOR = {برنجکوب, محمود},
- translator = { صدیقی‌ مشکنانی, محسن and پدرام,حسین },
- TITLE = {اصول طراحی و ویژگیهای داخلی سیستم‌های عامل},
- PUBLISHER = {نشر شیخ بهایی},
- YEAR = {۱۳۸۰},
- ADDRESS = {اصفهان},
- edition = {سوم},
- MONTH = {بهار},
- LANGUAGE = {Persian}
-}
-
-@ARTICLE{واحدی87,
- AUTHOR = {\noopsort{واحدی, مصطفی}{واحدی, مصطفی}},
- TITLE = {موضوعی جدید در هندسه محاسباتی},
- JOURNAL = {مجله فارسی نمونه},
- VOLUME = {1},
- YEAR = {1387},
- NUMBER = {2},
- MONTH = {آبان},
- PAGES = {22-30},
- LANGUAGE = {Persian}
-}
-
-@CONFERENCE{Amintoosi09regional,
- author = {Mahmood Amintoosi and Mahmood Fathy and Nasser Mozayani},
- title = {Regional Varying Image Super-Resolution},
- booktitle = {(CSO 2009) The 2009 IEEE International Joint Conference on Computational Sciences and Optimization},
- year = {2009},
- month = {24-26 April},
- organization = {City University},
- address = {Sanya, Hainan, China},
- pages = {101-105}
-}
-
-@PHDTHESIS{Farsiu05thesis,
- AUTHOR = {Sina Farsiu},
- TITLE = {A Fast and Robust Framework for Image Fusion and Enhancement},
- SCHOOL = {Electrical Engineeting},
- YEAR = {2005},
- ADDRESS = {UC Santa Cruz},
- MONTH = {December}
-}
-
-
-@BOOK{Gonzalez02book,
- AUTHOR = {Gonzalez,, Rafael C. and Woods,, Richard E.},
- TITLE = {Digital Image Processing},
- PUBLISHER = {Prentice-Hall, Inc.},
- YEAR = {2006},
- ISBN = {013168728X},
- EDITION = {3rd},
- ADDRESS = {Upper Saddle River, NJ, USA},
-}
-%</MyReferences.bib>
-%<*plain-fa-output.tex>
-\documentclass[11pt,a4paper]{article}
-% محمود امین‌طوسی، http://webpages.iust.ac.ir/mamintoosi
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{XB Zar}
-
-\title{نمونه خروجی با سبک فارسی \lr{plain-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences1}
-
-
-\end{document}
-%</plain-fa-output.tex>
-% \fi
-%
-% \typeout{*************************************************************}
-% \typeout{*}
-% \typeout{* To finish the installation you have to move the following}
-% \typeout{* file into a directory searched by TeX:}
-% \typeout{*}
-% \typeout{* \space\space\space all *.cls, *.sty and *.def files}
-% \typeout{* You also need to compile the *.map files with teckit_compile}
-% \typeout{* and place the resulting *.tec files under}
-% \typeout{* .../fonts/misc/xetex/fontmapping/xepersian}
-% \typeout{*}
-% \typeout{*************************************************************}
-\endinput
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/doc/xelatex/xepersian/xepersian.sty
deleted file mode 100644
index 25199a6f41e..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xepersian.sty
+++ /dev/null
@@ -1,284 +0,0 @@
-%%
-%% This is file `xepersian.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian.sty')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v1.0.3}
-\def\xepersianrevision{revision 93}
-\def\xepersiandate{2009/08/09}
-\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space <\xepersianrevision>
-Persian typesetting in XeLaTeX]
-\DeclareOption{Kashida}{\input{kashida-xepersian.def}}
-\DeclareOption{localise}{\input{localise-xepersian.def}}
-\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{bidi}}
-\ProcessOptions\relax
-\newcommand\xepersian@isloaded[2][]{
- \expandafter\ifx\csname if@xepersian@#2loaded@\endcsname\relax
- \expandafter\newif\csname if@xepersian@#2loaded@\endcsname
- \fi
- \@ifpackageloaded{#2}
- {\csname @xepersian@#2loaded@true\endcsname #1}
- {\csname @xepersian@#2loaded@false\endcsname}}
-\xepersian@isloaded{xunicode}
-\AtBeginDocument{
- \if@xepersian@xunicodeloaded@
- \xepersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package xunicode before xepersian package. Please load package xunicode after xepersian package, and then try to run xelatex on your document again}{}]{xunicode}
- \fi%
-}
-\AtBeginDocument{\ifdefined\persianfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the main text of the document. Please specify a font for the main text of the document by using \settextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\latinfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the Latin texts of the document. Please specify a font for the Latin texts of the document by using \setlatintextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\decimalseparator\relax\else%
-\PackageWarning{xepersian}{“You have not specified any font for the digits in maths mode and so the digits in maths mode will appear Latin. If you would like to have Persian digits in maths mode, then please specify a font for the digits in maths mode by using \setdigitfont\space CS, and then try to run xelatex on your document again”}%
-\fi}
-\RequirePackage[RTLdocument]{bidi}
-\RequirePackage{fontspec}
-\RequirePackage{xepersian-persiancal}
-\RequirePackage{xepersian-mathsdigitspec}
-\RequirePackage{etoolbox}
-\AtBeginDocument{\special{pdf: docinfo <<
-/Creator (X∃Persian \xepersianversion\space <\xepersianrevision> Copyright © 2008-2009 Vafa Khalighi)
- >>}}
-\gdef\@latex@error#1#2{%
- \GenericError{%
- \space\space\space\@spaces\@spaces\@spaces
- }{%
- XePersian Error: #1%
- }{%
- Oops! either you have done something wrong or it is a xepersian bug. Please first produce a similar file without using XePersian package and then compile it with xelatex, if you got the same error, then please study the Persian translation of “The not so Short Introduction to LaTeX” by MEHDI OMIDALI, otherwise please report the error with a minimal tex file which shows the error to the Author of XePersian.%
- }{#2}%
-}
-\gdef\@latexbug{%
- \@latex@error{This may be a XePersian bug}{Please inform the Author of XePersian}}
-\def\prq{«}
-\def\plq{»}
-\newfontscript{Persian}{arab}
-\newfontlanguage{Persian}{ARA}
-\newcommand*\settextfont[2][]{%
-\newfontfamily\persianfont[Script=Persian,Mapping=parsidigits,#1]{#2}
-\let\rmdefault\zf@family
- \normalfont
-}
-\newcommand*\settxtmathfont[2][]{%
-\newfontfamily\TXTmath[Mapping=txt2maths,#1]{#2}
-}
-\newcommand*\setlatintextfont[2][]{%
-\newfontfamily\latinfont[Mapping=tex-text,#1]{#2}
-}
-\newcommand*\defpersianfont[1]{%
- \@ifnextchar[{\defpersianfont@i#1}{\defpersianfont@i#1[]}}
-\def\defpersianfont@i#1[#2]#3{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#2}{#3}%
- \edef\@tempa{%
- \noexpand\DeclareRobustCommand\noexpand#1
- {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
- \@tempa}
-\newcommand*\deflatinfont[1]{%
- \@ifnextchar[{\deflatinfont@i#1}{\deflatinfont@i#1[]}}
-\def\deflatinfont@i#1[#2]#3{%
- \zf@fontspec{Mapping=tex-text,#2}{#3}%
- \edef\@tempa{%
- \noexpand\DeclareRobustCommand\noexpand#1
- {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
- \@tempa}
-\newcommand\persiansfdefault{}
-\newcommand\persianttdefault{}
-\newcommand\navardefault{}
-\newcommand\pookdefault{}
-\newcommand\sayehdefault{}
-\DeclareRobustCommand\persiansffamily
- {\not@math@alphabet\persiansffamily\mathpersiansf
- \fontfamily\persiansfdefault\selectfont}
-\DeclareRobustCommand\persianttfamily
- {\not@math@alphabet\persianttfamily\mathpersiantt
- \fontfamily\persianttdefault\selectfont}
-\DeclareRobustCommand\navarfamily
- {\not@math@alphabet\navarfamily\mathnavar
- \fontfamily\navardefault\selectfont}
-\DeclareRobustCommand\pookfamily
- {\not@math@alphabet\pookfamily\mathpook
- \fontfamily\pookdefault\selectfont}
-\DeclareRobustCommand\sayehfamily
- {\not@math@alphabet\sayehfamily\mathsayeh
- \fontfamily\sayehdefault\selectfont}
-\DeclareTextFontCommand{\textpersiansf}{\persiansffamily}
-\DeclareTextFontCommand{\textpersiantt}{\persianttfamily}
-\DeclareTextFontCommand{\textnavar}{\navarfamily}
-\DeclareTextFontCommand{\textpook}{\pookfamily}
-\DeclareTextFontCommand{\textsayeh}{\sayehfamily}
-\newcommand*\setpersiansansfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\persiansfdefault\zf@family
- \normalfont}
-\newcommand*\setpersianmonofont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\persianttdefault\zf@family
- \normalfont}
-\newcommand*\setnavarfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\navardefault\zf@family
- \normalfont}
-\newcommand*\setpookfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\pookdefault\zf@family
- \normalfont}
-\newcommand*\setsayehfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\sayehdefault\zf@family
- \normalfont}
-\def\lr#1{\begingroup\beginL\latinfont#1\endL\endgroup}
-\def\rl#1{\begingroup\beginR\persianfont#1\endR\endgroup}
-\def\latin{\bgroup\LatinAlphs\par\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\Latin{\if@RTL\par\LatinAlphs\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont\fi}
-\def\Persian{\if@RTL\relax\else\par\PersianAlphs\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont\fi}
-\let\originaltoday=\today
-\def\today{\lr{\originaltoday}}
-\let\latintoday\today
-\def\today{\rl{\persiantoday}}
-\newcommand\twocolumnstableofcontents{%
- \begin{multicols}{2}[\section*{\contentsname}]%
- \small
- \@starttoc{toc}%
- \end{multicols}}
-\def\XePersian{\lr{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\reflect{E}}Persian}}$}}
-\def\TeX{\lr{\@@TeX}}
-\def\LaTeX{\lr{\@@LaTeX}}
-\def\LaTeXe{\lr{\@@LaTeXe}}
-\let\origin@XeTeX\XeTeX
-\def\XeTeX{\lr{\origin@XeTeX}}
-\let\origin@XeLaTeX\XeLaTeX
-\def\XeLaTeX{\lr{\origin@XeLaTeX}}
-\def\figurename{\if@RTL شکل\else Figure\fi}
-\def\tablename{\if@RTL جدول\else Table\fi}
-\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi}
-\def\listfigurename{\if@RTL لیست تصاویر\else List of Figures\fi}
-\def\listtablename{\if@RTL لیست جداول\else List of Tables\fi}
-\def\appendixname{\if@RTL پیوست\else Appendix\fi}
-\def\indexname{\if@RTL نمایه\else Index\fi}
-\def\refname{\if@RTL مراجع\else References\fi}
-\def\abstractname{\if@RTL چکیده\else Abstract\fi}
-\def\partname{\if@RTL بخش\else Part\fi}
-\def\datename{\if@RTL تاریخ:\else Date:\fi}
-\def\@@and{\if@RTL و\else and\fi}
-\def\bibname{\if@RTL کتاب‌نامه\else Bibliography\fi}
-\def\chaptername{\if@RTL فصل\else Chapter\fi}
-\def\ccname{\if@RTL رونوشت\else cc\fi}
-\def\enclname{\if@RTL پیوست\else encl\fi}
-\def\pagename{\if@RTL صفحه\else Page\fi}
-\def\headtoname{\if@RTL به\else To\fi}
-\def\proofname{\if@RTL اثبات\else Proof\fi}
-\def\@harfi#1{\ifcase#1\or الف\char"200D\or ب\or پ\or ت\or ث\or
-ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or س\or ش\or ص\or ض\or ع\or غ\or
-ف\or ق\or ک\or گ\or ل\or م\or ن\or ه\or و\or ی\else\@ctrerr\fi}
-\def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname}
-\def\@adadi#1{\ifcase#1 \or یک\or دو\or سه\or چهار\or پنج\or شش\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده\or چهارده\or پانزده\or شانزده\or هفده\or هجده\or نوزده\or بیست\else\@ctrerr\fi}
-\def\adadi#1{\expandafter\@adadi\csname c@#1\endcsname}
-\def\@tartibi#1{\ifcase#1 \or اول \or دوم \or سوم \or چهارم \or پنجم \or ششم \or هفتم \or هشتم \or نهم \or دهم \or یازدهم \or دوازدهم \or سیزدهم \or چهاردهم \or پانزدهم \or شانزدهم \or هفدهم \or هجدهم \or نوزدهم \or بیستم\else\@ctrerr\fi}
-\def\tartibi#1{\expandafter\@tartibi\csname c@#1\endcsname}
-\providecommand*{\xpg@warning}[1]{%
- \PackageWarning{XePersian}%
- {#1}}
-\ifcsdef{abjad}{}{%
-\def\abjad#1{%
-\ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1}
-\else
- \ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}%
- \else
- \ifnum#1<10\expandafter\abj@num@i\number#1%
- \else
- \ifnum#1<100\expandafter\abj@num@ii\number#1%
- \else
- \ifnum#1<\@m\expandafter\abj@num@iii\number#1%
- \else
- \ifnum#1<\@M\expandafter\abj@num@iv\number#1%since #1<2000, we must have 1000
- \fi
- \fi
- \fi
- \fi
- \fi
-\fi
-}
-\def\abjad@zero{}
-\def\abj@num@i#1{%
- \ifcase#1\or الف\or ب\or ج\or د%
- \or ه\char"200D\or و\or ز\or ح\or ط\fi
- \ifnum#1=\z@\abjad@zero\fi}
-\def\abj@num@ii#1{%
- \ifcase#1\or ی\or ک\or ل\or م\or ن%
- \or س\or ع\or ف\or ص\fi
- \ifnum#1=\z@\fi\abj@num@i}
-\def\abj@num@iii#1{%
- \ifcase#1\or ق\or ر\or ش\or ت\or ث%
- \or خ\or ذ\or ض\or ظ\fi
- \ifnum#1=\z@\fi\abj@num@ii}
-\def\abj@num@iv#1{%
- \ifcase#1\or غ\fi
- \ifnum#1=\z@\fi\abj@num@iii}
-}
- \let\@latinalph\@alph%
- \let\@latinAlph\@Alph%
-\def\PersianAlphs{%
- \let\@alph\abjad%
- \let\@Alph\abjad%
-}
-\def\LatinAlphs{%
- \let\@alph\@latinalph%
- \let\@Alph\@latinAlph%
-}
-\PersianAlphs
-\@ifpackageloaded{listings}{\input{listings-xepersian.def}}{}
-\@ifpackageloaded{algorithmic}{\input{algorithmic-xepersian.def}}{}
-\@ifpackageloaded{algorithm}{\input{algorithm-xepersian.def}}{}
-\@ifpackageloaded{backref}{\input{backref-xepersian.def}}{}
-\@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{}
-\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{}
-\@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{}
-\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{}
-\@ifclassloaded{article}{\input{article-xepersian.def}}{}
-\@ifclassloaded{amsart}{\input{amsart-xepersian.def}}{}
-\@ifclassloaded{bidimoderncv}{\input{bidimoderncv-xepersian.def}}{}
-\@ifclassloaded{report}{\input{report-xepersian.def}}{}
-\@ifclassloaded{rapport3}{\input{rapport3-xepersian.def}}{}
-\@ifclassloaded{scrartcl}{\input{scrartcl-xepersian.def}}{}
-\@ifclassloaded{scrbook}{\input{scrbook-xepersian.def}}{}
-\@ifclassloaded{scrreprt}{\input{scrreprt-xepersian.def}}{}
-\@ifclassloaded{xepersian-thesis}{\input{xepersian-thesis-xepersian.def}}{}
-\@ifclassloaded{amsbook}{\input{amsbook-xepersian.def}}{}
-\@ifclassloaded{bookest}{\input{bookest-xepersian.def}}{}
-\@ifclassloaded{extbook}{\input{extbook-xepersian.def}}{}
-\@ifclassloaded{book}{\input{book-xepersian.def}}{}
-\@ifclassloaded{refrep}{\input{refrep-xepersian.def}}{}
-\@ifclassloaded{bidibeamer}{\input{bidibeamer-xepersian.def}}{}
-\@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian.sty'.
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/xindy/persian.xdy b/Master/texmf-dist/doc/xelatex/xepersian/xindy/persian.xdy
deleted file mode 100755
index 548d939286d..00000000000
--- a/Master/texmf-dist/doc/xelatex/xepersian/xindy/persian.xdy
+++ /dev/null
@@ -1,118 +0,0 @@
-;; $Id: makeidx.xdy,v 1.1 1997/02/07 14:17:31 kehr Exp $
-;;
-;; This file implements the Output Style Specifiers for plain
-;; makeindex (see manpage of makeindex 2.x) in conjuction with
-;; TeX/LaTeX.
-;;
-;; The Input Style Specifiers of makeindex cannot de defined in a
-;; `xindy' style file. Use an appropriate version of the program
-;; `tex2xindy' which should be included with this distribution.
-;;
-;; Since `xindy' uses a different specification language than
-;; makeindex and some of the command-line options of makeindex are now
-;; only available as style-file commands, this file can only serve as
-;; a template that produces the default-markup of makeindex. However,
-;; it may be used as a starting point for further modification and
-;; specialization.
-;;
-;; The following values are taken from the source of the makeindex
-;; distribution (see file scanst.h and the manpage) for further
-;; details.
-;;
-
-;; Define all attributes appearing in your document. Your attributes
-;; are all encapsulators you use in your \index commands following the
-;; vertical bar sign `|'. For example `foo' is the attribute in the
-;; command \index{...|foo}. Here you specify the set of attributes
-;; that appear in your document, the order in which they appear in the
-;; index and which one superdes the other.
-;;
-;; Example: a) (define-attibutes (("default") ("bf") ("it")))
-;; b) (define-attibutes (("bf" "default")))
-;;
-;; The initial command is (change it accordingly):
-
-(define-attributes ("default"))
-
-;; The description of the location-classes.
-;; Add more location classes as needed.
-
-(define-location-class "arabic-page-numbers" ("arabic-numbers"))
-(define-location-class "roman-page-numbers" ("roman-numbers-lowercase"))
-(define-location-class "Roman-page-numbers" ("roman-numbers-uppercase"))
-(define-location-class "alpha-page-numbers" ("alpha"))
-(define-location-class "Alpha-page-numbers" ("ALPHA"))
-
-;; The most frequently used cross reference class "see". Add more, if
-;; necessary.
-
-(define-crossref-class "see")
-(markup-crossref-list :open "\see{" :close "}{}" :class "see")
-
-;; In makeindex: page_precedence <string> "rnaRA"
-;; List all location classes appearing in your document.
-
-(define-location-class-order ("roman-page-numbers"
- "arabic-page-numbers"
- "alpha-page-numbers"
- "Roman-page-numbers"
- "Alpha-page-numbers"
- "see"))
-
-
-;; preamble <string> "\\begin{theindex}\n"
-;; postamble <string> "\n\n\\end{theindex}\n"
-
-(markup-index :open "\begin{theindex}~n"
- :close "~n~n\end{theindex}~n"
- :tree)
-
-;; These specifiers are not directly supported via a command-line
-;; switch as in makeindex. Add the appropriate markup-commands into
-;; the preamble.
-
-;; setpage_prefix <string> "~n \setcounter{page}{"
-;; setpage_suffix <string> "}~n"
-
-;; group_skip <string> "~n~n \indexspace~n"
-
-(markup-letter-group-list :sep "~n~n \indexspace~n")
-
-;; The indexentries (item_<..> specifiers)
-
-(markup-indexentry :open "~n \item " :depth 0)
-(markup-indexentry :open "~n \subitem " :depth 1)
-(markup-indexentry :open "~n \subsubitem " :depth 2)
-
-;; Location-references
-
-;; delim_0 <string> ", "
-;; delim_1 <string> ", "
-;; delim_2 <string> ", "
-
-(markup-locclass-list :open ", " :sep ", ")
-
-;; delim_n <string> ", "
-
-(markup-locref-list :sep ", ")
-
-;; delim_r <string> "--"
-
-(markup-range :sep "--")
-
-;; Here follow all letter-groups. The short-cut notation is used here.
-
-(define-letter-groups
- ("آ" "ا" "ب" "پ" "ت" "ث" "ج" "چ" "ح" "خ" "د" "ذ" "ر" "ز"
- "ژ" "س" "ش" "ص" "ض" "ط" "ظ" "ع" "غ" "ف" "ق" "ک" "گ" "ل" "م" "ن" "ه" "و" "ی"))
-
-;;
-;; The sort-rules map all letters to their lowercase counterpart.
-;;
-
-
-;; End
-
-;; Local Variables:
-;; mode: lisp
-;; End:
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
deleted file mode 100644
index d63c4bd5c6e..00000000000
--- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
+++ /dev/null
@@ -1,9100 +0,0 @@
-% \iffalse
-%<*internal>
-\iffalse
-%</internal>
-%<*readme>
-_________________
-The XePersian package
-v1.0.3
-
-XePersian is a package written for XeLaTeX that allows users to typeset
-Persian easily. The current version is 1.0.1 and it will be developed to
- meet the needs of Persian typesetting properly.
-
-The XePersian package is independent of any operating system, meaning it
-will work on all operating systems.
-
-There are some excellent fonts made by IRMUG (Iranian Mac User Group) which you can download
-from http://wiki.irmug.org/index.php/X_Series_2#Download_fonts and
-http://wiki.irmug.org/index.php/XWZar
-
-
-This version fixes all known bugs and adds heaps of new things.
-
-______________
-Vafa Khalighi
-vafa@users.berlios.de
-
-Copyright 2008-2009
-Distributed under the LaTeX Project Public License
-%</readme>
-%<*internal>
-\fi
-%
-%</internal>
-%
-%<*internal>
-\begingroup
-%</internal>
-%<*batchfile>
-\input docstrip.tex
-\keepsilent
-\preamble
-
- __________________________________
- Copyright © 2008-2009 Vafa Khalighi
-
- License information appended.
-
-
-\endpreamble
-\postamble
-
-Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-
-Distributable under the LaTeX Project Public License,
-version 1.3c or higher (your choice). The latest version of
-this license is at: http://www.latex-project.org/lppl.txt
-
-This work is "maintained" (as per LPPL maintenance status)
-by Vafa Khalighi.
-
-
-
-
-\endpostamble
-\askforoverwritefalse
-\generate{\file{xepersian.sty}{\from{xepersian.dtx}{xepersian.sty}}}
-\generate{\file{algorithmic-xepersian.def}{\from{xepersian.dtx}{algorithmic-xepersian.def}}}
-\generate{\file{algorithm-xepersian.def}{\from{xepersian.dtx}{algorithm-xepersian.def}}}
-\generate{\file{amsart-xepersian.def}{\from{xepersian.dtx}{amsart-xepersian.def}}}
-\generate{\file{amsbook-xepersian.def}{\from{xepersian.dtx}{amsbook-xepersian.def}}}
-\generate{\file{article-xepersian.def}{\from{xepersian.dtx}{article-xepersian.def}}}
-\generate{\file{backref-xepersian.def}{\from{xepersian.dtx}{backref-xepersian.def}}}
-\generate{\file{bidibeamer-xepersian.def}{\from{xepersian.dtx}{bidibeamer-xepersian.def}}}
-\generate{\file{bidimoderncv-xepersian.def}{\from{xepersian.dtx}{bidimoderncv-xepersian.def}}}
-\generate{\file{bookest-xepersian.def}{\from{xepersian.dtx}{bookest-xepersian.def}}}
-\generate{\file{book-xepersian.def}{\from{xepersian.dtx}{book-xepersian.def}}}
-\generate{\file{footnote-bidi-xepersian.def}{\from{xepersian.dtx}{footnote-bidi-xepersian.def}}}
-\generate{\file{localise-xepersian.def}{\from{xepersian.dtx}{localise-xepersian.def}}}
-\generate{\file{commands-ltx.def}{\from{xepersian.dtx}{commands-ltx.def}}}
-\generate{\file{commands-xepersian.def}{\from{xepersian.dtx}{commands-xepersian.def}}}
-\generate{\file{enumerate-xepersian.def}{\from{xepersian.dtx}{enumerate-xepersian.def}}}
-\generate{\file{environments-ltx.def}{\from{xepersian.dtx}{environments-ltx.def}}}
-\generate{\file{environments-xepersian.def}{\from{xepersian.dtx}{environments-xepersian.def}}}
-\generate{\file{extbook-xepersian.def}{\from{xepersian.dtx}{extbook-xepersian.def}}}
-\generate{\file{kashida-xepersian.def}{\from{xepersian.dtx}{kashida-xepersian.def}}}
-\generate{\file{listings-xepersian.def}{\from{xepersian.dtx}{listings-xepersian.def}}}
-\generate{\file{memoir-xepersian.def}{\from{xepersian.dtx}{memoir-xepersian.def}}}
-\generate{\file{minitoc-xepersian.def}{\from{xepersian.dtx}{minitoc-xepersian.def}}}
-\generate{\file{misccommandsenvironments-ltx.def}{\from{xepersian.dtx}{misccommandsenvironments-ltx.def}}}
-\generate{\file{refrep-xepersian.def}{\from{xepersian.dtx}{refrep-xepersian.def}}}
-\generate{\file{report-xepersian.def}{\from{xepersian.dtx}{report-xepersian.def}}}
-\generate{\file{rapport3-xepersian.def}{\from{xepersian.dtx}{rapport3-xepersian.def}}}
-\generate{\file{scrartcl-xepersian.def}{\from{xepersian.dtx}{scrartcl-xepersian.def}}}
-\generate{\file{scrbook-xepersian.def}{\from{xepersian.dtx}{scrbook-xepersian.def}}}
-\generate{\file{scrreprt-xepersian.def}{\from{xepersian.dtx}{scrreprt-xepersian.def}}}
-\generate{\file{tocloft-xepersian.def}{\from{xepersian.dtx}{tocloft-xepersian.def}}}
-\generate{\file{xepersian-magazine.cls}{\from{xepersian.dtx}{xepersian-magazine.cls}}}
-\generate{\file{xepersian-mathsdigitspec.sty}{\from{xepersian.dtx}{xepersian-mathsdigitspec.sty}}}
-\generate{\file{xepersian-multiplechoice.sty}{\from{xepersian.dtx}{xepersian-multiplechoice.sty}}}
-\generate{\file{xepersian-persiancal.sty}{\from{xepersian.dtx}{xepersian-persiancal.sty}}}
-\generate{\file{xepersian-thesis.cls}{\from{xepersian.dtx}{xepersian-thesis.cls}}}
-\generate{\file{xepersian-thesis-xepersian.def}{\from{xepersian.dtx}{xepersian-thesis-xepersian.def}}}
-\generate{\file{acm-fa.bst}{\from{xepersian.dtx}{acm-fa.bst}}}
-\generate{\file{ieeetr-fa.bst}{\from{xepersian.dtx}{ieeetr-fa.bst}}}
-\generate{\file{plain-fa.bst}{\from{xepersian.dtx}{plain-fa.bst}}}
-\generate{\file{unsrt-fa.bst}{\from{xepersian.dtx}{unsrt-fa.bst}}}
-%</batchfile>
-%<batchfile>\endbatchfile
-%<*internal>
-\generate{\file{xepersian.ins}{\from{xepersian.dtx}{batchfile}}}
-\nopreamble\nopostamble
-\generate{\file{README.txt}{\from{xepersian.dtx}{readme}}}
-\generate{\file{parsidigits.map}{\from{xepersian.dtx}{parsidigits.map}}}
-\generate{\file{txt2maths.map}{\from{xepersian.dtx}{txt2maths.map}}}
-\generate{\file{thesis-sample.tex}{\from{xepersian.dtx}{thesis-sample.tex}}}
-\generate{\file{magazine-sample.tex}{\from{xepersian.dtx}{magazine-sample.tex}}}
-\generate{\file{test-correction.tex}{\from{xepersian.dtx}{test-correction.tex}}}
-\generate{\file{test-empty-form.tex}{\from{xepersian.dtx}{test-empty-form.tex}}}
-\generate{\file{test-question-only.tex}{\from{xepersian.dtx}{test-question-only.tex}}}
-\generate{\file{test-solution-form.tex}{\from{xepersian.dtx}{test-solution-form.tex}}}
-\generate{\file{acm-fa-output.tex}{\from{xepersian.dtx}{acm-fa-output.tex}}}
-\generate{\file{bibtex-example.tex}{\from{xepersian.dtx}{bibtex-example.tex}}}
-\generate{\file{ieeetr-fa-output.tex}{\from{xepersian.dtx}{ieeetr-fa-output.tex}}}
-\generate{\file{MyReferences.bib}{\from{xepersian.dtx}{MyReferences.bib}}}
-\generate{\file{plain-fa-output.tex}{\from{xepersian.dtx}{plain-fa-output.tex}}}
-\endgroup
-%</internal>
-%
-%<*driver>
-\documentclass{ltxdoc}
-\usepackage[sc,osf]{mathpazo}
-\usepackage{fvrb-ex}
-\EnableCrossrefs
-\CodelineIndex
-\RecordChanges
-\OnlyDescription
-
-\begin{document}
- \DocInput{xepersian.dtx}
-\end{document}
-%</driver>
-%
-%
-% \fi
-%
-% \GetFileInfo{bidi.sty}
-% \makeatletter
-%
-%\title{The \textsf{XePersian} Package}
-%\author{Vafa Khalighi\\
-%\footnotesize\texttt{<vafa@users.berlios.de>}}
-%
-% \StopEventually{}
-% \section{Implementation}
-% \part{xepersian.sty}
-%\iffalse
-%<*xepersian.sty>
-% \fi
-%
-%
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v1.0.3}
-\def\xepersianrevision{revision 93}
-\def\xepersiandate{2009/08/09}
-\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space <\xepersianrevision>
- Persian typesetting in XeLaTeX]
-\DeclareOption{Kashida}{\input{kashida-xepersian.def}}
-\DeclareOption{localise}{\input{localise-xepersian.def}}
-\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{bidi}}
-\ProcessOptions\relax
-\newcommand\xepersian@isloaded[2][]{
- \expandafter\ifx\csname if@xepersian@#2loaded@\endcsname\relax
- \expandafter\newif\csname if@xepersian@#2loaded@\endcsname
- \fi
- \@ifpackageloaded{#2}
- {\csname @xepersian@#2loaded@true\endcsname #1}
- {\csname @xepersian@#2loaded@false\endcsname}}
-\xepersian@isloaded{xunicode}
-\AtBeginDocument{
- \if@xepersian@xunicodeloaded@
- \xepersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package xunicode before xepersian package. Please load package xunicode after xepersian package, and then try to run xelatex on your document again}{}]{xunicode}
- \fi%
-}
-\AtBeginDocument{\ifdefined\persianfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the main text of the document. Please specify a font for the main text of the document by using \settextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\latinfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the Latin texts of the document. Please specify a font for the Latin texts of the document by using \setlatintextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\decimalseparator\relax\else%
-\PackageWarning{xepersian}{“You have not specified any font for the digits in maths mode and so the digits in maths mode will appear Latin. If you would like to have Persian digits in maths mode, then please specify a font for the digits in maths mode by using \setdigitfont\space CS, and then try to run xelatex on your document again”}%
-\fi}
-\RequirePackage[RTLdocument]{bidi}
-\RequirePackage{fontspec}
-\RequirePackage{xepersian-persiancal}
-\RequirePackage{xepersian-mathsdigitspec}
-\RequirePackage{etoolbox}
-\AtBeginDocument{\special{pdf: docinfo <<
- /Creator (X∃Persian \xepersianversion\space <\xepersianrevision> Copyright © 2008-2009 Vafa Khalighi)
- >>}}
-\gdef\@latex@error#1#2{%
- \GenericError{%
- \space\space\space\@spaces\@spaces\@spaces
- }{%
- XePersian Error: #1%
- }{%
- Oops! either you have done something wrong or it is a xepersian bug. Please first produce a similar file without using XePersian package and then compile it with xelatex, if you got the same error, then please study the Persian translation of “The not so Short Introduction to LaTeX” by MEHDI OMIDALI, otherwise please report the error with a minimal tex file which shows the error to the Author of XePersian.%
- }{#2}%
-}
-\gdef\@latexbug{%
- \@latex@error{This may be a XePersian bug}{Please inform the Author of XePersian}}
-\def\prq{«}
-\def\plq{»}
-\newfontscript{Persian}{arab}
-\newfontlanguage{Persian}{ARA}
-\newcommand*\settextfont[2][]{%
-\newfontfamily\persianfont[Script=Persian,Mapping=parsidigits,#1]{#2}
-\let\rmdefault\zf@family
- \normalfont
-}
-\newcommand*\settxtmathfont[2][]{%
-\newfontfamily\TXTmath[Mapping=txt2maths,#1]{#2}
-}
-\newcommand*\setlatintextfont[2][]{%
-\newfontfamily\latinfont[Mapping=tex-text,#1]{#2}
-}
-\newcommand*\defpersianfont[1]{%
- \@ifnextchar[{\defpersianfont@i#1}{\defpersianfont@i#1[]}}
-\def\defpersianfont@i#1[#2]#3{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#2}{#3}%
- \edef\@tempa{%
- \noexpand\DeclareRobustCommand\noexpand#1
- {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
- \@tempa}
-\newcommand*\deflatinfont[1]{%
- \@ifnextchar[{\deflatinfont@i#1}{\deflatinfont@i#1[]}}
-\def\deflatinfont@i#1[#2]#3{%
- \zf@fontspec{Mapping=tex-text,#2}{#3}%
- \edef\@tempa{%
- \noexpand\DeclareRobustCommand\noexpand#1
- {\noexpand\fontfamily{\zf@family}\noexpand\selectfont}}%
- \@tempa}
-\newcommand\persiansfdefault{}
-\newcommand\persianttdefault{}
-\newcommand\navardefault{}
-\newcommand\pookdefault{}
-\newcommand\sayehdefault{}
-\DeclareRobustCommand\persiansffamily
- {\not@math@alphabet\persiansffamily\mathpersiansf
- \fontfamily\persiansfdefault\selectfont}
-\DeclareRobustCommand\persianttfamily
- {\not@math@alphabet\persianttfamily\mathpersiantt
- \fontfamily\persianttdefault\selectfont}
-\DeclareRobustCommand\navarfamily
- {\not@math@alphabet\navarfamily\mathnavar
- \fontfamily\navardefault\selectfont}
-\DeclareRobustCommand\pookfamily
- {\not@math@alphabet\pookfamily\mathpook
- \fontfamily\pookdefault\selectfont}
-\DeclareRobustCommand\sayehfamily
- {\not@math@alphabet\sayehfamily\mathsayeh
- \fontfamily\sayehdefault\selectfont}
-\DeclareTextFontCommand{\textpersiansf}{\persiansffamily}
-\DeclareTextFontCommand{\textpersiantt}{\persianttfamily}
-\DeclareTextFontCommand{\textnavar}{\navarfamily}
-\DeclareTextFontCommand{\textpook}{\pookfamily}
-\DeclareTextFontCommand{\textsayeh}{\sayehfamily}
-\newcommand*\setpersiansansfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\persiansfdefault\zf@family
- \normalfont}
-\newcommand*\setpersianmonofont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\persianttdefault\zf@family
- \normalfont}
-\newcommand*\setnavarfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\navardefault\zf@family
- \normalfont}
-\newcommand*\setpookfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\pookdefault\zf@family
- \normalfont}
-\newcommand*\setsayehfont[2][]{%
- \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
- \let\sayehdefault\zf@family
- \normalfont}
-\def\lr#1{\begingroup\beginL\latinfont#1\endL\endgroup}
-\def\rl#1{\begingroup\beginR\persianfont#1\endR\endgroup}
-\def\latin{\bgroup\LatinAlphs\par\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\Latin{\if@RTL\par\LatinAlphs\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont\fi}
-\def\Persian{\if@RTL\relax\else\par\PersianAlphs\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont\fi}
-\let\originaltoday=\today
-\def\today{\lr{\originaltoday}}
-\let\latintoday\today
-\def\today{\rl{\persiantoday}}
-\newcommand\twocolumnstableofcontents{%
- \begin{multicols}{2}[\section*{\contentsname}]%
- \small
- \@starttoc{toc}%
- \end{multicols}}
-\def\XePersian{\lr{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\reflect{E}}Persian}}$}}
-\def\TeX{\lr{\@@TeX}}
-\def\LaTeX{\lr{\@@LaTeX}}
-\def\LaTeXe{\lr{\@@LaTeXe}}
-\let\origin@XeTeX\XeTeX
-\def\XeTeX{\lr{\origin@XeTeX}}
-\let\origin@XeLaTeX\XeLaTeX
-\def\XeLaTeX{\lr{\origin@XeLaTeX}}
-\def\figurename{\if@RTL شکل\else Figure\fi}
-\def\tablename{\if@RTL جدول\else Table\fi}
-\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi}
-\def\listfigurename{\if@RTL لیست تصاویر\else List of Figures\fi}
-\def\listtablename{\if@RTL لیست جداول\else List of Tables\fi}
-\def\appendixname{\if@RTL پیوست\else Appendix\fi}
-\def\indexname{\if@RTL نمایه\else Index\fi}
-\def\refname{\if@RTL مراجع\else References\fi}
-\def\abstractname{\if@RTL چکیده\else Abstract\fi}
-\def\partname{\if@RTL بخش\else Part\fi}
-\def\datename{\if@RTL تاریخ:\else Date:\fi}
-\def\@@and{\if@RTL و\else and\fi}
-\def\bibname{\if@RTL کتاب‌نامه\else Bibliography\fi}
-\def\chaptername{\if@RTL فصل\else Chapter\fi}
-\def\ccname{\if@RTL رونوشت\else cc\fi}
-\def\enclname{\if@RTL پیوست\else encl\fi}
-\def\pagename{\if@RTL صفحه\else Page\fi}
-\def\headtoname{\if@RTL به\else To\fi}
-\def\proofname{\if@RTL اثبات\else Proof\fi}
-\def\@harfi#1{\ifcase#1\or الف\char"200D\or ب\or پ\or ت\or ث\or
-ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or س\or ش\or ص\or ض\or ع\or غ\or
-ف\or ق\or ک\or گ\or ل\or م\or ن\or ه\or و\or ی\else\@ctrerr\fi}
-\def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname}
-\def\@adadi#1{\ifcase#1 \or یک\or دو\or سه\or چهار\or پنج\or شش\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده\or چهارده\or پانزده\or شانزده\or هفده\or هجده\or نوزده\or بیست\else\@ctrerr\fi}
-\def\adadi#1{\expandafter\@adadi\csname c@#1\endcsname}
-\def\@tartibi#1{\ifcase#1 \or اول \or دوم \or سوم \or چهارم \or پنجم \or ششم \or هفتم \or هشتم \or نهم \or دهم \or یازدهم \or دوازدهم \or سیزدهم \or چهاردهم \or پانزدهم \or شانزدهم \or هفدهم \or هجدهم \or نوزدهم \or بیستم\else\@ctrerr\fi}
-\def\tartibi#1{\expandafter\@tartibi\csname c@#1\endcsname}
-\providecommand*{\xpg@warning}[1]{%
- \PackageWarning{XePersian}%
- {#1}}
-\ifcsdef{abjad}{}{%
-\def\abjad#1{%
-\ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1}
-\else
- \ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}%
- \else
- \ifnum#1<10\expandafter\abj@num@i\number#1%
- \else
- \ifnum#1<100\expandafter\abj@num@ii\number#1%
- \else
- \ifnum#1<\@m\expandafter\abj@num@iii\number#1%
- \else
- \ifnum#1<\@M\expandafter\abj@num@iv\number#1%since #1<2000, we must have 1000
- \fi
- \fi
- \fi
- \fi
- \fi
-\fi
-}
-\def\abjad@zero{}
-\def\abj@num@i#1{%
- \ifcase#1\or الف\or ب\or ج\or د%
- \or ه\char"200D\or و\or ز\or ح\or ط\fi
- \ifnum#1=\z@\abjad@zero\fi}
-\def\abj@num@ii#1{%
- \ifcase#1\or ی\or ک\or ل\or م\or ن%
- \or س\or ع\or ف\or ص\fi
- \ifnum#1=\z@\fi\abj@num@i}
-\def\abj@num@iii#1{%
- \ifcase#1\or ق\or ر\or ش\or ت\or ث%
- \or خ\or ذ\or ض\or ظ\fi
- \ifnum#1=\z@\fi\abj@num@ii}
-\def\abj@num@iv#1{%
- \ifcase#1\or غ\fi
- \ifnum#1=\z@\fi\abj@num@iii}
-}
- \let\@latinalph\@alph%
- \let\@latinAlph\@Alph%
-\def\PersianAlphs{%
- \let\@alph\abjad%
- \let\@Alph\abjad%
-}
-\def\LatinAlphs{%
- \let\@alph\@latinalph%
- \let\@Alph\@latinAlph%
-}
-\PersianAlphs
-\@ifpackageloaded{listings}{\input{listings-xepersian.def}}{}
-\@ifpackageloaded{algorithmic}{\input{algorithmic-xepersian.def}}{}
-\@ifpackageloaded{algorithm}{\input{algorithm-xepersian.def}}{}
-\@ifpackageloaded{backref}{\input{backref-xepersian.def}}{}
-\@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{}
-\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{}
-\@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{}
-\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{}
-\@ifclassloaded{article}{\input{article-xepersian.def}}{}
-\@ifclassloaded{amsart}{\input{amsart-xepersian.def}}{}
-\@ifclassloaded{bidimoderncv}{\input{bidimoderncv-xepersian.def}}{}
-\@ifclassloaded{report}{\input{report-xepersian.def}}{}
-\@ifclassloaded{rapport3}{\input{rapport3-xepersian.def}}{}
-\@ifclassloaded{scrartcl}{\input{scrartcl-xepersian.def}}{}
-\@ifclassloaded{scrbook}{\input{scrbook-xepersian.def}}{}
-\@ifclassloaded{scrreprt}{\input{scrreprt-xepersian.def}}{}
-\@ifclassloaded{xepersian-thesis}{\input{xepersian-thesis-xepersian.def}}{}
-\@ifclassloaded{amsbook}{\input{amsbook-xepersian.def}}{}
-\@ifclassloaded{bookest}{\input{bookest-xepersian.def}}{}
-\@ifclassloaded{extbook}{\input{extbook-xepersian.def}}{}
-\@ifclassloaded{book}{\input{book-xepersian.def}}{}
-\@ifclassloaded{refrep}{\input{refrep-xepersian.def}}{}
-\@ifclassloaded{bidibeamer}{\input{bidibeamer-xepersian.def}}{}
-\@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{}
-% \end{macrocode}
-% \iffalse
-%</xepersian.sty>
-%<*algorithmic-xepersian.def>
-% \fi
-% \part{algorithmic-xepersian.def}
-% \begin{macrocode}
-\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi}
-\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi}
-% \end{macrocode}
-% \iffalse
-%</algorithmic-xepersian.def>
-%<*algorithm-xepersian.def>
-% \fi
-% \part{algorithm-xepersian.def}
-% \begin{macrocode}
-\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi}
-\def\ALGS@name{الگوریتم‌ها}
-\def\listalgorithmname{\if@RTL لیست \ALGS@name\else List of \ALG@name s\fi}
-% \end{macrocode}
-% \iffalse
-%</algorithm-xepersian.def>
-%<*amsart-xepersian.def>
-% \fi
-% \part{amsart-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
-% \end{macrocode}
-% \iffalse
-%</amsart-xepersian.def>
-%<*amsbook-xepersian.def>
-% \fi
-% \part{amsbook-xepersian.def}
-% \begin{macrocode}
-\def\frontmatter{\cleardoublepage\pagenumbering{harfi}}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</amsbook-xepersian.def>
-%<*article-xepersian.def>
-% \fi
-% \part{article-xepersian-def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
-% \end{macrocode}
-% \iffalse
-%</article-xepersian.def>
-%<*backref-xepersian.def>
-% \fi
-% \part{backref-xepersian.def}
-% \begin{macrocode}
-\def\backrefpagesname{\if@RTL صفحات\else pages\fi}
-% \end{macrocode}
-% \iffalse
-%</backref-xepersian.def>
-%<*bidibeamer-xepersian.def>
-% \fi
-% \part{bidibeamer-xepersian.def}
-% \begin{macrocode}
-\def\familydefault{\rmdefault}
-\def\latin{\bgroup\LatinAlphs\par\raggedright\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\raggedleft\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\biditheoremname{قضیه}
-\def\bidicorollaryname{نتیجه}
-\def\bidifactname{حقیقت}
-\def\bidilemmaname{لم}
-\def\bidiproblemname{مسئله}
-\def\bidisolutionname{پاسخ}
-\def\bididefinitionname{تعریف}
-\def\bididefinitionsname{تعریف‌ها}
-\def\bidiexamplename{مثال}
-\def\bidiexamplesname{مثال‌ها}
-\def\bidiproofname{اثبات}
-% \end{macrocode}
-% \iffalse
-%</bidibeamer-xepersian.def>
-%<*bidimoderncv-xepersian.def>
-% \fi
-% \part{bidimoderncv-xepersian.def}
-% \begin{macrocode}
-\def\refname{تألیفات}
-% \end{macrocode}
-% \iffalse
-%</bidimoderncv-xepersian.def>
-%<*bookest-xepersian.def>
-% \fi
-% \part{bookest-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</bookest-xepersian.def>
-%<*book-xepersian.def>
-% \fi
-% \part{book-xepersian.def}
-% \begin{macrocode}
-\renewcommand\frontmatter{%
- \cleardoublepage
- \@mainmatterfalse
- \pagenumbering{harfi}}
-\renewcommand\mainmatter{%
- \cleardoublepage
- \@mainmattertrue
- \pagenumbering{arabic}}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</book-xepersian.def>
-%<*footnote-bidi-xepersian.def>
-% \fi
-% \part{footnote-bidi-xepersian.def}
-% \begin{macrocode}
-\long\def\@footnotetext#1{%
- \begingroup
- \setbox\footins
- \vbox{\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
- \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
- \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}
-\long\def\@mpfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
- \color@begingroup
- \bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}
- \color@endgroup}}
-\long\def\@mpRTLfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLtrue
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
- \color@begingroup
- \bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}
- \color@endgroup}}
-\long\def\@mpLTRfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLfalse
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
- \color@begingroup
- \bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}
- \color@endgroup}}
-% \end{macrocode}
-% \iffalse
-%</footnote-bidi-xepersian.def>
-%<*localise-xepersian.def>
-% \fi
-% \part{localise-xepersian.def}
-% \begin{macrocode}
-\catcode`\﷼=3
-\catcode`‌=11
-\newcommand\eqcommand[2][]{\let#1=#2}
-\newcommand\eqenvironment[2][]{\newenvironment{#1}{\begin{#2}}{\end{#2}}}
-\define@key[zf]{options}{مقیاس}{%
- \edef\@tempa{#1}%
- \edef\@tempb{MatchLowercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{5}%
- \else
- \edef\@tempb{MatchUppercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{8}%
- \else
- \edef\zf@scale{#1}%
- \fi
- \fi
- \zf@update@family{+scale:\zf@scale}%
- \edef\zf@scale{s*[\zf@scale]}}
-\input{commands-ltx.def}
-\input{commands-xepersian.def}
-\input{environments-ltx.def}
-\input{environments-xepersian.def}
-\input{misccommandsenvironments-ltx.def}
-% \end{macrocode}
-% \iffalse
-%</localise-xepersian.def>
-%<*commands-ltx.def>
-% \fi
-% \part{commands-ltx.def}
-% \begin{macrocode}
-\eqcommand[]{\abovedisplayshortskip}
-\eqcommand[]{\abovedisplayskip}
-\eqcommand[]{\abstractname}
-\eqcommand[]{\acute}
-\eqcommand[]{\addcontentsline}
-\eqcommand[]{\address}
-\eqcommand[]{\addtocontents}
-\eqcommand[]{\addtocounter}
-\eqcommand[]{\addtolength}
-\eqcommand[]{\addvspace}
-\eqcommand[]{\aleph}
-\eqcommand[]{\allowdisplaybreaks}
-\eqcommand[]{\Alph}
-\eqcommand[]{\alph}
-\eqcommand[]{\alpha}
-\eqcommand[]{\alsoname}
-\eqcommand[]{\amalg}
-\eqcommand[]{\and}
-\eqcommand[]{\angle}
-\eqcommand[]{\appendixname}
-\eqcommand[]{\approx}
-\eqcommand[]{\arabic}
-\eqcommand[]{\arccos}
-\eqcommand[]{\arcsin}
-\eqcommand[]{\arctan}
-\eqcommand[]{\arg}
-\eqcommand[]{\arraycolsep}
-\eqcommand[]{\arrayrulewidth}
-\eqcommand[]{\arraystretch}
-\eqcommand[]{\ast}
-\eqcommand[]{\asymp}
-\eqcommand[]{\AtBeginDocument}
-\eqcommand[]{\AtEndDocument}
-\eqcommand[]{\AtEndOfClass}
-\eqcommand[]{\AtEndOfPackage}
-\eqcommand[]{\author}
-\eqcommand[]{\backmatter}
-\eqcommand[]{\backslash}
-\eqcommand[]{\bar}
-\eqcommand[]{\baselineskip}
-\eqcommand[]{\baselinestretch}
-\eqcommand[]{\begin}
-\eqcommand[]{\belowdisplayshortskip}
-\eqcommand[]{\belowdisplayskip}
-\eqcommand[]{\beta}
-\eqcommand[]{\bfdefault}
-\eqcommand[]{\bfseries}
-\eqcommand[]{\bibitem}
-\eqcommand[]{\bibliography}
-\eqcommand[]{\bibliographystyle}
-\eqcommand[]{\bibname}
-\eqcommand[]{\big}
-\eqcommand[]{\Big}
-\eqcommand[]{\bigcap}
-\eqcommand[]{\bigcirc}
-\eqcommand[]{\bigcup}
-\eqcommand[]{\bigg}
-\eqcommand[]{\Bigg}
-\eqcommand[]{\bigodot}
-\eqcommand[]{\bigoplus}
-\eqcommand[]{\bigotimes}
-\eqcommand[]{\bigskip}
-\eqcommand[]{\bigskipamount}
-\eqcommand[]{\bigsqcup}
-\eqcommand[]{\bigtriangledown}
-\eqcommand[]{\bigtriangleup}
-\eqcommand[]{\biguplus}
-\eqcommand[]{\bigvee}
-\eqcommand[]{\bigwedge}
-\eqcommand[]{\binom}
-\eqcommand[]{\bmod}
-\eqcommand[]{\boldmath}
-\eqcommand[]{\boldsymbol}
-\eqcommand[]{\bot}
-\eqcommand[]{\botfigrule}
-\eqcommand[]{\bottomfraction}
-\eqcommand[]{\bowtie}
-\eqcommand[]{\Box}
-\eqcommand[]{\boxed}
-\eqcommand[]{\breve}
-\eqcommand[]{\bullet}
-\eqcommand[]{\cap}
-\eqcommand[]{\caption}
-\eqcommand[]{\cc}
-\eqcommand[]{\ccname}
-\eqcommand[]{\cdot}
-\eqcommand[]{\cdots}
-\eqcommand[]{\centering}
-\eqcommand[]{\centerline}
-\eqcommand[]{\cfrac}
-\eqcommand[]{\chapter}
-\eqcommand[]{\chapter*}
-\eqcommand[]{\chaptername}
-\eqcommand[]{\check}
-\eqcommand[]{\CheckCommand}
-\eqcommand[]{\chi}
-\eqcommand[]{\circ}
-\eqcommand[]{\circle}
-\eqcommand[]{\circle*}
-\eqcommand[]{\cite}
-\eqcommand[]{\citep}
-\eqcommand[]{\citet}
-\eqcommand[]{\ClassError}
-\eqcommand[]{\ClassInfo}
-\eqcommand[]{\ClassWarning}
-\eqcommand[]{\ClassWarningNoLine}
-\eqcommand[]{\cleardoublepage}
-\eqcommand[]{\clearpage}
-\eqcommand[]{\cline}
-\eqcommand[]{\closing}
-\eqcommand[]{\clubsuit}
-\eqcommand[]{\color}
-\eqcommand[]{\colorbox}
-\eqcommand[]{\columnsep}
-\eqcommand[]{\columnseprule}
-\eqcommand[]{\cong}
-\eqcommand[]{\contentsline}
-\eqcommand[]{\contentsname}
-\eqcommand[]{\coprod}
-\eqcommand[]{\copyright}
-\eqcommand[]{\cos}
-\eqcommand[]{\cosh}
-\eqcommand[]{\cot}
-\eqcommand[]{\coth}
-\eqcommand[]{\csc}
-\eqcommand[]{\cup}
-\eqcommand[]{\CurrentOption}
-\eqcommand[]{\dag}
-\eqcommand[]{\dagger}
-\eqcommand[]{\dashbox}
-\eqcommand[]{\dashv}
-\eqcommand[]{\date}
-\eqcommand[]{\dbinom}
-\eqcommand[]{\dblfigrule}
-\eqcommand[]{\dblfloatpagefraction}
-\eqcommand[]{\dblfloatsep}
-\eqcommand[]{\dbltextfloatsep}
-\eqcommand[]{\dbltopfraction}
-\eqcommand[]{\ddag}
-\eqcommand[]{\ddagger}
-\eqcommand[]{\dddot}
-\eqcommand[]{\ddddot}
-\eqcommand[]{\ddot}
-\eqcommand[]{\ddots}
-\eqcommand[]{\DeclareGraphicsExtensions}
-\eqcommand[]{\DeclareGraphicsRule}
-\eqcommand[]{\DeclareOption}
-\eqcommand[]{\DeclareOption*}
-\eqcommand[]{\DeclareRobustCommand}
-\eqcommand[]{\DeclareRobustCommand*}
-\eqcommand[]{\definecolor}
-\eqcommand[]{\deg}
-\eqcommand[]{\DeleteShortVerb}
-\eqcommand[]{\Delta}
-\eqcommand[]{\delta}
-\eqcommand[]{\depth}
-\eqcommand[]{\det}
-\eqcommand[]{\dfrac}
-\eqcommand[]{\Diamond}
-\eqcommand[]{\diamond}
-\eqcommand[]{\diamondsuit}
-\eqcommand[]{\dim}
-\eqcommand[]{\discretionary}
-\eqcommand[]{\displaybreak}
-\eqcommand[]{\displaystyle}
-\eqcommand[]{\div}
-\eqcommand[]{\documentclass}
-\eqcommand[]{\dot}
-\eqcommand[]{\doteq}
-\eqcommand[]{\dotfill}
-\eqcommand[]{\dots}
-\eqcommand[]{\dotsb}
-\eqcommand[]{\dotsc}
-\eqcommand[]{\dotsi}
-\eqcommand[]{\dotsm}
-\eqcommand[]{\doublebox}
-\eqcommand[]{\doublerulesep}
-\eqcommand[]{\Downarrow}
-\eqcommand[]{\downarrow}
-\eqcommand[]{\ell}
-\eqcommand[]{\em}
-\eqcommand[]{\emph}
-\eqcommand[]{\emptyset}
-\eqcommand[]{\encl}
-\eqcommand[]{\enclname}
-\eqcommand[]{\end}
-\eqcommand[]{\endfirsthead}
-\eqcommand[]{\endfoot}
-\eqcommand[]{\endhead}
-\eqcommand[]{\endlastfoot}
-\eqcommand[]{\enlargethispage}
-\eqcommand[]{\enlargethispage*}
-\eqcommand[]{\ensuremath}
-\eqcommand[]{\epsilon}
-\eqcommand[]{\eqref}
-\eqcommand[]{\equiv}
-\eqcommand[]{\eta}
-\eqcommand[]{\euro}
-\eqcommand[]{\EUR}
-\eqcommand[]{\evensidemargin}
-\eqcommand[]{\ExecuteOptions}
-\eqcommand[]{\exists}
-\eqcommand[]{\exp}
-\eqcommand[]{\extracolsep}
-\eqcommand[]{\fancypage}
-\eqcommand[]{\fbox}
-\eqcommand[]{\fboxrule}
-\eqcommand[]{\fboxsep}
-\eqcommand[]{\fcolorbox}
-\eqcommand[]{\figurename}
-\eqcommand[]{\fill}
-\eqcommand[]{\flat}
-\eqcommand[]{\floatpagefraction}
-\eqcommand[]{\floatsep}
-\eqcommand[]{\flushbottom}
-\eqcommand[]{\fnsymbol}
-\eqcommand[]{\fontfamily}
-\eqcommand[]{\fontseries}
-\eqcommand[]{\fontshape}
-\eqcommand[]{\fontsize}
-\eqcommand[]{\LTRfootnote}
-\eqcommand[]{\footnote}
-\eqcommand[]{\footnotemark}
-\eqcommand[]{\footnoterule}
-\eqcommand[]{\footnotesep}
-\eqcommand[]{\footnotesize}
-\eqcommand[]{\footnotetext}
-\eqcommand[]{\footskip}
-\eqcommand[]{\forall}
-\eqcommand[]{\frac}
-\eqcommand[]{\frame}
-\eqcommand[]{\framebox}
-\eqcommand[]{\frenchspacing}
-\eqcommand[]{\frontmatter}
-\eqcommand[]{\frown}
-\eqcommand[]{\fussy}
-\eqcommand[]{\Gamma}
-\eqcommand[]{\gamma}
-\eqcommand[]{\gcd}
-\eqcommand[]{\ge}
-\eqcommand[]{\genfrac}
-\eqcommand[]{\geq}
-\eqcommand[]{\gets}
-\eqcommand[]{\gg}
-\eqcommand[]{\glossary}
-\eqcommand[]{\glossaryentry}
-\eqcommand[]{\graphpaper}
-\eqcommand[]{\grave}
-\eqcommand[]{\guillemotleft}
-\eqcommand[]{\guillemotright}
-\eqcommand[]{\guilsinglleft}
-\eqcommand[]{\guilsinglright}
-\eqcommand[]{\hat}
-\eqcommand[]{\hbar}
-\eqcommand[]{\headheight}
-\eqcommand[]{\headsep}
-\eqcommand[]{\headtoname}
-\eqcommand[]{\heartsuit}
-\eqcommand[]{\height}
-\eqcommand[]{\hfill}
-\eqcommand[]{\hline}
-\eqcommand[]{\hoffset}
-\eqcommand[]{\hom}
-\eqcommand[]{\hookleftarrow}
-\eqcommand[]{\hookrightarrow}
-\eqcommand[]{\hrulefill}
-\eqcommand[]{\hspace}
-\eqcommand[]{\hspace*}
-\eqcommand[]{\huge}
-\eqcommand[]{\Huge}
-\eqcommand[]{\hyperlink}
-\eqcommand[]{\hypersetup}
-\eqcommand[]{\hypertarget}
-\eqcommand[]{\hyphenation}
-\eqcommand[]{\idotsint}
-\eqcommand[]{\iff}
-\eqcommand[]{\IfFileExists}
-\eqcommand[]{\ifthenelse}
-\eqcommand[]{\Im}
-\eqcommand[]{\imath}
-\eqcommand[]{\in}
-\eqcommand[]{\include}
-\eqcommand[]{\includegraphics}
-\eqcommand[]{\includegraphics*}
-\eqcommand[]{\includeonly}
-\eqcommand[]{\indent}
-\eqcommand[]{\index}
-\eqcommand[]{\indexentry}
-\eqcommand[]{\indexname}
-\eqcommand[]{\indexspace}
-\eqcommand[]{\inf}
-\eqcommand[]{\infty}
-\eqcommand[]{\input}
-\eqcommand[]{\InputIfFileExists}
-\eqcommand[]{\int}
-\eqcommand[]{\iint}
-\eqcommand[]{\iiint}
-\eqcommand[]{\iiiint}
-\eqcommand[]{\intertext}
-\eqcommand[]{\intertextsep}
-\eqcommand[]{\invisible}
-\eqcommand[]{\iota}
-\eqcommand[]{\itdefault}
-\eqcommand[]{\item}
-\eqcommand[]{\itemindent}
-\eqcommand[]{\itemsep}
-\eqcommand[]{\itshape}
-\eqcommand[]{\jmath}
-\eqcommand[]{\join}
-\eqcommand[]{\jot}
-\eqcommand[]{\kappa}
-\eqcommand[]{\ker}
-\eqcommand[]{\kill}
-\eqcommand[]{\label}
-\eqcommand[]{\labelenumi}
-\eqcommand[]{\labelenumii}
-\eqcommand[]{\labelenumiii}
-\eqcommand[]{\labelenumiv}
-\eqcommand[]{\labelitemi}
-\eqcommand[]{\labelitemii}
-\eqcommand[]{\labelitemiii}
-\eqcommand[]{\labelitemiv}
-\eqcommand[]{\labelsep}
-\eqcommand[]{\labelwidth}
-\eqcommand[]{\Lambda}
-\eqcommand[]{\lambda}
-\eqcommand[]{\langle}
-\eqcommand[]{\language}
-\eqcommand[]{\large}
-\eqcommand[]{\Large}
-\eqcommand[]{\LARGE}
-\eqcommand[]{\LaTeX}
-\eqcommand[]{\LaTeXe}
-\eqcommand[]{\lceil}
-\eqcommand[]{\ldots}
-\eqcommand[]{\le}
-\eqcommand[]{\leadsto}
-\eqcommand[]{\left}
-\eqcommand[]{\Leftarrow}
-\eqcommand[]{\leftarrow}
-\eqcommand[]{\lefteqn}
-\eqcommand[]{\leftharpoondown}
-\eqcommand[]{\leftharpoonup}
-\eqcommand[]{\leftmargin}
-\eqcommand[]{\Leftrightarrow}
-\eqcommand[]{\leftrightarrow}
-\eqcommand[]{\leftroot}
-\eqcommand[]{\leq}
-\eqcommand[]{\lfloor}
-\eqcommand[]{\lg}
-\eqcommand[]{\lhd}
-\eqcommand[]{\lim}
-\eqcommand[]{\liminf}
-\eqcommand[]{\limits}
-\eqcommand[]{\limsup}
-\eqcommand[]{\line}
-\eqcommand[]{\linebreak}
-\eqcommand[]{\linethickness}
-\eqcommand[]{\linewidth}
-\eqcommand[]{\listfigurename}
-\eqcommand[]{\listfiles}
-\eqcommand[]{\listoffigures}
-\eqcommand[]{\listoftables}
-\eqcommand[]{\listparindent}
-\eqcommand[]{\listtablename}
-\eqcommand[]{\ll}
-\eqcommand[]{\ln}
-\eqcommand[]{\LoadClass}
-\eqcommand[]{\LoadClassWithOptions}
-\eqcommand[]{\location}
-\eqcommand[]{\log}
-\eqcommand[]{\Longleftarrow}
-\eqcommand[]{\longleftarrow}
-\eqcommand[]{\Longleftrightarrow}
-\eqcommand[]{\longleftrightarrow}
-\eqcommand[]{\longmapsto}
-\eqcommand[]{\Longrightarrow}
-\eqcommand[]{\longrightarrow}
-\eqcommand[]{\lvert}
-\eqcommand[]{\lVert}
-\eqcommand[]{\mainmatter}
-\eqcommand[]{\makebox}
-\eqcommand[]{\makeglossary}
-\eqcommand[]{\makeindex}
-\eqcommand[]{\makelabel}
-\eqcommand[]{\makelabels}
-\eqcommand[]{\MakeLowercase}
-\eqcommand[]{\MakeShortVerb}
-\eqcommand[]{\maketitle}
-\eqcommand[]{\MakeUppercase}
-\eqcommand[]{\mapsto}
-\eqcommand[]{\marginpar}
-\eqcommand[]{\marginparpush}
-\eqcommand[]{\marginparsep}
-\eqcommand[]{\marginparwidth}
-\eqcommand[]{\markboth}
-\eqcommand[]{\markright}
-\eqcommand[]{\mathbf}
-\eqcommand[]{\mathcal}
-\eqcommand[]{\mathindent}
-\eqcommand[]{\mathit}
-\eqcommand[]{\mathnormal}
-\eqcommand[]{\mathring}
-\eqcommand[]{\mathrm}
-\eqcommand[]{\mathsf}
-\eqcommand[]{\mathtt}
-\eqcommand[]{\max}
-\eqcommand[]{\mbox}
-\eqcommand[]{\mddefault}
-\eqcommand[]{\mdseries}
-\eqcommand[]{\medskip}
-\eqcommand[]{\medskipamount}
-\eqcommand[]{\medspace}
-\eqcommand[]{\MessageBreak}
-\eqcommand[]{\mho}
-\eqcommand[]{\mid}
-\eqcommand[]{\min}
-\eqcommand[]{\mod}
-\eqcommand[]{\models}
-\eqcommand[]{\mp}
-\eqcommand[]{\mspace}
-\eqcommand[]{\mu}
-\eqcommand[]{\multicolumn}
-\eqcommand[]{\multiput}
-\eqcommand[]{\multlinegap}
-\eqcommand[]{\nabla}
-\eqcommand[]{\name}
-\eqcommand[]{\natural}
-\eqcommand[]{\nearrow}
-\eqcommand[]{\NeedsTeXFormat}
-\eqcommand[]{\neg}
-\eqcommand[]{\negmedspace}
-\eqcommand[]{\negthickspace}
-\eqcommand[]{\negthinspace}
-\eqcommand[]{\neq}
-\eqcommand[]{\newboolean}
-\eqcommand[]{\newcommand}
-\eqcommand[]{\newcommand*}
-\eqcommand[]{\newcounter}
-\eqcommand[]{\newenvironment}
-\eqcommand[]{\newenvironment*}
-\eqcommand[]{\newfont}
-\eqcommand[]{\newlength}
-\eqcommand[]{\newline}
-\eqcommand[]{\newpage}
-\eqcommand[]{\newsavebox}
-\eqcommand[]{\newtheorem}
-\eqcommand[]{\ni}
-\eqcommand[]{\nocite}
-\eqcommand[]{\nofiles}
-\eqcommand[]{\noindent}
-\eqcommand[]{\nolimits}
-\eqcommand[]{\nolinebreak}
-\eqcommand[]{\nonfrenchspacing}
-\eqcommand[]{\nonumber}
-\eqcommand[]{\nopagebreak}
-\eqcommand[]{\normalcolor}
-\eqcommand[]{\normalfont}
-\eqcommand[]{\normalmarginpar}
-\eqcommand[]{\normalsize}
-\eqcommand[]{\not}
-\eqcommand[]{\notag}
-\eqcommand[]{\notin}
-\eqcommand[]{\nu}
-\eqcommand[]{\numberwithin}
-\eqcommand[]{\nwarrow}
-\eqcommand[]{\oddsidemargin}
-\eqcommand[]{\odot}
-\eqcommand[]{\oint}
-\eqcommand[]{\Omega}
-\eqcommand[]{\omega}
-\eqcommand[]{\ominus}
-\eqcommand[]{\onecolumn}
-\eqcommand[]{\onlynotes}
-\eqcommand[]{\onlyslides}
-\eqcommand[]{\opening}
-\eqcommand[]{\oplus}
-\eqcommand[]{\OptionNotUsed}
-\eqcommand[]{\oslash}
-\eqcommand[]{\otimes}
-\eqcommand[]{\oval}
-\eqcommand[]{\ovalbox}
-\eqcommand[]{\Ovalbox}
-\eqcommand[]{\overbrace}
-\eqcommand[]{\overleftarrow}
-\eqcommand[]{\overleftrightarrow}
-\eqcommand[]{\overline}
-\eqcommand[]{\overrightarrow}
-\eqcommand[]{\overset}
-\eqcommand[]{\PackageError}
-\eqcommand[]{\PackageInfo}
-\eqcommand[]{\PackageWarning}
-\eqcommand[]{\PackageWarningNoLine}
-\eqcommand[]{\pagebreak}
-\eqcommand[]{\pagecolor}
-\eqcommand[]{\pagename}
-\eqcommand[]{\pagenumbering}
-\eqcommand[]{\pageref}
-\eqcommand[]{\pagestyle}
-\eqcommand[]{\paperheight}
-\eqcommand[]{\paperwidth}
-\eqcommand[]{\par}
-\eqcommand[]{\paragraph}
-\eqcommand[]{\paragraph*}
-\eqcommand[]{\parallel}
-\eqcommand[]{\parbox}
-\eqcommand[]{\parindent}
-\eqcommand[]{\parsep}
-\eqcommand[]{\parskip}
-\eqcommand[]{\part}
-\eqcommand[]{\part*}
-\eqcommand[]{\partial}
-\eqcommand[]{\partname}
-\eqcommand[]{\partopsep}
-\eqcommand[]{\PassOptionToClass}
-\eqcommand[]{\PassOptionToPackage}
-\eqcommand[]{\path}
-\eqcommand[]{\prep}
-\eqcommand[]{\Phi}
-\eqcommand[]{\phi}
-\eqcommand[]{\Pi}
-\eqcommand[]{\pi}
-\eqcommand[]{\pm}
-\eqcommand[]{\pmb}
-\eqcommand[]{\pmod}
-\eqcommand[]{\pod}
-\eqcommand[]{\poptabs}
-\eqcommand[]{\pounds}
-\eqcommand[]{\Pr}
-\eqcommand[]{\prec}
-\eqcommand[]{\preceq}
-\eqcommand[]{\prime}
-\eqcommand[]{\printindex}
-\eqcommand[]{\ProcessOptions}
-\eqcommand[]{\ProcessOptions*}
-\eqcommand[]{\prod}
-\eqcommand[]{\propto}
-\eqcommand[]{\protect}
-\eqcommand[]{\providecommand}
-\eqcommand[]{\providecommand*}
-\eqcommand[]{\ProvidesClass}
-\eqcommand[]{\ProvidesFile}
-\eqcommand[]{\ProvidesPackage}
-\eqcommand[]{\ps}
-\eqcommand[]{\Psi}
-\eqcommand[]{\psi}
-\eqcommand[]{\pushtabs}
-\eqcommand[]{\put}
-\eqcommand[]{\qbezier}
-\eqcommand[]{\qquad}
-\eqcommand[]{\quad}
-\eqcommand[]{\raggedbottom}
-\eqcommand[]{\raggedleft}
-\eqcommand[]{\raggedright}
-\eqcommand[]{\raisebox}
-\eqcommand[]{\raisetag}
-\eqcommand[]{\rangle}
-\eqcommand[]{\rceil}
-\eqcommand[]{\Re}
-\eqcommand[]{\ref}
-\eqcommand[]{\reflectbox}
-\eqcommand[]{\refname}
-\eqcommand[]{\refstepcounter}
-\eqcommand[]{\renewcommand}
-\eqcommand[]{\renewcommand*}
-\eqcommand[]{\renewenvironment}
-\eqcommand[]{\renewenvironment*}
-\eqcommand[]{\RequirePackage}
-\eqcommand[]{\RequirePackageWithOptions}
-\eqcommand[]{\resizebox}
-\eqcommand[]{\resizebox*}
-\eqcommand[]{\reversemarginpar}
-\eqcommand[]{\rfloor}
-\eqcommand[]{\rhd}
-\eqcommand[]{\rho}
-\eqcommand[]{\right}
-\eqcommand[]{\Rightarrow}
-\eqcommand[]{\rightarrow}
-\eqcommand[]{\rightharpoondown}
-\eqcommand[]{\rightharpoonup}
-\eqcommand[]{\rightleftharpoons}
-\eqcommand[]{\rightmargin}
-\eqcommand[]{\rmdefault}
-\eqcommand[]{\rmfamily}
-\eqcommand[]{\Roman}
-\eqcommand[]{\roman}
-\eqcommand[]{\rotatebox}
-\eqcommand[]{\rule}
-\eqcommand[]{\rvert}
-\eqcommand[]{\rVert}
-\eqcommand[]{\savebox}
-\eqcommand[]{\sbox}
-\eqcommand[]{\scalebox}
-\eqcommand[]{\scdefault}
-\eqcommand[]{\scriptscriptstyle}
-\eqcommand[]{\scriptsize}
-\eqcommand[]{\scripstyle}
-\eqcommand[]{\scshape}
-\eqcommand[]{\searrow}
-\eqcommand[]{\sec}
-\eqcommand[]{\section}
-\eqcommand[]{\section*}
-\eqcommand[]{\see}
-\eqcommand[]{\seealso}
-\eqcommand[]{\seename}
-\eqcommand[]{\selectfont}
-\eqcommand[]{\setboolean}
-\eqcommand[]{\setcounter}
-\eqcommand[]{\setlength}
-\eqcommand[]{\setminus}
-\eqcommand[]{\settodepth}
-\eqcommand[]{\settoheight}
-\eqcommand[]{\settowidth}
-\eqcommand[]{\sfdefault}
-\eqcommand[]{\sffamily}
-\eqcommand[]{\shadowbox}
-\eqcommand[]{\sharp}
-\eqcommand[]{\shortstack}
-\eqcommand[]{\sideset}
-\eqcommand[]{\Sigma}
-\eqcommand[]{\sigma}
-\eqcommand[]{\signature}
-\eqcommand[]{\sim}
-\eqcommand[]{\simeq}
-\eqcommand[]{\sin}
-\eqcommand[]{\sinh}
-\eqcommand[]{\sldefault}
-\eqcommand[]{\sloppy}
-\eqcommand[]{\slshape}
-\eqcommand[]{\small}
-\eqcommand[]{\smallskip}
-\eqcommand[]{\smallskipamount}
-\eqcommand[]{\smash}
-\eqcommand[]{\smile}
-\eqcommand[]{\spadesuit}
-\eqcommand[]{\sqcap}
-\eqcommand[]{\sqcup}
-\eqcommand[]{\sqrt}
-\eqcommand[]{\sqsubset}
-\eqcommand[]{\sqsubseteq}
-\eqcommand[]{\sqsupset}
-\eqcommand[]{\sqsupseteq}
-\eqcommand[]{\stackrel}
-\eqcommand[]{\star}
-\eqcommand[]{\stepcounter}
-\eqcommand[]{\stretch}
-\eqcommand[]{\subitem}
-\eqcommand[]{\subparagraph}
-\eqcommand[]{\subparagraph*}
-\eqcommand[]{\subsection}
-\eqcommand[]{\subsection*}
-\eqcommand[]{\substack}
-\eqcommand[]{\subsubitem}
-\eqcommand[]{\subsubsection}
-\eqcommand[]{\subsubsection*}
-\eqcommand[]{\subset}
-\eqcommand[]{\subseteq}
-\eqcommand[]{\succ}
-\eqcommand[]{\succeq}
-\eqcommand[]{\sum}
-\eqcommand[]{\sup}
-\eqcommand[]{\supressfloats}
-\eqcommand[]{\supset}
-\eqcommand[]{\supseteq}
-\eqcommand[]{\surd}
-\eqcommand[]{\swarrow}
-\eqcommand[]{\tabbingsep}
-\eqcommand[]{\tabcolsep}
-\eqcommand[]{\tableofcontents}
-\eqcommand[]{\tablename}
-\eqcommand[]{\tabularnewline}
-\eqcommand[]{\tag}
-\eqcommand[]{\tan}
-\eqcommand[]{\tanh}
-\eqcommand[]{\tau}
-\eqcommand[]{\tbinom}
-\eqcommand[]{\telephone}
-\eqcommand[]{\TeX}
-\eqcommand[]{\text}
-\eqcommand[]{\textbullet}
-\eqcommand[]{\textemdash}
-\eqcommand[]{\textendash}
-\eqcommand[]{\textexclamdown}
-\eqcommand[]{\textperiodcentered}
-\eqcommand[]{\textquestiondown}
-\eqcommand[]{\textquotedblleft}
-\eqcommand[]{\textquotedblright}
-\eqcommand[]{\textquoteleft}
-\eqcommand[]{\textquoteright}
-\eqcommand[]{\textvisiblespace}
-\eqcommand[]{\textasciicircum}
-\eqcommand[]{\textasciitilde}
-\eqcommand[]{\textbackslash}
-\eqcommand[]{\textbar}
-\eqcommand[]{\textgreater}
-\eqcommand[]{\textless}
-\eqcommand[]{\textbf}
-\eqcommand[]{\textcircled}
-\eqcommand[]{\textcolor}
-\eqcommand[]{\textcompwordmark}
-\eqcommand[]{\textfloatsep}
-\eqcommand[]{\textfraction}
-\eqcommand[]{\textheight}
-\eqcommand[]{\textit}
-\eqcommand[]{\textmd}
-\eqcommand[]{\textnormal}
-\eqcommand[]{\textregistered}
-\eqcommand[]{\textrm}
-\eqcommand[]{\textsc}
-\eqcommand[]{\textsf}
-\eqcommand[]{\textsl}
-\eqcommand[]{\textstyle}
-\eqcommand[]{\textsuperscript}
-\eqcommand[]{\texttrademark}
-\eqcommand[]{\texttt}
-\eqcommand[]{\textup}
-\eqcommand[]{\textwidth}
-\eqcommand[]{\tfrac}
-\eqcommand[]{\thanks}
-\eqcommand[]{\Theta}
-\eqcommand[]{\theta}
-\eqcommand[]{\thicklines}
-\eqcommand[]{\thickspace}
-\eqcommand[]{\thinlines}
-\eqcommand[]{\thinspace}
-\eqcommand[]{\thisfancypage}
-\eqcommand[]{\thispagestyle}
-\eqcommand[]{\tilde}
-\eqcommand[]{\tiny}
-\eqcommand[]{\times}
-\eqcommand[]{\title}
-\eqcommand[]{\to}
-\eqcommand[]{\today}
-\eqcommand[]{\top}
-\eqcommand[]{\topfigrule}
-\eqcommand[]{\topfraction}
-\eqcommand[]{\topmargin}
-\eqcommand[]{\topsep}
-\eqcommand[]{\topskip}
-\eqcommand[]{\totalheight}
-\eqcommand[]{\triangle}
-\eqcommand[]{\triangleleft}
-\eqcommand[]{\triangleright}
-\eqcommand[]{\ttdefault}
-\eqcommand[]{\ttfamily}
-\eqcommand[]{\twocolumn}
-\eqcommand[]{\typein}
-\eqcommand[]{\typeout}
-\eqcommand[]{\unboldmath}
-\eqcommand[]{\underbrace}
-\eqcommand[]{\underleftarrow}
-\eqcommand[]{\underleftrightarrow}
-\eqcommand[]{\underline}
-\eqcommand[]{\underrightarrow}
-\eqcommand[]{\underset}
-\eqcommand[]{\unitlength}
-\eqcommand[]{\unlhd}
-\eqcommand[]{\unrhd}
-\eqcommand[]{\Uparrow}
-\eqcommand[]{\uparrow}
-\eqcommand[]{\updefault}
-\eqcommand[]{\Updownarrow}
-\eqcommand[]{\updownarrow}
-\eqcommand[]{\uplus}
-\eqcommand[]{\upshape}
-\eqcommand[]{\Upsilon}
-\eqcommand[]{\upsilon}
-\eqcommand[]{\uproot}
-\eqcommand[]{\url}
-\eqcommand[]{\urlstyle}
-\eqcommand[]{\usebox}
-\eqcommand[]{\usecounter}
-\eqcommand[]{\usefont}
-\eqcommand[]{\usepackage}
-\eqcommand[]{\value}
-\eqcommand[]{\varepsilon}
-\eqcommand[]{\varinjlim}
-\eqcommand[]{\varliminf}
-\eqcommand[]{\varlimsup}
-\eqcommand[]{\varphi}
-\eqcommand[]{\varpi}
-\eqcommand[]{\varprojlim}
-\eqcommand[]{\varrho}
-\eqcommand[]{\varsigma}
-\eqcommand[]{\vartheta}
-\eqcommand[]{\vdash}
-\eqcommand[]{\vdots}
-\eqcommand[]{\vec}
-\eqcommand[]{\vector}
-\eqcommand[]{\vee}
-\eqcommand[]{\verb}
-\eqcommand[]{\verb*}
-\eqcommand[]{\vfill}
-\eqcommand[]{\visible}
-\eqcommand[]{\vline}
-\eqcommand[]{\voffset}
-\eqcommand[]{\vpageref}
-\eqcommand[]{\vref}
-\eqcommand[]{\vspace}
-\eqcommand[]{\vspace*}
-\eqcommand[]{\wedge}
-\eqcommand[]{\whiledo}
-\eqcommand[]{\widehat}
-\eqcommand[]{\widetilde}
-\eqcommand[]{\width}
-\eqcommand[]{\wp}
-\eqcommand[]{\wr}
-\eqcommand[]{\Xi}
-\eqcommand[]{\xi}
-\eqcommand[]{\xleftarrow}
-\eqcommand[]{\xrightarrow}
-\eqcommand[]{\zeta}
-% \end{macrocode}
-% \iffalse
-%</commands-ltx.def>
-%<*commands-xepersian.def>
-% \fi
-% \part{commands-xepersian.def}
-% \begin{macrocode}
-
-% \end{macrocode}
-% \iffalse
-%</commands-xepersian.def>
-%<*enumerate-xepersian.def>
-% \fi
-% \part{enumerate-xepersian.def}
-% \begin{macrocode}
-\def\@enloop@{%
- \ifx ا\@entemp \def\@tempa{\@enLabel\harfi }\else
- \ifx ی\@entemp \def\@tempa{\@enLabel\adadi }\else
- \ifx ت\@entemp \def\@tempa{\@enLabel\tartibi }\else
- \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else
- \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else
- \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else
- \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else
- \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else
- \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else
- \ifx \bgroup\@entemp \let\@tempa\@enGroup \else
- \ifx \@enum@\@entemp \let\@tempa\@gobble \else
- \let\@tempa\@enOther
- \@enhook
- \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
- \@tempa}
-% \end{macrocode}
-% \iffalse
-%</enumerate-xepersian.def>
-%<*minitoc-xepersian.def>
-% \fi
-% \part{minitoc-xepersian.def}
-% \begin{macrocode}
-\def\ptctitle{\if@RTL فهرست مطالب\else Table of Contents\fi}%
-\def\plftitle{\if@RTL لیست تصاویر\else List of Figures\fi}%
-\def\plttitle{\if@RTL لیست جداول\else List of Tables\fi}%
-\def\mtctitle{\if@RTL عناوین\else Contents\fi}%
-\def\mlftitle{\if@RTL اشکال\else Figures\fi}%
-\def\mlttitle{\if@RTL جداول\else Tables\fi}%
-\def\stctitle{\if@RTL عناوین\else Contents\fi}%
-\def\slftitle{\if@RTL اشکال\else Figures\fi}%
-\def\slttitle{\if@RTL جداول\else Tables\fi}%
-% \end{macrocode}
-% \iffalse
-%</minitoc-xepersian.def>
-%<*environments-ltx.def>
-% \fi
-% \part{environments-ltx.def}
-% \begin{macrocode}
-\eqenvironment[]{abstract}
-\eqenvironment[]{align}
-\eqenvironment[]{alignat}
-\eqenvironment[]{aligned}
-\eqenvironment[]{appendix}
-\eqenvironment[]{array}
-\eqenvironment[]{center}
-\eqenvironment[]{alltt}
-\eqenvironment[]{bmatrix}
-\eqenvironment[]{Bmatrix}
-\eqenvironment[]{cases}
-\eqenvironment[]{description}
-\eqenvironment[]{displaymath}
-\eqenvironment[]{enumerate}
-\eqenvironment[]{eqnarray}
-\eqenvironment[]{eqnarray*}
-\eqenvironment[]{equation}
-\eqenvironment[]{equation*}
-\eqenvironment[]{falign}
-\eqenvironment[]{figure}
-\eqenvironment[]{figure*}
-\eqenvironment[]{filecontents}
-\eqenvironment[]{filecontents*}
-\eqenvironment[]{flushleft}
-\eqenvironment[]{flushright}
-\eqenvironment[]{gather}
-\eqenvironment[]{gathered}
-\eqenvironment[]{itemize}
-\eqenvironment[]{letter}
-\eqenvironment[]{list}
-\eqenvironment[]{longtable}
-\eqenvironment[]{lrbox}
-\eqenvironment[]{math}
-\eqenvironment[]{matrix}
-\eqenvironment[]{minipage}
-\eqenvironment[]{multicols}
-\eqenvironment[]{multline}
-\eqenvironment[]{note}
-\eqenvironment[]{overlay}
-\eqenvironment[]{picture}
-\eqenvironment[]{pmatrix}
-\eqenvironment[]{quotation}
-\eqenvironment[]{quote}
-\eqenvironment[]{slide}
-\eqenvironment[]{sloppypar}
-\eqenvironment[]{split}
-\eqenvironment[]{subarray}
-\eqenvironment[]{subequations}
-\eqenvironment[]{tabbing}
-\eqenvironment[]{table}
-\eqenvironment[]{table*}
-\eqenvironment[]{tabular}
-\eqenvironment[]{tabular*}
-\eqenvironment[]{thebibliography}
-\eqenvironment[]{theindex}
-\eqenvironment[]{titlepage}
-\eqenvironment[]{trivlist}
-\eqenvironment[]{verbatim}
-\eqenvironment[]{verbatim*}
-\eqenvironment[]{verse}
-\eqenvironment[]{vmatrix}
-\eqenvironment[]{Vmatrix}
-% \end{macrocode}
-% \iffalse
-%</environments-ltx.def>
-%<*environments-xepersian.def>
-% \fi
-% \part{environments-xepersian.def}
-% \begin{macrocode}
-
-% \end{macrocode}
-% \iffalse
-%</environments-xepersian.def>
-%<*extbook-xepersian.def>
-% \fi
-% \part{extbook-xepersian.def}
-% \begin{macrocode}
-\renewcommand\frontmatter{%
- \cleardoublepage
- \@mainmatterfalse
- \pagenumbering{harfi}}
-\renewcommand\mainmatter{%
- \cleardoublepage
- \@mainmattertrue
- \pagenumbering{arabic}}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</extbook-xepersian.def>
-%<*kashida-xepersian.def>
-% \fi
-% \part{kashida-xepersian.def}
-% \begin{macrocode}
-\chardef\zwj="200D % zero-width joiner
-\chardef\ksh="0640 % kashida
-
-\chardef\D=10 % dual-joiner class
-\chardef\L=11 % lam
-\chardef\R=12 % right-joiner
-\chardef\A=13 % alef
-\chardef\V=256 % vowel or other combining mark (to be ignored)
-
-\def\kashida{\zwj\nobreak \setbox0=\hbox{\ksh}%
- \leaders\hrule height\ht0 \hskip0pt plus 0.5em \zwj}
-
-\def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}%
- \expandafter\dosetclass\charlist,\end}
-\def\dosetclass#1,#2\end{%
- \def\test{#1}\def\charlist{#2}%
- \ifx\test\empty\let\next\finishsetclass
- \else \XeTeXcharclass "\test = \theclass
- \let\next\dosetclass \fi
- \expandafter\next\charlist,,\end}
-\def\finishsetclass#1,,\end{}
-
-\setclass \A {0622,0623,0625,0627}
-\setclass \R {0624,0629,062F,0630,0631,0632,0648,0698}
-\setclass \D {0626,0628,062A,062B,062C,062D,062E}
-\setclass \D {0633,0634,0635,0636,0637,0638,0639,063A}
-\setclass \D {0640,0641,0642,0643,0645,0646,0647,0649,064A}
-\setclass \D {067E,0686,06A9,06AF,06CC}
-\setclass \L {0644}
-\setclass \V {064B,064C,064D,064E,064F,0650,0651,0652}
-
-\XeTeXinterchartoks \D \D = {\kashida}
-\XeTeXinterchartoks \L \D = {\kashida}
-\XeTeXinterchartoks \D \L = {\kashida}
-\XeTeXinterchartoks \L \L = {\kashida}
-\XeTeXinterchartoks \D \R = {\kashida}
-\XeTeXinterchartoks \D \A = {\kashida}
-\XeTeXinterchartoks \L \R = {\kashida}
-\XeTeXinterchartoks \L \A = {}
-
-\XeTeXinterchartokenstate=1
-% \end{macrocode}
-% \iffalse
-%</kashida-xepersian.def>
-%<*listings-xepersian.def>
-% \fi
-% \part{listings-xepersian.def}
-% \begin{macrocode}
-\def\lstlistingname{برنامهٔ}
-\def\lstlistlistingname{فهرست برنامه‌ها}
-% \end{macrocode}
-% \iffalse
-%</listings-xepersian.def>
-%<*memoir-xepersian.def>
-% \fi
-% \part{memoir-xepersian.def}
-% \begin{macrocode}
-\renewcommand{\@memfront}{%
- \@smemfront\pagenumbering{harfi}}
-\renewcommand{\setthesection}{\thechapter\@SepMark\harfi{section}}
-\renewcommand*{\thebook}{\@tartibi\c@book}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand{\appendix}{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \anappendixtrue}
-% \end{macrocode}
-% \iffalse
-%</memoir-xepersian.def>
-%<*misccommandsenvironments-ltx.def>
-% \fi
-% \part{misccommandsenvironments-ltx.def}
-% \begin{macrocode}
-\eqcommand[\سند]{\document}
-\eqcommand[\endسند]{\enddocument}
-% \end{macrocode}
-% \iffalse
-%</misccommandsenvironments-ltx.def>
-%<*refrep-xepersian.def>
-% \fi
-% \part{refrep-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</refrep-xepersian.def>
-%<*report-xepersian.def>
-% \fi
-% \part{report-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering Persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</report-xepersian.def>
-%<*rapport3-xepersian.def>
-% \fi
-% \part{rapport3-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\thepart{\@tartibi\c@part}
-\renewcommand*\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}}
-% \end{macrocode}
-% \iffalse
-%</rapport3-xepersian.def>
-%<*scrartcl-xepersian.def>
-% \fi
-% \part{scrartcl-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-% \end{macrocode}
-% \iffalse
-%</scrartcl-xepersian.def>
-%<*scrbook-xepersian.def>
-% \fi
-% \part{scrbook-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*\frontmatter{%
- \if@twoside\cleardoubleoddpage\else\clearpage\fi
- \@mainmatterfalse\pagenumbering{harfi}%
-}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-% \end{macrocode}
-% \iffalse
-%</scrbook-xepersian.def>
-%<*scrreprt-xepersian.def>
-% \fi
-% \part{scrreprt-xepersian.def}
-% \begin{macrocode}
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
-\renewcommand*{\thepart}{\@tartibi\c@part}
-\renewcommand*\appendix{\par%
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}%
- \csname appendixmore\endcsname
-}
-\renewcommand*{\@@maybeautodot}[1]{%
- \ifx #1\@stop\let\@@maybeautodot\relax
- \else
- \ifx #1\harfi \@autodottrue\fi
- \ifx #1\adadi \@autodottrue\fi
- \ifx #1\tartibi \@autodottrue\fi
- \ifx #1\Alph \@autodottrue\fi
- \ifx #1\alph \@autodottrue\fi
- \ifx #1\Roman \@autodottrue\fi
- \ifx #1\roman \@autodottrue\fi
- \ifx #1\@harfi \@autodottrue\fi
- \ifx #1\@adadi \@autodottrue\fi
- \ifx #1\@tartibi \@autodottrue\fi
- \ifx #1\@Alph \@autodottrue\fi
- \ifx #1\@alph \@autodottrue\fi
- \ifx #1\@Roman \@autodottrue\fi
- \ifx #1\@roman \@autodottrue\fi
- \ifx #1\romannumeral \@autodottrue\fi
- \fi
- \@@maybeautodot
-}
-% \end{macrocode}
-% \iffalse
-%</scrreprt-xepersian.def>
-%<*tocloft-xepersian.def>
-% \fi
-% \part{tocloft-xepersian.def}
-% \begin{macrocode}
-\renewcommand*{\cftchapname}{\if@RTL فصل\else chapter\fi}
-\renewcommand*{\cftsecname}{\if@RTL قسمت\else section\fi}
-\renewcommand*{\cftsubsecname}{\if@RTL زیرقسمت\else subsection\fi}
-\renewcommand*{\cftsubsubsecname}{\if@RTL زیرزیرقسمت\else subsubsection\fi}
-\renewcommand*{\cftparaname}{\if@RTL پاراگراف\else paragraph\fi}
-\renewcommand*{\cftsubparaname}{\if@RTL زیرپاراگراف\else subparagraph\fi}
-\renewcommand*{\cftfigname}{\if@RTL شکل\else figure\fi}
-\renewcommand*{\cftsubfigname}{\if@RTL زیرشکل\else subfigure\fi}
-\renewcommand*{\cfttabname}{\if@RTL جدول\else table\fi}
-\renewcommand*{\cftsubtabname}{\if@RTL زیرجدول\else subtable\fi}
-% \end{macrocode}
-% \iffalse
-%</tocloft-xepersian.def>
-%<*xepersian-magazine.cls>
-% \fi
-% \part{xepersian-magazine.cls}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-magazine}[2009/01/05 v0.1 Typesetting Persian magazines in XeLaTeX (Author: Vafa Khalighi)]
-\RequirePackage{ifthen}
-\newlength{\xepersian@imgsize}
-\newlength{\xepersian@coltitsize}
-\newlength{\xepersian@pageneed}
-\newlength{\xepersian@pageleft}
-\newlength{\xepersian@indexwidth}
-\newcommand{\xepersian@ncolumns}{0}
-\newlength{\columnlines}
-\setlength{\columnlines}{0 pt} % no lines by default
-\newboolean{xepersian@hyphenatedtitles}
-\setboolean{xepersian@hyphenatedtitles}{true}
-\newboolean{xepersian@ninepoints}
-\setboolean{xepersian@ninepoints}{false}
-\newboolean{xepersian@showgrid}
-\setboolean{xepersian@showgrid}{false}
-\newboolean{xepersian@a3paper}
-\setboolean{xepersian@a3paper}{false}
-\newboolean{xepersian@insidefrontpage}
-\setboolean{xepersian@insidefrontpage}{false}
-\newboolean{xepersian@insideweather}
-\setboolean{xepersian@insideweather}{false}
-\newboolean{xepersian@insideindex}
-\setboolean{xepersian@insideindex}{false}
-\newcount\xepersian@gridrows
-\newcount\xepersian@gridcolumns
-\xepersian@gridrows=40
-\xepersian@gridcolumns=50
-\newcount\minraggedcols
-\minraggedcols=5
-\DeclareOption{10pt}{\PassOptionsToClass{10pt}{article}}
-\DeclareOption{11pt}{\PassOptionsToClass{11pt}{article}}
-\DeclareOption{12pt}{\PassOptionsToClass{12pt}{article}}
-\DeclareOption{twocolumn}%
-{\ClassWarning{xepersian-magazine}{Option 'twocolumn' not available for xepersian-magazine.}}
-\DeclareOption{notitlepage}%
-{\ClassWarning{xepersian-magazine}{Option 'notitlepage' not available for xepersian-magazine.}}
-\DeclareOption{twoside}%
-{\ClassWarning{xepersian-magazine}{Option 'twoside' not available for xepersian-magazine.}}
-\DeclareOption{9pt}{\setboolean{xepersian@ninepoints}{true}}
-\DeclareOption{hyphenatedtitles}{\setboolean{xepersian@hyphenatedtitles}{false}}
-\DeclareOption{columnlines}{\setlength{\columnlines}{0.1 pt}}
-\DeclareOption{showgrid}{\setboolean{xepersian@showgrid}{true}}
-\DeclareOption{a3paper}{\setboolean{xepersian@a3paper}{true}}
-\ProcessOptions\relax
-\LoadClass[10pt, onecolumn, titlepage, a4paper]{article}
-\RequirePackage{ifxetex}
-\RequirePackage{multido}
-\RequirePackage{datetime}
-\RequirePackage{fmultico}
-\RequirePackage{fancyhdr}
-\RequirePackage{fancybox}
-\ifthenelse{\boolean{xepersian@a3paper}}{%
-\RequirePackage[a3paper,headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry}
-}{
-\RequirePackage[headsep=0.5cm,vmargin={2cm,2cm},hmargin={1.5cm,1.5cm}]{geometry}
-}
-\RequirePackage[absolute]{textpos} % absoulte positioning
-\RequirePackage{hyphenat} % when hyphenate
-\RequirePackage{lastpage} % to know the last page number
-\RequirePackage{setspace} % set space between lines
-\RequirePackage{ragged2e}
-\newcommand{\raggedFormat}{\RaggedLeft}
-\AtEndOfClass{\xepersianInit}
-\ifthenelse{\boolean{xepersian@showgrid}}{%
-\AtBeginDocument{
-\grid[show]{\xepersian@gridrows}{\xepersian@gridcolumns}}
-\advance\minraggedcols by -1
-}{%
-\AtBeginDocument{
-\grid[]{\xepersian@gridrows}{\xepersian@gridcolumns}}
-\advance\minraggedcols by -1
-}
-\ifthenelse{\boolean{xepersian@ninepoints}}{
-\renewcommand{\normalsize}{%
- \@setfontsize{\normalsize}{9pt}{10pt}%
- \setlength{\abovedisplayskip}{5pt plus 1pt minus .5pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{3pt plus 1pt minus 2pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\tiny}{\@setfontsize{\tiny}{5pt}{6pt}}
-
-\renewcommand{\scriptsize}{\@setfontsize{\scriptsize}{7pt}{8pt}}
-
-\renewcommand{\small}{%
- \@setfontsize{\small}{8pt}{9pt}%
- \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{2pt plus 1pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\footnotesize}{%
- \@setfontsize{\footnotesize}{8pt}{9pt}%
- \setlength{\abovedisplayskip}{4pt plus 1pt minus .5pt}%
- \setlength{\belowdisplayskip}{\abovedisplayskip}%
- \setlength{\abovedisplayshortskip}{2pt plus 1pt}%
- \setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
-
-\renewcommand{\large}{\@setfontsize{\large}{11pt}{13pt}}
-\renewcommand{\Large}{\@setfontsize{\Large}{14pt}{18pt}}
-\renewcommand{\LARGE}{\@setfontsize{\LARGE}{18pt}{20pt}}
-\renewcommand{\huge}{\@setfontsize{\huge}{20pt}{25pt}}
-\renewcommand{\Huge}{\@setfontsize{\Huge}{25pt}{30pt}}
-}{}
-\def\customwwwTxt#1{\gdef\@customwwwTxt{\lr{#1}}}
-\newcommand{\xepersian@wwwFormat}{\sffamily}
-\newcommand{\xepersian@www}{%
-\raisebox{-3pt}{{\xepersian@wwwFormat\@customwwwTxt}}
-}
-\newcommand{\xepersian@edition}{ویرایش من}
-\newcommand{\editionFormat}{\large\bfseries\texttt}
-\newcommand{\xepersian@editionLogo}{%
-\raisebox{-3pt}{%
-{\editionFormat\xepersian@edition}%
-}%
-}
-\newcommand{\indexFormat}{\large\bfseries}
-\newcommand{\xepersian@indexFrameTitle}[1]
-{\begin{flushright}{{\indexFormat #1}}\end{flushright}}
-
-\newcommand{\indexEntryFormat}{\normalsize}
-\newcommand{\xepersian@indexEntry}[1]{\begin{minipage}{13\TPHorizModule}%
-{\indexEntryFormat\noindent\ignorespaces{#1}}%
-\end{minipage}}
-\newcommand{\indexEntrySeparator}{\rule{\xepersian@indexwidth}{.1pt}}
-\newcommand{\indexEntryPageTxt}{صفحهٔ}
-\newcommand{\indexEntryPageFormat}{\footnotesize}
-\newcommand{\xepersian@indexEntryPage}[1]{%
-{\indexEntryPageFormat{\indexEntryPageTxt{}~#1}}%
-}
-\newcommand{\headDateTimeFormat}{}
-\newcommand{\xepersian@headDateTime}{%
-\headDateTimeFormat\date\hspace{5pt}$\parallel$\hspace{5pt}%
-\currenttime %
-}
-\newcommand{\weatherFormat}{\bfseries}
-\newcommand{\xepersian@weather}[1]{%
-\noindent{\weatherFormat #1}%
-}
-\newcommand{\weatherTempFormat}{\small}
-\newcommand{\weatherUnits}{\textdegree{}C}
-\newcommand{\xepersian@section}[0]{صفحهٔ جلو}
-\newcommand{\xepersian@headleft}{%
-{\small\bfseries \@custommagazinename}، \date
-}
-\newcommand{\xepersian@headcenter}{%
-\xepersian@section{}
-}
-\newcommand{\xepersian@headright}{%
-\small\xepersian@edition%
-\hspace*{5pt}\beginL\thepage\ / \pageref{LastPage}\endL
-}
-
-\newcommand{\heading}[3]{%
-\renewcommand{\xepersian@headleft}{\beginR#1\endR}%
-\renewcommand{\xepersian@headcenter}{\beginR#2\endR}%
-\renewcommand{\xepersian@headright}{\beginR#3\endR}%
-}
-\newcommand{\xepersian@footright}{%
-{\footnotesize\lr{\copyright\ \@customwwwTxt{}}---تهیه‌شده توسط \lr{\XePersian}}%
-}
-\newcommand{\xepersian@footcenter}{%
-}
-\newcommand{\xepersian@footleft}{%
-}
-
-\newcommand{\foot}[3]{%
-\renewcommand{\xepersian@footleft}{\beginR#1\endR}%
-\renewcommand{\xepersian@footcenter}{\beginR#2\endR}%
-\renewcommand{\xepersian@footright}{\beginR#3\endR}%
-}
-\newcommand{\firstTitleFormat}{\Huge\bfseries\flushright}
-\newcommand{\xepersian@firstTitle}[1]{%
-{%
-\begin{spacing}{2.0}{%
-\noindent\ignorespaces
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\firstTitleFormat #1}}%
-{{\firstTitleFormat #1}}%
-}%
-\end{spacing}%
-}%
-}
-\newcommand{\firstTextFormat}{}
-\newcommand{\xepersian@firstText}[1]{%
-{\noindent\ignorespaces\firstTextFormat #1}%
-}
-\newcommand{\secondTitleFormat}{\LARGE\bfseries}
-\newcommand{\xepersian@secondTitle}[1]{%
-\begin{spacing}{1.5}{%
-\noindent\ignorespaces\flushright
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\secondTitleFormat #1}}%
-{{\secondTitleFormat #1}}%
-}\end{spacing}%
-}
-\newcommand{\secondSubtitleFormat}{\large}
-\newcommand{\xepersian@secondSubtitle}[1]{%
-{\noindent\ignorespaces{\secondSubtitleFormat #1}}%
-}
-\newcommand{\secondTextFormat}{}
-\newcommand{\xepersian@secondText}[1]{%
-\begin{multicols}{2}
-{\noindent\ignorespaces\secondTextFormat #1}
-\end{multicols}
-}
-\newcommand{\thirdTitleFormat}{\Large\bfseries}
-\newcommand{\xepersian@thirdTitle}[1]{%
-\begin{spacing}{1.5}{%
-\noindent\ignorespaces\flushright
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\thirdTitleFormat #1}}%
-{{\thirdTitleFormat #1}}%
-}\end{spacing}%
-}
-\newcommand{\thirdSubtitleFormat}{\large}
-\newcommand{\xepersian@thirdSubtitle}[1]%
-{{\noindent\ignorespaces\thirdSubtitleFormat #1}}
-\newcommand{\thirdTextFormat}{}
-\newcommand{\xepersian@thirdText}[1]{{\thirdTextFormat #1}}
-\newcommand{\pictureCaptionFormat}{\small\bfseries}
-\newcommand{\xepersian@pictureCaption}[1]{%
-{\noindent\pictureCaptionFormat #1}%
-}
-\newcommand{\pagesFormat}{\bfseries\footnotesize}
-\newcommand{\xepersian@pages}[1]%
-{\noindent{\pagesFormat\MakeUppercase{#1}}}
-\newcommand{\innerTitleFormat}{\Huge}
-\newcommand{\xepersian@innerTitle}[1]{%
-\begin{flushright}{%
-\noindent
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}%
-{\nohyphens{\innerTitleFormat #1}}%
-{{\innerTitleFormat #1}}%
-}%
-\\%
-\end{flushright}%
-}
-\newcommand{\innerSubtitleFormat}{\large}
-\newcommand{\xepersian@innerSubtitle}[1]{{\innerSubtitleFormat #1}}
-\newcommand{\timestampTxt}{}
-\newcommand{\timestampSeparator}{|}
-\newcommand{\timestampFormat}{\small}
-\newcommand{\timestamp}[1]{%
-{\timestampFormat%
-#1~\timestampTxt{}%
-}~\timestampSeparator{}%
-}
-\newcommand{\innerAuthorFormat}{\footnotesize}
-\newcommand{\innerPlaceFormat}{\footnotesize\bfseries}
-\newcommand{\innerTextFinalMark}{\rule{0.65em}{0.65em}}
-\newcommand{\editorialTitleFormat}{\LARGE\textit}
-\newcommand{\xepersian@editorialTitle}[1]{\editorialTitleFormat{#1}}
-\newcommand{\editorialAuthorFormat}{\textsc}
-\newcommand{\shortarticleTitleFormat}{\LARGE\bfseries}
-\newcommand{\xepersian@shortarticleTitle}[1]{{\shortarticleTitleFormat #1}}
-\newcommand{\shortarticleSubtitleFormat}{\Large}
-\newcommand{\xepersian@shortarticleSubtitle}[1]{{\shortarticleSubtitleFormat #1}}
-\newcommand{\shortarticleItemTitleFormat}{\large\bfseries}
-\newcommand{\xepersian@shortarticleItemTitle}[1]{{\shortarticleItemTitleFormat #1}}
-\renewcommand{\maketitle}{\begin{titlepage}%
- \let\footnotesize\small
- \let\footnoterule\relax
- \let \footnote \thanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 1em%
- {\LARGE «\xepersian@edition» \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\newcommand{\xepersian@say}[1]{\typeout{#1}}
-\newsavebox{\xepersian@fmbox}
-\newenvironment{xepersian@fmpage}[1]
- {\begin{lrbox}{\xepersian@fmbox}\begin{minipage}{#1}}
- {\end{minipage}\end{lrbox}\fbox{\usebox{\xepersian@fmbox}}}
-\newcommand{\image}[2]{
-\vspace{5pt}
-\setlength{\fboxsep}{1pt}
-\addtolength{\xepersian@imgsize}{\columnwidth}
-\addtolength{\xepersian@imgsize}{-1\columnsep}
-\ifxetex
-\setlength{\xepersian@pageneed}{1.5\xepersian@imgsize}
-\addtolength{\xepersian@pageneed}{50pt}
-\ClassWarning{xepersian-magazine}{%
-Image #1 needs: \the\xepersian@pageneed \space %
-and there is left: \the\page@free\space%
-}
-\ifdim \xepersian@pageneed < \page@free
-
-{\centering\fbox{%
-\includegraphics[width = \xepersian@imgsize,
-height = \xepersian@imgsize,
-keepaspectratio ]{#1}}}
-\xepersian@pictureCaption{#2}
-
-\vspace{5pt}
-\else
-\ClassWarning{Image #1 needs more space!%
- It was not inserted!}
-\fi
-\fi
-}
-\textblockorigin{1cm}{1cm}
-\newdimen\xepersian@dx
-\newdimen\xepersian@dy
-\newcount\xepersian@cx
-\newcount\xepersian@cy
-\newcommand{\grid}[3][]{
-\xepersian@dx=\textwidth%
-\xepersian@dy=\textheight%
-\xepersian@cx=#3% %columns
-\xepersian@cy=#2% %rows
-
-\count1=#3%
-\advance\count1 by 1
-
-\count2=#2%
-\advance\count2 by 1
-
-\divide\xepersian@dx by #3
-\divide\xepersian@dy by #2
-
-\setlength{\TPHorizModule}{\xepersian@dx}
-\setlength{\TPVertModule}{\xepersian@dy}
-
-\ifthenelse{\equal{#1}{show}}{
-\multido{\xepersian@nrow=0+1}{\count2}{
-\begin{textblock}{\xepersian@cx}(0,\xepersian@nrow)
-\rule[0pt]{\textwidth}{.1pt}
-\end{textblock}
-}
-
-\multido{\xepersian@ncol=0+1}{\count1}{
-\begin{textblock}{\xepersian@cy}(\xepersian@ncol,0)
-\rule[0pt]{.1pt}{\textheight}
-\end{textblock}
-}
-}{}
-}
-\newcommand{\xepersianInit}{
-\setlength{\headheight}{14pt}
-\renewcommand{\headrulewidth}{0.4pt}
-
-\pagestyle{fancy}
-
-\setlength{\columnseprule}{\columnlines}
-\setlength{\fboxrule}{0.1 pt}
-
-}
-
-\def\customlogo#1{\gdef\@customlogo{\beginR#1\endR}}
-\def\customminilogo#1{\gdef\@customminilogo{\beginR#1\endR}}
-\def\custommagazinename#1{\gdef\@custommagazinename{\beginR#1\endR}}
-\newcommand{\logo}[0]{
-%% Heading %%
-\noindent\hrulefill\hspace{10pt}\xepersian@editionLogo\hspace{5pt}\xepersian@www
-
-\vspace*{-3pt}
-
-{\Large\bfseries \@customlogo}
-\hrulefill
-\hspace{10pt}\xepersian@headDateTime
-
-}
-\newcommand{\minilogo}[0]{
-{\large\bfseries \@customminilogo}
-
-\vspace*{5pt}
-}
-\newcommand{\mylogo}[1]{
-{\beginR#1\endR}
-
-\noindent
-\xepersian@editionLogo\hspace{5pt}
-\hrulefill
-\hspace{5pt}\xepersian@headDateTime
-}
-\newcommand{\edition}[1]{\renewcommand{\xepersian@edition}{#1}}
-\newenvironment{frontpage}[0]
-{
-\setboolean{xepersian@insidefrontpage}{true}
-\thispagestyle{empty}
-%\pdfbookmark[1]{صفحهٔ اول}{\thepage}
-\logo
-
-}%
-{
-\thispagestyle{empty}
-\clearpage
-\newpage
-\fancyhead{}
- \fancyfoot{}
-\fancyhead[RO,LE]{\beginR\xepersian@headright\endR}
-\fancyhead[LO,RE]{\beginR\xepersian@headleft\endR}
- \fancyhead[C]{\beginR\xepersian@headcenter\endR}
- \fancyfoot[RO,LE]{\beginR\xepersian@footright\endR}
- \fancyfoot[LO,RE]{\beginR\xepersian@footleft\endR}
-\fancyfoot[C]{\beginR\xepersian@footcenter\endR}
-\renewcommand{\headrulewidth}{0.4pt}
-\setboolean{xepersian@insidefrontpage}{false}
-
-}
-\newcommand{\firstarticle}[3]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\ifthenelse{\boolean{xepersian@hyphenatedtitles}}{%
-\begin{textblock}{24}(22,5)
-}
-{
-\begin{textblock}{28}(22,5)
-}
-\vspace{-7pt}
-\xepersian@firstTitle{#1}
-\end{textblock}
-\begin{textblock}{29}(22,10)
-\vspace{5pt plus 2pt minus 2pt}
-
-\xepersian@firstText{\timestamp{#3}~#2}
-
-\end{textblock}
-
-\begin{textblock}{50}(0,15)
-\rule{50\TPHorizModule}{.3pt}
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\firstarticle\space in a wrong place.\MessageBreak
-\protect\firstarticle\space may only appear inside frontpage environment.
-}{%
-\protect\firstarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\secondarticle}[5]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{33}(2,16)
-\xepersian@pages{#4}
-\vspace{-5pt}
-\xepersian@secondTitle{#1}
-
-\vspace*{5pt}
-
-\xepersian@secondSubtitle{#2}
-
-\vspace*{-7pt}
-
-\xepersian@secondText{\timestamp{#5}~#3}
-
-\end{textblock}
-
-\begin{textblock}{33}(2,25)
-\vspace{5pt plus 2pt minus 2pt}
-
-\noindent\ignorespaces\rule{33\TPHorizModule}{.3pt}
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\secondarticle\space in a wrong place.\MessageBreak
-\protect\secondarticle\space may only appear inside frontpage environment.
-}{%
-\protect\secondarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\thirdarticle}[6]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{32}(2,26)
-\xepersian@pages{#5}
-\vspace{-5pt}
-\setlength{\fboxsep}{1pt}
-\xepersian@thirdTitle{#1}
-
-\vspace*{5pt}
-
-\xepersian@thirdSubtitle{#2}
-
-\vspace*{5pt}
-
-{\noindent\ignorespaces %
-\ifthenelse{\equal{#4}{}}{}
-
-\xepersian@thirdText{\timestamp{#6}~#3}
-
-}
-
-\vspace*{5pt}
-
-\end{textblock}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\thirdarticle\space in a wrong place.\MessageBreak
-\protect\thirdarticle\space may only appear inside frontpage environment.
-}{%
-\protect\thirdarticle\space may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\firstimage}[2]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{18}(2,5)
-\setlength{\fboxsep}{1pt}
-\ifxetex % only in PDF
-\noindent\fbox{\includegraphics[width = 18\TPHorizModule ]{#1}}
-\fi
-
-\xepersian@pictureCaption{#2}
-\end{textblock}%
-}
-{\ClassError{xepersian-magazine}{%
-\protect\firstimage\space in a wrong place.\MessageBreak
-\protect\firstimage\space may only appear inside frontpage environment.
-}{%
-\protect\firstimage\space may only appear inside frontpage environment.
-}}
-}%
-\newcommand{\weatheritem}[5]{%
-\ifthenelse{\boolean{xepersian@insideweather}}{
-\begin{minipage}{45pt}
-\ifxetex
-\includegraphics[width=40pt]{#1}
-\fi
-\end{minipage}
-\begin{minipage}{50pt}
-\weatherTempFormat
-#2\\
-\beginL#3 $\|$ #4 \lr{\weatherUnits{}}\endL\\
-#5
-\end{minipage}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\weatheritem\space in a wrong place.\MessageBreak
-\protect\weatheritem\space may only appear inside weatherblock environment.
-}{%
-\protect\weatheritem\space may only appear inside weatherblock environment.\MessageBreak
-weatherblock environment may only appear inside frontpage environment.
-}%
-}
-}
-\newenvironment{weatherblock}[1]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\setboolean{xepersian@insideweather}{true}
-\begin{textblock}{32}(2,38)
-\vspace*{-15pt}
-
-\xepersian@weather{\beginR#1\endR}
-
-\vspace*{5pt}
-
-\noindent\begin{xepersian@fmpage}{32\TPHorizModule}
-\begin{minipage}{32\TPHorizModule}
-\hspace{5pt}
-
-}{%
-\ClassError{xepersian-magazine}{%
-weatherblock in a wrong place.\MessageBreak
-weatherblock may only appear inside frontpage environment.
-}{%
-weatherblock may only appear inside frontpage environment.
-}
-}
-}%
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-\setboolean{xepersian@insideweather}{false}
-}
-\newenvironment{authorblock}[0]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\begin{textblock}{15}(36,35)
-\setlength{\fboxsep}{5pt}
-\begin{xepersian@fmpage}{13\TPHorizModule}
-\begin{minipage}{13\TPHorizModule}
-\centering
-\minilogo
-
-}{%else
-\ClassError{xepersian-magazine}{%
-authorblock in a wrong place.\MessageBreak
-authorblock may only appear inside frontpage environment.
-}{%
-authorblock may only appear inside frontpage environment.
-}
-}
-}
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-}
-\newenvironment{indexblock}[1]
-{
-\ifthenelse{\boolean{xepersian@insidefrontpage}}{%
-\setboolean{xepersian@insideindex}{true}%let's in
-\begin{textblock}{15}(36,16)
-\setlength{\xepersian@indexwidth}{13\TPHorizModule}
-\xepersian@indexFrameTitle{#1}
-
-\setlength{\fboxsep}{5pt} %espacio entre el frame y la imagen
-\begin{xepersian@fmpage}{\xepersian@indexwidth}
-\begin{minipage}{\xepersian@indexwidth}
-\vspace*{10pt}
-}{%else
-\ClassError{xepersian-magazine}{%
-indexblock in a wrong place.\MessageBreak
-indexblock may only appear inside frontpage environment.
-}{%
-indexblock may only appear inside frontpage environment.
-}
-}
-}%
-{
-\end{minipage}
-\end{xepersian@fmpage}
-\end{textblock}
-\setboolean{xepersian@insideindex}{false}%let's out
-}
-\newcommand{\indexitem}[2]
-{
-\ifthenelse{\boolean{xepersian@insideindex}}{
-\xepersian@indexEntry{#1، \xepersian@indexEntryPage{\pageref{#2}}}
-
-\vspace{0.5cm}
-
-\noindent\ignorespaces\indexEntrySeparator{}
-}{%else
-\ClassError{xepersian-magazine}{%
-\protect\indexitem\space in a wrong place.\MessageBreak
-\protect\indexitem\space may only appear inside indexblock environment.
-}{%
-\protect\indexitem\space may only appear inside indexblock environment.\MessageBreak
-indexblock environment may only appear inside frontpage environment.
-}%
-}
-}
-\newcommand{\xepersian@inexpandedtitle}[1]{
-\begin{minipage}{.95\textwidth}
-\begin{center}
-\noindent\Large\textbf{\beginR#1\endR}
-\end{center}
-\end{minipage}
-}
-\newcommand{\expandedtitle}[2]{
-\end{multicols}
-
-\begin{center}
-\setlength{\fboxsep}{5pt}
-\setlength{\shadowsize}{2pt}
-\ifthenelse{\equal{#1}{shadowbox}}{%
-\shadowbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{doublebox}}{%
-\doublebox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{ovalbox}}{%
-\ovalbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{Ovalbox}}{%
-\Ovalbox{%
-\xepersian@inexpandedtitle{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{lines}}{
-\hrule
-\vspace*{8pt}
-\begin{center}
-\noindent\Large\textbf{#2}
-\end{center}
-\vspace*{8pt}
-\hrule
-}{}
-\end{center}
-
-\begin{multicols}{\xepersian@ncolumns{}}
-\ifnum \xepersian@ncolumns > \minraggedcols
-\raggedFormat
-\fi
-}
-\newcommand{\xepersian@incolumntitle}[2]{
-\begin{minipage}{#1}
-\begin{center}
-\noindent\normalsize\textbf{#2}
-\end{center}
-\end{minipage}
-}
-
-\newcommand{\columntitle}[2]{
-\vspace*{5pt}
-\begin{center}
-\setlength{\fboxsep}{5pt}
-\setlength{\shadowsize}{2pt}
-\addtolength{\xepersian@coltitsize}{\columnwidth}
-\addtolength{\xepersian@coltitsize}{-1\columnsep}
-\addtolength{\xepersian@coltitsize}{-5pt}
-\addtolength{\xepersian@coltitsize}{-1\shadowsize}
-\ifthenelse{\equal{#1}{shadowbox}}{%
-\shadowbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{doublebox}}{%
-\doublebox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{ovalbox}}{%
-\ovalbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{Ovalbox}}{%
-\Ovalbox{%
-\xepersian@incolumntitle{\xepersian@coltitsize}{#2}%
-}%
-}{}
-\ifthenelse{\equal{#1}{lines}}{
-\hrule
-\vspace*{5pt}
-\begin{center}
-\noindent\normalsize\textbf{#2}
-\end{center}
-\vspace*{5pt}
-\hrule
-}{}
-\end{center}
-}
-\renewcommand{\date}{%
-\longdate{\today}%
-}
-\newcommand{\authorandplace}[2]{%
-\rightline{%
-{\innerAuthorFormat #1},\space{}{\innerPlaceFormat #2}%
-}%
-\par %
-}
-\newcommand{\newsection}[1]{
-%\pdfbookmark[0]{#1}{\thepage} %bookmark para el pdf
-\renewcommand{\xepersian@section}{#1}
-}
-\newenvironment{article}[5]
-{
-\xepersian@say{Adding a new piece of article}
-\renewcommand{\xepersian@ncolumns}{#1}
-\begin{multicols}{#1}[
-\xepersian@pages{#4}
-\xepersian@innerTitle{#2}%
-\xepersian@innerSubtitle{#3}%
-][4cm]%
-\label{#5}
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{~\innerTextFinalMark{}
-\end{multicols}
-}
-\newcommand{\articlesep}{%
-\setlength{\xepersian@pageneed}{16000pt}
-\setlength\xepersian@pageleft{\pagegoal}
-\addtolength\xepersian@pageleft{-\pagetotal}
-
-\xepersian@say{How much left \the\xepersian@pageleft}
-
-\ifdim \xepersian@pageneed < \xepersian@pageleft
-\xepersian@say{Not enough space}
-\else
-\xepersian@say{Adding sep line between articles}
-\vspace*{10pt plus 10pt minus 5pt}
-\hrule
-\vspace*{10pt plus 5pt minus 5pt}
-\fi
-
-}
-\newcommand{\xepersian@editorialTit}[2]{
-\setlength{\arrayrulewidth}{.1pt}
-\begin{center}
-\begin{tabular}{c}
-\noindent
-\xepersian@editorialTitle{#1}
-\vspace{2pt plus 1pt minus 1pt}
-\\
-\hline
-\vspace{2pt plus 1pt minus 1pt}
-\\
-\editorialAuthorFormat{#2}
-\end{tabular}
-\end{center}
-}
-\newenvironment{editorial}[4]
-{
-\xepersian@say{Adding a new editorial}
-\begin{multicols}{#1}[%
-\xepersian@editorialTit{#2}{#3}%
-][4cm]
-\label{#4}
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{
-\end{multicols}
-}
-\newcommand{\xepersian@shortarticleTit}[2]{
-\begin{center}
-\vbox{%
-\noindent
-\xepersian@shortarticleTitle{#1}
-\vspace{4pt plus 2pt minus 2pt}
-\hrule
-\vspace{4pt plus 2pt minus 2pt}
-\xepersian@shortarticleSubtitle{#2}
-}
-\end{center}
-}
-\newenvironment{shortarticle}[4]
-{
-\xepersian@say{Adding a short article block}
-\begin{multicols}{#1}[\xepersian@shortarticleTit{#2}{#3}][4cm] %
- \label{#4}
-\par %
-\ifnum #1 > \minraggedcols
-\raggedFormat
-\fi
-}
-{
-\end{multicols}
-}
-\newcommand{\shortarticleitem}[2]{
-\goodbreak
-\vspace{5pt plus 3pt minus 3pt}
-{\vbox{\noindent\xepersian@shortarticleItemTitle{#1}}}
-\vspace{5pt plus 3pt minus 3pt}
-{\noindent #2}\\
-}
-% \end{macrocode}
-% \iffalse
-%</xepersian-magazine.cls>
-%<*xepersian-mathsdigitspec.sty>
-% \fi
-% \part{xepersian-mathsdigitspec.sty}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-mathsdigitspec}
- [2009/04/22 v1.0.1 Unicode Persian maths digits in XeLaTeX (Author: Vafa Khalighi)]
-\@zf@mathfalse
-\def\@preamblecmds{}
-\newcommand\not@onlypreamble[1]{{%
- \def\do##1{\ifx#1##1\else\noexpand\do\noexpand##1\fi}%
- \xdef\@preamblecmds{\@preamblecmds}}}
-\def\gm@notprerr{ can be used only in preamble (\on@line)}
-\AtBeginDocument{%
- \def\do#1{\noexpand\do\noexpand#1}%
- \edef\@preamblecmds{%
- \def\noexpand\do##1{%
- \def##1{\noexpand\PackageError{gmutils/LaTeX}%
- {\noexpand\string##1 \noexpand\gm@notprerr}\noexpand\@eha}}%
- \@preamblecmds}}
-\def\nocite#1{%
- \@bsphack{\setbox0=\hbox{\cite{#1}}}\@esphack}
-\newcommand\xepersian@PackageInfo[1]{\PackageInfo{xepersian-mathsdigitspec}{#1}}
-\newcommand\SetMathCode[4]{%
- \XeTeXmathcode#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
-\newcommand\SetMathCharDef[4]{%
- \XeTeXmathchardef#1="\mathchar@type#2 \csname sym#3\endcsname #4\relax}
-\newcommand\setdigitfont[2][]{%
- \let\glb@currsize\relax
- \setkeys*[xepersian-mathsdigitspec]{options}{#1}%
- \edef\@tempa{\noexpand\zf@fontspec{%
- \XKV@rm}{#2}}\@tempa
- \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'}
- \DeclareSymbolFont{OPERATORS} {EU1}{\zf@family} {m}{n}
- \SetSymbolFont{OPERATORS}{bold}{EU1}{\zf@family} {bx}{n}
- \DeclareMathAlphabet {\mathit}{EU1}{\zf@family}{m}{it}
- \DeclareSymbolFontAlphabet{\mathrm} {OPERATORS}
- \DeclareMathAlphabet {\mathbf}{EU1}{\zf@family}{bx}{n}
- \SetMathCode{`0}{\mathalpha}{OPERATORS}{"06F0}
- \SetMathCode{`1}{\mathalpha}{OPERATORS}{"06F1}
- \SetMathCode{`2}{\mathalpha}{OPERATORS}{"06F2}
- \SetMathCode{`3}{\mathalpha}{OPERATORS}{"06F3}
- \SetMathCode{`4}{\mathalpha}{OPERATORS}{"06F4}
- \SetMathCode{`5}{\mathalpha}{OPERATORS}{"06F5}
- \SetMathCode{`6}{\mathalpha}{OPERATORS}{"06F6}
- \SetMathCode{`7}{\mathalpha}{OPERATORS}{"06F7}
- \SetMathCode{`8}{\mathalpha}{OPERATORS}{"06F8}
- \SetMathCode{`9}{\mathalpha}{OPERATORS}{"06F9}
- \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}
-}
-\ifx\newcommand\undefined\else
- \newcommand{\ZifferAn}{}
-\fi
-\mathchardef\ziffer@DotOri="013A
-{\ZifferAn
- \catcode`\.=\active\gdef.{\begingroup\obeyspaces\futurelet\n\ziffer@dcheck}}
-\def\ziffer@dcheck{\ziffer@check\ZifferLeer\ziffer@DotOri}
-\def\ziffer@check#1#2{%
- \ifx\n1\endgroup#1\else
- \ifx\n2\endgroup#1\else
- \ifx\n3\endgroup#1\else
- \ifx\n4\endgroup#1\else
- \ifx\n5\endgroup#1\else
- \ifx\n6\endgroup#1\else
- \ifx\n7\endgroup#1\else
- \ifx\n8\endgroup#1\else
- \ifx\n9\endgroup#1\else
- \ifx\n0\endgroup#1\else
- \endgroup#2%
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi}
-\mathcode`.="8000\relax
-\def\ZifferLeer{\ifx\decimalseparator\undefied .\else \decimalseparator\fi}
-% \end{macrocode}
-% \iffalse
-%</xepersian-mathsdigitspec.sty>
-%<*xepersian-multiplechoice.sty>
-% \fi
-% \part{xepersian-multiplechoice.sty}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-multiplechoice}[2009/03/21 v0.1
- Multiple Choice Questionnaire class for Persian in XeLaTeX (Author: Vafa Khalighi)]
-\RequirePackage{pifont}
-\RequirePackage{fullpage}
-\RequirePackage{ifthen}
-\RequirePackage{calc}
-\RequirePackage{verbatim}
-\RequirePackage{fmultico}
-\def\@headerfont{\bfseries}
-\newcommand\headerfont[1]{\gdef\@headerfont{#1}}
-\def\@X{X}
-\newcommand\X[1]{\gdef\@X{#1}}
-\def\pbs#1{\let\tmp=\\#1\let\\=\tmp}
-\newcommand\makeform@nocorrection{%
- \addtocontents{frm}{\protect\end{tabular}}
- \@starttoc{frm}}
-\newcommand\makeform@correction{%
- \addtocontents{frm}{\protect\end{tabular}}}
-\newcommand\makemask@nocorrection{%
- \addtocontents{msk}{\protect\end{tabular}}
- \@starttoc{msk}}
-\newcommand\makemask@correction{%
- \addtocontents{msk}{\protect\end{tabular}}}
-\newlength\questionspace
-\setlength\questionspace{0pt}
-\newcommand\answerstitle[1]{\gdef\@answerstitle{#1}}
-\def\@answerstitlefont{\bfseries}
-\newcommand\answerstitlefont[1]{\gdef\@answerstitlefont{#1}}
-\def\@answernumberfont{\bfseries}
-\newcommand\answernumberfont[1]{\gdef\@answernumberfont{#1}}
-\newcounter{question}\stepcounter{question}
-\newcounter{@choice}
-\def\@initorcheck{%
- \xdef\@choices{\the@choice}%
- \setcounter{@choice}{1}%
- \gdef\@arraydesc{|l||}%
- \gdef\@headerline{}%
- \whiledo{\not{\value{@choice}>\@choices}}{
- \xdef\@arraydesc{\@arraydesc c|}
- \def\@appendheader{\g@addto@macro\@headerline}
- \@appendheader{&\protect\@headerfont}
- \edef\@the@choice{{\alph{@choice}}}
- \expandafter\@appendheader\@the@choice
- \stepcounter{@choice}}%
- \addtocontents{frm}{%
- \protect\begin{tabular}{\@arraydesc}
- \protect\hline
- \@headerline\protect\\\protect\hline\protect\hline}%
- \addtocontents{msk}{%
- \protect\begin{tabular}{\@arraydesc}
- \protect\hline
- \@headerline\protect\\\protect\hline\protect\hline}%
- \gdef\@initorcheck{%
- \ifthenelse{\value{@choice} = \@choices}{}{%
- \ClassError{xepersian-multiplechoice}{Question \thequestion: wrong number of choices
- (\the@choice\space instead of \@choices)}{%
- Questions must all have the same number of proposed answers.%
- \MessageBreak
- Type X <return> to quit, fix your MCQ (multiple choice question) and rerun XeLaTeX.}}}}
-\newenvironment{question}[1]{%
- %% \begin{question}
- \begin{minipage}{\textwidth}
- \xdef\@formanswerline{\@questionheader}%
- \xdef\@maskanswerline{\@questionheader}%
- \fbox{\parbox[c]{\linewidth}{#1}}
- \vspace\questionspace\par
- {\@answerstitlefont\@answerstitle}
-\begin{multicols}{4}
- \begin{list}{\@answernumberfont\alph{@choice})~}{\usecounter{@choice}}}{%
- %% \end{question}
- \end{list}
-\end{multicols}
- \@initorcheck%
- \addtocontents{frm}{\@formanswerline\protect\\\protect\hline}%
- \addtocontents{msk}{\@maskanswerline\protect\\\protect\hline}%
- \end{minipage}
- \stepcounter{question}}
-\def\@truesymbol{\ding{52}~}
-\def\@falsesymbol{\ding{56}~}
-\newcommand\truesymbol[1]{\gdef\@truesymbol{#1}}
-\newcommand\falsesymbol[1]{\gdef\@falsesymbol{#1}}
-\def\@true@nocorrection{\item}
-\def\@false@nocorrection{\item}
-\def\@true@correction{\item[\@truesymbol\refstepcounter{@choice}]}
-\def\@false@correction{\item[\@falsesymbol\refstepcounter{@choice}]}
-\newcommand\true{%
- \xdef\@formanswerline{\@formanswerline&}%
- \xdef\@maskanswerline{\@maskanswerline&\@X}%
- \@true}%
-\newcommand\false{%
- \xdef\@formanswerline{\@formanswerline&}%
- \xdef\@maskanswerline{\@maskanswerline&}%
- \@false}%
-\def\@correctionstyle{\itshape}
-\newcommand\correctionstyle[1]{\gdef\@correctionstyle{#1}}
-\newenvironment{@correction}{\@correctionstyle}{}
- \def\@questionheader{سؤال \thequestion}
- \answerstitle{جوابهای ممکن:}
-\DeclareOption{nocorrection}{%
- \let\@true\@true@nocorrection
- \let\@false\@false@nocorrection
- \let\correction\comment
- \let\endcorrection\endcomment
- \def\makeform{\makeform@nocorrection}
- \def\makemask{\makemask@nocorrection}}
-\DeclareOption{correction}{%
- \let\@true\@true@correction
- \let\@false\@false@correction
- \let\correction\@correction
- \let\endcorrection\end@correction
- \def\makeform{\makeform@correction}
- \def\makemask{\makemask@correction}}
-\ExecuteOptions{nocorrection}
-\newcommand\questiontitle[1]{\gdef\@questiontitle{#1}}
-\def\@questiontitlefont{\bfseries}
-\newcommand\questiontitlefont[1]{\gdef\@questiontitlefont{#1}}
-\newlength\questiontitlespace
-\setlength\questiontitlespace{5pt}
-\newlength\questionsepspace
-\setlength\questionsepspace{20pt}
-\gdef\@questionsepspace{0pt}
-\let\old@question\question
-\let\old@endquestion\endquestion
-\renewenvironment{question}[1]{%
- %% \begin{question}
- \vspace\@questionsepspace
- \fbox{\parbox[c]{0.25\linewidth}{\@questiontitlefont\@questiontitle}}
- \nopagebreak\vspace\questiontitlespace\par
- \old@question{#1}}{%
- %% \end{question}
- \old@endquestion
- \gdef\@questionsepspace{\questionsepspace}}
- \questiontitle{سؤال \thequestion:}
-\ProcessOptions
-% \end{macrocode}
-% \iffalse
-%</xepersian-multiplechoice.sty>
-%<*xepersian-persiancal.sty>
-% \fi
-% \part{xepersian-persiancal.sty}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-persiancal}
-
-\newif\ifXePersian@leap \newif\ifXePersian@kabiseh
-\newcount\XePersian@i \newcount\XePersian@y \newcount\XePersian@m \newcount\XePersian@d
-\newcount\XePersian@latini \newcount\XePersian@persiani
-\newcount\XePersian@latinii \newcount\XePersian@persianii
-\newcount\XePersian@latiniii \newcount\XePersian@persianiii
-\newcount\XePersian@latiniv \newcount\XePersian@persianiv
-\newcount\XePersian@latinv \newcount\XePersian@persianv
-\newcount\XePersian@latinvi \newcount\XePersian@persianvi
-\newcount\XePersian@latinvii \newcount\XePersian@persianvii
-\newcount\XePersian@latinviii \newcount\XePersian@persianviii
-\newcount\XePersian@latinix \newcount\XePersian@persianix
-\newcount\XePersian@latinx \newcount\XePersian@persianx
-\newcount\XePersian@latinxi \newcount\XePersian@persianxi
-\newcount\XePersian@latinxii \newcount\XePersian@persianxii
- \newcount\XePersian@persianxiii
-
-\newcount\XePersian@temp
-\newcount\XePersian@temptwo
-\newcount\XePersian@tempthree
-\newcount\XePersian@yModHundred
-\newcount\XePersian@thirtytwo
-\newcount\XePersian@dn
-\newcount\XePersian@sn
-\newcount\XePersian@mminusone
-
-\def\persiantoday{%
-\XePersian@y=\year \XePersian@m=\month \XePersian@d=\day
-%
-\XePersian@temp=\XePersian@y
-\divide\XePersian@temp by 100\relax
-\multiply\XePersian@temp by 100\relax
-\XePersian@yModHundred=\XePersian@y
-\advance\XePersian@yModHundred by -\XePersian@temp\relax
-%
-\ifodd\XePersian@yModHundred
- \XePersian@leapfalse
-\else
- \XePersian@temp=\XePersian@yModHundred
- \divide\XePersian@temp by 2\relax
- \ifodd\XePersian@temp\XePersian@leapfalse
- \else
- \ifnum\XePersian@yModHundred=0%
- \XePersian@temp=\XePersian@y
- \divide\XePersian@temp by 400\relax
- \multiply\XePersian@temp by 400\relax
- \ifnum\XePersian@y=\XePersian@temp\XePersian@leaptrue\else\XePersian@leapfalse\fi
- \else\XePersian@leaptrue
- \fi
- \fi
-\fi
-%
-\XePersian@latini=31\relax
-\ifXePersian@leap
- \XePersian@latinii = 29\relax
-\else
- \XePersian@latinii = 28\relax
-\fi
-\XePersian@latiniii = 31\relax
-\XePersian@latiniv = 30\relax
-\XePersian@latinv = 31\relax
-\XePersian@latinvi = 30\relax
-\XePersian@latinvii = 31\relax
-\XePersian@latinviii = 31\relax
-\XePersian@latinix = 30\relax
-\XePersian@latinx = 31\relax
-\XePersian@latinxi = 30\relax
-\XePersian@latinxii = 31\relax
-%
-\XePersian@thirtytwo=32\relax
-%
-\XePersian@temp=\XePersian@y
-\advance\XePersian@temp by -17\relax
-\XePersian@temptwo=\XePersian@temp
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 33\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\ifnum\XePersian@temp=\XePersian@thirtytwo\XePersian@kabisehfalse
-\else
- \XePersian@temptwo=\XePersian@temp
- \divide\XePersian@temptwo by 4\relax
- \multiply\XePersian@temptwo by 4\relax
- \advance\XePersian@temp by -\XePersian@temptwo
- \ifnum\XePersian@temp=\z@\XePersian@kabisehtrue\else\XePersian@kabisehfalse\fi
-\fi
-%
-% In fact persiani is equal to the Leap years from a fixed year to the last
-% year minus the Kabise years from a fixed year to the last year plus a const.
-%
-\XePersian@tempthree=\XePersian@y % Number of Leap years
-\advance\XePersian@tempthree by -1
-\XePersian@temp=\XePersian@tempthree % T := (MY-1) div 4
-\divide\XePersian@temp by 4\relax
-\XePersian@temptwo=\XePersian@tempthree % T := T - ((MY-1) div 100)
-\divide\XePersian@temptwo by 100\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\XePersian@temptwo=\XePersian@tempthree % T := T + ((MY-1) div 400)
-\divide\XePersian@temptwo by 400\relax
-\advance\XePersian@temp by \XePersian@temptwo
-\advance\XePersian@tempthree by -611 % Number of Kabise years
-\XePersian@temptwo=\XePersian@tempthree % T := T - ((SY+10) div 33) * 8
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 8\relax
-\advance\XePersian@temp by -\XePersian@temptwo
-\XePersian@temptwo=\XePersian@tempthree %
-\divide\XePersian@temptwo by 33\relax
-\multiply\XePersian@temptwo by 33\relax
-\advance\XePersian@tempthree by -\XePersian@temptwo
-\ifnum\XePersian@tempthree=32\advance\XePersian@temp by 1\fi % if (SY+10) mod 33=32 then Inc(T);
-\divide\XePersian@tempthree by 4\relax % T := T - ((SY+10) mod 33) div 4
-\advance\XePersian@temp by -\XePersian@tempthree
-\advance\XePersian@temp by -137 % T := T - 137 Adjust the value
-\XePersian@persiani=31
-\advance\XePersian@persiani by -\XePersian@temp % now 31 - T is the persiani
-%
-\XePersian@persianii = 30\relax
-\ifXePersian@kabiseh
- \XePersian@persianiii = 30\relax
-\else
- \XePersian@persianiii = 29\relax
-\fi
-\XePersian@persianiv = 31\relax
-\XePersian@persianv = 31\relax
-\XePersian@persianvi = 31\relax
-\XePersian@persianvii = 31\relax
-\XePersian@persianviii= 31\relax
-\XePersian@persianix = 31\relax
-\XePersian@persianx = 30\relax
-\XePersian@persianxi = 30\relax
-\XePersian@persianxii = 30\relax
-\XePersian@persianxiii= 30\relax
-%
-\XePersian@dn= 0\relax
-\XePersian@sn= 0\relax
-\XePersian@mminusone=\XePersian@m
-\advance\XePersian@mminusone by -1\relax
-%
-\XePersian@i=0\relax
-\ifnum\XePersian@i < \XePersian@mminusone
-\loop
-\advance \XePersian@i by 1\relax
-\advance\XePersian@dn by \csname XePersian@latin\romannumeral\the\XePersian@i\endcsname
-\ifnum\XePersian@i<\XePersian@mminusone \repeat
-\fi
-\advance \XePersian@dn by \XePersian@d
-%
-\XePersian@i=1\relax
-\XePersian@sn = \XePersian@persiani
-\ifnum \XePersian@sn<\XePersian@dn
-\loop
-\advance \XePersian@i by 1\relax
-\advance\XePersian@sn by \csname XePersian@persian\romannumeral\the\XePersian@i\endcsname
-\ifnum \XePersian@sn<\XePersian@dn \repeat
-\fi
-\ifnum \XePersian@i < 4
- \XePersian@m = 9 \advance\XePersian@m by \XePersian@i
- \advance \XePersian@y by -622\relax
-\else
- \XePersian@m = \XePersian@i \advance \XePersian@m by -3\relax
- \advance \XePersian@y by -621\relax
-\fi
-\advance\XePersian@sn by -\csname XePersian@persian\romannumeral\the\XePersian@i%
-\endcsname
-\ifnum\XePersian@i = 1
- \XePersian@d = \XePersian@dn \advance \XePersian@d by 30 \advance\XePersian@d by -\XePersian@persiani
-\else
- \XePersian@d = \XePersian@dn \advance \XePersian@d by -\XePersian@sn
-\fi
-\beginL\number\XePersian@d\endL\space%
-\persianmonth{\XePersian@m}\space\beginL\number\XePersian@y\endL%
-}
-\def\persianmonth#1{\ifcase#1\or فروردین\or
-اردیبهشت\or
-خرداد\or تیر\or
-مرداد\or
-شهریور\or مهر\or
-آبان\or آذر\or
-دی\or بهمن\or
-اسفند\fi}
-% \end{macrocode}
-% \iffalse
-%</xepersian-persiancal.sty>
-%<*xepersian-thesis.cls>
-% \fi
-% \part{xepersian-thesis.cls}
-% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-thesis}
- [2009/01/05 v0.1
- Persian thesis document class in XeLaTeX]
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
-\ProcessOptions
-\LoadClass{report}
-\def\university#1{\gdef\@university{#1}}
-\def\department#1{\gdef\@department{#1}}
-\def\degree#1{\gdef\@degree{#1}}
-\def\thesisdate#1{\gdef\@thesisdate{#1}}
-\def\supervisor#1{\gdef\@supervisor{#1}}
-\def\city#1{\gdef\@city{#1}}
-
-\def\latintitle#1{\gdef\@latintitle{#1}}
-\def\latinauthor#1{\gdef\@latinauthor{#1}}
-\def\latindegree#1{\gdef\@latindegree{#1}}
-\def\latindepartment#1{\gdef\@latindepartment{#1}}
-\def\latinthesisdate#1{\gdef\@latinthesisdate{#1}}
-\def\latinsupervisor#1{\gdef\@latinsupervisor{#1}}
-\def\latincity#1{\gdef\@latincity{#1}}
-\def\latinuniversity#1{\gdef\@latinuniversity{#1}}
-
-\def\maketitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-{\Huge\bfseries \@title}\par
-\vskip 1cm
-{\large%
- \by}\par
-{\Large\bfseries \@author}\par
-\vskip 5mm
-{\large\bfseries\writtenfor
-\par
-\@degree}
-\par
-\vskip 1cm
-{\large
- \undersupervision\par
-\Large\bfseries \@supervisor}
-\par
-\vskip 1cm
-{\large \@thesisdate}
-\par
-\vskip 1cm
-{\large\bfseries\departmentof\space\@department}
-\par
-{\large\bfseries\universityof\space\@university \par\@city}
-\vfill
-\end{titlepage}%
-}
-
-\def\abstractpage{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\large{\bfseries \@title} \\}
-\end{center}
-\par
-\begin{abstract}}
-\def\endabstractpage{\end{abstract}
-\newpage
-}
-
-\def\latinabstract{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\Large\bfseries \@latintitle \\[5mm]}
-{\bfseries Abstract}
-\end{center}
-\vspace{5mm}}
-
-\def\endlatinabstract{\newpage}
-
-\def\acknowledgementpage{\newpage
-\thispagestyle{empty}
-\centerline{\Large \bfseries\acknowledgementname}
-\vspace{1cm}
-\par\noindent}
-\def\endacknowledgementpage{\newpage}
-
-\def\titlepage{\newpage\centering
- \thispagestyle{empty}
- \parindent 0pt \parskip 10pt plus 1fil minus 1fil
- \def\baselinestretch{1}\@normalsize\vbox to \vsize\bgroup\vbox to 9in\bgroup}
-\def\endtitlepage{\par\kern 0pt\egroup\vss\egroup\newpage}
-
-\def\signature#1#2{\par\noindent#1\dotfill\null\\*
- {\raggedright #2\par}}
-
-\def\abstract{\subsection*{\abstractname}\small
-\@normalsize}
-\def\endabstract{\par}
-
-\pagenumbering{harfi}
-\let\ol@chapter\@chapter
-\def\@chapter{%
- \ifnum\c@chapter=0 \pagenumbering{arabic}\setcounter{page}{1}\fi
- \ol@chapter}
-
-
-
-\def\keywords#1{\par \vspace{5mm}
-{\textbf{واژه‌های کلیدی:}} {\textit{ #1}}}
-
-\def\latinkeywords#1{\par \vspace{5mm}
-\noindent {\textbf{Keywords:}} {\textit{ #1}}}
-
-\font\titlefont=cmssbx10 scaled 2074
-\font\supervisorfont=cmbxti10
-\def\makelatintitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-\addtolength{\baselineskip}{5mm}
-{\titlefont \@latintitle} \par
-\addtolength{\baselineskip}{-5mm}
-\vskip 1cm
-{\bfseries\latinby}\par
-{\Large\bfseries \@latinauthor}\par
-\vskip 5mm
-{\latinwrittenfor\par
-\large\@latindegree}
-\par
-\vskip 1cm
-Under supervision of \\
-{\supervisorfont\@latinsupervisor}
-\par
-\vskip 1cm
-{\@latinthesisdate}
-\par
-\vskip 1cm
-\large\bfseries
-\@latindepartment\space Department
-\par
-\@latinuniversity \par\@latincity
-\vfill
-\end{titlepage}%
-}
-
-
-\def\acknowledgementname{قدردانی}
-\def\by{توسط}
-\def\writtenfor{ رسالهٔ ارائه شده به عنوان بخشی از ملزومات برای دریافت درجهٔ}
-\def\undersupervision{زیر نظر}
-\def\departmentof{دانشکدهٔ}
-\def\universityof{دانشگاه}
-\def\latinby{by}
-\def\latinwrittenfor{Submitted in Partial Fulfillment\\ of the Requirements\\ for the Degree of}
-\def\latinundersupervision{Under supervision of}
-% \end{macrocode}
-% \iffalse
-%</xepersian-thesis.cls>
-%<*xepersian-thesis-xepersian.def>
-% \fi
-% \part{xepersian-thesis-xepersian.def}
-% \begin{macrocode}
-\renewcommand \thepart {\@tartibi\c@part}
-%to make appendix numbering persian
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-% \end{macrocode}
-% \iffalse
-%</xepersian-thesis-xepersian.def>
-%<*acm-fa.bst>
-% \fi
-% \part{acm-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "acm-fa", Persian (farsi) version of acm.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%% NOTE: Its output for English references may has a bit difference with acm.bst, for pure English texts please use acm.bst
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright of acm.bst
-% ACM Transactions bibliography style (24-Jan-88 version)
-% A lot like abbrv.bst, but names come out "Last, initials", and in \sc.
-% Some dates are parenthesized.
-
-% History of acm-fa.bst
-% 2009/02/12, The initial release was a combination of acm.bst and plain-fa.bst
-% \textsc is used here instead of \sc.
-%
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- acm-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. thesis" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-FUNCTION {emphasizeic}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "\/}" * }
- if$
-}
-
-FUNCTION {scapify}
-{ duplicate$ empty$
- { pop$ "" }
- { "\textsc{ " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { "," bbl.etal * * }
- { "," bbl.and * * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-% For names inside entries (e.g., editors of an "In ...");
-% this is exactly ABBRV.BST's `format.names' function.
-FUNCTION {format.innames}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {fa.isPersianLanguage
- {s nameptr "{ff}{vv~}{ll}{, jj}" format.name$ 't :=}
- {s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=}
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names scapify}
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names scapify
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.ineditors}
-{ editor empty$
- { "" }
- { editor format.innames
- editor num.names$ #1 >
- { ", " * bbl.editors *}
- { ", " * bbl.editor *}
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { "volume" volume tie.or.space.connect
- series empty$
- 'skip$
- { " of " * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages n.dashify }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pp.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.journal.vol.num.date}
-{ journal empty$
- { "empty journal in " cite$ * warning$
- ""
- }
- { journal
- volume empty$
- 'skip$
- { " " * volume * }
- if$
- number empty$
- 'emphasizeic
- { emphasize ", " * number * }
- if$
- year empty$
- { "empty year in " cite$ * warning$ }
- { " (" * format.date * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pp.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pp.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- {bbl.in booktitle emphasize *
- editor empty$
- 'skip$
- { ", " * format.ineditors * }
- if$
- }
- if$
-}
-
-% The proceedings title (it's on the stack) gets an (address, date) appended
-FUNCTION {format.proc.date}
-{ duplicate$ empty$
- { pop$ "" }
- { year empty$
- { "empty year in " cite$ * warning$
- address empty$
- 'emphasize
- { emphasizeic
- " (" * address * ")" *
- }
- if$
- }
- { emphasizeic
- " (" *
- address empty$
- 'skip$
- { address * ", " * }
- if$
- format.date *
- ")" *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.proc.date}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle format.proc.date * }
- if$
-}
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.journal.vol.num.date output
- format.pages output
- }
- { format.article.crossref output.nonnull
- format.pp.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- format.edition output
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- {
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.date "year" output.check
- format.chapter.pages "chapter and pages" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.edition output
- format.bvolume output
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- }
- if$
- format.chapter.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.proc.date "booktitle" output.check
- format.ineditors output
- format.bvolume output
- format.number.series output
- organization output
- publisher output
- }
- { format.incoll.inproc.crossref output.nonnull }
- if$
- format.pp.pages output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization scapify output }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.edition output
- author empty$
- { address new.block.checka }
- { organization address new.block.checkb
- organization output
- }
- if$
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization scapify output }
- { format.editors output.nonnull }
- if$
- new.block
- title format.proc.date "title" output.check
- format.bvolume output
- format.number.series output
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Comput. Surv."}
-
-MACRO {acta} {"Acta Inf."}
-
-MACRO {cacm} {"Commun. ACM"}
-
-
-MACRO {ibmjrd} {"IBM J. Res. Dev."}
-
-MACRO {ibmsj} {"IBM Syst.~J."}
-
-
-MACRO {ieeese} {"IEEE Trans. Softw. Eng."}
-
-MACRO {ieeetc} {"IEEE Trans. Comput."}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Comput.-Aided Design Integrated Circuits"}
-
-
-MACRO {ipl} {"Inf. Process. Lett."}
-
-MACRO {jacm} {"J.~ACM"}
-
-
-MACRO {jcss} {"J.~Comput. Syst. Sci."}
-
-MACRO {scp} {"Sci. Comput. Programming"}
-
-MACRO {sicomp} {"SIAM J. Comput."}
-
-
-MACRO {tocs} {"ACM Trans. Comput. Syst."}
-
-MACRO {tods} {"ACM Trans. Database Syst."}
-
-MACRO {tog} {"ACM Trans. Gr."}
-
-
-MACRO {toms} {"ACM Trans. Math. Softw."}
-
-MACRO {toois} {"ACM Trans. Office Inf. Syst."}
-
-
-MACRO {toplas} {"ACM Trans. Program. Lang. Syst."}
-
-MACRO {tcs} {"Theoretical Comput. Sci."}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
- { key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
- { key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
- { key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
- 'editor.organization.sort
- { type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
- }
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</acm-fa.bst>
-%<*ieeetr-fa.bst>
-% \fi
-% \part{ieeetr-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "ieeetr-fa", Persian (farsi) version of ieeetr.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/12
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-% IEEE Transactions bibliography style (29-Jan-88 version)
-% numeric labels, order-of-reference, IEEE abbreviations,
-% quotes around article titles, commas separate all fields
-% except after book titles and before "notes". Otherwise,
-% much like the "plain" family, from which this is adapted.
-%
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.quote after.sentence
- after.quoted.block after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.3" }
-FUNCTION{bst.file.date} { "2009/02/12" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- ieeetr-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.quote :=
- #3 'after.sentence :=
- #4 'after.quoted.block :=
- #5 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.quote =
- { " " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { output.state after.quoted.block =
- { write$
- newline$
- "\newblock " write$
- }
- { add.period$ " " * write$ }
- if$
- }
- if$
- }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {blank.sep}
-{ after.quote 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ output.state after.quoted.block =
- 'skip$
- 'add.period$
- if$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { output.state after.quote =
- { after.quoted.block 'output.state := }
- { after.block 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { %s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
- fa.isPersianLanguage
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=}
- { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=}
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { " {\em" * bbl.etal * "}" * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.title.p}
-{ title empty$
- { "" }
- { fa.isPersianLanguage
- { "''" title * ",``" * }
- { "``" title "t" change.case$ * ",''" * }
- if$
- }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume *
- series empty$
- 'skip$
- { bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify * }
- { bbl.page pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.volume}
-{ volume empty$
- { "" }
- { bbl.volume volume * }%M.Amintoosi "vol.~"
- if$
-}
-
-FUNCTION {format.number}
-{ number empty$
- { "" }
- { bbl.number number * }%M.Amintoosi "no.~"
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{ booktitle empty$
- { "" }
- { bbl.in booktitle emphasize *
- editor empty$
- 'skip$
- { " (" * format.editors * ")" * }
- if$
- }
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- output.state after.block =
- { type "t" change.case$ }
- { type "l" change.case$ }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "l" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.addr.pub}
-{ publisher empty$
- { "" }
- { address empty$
- { "" }
- { address ": " * }
- if$
- publisher *
- }
- if$
-}
-
-FUNCTION {format.paddress}
-{ address empty$
- { "" }
- { "(" address * ")" * }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$
- #2 >
- { pop$ " {\em" * bbl.etal * "}" * }
- { #2 <
- 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { " {\em" bbl.etal * "}" * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in "{\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { journal emphasize "journal" output.check
- format.volume output
- month empty$
- { format.number output }
- 'skip$
- if$
- format.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- title empty$
- { "empty title in " cite$ * warning$
- howpublished new.sentence.checka
- }
- { howpublished empty$ not
- address empty$ month empty$ year empty$ and and
- or
- { format.title.p output.nonnull }
- { format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- format.addr.pub "publisher" output.check
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- format.addr.pub "publisher" output.check
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- format.pages output
- organization output
- publisher output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
- 'skip$
- { organization output.nonnull
- address output
- }
- if$
- }
- { format.authors output.nonnull }
- if$
- format.btitle "title" output.check
- author empty$
- { organization empty$
- { address new.block.checka
- address output
- }
- 'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- bbl.mthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title empty$
- { howpublished new.sentence.checka }
- { howpublished empty$ not
- month empty$ year empty$ and
- or
- { format.title.p output.nonnull }
- { format.title output.nonnull }
- if$
- blank.sep
- }
- if$
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- format.btitle "title" output.check
- new.block
- bbl.phdthesis format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- format.paddress output
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- format.title "title" output.check
- blank.sep
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- format.title.p "title" output.check
- blank.sep
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"Jan."}
-
-MACRO {feb} {"Feb."}
-
-MACRO {mar} {"Mar."}
-
-MACRO {apr} {"Apr."}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"Aug."}
-
-MACRO {sep} {"Sept."}
-
-MACRO {oct} {"Oct."}
-
-MACRO {nov} {"Nov."}
-
-MACRO {dec} {"Dec."}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications ACM"}
-
-MACRO {ibmjrd} {"IBM J. Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems~J."}
-
-MACRO {ieeese} {"IEEE Trans. Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Trans. Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Trans. Computer-Aided Design"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"J.~ACM"}
-
-MACRO {jcss} {"J.~Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM J. Computing"}
-
-MACRO {tocs} {"ACM Trans. Computer Systems"}
-
-MACRO {tods} {"ACM Trans. Database Systems"}
-
-MACRO {tog} {"ACM Trans. Graphics"}
-
-MACRO {toms} {"ACM Trans. Mathematical Software"}
-
-MACRO {toois} {"ACM Trans. Office Information Systems"}
-
-MACRO {toplas} {"ACM Trans. Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</ieeetr-fa.bst>
-%<*plain-fa.bst>
-% \fi
-% \part{plain-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "plain-fa", Persian (farsi) version of plain.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-% BibTeX standard bibliography style `plain'
- % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- % Copyright (C) 1985, all rights reserved.
- % Copying of this file is authorized only if either
- % (1) you make absolutely no changes to your copy, including name, or
- % (2) if you do make changes, you name it something other than
- % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
- % This restriction helps ensure that all standard styles are identical.
- % The file btxbst.doc has the documentation for this style.
-
-%History
-% 2009/02/11, Copy and made the necessary changes from unsrt-fa.bst
-% Changing the sortify function so that it does nothing for persian entries
-% 2009/02/12, Chaniging format.names so that prints last name and then first names,
-% also it uses only one character of latin first names and whole persian first names
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator}% bbl.formatnames}
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.2" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- plain-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " Eds." 'bbl.editors :=
- " Ed." 'bbl.editor :=
- " Ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
- %"{vv~}{ll}{, jj}{, f.}" 'bbl.formatnames :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{
- newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- {
- s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- %fa.isPersianLanguage
- % {s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff~}{vv~}{ll}{, jj}
- % }
- % {s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=
- %t "t" change.case$ 't := %I wrote it to lower the letters of latin last names, but it also affected the first name
- %}
- %if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
- 'skip$
- { bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
- { "there's a number but no volume in " cite$ * warning$ }
- 'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
- { pop$ format.pages }
- { ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- key empty$ not and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =%"{ff }{vv }{ll}{ jj}"
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
- { organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
- }
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
- 'skip$
- { organization output.nonnull
- address output
- }
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
- { address new.block.checka
- address output
- }
- 'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
- { publisher new.sentence.checka }
- { organization publisher new.sentence.checkb
- organization output
- }
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-FUNCTION {sortify}
-{
- fa.isPersianLanguage
- { "l" change.case$}
- {purify$ "l" change.case$}
- if$
- %duplicate$ write$
-}
-
-INTEGERS { len }
-
-FUNCTION {chop.word}
-{ 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
-}
-
-FUNCTION {sort.format.names}
-{ 's :=
- #1 'nameptr :=
- ""
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 >
- { " " * }
- 'skip$
- if$
- s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- nameptr numnames = t "others" = and
- { bbl.etal * }
- %{ t write$ t sortify * t write$ }
- { t sortify * }
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {sort.format.title}
-{ 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
-}
-
-FUNCTION {author.sort}
-{ author empty$
- { key empty$
- { "to sort, need author or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.editor.sort}
-{ author empty$
- { editor empty$
- { key empty$
- { "to sort, need author, editor, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { editor sort.format.names }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {author.organization.sort}
-{ author empty$
- { organization empty$
- { key empty$
- { "to sort, need author, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { author sort.format.names }
- if$
-}
-
-FUNCTION {editor.organization.sort}
-{ editor empty$
- { organization empty$
- { key empty$
- { "to sort, need editor, organization, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
- }
- { "The " #4 organization chop.word sortify }
- if$
- }
- { editor sort.format.names }
- if$
-}
-
-FUNCTION {presort}
-{ type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.sort
- { type$ "proceedings" =
- 'editor.organization.sort
- { type$ "manual" =
- 'author.organization.sort
- 'author.sort
- if$
- }
- if$
- }
- if$
- " "
- *
- year field.or.null sortify
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- #1 entry.max$ substring$
- 'sort.key$ :=
-}
-
-ITERATE {presort}
-
-SORT
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by plain-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</plain-fa.bst>
-%<*unsrt-fa.bst>
-% \fi
-% \part{unsrt-fa.bst}
-% \begin{macrocode}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Bib. style "usrt-fa", Persian (farsi) version of unsrt.bst
-%%
-%% by: Mahmood Amintoosi and Mostafa Vahedi
-%% For XePersian, a Persian Typsetting Package in XeTeX, Developed by:
-%% Vafa Khalighi, Mehdi Omidali and Mostafa Vahedi
-%% 2009/02/09
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either this version
-%% of this license or (at your option) any later version.
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Original Copyright
-% BibTeX standard bibliography style `unsrt'
- % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- % Copyright (C) 1985, all rights reserved.
- % Copying of this file is authorized only if either
- % (1) you make absolutely no changes to your copy, including name, or
- % (2) if you do make changes, you name it something other than
- % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
- % This restriction helps ensure that all standard styles are identical.
- % The file btxbst.doc has the documentation for this style.
-
-%%%%%%%%%%% History:
-% 2009/02/07: v.1, First Release
-% 2009/02/08: v.2, Some bugs fixed
-% 2009/02/09: v.21, I have to check the persian language in format.edition, because in Persian, "edition" lies before the edition number.
-% 2009/02/09: v.22, I added a field Translator for translated books
-
-
-ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- translator
- type
- volume
- year
- }
- {}
- { label }
-
-INTEGERS { output.state before.all mid.sentence after.sentence after.block }
-STRINGS {bbl.and bbl.etal bbl.editors bbl.editor bbl.edition bbl.volume bbl.of bbl.number
- bbl.in bbl.pages bbl.page bbl.chapter bbl.series bbl.techrep bbl.mthesis bbl.phdthesis
- bbl.translator }
-FUNCTION {is.print.banners.to.terminal} { #1 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% FILE VERSION AND BANNER %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION{bst.file.version} { "0.22" }
-FUNCTION{bst.file.date} { "2009/02/09" }
-FUNCTION{bst.file.website} { "http://developer.berlios.de/projects/xepersian" }
-FUNCTION{bst.file.authors} {"M.Amintoosi and M.Vahedi" }
-
-FUNCTION {banner.message}
-{ is.print.banners.to.terminal
- { "-- unsrt-fa.bst version" " " * bst.file.version *
- " (" * bst.file.date * ") " * %"by " * bst.file.authors *
- top$
- "-- This is a BibTeX style for XePersian: " bst.file.website *
- %top$
- %"-- See the " quote$ * "xepersian_bibtex_userguide.pdf" * quote$ * " manual for usage information." *
- top$
- }
- { skip$ }
- if$
-}
-
-FUNCTION {completed.message}
-{ is.print.banners.to.terminal
- { ""
- top$
- "Done."
- top$
- }
- { skip$ }
- if$
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-FUNCTION {fa.isPersianLanguage}
-{
- language missing$
- {#0}
- {language "l" change.case$ "persian" =}
- if$
-}
-
-FUNCTION {keywords.fa}
-{
- " و " 'bbl.and :=
- " و دیگران" 'bbl.etal :=
- " ویراستاران " 'bbl.editors :=
- " ویراسته‌ی " 'bbl.editor :=
- " ویرایش " 'bbl.edition :=
- " جلد " 'bbl.volume :=
- " از " 'bbl.of :=
- " شماره " 'bbl.number :=
- " در " 'bbl.in :=
- " صفحات " 'bbl.pages :=
- " ص." 'bbl.page :=
- " فصل " 'bbl.chapter :=
- " سری " 'bbl.series :=
- " گزارش طرح تحقیقی" 'bbl.techrep :=
- " پایان‌نامه کارشناسی‌ارشد" 'bbl.mthesis :=
- " پایان‌نامه دکترا" 'bbl.phdthesis :=
- " ترجمه‌ی " 'bbl.translator :=
-}
-
-FUNCTION {keywords.en}
-{
- " and " 'bbl.and :=
- " et~al." 'bbl.etal :=
- " eds." 'bbl.editors :=
- " ed." 'bbl.editor :=
- " ed." 'bbl.edition :=
- " Vol." 'bbl.volume :=
- " of " 'bbl.of :=
- " No." 'bbl.number :=
- " In " 'bbl.in :=
- " pp." 'bbl.pages :=
- " p." 'bbl.page :=
- " Ch." 'bbl.chapter :=
- " Ser." 'bbl.series :=
- " Tech. Rep." 'bbl.techrep :=
- " Master's thesis" 'bbl.mthesis :=
- " Ph.D. disseration" 'bbl.phdthesis :=
- " Translator " 'bbl.translator :=
-}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% End of Persian Functions %%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
-FUNCTION {init.state.consts}
-{ #0 'before.all :=
- #1 'mid.sentence :=
- #2 'after.sentence :=
- #3 'after.block :=
-}
-
-STRINGS { s t }
-
-FUNCTION {output.nonnull}
-{ 's :=
- output.state mid.sentence =
- { ", " * write$ }
- { output.state after.block =
- { add.period$ write$
- newline$
- "\newblock " write$
- }
- { output.state before.all =
- 'write$
- { add.period$ " " * write$ }
- if$
- }
- if$
- mid.sentence 'output.state :=
- }
- if$
- s
-}
-
-FUNCTION {output}
-{ duplicate$ empty$
- 'pop$
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.check}
-{ 't :=
- duplicate$ empty$
- { pop$ "empty " t * " in " * cite$ * warning$ }
- 'output.nonnull
- if$
-}
-
-FUNCTION {output.bibitem}
-{ newline$
- fa.isPersianLanguage
- { keywords.fa
- "\Persian" write$
- newline$ }
- { keywords.en
- "\Latin" write$
- newline$ }
- if$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
-FUNCTION {fin.entry}
-{ add.period$
- write$
- newline$
-}
-
-FUNCTION {new.block}
-{ output.state before.all =
- 'skip$
- { after.block 'output.state := }
- if$
-}
-
-FUNCTION {new.sentence}
-{ output.state after.block =
- 'skip$
- { output.state before.all =
- 'skip$
- { after.sentence 'output.state := }
- if$
- }
- if$
-}
-
-FUNCTION {not}
-{ { #0 }
- { #1 }
- if$
-}
-
-FUNCTION {and}
-{ 'skip$
- { pop$ #0 }
- if$
-}
-
-FUNCTION {or}
-{ { pop$ #1 }
- 'skip$
- if$
-}
-
-FUNCTION {new.block.checka}
-{ empty$
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.block.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.block
- if$
-}
-
-FUNCTION {new.sentence.checka}
-{ empty$
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {new.sentence.checkb}
-{ empty$
- swap$ empty$
- and
- 'skip$
- 'new.sentence
- if$
-}
-
-FUNCTION {field.or.null}
-{ duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
-}
-
-FUNCTION {emphasize}
-{ duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
-}
-
-INTEGERS { nameptr namesleft numnames }
-
-FUNCTION {format.names}
-{ 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := %{ff}{vv~}{ll}{, jj}
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { numnames #2 >
- { "," * }
- 'skip$
- if$
- t "others" =
- { bbl.etal * }
- { bbl.and * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
-}
-
-FUNCTION {format.authors}
-{ author empty$
- { "" }
- { author format.names }
- if$
-}
-
-FUNCTION {format.editors}
-{ editor empty$
- { "" }
- { fa.isPersianLanguage
- {
- editor num.names$ #1 >
- {bbl.editors editor format.names * }
- {bbl.editor editor format.names * }
- if$
- }
- {
- editor format.names
- editor num.names$ #1 >
- { ", " bbl.editors * *}
- { ", " bbl.editor * *}
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.translators}
-{ translator empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.translator translator format.names *
- }
- {
- translator format.names
- ", " bbl.translator * *
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.title}
-{ title empty$
- { "" }
- { title "t" change.case$ }
- if$
-}
-
-FUNCTION {n.dashify}
-{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
- }
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
- }
- if$
- }
- while$
-}
-
-FUNCTION {format.date}
-{ year empty$
- { month empty$
- { "" }
- { "there's a month but no year in " cite$ * warning$
- month
- }
- if$
- }
- { month empty$
- 'year
- { month " " * year * }
- if$
- }
- if$
-}
-
-FUNCTION {format.btitle}
-{ title emphasize
-}
-
-FUNCTION {tie.or.space.connect}
-{ duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
-}
-
-FUNCTION {either.or.check}
-{ empty$
- 'pop$
- { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- if$
-}
-
-FUNCTION {format.bvolume}
-{ volume empty$
- { "" }
- { bbl.volume volume tie.or.space.connect
- series empty$
- 'skip$
- { bbl.of * series emphasize * }
- if$
- "volume and number" number either.or.check
- }
- if$
-}
-
-FUNCTION {format.number.series}
-{ volume empty$
- { number empty$
- { series field.or.null }
- { output.state mid.sentence =
- { bbl.number }
- { bbl.number "t" change.case$ }
- if$
- number tie.or.space.connect
- series empty$
- { "there's a number but no series in " cite$ * warning$ }
- { bbl.in * series * }
- if$
- }
- if$
- }
- { "" }
- if$
-}
-
-FUNCTION {format.edition}
-{ edition empty$
- { "" }
- { fa.isPersianLanguage
- {
- bbl.edition edition *
- }
- {
- output.state mid.sentence =
- { edition "l" change.case$ bbl.edition * }
- { edition "t" change.case$ bbl.edition * }
- if$
- }
- if$
- }
- if$
-}
-
-INTEGERS { multiresult }
-
-FUNCTION {multi.page.check}
-{ 't :=
- #0 'multiresult :=
- { multiresult not
- t empty$ not
- and
- }
- { t #1 #1 substring$
- duplicate$ "-" =
- swap$ duplicate$ "," =
- swap$ "+" =
- or or
- { #1 'multiresult := }
- { t #2 global.max$ substring$ 't := }
- if$
- }
- while$
- multiresult
-}
-
-FUNCTION {format.pages}
-{ pages empty$
- { "" }
- { pages multi.page.check
- { bbl.pages pages n.dashify tie.or.space.connect }
- { bbl.page pages tie.or.space.connect }
- if$
- }
- if$
-}
-
-FUNCTION {format.vol.num.pages}
-{ volume field.or.null
- number empty$
- 'skip$
- { "(" number * ")" * *
- volume empty$
- { "there's a number but no volume in " cite$ * warning$ }
- 'skip$
- if$
- }
- if$
- pages empty$
- 'skip$
- { duplicate$ empty$
- { pop$ format.pages }
- { ":" * pages n.dashify * }
- if$
- }
- if$
-}
-
-FUNCTION {format.chapter.pages}
-{ chapter empty$
- 'format.pages
- { type empty$
- { bbl.chapter }
- { type "l" change.case$ }
- if$
- chapter tie.or.space.connect
- pages empty$
- 'skip$
- { ", " * format.pages * }
- if$
- }
- if$
-}
-
-FUNCTION {format.in.ed.booktitle}
-{
- booktitle empty$
- { "" }
- { editor empty$
- { bbl.in booktitle emphasize * }
- { bbl.in format.editors * ", " * booktitle emphasize * }
- if$
- }
- if$
-}
-
-FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
- { "all relevant fields are empty in " cite$ * warning$ }
- 'skip$
- if$
-}
-
-FUNCTION {format.thesis.type}
-{ type empty$
- 'skip$
- { pop$
- type "t" change.case$
- }
- if$
-}
-
-FUNCTION {format.tr.number}
-{ type empty$
- { bbl.techrep }
- 'type
- if$
- number empty$
- { "t" change.case$ }
- { number tie.or.space.connect }
- if$
-}
-
-FUNCTION {format.article.crossref}
-{ key empty$
- { journal empty$
- { "need key or journal for " cite$ * " to crossref " * crossref *
- warning$
- ""
- }
- { bbl.in "{\em " * journal * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.crossref.editor}
-{ editor #1 "{vv~}{ll}" format.name$
- editor num.names$ duplicate$ #2 >
- { pop$ bbl.etal * }
- { #2 < 'skip$
- { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- { bbl.etal * }
- { bbl.and * editor #2 "{vv~}{ll}" format.name$ * }
- if$
- }
- if$
- }
- if$
-}
-
-FUNCTION {format.book.crossref}
-{ volume empty$
- { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- bbl.in
- }
- { bbl.volume volume tie.or.space.connect
- bbl.of *
- }
- if$
- editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { series empty$
- { "need editor, key, or series for " cite$ * " to crossref " *
- crossref * warning$
- "" *
- }
- { "{\em " * series * "\/}" * }
- if$
- }
- { key * }
- if$
- }
- { format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {format.incoll.inproc.crossref}
-{ editor empty$
- editor field.or.null author field.or.null =
- or
- { key empty$
- { booktitle empty$
- { "need editor, key, or booktitle for " cite$ * " to crossref " *
- crossref * warning$
- ""
- }
- { bbl.in " {\em " * booktitle * "\/}" * }
- if$
- }
- { bbl.in key * }
- if$
- }
- { bbl.in format.crossref.editor * }
- if$
- " \cite{" * crossref * "}" *
-}
-
-FUNCTION {article}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { journal emphasize "journal" output.check
- format.vol.num.pages output
- format.date "year" output.check
- }
- { format.article.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {book}
-{ output.bibitem
- fa.isPersianLanguage
- {
- format.authors output
- new.block
- format.btitle "title" output.check
- new.block
- format.translators output
- format.editors output
- }
- { author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- }
- if$
- crossref missing$
- { format.bvolume output
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {booklet}
-{ output.bibitem
- format.authors output
- new.block
- format.title "title" output.check
- howpublished address new.block.checkb
- howpublished output
- address output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inbook}
-{ output.bibitem
- author empty$
- { format.editors "author and editor" output.check }
- { format.authors output.nonnull
- crossref missing$
- { "author and editor" editor either.or.check }
- 'skip$
- if$
- }
- if$
- new.block
- format.btitle "title" output.check
- crossref missing$
- { format.bvolume output
- format.chapter.pages "chapter and pages" output.check
- new.block
- format.number.series output
- new.sentence
- publisher "publisher" output.check
- address output
- }
- { format.chapter.pages "chapter and pages" output.check
- new.block
- format.book.crossref output.nonnull
- }
- if$
- format.edition output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {incollection}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.chapter.pages output
- new.sentence
- publisher "publisher" output.check
- address output
- format.edition output
- format.date "year" output.check
- }
- { format.incoll.inproc.crossref output.nonnull
- format.chapter.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {inproceedings}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- crossref missing$
- { format.in.ed.booktitle "booktitle" output.check
- format.bvolume output
- format.number.series output
- format.pages output
- address empty$
- { organization publisher new.sentence.checkb
- organization output
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- organization output
- publisher output
- }
- if$
- }
- { format.incoll.inproc.crossref output.nonnull
- format.pages output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {conference} { inproceedings }
-
-FUNCTION {manual}
-{ output.bibitem
- author empty$
- { organization empty$
- 'skip$
- { organization output.nonnull
- address output
- }
- if$
- }
- { format.authors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- author empty$
- { organization empty$
- { address new.block.checka
- address output
- }
- 'skip$
- if$
- }
- { organization address new.block.checkb
- organization output
- address output
- }
- if$
- format.edition output
- format.date output
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {mastersthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- bbl.mthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {misc}
-{ output.bibitem
- format.authors output
- title howpublished new.block.checkb
- format.title output
- howpublished new.block.checka
- howpublished output
- format.date output
- new.block
- note output
- fin.entry
- empty.misc.check
-}
-
-FUNCTION {phdthesis}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.btitle "title" output.check
- new.block
- bbl.phdthesis
- format.thesis.type output.nonnull
- school "school" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {proceedings}
-{ output.bibitem
- editor empty$
- { organization output }
- { format.editors output.nonnull }
- if$
- new.block
- format.btitle "title" output.check
- format.bvolume output
- format.number.series output
- address empty$
- { editor empty$
- { publisher new.sentence.checka }
- { organization publisher new.sentence.checkb
- organization output
- }
- if$
- publisher output
- format.date "year" output.check
- }
- { address output.nonnull
- format.date "year" output.check
- new.sentence
- editor empty$
- 'skip$
- { organization output }
- if$
- publisher output
- }
- if$
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {techreport}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- format.tr.number output.nonnull
- institution "institution" output.check
- address output
- format.date "year" output.check
- new.block
- note output
- fin.entry
-}
-
-FUNCTION {unpublished}
-{ output.bibitem
- format.authors "author" output.check
- new.block
- format.title "title" output.check
- new.block
- note "note" output.check
- format.date output
- fin.entry
-}
-
-FUNCTION {default.type} { misc }
-
-MACRO {jan} {"January"}
-
-MACRO {feb} {"February"}
-
-MACRO {mar} {"March"}
-
-MACRO {apr} {"April"}
-
-MACRO {may} {"May"}
-
-MACRO {jun} {"June"}
-
-MACRO {jul} {"July"}
-
-MACRO {aug} {"August"}
-
-MACRO {sep} {"September"}
-
-MACRO {oct} {"October"}
-
-MACRO {nov} {"November"}
-
-MACRO {dec} {"December"}
-
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
-
-READ
-
-STRINGS { longest.label }
-
-INTEGERS { number.label longest.label.width }
-
-FUNCTION {initialize.longest.label}
-{ "" 'longest.label :=
- #1 'number.label :=
- #0 'longest.label.width :=
-}
-
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
- }
- 'skip$
- if$
-}
-
-EXECUTE {banner.message}
-EXECUTE {initialize.longest.label}
-
-ITERATE {longest.label.pass}
-
-FUNCTION {begin.bib}
-{
- "% Generated by unsrt-fa.bst, version: " bst.file.version * " (" * bst.file.date * "), for XePersian Package" *
- write$ newline$
- "% Authors: " bst.file.authors *
- write$ newline$
- "\providecommand{\noopsort}[1]{}"
- write$ newline$
- preamble$ empty$
- 'skip$
- { preamble$ write$ newline$ }
- if$
- "\begin{thebibliography}{" longest.label * "}" * write$ newline$
-}
-
-EXECUTE {begin.bib}
-
-EXECUTE {init.state.consts}
-
-ITERATE {call.type$}
-
-FUNCTION {end.bib}
-{ newline$
- "\end{thebibliography}" write$ newline$
- "\Persian" write$ newline$
-}
-
-EXECUTE {end.bib}
-EXECUTE{completed.message}
-% \end{macrocode}
-% \iffalse
-%</unsrt-fa.bst>
-% \fi
-% \clearpage
-% \PrintChanges
-% \Finale
-%
-% \iffalse
-%<*parsidigits.map>
-; Vafa Khalighi ...
-LHSName "Digits"
-RHSName "ParsiDigits"
-
-pass(Unicode)
-U+0030 <> U+06F0 ;
-U+0031 <> U+06F1 ;
-U+0032 <> U+06F2 ;
-U+0033 <> U+06F3 ;
-U+0034 <> U+06F4 ;
-U+0035 <> U+06F5 ;
-U+0036 <> U+06F6 ;
-U+0037 <> U+06F7 ;
-U+0038 <> U+06F8 ;
-U+0039 <> U+06F9 ;
-
-U+0644 U+0651 U+064E U+0627 <> U+0644 U+0627 U+0651 U+064E ; lam shadda fatha alif -> lam alif shadda fatha
-U+0644 U+0651 U+0627 <> U+0644 U+0627 U+0651 ; lam shadda alif -> lam alif shadda
-U+0644 U+0652 U+0622 <> U+0644 U+0622 U+0652 ; lam sukun alifmadda -> lam alifmadda sukun
-U+0644 U+0652 U+0623 <> U+0644 U+0623 U+0652 ; lam sukun alifhamzaabove -> lam alifhamzaabove sukun
-U+0644 U+0652 U+0625 <> U+0644 U+0625 U+0652 ; lam sukun alifhamzabelow -> lam alifhamzabelow sukun
-U+0644 U+0651 U+064B U+0627 <> U+0644 U+0627 U+0651 U+064b ; lam shadda fathatan alif -> lam alif shadda fathatan
-U+0644 U+064B U+0627 <> U+0644 U+0627 U+064B ; lam fathatan alif -> lam alif fathatan
-
-U+002C <> U+060C ; comma ­> arabic comma
-U+003F <> U+061F ; question mark -> arabic qm
-U+003B <> U+061B ; semicolon -> arabic semicolon
-
-; ligatures from Knuth's original CMR fonts
-U+002D U+002D <> U+2013 ; -- -> en dash
-U+002D U+002D U+002D <> U+2014 ; --- -> em dash
-
-U+0027 <> U+2019 ; ' -> right single quote
-U+0027 U+0027 <> U+201D ; '' -> right double quote
-U+0022 > U+201D ; " -> right double quote
-
-U+0060 <> U+2018 ; ` -> left single quote
-U+0060 U+0060 <> U+201C ; `` -> left double quote
-
-U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
-U+003F U+0060 <> U+00BF ; ?` -> inverted question
-
-; additions supported in T1 encoding
-U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
-U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
-U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
-%</parsidigits.map>
-%<*txt2maths.map>
-; Vafa Khalighi ...
-LHSName "Digits"
-RHSName "txt2maths"
-
-Pass(Unicode)
-U+002E <> U+066B ; convert dot to Persian decimal separator
-U+002D <> U+2212 ; convert hyphen to minus sign
-U+0030 <> U+06F0 ;
-U+0031 <> U+06F1 ;
-U+0032 <> U+06F2 ;
-U+0033 <> U+06F3 ;
-U+0034 <> U+06F4 ;
-U+0035 <> U+06F5 ;
-U+0036 <> U+06F6 ;
-U+0037 <> U+06F7 ;
-U+0038 <> U+06F8 ;
-U+0039 <> U+06F9 ;
-
-U+0644 U+0651 U+064E U+0627 <> U+0644 U+0627 U+0651 U+064E ; lam shadda fatha alif -> lam alif shadda fatha
-U+0644 U+0651 U+0627 <> U+0644 U+0627 U+0651 ; lam shadda alif -> lam alif shadda
-U+0644 U+0652 U+0622 <> U+0644 U+0622 U+0652 ; lam sukun alifmadda -> lam alifmadda sukun
-U+0644 U+0652 U+0623 <> U+0644 U+0623 U+0652 ; lam sukun alifhamzaabove -> lam alifhamzaabove sukun
-U+0644 U+0652 U+0625 <> U+0644 U+0625 U+0652 ; lam sukun alifhamzabelow -> lam alifhamzabelow sukun
-U+0644 U+0651 U+064B U+0627 <> U+0644 U+0627 U+0651 U+064b ; lam shadda fathatan alif -> lam alif shadda fathatan
-U+0644 U+064B U+0627 <> U+0644 U+0627 U+064B ; lam fathatan alif -> lam alif fathatan
-
-U+002C <> U+060C ; comma ­> arabic comma
-U+003F <> U+061F ; question mark -> arabic qm
-U+003B <> U+061B ; semicolon -> arabic semicolon
-
-; ligatures from Knuth's original CMR fonts
-U+002D U+002D <> U+2013 ; -- -> en dash
-U+002D U+002D U+002D <> U+2014 ; --- -> em dash
-
-U+0027 <> U+2019 ; ' -> right single quote
-U+0027 U+0027 <> U+201D ; '' -> right double quote
-U+0022 > U+201D ; " -> right double quote
-
-U+0060 <> U+2018 ; ` -> left single quote
-U+0060 U+0060 <> U+201C ; `` -> left double quote
-
-U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
-U+003F U+0060 <> U+00BF ; ?` -> inverted question
-
-; additions supported in T1 encoding
-U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
-U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
-U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
-%</txt2maths.map>
-%<*thesis-sample.tex>
-\documentclass[a4paper,11pt]{xepersian-thesis}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{XB Zar}
-
-
-
-
-\begin{document}
-\title{اعداد مرکب}
-\author{وفا خلیقی}
-\degree{کارشناسی ریاضیات محض}
-\supervisor{محمد قدسی}
-\department{ریاضی}
-\university{تهران}
-\city{تهران}
-\thesisdate{\today}
-\maketitle
-\begin{acknowledgementpage}
-در اینجا دوست دارم از همه تشکر کنم
-\end{acknowledgementpage}
-\begin{abstractpage}
-اینجا هم باید مطلبی نوشت...
-\keywords{ریاضی محض، هندسه و توپولوژی}
-\end{abstractpage}
-\tableofcontents
-\listoftables
-\chapter{مجموعه اعداد}
-در اینجا لازم می‌دانم تا نگاهی روی مجموعهٔ اعداد اندازیم تا متوجه خصلت‌های آن شویم
-\begin{equation}
-(a+b)^2=a^2+2ab+b^3
-\end{equation}
-\newpage
-این صفحهٔ جدید است که ما در این صفحه به نوشتن مقالات دیگری مشغول هستیم.
-\section{مقدمه}
-
-\newpage
-این هم یک صفحهٔ جدید دیگر
-\chapter{دوم}
-\chapter{سوم}
-\appendix
-\chapter{اول}
-\chapter{دوم}
-\chapter{سوم}
-\bibliographystyle{unsrt}
-\begin{thebibliography}{99}
-\end{thebibliography}
-%\printindex
-\begin{latin}
-\latintitle{Pure Mathematics}
-\latinauthor{Vafa Khalighi}
-\latindegree{Bachelor of Pure Mathematics}
-\latinthesisdate{\latintoday}
-\latinsupervisor{Mohammad Ghodsi}
-\latindepartment{Computer Science}
-\latinuniversity{Iran University of Science \& Technology}
-\latincity{Tehran}
-\begin{latinabstract}
-\noindent This is our abstract written in English and This thesis is written very very very carefully so that we can keep an eye on the beauty of typesetting.
-\latinkeywords{Mathematics, topology, geometry and category theory.}
-\end{latinabstract}
-\makelatintitle
-\end{latin}
-\end{document}
-%</thesis-sample.tex>
-%<*magazine-sample.tex>
-\documentclass[12pt,twoside]{xepersian-magazine}
-\usepackage{graphicx}
-\usepackage{xepersian}
-\usepackage{xunicode}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Junicode}
-\setdigitfont{XB Zar}
-\pagestyle{fancy}
-\title{مجلهٔ زی‌پرشین}
-\author{وفا خلیقی}
-\edition{جلد اول}
-\customlogo{مجلهٔ زی‌پرشین}
-\customminilogo{مجلهٔ زی‌پرشین}
-\custommagazinename{مجلهٔ زی‌پرشین}
-\customwwwTxt{http://developer.berlios.de/projects/xepersian}
-\begin{document}
-\begin{frontpage}
-\firstimage{img/ireland.jpg}{این زیرنویس تصویر اصلی در صفحهٔ اول است.}
-\firstarticle{این تیتر مقالهٔ اول است.}
- {خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد.}%
- {۱۲:۳۴}
-\secondarticle{این هم سر تیتر مقالهٔ دوم است.}%
- {این هم زیر تیتر مقالهٔ دوم است که آن را در اینجا می‌نویسیم.}%
- {خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد.}%
- {قسمت الف}%
- {۱۰:۲۳}
-
-\thirdarticle{این سرتیتر مقالهٔ سوم است.}%
- {این هم زیرتیتر مقالهٔ سوم است که ما آن را در اینجا قرار می‌دهیم.}%
- {خوب این قسمت کوچکی از مقالهٔ اول است که ما در حال نوشتن آن هستم. باید یک مقدار بنویسیم تا مقداری این قسمت پر شود تا بتوانیم چیز قشنگی داشته باشیم. دقت کنیم که بصورت انتخابی حتی می‌توانیم زمان را هم درج کنیم که در سمت راست قرار می‌گیرد. و همانطور که می‌بینید من مطلبی برای گفتن ندارم فقط متن علکی می‌نویسم تا کمی صفحه را پر کرده باشم. اما در قسمتهای بعدی مقداری از سهراب سپهری خواهم نوشت.}%
-
- {قسمت ب}%
- {۱۰:۰۲}
-
-\begin{indexblock}{نمایه (فهرست مطالب) اصلی}
-\indexitem{۱- مقاله اول}{1}
-
-\indexitem{۲- مقاله دوم}{3}
-
-\indexitem{۳- مقاله سوم}{3}
-
-\indexitem{۴- مقاله چهارم}{5}
-\end{indexblock}
-
-\begin{weatherblock}{وضع آب و هوا}
-\weatheritem{img/weather/rain.jpg}{امروز}{13}{9}{}
-\weatheritem{img/weather/sun.jpg}{فردا}{15}{1}{}
-\weatheritem{img/weather/clouds.jpg}{جمعه}{12}{6}{}
-\end{weatherblock}
-
-
-\begin{authorblock}
-\textbf{ویرایشگران}
-
-وفا خلیقی، مهدی امیدعلی و مصطفی واحدی
-
-\texttt{vafa@users.berlios.de\\[5pt]
-http://developer.berlios.de/projects/xepersian}\\
-\end{authorblock}
-\end{frontpage}
-\newsection{قسمت الف}
-\begin{article}{2}
- {این تیتر این مقاله است.}
- {این هم زیرتیتر این مقاله هست.}
- {قسمت الف}
- {1}
-\authorandplace{نام نویسنده}{مکان}
-
-
-
-
-\noindent\timestamp{۸:۲۵}
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-\footnote{این یک زیرنویس فارسی است.}\LTRfootnote{This is an English footnote.}
-\begin{equation}
-(a+b)^3=a^3+3a^2b+3ab^2+b^3\label{eq-1}
-\end{equation}
-این معادلهٔ \eqref{eq-1} است.
-\columntitle{lines}{این را برای مهم یا نشان دادن حرفی مهم در این مجله انجام می‌دهیم.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\begin{article}{2}
- {این تیتر این مقاله است.}
- {این هم زیرتیتر این مقاله هست.}
- {قسمت الف}
- {1}
-\authorandplace{نام نویسنده}{مکان}
-
-\noindent\timestamp{08:25}
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-\LTRfootnote{This is an English footnote.}\footnote{این یک زیرنویس فارسی است.}
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-\expandedtitle{doublebox}{این هم مطلی است مهم یا چیزی که از خلاصهٔ این مقاله ما متوجه شده‌ایم و این برای ما و خوانندگان خیلی مهم است.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-\newsection{قسمت ب}
-
-
-\begin{article}{2}
- {این یک تیتر کوتاه است.وفا خلیقی}
- {این هم مثل همیشه زیرتیتر است که ما آن را در اینجا قرار می‌دهیم.}
- {قسمت ب}
- {3}
-
-\authorandplace{نام نویسنده}{مکان}
-
-
-
-\noindent\timestamp{08:25} et ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-
-\expandedtitle{lines}{این هم دوباره مطلب مهمی است که ما آن را از لابلای این مقاله برای خواننده درست کرده‌ایم.}
-
-ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{article}
-
-\articlesep
-
-
-\begin{editorial}{1}{این یک مثال از مقاله‌ای از طرف ویرایشگر است.}{نام و نام خانوادگی}{4}
-يژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.
-
-اما معماری همتابه‌همتا ويژگی‌های ديگری نيز دارد که آن را هم برای فراهم‌کنندگان کاربردها و هم برای استفاده‌کنندگان جذاب‌تر می‌کند. از آن‌جا که شبکه‌های همتابه‌همتا از همان زيرساخت‌های اينترنت استفاده می‌کنند ونيازی به راه‌اندازی سرورها ندارند، ساخت اين شبكه‌ها بسيار ارزان‌تر از ايجاد زير ساخت‌های لازم برای راه‌اندازی شبكه‌های مشتری/خدمت‌گزار است. هم‌چنين با زياد شدن تعداد کاربران چون درعمل تعداد گره‌های ارائه کننده‌ی خدمات هم بالا می‌رود، نه تنها عملكرد شبكه افت پيدا نمی‌كند بلكه انتظار بهبود عملکرد نيز می‌رود. گذشته از اين موارد، مالكيت اين شبكه‌ها به صورت اشتراكی بين تمام کاربران پخش شده و هيچ شخص يا شركتی نمی‌تواند سياست‌های دلخواه خود را در اين نوع شبكه‌ها اعمال کند.
-
-اماهيچ چيزی بی‌ بها به دست نمی‌آید. نبود سرور مرکزی اگر چه ويژگی‌های جذابی به شبکه‌های همتابه‌همتا می‌بخشد اما از طرف ديگر آن‌ها را با دشواری‌هايی نيز روبه‌رو می‌کند. عدم وجود يك هماهنگ كننده مركزی در شبكه، انجام بسياری از امور و ارائه خدمات را دچار مشكل می‌کند. از يک طرف، تغيير و رفت‌وآمد زیاد کاربران از ويژگی‌های ذاتی اين شبکه‌ها است و از طرف ديگر در اين شبكه‌ها، ديگر اين گره‌های معمولی هستند كه عهده‌دار تمامی وظايف هستند. به همين دلیل يکی از مشکلات اصلی فراروی اين شبكه‌ها، مقابله با تغييرات لحظه‌ای و فراهم آوردن ثبات در ارائه خدمات در بستری از بی‌ثباتی است.
-\end{editorial}
-
-\articlesep
-
-
-\begin{shortarticle}{4}{محیط مقالهٔ کوتاه}{محیط مقالهٔ کوتاه داخل مجلهٔ زی‌پرشین}{5}
-\shortarticleitem{این یک تیتر کوتاه است}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\shortarticleitem{یک تیتر کوتاه دیگر}{ويژگی اصلی که اين معماری را متمايز کرده و در دنيای اينترنت آن‌ها در مقابل معماری قبلی شبكه‌ها قرار داده است، امكان ايجاد ارتباط مستقيم بين كامپيوترهای مختلف بدون نياز به دخالت سرورهای قدرتمند در بين راه است. نام‌ اين نوع معماری هم در واقع بر گرفته شده از همین ارتباط مستقیم بين گره‌ها است. در واقع در اين نوع شبكه‌ها اثری از سرورها نيست و تمامی گره‌های معمولی موجود در شبكه، بايد وظايفی را که قبلا بر عهده‌ی سرورها بود، خود انجام دهند. بنابراين در اين نوع معماری گره‌های معمولی در ضمن اين‌که از خدمات شبکه بهره‌مند می‌شود بايد نقش خدمت‌گزار را هم ايفا کنند . در اين نوع شبکه‌ها گره‌های معمولی به كمك روش‌ها و پروتكل‌های توزيع شده، تمامی وظايف مسير يابی در شبكه، جستجوی منابع، امنيت شبكه و شناسايی هويت استفاده كننده‌ها و هم‌چنين مقابله با حملات احتمالی مهاجمان را بر عهده دارند.}
-\end{shortarticle}
-
-\articlesep
-
-\end{document}
-%</magazine-sample.tex>
-%<*test-correction.tex>
-\documentclass{article}
-\usepackage[correction]{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-
-\end{document}
-%</test-correction.tex>
-%<*test-empty-form.tex>
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-\bigskip
-
-\begin{center}
-\makeform
-\end{center}
-\end{document}
-%</test-empty-form.tex>
-%<*test-question-only.tex>
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-
-\end{document}
-%</test-question-only.tex>
-%<*test-solution-form.tex>
-\documentclass{article}
-\usepackage{xepersian-multiplechoice}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=1]{Linux Libertine}
-\setdigitfont[Scale=1]{Parsi Digits}
-\begin{document}
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\false $\{(3,2),(3,3)\} $
-\true $\{(2,2),(2,3)\} $
-\false $\{(2,3),(3,3)\} $
-\false $\{(2,2),(3,2)\} $
-\end{question}
-
-\begin{question}{اگر ‎$A=\{ 1,2\} $‎ و ‎$B=\{ 2,3\} $‎ آنگاه حاصل $B^2-A\times B$ کدام است.}
-\true $x$
-\false $y$
-\false $z$
-\false $t$
-\end{question}
-
-\begin{question}{مجموعه‎ $(B-A^{'})^{'}$ ‎برابر است با:}
-\false $B^{'}\bigcap A$
-\false $B'\bigcup A' $
-\true $A$
-\false هیچکدام.
-\end{question}
-
-\begin{question}{صورت متعارفی عدد مختلط ‎$\frac{7+i}{1-i}$‎ کدام است.}
-\false $4+4i$
-\false $4-3i$
-\false $3+4i$
-\true $3-3i$
-\end{question}
-\begin{correction}
-جواب درست یکی از اینها است.
-\end{correction}
-
-\bigskip
-\begin{center}
-\makemask
-\end{center}
-\end{document}
-%</test-solution-form.tex>
-%<*acm-fa-output.tex>
-\documentclass[11pt,a4paper]{article}
-
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{acm-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-\nocite{*}
-\bibliographystyle{acm-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-
-\end{document}
-%</acm-fa-output.tex>
-%<*bibtex-example.tex>
-\documentclass[11pt,a4paper]{article}
-% محمود امین‌طوسی، http://webpages.iust.ac.ir/mamintoosi
-% فایل حاضر مثالی برای استفاده از سبک‌های فارسی در زی‌پرشین می‌باشد.
-% توجه نمایید که برای استفاده از این مثال باید به صورت زیر عمل نمایید:
-% xelatex filename (در نوت‌پد++ F6 یا Ctrl+F6) - با توجه به راهنمای زی‌پرشین
-% bibtex filename (تایپ دستور در خط فرمان نوت‌پد++)
-% xelatex filename (در نوت‌پد++ F6)
-% xelatex filename (در نوت‌پد++ F6 یا Ctrl+F6)
-% در این مثال به جای filename باید bibtex_example قرار دهید.
-% برای ویرایش مدخل‌ها فایل MyReferences.bib را باز کنید. در صورت تغییر این فایل بایستی دو مرحله‌ی میانی را پس از ذخیره‌ی آن اجرا نمایید.
-% در صورت تغییر در ارجاعات در این فایل باید هر چهار مرحله انجام شوند.
-
-% به جای unsrt می‌توانید سایر سبک‌ها را قرار داده و نتیجه را مشاهده نمایید. (plain-fa, acm-fa, ieeetr-fa, persia)
-
-\usepackage{verbatim}
-\usepackage{backref}
-\def\backrefpagesname{}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Times New latin}
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با استیل فارسی \lr{unsrt-fa} برای \lr{BibTeX} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-مرجع \cite{امیدعلی82دکترا} یک نمونه پروژه دکترا و مرجع\cite{واحدی87} یک نمونه مقاله مجله فارسی است.
-مرجع \cite{Baker02limits} یک نمونه مقاله انگلیسی است که در بین مراجع فارسی قرار گرفته است، مرجع \cite{Amintoosi87using} یک نمونه مقاله کنفرانس فارسی و
-مرجع \cite{استالینگ۸۰کتاب} یک نمونه کتاب فارسی با ذکر مترجمان و ویراستاران فارسی است. مرجع \cite{Khalighi07MscThesis} یک نمونه پروژه کارشناسی ارشد انگلیسی و
-\cite{خلیقی۸۷زی‌پرشین} هم یک نمونه متفرقه می‌باشند.
-
-%\nocite{*}
-{\small
-\bibliographystyle{unsrt-fa}%{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-}
-
-\end{document}
-%</bibtex-example.tex>
-%<*ieeetr-fa-output.tex>
-\documentclass[11pt,a4paper]{article}
-% محمود امین‌طوسی، http://webpages.iust.ac.ir/mamintoosi
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{Parsi Digits}
-
-\title{نمونه خروجی با سبک فارسی \lr{ieeetr-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{ieeetr-fa}%{persia}%
-\bibliography{MyReferences}
-
-
-\end{document}
-%</ieeetr-fa-output.tex>
-%<*MyReferences.bib>
-@article{Baker02limits,
- author = {Baker,, Simon and Kanade,, Takeo},
- title = {Limits on Super-Resolution and How to Break Them},
- journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
- volume = {24},
- number = {9},
- year = {2002},
- issn = {0162-8828},
- pages = {1167--1183},
- publisher = {IEEE Computer Society},
- address = {Washington, DC, USA}
- }
-
-@CONFERENCE{Amintoosi87using,
- AUTHOR = {\noopsort{امین‌طوسی,محمود}{امین‌طوسی,محمود} and others},
- TITLE = {استفاده از تجزیه ماتریس در وضوح برتر},
- BOOKTITLE = {پنجمین کنفرانس بینائی ماشین},
- YEAR = {1387},
- ORGANIZATION = {دانشگاه تبریز},
- ADDRESS = {تبریز، ایران},
- PAGES = {172-178},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{پورموسی۸۸ارشد,
- AUTHOR = {\noopsort{بپورموسی, امیرمسعود}{پورموسی, امیرمسعود}},
- TITLE = {یک موضوع فیزیک},
- SCHOOL = {دانشکده فیزیک، دانشگاه صنعتی‌شریف},
- YEAR = {۱۳۸۸},
- MONTH = {مرداد},
- NOTE = {(در حال انجام)},
- LANGUAGE = {Persian}
-}
-
-@MASTERSTHESIS{Khalighi07MscThesis,
- AUTHOR = {Vafa Khalighi},
- TITLE = {Category Theory},
- SCHOOL = {Sydny Univ.},
- YEAR = {2007},
- MONTH = {April}
-}
-
-@PHDTHESIS{امیدعلی82دکترا,
- AUTHOR = {\noopsort{امیدعلی, مهدی}{امیدعلی, مهدی}},
- TITLE = {تابع هیلبرت},
- SCHOOL = {دانشکده ریاضی، دانشگاه امیرکبیر},
- YEAR = {1382},
- MONTH = {تیر},
- LANGUAGE = {Persian}
-}
-
-@MISC{خلیقی۸۷زی‌پرشین,
- AUTHOR = {\noopsort{خلیقی,وفا}{خلیقی,وفا} and امیدعلی, مهدی and واحدی,مصطفی.},
- TITLE = {زی‌پرشین (\lr{\XePersian}): بسته فارسی برای حروف‌چینی در \lr{\LaTeX2e}},
- HOWPUBLISHED = {\lr{http://developer.berlios.de/projects/xepersian}},
- YEAR = {۱۳۸۷},
- LANGUAGE = {Persian}
- }
-
-@BOOK{استالینگ۸۰کتاب,
- AUTHOR = {\noopsort{استالینگ, ویلیام}{استالینگ, ویلیام}},
- EDITOR = {برنجکوب, محمود},
- translator = { صدیقی‌ مشکنانی, محسن and پدرام,حسین },
- TITLE = {اصول طراحی و ویژگیهای داخلی سیستم‌های عامل},
- PUBLISHER = {نشر شیخ بهایی},
- YEAR = {۱۳۸۰},
- ADDRESS = {اصفهان},
- edition = {سوم},
- MONTH = {بهار},
- LANGUAGE = {Persian}
-}
-
-@ARTICLE{واحدی87,
- AUTHOR = {\noopsort{واحدی, مصطفی}{واحدی, مصطفی}},
- TITLE = {موضوعی جدید در هندسه محاسباتی},
- JOURNAL = {مجله فارسی نمونه},
- VOLUME = {1},
- YEAR = {1387},
- NUMBER = {2},
- MONTH = {آبان},
- PAGES = {22-30},
- LANGUAGE = {Persian}
-}
-
-@CONFERENCE{Amintoosi09regional,
- author = {Mahmood Amintoosi and Mahmood Fathy and Nasser Mozayani},
- title = {Regional Varying Image Super-Resolution},
- booktitle = {(CSO 2009) The 2009 IEEE International Joint Conference on Computational Sciences and Optimization},
- year = {2009},
- month = {24-26 April},
- organization = {City University},
- address = {Sanya, Hainan, China},
- pages = {101-105}
-}
-
-@PHDTHESIS{Farsiu05thesis,
- AUTHOR = {Sina Farsiu},
- TITLE = {A Fast and Robust Framework for Image Fusion and Enhancement},
- SCHOOL = {Electrical Engineeting},
- YEAR = {2005},
- ADDRESS = {UC Santa Cruz},
- MONTH = {December}
-}
-
-
-@BOOK{Gonzalez02book,
- AUTHOR = {Gonzalez,, Rafael C. and Woods,, Richard E.},
- TITLE = {Digital Image Processing},
- PUBLISHER = {Prentice-Hall, Inc.},
- YEAR = {2006},
- ISBN = {013168728X},
- EDITION = {3rd},
- ADDRESS = {Upper Saddle River, NJ, USA},
-}
-%</MyReferences.bib>
-%<*plain-fa-output.tex>
-\documentclass[11pt,a4paper]{article}
-% محمود امین‌طوسی، http://webpages.iust.ac.ir/mamintoosi
-
-\usepackage{verbatim}
-\usepackage{xepersian}
-\settextfont[Scale=1]{XB Zar}%{XB Zar}
-\setlatintextfont[Scale=.95]{Linux Libertine}%{Arial}%
-\setdigitfont{XB Zar}
-
-\title{نمونه خروجی با سبک فارسی \lr{plain-fa} در زی‌پرشین}
-\author{}\date{}
-\begin{document}
-\maketitle
-
-\nocite{*}
-
-\bibliographystyle{plain-fa}%{ieeetr-fa}%{persia}%
-\bibliography{MyReferences1}
-
-
-\end{document}
-%</plain-fa-output.tex>
-% \fi
-%
-% \typeout{*************************************************************}
-% \typeout{*}
-% \typeout{* To finish the installation you have to move the following}
-% \typeout{* file into a directory searched by TeX:}
-% \typeout{*}
-% \typeout{* \space\space\space all *.cls, *.sty and *.def files}
-% \typeout{* You also need to compile the *.map files with teckit_compile}
-% \typeout{* and place the resulting *.tec files under}
-% \typeout{* .../fonts/misc/xetex/fontmapping/xepersian}
-% \typeout{*}
-% \typeout{*************************************************************}
-\endinput
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
index f1bcebdd26d..5cd7b3e37e1 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
@@ -1,22 +1,18 @@
%%
%% This is file `algorithm-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `algorithm-xepersian.def')
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{algorithm-xepersian.def}[2010/03/01 v0.2 adaptations for algorithm package]
\def\ALG@name{\if@RTL الگوریتم\else Algorithm\fi}
\def\ALGS@name{الگوریتم‌ها}
\def\listalgorithmname{\if@RTL لیست \ALGS@name\else List of \ALG@name s\fi}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def
index 3a73b6afd02..b4976b15573 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def
@@ -1,21 +1,17 @@
%%
%% This is file `algorithmic-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `algorithmic-xepersian.def')
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{algorithmic-xepersian.def}[2010/03/01 v0.2 adaptations for algorithmic package]
\def\algorithmicrequire{\if@RTL\textbf{ورودی:}\else\textbf{Require:}\fi}
\def\algorithmicensure{\if@RTL\textbf{خروجی:}\else\textbf{Ensure:}\fi}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
index 9c741464de5..8cf59edcf0c 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
@@ -1,24 +1,61 @@
%%
%% This is file `amsart-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `amsart-xepersian.def')
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{amsart-xepersian.def}[2010/03/01 v0.2 adaptations for amsart class]
\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \gdef\thesection{\@harfi\c@section}}
+\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
+ \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}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLtrue\reset@font\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}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLfalse\reset@font\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}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
index 04376bfd4f8..d08afdfbb3d 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
@@ -1,27 +1,63 @@
%%
%% This is file `amsbook-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `amsbook-xepersian.def')
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{amsbook-xepersian.def}[2010/03/01 v0.3 adaptations for amsbook class]
\def\frontmatter{\cleardoublepage\pagenumbering{harfi}}
\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+\def\appendix{\par
+ \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
+ \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}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLtrue\reset@font\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}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLfalse\reset@font\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}
+%%
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
index afc406ba099..61e20ac0b40 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
@@ -1,24 +1,21 @@
%%
%% This is file `article-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `article-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{article-xepersian.def}[2010/03/01 v0.1 adaptations for standard article class]
\renewcommand \thepart {\@tartibi\c@part}
\renewcommand\appendix{\par
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\gdef\thesection{\@harfi\c@section}}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def
index 1b7b9c5a011..566712095fd 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def
@@ -1,20 +1,17 @@
%%
%% This is file `backref-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `backref-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{backref-xepersian.def}[2010/03/01 v0.1 adaptations for backref package]
\def\backrefpagesname{\if@RTL صفحات\else pages\fi}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bidibeamer-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bidibeamer-xepersian.def
deleted file mode 100644
index 86503d0d7ea..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/bidibeamer-xepersian.def
+++ /dev/null
@@ -1,45 +0,0 @@
-%%
-%% This is file `bidibeamer-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `bidibeamer-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\familydefault{\rmdefault}
-\def\latin{\bgroup\LatinAlphs\par\raggedright\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
-\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\raggedleft\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
-\def\endpersian{\par\egroup}
-\def\biditheoremname{قضیه}
-\def\bidicorollaryname{نتیجه}
-\def\bidifactname{حقیقت}
-\def\bidilemmaname{لم}
-\def\bidiproblemname{مسئله}
-\def\bidisolutionname{پاسخ}
-\def\bididefinitionname{تعریف}
-\def\bididefinitionsname{تعریف‌ها}
-\def\bidiexamplename{مثال}
-\def\bidiexamplesname{مثال‌ها}
-\def\bidiproofname{اثبات}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `bidibeamer-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def
new file mode 100644
index 00000000000..d5bd5ad8a7e
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/xepersian/bidicode-xepersian.def
@@ -0,0 +1,28 @@
+%%
+%% This is file `bidicode-xepersian.def',
+
+%%
+%% __________________________________
+%% Copyright © 2008-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{bidicode-xepersian.def}[2010/03/01 v0.1 Persian captions for bidicode package]
+\lst@UserCommand\lstlistlistingname{فهرست مثال‌ها} % \lstlistoflistings
+\lst@UserCommand\lstlistingname{مثال}
+%%
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `bidicode-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def
deleted file mode 100644
index 38e65837ca3..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def
+++ /dev/null
@@ -1,30 +0,0 @@
-%%
-%% This is file `bidimoderncv-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `bidimoderncv-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\def\refname{تألیفات}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `bidimoderncv-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def
index b555567e5ac..e9f5e8a0549 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `book-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `book-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{book-xepersian.def}[2010/03/01 v0.1 adaptations for standard book class]
\renewcommand\frontmatter{%
\cleardoublepage
\@mainmatterfalse
@@ -28,7 +25,7 @@
\gdef\thechapter{\@harfi\c@chapter}
}%end appendix
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def
index ff5a679666f..b48318f1d72 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `bookest-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `bookest-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{bookest-xepersian.def}[2010/03/01 v0.1 adaptations for bookest class]
\renewcommand \thepart {\@tartibi\c@part}
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
@@ -20,7 +17,7 @@
\gdef\thechapter{\@harfi\c@chapter}
}%end appendix
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def
new file mode 100644
index 00000000000..0c118b3d91f
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def
@@ -0,0 +1,65 @@
+%%
+%% This is file `breqn-xepersian.def',
+
+%%
+%% __________________________________
+%% Copyright © 2008-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{breqn-xepersian.def}[2010/03/01 v0.1 adaptations for breqn package]
+\def\@dmath[#1]{\if@RTL\@RTLfalse\addfontfeatures{Mapping=farsidigits}\fi%
+ \everydisplay\expandafter{\the\everydisplay \display@setup}%
+ \if@noskipsec \leavevmode \fi
+ \if@inlabel \leavevmode \global\@inlabelfalse \fi
+ \if\eq@group\else\eq@prelim\fi
+ \setkeys{breqn}{#1}%
+ \the\eqstyle
+ \eq@setnumber
+ \begingroup
+ \eq@setup@a
+ \eq@startup
+}
+\def\@dgroup[#1]{\if@RTL\@RTLfalse\addfontfeatures{Mapping=farsidigits}\fi%
+ \let\eq@group\@True \global\let\eq@GRP@first@dmath\@True
+ \global\GRP@queue\@emptytoks \global\setbox\GRP@box\box\voidb@x
+ \global\let\GRP@label\@empty
+ \global\grp@wdL\z@\global\grp@wdR\z@\global\grp@wdT\z@
+ \global\grp@linewidth\z@\global\grp@wdNum\z@
+ \global\let\grp@eqs@numbered\@False
+ \global\let\grp@aligned\@True
+ \global\let\grp@shiftnumber\@False
+ \eq@prelim
+ \setkeys{breqn}{#1}%
+ \if\grp@hasNumber \grp@setnumber \fi
+}
+\def\@dseries[#1]{\if@RTL\@RTLfalse\addfontfeatures{Mapping=farsidigits}\fi%
+ \let\display@setup\dseries@display@setup
+ % Question: should this be the default for dseries???
+ \global\eq@wdCond\z@
+ \@dmath[layout={M},#1]%
+ \mathsurround\z@\@@math \penalty\@Mi
+ \let\endmath\ends@math
+ \def\premath{%
+ \ifdim\lastskip<.3em \unskip
+ \else\ifnum\lastpenalty<\@M \dquad\fi\fi
+}%
+ \def\postmath{\unpenalty\eq@addpunct \penalty\intermath@penalty \dquad \@ignoretrue}%
+\ignorespaces
+}
+%%
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `breqn-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def b/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def
index 2b3bf59a5e4..82a8ddf5da2 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def
@@ -1,831 +1,484 @@
%%
%% This is file `commands-ltx.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `commands-ltx.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\eqcommand[]{\abovedisplayshortskip}
-\eqcommand[]{\abovedisplayskip}
-\eqcommand[]{\abstractname}
-\eqcommand[]{\acute}
-\eqcommand[]{\addcontentsline}
-\eqcommand[]{\address}
-\eqcommand[]{\addtocontents}
-\eqcommand[]{\addtocounter}
-\eqcommand[]{\addtolength}
-\eqcommand[]{\addvspace}
-\eqcommand[]{\aleph}
-\eqcommand[]{\allowdisplaybreaks}
-\eqcommand[]{\Alph}
-\eqcommand[]{\alph}
-\eqcommand[]{\alpha}
-\eqcommand[]{\alsoname}
-\eqcommand[]{\amalg}
-\eqcommand[]{\and}
-\eqcommand[]{\angle}
-\eqcommand[]{\appendixname}
-\eqcommand[]{\approx}
-\eqcommand[]{\arabic}
-\eqcommand[]{\arccos}
-\eqcommand[]{\arcsin}
-\eqcommand[]{\arctan}
-\eqcommand[]{\arg}
-\eqcommand[]{\arraycolsep}
-\eqcommand[]{\arrayrulewidth}
-\eqcommand[]{\arraystretch}
-\eqcommand[]{\ast}
-\eqcommand[]{\asymp}
-\eqcommand[]{\AtBeginDocument}
-\eqcommand[]{\AtEndDocument}
-\eqcommand[]{\AtEndOfClass}
-\eqcommand[]{\AtEndOfPackage}
-\eqcommand[]{\author}
-\eqcommand[]{\backmatter}
-\eqcommand[]{\backslash}
-\eqcommand[]{\bar}
-\eqcommand[]{\baselineskip}
-\eqcommand[]{\baselinestretch}
-\eqcommand[]{\begin}
-\eqcommand[]{\belowdisplayshortskip}
-\eqcommand[]{\belowdisplayskip}
-\eqcommand[]{\beta}
-\eqcommand[]{\bfdefault}
-\eqcommand[]{\bfseries}
-\eqcommand[]{\bibitem}
-\eqcommand[]{\bibliography}
-\eqcommand[]{\bibliographystyle}
-\eqcommand[]{\bibname}
-\eqcommand[]{\big}
-\eqcommand[]{\Big}
-\eqcommand[]{\bigcap}
-\eqcommand[]{\bigcirc}
-\eqcommand[]{\bigcup}
-\eqcommand[]{\bigg}
-\eqcommand[]{\Bigg}
-\eqcommand[]{\bigodot}
-\eqcommand[]{\bigoplus}
-\eqcommand[]{\bigotimes}
-\eqcommand[]{\bigskip}
-\eqcommand[]{\bigskipamount}
-\eqcommand[]{\bigsqcup}
-\eqcommand[]{\bigtriangledown}
-\eqcommand[]{\bigtriangleup}
-\eqcommand[]{\biguplus}
-\eqcommand[]{\bigvee}
-\eqcommand[]{\bigwedge}
-\eqcommand[]{\binom}
-\eqcommand[]{\bmod}
-\eqcommand[]{\boldmath}
-\eqcommand[]{\boldsymbol}
-\eqcommand[]{\bot}
-\eqcommand[]{\botfigrule}
-\eqcommand[]{\bottomfraction}
-\eqcommand[]{\bowtie}
-\eqcommand[]{\Box}
-\eqcommand[]{\boxed}
-\eqcommand[]{\breve}
-\eqcommand[]{\bullet}
-\eqcommand[]{\cap}
-\eqcommand[]{\caption}
-\eqcommand[]{\cc}
-\eqcommand[]{\ccname}
-\eqcommand[]{\cdot}
-\eqcommand[]{\cdots}
-\eqcommand[]{\centering}
-\eqcommand[]{\centerline}
-\eqcommand[]{\cfrac}
-\eqcommand[]{\chapter}
-\eqcommand[]{\chapter*}
-\eqcommand[]{\chaptername}
-\eqcommand[]{\check}
-\eqcommand[]{\CheckCommand}
-\eqcommand[]{\chi}
-\eqcommand[]{\circ}
-\eqcommand[]{\circle}
-\eqcommand[]{\circle*}
-\eqcommand[]{\cite}
-\eqcommand[]{\citep}
-\eqcommand[]{\citet}
-\eqcommand[]{\ClassError}
-\eqcommand[]{\ClassInfo}
-\eqcommand[]{\ClassWarning}
-\eqcommand[]{\ClassWarningNoLine}
-\eqcommand[]{\cleardoublepage}
-\eqcommand[]{\clearpage}
-\eqcommand[]{\cline}
-\eqcommand[]{\closing}
-\eqcommand[]{\clubsuit}
-\eqcommand[]{\color}
-\eqcommand[]{\colorbox}
-\eqcommand[]{\columnsep}
-\eqcommand[]{\columnseprule}
-\eqcommand[]{\cong}
-\eqcommand[]{\contentsline}
-\eqcommand[]{\contentsname}
-\eqcommand[]{\coprod}
-\eqcommand[]{\copyright}
-\eqcommand[]{\cos}
-\eqcommand[]{\cosh}
-\eqcommand[]{\cot}
-\eqcommand[]{\coth}
-\eqcommand[]{\csc}
-\eqcommand[]{\cup}
-\eqcommand[]{\CurrentOption}
-\eqcommand[]{\dag}
-\eqcommand[]{\dagger}
-\eqcommand[]{\dashbox}
-\eqcommand[]{\dashv}
-\eqcommand[]{\date}
-\eqcommand[]{\dbinom}
-\eqcommand[]{\dblfigrule}
-\eqcommand[]{\dblfloatpagefraction}
-\eqcommand[]{\dblfloatsep}
-\eqcommand[]{\dbltextfloatsep}
-\eqcommand[]{\dbltopfraction}
-\eqcommand[]{\ddag}
-\eqcommand[]{\ddagger}
-\eqcommand[]{\dddot}
-\eqcommand[]{\ddddot}
-\eqcommand[]{\ddot}
-\eqcommand[]{\ddots}
-\eqcommand[]{\DeclareGraphicsExtensions}
-\eqcommand[]{\DeclareGraphicsRule}
-\eqcommand[]{\DeclareOption}
-\eqcommand[]{\DeclareOption*}
-\eqcommand[]{\DeclareRobustCommand}
-\eqcommand[]{\DeclareRobustCommand*}
-\eqcommand[]{\definecolor}
-\eqcommand[]{\deg}
-\eqcommand[]{\DeleteShortVerb}
-\eqcommand[]{\Delta}
-\eqcommand[]{\delta}
-\eqcommand[]{\depth}
-\eqcommand[]{\det}
-\eqcommand[]{\dfrac}
-\eqcommand[]{\Diamond}
-\eqcommand[]{\diamond}
-\eqcommand[]{\diamondsuit}
-\eqcommand[]{\dim}
-\eqcommand[]{\discretionary}
-\eqcommand[]{\displaybreak}
-\eqcommand[]{\displaystyle}
-\eqcommand[]{\div}
-\eqcommand[]{\documentclass}
-\eqcommand[]{\dot}
-\eqcommand[]{\doteq}
-\eqcommand[]{\dotfill}
-\eqcommand[]{\dots}
-\eqcommand[]{\dotsb}
-\eqcommand[]{\dotsc}
-\eqcommand[]{\dotsi}
-\eqcommand[]{\dotsm}
-\eqcommand[]{\doublebox}
-\eqcommand[]{\doublerulesep}
-\eqcommand[]{\Downarrow}
-\eqcommand[]{\downarrow}
-\eqcommand[]{\ell}
-\eqcommand[]{\em}
-\eqcommand[]{\emph}
-\eqcommand[]{\emptyset}
-\eqcommand[]{\encl}
-\eqcommand[]{\enclname}
-\eqcommand[]{\end}
-\eqcommand[]{\endfirsthead}
-\eqcommand[]{\endfoot}
-\eqcommand[]{\endhead}
-\eqcommand[]{\endlastfoot}
-\eqcommand[]{\enlargethispage}
-\eqcommand[]{\enlargethispage*}
-\eqcommand[]{\ensuremath}
-\eqcommand[]{\epsilon}
-\eqcommand[]{\eqref}
-\eqcommand[]{\equiv}
-\eqcommand[]{\eta}
-\eqcommand[]{\euro}
-\eqcommand[]{\EUR}
-\eqcommand[]{\evensidemargin}
-\eqcommand[]{\ExecuteOptions}
-\eqcommand[]{\exists}
-\eqcommand[]{\exp}
-\eqcommand[]{\extracolsep}
-\eqcommand[]{\fancypage}
-\eqcommand[]{\fbox}
-\eqcommand[]{\fboxrule}
-\eqcommand[]{\fboxsep}
-\eqcommand[]{\fcolorbox}
-\eqcommand[]{\figurename}
-\eqcommand[]{\fill}
-\eqcommand[]{\flat}
-\eqcommand[]{\floatpagefraction}
-\eqcommand[]{\floatsep}
-\eqcommand[]{\flushbottom}
-\eqcommand[]{\fnsymbol}
-\eqcommand[]{\fontfamily}
-\eqcommand[]{\fontseries}
-\eqcommand[]{\fontshape}
-\eqcommand[]{\fontsize}
-\eqcommand[]{\LTRfootnote}
-\eqcommand[]{\footnote}
-\eqcommand[]{\footnotemark}
-\eqcommand[]{\footnoterule}
-\eqcommand[]{\footnotesep}
-\eqcommand[]{\footnotesize}
-\eqcommand[]{\footnotetext}
-\eqcommand[]{\footskip}
-\eqcommand[]{\forall}
-\eqcommand[]{\frac}
-\eqcommand[]{\frame}
-\eqcommand[]{\framebox}
-\eqcommand[]{\frenchspacing}
-\eqcommand[]{\frontmatter}
-\eqcommand[]{\frown}
-\eqcommand[]{\fussy}
-\eqcommand[]{\Gamma}
-\eqcommand[]{\gamma}
-\eqcommand[]{\gcd}
-\eqcommand[]{\ge}
-\eqcommand[]{\genfrac}
-\eqcommand[]{\geq}
-\eqcommand[]{\gets}
-\eqcommand[]{\gg}
-\eqcommand[]{\glossary}
-\eqcommand[]{\glossaryentry}
-\eqcommand[]{\graphpaper}
-\eqcommand[]{\grave}
-\eqcommand[]{\guillemotleft}
-\eqcommand[]{\guillemotright}
-\eqcommand[]{\guilsinglleft}
-\eqcommand[]{\guilsinglright}
-\eqcommand[]{\hat}
-\eqcommand[]{\hbar}
-\eqcommand[]{\headheight}
-\eqcommand[]{\headsep}
-\eqcommand[]{\headtoname}
-\eqcommand[]{\heartsuit}
-\eqcommand[]{\height}
-\eqcommand[]{\hfill}
-\eqcommand[]{\hline}
-\eqcommand[]{\hoffset}
-\eqcommand[]{\hom}
-\eqcommand[]{\hookleftarrow}
-\eqcommand[]{\hookrightarrow}
-\eqcommand[]{\hrulefill}
-\eqcommand[]{\hspace}
-\eqcommand[]{\hspace*}
-\eqcommand[]{\huge}
-\eqcommand[]{\Huge}
-\eqcommand[]{\hyperlink}
-\eqcommand[]{\hypersetup}
-\eqcommand[]{\hypertarget}
-\eqcommand[]{\hyphenation}
-\eqcommand[]{\idotsint}
-\eqcommand[]{\iff}
-\eqcommand[]{\IfFileExists}
-\eqcommand[]{\ifthenelse}
-\eqcommand[]{\Im}
-\eqcommand[]{\imath}
-\eqcommand[]{\in}
-\eqcommand[]{\include}
-\eqcommand[]{\includegraphics}
-\eqcommand[]{\includegraphics*}
-\eqcommand[]{\includeonly}
-\eqcommand[]{\indent}
-\eqcommand[]{\index}
-\eqcommand[]{\indexentry}
-\eqcommand[]{\indexname}
-\eqcommand[]{\indexspace}
-\eqcommand[]{\inf}
-\eqcommand[]{\infty}
-\eqcommand[]{\input}
-\eqcommand[]{\InputIfFileExists}
-\eqcommand[]{\int}
-\eqcommand[]{\iint}
-\eqcommand[]{\iiint}
-\eqcommand[]{\iiiint}
-\eqcommand[]{\intertext}
-\eqcommand[]{\intertextsep}
-\eqcommand[]{\invisible}
-\eqcommand[]{\iota}
-\eqcommand[]{\itdefault}
-\eqcommand[]{\item}
-\eqcommand[]{\itemindent}
-\eqcommand[]{\itemsep}
-\eqcommand[]{\itshape}
-\eqcommand[]{\jmath}
-\eqcommand[]{\join}
-\eqcommand[]{\jot}
-\eqcommand[]{\kappa}
-\eqcommand[]{\ker}
-\eqcommand[]{\kill}
-\eqcommand[]{\label}
-\eqcommand[]{\labelenumi}
-\eqcommand[]{\labelenumii}
-\eqcommand[]{\labelenumiii}
-\eqcommand[]{\labelenumiv}
-\eqcommand[]{\labelitemi}
-\eqcommand[]{\labelitemii}
-\eqcommand[]{\labelitemiii}
-\eqcommand[]{\labelitemiv}
-\eqcommand[]{\labelsep}
-\eqcommand[]{\labelwidth}
-\eqcommand[]{\Lambda}
-\eqcommand[]{\lambda}
-\eqcommand[]{\langle}
-\eqcommand[]{\language}
-\eqcommand[]{\large}
-\eqcommand[]{\Large}
-\eqcommand[]{\LARGE}
-\eqcommand[]{\LaTeX}
-\eqcommand[]{\LaTeXe}
-\eqcommand[]{\lceil}
-\eqcommand[]{\ldots}
-\eqcommand[]{\le}
-\eqcommand[]{\leadsto}
-\eqcommand[]{\left}
-\eqcommand[]{\Leftarrow}
-\eqcommand[]{\leftarrow}
-\eqcommand[]{\lefteqn}
-\eqcommand[]{\leftharpoondown}
-\eqcommand[]{\leftharpoonup}
-\eqcommand[]{\leftmargin}
-\eqcommand[]{\Leftrightarrow}
-\eqcommand[]{\leftrightarrow}
-\eqcommand[]{\leftroot}
-\eqcommand[]{\leq}
-\eqcommand[]{\lfloor}
-\eqcommand[]{\lg}
-\eqcommand[]{\lhd}
-\eqcommand[]{\lim}
-\eqcommand[]{\liminf}
-\eqcommand[]{\limits}
-\eqcommand[]{\limsup}
-\eqcommand[]{\line}
-\eqcommand[]{\linebreak}
-\eqcommand[]{\linethickness}
-\eqcommand[]{\linewidth}
-\eqcommand[]{\listfigurename}
-\eqcommand[]{\listfiles}
-\eqcommand[]{\listoffigures}
-\eqcommand[]{\listoftables}
-\eqcommand[]{\listparindent}
-\eqcommand[]{\listtablename}
-\eqcommand[]{\ll}
-\eqcommand[]{\ln}
-\eqcommand[]{\LoadClass}
-\eqcommand[]{\LoadClassWithOptions}
-\eqcommand[]{\location}
-\eqcommand[]{\log}
-\eqcommand[]{\Longleftarrow}
-\eqcommand[]{\longleftarrow}
-\eqcommand[]{\Longleftrightarrow}
-\eqcommand[]{\longleftrightarrow}
-\eqcommand[]{\longmapsto}
-\eqcommand[]{\Longrightarrow}
-\eqcommand[]{\longrightarrow}
-\eqcommand[]{\lvert}
-\eqcommand[]{\lVert}
-\eqcommand[]{\mainmatter}
-\eqcommand[]{\makebox}
-\eqcommand[]{\makeglossary}
-\eqcommand[]{\makeindex}
-\eqcommand[]{\makelabel}
-\eqcommand[]{\makelabels}
-\eqcommand[]{\MakeLowercase}
-\eqcommand[]{\MakeShortVerb}
-\eqcommand[]{\maketitle}
-\eqcommand[]{\MakeUppercase}
-\eqcommand[]{\mapsto}
-\eqcommand[]{\marginpar}
-\eqcommand[]{\marginparpush}
-\eqcommand[]{\marginparsep}
-\eqcommand[]{\marginparwidth}
-\eqcommand[]{\markboth}
-\eqcommand[]{\markright}
-\eqcommand[]{\mathbf}
-\eqcommand[]{\mathcal}
-\eqcommand[]{\mathindent}
-\eqcommand[]{\mathit}
-\eqcommand[]{\mathnormal}
-\eqcommand[]{\mathring}
-\eqcommand[]{\mathrm}
-\eqcommand[]{\mathsf}
-\eqcommand[]{\mathtt}
-\eqcommand[]{\max}
-\eqcommand[]{\mbox}
-\eqcommand[]{\mddefault}
-\eqcommand[]{\mdseries}
-\eqcommand[]{\medskip}
-\eqcommand[]{\medskipamount}
-\eqcommand[]{\medspace}
-\eqcommand[]{\MessageBreak}
-\eqcommand[]{\mho}
-\eqcommand[]{\mid}
-\eqcommand[]{\min}
-\eqcommand[]{\mod}
-\eqcommand[]{\models}
-\eqcommand[]{\mp}
-\eqcommand[]{\mspace}
-\eqcommand[]{\mu}
-\eqcommand[]{\multicolumn}
-\eqcommand[]{\multiput}
-\eqcommand[]{\multlinegap}
-\eqcommand[]{\nabla}
-\eqcommand[]{\name}
-\eqcommand[]{\natural}
-\eqcommand[]{\nearrow}
-\eqcommand[]{\NeedsTeXFormat}
-\eqcommand[]{\neg}
-\eqcommand[]{\negmedspace}
-\eqcommand[]{\negthickspace}
-\eqcommand[]{\negthinspace}
-\eqcommand[]{\neq}
-\eqcommand[]{\newboolean}
-\eqcommand[]{\newcommand}
-\eqcommand[]{\newcommand*}
-\eqcommand[]{\newcounter}
-\eqcommand[]{\newenvironment}
-\eqcommand[]{\newenvironment*}
-\eqcommand[]{\newfont}
-\eqcommand[]{\newlength}
-\eqcommand[]{\newline}
-\eqcommand[]{\newpage}
-\eqcommand[]{\newsavebox}
-\eqcommand[]{\newtheorem}
-\eqcommand[]{\ni}
-\eqcommand[]{\nocite}
-\eqcommand[]{\nofiles}
-\eqcommand[]{\noindent}
-\eqcommand[]{\nolimits}
-\eqcommand[]{\nolinebreak}
-\eqcommand[]{\nonfrenchspacing}
-\eqcommand[]{\nonumber}
-\eqcommand[]{\nopagebreak}
-\eqcommand[]{\normalcolor}
-\eqcommand[]{\normalfont}
-\eqcommand[]{\normalmarginpar}
-\eqcommand[]{\normalsize}
-\eqcommand[]{\not}
-\eqcommand[]{\notag}
-\eqcommand[]{\notin}
-\eqcommand[]{\nu}
-\eqcommand[]{\numberwithin}
-\eqcommand[]{\nwarrow}
-\eqcommand[]{\oddsidemargin}
-\eqcommand[]{\odot}
-\eqcommand[]{\oint}
-\eqcommand[]{\Omega}
-\eqcommand[]{\omega}
-\eqcommand[]{\ominus}
-\eqcommand[]{\onecolumn}
-\eqcommand[]{\onlynotes}
-\eqcommand[]{\onlyslides}
-\eqcommand[]{\opening}
-\eqcommand[]{\oplus}
-\eqcommand[]{\OptionNotUsed}
-\eqcommand[]{\oslash}
-\eqcommand[]{\otimes}
-\eqcommand[]{\oval}
-\eqcommand[]{\ovalbox}
-\eqcommand[]{\Ovalbox}
-\eqcommand[]{\overbrace}
-\eqcommand[]{\overleftarrow}
-\eqcommand[]{\overleftrightarrow}
-\eqcommand[]{\overline}
-\eqcommand[]{\overrightarrow}
-\eqcommand[]{\overset}
-\eqcommand[]{\PackageError}
-\eqcommand[]{\PackageInfo}
-\eqcommand[]{\PackageWarning}
-\eqcommand[]{\PackageWarningNoLine}
-\eqcommand[]{\pagebreak}
-\eqcommand[]{\pagecolor}
-\eqcommand[]{\pagename}
-\eqcommand[]{\pagenumbering}
-\eqcommand[]{\pageref}
-\eqcommand[]{\pagestyle}
-\eqcommand[]{\paperheight}
-\eqcommand[]{\paperwidth}
-\eqcommand[]{\par}
-\eqcommand[]{\paragraph}
-\eqcommand[]{\paragraph*}
-\eqcommand[]{\parallel}
-\eqcommand[]{\parbox}
-\eqcommand[]{\parindent}
-\eqcommand[]{\parsep}
-\eqcommand[]{\parskip}
-\eqcommand[]{\part}
-\eqcommand[]{\part*}
-\eqcommand[]{\partial}
-\eqcommand[]{\partname}
-\eqcommand[]{\partopsep}
-\eqcommand[]{\PassOptionToClass}
-\eqcommand[]{\PassOptionToPackage}
-\eqcommand[]{\path}
-\eqcommand[]{\prep}
-\eqcommand[]{\Phi}
-\eqcommand[]{\phi}
-\eqcommand[]{\Pi}
-\eqcommand[]{\pi}
-\eqcommand[]{\pm}
-\eqcommand[]{\pmb}
-\eqcommand[]{\pmod}
-\eqcommand[]{\pod}
-\eqcommand[]{\poptabs}
-\eqcommand[]{\pounds}
-\eqcommand[]{\Pr}
-\eqcommand[]{\prec}
-\eqcommand[]{\preceq}
-\eqcommand[]{\prime}
-\eqcommand[]{\printindex}
-\eqcommand[]{\ProcessOptions}
-\eqcommand[]{\ProcessOptions*}
-\eqcommand[]{\prod}
-\eqcommand[]{\propto}
-\eqcommand[]{\protect}
-\eqcommand[]{\providecommand}
-\eqcommand[]{\providecommand*}
-\eqcommand[]{\ProvidesClass}
-\eqcommand[]{\ProvidesFile}
-\eqcommand[]{\ProvidesPackage}
-\eqcommand[]{\ps}
-\eqcommand[]{\Psi}
-\eqcommand[]{\psi}
-\eqcommand[]{\pushtabs}
-\eqcommand[]{\put}
-\eqcommand[]{\qbezier}
-\eqcommand[]{\qquad}
-\eqcommand[]{\quad}
-\eqcommand[]{\raggedbottom}
-\eqcommand[]{\raggedleft}
-\eqcommand[]{\raggedright}
-\eqcommand[]{\raisebox}
-\eqcommand[]{\raisetag}
-\eqcommand[]{\rangle}
-\eqcommand[]{\rceil}
-\eqcommand[]{\Re}
-\eqcommand[]{\ref}
-\eqcommand[]{\reflectbox}
-\eqcommand[]{\refname}
-\eqcommand[]{\refstepcounter}
-\eqcommand[]{\renewcommand}
-\eqcommand[]{\renewcommand*}
-\eqcommand[]{\renewenvironment}
-\eqcommand[]{\renewenvironment*}
-\eqcommand[]{\RequirePackage}
-\eqcommand[]{\RequirePackageWithOptions}
-\eqcommand[]{\resizebox}
-\eqcommand[]{\resizebox*}
-\eqcommand[]{\reversemarginpar}
-\eqcommand[]{\rfloor}
-\eqcommand[]{\rhd}
-\eqcommand[]{\rho}
-\eqcommand[]{\right}
-\eqcommand[]{\Rightarrow}
-\eqcommand[]{\rightarrow}
-\eqcommand[]{\rightharpoondown}
-\eqcommand[]{\rightharpoonup}
-\eqcommand[]{\rightleftharpoons}
-\eqcommand[]{\rightmargin}
-\eqcommand[]{\rmdefault}
-\eqcommand[]{\rmfamily}
-\eqcommand[]{\Roman}
-\eqcommand[]{\roman}
-\eqcommand[]{\rotatebox}
-\eqcommand[]{\rule}
-\eqcommand[]{\rvert}
-\eqcommand[]{\rVert}
-\eqcommand[]{\savebox}
-\eqcommand[]{\sbox}
-\eqcommand[]{\scalebox}
-\eqcommand[]{\scdefault}
-\eqcommand[]{\scriptscriptstyle}
-\eqcommand[]{\scriptsize}
-\eqcommand[]{\scripstyle}
-\eqcommand[]{\scshape}
-\eqcommand[]{\searrow}
-\eqcommand[]{\sec}
-\eqcommand[]{\section}
-\eqcommand[]{\section*}
-\eqcommand[]{\see}
-\eqcommand[]{\seealso}
-\eqcommand[]{\seename}
-\eqcommand[]{\selectfont}
-\eqcommand[]{\setboolean}
-\eqcommand[]{\setcounter}
-\eqcommand[]{\setlength}
-\eqcommand[]{\setminus}
-\eqcommand[]{\settodepth}
-\eqcommand[]{\settoheight}
-\eqcommand[]{\settowidth}
-\eqcommand[]{\sfdefault}
-\eqcommand[]{\sffamily}
-\eqcommand[]{\shadowbox}
-\eqcommand[]{\sharp}
-\eqcommand[]{\shortstack}
-\eqcommand[]{\sideset}
-\eqcommand[]{\Sigma}
-\eqcommand[]{\sigma}
-\eqcommand[]{\signature}
-\eqcommand[]{\sim}
-\eqcommand[]{\simeq}
-\eqcommand[]{\sin}
-\eqcommand[]{\sinh}
-\eqcommand[]{\sldefault}
-\eqcommand[]{\sloppy}
-\eqcommand[]{\slshape}
-\eqcommand[]{\small}
-\eqcommand[]{\smallskip}
-\eqcommand[]{\smallskipamount}
-\eqcommand[]{\smash}
-\eqcommand[]{\smile}
-\eqcommand[]{\spadesuit}
-\eqcommand[]{\sqcap}
-\eqcommand[]{\sqcup}
-\eqcommand[]{\sqrt}
-\eqcommand[]{\sqsubset}
-\eqcommand[]{\sqsubseteq}
-\eqcommand[]{\sqsupset}
-\eqcommand[]{\sqsupseteq}
-\eqcommand[]{\stackrel}
-\eqcommand[]{\star}
-\eqcommand[]{\stepcounter}
-\eqcommand[]{\stretch}
-\eqcommand[]{\subitem}
-\eqcommand[]{\subparagraph}
-\eqcommand[]{\subparagraph*}
-\eqcommand[]{\subsection}
-\eqcommand[]{\subsection*}
-\eqcommand[]{\substack}
-\eqcommand[]{\subsubitem}
-\eqcommand[]{\subsubsection}
-\eqcommand[]{\subsubsection*}
-\eqcommand[]{\subset}
-\eqcommand[]{\subseteq}
-\eqcommand[]{\succ}
-\eqcommand[]{\succeq}
-\eqcommand[]{\sum}
-\eqcommand[]{\sup}
-\eqcommand[]{\supressfloats}
-\eqcommand[]{\supset}
-\eqcommand[]{\supseteq}
-\eqcommand[]{\surd}
-\eqcommand[]{\swarrow}
-\eqcommand[]{\tabbingsep}
-\eqcommand[]{\tabcolsep}
-\eqcommand[]{\tableofcontents}
-\eqcommand[]{\tablename}
-\eqcommand[]{\tabularnewline}
-\eqcommand[]{\tag}
-\eqcommand[]{\tan}
-\eqcommand[]{\tanh}
-\eqcommand[]{\tau}
-\eqcommand[]{\tbinom}
-\eqcommand[]{\telephone}
-\eqcommand[]{\TeX}
-\eqcommand[]{\text}
-\eqcommand[]{\textbullet}
-\eqcommand[]{\textemdash}
-\eqcommand[]{\textendash}
-\eqcommand[]{\textexclamdown}
-\eqcommand[]{\textperiodcentered}
-\eqcommand[]{\textquestiondown}
-\eqcommand[]{\textquotedblleft}
-\eqcommand[]{\textquotedblright}
-\eqcommand[]{\textquoteleft}
-\eqcommand[]{\textquoteright}
-\eqcommand[]{\textvisiblespace}
-\eqcommand[]{\textasciicircum}
-\eqcommand[]{\textasciitilde}
-\eqcommand[]{\textbackslash}
-\eqcommand[]{\textbar}
-\eqcommand[]{\textgreater}
-\eqcommand[]{\textless}
-\eqcommand[]{\textbf}
-\eqcommand[]{\textcircled}
-\eqcommand[]{\textcolor}
-\eqcommand[]{\textcompwordmark}
-\eqcommand[]{\textfloatsep}
-\eqcommand[]{\textfraction}
-\eqcommand[]{\textheight}
-\eqcommand[]{\textit}
-\eqcommand[]{\textmd}
-\eqcommand[]{\textnormal}
-\eqcommand[]{\textregistered}
-\eqcommand[]{\textrm}
-\eqcommand[]{\textsc}
-\eqcommand[]{\textsf}
-\eqcommand[]{\textsl}
-\eqcommand[]{\textstyle}
-\eqcommand[]{\textsuperscript}
-\eqcommand[]{\texttrademark}
-\eqcommand[]{\texttt}
-\eqcommand[]{\textup}
-\eqcommand[]{\textwidth}
-\eqcommand[]{\tfrac}
-\eqcommand[]{\thanks}
-\eqcommand[]{\Theta}
-\eqcommand[]{\theta}
-\eqcommand[]{\thicklines}
-\eqcommand[]{\thickspace}
-\eqcommand[]{\thinlines}
-\eqcommand[]{\thinspace}
-\eqcommand[]{\thisfancypage}
-\eqcommand[]{\thispagestyle}
-\eqcommand[]{\tilde}
-\eqcommand[]{\tiny}
-\eqcommand[]{\times}
-\eqcommand[]{\title}
-\eqcommand[]{\to}
-\eqcommand[]{\today}
-\eqcommand[]{\top}
-\eqcommand[]{\topfigrule}
-\eqcommand[]{\topfraction}
-\eqcommand[]{\topmargin}
-\eqcommand[]{\topsep}
-\eqcommand[]{\topskip}
-\eqcommand[]{\totalheight}
-\eqcommand[]{\triangle}
-\eqcommand[]{\triangleleft}
-\eqcommand[]{\triangleright}
-\eqcommand[]{\ttdefault}
-\eqcommand[]{\ttfamily}
-\eqcommand[]{\twocolumn}
-\eqcommand[]{\typein}
-\eqcommand[]{\typeout}
-\eqcommand[]{\unboldmath}
-\eqcommand[]{\underbrace}
-\eqcommand[]{\underleftarrow}
-\eqcommand[]{\underleftrightarrow}
-\eqcommand[]{\underline}
-\eqcommand[]{\underrightarrow}
-\eqcommand[]{\underset}
-\eqcommand[]{\unitlength}
-\eqcommand[]{\unlhd}
-\eqcommand[]{\unrhd}
-\eqcommand[]{\Uparrow}
-\eqcommand[]{\uparrow}
-\eqcommand[]{\updefault}
-\eqcommand[]{\Updownarrow}
-\eqcommand[]{\updownarrow}
-\eqcommand[]{\uplus}
-\eqcommand[]{\upshape}
-\eqcommand[]{\Upsilon}
-\eqcommand[]{\upsilon}
-\eqcommand[]{\uproot}
-\eqcommand[]{\url}
-\eqcommand[]{\urlstyle}
-\eqcommand[]{\usebox}
-\eqcommand[]{\usecounter}
-\eqcommand[]{\usefont}
-\eqcommand[]{\usepackage}
-\eqcommand[]{\value}
-\eqcommand[]{\varepsilon}
-\eqcommand[]{\varinjlim}
-\eqcommand[]{\varliminf}
-\eqcommand[]{\varlimsup}
-\eqcommand[]{\varphi}
-\eqcommand[]{\varpi}
-\eqcommand[]{\varprojlim}
-\eqcommand[]{\varrho}
-\eqcommand[]{\varsigma}
-\eqcommand[]{\vartheta}
-\eqcommand[]{\vdash}
-\eqcommand[]{\vdots}
-\eqcommand[]{\vec}
-\eqcommand[]{\vector}
-\eqcommand[]{\vee}
-\eqcommand[]{\verb}
-\eqcommand[]{\verb*}
-\eqcommand[]{\vfill}
-\eqcommand[]{\visible}
-\eqcommand[]{\vline}
-\eqcommand[]{\voffset}
-\eqcommand[]{\vpageref}
-\eqcommand[]{\vref}
-\eqcommand[]{\vspace}
-\eqcommand[]{\vspace*}
-\eqcommand[]{\wedge}
-\eqcommand[]{\whiledo}
-\eqcommand[]{\widehat}
-\eqcommand[]{\widetilde}
-\eqcommand[]{\width}
-\eqcommand[]{\wp}
-\eqcommand[]{\wr}
-\eqcommand[]{\Xi}
-\eqcommand[]{\xi}
-\eqcommand[]{\xleftarrow}
-\eqcommand[]{\xrightarrow}
-\eqcommand[]{\zeta}
+\ProvidesFile{commands-ltx.def}[2010/03/01 v0.2 Persian localisation of LaTeX2e commands]
+\eqcommand[\پرش‌کوتاه‌بالای‌نمایش]{\abovedisplayshortskip}
+\eqcommand[\پرش‌بالای‌نمایش]{\abovedisplayskip}
+\eqcommand[\نام‌چکیده]{\abstractname}
+\eqcommand[\بیفزاخط‌فهرست]{\addcontentsline}
+\eqcommand[\آدرس]{\address}
+\eqcommand[\بیفزابرفهرست]{\addtocontents}
+\eqcommand[\بیفزابرشمارنده]{\addtocounter}
+\eqcommand[\بیفزابرطول]{\addtolength}
+\eqcommand[\بیفزافاصله‌ع]{\addvspace}
+\eqcommand[\الف]{\aleph}
+\eqcommand[\شکست‌نمایش‌مجاز]{\allowdisplaybreaks}
+\eqcommand[\حروف‌ب]{\Alph}
+\eqcommand[\حروف‌ک]{\alph}
+\eqcommand[\نام‌همچنین]{\alsoname}
+\eqcommand[\و]{\and}
+\eqcommand[\زاویه]{\angle}
+\eqcommand[\نام‌پیوست]{\appendixname}
+\eqcommand[\تقریب]{\approx}
+\eqcommand[\عربی]{\arabic}
+\eqcommand[\آرگ]{\arg}
+\eqcommand[\جداگرستون‌آرایه]{\arraycolsep}
+\eqcommand[\عرض‌نوارآرایه]{\arrayrulewidth}
+\eqcommand[\کشیدگی‌آرایه]{\arraystretch}
+\eqcommand[\درشروع‌نوشتار]{\AtBeginDocument}
+\eqcommand[\درپایان‌نوشتار]{\AtEndDocument}
+\eqcommand[\درپایان‌کلاس]{\AtEndOfClass}
+\eqcommand[\درپایان‌بسته]{\AtEndOfPackage}
+\eqcommand[\نویسنده]{\author}
+\eqcommand[\مطلب‌پشت]{\backmatter}
+\eqcommand[\شکاف‌پشت]{\backslash}
+\eqcommand[\میله]{\bar}
+\eqcommand[\پرش‌خط‌کرسی]{\baselineskip}
+\eqcommand[\کشیدگی‌خط‌کرسی]{\baselinestretch}
+\eqcommand[\شروع]{\begin}
+\eqcommand[\پرش‌کوتاه‌زیرنمایش]{\belowdisplayshortskip}
+\eqcommand[\پرش‌زیرنمایش]{\belowdisplayskip}
+\eqcommand[\پیش‌فرض‌سیاه]{\bfdefault}
+\eqcommand[\سری‌سیاه]{\bfseries}
+\eqcommand[\بندکتاب‌نامه]{\bibitem}
+\eqcommand[\کتاب‌نامه]{\bibliography}
+\eqcommand[\سبک‌کتاب‌نامه]{\bibliographystyle}
+\eqcommand[\نام‌کتاب‌نامه]{\bibname}
+\eqcommand[\پرش‌بزرگ]{\bigskip}
+\eqcommand[\مقدارپرش‌بزرگ]{\bigskipamount}
+\eqcommand[\نوارپای‌عکس]{\botfigrule}
+\eqcommand[\کسرپایین]{\bottomfraction}
+\eqcommand[\گلوله]{\bullet}
+\eqcommand[\شرح]{\caption}
+\eqcommand[\رونوشت]{\cc}
+\eqcommand[\نام‌رونوشت]{\ccname}
+\eqcommand[\نقطه‌وسط]{\cdot}
+\eqcommand[\نقاط‌وسط]{\cdots}
+\eqcommand[\وسط‌چین]{\centering}
+\eqcommand[\خط‌وسط]{\centerline}
+\eqcommand[\فصل]{\chapter}
+\eqcommand[\نام‌فصل]{\chaptername}
+\eqcommand[\سند]{\cite}
+\eqcommand[\خطای‌کلاس]{\ClassError}
+\eqcommand[\اطلاعات‌کلاس]{\ClassInfo}
+\eqcommand[\هشدارکلاس]{\ClassWarning}
+\eqcommand[\هشدارکلاس‌بدون‌خط]{\ClassWarningNoLine}
+\eqcommand[\دوصفحه‌پاک]{\cleardoublepage}
+\eqcommand[\صفحه‌پاک]{\clearpage}
+\eqcommand[\خط‌س]{\cline}
+\eqcommand[\بستن]{\closing}
+\eqcommand[\خاج]{\clubsuit}
+\eqcommand[\رنگ]{\color}
+\eqcommand[\کادررنگی]{\colorbox}
+\eqcommand[\جداگرستون]{\columnsep}
+\eqcommand[\نوارجداگرستون]{\columnseprule}
+\eqcommand[\خط‌فهرست]{\contentsline}
+\eqcommand[\نام‌فهرست]{\contentsname}
+\eqcommand[\حق‌تالیف]{\copyright}
+\eqcommand[\گزینه‌جاری]{\CurrentOption}
+\eqcommand[\کادربینابین]{\dashbox}
+\eqcommand[\بینابین‌ع]{\dashv}
+\eqcommand[\تاریخ]{\date}
+\eqcommand[\نوارشکل‌دولا]{\dblfigrule}
+\eqcommand[\کسرصفحه‌شناوردولا]{\dblfloatpagefraction}
+\eqcommand[\جداگرشناوردولا]{\dblfloatsep}
+\eqcommand[\جداگرشناورمتن‌دولا]{\dbltextfloatsep}
+\eqcommand[\کسربالادولا]{\dbltopfraction}
+\eqcommand[\اعلام‌پسوندگرافیک]{\DeclareGraphicsExtensions}
+\eqcommand[\اعلام‌دستورگرافیک]{\DeclareGraphicsRule}
+\eqcommand[\اعلام‌گزینه]{\DeclareOption}
+\eqcommand[\اعلام‌فرمان‌قوی]{\DeclareRobustCommand}
+\eqcommand[\معرفی‌رنگ]{\definecolor}
+\eqcommand[\درجه]{\deg}
+\eqcommand[\عمق]{\depth}
+\eqcommand[\خشت]{\diamondsuit}
+\eqcommand[\بعد]{\dim}
+\eqcommand[\احتیاطی]{\discretionary}
+\eqcommand[\شکست‌نمایش]{\displaybreak}
+\eqcommand[\سبک‌نمایش]{\displaystyle}
+\eqcommand[\کلاس‌نوشتار]{\documentclass}
+\eqcommand[\نقطه]{\dot}
+\eqcommand[\نقطه‌مساوی]{\doteq}
+\eqcommand[\پرنقطه]{\dotfill}
+\eqcommand[\نقاط]{\dots}
+\eqcommand[\کادردولا]{\doublebox}
+\eqcommand[\جداگرنواردولا]{\doublerulesep}
+\eqcommand[\فلش‌پایین]{\downarrow}
+\eqcommand[\تا]{\em}
+\eqcommand[\تاکید]{\emph}
+\eqcommand[\مجموعه‌تهی]{\emptyset}
+\eqcommand[\پایان]{\end}
+\eqcommand[\پایان‌اولین‌سر]{\endfirsthead}
+\eqcommand[\پایان‌پا]{\endfoot}
+\eqcommand[\پایان‌سر]{\endhead}
+\eqcommand[\پایان‌آخرین‌پا]{\endlastfoot}
+\eqcommand[\گسترش‌این‌صفحه]{\enlargethispage}
+\eqcommand[\ارجاع‌فر]{\eqref}
+\eqcommand[\یورو]{\euro}
+\eqcommand[\حاشیه‌طرف‌راست]{\evensidemargin}
+\eqcommand[\اجرای‌گزینه‌ها]{\ExecuteOptions}
+\eqcommand[\جداگرستون‌اضافی]{\extracolsep}
+\eqcommand[\صفحه‌تجملی]{\fancypage}
+\eqcommand[\کادرف]{\fbox}
+\eqcommand[\نوارکادرف]{\fboxrule}
+\eqcommand[\جداگرکادرف]{\fboxsep}
+\eqcommand[\کادرف‌رنگی]{\fcolorbox}
+\eqcommand[\نام‌شکل]{\figurename}
+\eqcommand[\پرر]{\fill}
+\eqcommand[\پهن]{\flat}
+\eqcommand[\کسرصفحه‌شناور]{\floatpagefraction}
+\eqcommand[\جداگرشناور]{\floatsep}
+\eqcommand[\تنظیم‌پایین]{\flushbottom}
+\eqcommand[\نمادپن]{\fnsymbol}
+\eqcommand[\خانواده‌قلم]{\fontfamily}
+\eqcommand[\سری‌قلم]{\fontseries}
+\eqcommand[\شکل‌قلم]{\fontshape}
+\eqcommand[\اندازه‌قلم]{\fontsize}
+\eqcommand[\پانوشت‌چبر]{\LTRfootnote}
+\eqcommand[\پانوشت]{\footnote}
+\eqcommand[\نشان‌پانوشت]{\footnotemark}
+\eqcommand[\نوار‌پانوشت]{\footnoterule}
+\eqcommand[\جداگرپانوشت]{\footnotesep}
+\eqcommand[\اندازه‌پانوشت]{\footnotesize}
+\eqcommand[\متن‌پانوشت]{\footnotetext}
+\eqcommand[\پرش‌پا]{\footskip}
+\eqcommand[\فریم]{\frame}
+\eqcommand[\کادرفریم]{\framebox}
+\eqcommand[\فاصله‌گذاری‌فرانسوی]{\frenchspacing}
+\eqcommand[\مطلب‌پیش]{\frontmatter}
+\eqcommand[\فرهنگ]{\glossary}
+\eqcommand[\فقره‌فرهنگ]{\glossaryentry}
+\eqcommand[\کاغذگراف]{\graphpaper}
+\eqcommand[\گیومه‌چپ]{\guillemotleft}
+\eqcommand[\گیومه‌راست]{\guillemotright}
+\eqcommand[\گیومه‌تکی‌چپ]{\guilsinglleft}
+\eqcommand[\گیومه‌تکی‌راست]{\guilsinglright}
+\eqcommand[\ارتفاع‌سر]{\headheight}
+\eqcommand[\جداگرسر]{\headsep}
+\eqcommand[\سربه‌نام]{\headtoname}
+\eqcommand[\دل]{\heartsuit}
+\eqcommand[\ارتفاع]{\height}
+\eqcommand[\پرا]{\hfill}
+\eqcommand[\خط‌ا]{\hline}
+\eqcommand[\مبداا]{\hoffset}
+\eqcommand[\نواراپرر]{\hrulefill}
+\eqcommand[\فضاا]{\hspace}
+\eqcommand[\بزرگ]{\huge}
+\eqcommand[\بزرگ‌تر]{\Huge}
+\eqcommand[\ابرپیوند]{\hyperlink}
+\eqcommand[\بارگذاری‌ابر]{\hypersetup}
+\eqcommand[\هدف‌ابر]{\hypertarget}
+\eqcommand[\خط‌پیوند]{\hyphenation}
+\eqcommand[\گرر]{\iff}
+\eqcommand[\گرپرونده‌موجود]{\IfFileExists}
+\eqcommand[\گرآنگاه‌دیگر]{\ifthenelse}
+\eqcommand[\شامل]{\include}
+\eqcommand[\شامل‌گرافیک]{\includegraphics}
+\eqcommand[\تنها‌شامل]{\includeonly}
+\eqcommand[\تورفته]{\indent}
+\eqcommand[\نمایه]{\index}
+\eqcommand[\فقره‌نمایه]{\indexentry}
+\eqcommand[\نام‌نمایه]{\indexname}
+\eqcommand[\فضای‌نمایه]{\indexspace}
+\eqcommand[\ورود]{\input}
+\eqcommand[\ورودگرپرونده‌موجود]{\InputIfFileExists}
+\eqcommand[\بین‌متن]{\intertext}
+\eqcommand[\جداگربین‌متن]{\intertextsep}
+\eqcommand[\مخفی]{\invisible}
+\eqcommand[\پیش‌فرض‌ای]{\itdefault}
+\eqcommand[\بند]{\item}
+\eqcommand[\تورفتگی‌بند]{\itemindent}
+\eqcommand[\جداگربند]{\itemsep}
+\eqcommand[\شکل‌ای]{\itshape}
+\eqcommand[\کشتن]{\kill}
+\eqcommand[\برچسب]{\label}
+\eqcommand[\برچسب‌شمارش‌ی]{\labelenumi}
+\eqcommand[\برچسب‌شمارش‌د]{\labelenumii}
+\eqcommand[\برچسب‌شمارش‌س]{\labelenumiii}
+\eqcommand[\برچسب‌شمارش‌چ]{\labelenumiv}
+\eqcommand[\برچسب‌بندی]{\labelitemi}
+\eqcommand[\برچسب‌بندد]{\labelitemii}
+\eqcommand[\برچسب‌بندس]{\labelitemiii}
+\eqcommand[\برچسب‌بندچ]{\labelitemiv}
+\eqcommand[\جداگربرچسب]{\labelsep}
+\eqcommand[\عرض‌برچسب]{\labelwidth}
+\eqcommand[\زبان]{\language}
+\eqcommand[\درشت]{\large}
+\eqcommand[\درشت‌تر]{\Large}
+\eqcommand[\درشت‌درشت]{\LARGE}
+\eqcommand[\لاتک]{\LaTeX}
+\eqcommand[\لاتک‌ای]{\LaTeXe}
+\eqcommand[\نقاط‌خ]{\ldots}
+\eqcommand[\چپ]{\left}
+\eqcommand[\حاشیه‌چپ]{\leftmargin}
+\eqcommand[\خط]{\line}
+\eqcommand[\شکست‌خط]{\linebreak}
+\eqcommand[\ضخامت‌خط]{\linethickness}
+\eqcommand[\عرض‌خط]{\linewidth}
+\eqcommand[\نام‌لیست‌شکل]{\listfigurename}
+\eqcommand[\لیست‌پرونده‌ها]{\listfiles}
+\eqcommand[\لیست‌شکل‌ها]{\listoffigures}
+\eqcommand[\لیست‌لوح‌ها]{\listoftables}
+\eqcommand[\تورفتگی‌پارلیست]{\listparindent}
+\eqcommand[\نام‌لیست‌جدول]{\listtablename}
+\eqcommand[\بارگذاری‌کلاس]{\LoadClass}
+\eqcommand[\بارگذاری‌کلاس‌باگزینه‌ها]{\LoadClassWithOptions}
+\eqcommand[\مکان]{\location}
+\eqcommand[\مطلب‌اصلی]{\mainmatter}
+\eqcommand[\ساخت‌کادر]{\makebox}
+\eqcommand[\ساخت‌فرهنگ]{\makeglossary}
+\eqcommand[\ساخت‌نمایه]{\makeindex}
+\eqcommand[\ساخت‌برچسب]{\makelabel}
+\eqcommand[\ساخت‌برچسب‌ها]{\makelabels}
+\eqcommand[\ساخت‌حروف‌کوچک]{\MakeLowercase}
+\eqcommand[\ساخت‌عنوان]{\maketitle}
+\eqcommand[\ساخت‌حروف‌بزرگ]{\MakeUppercase}
+\eqcommand[\حاشیه‌پار]{\marginpar}
+\eqcommand[\جداگرحاشیه‌پار]{\marginparsep}
+\eqcommand[\عرض‌جداگرپار]{\marginparwidth}
+\eqcommand[\نشان‌هردو]{\markboth}
+\eqcommand[\نشان‌راست]{\markright}
+\eqcommand[\س‌کادر]{\mbox}
+\eqcommand[\پرش‌متوسط]{\medskip}
+\eqcommand[\مقدارپرش‌متوسط]{\medskipamount}
+\eqcommand[\فضای‌متوسط]{\medspace}
+\eqcommand[\شکست‌پیام]{\MessageBreak}
+\eqcommand[\چندستونی]{\multicolumn}
+\eqcommand[\نام]{\name}
+\eqcommand[\طبیعی]{\natural}
+\eqcommand[\باریک]{\nearrow}
+\eqcommand[\نیازبه‌فرم‌تک]{\NeedsTeXFormat}
+\eqcommand[\منفی]{\neg}
+\eqcommand[\فضای‌متوسط‌منفی]{\negmedspace}
+\eqcommand[\فضای‌ضخیم‌منفی]{\negthickspace}
+\eqcommand[\فضای‌نازک‌منفی]{\negthinspace}
+\eqcommand[\بولی‌نو]{\newboolean}
+\eqcommand[\فرمان‌نو]{\newcommand}
+\eqcommand[\شمارنده‌نو]{\newcounter}
+\eqcommand[\محیط‌نو]{\newenvironment}
+\eqcommand[\قلم‌نو]{\newfont}
+\eqcommand[\طول‌نو]{\newlength}
+\eqcommand[\خط‌نو]{\newline}
+\eqcommand[\صفحه‌نو]{\newpage}
+\eqcommand[\کادرذخیره‌نو]{\newsavebox}
+\eqcommand[\قضیه‌نو]{\newtheorem}
+\eqcommand[\بدون‌سند]{\nocite}
+\eqcommand[\بدون‌پرونده]{\nofiles}
+\eqcommand[\بدون‌تورفتگی]{\noindent}
+\eqcommand[\بدون‌حد]{\nolimits}
+\eqcommand[\بدون‌شکست‌خط]{\nolinebreak}
+\eqcommand[\فاصله‌گذاری‌غیرفرانسوی]{\nonfrenchspacing}
+\eqcommand[\بدون‌شماره]{\nonumber}
+\eqcommand[\بدون‌شکست‌صفحه]{\nopagebreak}
+\eqcommand[\رنگ‌نرمال]{\normalcolor}
+\eqcommand[\قلم‌نرمال]{\normalfont}
+\eqcommand[\حاشیه‌پارنرمال]{\normalmarginpar}
+\eqcommand[\اندازه‌نرمال]{\normalsize}
+\eqcommand[\بدون‌اتیکت]{\notag}
+\eqcommand[\شماره‌مطابق]{\numberwithin}
+\eqcommand[\حاشیه‌سمت‌چپ]{\oddsidemargin}
+\eqcommand[\یک‌ستون]{\onecolumn}
+\eqcommand[\تنها‌یادداشت‌ها]{\onlynotes}
+\eqcommand[\تنهااسلایدها]{\onlyslides}
+\eqcommand[\گزینه‌استفاده‌نشد]{\OptionNotUsed}
+\eqcommand[\خطای‌بسته]{\PackageError}
+\eqcommand[\اطلاعات‌بسته]{\PackageInfo}
+\eqcommand[\هشداربسته]{\PackageWarning}
+\eqcommand[\هشداربسته‌بدون‌خط]{\PackageWarningNoLine}
+\eqcommand[\شکست‌صفحه]{\pagebreak}
+\eqcommand[\رنگ‌صفحه]{\pagecolor}
+\eqcommand[\نام‌صفحه]{\pagename}
+\eqcommand[\شماره‌گذاری‌صفحه]{\pagenumbering}
+\eqcommand[\ارجاع‌صفحه]{\pageref}
+\eqcommand[\سبک‌صفحه]{\pagestyle}
+\eqcommand[\ارتفاع‌برگ]{\paperheight}
+\eqcommand[\عرض‌برگ]{\paperwidth}
+\eqcommand[\پار]{\par}
+\eqcommand[\پاراگراف]{\paragraph}
+\eqcommand[\موازی]{\parallel}
+\eqcommand[\کادرپار]{\parbox}
+\eqcommand[\تورفتگی‌پار]{\parindent}
+\eqcommand[\جداگرپار]{\parsep}
+\eqcommand[\پرش‌پار]{\parskip}
+\eqcommand[\قسمت]{\part}
+\eqcommand[\نام‌قسمت]{\partname}
+\eqcommand[\جداگربالای‌پار]{\partopsep}
+\eqcommand[\پاس‌گزینه‌به‌کلاس]{\PassOptionToClass}
+\eqcommand[\پاس‌گزینه‌به‌بسته]{\PassOptionToPackage}
+\eqcommand[\مسیر]{\path}
+\eqcommand[\چاپ‌نمایه]{\printindex}
+\eqcommand[\پردازش‌گزینه‌ها]{\ProcessOptions}
+\eqcommand[\حمایت]{\protect}
+\eqcommand[\تهیه‌فرمان]{\providecommand}
+\eqcommand[\تهیه‌کلاس]{\ProvidesClass}
+\eqcommand[\تهیه‌پرونده]{\ProvidesFile}
+\eqcommand[\تهیه‌بسته]{\ProvidesPackage}
+\eqcommand[\تنظیم‌پایین]{\raggedbottom}
+\eqcommand[\تنظیم‌چپ]{\raggedleft}
+\eqcommand[\تنظیم‌راست]{\raggedright}
+\eqcommand[\ترفیع‌کادر]{\raisebox}
+\eqcommand[\ترفیع‌اتیکت]{\raisetag}
+\eqcommand[\زاویه‌ر]{\rangle}
+\eqcommand[\سقف‌ر]{\rceil}
+\eqcommand[\رجوع]{\ref}
+\eqcommand[\انعکاس‌کادر]{\reflectbox}
+\eqcommand[\نام‌رجوع]{\refname}
+\eqcommand[\گام‌رجوع‌شمارنده]{\refstepcounter}
+\eqcommand[\فرمان‌ازنو]{\renewcommand}
+\eqcommand[\محیط‌ازنو]{\renewenvironment}
+\eqcommand[\نیازبه‌بسته]{\RequirePackage}
+\eqcommand[\نیازبه‌بسته‌باگزینه]{\RequirePackageWithOptions}
+\eqcommand[\اندازه‌ازنوکادر]{\resizebox}
+\eqcommand[\حاشیه‌پارمعکوس]{\reversemarginpar}
+\eqcommand[\کف‌ر]{\rfloor}
+\eqcommand[\راست]{\right}
+\eqcommand[\پیش‌فرض‌رم]{\rmdefault}
+\eqcommand[\خانواده‌رم]{\rmfamily}
+\eqcommand[\رومن‌بزرگ]{\Roman}
+\eqcommand[\رومن]{\roman}
+\eqcommand[\چرخاندن‌کادر]{\rotatebox}
+\eqcommand[\نوار]{\rule}
+\eqcommand[\ذخیره‌کادر]{\savebox}
+\eqcommand[\کادرذ]{\sbox}
+\eqcommand[\کادرمقیاس]{\scalebox}
+\eqcommand[\پیش‌فرض‌تمام‌بزرگ]{\scdefault}
+\eqcommand[\سبک‌ته‌نوشت‌ته‌نوشت]{\scriptscriptstyle}
+\eqcommand[\اندازه‌ته‌نوشت]{\scriptsize}
+\eqcommand[\سبک‌ته‌نوشت]{\scripstyle}
+\eqcommand[\بخش]{\section}
+\eqcommand[\ببینید]{\see}
+\eqcommand[\نیزببینید]{\seealso}
+\eqcommand[\نام‌ببینید]{\seename}
+\eqcommand[\انتخاب‌قلم]{\selectfont}
+\eqcommand[\تنظیم‌بولی]{\setboolean}
+\eqcommand[\تنظیم‌شمارنده]{\setcounter}
+\eqcommand[\تنظیم‌طول]{\setlength}
+\eqcommand[\تنظیم‌منها]{\setminus}
+\eqcommand[\تنظیم‌به‌عمق]{\settodepth}
+\eqcommand[\تنظیم‌به‌ارتفاع]{\settoheight}
+\eqcommand[\تنظیم‌به‌عرض]{\settowidth}
+\eqcommand[\پیش‌فرض‌س‌ف]{\sfdefault}
+\eqcommand[\خانواده‌س‌ف]{\sffamily}
+\eqcommand[\کادرسایه‌دار]{\shadowbox}
+\eqcommand[\تیز]{\sharp}
+\eqcommand[\پشته‌کوتاه]{\shortstack}
+\eqcommand[\پیش‌فرض‌خو]{\sldefault}
+\eqcommand[\نامرتب]{\sloppy}
+\eqcommand[\شمایل‌خو]{\slshape}
+\eqcommand[\کوچک]{\small}
+\eqcommand[\پرش‌کوچک]{\smallskip}
+\eqcommand[\مقدار‌پرش‌کوچک]{\smallskipamount}
+\eqcommand[\کوب]{\smash}
+\eqcommand[\لبخند]{\smile}
+\eqcommand[\پیک]{\spadesuit}
+\eqcommand[\ستاره]{\star}
+\eqcommand[\گام‌شمارنده]{\stepcounter}
+\eqcommand[\کشی]{\stretch}
+\eqcommand[\زیربند]{\subitem}
+\eqcommand[\زیرپاراگراف]{\subparagraph}
+\eqcommand[\زیربخش]{\subsection}
+\eqcommand[\زیرپشته]{\substack}
+\eqcommand[\زیرزیربند]{\subsubitem}
+\eqcommand[\زیرزیربخش]{\subsubsection}
+\eqcommand[\زیرمجموعه]{\subset}
+\eqcommand[\زیرمجموعه‌مس]{\subseteq}
+\eqcommand[\جداگرجدول‌بندی]{\tabbingsep}
+\eqcommand[\جداگرستون‌جدول]{\tabcolsep}
+\eqcommand[\فهرست‌مطالب]{\tableofcontents}
+\eqcommand[\نام‌لوح]{\tablename}
+\eqcommand[\خط‌نوجدول]{\tabularnewline}
+\eqcommand[\اتیکت]{\tag}
+\eqcommand[\تلفن]{\telephone}
+\eqcommand[\تک]{\TeX}
+\eqcommand[\متنی]{\text}
+\eqcommand[\گلوله‌متنی]{\textbullet}
+\eqcommand[\ام‌دش‌متنی]{\textemdash}
+\eqcommand[\ان‌دش‌متنی]{\textendash}
+\eqcommand[\تعجب‌وارونه‌متنی]{\textexclamdown}
+\eqcommand[\نقطه‌وسط‌متنی]{\textperiodcentered}
+\eqcommand[\سوال‌وارونه‌متنی]{\textquestiondown}
+\eqcommand[\نقل‌چپ‌متنی‌دولا]{\textquotedblleft}
+\eqcommand[\نقل‌راست‌متنی‌دولا]{\textquotedblright}
+\eqcommand[\نقل‌متنی‌چپ]{\textquoteleft}
+\eqcommand[\نقل‌متنی‌راست]{\textquoteright}
+\eqcommand[\فضای‌نمایان‌متنی‌]{\textvisiblespace}
+\eqcommand[\شکافت‌پشت‌متنی]{\textbackslash}
+\eqcommand[\میله‌متنی]{\textbar}
+\eqcommand[\بزرگ‌تر‌متنی]{\textgreater}
+\eqcommand[\کمتر‌متنی]{\textless}
+\eqcommand[\متن‌سیاه]{\textbf}
+\eqcommand[\مدور‌متنی]{\textcircled}
+\eqcommand[\رنگ‌متن]{\textcolor}
+\eqcommand[\نشان‌کلمه‌مرکب‌متن]{\textcompwordmark}
+\eqcommand[\جداگرشناورمتن]{\textfloatsep}
+\eqcommand[\کسرمتن]{\textfraction}
+\eqcommand[\ارتفاع‌متن]{\textheight}
+\eqcommand[\متن‌ایتالیک]{\textit}
+\eqcommand[\متن‌نازک]{\textmd}
+\eqcommand[\متن‌نرمال]{\textnormal}
+\eqcommand[\ثبتی‌متنی]{\textregistered}
+\eqcommand[\متن‌رومن]{\textrm}
+\eqcommand[\متن‌تمام‌بزرگ]{\textsc}
+\eqcommand[\متن‌سانزسریف]{\textsf}
+\eqcommand[\متن‌خوابیده]{\textsl}
+\eqcommand[\سبک‌متنی]{\textstyle}
+\eqcommand[\بالانویس‌متنی]{\textsuperscript}
+\eqcommand[\علامت‌تجاری‌متنی]{\texttrademark}
+\eqcommand[\متن‌تایپ]{\texttt}
+\eqcommand[\متن‌بالا]{\textup}
+\eqcommand[\عرض‌متن]{\textwidth}
+\eqcommand[\تشکر]{\thanks}
+\eqcommand[\خط‌هاضخیم]{\thicklines}
+\eqcommand[\فضاضخیم]{\thickspace}
+\eqcommand[\خط‌هانازک]{\thinlines}
+\eqcommand[\فضانازک]{\thinspace}
+\eqcommand[\این‌صفحه‌تجملی]{\thisfancypage}
+\eqcommand[\سبک‌این‌صفحه]{\thispagestyle}
+\eqcommand[\مد]{\tilde}
+\eqcommand[\ریز]{\tiny}
+\eqcommand[\ضرب]{\times}
+\eqcommand[\عنوان]{\title}
+\eqcommand[\به]{\to}
+\eqcommand[\امروز]{\today}
+\eqcommand[\بالا]{\top}
+\eqcommand[\نواربالای‌شکل]{\topfigrule}
+\eqcommand[\کسر‌بالا]{\topfraction}
+\eqcommand[\حاشیه‌بالا]{\topmargin}
+\eqcommand[\جداگربالا]{\topsep}
+\eqcommand[\پرش‌بالا]{\topskip}
+\eqcommand[\ارتفاع‌کلی]{\totalheight}
+\eqcommand[\مثلث]{\triangle}
+\eqcommand[\پیش‌فرض‌تایپ]{\ttdefault}
+\eqcommand[\خانواده‌تایپ]{\ttfamily}
+\eqcommand[\دوستون]{\twocolumn}
+\eqcommand[\زیرخط]{\underline}
+\eqcommand[\پیش‌فرض‌ایستاده]{\updefault}
+\eqcommand[\استفاده‌کادر]{\usebox}
+\eqcommand[\استفاده‌شمارنده]{\usecounter}
+\eqcommand[\استفاده‌فونت]{\usefont}
+\eqcommand[\استفاده‌بسته]{\usepackage}
+\eqcommand[\ارزش]{\value}
+\eqcommand[\کبک]{\verb}
+\eqcommand[\پررع]{\vfill}
+\eqcommand[\نمایان]{\visible}
+\eqcommand[\خط‌ع]{\vline}
+\eqcommand[\مبداع]{\voffset}
+\eqcommand[\ارجاع‌صفحه‌ع]{\vpageref}
+\eqcommand[\ارجاع‌ع]{\vref}
+\eqcommand[\فضای‌ع]{\vspace}
+\eqcommand[\مادام‌بکن]{\whiledo}
+\eqcommand[\کلاه‌پهن]{\widehat}
+\eqcommand[\مدپهن]{\widetilde}
+\eqcommand[\عرض]{\width}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def
index 62b7995cba6..f1caba559da 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/commands-xepersian.def
@@ -1,20 +1,16 @@
%%
%% This is file `commands-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `commands-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-
+\ProvidesFile{commands-xepersian.def}[2010/03/01 v0.0 Persian localisation of XePersian commands]
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def
index 6f1998fd675..75438cafdf4 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `enumerate-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `enumerate-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{enumerate-xepersian.def}[2010/03/01 v0.1 adaptations for enumerate package]
\def\@enloop@{%
\ifx ا\@entemp \def\@tempa{\@enLabel\harfi }\else
\ifx ی\@entemp \def\@tempa{\@enLabel\adadi }\else
@@ -29,7 +26,7 @@
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
\@tempa}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def b/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def
index 996ce5b3047..5bf7651d489 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/environments-ltx.def
@@ -1,81 +1,58 @@
%%
%% This is file `environments-ltx.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `environments-ltx.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\eqenvironment[]{abstract}
-\eqenvironment[]{align}
-\eqenvironment[]{alignat}
-\eqenvironment[]{aligned}
-\eqenvironment[]{appendix}
-\eqenvironment[]{array}
-\eqenvironment[]{center}
-\eqenvironment[]{alltt}
-\eqenvironment[]{bmatrix}
-\eqenvironment[]{Bmatrix}
-\eqenvironment[]{cases}
-\eqenvironment[]{description}
-\eqenvironment[]{displaymath}
-\eqenvironment[]{enumerate}
-\eqenvironment[]{eqnarray}
-\eqenvironment[]{eqnarray*}
-\eqenvironment[]{equation}
-\eqenvironment[]{equation*}
-\eqenvironment[]{falign}
-\eqenvironment[]{figure}
-\eqenvironment[]{figure*}
-\eqenvironment[]{filecontents}
-\eqenvironment[]{filecontents*}
-\eqenvironment[]{flushleft}
-\eqenvironment[]{flushright}
-\eqenvironment[]{gather}
-\eqenvironment[]{gathered}
-\eqenvironment[]{itemize}
-\eqenvironment[]{letter}
-\eqenvironment[]{list}
-\eqenvironment[]{longtable}
-\eqenvironment[]{lrbox}
-\eqenvironment[]{math}
-\eqenvironment[]{matrix}
-\eqenvironment[]{minipage}
-\eqenvironment[]{multicols}
-\eqenvironment[]{multline}
-\eqenvironment[]{note}
-\eqenvironment[]{overlay}
-\eqenvironment[]{picture}
-\eqenvironment[]{pmatrix}
-\eqenvironment[]{quotation}
-\eqenvironment[]{quote}
-\eqenvironment[]{slide}
-\eqenvironment[]{sloppypar}
-\eqenvironment[]{split}
-\eqenvironment[]{subarray}
-\eqenvironment[]{subequations}
-\eqenvironment[]{tabbing}
-\eqenvironment[]{table}
-\eqenvironment[]{table*}
-\eqenvironment[]{tabular}
-\eqenvironment[]{tabular*}
-\eqenvironment[]{thebibliography}
-\eqenvironment[]{theindex}
-\eqenvironment[]{titlepage}
-\eqenvironment[]{trivlist}
-\eqenvironment[]{verbatim}
-\eqenvironment[]{verbatim*}
-\eqenvironment[]{verse}
-\eqenvironment[]{vmatrix}
-\eqenvironment[]{Vmatrix}
+\ProvidesFile{environments-ltx.def}[2010/03/01 v0.1 Persian localisation of LaTeX2e environments]
+\eqenvironment[چکیده]{abstract}
+\eqenvironment[پیوست]{appendix}
+\eqenvironment[آرایه]{array}
+\eqenvironment[وسط]{center}
+\eqenvironment[توضیح]{description}
+\eqenvironment[شماره‌بندی]{enumerate}
+\eqenvironment[شکل]{figure}
+\eqenvironment[شکل*]{figure*}
+\eqenvironment[محتویات‌پرونده]{filecontents}
+\eqenvironment[محتویات‌پرونده*]{filecontents*}
+\eqenvironment[چپ‌چین]{flushleft}
+\eqenvironment[راست‌چین]{flushright}
+\eqenvironment[بنددار]{itemize}
+\eqenvironment[نامه]{letter}
+\eqenvironment[لیست]{list}
+\eqenvironment[جدول‌دراز]{longtable}
+\eqenvironment[کادررچ]{lrbox}
+\eqenvironment[ریاضی]{math}
+\eqenvironment[ماتریس]{matrix}
+\eqenvironment[صفحه‌کوچک]{minipage}
+\eqenvironment[چندستونی‌ها]{multicols}
+\eqenvironment[چندخطی]{multline}
+\eqenvironment[یادداشت]{note}
+\eqenvironment[انباشتن]{overlay}
+\eqenvironment[تصویر]{picture}
+\eqenvironment[اقتباس]{quotation}
+\eqenvironment[نقل]{quote}
+\eqenvironment[اسلاید]{slide}
+\eqenvironment[پارنامرتب]{sloppypar}
+\eqenvironment[شکافتن]{split}
+\eqenvironment[زیرآرایه]{subarray}
+\eqenvironment[جدول‌بندی]{tabbing}
+\eqenvironment[لوح]{table}
+\eqenvironment[لوح*]{table*}
+\eqenvironment[جدول]{tabular}
+\eqenvironment[جدول*]{tabular*}
+\eqenvironment[محتوای‌کتاب‌نامه]{thebibliography}
+\eqenvironment[محتوای‌نمایه]{theindex}
+\eqenvironment[صفحه‌عنوان]{titlepage}
+\eqenvironment[کلمه‌به‌کلمه]{verbatim}
+\eqenvironment[کلمه‌به‌کلمه*]{verbatim*}
+\eqenvironment[شعر]{verse}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def
index 86e1256ccc4..0406231135f 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/environments-xepersian.def
@@ -1,20 +1,16 @@
%%
%% This is file `environments-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `environments-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-
+\ProvidesFile{environments-xepersian.def}[2010/03/01 v0.1 Persian localisation of XePersian and bidi environments]
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def
index 298e9fe9186..153353797e4 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `extbook-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `extbook-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{extbook-xepersian.def}[2010/03/01 v0.1 adaptations for extbook class]
\renewcommand\frontmatter{%
\cleardoublepage
\@mainmatterfalse
@@ -28,7 +25,7 @@
\gdef\thechapter{\@harfi\c@chapter}
}%end appendix
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def
new file mode 100644
index 00000000000..befb2d3ce56
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def
@@ -0,0 +1,54 @@
+%%
+%% This is file `flowfram-xepersian.def',
+
+%%
+%% __________________________________
+%% Copyright © 2009-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{flowfram-xepersian.def}[2010/03/01 v0.1 adaptations for flowfram package]
+\def\@outputpage{%
+\begingroup
+ \let\protect\noexpand
+ \@resetactivechars
+ \global\let\@@if@newlist\if@newlist
+ \global\@newlistfalse\@parboxrestore
+ \shipout\vbox{\set@typeset@protect
+ \aftergroup
+ \endgroup
+ \aftergroup
+ \set@typeset@protect
+ \reset@font\normalsize\normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip
+ \lineskip\z@skip
+ \lineskiplimit\z@
+ \vskip\topmargin\moveright\@themargin
+ \vbox{%
+ \vskip\headheight
+ \vskip\headsep
+ \box\@outputbox
+ }}%
+ \global\let\if@newlist\@@if@newlist
+ \stepcounter{page}%
+ \setcounter{displayedframe}{0}%
+ \let\firstmark\botmark}
+%%
+%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `flowfram-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def
index e71891a73be..8df109fb1f0 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `footnote-bidi-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `footnote-bidi-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{footnote-bidi-xepersian.def}[2010/03/01 v0.2 footnote macros for xepersian package]
\long\def\@footnotetext#1{%
\begingroup
\setbox\footins
@@ -54,50 +51,50 @@
\bidi@footnotetext@after
\insert\footins{\unvbox\footins}%
\endgroup}
-\long\def\@mpfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi
+\long\def\@mpfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootins
\reset@font\footnotesize
\hsize\columnwidth
\@parboxrestore
\protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}
+ \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}}
-\long\def\@mpRTLfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLtrue
+\long\def\@mpRTLfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLtrue%
\unvbox\@mpfootins
\reset@font\footnotesize
\hsize\columnwidth
\@parboxrestore
\protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}
+ \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}}
-\long\def\@mpLTRfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLfalse
+\long\def\@mpLTRfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLfalse%
\unvbox\@mpfootins
\reset@font\footnotesize
\hsize\columnwidth
\@parboxrestore
\protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}
+ \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}%
\color@endgroup}}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
new file mode 100644
index 00000000000..7a4551b5720
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
@@ -0,0 +1,51 @@
+%%
+%% This is file `hyperref-xepersian.def',
+
+%%
+%% __________________________________
+%% Copyright © 2008-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{hyperref-xepersian.def}[2010/03/01 v0.1 bilingual captions for hyperref package]
+ \def\equationautorefname{\if@RTL معادله\else Equation\fi}%
+ \def\footnoteautorefname{\if@RTL زیرنویس\else footnote\fi}%
+ \def\itemautorefname{\if@RTL فقره\else item\fi}%
+ \def\figureautorefname{\if@RTL شکل\else Figure\fi}%
+ \def\tableautorefname{\if@RTL جدول\else Table\fi}%
+ \def\partautorefname{\if@RTL بخش\else Part\fi}%
+ \def\appendixautorefname{\if@RTL ضمیمه\else Appendix\fi}%
+ \def\chapterautorefname{\if@RTL فصل\else chapter\fi}%
+ \def\sectionautorefname{\if@RTL قسمت\else section\fi}%
+ \def\subsectionautorefname{\if@RTL زیرقسمت\else subsection\fi}%
+ \def\subsubsectionautorefname{\if@RTL زیرزیرقسمت\else subsubsection\fi}%
+ \def\paragraphautorefname{\if@RTL پاراگراف\else paragraph\fi}%
+ \def\subparagraphautorefname{\if@RTL زیرپاراگراف\else subparagraph\fi}%
+ \def\FancyVerbLineautorefname{\if@RTL سطر\else line\fi}%
+ \def\theoremautorefname{\if@RTL قضیه\else Theorem\fi}%
+ \def\pageautorefname{\if@RTL صفحه\else page\fi}%
+\AtBeginDocument{%
+\let\HyOrg@appendix\appendix
+\def\appendix{%
+ \@ifundefined{chapter}%
+ {\gdef\theHsection{\arabic{section}}}%
+ {\gdef\theHchapter{\arabic{chapter}}}%
+ \xdef\Hy@chapapp{\Hy@appendixstring}%
+ \HyOrg@appendix
+}}
+%%
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `hyperref-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/img/ireland.jpg b/Master/texmf-dist/tex/xelatex/xepersian/img/ireland.jpg
deleted file mode 100755
index bacd5b97700..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/img/ireland.jpg
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/img/weather/clouds.jpg b/Master/texmf-dist/tex/xelatex/xepersian/img/weather/clouds.jpg
deleted file mode 100755
index b4073a07231..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/img/weather/clouds.jpg
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/img/weather/rain.jpg b/Master/texmf-dist/tex/xelatex/xepersian/img/weather/rain.jpg
deleted file mode 100755
index f33b75e7a0c..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/img/weather/rain.jpg
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/img/weather/sun.jpg b/Master/texmf-dist/tex/xelatex/xepersian/img/weather/sun.jpg
deleted file mode 100755
index 1e823100386..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/img/weather/sun.jpg
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
index 76325f1a653..49431d25b2a 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `kashida-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `kashida-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{kashida-xepersian.def}[2010/03/01 v0.1 implementation of Kashida for xepersian package]
\chardef\zwj="200D % zero-width joiner
\chardef\ksh="0640 % kashida
@@ -54,7 +51,7 @@
\XeTeXinterchartokenstate=1
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
index 5963ea43195..306fcabac27 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
@@ -1,21 +1,18 @@
%%
%% This is file `listings-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `listings-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{listings-xepersian.def}[2010/03/01 v0.1 bilingual captions for listings package]
\def\lstlistingname{برنامهٔ}
\def\lstlistlistingname{فهرست برنامه‌ها}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def
new file mode 100644
index 00000000000..121f3572cd1
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def
@@ -0,0 +1,52 @@
+%%
+%% This is file `loadingorder-bidi-xepersian.def',
+
+%%
+%% __________________________________
+%% Copyright © 2009-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{loadingorder-bidi-xepersian.def}[2010/03/01 v0.1 making sure that xepersian is the last package loaded]
+\bidi@isloaded{algorithmic}
+\bidi@isloaded{algorithm}
+\bidi@isloaded{backref}
+\bidi@isloaded{enumerate}
+\bidi@isloaded{subfigure}
+\bidi@isloaded{tocloft}
+\AtBeginDocument{
+ \if@bidi@algorithmicloaded@\else
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithmic after xepersian package. Please load package algorithmic before xepersian package, and then try to run xelatex on your document again}{}]{algorithmic}
+ \fi%
+ \if@bidi@algorithmloaded@\else
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithm after xepersian package. Please load package algorithm before xepersian package, and then try to run xelatex on your document again}{}]{algorithm}
+ \fi%
+ \if@bidi@backrefloaded@\else
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package backref after xepersian package. Please load package backref before xepersian package, and then try to run xelatex on your document again}{}]{backref}
+ \fi%
+ \if@bidi@enumerateloaded@\else
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package enumerate after xepersian package. Please load package enumerate before xepersian package, and then try to run xelatex on your document again}{}]{enumerate}
+ \fi%
+ \if@bidi@subfigureloaded@%
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package subfigure before xepersian package. Please load package subfigure after xepersian package, and then try to run xelatex on your document again}{}]{subfigure}
+\else\fi%
+ \if@bidi@tocloftloaded@\else
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package tocloft after xepersian package. Please load package tocloft before xepersian package, and then try to run xelatex on your document again}{}]{tocloft}
+ \fi%
+}
+%%
+%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `loadingorder-bidi-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
index a5fdd4d44a0..478436ef1dd 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
@@ -1,43 +1,24 @@
%%
%% This is file `localise-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `localise-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\catcode`\﷼=3
+\ProvidesFile{localise-xepersian.def}[2010/03/01 v0.2 Persian localisation of LaTeX2e]
\catcode`‌=11
\newcommand\eqcommand[2][]{\let#1=#2}
\newcommand\eqenvironment[2][]{\newenvironment{#1}{\begin{#2}}{\end{#2}}}
-\define@key[zf]{options}{مقیاس}{%
- \edef\@tempa{#1}%
- \edef\@tempb{MatchLowercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{5}%
- \else
- \edef\@tempb{MatchUppercase}%
- \ifx\@tempa\@tempb
- \zf@calc@scale{8}%
- \else
- \edef\zf@scale{#1}%
- \fi
- \fi
- \zf@update@family{+scale:\zf@scale}%
- \edef\zf@scale{s*[\zf@scale]}}
\input{commands-ltx.def}
\input{commands-xepersian.def}
\input{environments-ltx.def}
\input{environments-xepersian.def}
\input{misccommandsenvironments-ltx.def}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def
index 4137597ce92..09621583539 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `memoir-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `memoir-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{memoir-xepersian.def}[2010/03/01 v0.1 adaptations for memoir class]
\renewcommand{\@memfront}{%
\@smemfront\pagenumbering{harfi}}
\renewcommand{\setthesection}{\thechapter\@SepMark\harfi{section}}
@@ -24,7 +21,7 @@
\gdef\thechapter{\@harfi\c@chapter}%
\anappendixtrue}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def
index 67ff92b9753..e64473ffdea 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `minitoc-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `minitoc-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{minitoc-xepersian.def}[2010/03/01 v0.1 bilingual captions for minitoc package]
\def\ptctitle{\if@RTL فهرست مطالب\else Table of Contents\fi}%
\def\plftitle{\if@RTL لیست تصاویر\else List of Figures\fi}%
\def\plttitle{\if@RTL لیست جداول\else List of Tables\fi}%
@@ -22,7 +19,7 @@
\def\slftitle{\if@RTL اشکال\else Figures\fi}%
\def\slttitle{\if@RTL جداول\else Tables\fi}%
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/misccommandsenvironments-ltx.def b/Master/texmf-dist/tex/xelatex/xepersian/misccommandsenvironments-ltx.def
index 305d8903472..00e93b8e752 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/misccommandsenvironments-ltx.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/misccommandsenvironments-ltx.def
@@ -1,21 +1,18 @@
%%
%% This is file `misccommandsenvironments-ltx.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `misccommandsenvironments-ltx.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\eqcommand[\سند]{\document}
-\eqcommand[\endسند]{\enddocument}
+\ProvidesFile{misccommandsenvironments-ltx.def}[2010/03/01 v0.1 Persian localisation of LaTeX2e miscellaneous commands and environments]
+\eqcommand[\نوشتار]{\document}
+\eqcommand[\endنوشتار]{\enddocument}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/footnote-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/multicol-xepersian.def
index e71891a73be..cc94697399e 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/footnote-bidi-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/multicol-xepersian.def
@@ -1,17 +1,14 @@
%%
-%% This is file `footnote-bidi-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `footnote-bidi-xepersian.def')
+%% This is file `multicol-xepersian.def',
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{multicol-xepersian.def}[2010/03/01 v0.1 adaptations for multicol package]
\long\def\@footnotetext#1{%
\begingroup
\setbox\footins
@@ -19,7 +16,7 @@
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
+ \hsize\textwidth \@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}}%
@@ -33,7 +30,7 @@
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
+ \hsize\textwidth \@parboxrestore
\bidi@footnotetext@dir{#1}%
\protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
{\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\strut}}%
@@ -47,57 +44,57 @@
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
+ \hsize\textwidth \@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}
-\long\def\@mpfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi
+\long\def\@mpfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootins
\reset@font\footnotesize
- \hsize\columnwidth
+ \hsize\textwidth
\@parboxrestore
\protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}
+ \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}}
-\long\def\@mpRTLfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLtrue
+\long\def\@mpRTLfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLtrue%
\unvbox\@mpfootins
\reset@font\footnotesize
- \hsize\columnwidth
+ \hsize\textwidth
\@parboxrestore
\protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}
+ \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}}
-\long\def\@mpLTRfootnotetext#1{
- \global\setbox\@mpfootins\vbox{\@RTLfalse
+\long\def\@mpLTRfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLfalse%
\unvbox\@mpfootins
\reset@font\footnotesize
- \hsize\columnwidth
+ \hsize\textwidth
\@parboxrestore
\protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\bidi@footnotetext@dir{#1}
- \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi
- \@makefntext{
- \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}
+ \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}%
\color@endgroup}}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
@@ -110,4 +107,4 @@
%%
%%
%%
-%% End of file `footnote-bidi-xepersian.def'.
+%% End of file `multicol-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def
index c4f35c6a5f6..3446b83c74c 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `rapport3-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `rapport3-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{rapport3-xepersian.def}[2010/03/01 v0.1 adaptations for rapport3 class]
\renewcommand*\thepart{\@tartibi\c@part}
\renewcommand*\appendix{\par
\setcounter{chapter}{0}%
@@ -19,7 +16,7 @@
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@harfi\c@chapter}}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def
index 7c34218c196..272181bbdb8 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `refrep-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `refrep-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{refrep-xepersian.def}[2010/03/01 v0.1 adaptations for refrep class]
\renewcommand \thepart {\@tartibi\c@part}
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
@@ -20,7 +17,7 @@
\gdef\thechapter{\@harfi\c@chapter}
}%end appendix
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def
index d88e4ece981..a344706fc00 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `report-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `report-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{report-xepersian.def}[2010/03/01 v0.1 adaptations for standard report class]
\renewcommand \thepart {\@tartibi\c@part}
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
@@ -20,7 +17,7 @@
\gdef\thechapter{\@harfi\c@chapter}
}%end appendix
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def
index beafd08bf27..f74704361d5 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def
@@ -1,24 +1,14 @@
%%
%% This is file `scrartcl-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `scrartcl-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
+\ProvidesFile{scrartcl-xepersian.def}[2010/03/01 v0.1 adaptations for scrartcl class]
\renewcommand*{\thepart}{\@tartibi\c@part}
\renewcommand*\appendix{\par%
\setcounter{section}{0}%
@@ -48,7 +38,7 @@
\@@maybeautodot
}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def
index eb621e8468b..a6936a71b2f 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def
@@ -1,24 +1,14 @@
%%
%% This is file `scrbook-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `scrbook-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
+\ProvidesFile{scrbook-xepersian.def}[2010/03/01 v0.1 adaptations for scrbook class]
\renewcommand*\frontmatter{%
\if@twoside\cleardoubleoddpage\else\clearpage\fi
\@mainmatterfalse\pagenumbering{harfi}%
@@ -53,7 +43,7 @@
\@@maybeautodot
}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def
index ce36d9f3d8c..7f00988b109 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def
@@ -1,24 +1,14 @@
%%
%% This is file `scrreprt-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `scrreprt-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\renewcommand*\descfont{\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\DeclareOldFontCommand{\sf}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\if@RTL\persianttfamily\else\ttfamily\fi}{\mathtt}
-\DeclareOldFontCommand{\sfb}{\normalfont\if@RTL\persiansffamily\else\sffamily\fi\bfseries}{%
- \@nomath\sfb}
-\renewcommand*\sectfont{\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\bfseries}
-\newkomafont{dictum-xepersian}{\normalfont\normalcolor\if@RTL\persiansffamily\else\sffamily\fi\small}
+\ProvidesFile{scrreprt-xepersian.def}[2010/03/01 v0.1 adaptations for scrreprt class]
\renewcommand*{\thepart}{\@tartibi\c@part}
\renewcommand*\appendix{\par%
\setcounter{chapter}{0}%
@@ -49,7 +39,7 @@
\@@maybeautodot
}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def
index 72821e6cae7..b219ceab75b 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def
@@ -1,17 +1,14 @@
%%
%% This is file `tocloft-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `tocloft-xepersian.def')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{tocloft-xepersian.def}[2010/03/01 v0.1 bilingual captions for tocloft package]
\renewcommand*{\cftchapname}{\if@RTL فصل\else chapter\fi}
\renewcommand*{\cftsecname}{\if@RTL قسمت\else section\fi}
\renewcommand*{\cftsubsecname}{\if@RTL زیرقسمت\else subsection\fi}
@@ -23,7 +20,7 @@
\renewcommand*{\cfttabname}{\if@RTL جدول\else table\fi}
\renewcommand*{\cftsubtabname}{\if@RTL زیرجدول\else subtable\fi}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls
index f17eec1b48f..01e0db67075 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls
@@ -1,13 +1,9 @@
%%
%% This is file `xepersian-magazine.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-magazine.cls')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -62,7 +58,7 @@
\RequirePackage{ifxetex}
\RequirePackage{multido}
\RequirePackage{datetime}
-\RequirePackage{fmultico}
+\RequirePackage{multicol}
\RequirePackage{fancyhdr}
\RequirePackage{fancybox}
\ifthenelse{\boolean{xepersian@a3paper}}{%
@@ -882,7 +878,7 @@ indexblock environment may only appear inside frontpage environment.
{\noindent #2}\\
}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
index 845b7398b75..be84093a13e 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
@@ -1,13 +1,9 @@
%%
%% This is file `xepersian-mathsdigitspec.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-mathsdigitspec.sty')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -46,6 +42,7 @@
\DeclareMathAlphabet {\mathit}{EU1}{\zf@family}{m}{it}
\DeclareSymbolFontAlphabet{\mathrm} {OPERATORS}
\DeclareMathAlphabet {\mathbf}{EU1}{\zf@family}{bx}{n}
+ \def\persianmathsdigits{%
\SetMathCode{`0}{\mathalpha}{OPERATORS}{"06F0}
\SetMathCode{`1}{\mathalpha}{OPERATORS}{"06F1}
\SetMathCode{`2}{\mathalpha}{OPERATORS}{"06F2}
@@ -56,7 +53,8 @@
\SetMathCode{`7}{\mathalpha}{OPERATORS}{"06F7}
\SetMathCode{`8}{\mathalpha}{OPERATORS}{"06F8}
\SetMathCode{`9}{\mathalpha}{OPERATORS}{"06F9}
- \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}
+ \SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪}
+ \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}}
}
\ifx\newcommand\undefined\else
\newcommand{\ZifferAn}{}
@@ -89,8 +87,14 @@
\fi}
\mathcode`.="8000\relax
\def\ZifferLeer{\ifx\decimalseparator\undefied .\else \decimalseparator\fi}
+\def\DefaultMathsDigits{\def\SetMathsDigits{}}
+\def\PersianMathsDigits{\def\SetMathsDigits{\ifx\persianmathsdigits\undefied\else\persianmathsdigits\fi}}
+\def\AutoMathsDigits{\def\SetMathsDigits{\ifx\persianmathsdigits\undefied\else\if@Latin\else\persianmathsdigits\fi\fi}}
+\AutoMathsDigits
+\everymath{\SetMathsDigits}
+\everydisplay{\SetMathsDigits}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty
index 226ccacf409..f60c1b1a404 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty
@@ -1,13 +1,9 @@
%%
%% This is file `xepersian-multiplechoice.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-multiplechoice.sty')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -20,7 +16,7 @@
\RequirePackage{ifthen}
\RequirePackage{calc}
\RequirePackage{verbatim}
-\RequirePackage{fmultico}
+\RequirePackage{multicol}
\def\@headerfont{\bfseries}
\newcommand\headerfont[1]{\gdef\@headerfont{#1}}
\def\@X{X}
@@ -148,7 +144,7 @@
\questiontitle{سؤال \thequestion:}
\ProcessOptions
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty
index c3ed422f0d6..bcc170cae8d 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty
@@ -1,19 +1,15 @@
%%
%% This is file `xepersian-persiancal.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-persiancal.sty')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-persiancal}
+\ProvidesPackage{xepersian-persiancal}[2010/03/01 v0.1 provides Persian calendar]
\newif\ifXePersian@leap \newif\ifXePersian@kabiseh
\newcount\XePersian@i \newcount\XePersian@y \newcount\XePersian@m \newcount\XePersian@d
@@ -181,7 +177,7 @@
دی\or بهمن\or
اسفند\fi}
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis-xepersian.def
deleted file mode 100644
index 2c416f9af98..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis-xepersian.def
+++ /dev/null
@@ -1,36 +0,0 @@
-%%
-%% This is file `xepersian-thesis-xepersian.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-thesis-xepersian.def')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\renewcommand \thepart {\@tartibi\c@part}
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \gdef\@chapapp{\appendixname}%
- \gdef\thechapter{\@harfi\c@chapter}
-}%end appendix
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-thesis-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis.cls b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis.cls
deleted file mode 100644
index f80b47ebc52..00000000000
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-thesis.cls
+++ /dev/null
@@ -1,174 +0,0 @@
-%%
-%% This is file `xepersian-thesis.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian-thesis.cls')
-%%
-%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
-%%
-%% License information appended.
-%%
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{xepersian-thesis}
- [2009/01/05 v0.1
- Persian thesis document class in XeLaTeX]
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
-\ProcessOptions
-\LoadClass{report}
-\def\university#1{\gdef\@university{#1}}
-\def\department#1{\gdef\@department{#1}}
-\def\degree#1{\gdef\@degree{#1}}
-\def\thesisdate#1{\gdef\@thesisdate{#1}}
-\def\supervisor#1{\gdef\@supervisor{#1}}
-\def\city#1{\gdef\@city{#1}}
-
-\def\latintitle#1{\gdef\@latintitle{#1}}
-\def\latinauthor#1{\gdef\@latinauthor{#1}}
-\def\latindegree#1{\gdef\@latindegree{#1}}
-\def\latindepartment#1{\gdef\@latindepartment{#1}}
-\def\latinthesisdate#1{\gdef\@latinthesisdate{#1}}
-\def\latinsupervisor#1{\gdef\@latinsupervisor{#1}}
-\def\latincity#1{\gdef\@latincity{#1}}
-\def\latinuniversity#1{\gdef\@latinuniversity{#1}}
-
-\def\maketitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-{\Huge\bfseries \@title}\par
-\vskip 1cm
-{\large%
- \by}\par
-{\Large\bfseries \@author}\par
-\vskip 5mm
-{\large\bfseries\writtenfor
-\par
-\@degree}
-\par
-\vskip 1cm
-{\large
- \undersupervision\par
-\Large\bfseries \@supervisor}
-\par
-\vskip 1cm
-{\large \@thesisdate}
-\par
-\vskip 1cm
-{\large\bfseries\departmentof\space\@department}
-\par
-{\large\bfseries\universityof\space\@university \par\@city}
-\vfill
-\end{titlepage}%
-}
-
-\def\abstractpage{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\large{\bfseries \@title} \\}
-\end{center}
-\par
-\begin{abstract}}
-\def\endabstractpage{\end{abstract}
-\newpage
-}
-
-\def\latinabstract{\newpage
-\thispagestyle{empty}
-\vskip 15mm
-\begin{center}{\Large\bfseries \@latintitle \\[5mm]}
-{\bfseries Abstract}
-\end{center}
-\vspace{5mm}}
-
-\def\endlatinabstract{\newpage}
-
-\def\acknowledgementpage{\newpage
-\thispagestyle{empty}
-\centerline{\Large \bfseries\acknowledgementname}
-\vspace{1cm}
-\par\noindent}
-\def\endacknowledgementpage{\newpage}
-
-\def\titlepage{\newpage\centering
- \thispagestyle{empty}
- \parindent 0pt \parskip 10pt plus 1fil minus 1fil
- \def\baselinestretch{1}\@normalsize\vbox to \vsize\bgroup\vbox to 9in\bgroup}
-\def\endtitlepage{\par\kern 0pt\egroup\vss\egroup\newpage}
-
-\def\signature#1#2{\par\noindent#1\dotfill\null\\*
- {\raggedright #2\par}}
-
-\def\abstract{\subsection*{\abstractname}\small
-\@normalsize}
-\def\endabstract{\par}
-
-\pagenumbering{harfi}
-\let\ol@chapter\@chapter
-\def\@chapter{%
- \ifnum\c@chapter=0 \pagenumbering{arabic}\setcounter{page}{1}\fi
- \ol@chapter}
-
-\def\keywords#1{\par \vspace{5mm}
-{\textbf{واژه‌های کلیدی:}} {\textit{ #1}}}
-
-\def\latinkeywords#1{\par \vspace{5mm}
-\noindent {\textbf{Keywords:}} {\textit{ #1}}}
-
-\font\titlefont=cmssbx10 scaled 2074
-\font\supervisorfont=cmbxti10
-\def\makelatintitle{\begin{titlepage}
-{\includegraphics{logo}}
-\vskip 1.5cm
-\addtolength{\baselineskip}{5mm}
-{\titlefont \@latintitle} \par
-\addtolength{\baselineskip}{-5mm}
-\vskip 1cm
-{\bfseries\latinby}\par
-{\Large\bfseries \@latinauthor}\par
-\vskip 5mm
-{\latinwrittenfor\par
-\large\@latindegree}
-\par
-\vskip 1cm
-Under supervision of \\
-{\supervisorfont\@latinsupervisor}
-\par
-\vskip 1cm
-{\@latinthesisdate}
-\par
-\vskip 1cm
-\large\bfseries
-\@latindepartment\space Department
-\par
-\@latinuniversity \par\@latincity
-\vfill
-\end{titlepage}%
-}
-
-\def\acknowledgementname{قدردانی}
-\def\by{توسط}
-\def\writtenfor{ رسالهٔ ارائه شده به عنوان بخشی از ملزومات برای دریافت درجهٔ}
-\def\undersupervision{زیر نظر}
-\def\departmentof{دانشکدهٔ}
-\def\universityof{دانشگاه}
-\def\latinby{by}
-\def\latinwrittenfor{Submitted in Partial Fulfillment\\ of the Requirements\\ for the Degree of}
-\def\latinundersupervision{Under supervision of}
-%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
-%%
-%% Distributable under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is "maintained" (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
-%%
-%%
-%% End of file `xepersian-thesis.cls'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index 25199a6f41e..e3bad8a76dc 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -1,68 +1,61 @@
%%
%% This is file `xepersian.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% xepersian.dtx (with options: `xepersian.sty')
+
%%
%% __________________________________
-%% Copyright © 2008-2009 Vafa Khalighi
+%% Copyright © 2008-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v1.0.3}
-\def\xepersianrevision{revision 93}
-\def\xepersiandate{2009/08/09}
+\def\xepersianversion{v1.0.4}
+\def\xepersianrevision{revision 153}
+\def\xepersiandate{2010/03/01}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space <\xepersianrevision>
Persian typesetting in XeLaTeX]
-\DeclareOption{Kashida}{\input{kashida-xepersian.def}}
-\DeclareOption{localise}{\input{localise-xepersian.def}}
-\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{bidi}}
-\ProcessOptions\relax
-\newcommand\xepersian@isloaded[2][]{
- \expandafter\ifx\csname if@xepersian@#2loaded@\endcsname\relax
- \expandafter\newif\csname if@xepersian@#2loaded@\endcsname
- \fi
- \@ifpackageloaded{#2}
- {\csname @xepersian@#2loaded@true\endcsname #1}
- {\csname @xepersian@#2loaded@false\endcsname}}
-\xepersian@isloaded{xunicode}
-\AtBeginDocument{
- \if@xepersian@xunicodeloaded@
- \xepersian@isloaded[\PackageError{xepersian}{Oops! you have loaded package xunicode before xepersian package. Please load package xunicode after xepersian package, and then try to run xelatex on your document again}{}]{xunicode}
- \fi%
-}
-\AtBeginDocument{\ifdefined\persianfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the main text of the document. Please specify a font for the main text of the document by using \settextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\latinfont\relax\else%
-\PackageError{xepersian}{Oops! you have not specified any font for the Latin texts of the document. Please specify a font for the Latin texts of the document by using \setlatintextfont\space CS, and then try to run xelatex on your document again}%
-\fi}
-\AtBeginDocument{\ifdefined\decimalseparator\relax\else%
-\PackageWarning{xepersian}{“You have not specified any font for the digits in maths mode and so the digits in maths mode will appear Latin. If you would like to have Persian digits in maths mode, then please specify a font for the digits in maths mode by using \setdigitfont\space CS, and then try to run xelatex on your document again”}%
-\fi}
-\RequirePackage[RTLdocument]{bidi}
\RequirePackage{fontspec}
\RequirePackage{xepersian-persiancal}
\RequirePackage{xepersian-mathsdigitspec}
\RequirePackage{etoolbox}
-\AtBeginDocument{\special{pdf: docinfo <<
-/Creator (X∃Persian \xepersianversion\space <\xepersianrevision> Copyright © 2008-2009 Vafa Khalighi)
+\RequirePackage[RTLdocument]{bidi}
+\g@addto@macro\document{%
+\special{pdf: docinfo <<
+/Creator (X∃Persian \xepersianversion\space <\xepersianrevision> Copyright © 2008-2010 Vafa Khalighi)
>>}}
+\edef\xepersianinfo{%
+xepersian package (Persian for LaTeX over XeTeX)^^J
+Description: The package supports Persian^^J
+typesetting, using fonts provided in the distribution.^^J
+Copyright © 2008-2010 Vafa Khalighi^^J
+\xepersianversion, <\xepersianrevision>, \xepersiandate^^J
+License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
+Home: http://xepersian.berlios.de^^J
+Location on CTAN: /macros/xetex/latex/xepersian}
+\typeout{\xepersianinfo}
+\edef\xepersian@everyjob{\the\everyjob}
+\everyjob{\xepersian@everyjob\typeout{\xepersianinfo}}
\gdef\@latex@error#1#2{%
\GenericError{%
\space\space\space\@spaces\@spaces\@spaces
}{%
XePersian Error: #1%
}{%
- Oops! either you have done something wrong or it is a xepersian bug. Please first produce a similar file without using XePersian package and then compile it with xelatex, if you got the same error, then please study the Persian translation of “The not so Short Introduction to LaTeX” by MEHDI OMIDALI, otherwise please report the error with a minimal tex file which shows the error to the Author of XePersian.%
+ Oops! either you have done something wrong or it is a xepersian bug. Please first produce a similar file without using XePersian package and then compile it with xelatex, if you got the same error, then either you have been certainly doing something wrong or it is a LaTeX bug, otherwise please report the error with a minimal tex file which shows the error to the Author of XePersian.%
}{#2}%
}
\gdef\@latexbug{%
\@latex@error{This may be a XePersian bug}{Please inform the Author of XePersian}}
+\AtBeginDocument{\ifdefined\persianfont\relax\else%
+\PackageError{xepersian}{Oops! you have not specified any font for the main text of the document. Please specify a font for the main text of the document by using \settextfont\space CS, and then try to run xelatex on your document again}%
+\fi}
+\AtBeginDocument{\ifdefined\latinfont\relax\else%
+\PackageInfo{xepersian}{“You have not specified any font for the Latin texts of the document and so the default TeX fonts will be used for the Latin texts of the document. If you would like to have any other font as the font of the Latin texts, then please specify a font for the Latin texts of the document by using \setlatintextfont\space CS, and then try to run xelatex on your document again”}%
+\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular}]{lmroman10-regular}
+\fi}
+\AtBeginDocument{\ifdefined\decimalseparator\relax\else%
+\PackageInfo{xepersian}{“You have not specified any font for the digits in maths mode and so the digits in maths mode will appear Latin. If you would like to have Persian digits in maths mode, then please specify a font for the digits in maths mode by using \setdigitfont\space CS, and then try to run xelatex on your document again”}%
+\fi}
\def\prq{«}
\def\plq{»}
\newfontscript{Persian}{arab}
@@ -78,6 +71,8 @@ Persian typesetting in XeLaTeX]
\newcommand*\setlatintextfont[2][]{%
\newfontfamily\latinfont[Mapping=tex-text,#1]{#2}
}
+\let\setlatinsansfont\setsansfont
+\let\setlatinmonofont\setmonofont
\newcommand*\defpersianfont[1]{%
\@ifnextchar[{\defpersianfont@i#1}{\defpersianfont@i#1[]}}
\def\defpersianfont@i#1[#2]#3{%
@@ -96,6 +91,7 @@ Persian typesetting in XeLaTeX]
\@tempa}
\newcommand\persiansfdefault{}
\newcommand\persianttdefault{}
+\newcommand\iranicdefault{}
\newcommand\navardefault{}
\newcommand\pookdefault{}
\newcommand\sayehdefault{}
@@ -105,6 +101,9 @@ Persian typesetting in XeLaTeX]
\DeclareRobustCommand\persianttfamily
{\not@math@alphabet\persianttfamily\mathpersiantt
\fontfamily\persianttdefault\selectfont}
+\DeclareRobustCommand\iranicfamily
+ {\not@math@alphabet\iranicfamily\mathiranic
+ \fontfamily\iranicdefault\selectfont}
\DeclareRobustCommand\navarfamily
{\not@math@alphabet\navarfamily\mathnavar
\fontfamily\navardefault\selectfont}
@@ -116,6 +115,7 @@ Persian typesetting in XeLaTeX]
\fontfamily\sayehdefault\selectfont}
\DeclareTextFontCommand{\textpersiansf}{\persiansffamily}
\DeclareTextFontCommand{\textpersiantt}{\persianttfamily}
+\DeclareTextFontCommand{\textiranic}{\iranicfamily}
\DeclareTextFontCommand{\textnavar}{\navarfamily}
\DeclareTextFontCommand{\textpook}{\pookfamily}
\DeclareTextFontCommand{\textsayeh}{\sayehfamily}
@@ -139,32 +139,99 @@ Persian typesetting in XeLaTeX]
\zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
\let\sayehdefault\zf@family
\normalfont}
+\newcommand*\setiranicfont[2][]{%
+ \zf@fontspec{Script=Persian,Mapping=parsidigits,#1}{#2}%
+ \let\iranicdefault\zf@family
+ \normalfont}
+\def\resetlatinfont{%
+\let\normalfont\latinfont%
+\latinfont}
+\def\setpersianfont{%
+\let\normalfont\persianfont%
+\persianfont}
\def\lr#1{\begingroup\beginL\latinfont#1\endL\endgroup}
\def\rl#1{\begingroup\beginR\persianfont#1\endR\endgroup}
-\def\latin{\bgroup\LatinAlphs\par\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont}
+\def\latin{\bgroup\LatinAlphs\par\@RTLfalse\@Latintrue\@RTL@footnotefalse\resetlatinfont}
\def\endlatin{\par\egroup}
-\def\persian{\bgroup\PersianAlphs\par\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont}
+\def\persian{\bgroup\PersianAlphs\par\@RTLtrue\@RTL@footnotetrue\setpersianfont}
\def\endpersian{\par\egroup}
-\def\Latin{\if@RTL\par\LatinAlphs\@RTLfalse\@RTL@footnotefalse\let\normalfont\latinfont\latinfont\fi}
-\def\Persian{\if@RTL\relax\else\par\PersianAlphs\@RTLtrue\@RTL@footnotetrue\let\normalfont\persianfont\persianfont\fi}
+\def\Latin{\if@RTL\par\LatinAlphs\@RTLfalse\@Latintrue\@RTL@footnotefalse\resetlatinfont\fi}
+\def\Persian{\if@RTL\relax\else\par\PersianAlphs\@RTLtrue\@Latinfalse\@RTL@footnotetrue\setpersianfont\fi}
\let\originaltoday=\today
\def\today{\lr{\originaltoday}}
\let\latintoday\today
\def\today{\rl{\persiantoday}}
+\def\@outputpage{%
+\begingroup % the \endgroup is put in by \aftergroup
+ \let \protect \noexpand
+ \@resetactivechars
+ \global\let\@@if@newlist\if@newlist
+ \global\@newlistfalse
+ \@parboxrestore
+ \shipout \vbox{%
+ \set@typeset@protect
+ \aftergroup \endgroup
+ \aftergroup \set@typeset@protect
+ % correct? or just restore by ending
+ % the group?
+ \if@specialpage
+ \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
+ \fi
+ \if@twoside
+ \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
+ \let\@themargin\oddsidemargin
+ \else \let\@thehead\@evenhead
+ \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
+ \fi
+ \ifx\@thehead\@empty \let\@thehead\hfil \fi
+ \ifx\@thefoot\@empty \let\@thefoot\hfil \fi
+ \else %% not @twoside
+ \ifx\@oddhead\@empty \let\@thehead\hfil \fi
+ \ifx\@oddfoot\@empty \let\@thefoot\hfil \fi
+ \fi
+ \reset@font
+ \normalsize
+ \if@RTLmain\setpersianfont\else\resetlatinfont\fi
+ \normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
+ \@begindvi
+ \vskip \topmargin
+ \moveright\@themargin \vbox {%
+ \setbox\@tempboxa \vbox to\headheight{%
+ \vfil
+ \color@hbox
+ \normalcolor
+ \hb@xt@\textwidth{\if@RTLmain\beginR\fi\@thehead\if@RTLmain\endR\fi}%
+ \color@endbox
+ }% %% 22 Feb 87
+ \dp\@tempboxa \z@
+ \box\@tempboxa
+ \vskip \headsep
+ \box\@outputbox
+ \baselineskip \footskip
+ \color@hbox
+ \normalcolor
+ \hb@xt@\textwidth{\if@RTLmain\beginR\fi\@thefoot\if@RTLmain\endR\fi}%
+ \color@endbox
+ }%
+ }%
+ \global\let\if@newlist\@@if@newlist
+ \global \@colht \textheight
+ \stepcounter{page}%
+ \let\firstmark\botmark
+}
\newcommand\twocolumnstableofcontents{%
+\@ifpackageloaded{multicol}{%
\begin{multicols}{2}[\section*{\contentsname}]%
\small
\@starttoc{toc}%
\end{multicols}}
-\def\XePersian{\lr{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\reflect{E}}Persian}}$}}
-\def\TeX{\lr{\@@TeX}}
-\def\LaTeX{\lr{\@@LaTeX}}
-\def\LaTeXe{\lr{\@@LaTeXe}}
-\let\origin@XeTeX\XeTeX
-\def\XeTeX{\lr{\origin@XeTeX}}
-\let\origin@XeLaTeX\XeLaTeX
-\def\XeLaTeX{\lr{\origin@XeLaTeX}}
+{\PackageError{xepersian}{Oops! you should load multicol package before xepersian package for being able to use this command.}}}
+\def\XePersian{\leavevmode$\smash{\hbox{X\lower.5ex
+ \hbox{\kern-.125em\reflect{E}}Persian}}$}
\def\figurename{\if@RTL شکل\else Figure\fi}
\def\tablename{\if@RTL جدول\else Table\fi}
\def\contentsname{\if@RTL فهرست مطالب\else Contents\fi}
@@ -243,32 +310,38 @@ Persian typesetting in XeLaTeX]
\let\@Alph\@latinAlph%
}
\PersianAlphs
+\@ifdefinitionfileloaded{loadingorder-bidi}{\input{loadingorder-bidi-xepersian.def}}{}
\@ifpackageloaded{listings}{\input{listings-xepersian.def}}{}
\@ifpackageloaded{algorithmic}{\input{algorithmic-xepersian.def}}{}
\@ifpackageloaded{algorithm}{\input{algorithm-xepersian.def}}{}
\@ifpackageloaded{backref}{\input{backref-xepersian.def}}{}
+\@ifpackageloaded{flowfram}{\input{flowfram-xepersian.def}}{}
\@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{}
+\@ifpackageloaded{bidicode}{\input{bidicode-xepersian.def}}{}
+\@ifpackageloaded{breqn}{\input{breqn-xepersian.def}}{}
\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{}
+\@ifpackageloaded{hyperref}{\input{hyperref-xepersian.def}}{}
\@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{}
+\@ifpackageloaded{multicol}{\input{multicol-xepersian.def}}{}
\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{}
\@ifclassloaded{article}{\input{article-xepersian.def}}{}
\@ifclassloaded{amsart}{\input{amsart-xepersian.def}}{}
-\@ifclassloaded{bidimoderncv}{\input{bidimoderncv-xepersian.def}}{}
\@ifclassloaded{report}{\input{report-xepersian.def}}{}
\@ifclassloaded{rapport3}{\input{rapport3-xepersian.def}}{}
\@ifclassloaded{scrartcl}{\input{scrartcl-xepersian.def}}{}
\@ifclassloaded{scrbook}{\input{scrbook-xepersian.def}}{}
\@ifclassloaded{scrreprt}{\input{scrreprt-xepersian.def}}{}
-\@ifclassloaded{xepersian-thesis}{\input{xepersian-thesis-xepersian.def}}{}
\@ifclassloaded{amsbook}{\input{amsbook-xepersian.def}}{}
\@ifclassloaded{bookest}{\input{bookest-xepersian.def}}{}
\@ifclassloaded{extbook}{\input{extbook-xepersian.def}}{}
\@ifclassloaded{book}{\input{book-xepersian.def}}{}
\@ifclassloaded{refrep}{\input{refrep-xepersian.def}}{}
-\@ifclassloaded{bidibeamer}{\input{bidibeamer-xepersian.def}}{}
\@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{}
+\DeclareOption{Kashida}{\input{kashida-xepersian.def}}
+\DeclareOption{localise}{\input{localise-xepersian.def}}
+\ProcessOptions
%%
-%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of