# Too many erros after upgrading TeX

I am getting too many errors since I upgraded my computer with the latest version of TeX. For instance, the following piece of code doesn't work any more. Could you help me do a clean install and \ or make the following piece of code work again? I am using the TeXworks editor and I run 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}


EDIT: I attached the .log file.

-
I get no error from that input. – egreg Sep 14 '12 at 17:36
That example works fine for me. You should post the .log (and put \listfiles in the preamble of the document). – jon Sep 14 '12 at 17:37
@jon I attached the .log file as you suggested. – eualin Sep 14 '12 at 18:15
Unfortunately the .log file cuts off before the end, and before any error messages are given. – jon Sep 14 '12 at 18:18
using a default 2012 setup I get ! Undefined control sequence. <argument> \textPi  on that input. – David Carlisle Sep 14 '12 at 19:19

I get the error

 ! Undefined control sequence. <argument> \textPi


searching this site for \textPi lead to a answer that suggested adding

\usepackage{textalpha}


then it appears to work for me.

Note @egreg commented that your unchanged example worked for him. I suspect it should work unchanged. I think that there have been some updates to the Greek support since TL2012 was released so an alternative might be to use the texlive update script to update all relevant packages.

-
It works now. Thank you very much for helping me sort this bug out. – eualin Sep 14 '12 at 19:41

If you use utf8 as option for inputenx, then you can't use directly Greek characters; for this you should add

\usepackage[LGRx,T1]{fontenc}


to your preamble. Otherwise, use utf8x, which however is not compatible with biblatex.

-
I don't really need \usepackage[LGRx,T1]{fontenc}. It works fine with both \usepackage[utf8]{inputenc} and \usepackage[utf8]{inputenx}. But which one to choose? – eualin Sep 15 '12 at 9:49
@eualin With LGRx and utf8 (without textalpha) you're ready for using also biblatex. – egreg Sep 15 '12 at 19:09