升级 TeX 后错误太多

升级 TeX 后错误太多

自从我用最新版本的 TeX 升级电脑后,我遇到了太多错误。例如,以下代码不再起作用。你能帮我重新安装并让以下代码再次起作用吗?我正在使用 TeXworks 编辑器,运行的是 Ubuntu 12.04 LTS。

\documentclass[a4paper]{article}

\usepackage[polutonikogreek,english]{babel}
\usepackage[utf8]{inputenx}

\newcommand{\greek}[1]{{\selectlanguage{polutonikogreek}#1}}

\listfiles

\begin{document}

Protagoras (\greek{Πρωταγόρας}) says that ``Man is the measure of all things''
(\greek{Ἄνθρωπος μέτρον}), meaning that there is no objective truth. One
opinion can be better than another, but it cannot be \emph{truer}.

\end{document}

编辑:我附上了。日志文件。

答案1

我得到了错误

 ! Undefined control sequence. <argument> \textPi 

在这个网站上搜索\textPi导致的答案建议添加

\usepackage{textalpha}

那么它似乎对我有用。


注意@egreg 评论说你未做任何改动的示例对他有用。我怀疑它应该可以不做任何改动就起作用。我认为自 TL2012 发布以来,希腊语支持已经有一些更新,因此另一种选择可能是使用 texlive 更新脚本来更新所有相关包。

答案2

如果您使用utf8作为选项inputenx,那么您不能直接使用希腊字符;为此,您应该添加

\usepackage[LGRx,T1]{fontenc}

到你的序言中。否则,使用utf8x,但它与 不兼容biblatex

相关内容