孟加拉语 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}

我从中复制了代码如何用 LaTeX 编写孟加拉语?

当我将它粘贴到我的 KILE 编辑器中时,它不起作用。即使我已经将它插入到 https://www.writelatex.com/656918hxmjxx#/1381658/
但显示编译错误。如何解决?

sudo apt-get install ttf-bengali-fonts

从上面我已经安装了代码。

当我运行时,问题显示:

在此处输入图片描述

这是 .log 文件:

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2013.11.5)  17 JAN 2014 00:44
entering extended mode
 %&-line parsing enabled.
**ppp.tex
(./ppp.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, sanskrit, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf-texlive/tex/xelatex/polyglossia/polyglossia.sty
Package: polyglossia 2009/01/25 v1.0.2 Babel replacement for XeLaTeX


! LaTeX Error: File `etoolbox.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.5 \RequirePackage
                   {fontspec} %which itself depends on xkeyval^^M
*** (cannot \read from terminal in nonstop modes)


Here is how much of TeX's memory you used:
 208 strings out of 495052
 2371 string characters out of 1182271
 47242 words of memory out of 3000000
 3474 multiletter control sequences out of 15000+50000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 28 hyphenation exceptions out of 8191
 23i,0n,19p,158b,36s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

答案1

日志文件告诉您polyglossia需要etoolbox运行。您似乎没有etoolbox安装:

! LaTeX Error: File `etoolbox.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.

我会看看如何在 Debian 或 Ubuntu 上安装“原始” TeXLive?确保你拥有完整的 TeX Live 发行版。如果你不介意 CTAN 的当前版本落后几个版本,你可以运行

sudo apt-get install texlive-full

要得到 (大多) 所有内容。它至少应该附带编译此文档所需的工具。


确保你正在使用 XeLaTeX 进行编译;pdfTeX 在 Unicode 方面有很多限制。我没有安装 Kile,但是这个建议来自TUG 邮件列表将会有所帮助:

配置 Kile -> 工具 -> 新建 -> 创建一些名称 -> 行为类似 pdflatex-> 将命令更改为“ xelatex


还要确保您的计算机上安装了Akaash和字体。Linux Biolinum O

Arial Unicode MS安装在OSX上:

\documentclass[10pt]{article}
\usepackage{polyglossia}
\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\newfontfamily\bengalifont[Script=Bengali]{Arial Unicode MS}
\begin{document}
\tableofcontents

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

在此处输入图片描述

找出 Aptitude 为您安装的字体,并使用其中一种字体代替 Arial。

相关内容