[Tex/LaTex] Greek characters with times font (utf8 input encoding)

fontsgreek

I am despairing trying to solve the following problem. When compiling the following minimal example:

\documentclass{article} 
\usepackage{times}
\usepackage[document]{ucs}
\usepackage[polutonikogreek, english]{babel}
\usepackage[utf8x]{inputenx}
\usepackage[LGR,T1]{fontenc}       % T2A is Cyrillic
\newcommand{\grrk}{\selectlanguage{polutonikogreek}\fontencoding{LGR}}
\newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}}
 \begin{document}
\grrk  ἀφιέναι \ee `to send off, discharge', with infinitive: `suffer, permit'
\end{document}

Running pdflatex, I get the following error:

(C:\Users\rvw\AppData\Roaming\MiKTeX\2.9\tex\latex\unicode\ucsencs.def
fontencoding LGR patched
) (C:\Users\rvw\AppData\Roaming\MiKTeX\2.9\tex\latex\grtimes\lgrptm.fd)Running miktex-makemf.exe...
miktex-makemf: The grtm source file could not be found.
Running hbf2gf.exe...
hbf2gf (CJK ver. 4.8.0)
Couldn't find `grtm.cfg'
miktex-maketfm: No creation rule for font grtm10.
! Font LGR/ptm/m/n/10=grtm10 at 10.0pt not loadable: Metric (TFM) file not foun
d.
<to be read again> 
                   relax 
l.10 \grrk
            ἀφιέναι \ee `to send off, discharge', with infinitive: `...

Everything is all right if I do not include \usepackage{times}.

I understand the problem has to to with my font installation. But I am completely lost trying to understand how to solve it.

I am using MikTeX, all packages updated, on a win7 machine.

Best Answer

The code works on TeX Live 2011. It seems that MiKTeX does not have some fonts.

Since you use UTF-8 encoding, I advise you to use XeLaTeX or LuaLaTeX solution. It is more modern and you can use Times New Roman on Windows or Linux Libertine on TeX distributions.

Example:

% XeLaTeX
\documentclass{article} 
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times New Roman}
\usepackage{polyglossia} % replacement of babel
\newcommand{\grrk}{\selectlanguage{greek}} % not necessary
\newcommand{\ee}{\selectlanguage{english}} % not necessary
 \begin{document}
\grrk  ἀφιέναι \ee `to send off, discharge', with infinitive: `suffer, permit'
\end{document}
Related Question