LaTeX forum ⇒ Fonts & Character SetsBabel: 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

Postby blakeredfield » Mon Mar 02, 2009 9:25 pm

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)

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


Thank you for your time!

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Mar 02, 2009 9:38 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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby blakeredfield » Mon Mar 02, 2009 9:54 pm

Thank you for your swift reply.

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:

  1. \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....

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Mar 02, 2009 10:37 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.
  1. 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.
  1. \documentclass[12pt,letterpaper]{report}
  2. \usepackage[T1]{fontenc}
  3. \usepackage[latin1]{inputenc}
  4. \usepackage[greek,english]{babel}
  5.  
  6. \begin{document}
  7.  
  8. \begin{greektext}
  9. E'inai d'uskolo na fti'axei kane'is 'ena 'ergo, \\
  10. qwr'ic na k'amei kan'ena l'ajos. All'a d'uskolo \\
  11. e'inai ki' an ak'omh fti'axei k'ati al'ajhto, \\
  12. na m'hn p'esei se 'adiko krit'h.
  13. \emph{Swkr'athc}
  14. \end{greektext}
  15.  
  16. \medskip
  17. It is certainly difficult for one to create something, \\
  18. without making any mistakes. It is also difficult, \\
  19. even if one creates something perfectly, \\
  20. to happen upon impartial criticism.
  21. \emph{Socrates}
  22.  
  23. \end{document}

Converting this from PS to PDF results in the missing Greek text.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby phi » Mon Mar 02, 2009 10:57 pm

perhaps it's easier to convert the figures to PDF, then you can use them in PDF output mode.


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 3 guests