TexStudio 与 MiKTeX-arabtex

TexStudio 与 MiKTeX-arabtex

我尝试设置一个环境来将一些 Tex 文档翻译成阿拉伯语,但这让我有些头疼。我总是得到一个带有 ????? 而不是阿拉伯字母的文档。

简单示例

\documentclass[a4paper,oneside,12pt]{article}
\usepackage{arabtex}
\usepackage{utf8}
\begin{document}
\begin{arabtext}
بسم الله الرحمن الرحيم
\end{arabtext}
\end{document}

看起来我忘记了一些小事但我无法弄清楚。

感谢帮助。

这里是日志文件:

This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9 64-bit) (preloaded format=xelatex 2013.5.31)  31 MAY 2013 13:06
entering extended mode
**Arabic.tex
(C:\Users\user\Desktop\Text\Arabic.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabtex.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aconfig.sty"
LaTeX2e detected 
BABEL detected
\a@moduledate=\count88
\a@maindate=\count89
)
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabaux.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\acmd.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\afonts.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\afonts2.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\ascan.sty"
(ArabTeX) scanner for code `arabtex' installed.
(ArabTeX) input encoding set to ArabTeX standard conventions.)
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aparse.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\awrite.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\xarbsymb.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabskel.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\xarbskel.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aboxes.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabtoks.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabchrs.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aligs.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aoutput.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\abidir.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\atrans.sty"
(ArabTeX) ZDMG transliteration.)
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alatex.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\afoot.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\abjad.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\apatch.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alists.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\asect.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\atabg.sty")
Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 1300 replaced by U+FFFD.

("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alocal.sty"
(ArabTeX) 3.11 local stub, 26.02.2006))
Arabic processor `ArabTeX' [20060702 patch level 3.11s (02.07.2006)]
(ArabTeX) ... now be patient ... )
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\utf8.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\utfcode.sty"
Package: utfcode 2002/03/07  3.10a Arabic+Hebrew segment of UTF-8
\u@lb=\count119
\u@lq=\count120
)
Package: utf8 2000/06/13  3.10 UTF-8 input encoding 
Invalid UTF-8 byte or sequence at line 30 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 30 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 31 replaced by U+FFFD.

(ArabTeX) scanner for code UTF-8 installed.)
(C:\Users\user\Desktop\Text\Arabic.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.

("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\apatch.sty"
Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 1300 replaced by U+FFFD.
\a@lines=\count121
\a@Lwidth=\dimen125
\a@displaywidth=\dimen126

("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alocal.sty"
(ArabTeX) 3.11 local stub, 26.02.2006)
(ArabTeX) version 3.11s (02.07.2006): second phase of patching)
LaTeX Font Info:    Try loading font information for U+xnsh on input line 5.

("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\uxnsh.fd"
File: uxnsh.fd  1999/10/19 v3.10 ArabTeX Naskh extd. font definitions
)
LaTeX Font Info:    Font shape `U/xnsh/m/n' will be
(Font)              scaled to size 17.28003pt on input line 5.
 [1

]
(C:\Users\user\Desktop\Text\Arabic.aux)

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 arabtex.sty    2003/08/22  3.11 ArabTeX main module
 arabaux.sty    2003/05/21  3.11 auxiliary macros for ArabTeX
    acmd.sty    2003/08/20  3.11 Arabic command processing 
  afonts.sty    1995/11/16  3.04 define Naskh font 
 afonts2.sty    1998/10/19  3.10 define Naskh fonts for LaTeX2e
   ascan.sty    2003/08/22  3.11 standard ZDMG input encoding 
  aparse.sty    2003/05/26  3.11 get syllables 
  awrite.sty    2003/06/05  3.11 build output word 
xarbsymb.sty    1998/07/15  3.07 symbolic output encoding 
arabskel.sty    2000/06/04  3.10 character skeleton definitions 
xarbskel.sty    1999/07/17  3.09 character skeleton definitions 
  aboxes.sty    2003/05/28  3.11 build output boxes
arabtoks.sty    1999/07/17  3.09 ArabTeX CS token definitions 
arabchrs.sty    1998/07/11  3.07 letter token definitions 
   aligs.sty    2003/05/26  3.11 compute ligatures
 aoutput.sty    2000/06/04  3.10 build output lines
  abidir.sty    2003/08/22  3.11 bidirectional linebreaking
  atrans.sty    2003/06/14  3.11 generate the transliteration 
  alatex.sty    2003/05/04  3.11 ArabTeX extensions for LaTeX 
   afoot.sty    2003/05/12  3.11 ArabTeX footnotes
   abjad.sty    2003/04/26  3.11 abjad numerals 
  apatch.sty    2006/07/02  3.11s last minute patches 
  alists.sty    2003/04/26  3.11 inverted list macros
   asect.sty    2003/04/26  3.11 section macros for Arabic
   atabg.sty    1997/01/21  3.05 LaTeX tabbing macros for Arabic
    utf8.sty    2000/06/13  3.10 UTF-8 input encoding 
 utfcode.sty    2002/03/07  3.10a Arabic+Hebrew segment of UTF-8
  apatch.sty    2006/07/02  3.11s last minute patches 
   uxnsh.fd     1999/10/19 v3.10 ArabTeX Naskh extd. font definitions
 ***********

 ) 
Here is how much of TeX's memory you used:
 2504 strings out of 429156
 22340 string characters out of 3168943
 90459 words of memory out of 3000000
 5744 multiletter control sequences out of 15000+200000
 4602 words of font info for 17 fonts, out of 3000000 for 9000
 786 hyphenation exceptions out of 8191
 25i,4n,23p,239b,124s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on Arabic.pdf (1 page).

相关内容