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.

This is a follow up of my previous question.

To get sanskrit in devanagari I type

{\dn brahma.nyaadaaya karmaa.ni sa.nga.m tyaktvaa karoti ya.h | \\\ lipyate na sa
paapena padmapatramivaambhasa}

To be precise what command should I use to get the below translation of the above.

brahmaṇy ādhāya karmāṇi sańgaḿ tyaktvā karoti yaḥ lipyate na sa pāpena padma-patram ivāmbhasā

\dnnum command does nothing but exactly copies what ever I have written in English.

share|improve this question
    
There is no preprocessor similar to devnag that does what you want, I'm afraid. –  egreg Apr 14 '12 at 21:57
add comment

2 Answers

here is one way to get Sanskrit Output. In XeTeX its really eazy, thats why I asked you before, is there a specific need for you to do the transliteration in roman text, the way you have choosen?

\documentclass[a4paper,12pt]{article}
\usepackage[left=0.15in,right=0.15in,top=0.75in,bottom=0.75in]{geometry}
\usepackage{fontspec}

\setmainfont[Script=Devanagari]{Sanskrit 2003}
\begin{document} 
प्रजापति समः श्रीमान् धता रिपु निषूदनः | \\
रक्षिता जीवलोकस्य धर्मस्य परि रक्षिता||
\end{document} 
share|improve this answer
    
that doesn't seem to help. My question was using the devnag package –  chandrasekhar Jan 12 '12 at 15:14
add comment

In order to transform input such as

{\dn brahma.nyaadaaya karmaa.ni sa.nga.m tyaktvaa karoti ya.h | \\\ lipyate na sa
paapena padmapatramivaambhasa}

into Devanagari, the document containing that code must be preprocessed with the devnag program and the result can then be fed to LaTeX.

There is no similar preprocessor for turning that code into a Latin alphabet transliteration of Devanagari.

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