[Tugindia] tugindia Digest, Vol 230, Issue 1
S. venkataraman
svenkat at ignou.ac.in
Thu Jul 4 15:57:03 CEST 2024
I am using lualatex. Here is a minimal working example.
\documentclass{article}\tracinglostchars=3\usepackage[english,
bidi=basic]{babel}\usepackage{fontspec}
\babelprovide[import=hi, onchar=fonts ids]{hindi}
\babelfont{rm}
[Ligatures={Common, TeX}]{Noto Serif}\babelfont[hindi]{rm}
[Scale=MatchUppercase]{Noto Serif Devanagari}
\begin{document}
This is a test.
यह एक परीक्षा है।\end{document}
As you can see I am using Babel. Because of this no font switching
command.
You can change the font if you want. But the Noto family is free,
available from Google. They are available in many variants and weights.
Hope this helps. *Compile the file with lualatex instead of xetex.*
Best,
On Thu, 4 Jul 2024 at 15:30, <tugindia-request at tug.org> wrote:
> Send tugindia mailing list submissions to
> tugindia at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://tug.org/mailman/listinfo/tugindia
> or, via email, send a message with subject or body 'help' to
> tugindia-request at tug.org
>
> You can reach the person managing the list at
> tugindia-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of tugindia digest..."
> Today's Topics:
>
> 1. Problem with Xetex Hindi (Dr C. K. Raju)
>
>
>
> ---------- Forwarded message ----------
> From: "Dr C. K. Raju" <dr_c_k_raju at hotmail.com>
> To: TUGIndia Mailing List <tugindia at tug.org>
> Cc:
> Bcc:
> Date: Thu, 4 Jul 2024 03:36:05 +0000
> Subject: [Tugindia] Problem with Xetex Hindi
> Hello all,
>
> Shifting from the old devnag package, I last used Xetex with more
> convenient Google Hindi transcription way back in 2019 (then switched to
> Emacs-Org-Mode-Reveal or html for multilingual presentations with math).
>
> Now I have to write a multilingual article based on a recent presentation
> <https://x.com/CKRaju14/status/1802818490015027609>, hence must revert to
> Latex.
>
> I had built an include file 'pre-be-xe.tex' which is simply this:
>
> \usepackage{xltxtra}
> \usepackage{polyglossia}
> \setdefaultlanguage{english}
> \setotherlanguage{hindi}
> \setmainfont {Times New Roman}
> \newfontfamily\devanagarifont[Script=Devanagari]{Mangal}
>
> But now stopped working. The following example still compiles (Miktex 64
> bit on Win10 pro, Xetex-> pdf) without error or warning but the pdf file
> has no Hindi font in it only ???. Mangal is installed.
>
> \documentclass[11pt]{article}
> \usepackage{fontspec, xunicode, xltxtra}
> \usepackage[T1]{fontenc}
> \include{pre-be-xe.tex}
> \begin{document}
> अब्यक्त
> \end{document}
>
> Of course, I have changed my computer since 2019, but not clear what is
> missing.
>
> Any help appreciated.
>
> C. K. Raju
>
> Sent from Outlook <http://aka.ms/weboutlook>
>
> ------------------------------
>
> _______________________________________________
> tugindia mailing list
> tugindia at tug.org
> https://tug.org/mailman/listinfo/tugindia
>
--
Dr. S. Venkataraman
Associate Professor in Mathematics
School of Sciences
IGNOU
Tel. :29572860(o)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tugindia/attachments/20240704/6c1b883b/attachment.htm>
More information about the tugindia
mailing list.