summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/velthuis/xetex-examples.tex
blob: 8149743f95aa53598d140b5df20514af2660a5b9 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
%% $Id: xetex-examples.tex,v 1.3 2008-03-12 19:41:03 icebearsoft Exp $
% Requires font Nakula by John Smith,
% see http://bombay.indology.info/software/fonts/devanagari/index.html
\documentclass[12pt]{article}
\usepackage{ifxetex}
\RequireXeTeX
\usepackage{fontspec}
\newcommand\dn{\catcode`\~=12
           \fontspec[Script=Devanagari,Mapping=velthuis-sanskrit]{Nakula}}

\let\origlabelitemi\labelitemi
\renewcommand\labelitemi{{\normalfont\origlabelitemi}}

\parindent=0pt

\begin{document}

\section{Examples}

{\dn
\begin{center}
\setlength{\fboxrule}{2pt}
\framebox[3.2cm][s]{.o ga.ne"saaya nama.h}
\end{center}
}

\verb+{\+{\tt dn}
\begin{verbatim}
\begin{center}
\setlength{\fboxrule}{2pt}
\framebox[4cm][s]{.o ga.ne"saaya nama.h}
\end{center}
}
\end{verbatim}

\hrule
\medskip

{\dn
atha ga.nitapraarambhe.abhii.s.tadevataa.m namaskaroti|
\begin{itemize}
\setlength{\itemsep}{0mm}
\item nanu pratyadhyaayamabhii.s.tadevataapra.natipratij~nota
granthaarambhe k.rtanamaskaare.naabhii.s.tasiddhirbhavati|
punari.s.tadevataanamaskaare.na ki.m saadhya.m|
\item ucyate divya.m hyatiindriya.m j~naana.m ga.nita.m
munibhirmata.m para.m brahmeva durj~neya.m vidyaanaamuttama.m
tata.h| atho vidyottamatvaatpraarambhe.abhii.s.tadevataasmarana.m
tathaa caadau madhye tathaa caante granthe kaarye.svapi
sm.rta.m ma"ngalaacarana.m ce.s.tadevataapuujanaadi ca|
\end{itemize}
}

\begin{verbatim}
\documentclass[12pt]{article}
\usepackage{fontspec}
\newcommand\dn{\catcode`\~=12
           \fontspec[Script=Devanagari,%
                     Mapping=velthuis-sanskrit]{Nakula}}
\end{verbatim}
%\vspace*{-.45cm}
%\vspace*{-.40cm}
%\begin{verbatim}
\verb+\+\verb+begin{document}+ \\
%\end{verbatim}
%\vspace*{-.35cm}
\verb+{\+{\tt dn}
\begin{verbatim}
atha ga.nitapraarambhe.abhii.s.tadevataa.m namaskaroti|
\begin{itemize}
\setlength{\itemsep}{0mm}
\item nanu pratyadhyaayamabhii.s.tadevataapra.natipratij~nota
granthaarambhe k.rtanamaskaare.naabhii.s.tasiddhirbhavati|
punari.s.tadevataanamaskaare.na ki.m saadhya.m|
\item ucyate divya.m hyatiindriya.m j~naana.m ga.nita.m
munibhirmata.m para.m brahmeva durj~neya.m vidyaanaamuttama.m
tata.h|
atho vidyottamatvaatpraarambhe.abhii.s.tadevataasmarana.m
tathaa caadau madhye tathaa caante granthe kaarye.svapi
sm.rta.m ma"ngalaacarana.m ce.s.tadevataapuujanaadi ca|
\end{itemize}
}
\end{verbatim}

\hrule
\medskip

{\dn
ata ubhayathaa smara.na.m yuktatara.m|
\begin{verse}
liilaagalalulallolakaalavyaalavilaasine|\\
\hspace*{10mm} ga.ne"saaya namo niilakamalaamalakaantaye|| 12||
\end{verse}
}

\verb+{\+{\tt dn}
\begin{verbatim}
ata ubhayathaa smara.na.m yuktatara.m|
\begin{verse}
liilaagalalulallolakaalavyaalavilaasine|\\
\hspace*{10mm} ga.ne"saaya namo niilakamalaamalakaantaye|| 12||
\end{verse}
}
\end{verbatim}

\hrule
\medskip

{\dn \bfseries
ata ubhayathaa smara.na.m yuktatara.m|
}

\verb+{\+{\tt dn}
\begin{verbatim}
 \bfseries ata ubhayathaa smara.na.m yuktatara.m|}
\end{verbatim}

\hrule
\medskip

{\dn \Large ata ubhayathaa smara.na.m yuktatara.m|}

\verb+{\+{\tt dn}
\begin{verbatim}
 \Large ata ubhayathaa smara.na.m yuktatara.m|}
\end{verbatim}

\newpage
\hrule
\medskip

{\dn
"sriibhaaskaraacaaryaga.nita"saastrebhya udaahara.naani
\begin{enumerate}
\item liilavaatii
\item biijaga.nita.m
\item grahaga.nita.m
\end{enumerate}
}

\verb+{\+{\tt dn}
\begin{verbatim}
"sriibhaaskaraacaaryaga.nita"saastrebhya udaahara.naani
\begin{enumerate}
\item liilavaatii
\item biijaga.nita.m
\item grahaga.nita.m
\end{enumerate}
}
\end{verbatim}

\hrule
\medskip

{\dn \centerline{.o tatsat}}

\medskip
\verb+{\dn \centerline{{.o tatsat}}+


\end{document}