# Tag Info

13

Well example 1 makes quite a great effort (with all this mapping directives) to enable a romanized input. If you don't want this ignore all this code and simply start writing e.g. use something like this \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari]{your font} \begin{document} \section{संस्कृतम्} जीवनस्य लक्ष्यमेव संस्कृतस्य ...

13

Although it's not completely clear what your question is asking, I would recommend using XeLaTeX and the polyglossia package for Bengali. This way you just enter your Bengali text in regular form. I used the Akaash font from here: Free Bangla Fonts. Since I don't speak Bengali, I translated a short text from English using Google Translate. My apologies ...

11

If you use this font, fontspec will tell you in the log-file: Could not resolve font Sanskrit 2003/B (it probably doesn't exist). This means that the font has no bold (/B) version. You can use the AutoFakeBold key to get a faked bold: \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari,AutoFakeBold=3.5]{Sanskrit 2003} ...

11

There's currently no interface for changing all numerals to Devanagari ones. However you can define your own: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{hindi} \setotherlanguage{english} \setmainfont[Script=Devanagari]{Nakula} \newcommand{\devanagarinumeral}[1]{% \devanagaridigits{\number\csname ...

10

The ucharclasses package makes this possible. \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage[Latin,Devanagari]{ucharclasses} \setmainfont{Devanagari MT} % Maybe Sanskrit 2003 doesn't need the following line; % in this case change \devanagarifont in the \setTransitions % commands to \normalfont ...

8

Use fontspec and polyglossia: \documentclass{article} % The fontspec package provides a nice interface to font loading. \usepackage{fontspec} % standard packages for XeLaTeX \usepackage{xunicode} \usepackage{xltxtra} % The polyglossia package lets us easily use several languages. \usepackage{polyglossia} % Define the used fonts. Replace Nakula and XITS ...

7

As long as you have the appropriate fonts, you should be able to use XeLaTeX and the polyglossia package. Assuming that you have fonts that support Tamil already installed on your system (i.e., available to non-TeX applications like Open Office) XeLaTeX should find them automatically. % !TEX TS-program = XeLaTeX \documentclass{article} ...

6

Just to update, devanagari now works beautifully in recent betas. There was a bug in how the opentype features were handled, but it has been squashed. To use devanagari, simply define a font with the devanagari-one feature set: \definefont [Deva][file:chandas.ttf*devanagari-one] \starttext \Deva श्रेयो हि ज्ञानमभ्यासाज्ज्ञानाद्ध्यानं विशिष्यते । \crlf ...

6

Download the manual.tex file from here and compile it. A table is given on 8. Here is a screenshot.

5

You're being very unlucky: if I add \tracingparagraphs=1 in the document, the log file shows the attempts made by XeTeX at line breaking; I also put \hspace*{0pt} at the start, so that hyphenating the first word will be possible. @firstpass @secondpass []| \EU1/TeXGyrePagella(0)/m/n/10 a-sma-dā-di-vi-śe-ṣa-ṇa-śū-nya-syā-rtha-sā-kṣ ...

5

If I understand well what you are expecting, you want a document written in English, but with sanskrit quotes within. For this, you may use the package polyglossia and define your main language (English) and other sub languages for the document (for example sanskrit here). In your case, you will also need to declare the fonts for sanskrit, a possibility is ...

5

This is what I get compiling the following file with XeLaTeX: \documentclass{article} \usepackage{fontspec} \setmainfont{Pothana2000} \usepackage{polyglossia} \setmainlanguage{telugu} \begin{document} చేయి అనగా మానవులు, చింపాంజీలు, కోతులు మరియు లెమూర్లకు గల శరీరభాగమునకు వేళ్లు కలబాహ్యంగము. కోలా చేతికి ఎదురెదురుగా వున్న రెండు బొటనవ్రేళ్లు వుంటాయి కాబట్టి ...

4

you need an OpenType or TrueType font which supprts that language, eg Code2000. Then the following works: \documentclass{article} \usepackage{fontspec} \setmainfont{Code2000} \begin{document} తెలుగు \end{document} You have to run the example with xelatex or alternatively with lualatex; both are installed with every TeX distribution. Code2000 is ...

4

You can use any ttf font in TeX using xetex. First you download and install any gujarathi font (for example -- Saumil_guj2, here you will find instructions on how to type those fonts also, check the bottom of the page). Then write a tex file like this. \documentclass[11pt]{article} \usepackage{ifxetex} \ifxetex \usepackage{fontspec} ...

4

It is easy on Linux :) Download the file http://mirrors.ctan.org/language/devanagari/velthuis/bin/devnag.c Say from the command line gcc -o devnag devnag.c Optionally install the file into /usr/local/bin: sudo install devnag /usr/local/bin

4

