% test-spaces-in-poem.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage{bidipoem}
\usepackage[logo=off]{xepersian}
\settextfont[Scale=1.2]{HM XYas}
\linespread{1.5}
\pagestyle{empty}
\begin{document}
\renewcommand\poemcolsepskip{1.0cm}
این یک آزمایش است. این یک آزمایش است. این یک آزمایش است.
\begin{traditionalpoem}
آنانکه محیط فضل و آداب شدند & در جمع کمال شمع اصحاب شدند \\
ره زین شب تاریک نبردند برون & گفتند فسانهای و در خواب شدند
\end{traditionalpoem}
این یک آزمایش است. این یک آزمایش است. ... ... ... .. این یک آزمایش است.
\begin{traditionalpoem}
آنانکه محیط فضل و آداب شدند & در جمع کمال شمع اصحاب شدند \\
ره زین شب تاریک نبردند برون & گفتند فسانهای و در خواب شدند
\end{traditionalpoem}
این یک آزمایش است. این یک آزمایش است. ... ... ... . این یک آزمایش است.
\begin{traditionalpoem}
آنانکه محیط فضل و آداب شدند & در جمع کمال شمع اصحاب شدند \\
ره زین شب تاریک نبردند برون & گفتند فسانهای و در خواب شدند
\end{traditionalpoem}
این یک آزمایش است. این یک آزمایش است. این یک آزمایش است.
\end{document}
% test-xparse-environemnt-argumrnts.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass[10pt]{article}
\usepackage{xparse}
\usepackage{xcolor}%
\usepackage[framemethod=TikZ]{mdframed}
\usepackage[logo=off]{xepersian}
\settextfont{HM XYas}
\setdigitfont{HM XYas}
\pagestyle{empty}
\begin{document}
\NewDocumentEnvironment {MyBoxEnv} {O{} O{4}}
{\mdfdefinestyle{fboxeddefault}{leftmargin=#2mm,rightmargin=#2mm}
\begin{mdframed}[style=fboxeddefault]{\bf\textcolor{red}{#1}}}
{\end{mdframed}}
\DeclareDocumentCommand{\MyBox}{O{} O{} m}{\begin{MyBoxEnv}[#1][#2]#3\end{MyBoxEnv}}
\begin{MyBoxEnv}[][9]
این آزمایش ۱ است.
\end{MyBoxEnv}
\begin{MyBoxEnv}[عنوان:]
این آزمایش ۲ است.
\end{MyBoxEnv}
\begin{MyBoxEnv}
این آزمایش ۳ است.
\end{MyBoxEnv}
\MyBox[عنوان: ][13]{این آزمایش ۴ است.}
\MyBox{این آزمایش ۵ است.}
\end{document}
% index-bidipoem.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage[top=25mm, bottom=25mm, left=18mm, right=18mm]{geometry}
\usepackage{makeidx}
\usepackage{hyperref}
\usepackage{multicol}
\usepackage[logo=off,quickindex]{xepersian}
\usepackage{bidipoem}
\settextfont[Scale=1.2]{HM XYas}
\renewcommand{\baselinestretch}{1.5}
\makeindex
\setlength{\columnseprule}{0.5pt}
\renewcommand\poemcolsepskip{1.0cm}
\pagestyle{empty}
\begin{document}
\centerline{شعر شمارهٔ ۱}
\begin{traditionalpoem}
این مصرع اول از اول است. & این مصرع دوم از اول است.\index{بیت اول} \\
این مصرع اول از دوم است. & این مصرع دوم از دوم است.\index{مصرع دوم} \\
این مصرع اول از سوم است. & این مصرع دوم از سوم است.\index{مصرع سوم} \\
\end{traditionalpoem}
\centerline{شعر شمارهٔ ۲}
\begin{traditionalpoem}
این مصرع اول . از چهارم است. & این مصرع دوم . از چهارم است. \index{بیت چهارم} \\
این مصرع اول از پنجم است. & این مصرع دوم از پنجم است. \index{مصرع پنجم} \\
این مصرع اول .. از ششم است. & این مصرع دوم .. از ششم است. \index{مصرع ششم} \\
\end{traditionalpoem}
\centerline{شعر شمارهٔ ۳}
\begin{traditionalpoem}
این مصرع اول از هفتم است. & این مصرع دوم از هفتم است. \index{بیت هفتم} \\
این مصرع اول . از هشتم است. & این مصرع دوم . از هشتم است. \index{مصرع هشتم} \\
این مصرع اول از نهم است. & این مصرع دوم از نهم است. \index{مصرع نهم} \\
\end{traditionalpoem}
\printindex
\end{document}
% index-bidipoem.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage[top=25mm, bottom=25mm, left=18mm, right=18mm]{geometry}
\usepackage{makeidx}
\usepackage{hyperref}
\usepackage{multicol}
\usepackage[logo=off,quickindex]{xepersian}
\usepackage{bidipoem}
\settextfont[Scale=1.2]{HM XYas}
\renewcommand{\baselinestretch}{1.5}
\def\MyIndex#1{\unskip\relax\index{#1}}
\makeatletter
\def\makeindex{%
\newwrite\@indexfile
\immediate\openout\@indexfile=\jobname.idx
\def\index{\unskip\@bsphack\begingroup
\@sanitize
\@wrindex}\typeout
{Writing index file \jobname.idx}%
\let\makeindex\@empty
}
\makeatother
\makeindex
\setlength{\columnseprule}{0.5pt}
\renewcommand\poemcolsepskip{1.0cm}
\pagestyle{empty}
\begin{document}
\centerline{شعر شمارهٔ ۱}
\begin{traditionalpoem}
این مصرع اول از اول است. & این مصرع دوم از اول است.\index{بیت اول} \\
این مصرع اول از دوم است. & این مصرع دوم از دوم است.\index{مصرع دوم} \\
این مصرع اول از سوم است. & این مصرع دوم از سوم است.\index{مصرع سوم} \\
\end{traditionalpoem}
\centerline{شعر شمارهٔ ۲}
\begin{traditionalpoem}
این مصرع اول . از چهارم است. & این مصرع دوم . از چهارم است. \index{بیت چهارم} \\
این مصرع اول از پنجم است. & این مصرع دوم از پنجم است. \index{مصرع پنجم} \\
این مصرع اول .. از ششم است. & این مصرع دوم .. از ششم است. \index{مصرع ششم} \\
\end{traditionalpoem}
\centerline{شعر شمارهٔ ۳}
\begin{traditionalpoem}
این مصرع اول از هفتم است. & این مصرع دوم از هفتم است. \MyIndex{بیت هفتم} \\
این مصرع اول . از هشتم است. & این مصرع دوم . از هشتم است. \MyIndex{مصرع هشتم} \\
این مصرع اول از نهم است. & این مصرع دوم از نهم است. \MyIndex{مصرع نهم} \\
\end{traditionalpoem}
\printindex
\end{document}
% space-between-letters-with-kashida-XB.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{report}
\usepackage{amsthm}
\usepackage[logo=off,Kashida,KashidaXBFix]{xepersian}
\settextfont[Scale=9]{XB Niloofar}
\setdigitfont[Scale=9]{XB Niloofar}
\chardef\kashida="0640
\theoremstyle{plain}
\newtheorem{theorem}{قضیه}[section]
\newtheorem{definition}[theorem]{تعریف}
\pagestyle{empty}
\begin{document}
\begin{definition}
این آزمایش تعریف ریاضی است.
ها \kashida
\end{definition}
\end{document}
% space-between-letters-with-kashida-HM.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{report}
\usepackage{amsthm}
\usepackage[logo=off,Kashida]{xepersian}
\settextfont[Scale=9]{HM XNiloofar}
\setdigitfont[Scale=9]{HM XNiloofar}
\chardef\kashida="0640
\theoremstyle{plain}
\newtheorem{theorem}{قضیه}[section]
\newtheorem{definition}[theorem]{تعریف}
\pagestyle{empty}
\begin{document}
\begin{definition}
این آزمایش تعریف ریاضی است.
ها \kashida
\end{definition}
\end{document}
% footnoterule-position.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage{multicol,ptext}
\usepackage[extrafootnotefeatures,logo=off]{xepersian}
\settextfont{HM XYas}
\begin{document}
\begin{multicols*}{2}
این یک آزمایش است.
\RTLfootnote{آزمایش پانویس}
\lr{This is a test.}
\LTRfootnote{Footnote test}
\ptext[1-7]
\newpage
\lr{This is a test.}
\LTRfootnote{Footnote test}
این یک آزمایش است.
\RTLfootnote{آزمایش پانویس}
\ptext[8-14]
\newpage
این یک آزمایش است.
\RTLfootnote{
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
}
\lr{This is a test.}
\LTRfootnote{
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
}
\ptext[15-21]
\newpage
\lr{This is a test.}
\LTRfootnote{
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
}
این یک آزمایش است.
\RTLfootnote{
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
}
\ptext[22-28]
\end{multicols*}
\end{document}
% fix-footnoterule-position.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage{multicol,ptext}
\usepackage[extrafootnotefeatures,logo=off]{xepersian}
\settextfont{HM XYas}
\makeatletter
\footdir@temp\footdir@ORG@RTLfootnotetext\@RTLfootnotetext{R}%
\footdir@temp\footdir@ORG@LTRfootnotetext\@LTRfootnotetext{L}%
\def\left@footnoterule{\kern-3\p@
\hrule \@width \columnwidth \kern 2.6\p@}
\def\right@footnoterule{\kern-3\p@%
\newskip\Myskip
\Myskip=\columnwidth
\advance \Myskip by \columnsep
\hbox to \textwidth{\hskip \Myskip \leaders\hrule \@width \columnwidth \hfil}\kern2.6\p@}%
\def\footnoterule{%
\footdir@LeftRightElse
\left@footnoterule
\right@footnoterule
\left@footnoterule
}
\makeatother
\begin{document}
\begin{multicols*}{2}
این یک آزمایش است.
\RTLfootnote{آزمایش پانویس}
\lr{This is a test.}
\LTRfootnote{Footnote test}
\ptext[1-5]
\newpage
\lr{This is a test.}
\LTRfootnote{Footnote test}
این یک آزمایش است.
\RTLfootnote{آزمایش پانویس}
\ptext[1-5]
\newpage
این یک آزمایش است.
\RTLfootnote{
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
}
\lr{This is a test.}
\LTRfootnote{
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
}
\ptext[1-5]
\newpage
\lr{This is a test.}
\LTRfootnote{
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
Footnote test Footnote test Footnote test Footnote test
}
این یک آزمایش است.
\RTLfootnote{
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
آزمایش پانویس آزمایش پانویس آزمایش پانویس آزمایش پانویس
}
\ptext[1-5]
\end{multicols*}
\end{document}
\patchcmd[<prefix>]{<command>}{<search>}{<replace>}{<success>}{<failure>}
\newrobustcmd*{\patchcmd}{%
\etb@dbg@trce\patchcmd
\begingroup
\@makeother\#%
\etb@patchcmd}
\newcommand{\etb@patchcmd}[4][########1]{%
\etb@ifpatchable#2{#3}
{\etb@dbg@succ{ret}%
\begingroup
\edef\etb@resrvda{%
\def\noexpand\etb@resrvda####1\detokenize{macro:}####2->####3&{%
#1\def\string\etb@resrvda\space####2{\noexpand\etb@resrvdb####3&}}%
\def\noexpand\etb@resrvdb####1\detokenize{#3}####2&{%
####1\detokenize{#4}####2}%
\edef\noexpand\etb@resrvda{%
\noexpand\etb@resrvda\meaning#2&}}%
\etb@resrvda
\etb@patchcmd@scantoks\etb@resrvda
\let#2\etb@resrvda
\undef\etb@resrvda
\@firstoftwo}%
{\@secondoftwo}}
% test-nested-definitions.tex
\documentclass{article}
\begin{document}
=================
\newcommand{\X}[2][########1]{\par X: #1-#2 :X
\def\Y##1{\par Y: #1-#2-##1 :Y
\def\Z####1{\par Z :#1-#2-####1 :Z}}}
\X[1111]{Test}
\Y{2222}
\Z{3333}
=================
\newcommand{\XX}[2][########1]{\par XX: -#2 :XX
\def\YY##1{\par YY: -#2-##1: YY
\def\ZZ####1{\par ZZ: #1-#2-####1: ZZ}}}
\XX{Test}
\YY{2222}
\ZZ{3333}
=================
\newcommand{\XXX}[2][####1]{\par XXX: -#2 :XXX
\def\YYY##1{\par YYY: #1-#2-##1 :YYY
\def\ZZZ####1{\par ZZZ: #1-#2-####1 :ZZZ}}}
\XXX{Test}
\YYY{2222}
\ZZZ{3333}
=================
\end{document}
\long\def\@firstoftwo#1#2{#1}
\long\def\@secondoftwo#1#2{#2}
\patchcmd{\footnoterule}{\columnwidth}{\textwidth}{\typeout{Succeeded}}{\typeout{failed}}
\patchcmd{\footnoterule}{\columnwidth}{\textwidth}{}{}
\patchcmd{\footnoterule}{\columnwidth}{\textwidth}
% footnoterule-succeeds.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage{etoolbox}
\usepackage{multicol,ptext}
\usepackage[extrafootnotefeatures,logo=off]{xepersian}
\settextfont{HM XYas}
\pagestyle{empty}
\patchcmd{\footnoterule}{\columnwidth}{\textwidth}{}{}
\begin{document}
این یک آزمایش است.
\LTRfootnote{Footnote test}
\end{document}
% footnoterule-fails.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage{etoolbox}
\usepackage{multicol,ptext}
\usepackage[extrafootnotefeatures,logo=off]{xepersian}
\settextfont{HM XYas}
\pagestyle{empty}
\patchcmd{\footnoterule}{\columnwidth}{\textwidth}
\begin{document}
این یک آزمایش است.
\LTRfootnote{Footnote test}
\end{document}
% box-at-the-end-of-line.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage[logo=off]{xepersian}
\settextfont{HM XYas}
\setlatintextfont{HM XYas}
\setdigitfont{HM XYas}
\makeatletter
\newbox\AnswerBox
\newbox\DateBox
\newif\ifAnswerBox
\newif\ifDateBox
\newdimen\HsizeMin
\newbox\LastLineBoxMin
\newbox\LastLineBox
\newbox\LastLineOutBox
\def\changelastline{
\setbox\LastLineBox\lastbox
\ifvoid\LastLineBox
\setbox\LastLineBox\lastbox
\setbox\LastLineOutBox\hbox{\unhcopy\LastLineBox}
\else
\setbox\LastLineBoxMin=\hbox{\unhcopy\LastLineBox}
\unskip\unpenalty
\HsizeMin = \wd\LastLineBoxMin
\advance \HsizeMin by \wd\DateBox
\ifnum\HsizeMin > \hsize
\DateBoxtrue
\setbox\LastLineOutBox\hbox to \hsize{\unhcopy\LastLineBox}
\else
\if@RTL
\setbox\LastLineOutBox\hbox to \hsize{\unhcopy\DateBox \hfill \unhcopy\LastLineBox}
\else
\setbox\LastLineOutBox\hbox to \hsize{\unhcopy\LastLineBox \hfill \unhcopy\DateBox}
\fi
\fi
\fi
\box\LastLineOutBox
\ifDateBox
\if@RTL
\hbox to \hsize{\unhcopy\DateBox \hfill \unhcopy\AnswerBox}
\else
\hbox to \hsize{\unhcopy\AnswerBox \hfill \unhcopy\DateBox}
\fi
\else
\if@RTL
\hbox to \hsize{\hfill \unhcopy\AnswerBox}
\else
\copy\AnswerBox
\fi
\fi
}
\makeatother
\def\EnText{GENTLE READER: This is a handbook about \TeX, a new typesetting system
intended for the creation of beautiful books|and especially for books
that contain a lot of mathematics. By preparing a manuscript in TEX format,
you will be telling a computer exactly how the manuscript is to be transformed
into pages whose typographic quality is comparable to that of the world's finest
printers; yet you won't need to do much more work than would be involved if
you were simply typing the manuscript on an ordinary typewriter. }
\def\PeText{کنون ای خردمند وصف خرد - بدین جایگه گفتن اندرخورد -
کنون تا چه داری بیار از خرد - که گوش نیوشنده زو برخورد -
خرد بهتر از هر چه ایزد بداد - ستایش خرد را به از راه داد -
خرد رهنمای و خرد دلگشای - خرد دست گیرد به هر دو سرای -
ازو شادمانی وزویت غمیست - وزویت فزونی وزویت کمیست -
خرد تیره و مرد روشن روان - نباشد همی شادمان یک زمان -
چه گفت آن خردمند مرد خرد - که دانا ز گفتار از برخورد. }
\pagestyle{empty}
\begin{document}
\begin{latin}
\setbox\AnswerBox=\hbox{(a) \hskip10pt (b) \hskip10 pt (c)\hskip10pt (d)}
\setbox\DateBox=\hbox{Date: 2018/05/03}
\vbox{\EnText
This is a test 1.
This is a test 2.
% This is a test 3.
% This is a test 4.
% This is a test 4.
% This is a test 5.
\par\changelastline}
\vskip 10pt
\vbox{\EnText
This is a test 1.
This is a test 2.
This is a test 3.
This is a test 4.
% This is a test 5.
\par\changelastline}
\end{latin}
\setbox\AnswerBox=\hbox{\rl{(الف) \hskip10pt (ب) \hskip10 pt (ج)\hskip10pt (د)}}
\setbox\DateBox=\hbox{\rl{تاریخ: ۲۰۱۸/۰۵/۰۳}}
\vskip 10pt
\vbox{\PeText
این یک آزمایش است ۱.
این یک آزمایش است ۲.
این یک آزمایش است ۳.
% این یک آزمایش است ۴.
% این یک آزمایش است ۵.
\par\changelastline}
\vskip 10pt
\vbox{\PeText
این یک آزمایش است ۱.
این یک آزمایش است ۲.
این یک آزمایش است ۳.
این یک آزمایش است ۴.
% این یک آزمایش است ۵.
\par\changelastline}
\end{document}
cd /Your-TeXLive-Dir/texmf-dist/tex/xelatex/xepersian/
cp xepersian.sty xepersian.sty.OLD
sed -i 's@\\l__fontspec_nfss_enc_tl@\\g__fontspec_nfss_enc_tl@g' xepersian.sty
% texlive-fontspec-upgrade.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage[logo=off]{xepersian}
\settextfont{HM XYas}
\setlatintextfont{HM XYas}
\setdigitfont{HM XYas}
\def\EnText{GENTLE READER: This is a handbook about \TeX, a new typesetting
system intended for the creation of beautiful books|and especially for books
that contain a lot of mathematics. By preparing a manuscript in TEX format,
you will be telling a computer exactly how the manuscript is to be transformed
into pages whose typographic quality is comparable to that of the world's
finest printers; yet you won't need to do much more work than would be involved
if you were simply typing the manuscript on an ordinary typewriter. }
\def\PeText{کنون ای خردمند وصف خرد - بدین جایگه گفتن اندرخورد -
کنون تا چه داری بیار از خرد - که گوش نیوشنده زو برخورد -
خرد بهتر از هر چه ایزد بداد - ستایش خرد را به از راه داد -
خرد رهنمای و خرد دلگشای - خرد دست گیرد به هر دو سرای -
ازو شادمانی وزویت غمیست - وزویت فزونی وزویت کمیست -
خرد تیره و مرد روشن روان - نباشد همی شادمان یک زمان -
چه گفت آن خردمند مرد خرد - که دانا ز گفتار از برخورد. }
\pagestyle{empty}
\begin{document}
\PeText
\vskip \baselineskip
\begin{latin}
\EnText
\end{latin}
\end{document}
mingranina نوشته است:با سلام
تغییراتی که اخیراً در نسخهٔ جدید بستهٔ fontspec-2.6h (2018/07/30) و بعد از آن ایجاد شده است موجب بروز خطا در اجرای XePersian میشود. برای رفع این مشکل باید در سرتاسر فایل xepersian.sty توکن (token) \l__fontspec_nfss_enc_tl را به \g__fontspec_nfss_enc_tl تغییر دهید.
بنابراین اگر از سیستمعامل لینوکس و یا مشابه آن استفاده میکنید کافی است در خط فرمان دستورات زیر را اجرا کنید:
- کد: انتخاب همهٔ
cd /Your-TeXLive-Dir/texmf-dist/tex/xelatex/xepersian/
cp xepersian.sty xepersian.sty.OLD
sed -i 's@\\l__fontspec_nfss_enc_tl@\\g__fontspec_nfss_enc_tl@g' xepersian.sty
در غیر اینصورت برای اعمال تغییرات از ویرایشگر مورد علاقهٔ خود استفاده کنید.
لطفاً قبل از ایجاد هرگونه تغییری در فایل مورد نظر از آن یک کپی مطمئن و قابل بازیافت تهیه کنید.
کد زیر نمونهای شامل متون فارسی و لاتین است که پس از بروزرسانی TeXLive-2018 (و ارتقاء بستهٔ fontspec به 2.6i) و اعمال تغییرات فوق در فایل xepersian.sty برای آزمایش بهکار رفته است:
- کد: انتخاب همهٔ
% texlive-fontspec-upgrade.tex
\PassOptionsToPackage{pdfinfo=off}{bidi}
\documentclass{article}
\usepackage[logo=off]{xepersian}
\settextfont{HM XYas}
\setlatintextfont{HM XYas}
\setdigitfont{HM XYas}
\def\EnText{GENTLE READER: This is a handbook about \TeX, a new typesetting
system intended for the creation of beautiful books|and especially for books
that contain a lot of mathematics. By preparing a manuscript in TEX format,
you will be telling a computer exactly how the manuscript is to be transformed
into pages whose typographic quality is comparable to that of the world's
finest printers; yet you won't need to do much more work than would be involved
if you were simply typing the manuscript on an ordinary typewriter. }
\def\PeText{کنون ای خردمند وصف خرد - بدین جایگه گفتن اندرخورد -
کنون تا چه داری بیار از خرد - که گوش نیوشنده زو برخورد -
خرد بهتر از هر چه ایزد بداد - ستایش خرد را به از راه داد -
خرد رهنمای و خرد دلگشای - خرد دست گیرد به هر دو سرای -
ازو شادمانی وزویت غمیست - وزویت فزونی وزویت کمیست -
خرد تیره و مرد روشن روان - نباشد همی شادمان یک زمان -
چه گفت آن خردمند مرد خرد - که دانا ز گفتار از برخورد. }
\pagestyle{empty}
\begin{document}
\PeText
\vskip \baselineskip
\begin{latin}
\EnText
\end{latin}
\end{document}
خروجی کد فوق با استفاده از دستور سادهٔ «xelatex texlive-fontspec-upgrade.tex» بصورت زیر است:
نرمافزارهای مورد استفاده:bidi: v33.0, 2018/06/15
xepersian: v21.2, 2018/061/15
با تشکر
کاربران حاضر در این انجمن: بدون کاربران آنلاین و 2 مهمان