% \PassOptionsToPackage{debugfootnotedirection=off,localise=off}{xepersian} % Load xepersian with a few options \documentclass{report} % \textwidth=345.0pt % \textheight=550.0pt % \textheight=620pt % \usepackage[Kashida]{xepersian} % Fails % \usepackage{xepersian-hm} % Succeeds \usepackage[Kashida=leaders+glyph,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds % \usepackage[Kashida=hrule,kashidastretch=0.14 em plus 5.5 em]{xepersian-hm} % Succeeds % \usepackage[Kashida=glyph,linebreakpenalty=8,kashidastretch=0.14 em plus 5.5 em]{xepersian-hm} % Succeeds % \usepackage[Kashida=glyph,kashidastretch=kayhan]{xepersian-hm} % Succeeds % \usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds % \usepackage[Kashida,kashidastretch=noskip]{xepersian-hm} % Succeeds % \usepackage[Kashida,kashidastretch=default]{xepersian-hm} % Succeeds % \usepackage[Kashida,kashidastretch=kayhan]{xepersian-hm} % Succeeds % \usepackage[Kashida,kashidastretch=khorramshahr]{xepersian-hm} % Succeeds % \settextfont[Scale=4.5,Colour=darkgray]{XB Kayhan} \settextfont[Scale=4.5]{HM XKayhan} % \settextfont[Scale=4.5,Colour=darkgray]{HM XNiloofar} % \settextfont[Scale=4.5,Colour=darkgray]{HM XYas} % \settextfont[Scale=4.5,Colour=darkgray]{HM XZar} % \settextfont[Scale=1,Colour=darkgray]{HM XKayhan} % \setlatintextfont[Scale=2.5,Colour=0000FF]{XB Kayhan} \setlatintextfont[Scale=1.5,Colour=0000FF]{HM XKayhan} \defpersianfont\HMXKayhanIt[Scale=4.5]{HM XKayhan Italic} \defpersianfont\HMXKayhanOb[Scale=4.5]{HM XKayhanOb Oblique} \defpersianfont\HMXKayhanOl[Scale=4.5]{HM XKayhan Outline} \defpersianfont\HMXKayhanSd[Scale=4.5]{HM XKayhan Shadow} \defpersianfont\HMXKayhanPo[Scale=4.5]{HM XKayhan Pook} \defpersianfont\HMXKayhanSa[Scale=4.5]{HM XKayhan Sayeh} \defpersianfont\HMXKayhanNa[Scale=4.5]{HM XKayhan Navaar} % \def\SampleText{\discouragebadlinebreaks[8][0.14 em plus 5.5 em]{ % راهی جایی تابی چاپی چاههی تلاشهایی % شتابهایی تابی چاپی راهی تلاشهــایی % که کتابهایی که کلاههایی که کتابهایی }} % \def\SampleText{\discouragebadlinebreaks[10][0.12 em plus 5.5 em]{ % راهی جایی تابی چاپی چاههی تلاشهایی % شتابهایی تابی چاپی راهی تلاشهــایی % که کتابهایی که کلاههایی که کتابهایی }} % \def\SampleText{\discouragebadlinebreaks{ % راهی جایی تابی چاپی چاههی تلاشهایی % شتابهایی تابی چاپی راهی تلاشهــایی % که کتابهایی که کلاههایی که کتابهایی }} \def\SampleText{ راهی جایی تابی چاپی چاههی تلاشهایی شتابهایی تابی چاپی راهی تلاشهــایی که کتابهایی که کلاههایی که کتابهایی } \setlength\parindent{0pt} \pagestyle{empty} \begin{document} \begin{latin} \begin{center} \Huge\textsf{xepersian-hm}\vspace{20pt}\\ Example of Use\vspace{20pt}\\ \texttt{Kashida=hrule} \vspace{40pt} {\Large \begin{tabular}{ll} \textsf{Font:} & \textsf{HM XKayhan} \\ \textsf{Font Scale:} & \texttt{4.5} \\ \textsf{kashidastretch:} & \texttt{0.14em plus 0.5em} \end{tabular} } \end{center} \end{latin} \newpage \KashidaOff{\hfill\lr{(Kashida Off, Regular)}\hfill} \SampleText \newpage \KashidaOn{\hfill\lr{(Kashida On, Regular)}\hfill} \SampleText \newpage \KashidaOn{\hfill\lr{(Kashida On, Italic)}\hfill} {\HMXKayhanIt \SampleText} \newpage \KashidaOn{\hfill\lr{(Kashida On, Oblique)}\hfill} {\HMXKayhanOb \SampleText} \newpage \KashidaOn{\hfill\lr{(Kashida On, Outline)}\hfill} {\HMXKayhanOl \SampleText} \newpage \KashidaOn{\hfill\lr{(Kashida On, Shadow)}\hfill} {\HMXKayhanSd \SampleText} \newpage \KashidaOn{\hfill\lr{(Kashida On, Pook)}\hfill} {\HMXKayhanPo \SampleText} \newpage \KashidaOn{\hfill\lr{(Kashida On, Sayeh)}\hfill} {\HMXKayhanSa \SampleText} \newpage \KashidaOn{\hfill\lr{(Kashida On, Navaar)}\hfill} {\HMXKayhanNa \SampleText} \end{document}