I just installed Texlive 2014, and ran into this problem: lgrxenc.def not nound. The solution is apparently to remove LGRx from \usepackage[LGRx,T1]{fontenc}; but I'd rather use something like this:
\ifnum \texliveVersion<2013
\usepackage[LGRx,T1]{fontenc}
\else
\usepackage[T1]{fontenc}
\usepackage[greek,english]{babel}
\fi
Anything like this out there, which would not require me to run -shell-escape everytime - just in case I need to compile the same document on the machine that has earlier TexLive?
EDIT: this is what I meant - this should be the code in https://tex.stackexchange.com/a/191705/2595 , but with a conditional switch for Texlive2014; unfortunately it crashes with ! Undefined control sequence. l.50 ...\bbl@monogreek \bbl@monogreek=\l@monogreek:
\documentclass[a4paper]{article}
% https://tex.stackexchange.com/a/16794/2595
\begingroup\makeatletter\endlinechar=\m@ne\everyeof{\noexpand}
\edef\x{\endgroup\def\noexpand\TeXLiveVersion{\@@input|"pdflatex -version | awk '/TeX Live/{print substr($5, 0, length($5)-1);}'" }}\x
\typeout{TexLive version is: \TeXLiveVersion}
% https://tex.stackexchange.com/a/191705/2595
\ifnum\TeXLiveVersion<2014 %
\typeout{TexLive version is smaller than 2014, using LGRx} %
\usepackage[LGRx,T1]{fontenc} %
\else %
\typeout{TexLive version is >= 2014, NOT using LGRx} %
\usepackage[T1]{fontenc} %
\fi %
% \usepackage{xgreek}
\usepackage[utf8x]{inputenx}
\usepackage[english,greek]{babel}
\begin{document}
The starting verse of the Iliad is
\begin{quotation}\greektext
Μῆνιν ἄειδε, θεά, Πηληιάδεω Ἀχιλῆος
\end{quotation}
and it's really great.
\end{document}


pdflatex; I'd thus need a variable/command, which I can obtain by parsing a command line call, but that then requires-shell-escape, which I don't want; hence my question. Cheers! – sdaau Oct 08 '14 at 22:10\IfFileExists{lgrxenc.def}...? [Untested as you haven't provided an MWE.] – cfr Oct 08 '14 at 22:16\IfFileExists{lgrxenc.def}, will give it a spin. Cheers! – sdaau Oct 08 '14 at 22:39LGRxif you then useutf8x? I don't understand. However, useutf8and your live will be happier. – egreg Oct 08 '14 at 22:47:)Cheers! – sdaau Oct 08 '14 at 22:51