在 Latex 中编写孟加拉语

在 Latex 中编写孟加拉语

我是这个社区的新人。当我要编译这个时,%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% !TEX TS-program = XeLaTeX

\documentclass[10pt]{article}
\usepackage{polyglossia}
\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\newfontfamily\englishfont[Scale=MatchLowercase]{Linux Biolinum O}
\newfontfamily\bengalifont[Script=Bengali]{Akaash}
\begin{document}
\tableofcontents

\section{ভূমিকা}
এটি একটি ইংরেজি লেখা ছোট অধ্যায় যে বাঙ্গালী এ \textenglish{Google Translate} দ্বারা অনুবাদ করা হয়েছে. এটা খুব স্পষ্ট নয় যদি সঠিক অনুবাদ বা না কিন্তু ক্রিয়াটি ফন্ট দেখাতে যথেষ্ট হওয়া উচিত.
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

显示以下消息。几个月前还没有发生这种情况。

This is XeTeX, Version 3.14159265-2.6-0.99996 (MiKTeX 2.9)
entering extended mode
(D:/Latex/ben.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\polyglossia\polyglossia.sty"
(D:/Latex\etoolbox.sty) (D:/Latex\makecmds.sty)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"
(D:/Latex\expl3.sty
(C:\Users\kausani\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3names.sty
*****************************************************************
** 
** Package l3names is obsolete and has been removed!
** 
** Its functionality is now only provided as part of the expl3 package.
** 
** After showing you an error message you can hit <return> we will continue
** for now by loading expl3 for you. However, the old packages will be
** removed entirely at the end of 2017.
** 
** Therefore, please replace '\usepackage{l3names}'
** with '\usepackage{expl3}' in your documents as soon as possible.
** 
*******************************************************************

! Package l3names Error: This package is obsolete --- use 'expl3' instead.

See the l3names package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.45   \@ehc

? 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

我该怎么办?

答案1

"C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"
(D:/Latex\expl3.sty

您正在从标准 miktex 位置提取大部分软件包,但您有一个旧的本地副本,expl3D:/Latex\expl3.sty想要删除(或移动)该副本并让 latexexpl3从标准 miktex 输入树中找到的当前副本。

(您还将获得etoolbox一些其他包,d:\latex如果它们来自标准输入路径,以便您获得当前版本,那就更好了)

相关内容