编译错误

编译错误

我开始使用乳胶,我的代码是

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[T1]{inputenc}
\usepackage[italian]{babel}
\begin{document}
 Hello
\end{document}

输出为

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
entering extended mode
(C:\Users\Stefano1\Desktop\Seminario\Seminario.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-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, 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\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"

! LaTeX Error: File `T1.def' not found.

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

Enter file name: 

哪里有问题 ?

答案1

根据文献,inputenc 包

允许用户通过以下方式指定输入编码(例如 ASCII、ISO Latin-1 或 Macintosh):

\usepackage[encoding name]{inputenc}

编码名称的选择列于手册的第 1-2 页。

答案2

典型的意大利序言可能是

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}

比任何

\begin{document}
 Hello
\end{document}

(Ian Thompson 的第一个评论绝对正确)。

......但我相信,到今天为止,你已经比我更好地了解了之间的区别 输入编码字体编码

相关内容