As far as I know, the "devanagari" package does not have support for Roman Transliteration. You should try the outdated, yet capable sanskrit
package by Charles Wikner which has full support for Devanagari and Roman Transliteration.
Here is a minimal example
\documentclass{article}
\usepackage{skt}
\setlength\parindent{0pt}
\setlength\parskip{12pt}
\begin{document}
{\Large
{\skt brahma.nyaadaaya karmaa.ni sa"nga.m tyaktvaa karoti ya.h | \\
lipyate na sa paapena padmapatramivaambhasaa }
{\sktx brahma.nyaadaaya karmaa.ni sa"nga.m tyaktvaa karoti ya.h | \\
lipyate na sa paapena padmapatramivaambhasaa }
}
\end{document}
Save the document with the extension .skt
. Pre-process the document with the skt
preprocessor included with the package and then run it through pdflatex ...
$skt <document>.skt
$pdflatex <document>.tex
You should get an output similar to
the skt
package along with full documentation can be found at http://www.ctan.org/pkg/sanskrit
NB - The skt
pre-processor comes ONLY in source form and you'll have to compile it for your operating system. If you use Windows, you can either use VisualStudio (if you have it) or dowload a lightweight compiler like DJGPP which is only a few megabytes. Compiling the executable from the source file is outiside the purview of this question. If you have a problem with compiling the source, please post another question.
devnag
that does what you want, I'm afraid.