Thank you for changing the font and adding the parbox. All the paragraph entries are single line LaTeX does not by default stretch the last line of a paragraph it allows it to be short as is the norm in European languages. If I set \parfillskip to 0 then even the last line is stretched. I am sorry, but as I can not read the script I can't say if the ...

4


4

Only a first version, working for digits only, not for numbers > 9. In short: enumitem needs special counter output information for such setups, i.e. an \AddEnumerateCounter macro must be used. The special setup is valid here only for digits, unfortunately. \documentclass{article} % For bilingual document \usepackage{fontspec} \usepackage{polyglossia} ...

4

The T1 font encoding only has 256 characters (all european) so is not suitable, pdflatex can only deal with 256 character 8bit fonts, so either you need a tex setup that exposes the alphabet in that way, or you may find it a lot easier to use xetex or luatex rather than pdflatex which can use system installed unicode fonts and process your utf8 input ...

4

You should use XeTeX or luaTeX and your font should support Bengali. I have used Mukti Narrow (I had issues with Free Serif, whitout fontspec package): \documentclass{article} \font\beng="Mukti Narrow Bold:script=beng" \begin{document} This is Bengali: {\beng পারে} \end{document} This is an example from ieeetran class, which works just fine: ...

3

Using the polyglossia package, it works quite well in XeLaTeX: \documentclass[preview, margin=0.5cm]{article} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{bengali} % Replace this with whatever font you're using \newfontfamily\bengalifont[Script=Bengali]{Akaash} \title{\textbengali{ইংরেজি} and Bengali} \begin{document} \maketitle ...

3

You can add \PolyglossiaSetup{sanskrit}{ hyphenmins={2,3},% default is {1,3} } \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{sanskrit} \setotherlanguage{english} \PolyglossiaSetup{sanskrit}{ hyphenmins={1,3}, } \newfontfamily\sanskritfont{TeX Gyre Pagella} \newfontfamily\englishfont{TeX Gyre ...

3

I'm afraid that the answer is probably negative. From your question I infer that you are using the Velthuis devanagari package (because it has the \dn switch to devanagari) and you want to get the irregular ligature depicted here: https://en.wiktionary.org/wiki/%E0%A4%B6%E0%A5%8D%E0%A4%B0 Browsing through the tables at the end of the documentation, I cannot ...

3

\documentclass[12pt]{article} \usepackage{fontspec} \usepackage[english]{babel} \newfontfamily\sanskrit[Script=Devanagari]{Lohit Devanagari} \begin{document} The main text is in English, and you can add sanskrit quote... \begin{quotation}\sanskrit सर्वधर्मान् परित्यज्य मामेकं शरणं व्र्ज अहं त्वां सर्वपापेभ्यो मोक्षयिष्यामि मा शुचः ...

3

Save the test file as test.dn and run on it the devnag program: devnag test.dn This will produce a test.tex file \def\DevnagVersion{2.15}\documentclass {article} \usepackage{devanagari} \begin{document} {\dn \7{g}no\381w\qq{r} aEn \3FEwm\qq{n}} \end{document} that you can run pdflatex on getting what I assume is correct output (but I don't read ...

3

You can define \thepage so it is safe to use in contents and headers directly: \documentclass[14pt]{article} \usepackage{fontspec} \usepackage{lipsum} \setmainfont[Script=Devanagari]{Arial Unicode MS} \usepackage{fancyhdr} \usepackage{xstring} \renewcommand\thepage{\Devnag{page}} ...

3

I'm not sure that "Do others get the same output" is a question for StackExchange -- rather it is for the XeTeX mailing list, but anyhow, I just compiled your tex file using XeLaTeX from the TeXLive 2012.20120611-3~ubuntu12.04.1 package from the PPA on Kubuntu Precise and I get the correct rendering as you can see:

3

Since fontspec is being loaded, you need to process the example with xelatex; however, the original code won't work as expected (using xelatex) and will produce the error message ) Runaway argument? \q_stop \exp_args:NNo \group_end: \iow_term:n \l__iow_wrap_tl \iow_term:n \ETC. ! File ended while scanning use of \__iow_wrap_loop:w. <inserted text> ...

3

You could use Charles Wikner's Sanskrit package, available from CTAN. With this package, you would enter transliterated text and it would be converted into Devanagari (it does ligatures properly if I remember correctly). The documentation is in the file sktdoc.ps. edit: in Debian and Ubuntu, the same package used to be available with the name ...

3

I was able to typeset Tamil using LaTeX on Ubuntu by installing the itrans and itrans-fonts packages via synaptic (or apt-get). It doesn't let you type in Tamil directly, rather you have to key in the ASCII transcription, then process it with itrans from the command prompt, then run (pdf)latex on the resultant file. Say I have the following file ...

Only top voted, non community-wiki answers of a minimum length are eligible