On 2011-05-06, Sachin Garg wrote: ...
> 3. http://www.wikihow.com/Create-Devanagari-Documents-in-Lyx-Using-Xelatex > looks to be awesome ... > Using the link #3, I created the attached file - which needed some > editing with regards to options to the article class and remove babel. With LyX 2, using XeTeX will become far more easy: * GUI to select output document font from the system fonts, (front end to the fontenc package) * no need to manually remove babel or fontenc calls. ~~~~~~~~~~~~~~~~~~~ > %% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/. > %% Do not edit unless you really know what you are doing. > \documentclass{article} > \usepackage[T1]{fontenc} This line must be removed too (inside LyX, this can be achieved by setting "TeX-encoding" to OT1). > \makeatletter > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. > \usepackage{fontspec} > \setmainfont[Script=Devanagari]{Sanskrit 2003} > \makeatother > \begin{document} > \font\dev="Sanskrit 2003:script=deva" at 12pt > \dev > हळदोणे ग्राम Instead of "raw" XeTeX font commands, the fontspec package can be used in the preamble. http://tug.ctan.org/pkg/fontspec It also allows to use different fonts for different scripts (Unicode ranges), see http://mirrors.ctan.org/macros/latex/contrib/fontspec/fontspec.pdf . > \end{document} Günter