blob: 76afdcf3546634e3ef8ff49384f3dca69c9ef18c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
\PassOptionsToPackage{fontsloadable=true}{xepersian} % Load xepersian with a few options
\documentclass{report}
\usepackage{xcolor}
\usepackage[Kashida=on]{xepersian}
\settextfont[Scale=4.5,Colour=000001]{XB Kayhan}
\setlatintextfont[Scale=1.5,Colour=0000FF]{XB Kayhan}
\defpersianfont\XBKayhanEn[Scale=1.2,Colour=000001]{XB Kayhan}
\defpersianfont\XBKayhanIt[Scale=4.5,Colour=000001]{XB Kayhan Italic}
\defpersianfont\XBKayhanOb[Scale=4.5,Colour=000001]{XB Zar Oblique}
\defpersianfont\XBKayhanOl[Scale=4.5,Colour=000001]{XB Kayhan Pook}
\defpersianfont\XBKayhanSd[Scale=4.5,Colour=000001]{XB Kayhan Sayeh}
\defpersianfont\XBKayhanPo[Scale=4.5,Colour=000001]{XB Kayhan Pook}
\defpersianfont\XBKayhanSa[Scale=4.5,Colour=000001]{XB Kayhan Sayeh}
\defpersianfont\XBKayhanNa[Scale=4.5,Colour=000001]{XB Kayhan Navaar}
\def\SampleText{
راهی جایی تابی چاپی چاههی تلاشهایی
شتابهایی تابی چاپی راهی تلاشهــایی
که کتابهایی که کلاههایی که کتابهایی }
\def\SampleTitle#1#2#3{{{\begin{latin}\XBKayhanEn Engine: {\color{blue}\texttt{#1,}} \\
Style: {\color{blue}\texttt{#2,}} \\ Kashida: {\color{blue}\texttt{#3}}\end{latin}}}\hbox{}\vskip 5mm}
\setlength\parindent{0pt}
% \pagestyle{empty}
\setcounter{page}{16}
\let\tmppage=\thepage
\gdef\thepage{\scriptsize\lr\tmppage}
\begin{document}
\begin{latin}
\begin{center}
{\Huge\textsf{\XePersian} \\
\vspace{20pt} Example of Use \\
\vspace{20pt}\texttt{Engine: XeTeX {\normalsize using xepersian}} \\
\vspace{20pt}\texttt{Kashida=leaders+hrule}} \\
\vspace{20pt}\makebox{\textsf{File:} \texttt{TEXMFDIST/doc/latex/texnegar/xepersian-XB.tex}} \\
\vspace{20pt}
{\Large
\begin{tabular}{ll}
\textsf{Font:} & \textsf{XB Kayhan} \\
\textsf{Font Scale:} & \texttt{4.5} \\
\textsf{color:} & \texttt{red}
\end{tabular}
}
\end{center}
\end{latin}
\color{red}
\newpage \KashidaOff \SampleTitle{XeTeX using xepersian}{Regular}{Off} \par \SampleText
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Regular}{leaders+hrule On} \par \SampleText
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Italic}{leaders+hrule On} \par {\XBKayhanIt \SampleText}
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Oblique}{leaders+hrule On} \par {\XBKayhanOb \SampleText}
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Outline}{leaders+hrule On} \par {\XBKayhanOl \SampleText}
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Sayeh}{leaders+hrule On} \par {\XBKayhanSd \SampleText}
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Pook}{leaders+hrule On} \par {\XBKayhanPo \SampleText}
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Sayeh}{leaders+hrule On} \par {\XBKayhanSa \SampleText}
\newpage \KashidaOn \SampleTitle{XeTeX using xepersian}{Navaar}{leaders+hrule On} \par {\XBKayhanNa \SampleText}
\end{document}
|