Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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
add comment

2 Answers 2

up vote 4 down vote accepted

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}

enter image description here

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

share|improve this answer
    
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
add comment

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.

enter image description here

share|improve this answer
    
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
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.