I cannot get \label{tname} \ref{tname} to generate any number.
I am new to xetex - used latex some 15 yrs back while at school. Any pointers?
My goal is to tag verse in \begin{verse} ... \end{verse} block.
\documentclass[10pt]{article}
\usepackage{fontspec}
\usepackage{verbatim}
\usepackage{xltxtra,fontspec,xunicode}
\defaultfontfeatures{Scale=MatchLowercase}
\setromanfont{Linux Libertine}% Better Diacritics
\setsansfont{DejaVu Sans}%
\setmonofont{DejaVu Sans Mono}%
\title{Your Title}
\author{Your Name}
\date{}
\begin{document}
\maketitle
\include{myfile}
\end{document}
This is a snippet of what I am trying to add
\begin{verse}
sukha-duḥkhe same kṛtvā lābhālābhau jayājayau \\
tato yuddhāya yujyasva naivaḿ pāpam avāpsyasi \\
\label{2.38}
\end{verse}
In the verse \ref{2.38} ...
I tried using \nameref. Interestingly nameref gives me the label name verbatim. However at the point the label is defined, there is no numbering.
I want verses to be explicitly numbered, ie I number them or tag them.

\begin{verse}...\end{verse}block? As far as I know (at least in LaTeX) theverseblocks have no attached counters. You probably need to define a new environment for that. – Willie Wong Jan 21 '11 at 19:35