[Tugindia] Indian languages

P P Narayanaswami swami at mun.ca
Fri Jul 28 19:36:02 CEST 2017


%%%%%%%%%%%%Minimal xelatex  example %%%%%%%%%%%%%%%%
%%%%please run "xelatex" (not latex)  on this file%%%%%%%

\documentclass{article}
\usepackage{xltxtra}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,Mapping=tex-text,Numbers=OldStyle]{DejaVu 
Serif}
\newfontfamily{\sans}[Script=Devanagari]{Sanskrit2003}
\newfontfamily{\mal}[Script=Malayalam]{Rachana}
\newfontfamily{\tam}[Script=Tamil]{Latha}
\newfontfamily{\tel}[Script=Telugu]{Pothana2000}
\newfontfamily{\kan}[Script=Kannada]{Mallige}
\begin{document}
"Vande Mataram" in several languages:\\
\begin{quote}
{\sans वन्दे मातरं } (Devanagari/Hindi)\\
{\mal വന്ദേ മാതരം} (Malayalam)\\
{\tam வந்தே மாதரம்} (Tamil) \\
{\tel వందే మాతరం} (Telugu)\\
{\kan ವಂದೇ ಮಾತರಂ} (Kannada)
\end{quote}
\end{document}

You can use an(.ttf) that is installed in your operating system, but
make sure you use the "correct name" in the preamble (as found in your 
OS).
You can use any of the so many Unicode Editors to type material in any 
language.

Narayanaswami


More information about the tugindia mailing list