# How to type Telugu in LaTeX and genrate PDF using MiKTeX

So far I have been using LaTeX for writing English documents. My favourite editor is TeXlipse in Eclipse. I am also comfortable with TeXnicCenter. My operating system is Windows. But now my intention is to write some short stories in Telugu. I want to write in my fav word processing tool LaTeX. How can do that? Please suggest me with some basic example. It will be great appreciation.

-
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. –  egreg Mar 31 '12 at 13:51
thanks..I will follow the rules. Happy to join the club..:) –  user13143 Mar 31 '12 at 13:57

you need an OpenType or TrueType font which supprts that language, eg Code2000. Then the following works:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Code2000}
\begin{document}

తెలుగు

\end{document}


You have to run the example with xelatex or alternatively with lualatex; both are installed with every TeX distribution. Code2000 is available from http://www.fonts2u.com/search.html?q=Code2000

-
You should add that this needs to be compiled with XeLaTeX. –  doncherry Mar 31 '12 at 14:06
getting expl2.sty error..how to overcome that? –  user13143 Mar 31 '12 at 14:15
update your TeX distribution –  Herbert Mar 31 '12 at 14:18

This is what I get compiling the following file with XeLaTeX:

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Pothana2000}

\usepackage{polyglossia}
\setmainlanguage{telugu}

\begin{document}

చేయి అనగా మానవులు, చింపాంజీలు, కోతులు మరియు లెమూర్లకు గల శరీరభాగమునకు వేళ్లు
కలబాహ్యంగము. కోలా చేతికి ఎదురెదురుగా వున్న రెండు బొటనవ్రేళ్లు వుంటాయి కాబట్టి దాని శరీరభాగాన్ని
కూడా చేయి లేక 'పా'లు అంటారు.

\end{document}


(The text is what is taken from the main page of Telugu Wikipedia.) How to activate using XeLaTeX with TeXlipse or TeXnicCenter should be looked at in their manuals. But I wouldn't recommend the latter editor as it has Unicode support only in the most recent beta version. A UTF-8 capable editor must be used.

-
TeXnicCenter doesn't support Unicode (at least the stable release doesn't, I'm not sure about 2 alpha 4), and I assume these characters require Unicode. –  doncherry Mar 31 '12 at 14:10
This page says that the default for TC2-alpha4 is UTF-8. Surely previous version of TC2 had a partial support for Unicode. –  egreg Mar 31 '12 at 14:14
getting expl2.sty error..how to overcome that? –  user13143 Mar 31 '12 at 14:14
@user13143 You need to update MiKTeX to version 2.9 or install TeX Live 2011 as your TeX distribution. –  egreg Mar 31 '12 at 14:16
This is great. Both @herbert and egreg. Do you people know telugu? I hope no. That is why this is awesome. –  Harish Kumar Mar 31 '12 at 15:41