0

Having the verses numbered

In the above link, @joharr explains about how we can get the verses numbered within the verse environment.

My Question: How can we get Devanagari numbers (instead of Roman numbers) at the end of every 4 lines?

vrgovinda
  • 330

1 Answers1

1

You can try using polyglossia. The following example uses marathi language with Shobhika font. You can do something similar for Hindi too. This needs XeLaTeX.

% !TeX-program xelatex
\documentclass{article}
\usepackage{url,verse}
\usepackage{polyglossia}
\setdefaultlanguage{marathi}
\setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}

\begin{document} \begin{verse}[13em] \poemlines{4} \begin{altverse} त्या व्याकुळ संध्यासमयी\ शब्दांचा जीव वितळतो\ डोळ्यांत कुणाच्या क्षितिजे\ मी अपुले हात उजळतो\[1ex]

तू आठवणीतुन माझ्या\ कधि रंगित वाट पसरशी,\ अंधार-व्रताची समई\ कधि असते माझ्यापाशी\[1ex]

पदराला बांधुन स्वप्ने\ तू एकट संध्यासमयी,\ तुकयाच्या हातांमधला\ मी अभंग उचलुन घेई\[1ex]

तू मला कुशीला घ्यावे\ अंधार हळू ढवळावा\ संन्यस्त सुखाच्या काठी\ वळिवाचा पाऊस यावा\[1ex] \end{altverse} \end{verse} \end{document}

1

Niranjan
  • 3,435
  • Thank you @Niranjan. I have two questions here. 1. In your example, it seems that the numbers are in multiples of four. But in my case, I need sequential numbering. How to do that? 2. Mine is a bilingual work, that is, Devanagari followed by Roman transliteration. How can I achieve numbering for both? – vrgovinda Dec 12 '21 at 08:43
  • 1
    These are two different issues. I would suggest you to experiment a bit with this code. Read the manual of package polyglossia and post what problems do you get with examples. I am sure people will help you with the problems you face. – Niranjan Dec 12 '21 at 09:15