1

I am writing a book in Hindi (Devanagari script). When I am using \chapter, it is not converting it in Hindi as अध्याय. I also tried {\dn \chapter} but it returns the title in English. How can I change this behavior?

  • 2
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Alessandro Cuttin Mar 09 '20 at 09:40
  • Nonetheless, by intuition I would say: try \usepackage[hindi]{babel} as in https://www.tug.org/TUGboat/tb27-2/tb87wagner.pdf – Alessandro Cuttin Mar 09 '20 at 09:42
  • 2
    The alleged duplicate is entirely unrelated as this question is about the word used for "Chapter" and that question is about an obsolete package... I don't see any connection between the two except the mention of the script (Devanagari). Could someone who voted to close explain why they thought the two questions are duplicates? – ShreevatsaR Mar 09 '20 at 14:21
  • @AlessandroCuttin Error message came "Illegal character detected" – Vipul Kakkar Mar 11 '20 at 06:47

1 Answers1

1

Insert the following command in the preamble (before \begin{document}). This command re-defines Chapter as अध्याय.

\renewcommand{\chaptername}{\dn अध्याय}
Werner
  • 603,163