## LaTeX forum ⇒ Fonts & Character Sets ⇒ Babel: Greek Fonts in .ps but not .pdf

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
blakeredfield
Posts: 7
Joined: Tue Feb 26, 2008 7:52 pm

### Babel: Greek Fonts in .ps but not .pdf

Hi guys,

I'm using TeXnicCenter 1.0RC1 with MikTeX 2.7...etc latest version. I am writing my dissertation and I want to add a block of greek text philosophy in a dedicatiion.

The greek fonts are showing up in the .dvi (Yap) and .ps (GV) but not the .pdf! When I compile as LaTeX > PS > PDF, Adobe Reader doesnt display the fonts and there is a blank space where they should be. Interesting thing is, the length is correct as if the fonts are there but not displaying.

The LaTeX>PDF version reports some weird F14 and F15 Type 3 fonts in Reader (that I got through File>Properties>Fonts - see I did some homework!) and I know that Type 3 is bad. So how do I force LaTeX to meet a nice Greek girl font and have fat babies with her?

Ow, and LaTeX > PDF that does give me the fonts does not let me compile my images (.eps) and Im not gonna convert them at this point.

I am about to enter math mode to write this thing out, but I want to figure it out! Any imminent help appreciated! (gotta hand this in tomorrow)

\documentclass[12pt,letterpaper,oneside,onecolumn]{report}%\usepackage{psgreek} - Gives error%\usepackage[polutonikogreek,english]{babel} - nada%\usepackage{pifont} - nope\usepackage[greek,english]{babel} % gives me greek only in dvi and ps... \begin{document} \begin{greektext}E'inai d'uskolo na fti'axei kane'is 'ena 'ergo, \\ qwr'ic na k'amei kan'ena l'ajos. All'a d'uskolo  \\e'inai ki' an ak'omh fti'axei k'ati al'ajhto, \\na m'hn p'esei se 'adiko krit'h.\emph{Swkr'athc}\end{greektext} It is certainly difficult for one to create something, \\without making any mistakes. It is also difficult, \\even if one creates something perfectly, \\to happen upon impartial criticism.\emph{Socrates} \end{document}

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
I compiled your example directly to PDF with an online compiler and it worked flawlessly. But Type 3 fonts remain. Perhaps the CTAN Catalogue provides a solution [1]. You can convert your EPS images to PDF with the command line tool epstopdf or "on the fly" with the epstopdf package.

[1] The TeX Catalogue Online, Topic Index - Greek

Best regards
Thorsten¹
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

blakeredfield
Posts: 7
Joined: Tue Feb 26, 2008 7:52 pm

Have you tried to compile it with the Latex>PS>PDF profile? It wont work for me on 3 different installations.

When I \includepackage{epstopdf}, the compiler cant find my images but the Greek shows up, when I use the Latex>PDF profile. I am including them with the code:

\includegraphics[width=0.6\columnwidth]{fig11}

When I use the latex>ps>pdf I dont get the greek but my images work. (they are .eps and .ps)

Actually, if you could suggest another way of adding a sting of greek letters, outside of mathmode, that would be great too. Hmm....

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
blakeredfield wrote:[…] When I \includepackage{epstopdf}, the compiler cant find my images but the Greek shows up, when I use the Latex>PDF profile. […] When I use the latex>ps>pdf I dont get the greek but my images work. (they are .eps and .ps) […]

You have to call the compiler with an additional command line argument.
latex --enable-write18 -interaction=nonstopmode "%pm"

The additional switch enables shell escape for calling external programs. Modify your output profile in TeXnicCenter (TXC) by pressing Alt+F7.
blakeredfield wrote:[…] Actually, if you could suggest another way of adding a sting of greek letters, outside of mathmode, that would be great too. […]

Since I never used Greek outside math mode, I'm not the right partner to talk to.

The mentioned online compiler and my MiKTeX system had no difficulties in creating PS output with the following sample code.
\documentclass[12pt,letterpaper]{report}\usepackage[T1]{fontenc}\usepackage[latin1]{inputenc}\usepackage[greek,english]{babel} \begin{document} \begin{greektext}E'inai d'uskolo na fti'axei kane'is 'ena 'ergo, \\qwr'ic na k'amei kan'ena l'ajos. All'a d'uskolo  \\e'inai ki' an ak'omh fti'axei k'ati al'ajhto, \\na m'hn p'esei se 'adiko krit'h.\emph{Swkr'athc}\end{greektext} \medskipIt is certainly difficult for one to create something, \\without making any mistakes. It is also difficult, \\even if one creates something perfectly, \\to happen upon impartial criticism.\emph{Socrates} \end{document}

Converting this from PS to PDF results in the missing Greek text.
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm
perhaps it's easier to convert the figures to PDF, then you can use them in PDF output mode.