Menu

pdftex cannot find greek fonts

Help
2007-08-17
2012-10-17
  • Graeme Handisides

    Hi,

    I am trying to use pdftexify to generate a pdf using cbgreek greek fonts and the bgreek package. However in MikTex 2.6 it does not find the appropriate file, which I understand doesn't exist, and does not generate a pdf file. It looks for grmn1200.pfb and cannot find it. On another computer running Version 2.5 it successfully generates a pdf file by using grmn1200.pk. This file exists on my 2.6 version, but is not used by pdftex. Is this a MikTex problem?

    The same file produces a dvi file using texify, but this cannot be viewed using dvips mode. The error log is attached below as well as a minimal LaTex file.

    I have tried using the command suggested in the readme file for cbgreek

    \usepackage[10pt]{type1ec}

    and get an error message that 10 pt is not a valid option for type1ec.sty.

    If anybody can suggest a solution I would be grateful.

    Thanks,

    Graeme Handisides

    The following is a minimal Latex file:

    \documentclass[12pt,a4paper,oneside,english]{book}
    \usepackage[T1]{fontenc}
    \usepackage{type1ec}
    \usepackage[latin9]{inputenc}
    \usepackage{bgreek}
    \usepackage[breaklinks=true,colorlinks=true,citecolor=blue]{hyperref}

    \usepackage{babel}

    \begin{document}

    \title{Freedom}

    \mainmatter
    \chapter*{Introduction}
    Hi there

    \begin{greek}abc@end{greek}
    \end{document}

    It compiles fine with TeXify, but not at all with PDF TeXify. Attempting to view the dvi file does create problems if dvips mode is selected, but using the default mode is OK

    The error log from YAP-dvips is also included below:

    MiKTeX Problem Report
    Message: The page could not be rendered.
    Data: This is dvips(k) 5.96 Copyright 2007 Radical Eye Software (www.radicaleye.com)
    ' TeX output 2007.08.17:2029' ->
    <C:/Programme/MikTeX/dvips/base/tex.pro>
    <C:/Programme/MikTeX/dvips/cm-super/cm-super-t1.enc>
    <C:/Programme/MikTeX/dvips/base/texps.pro>
    <C:/Programme/MikTeX/dvips/base/special.pro>
    <C:/Programme/MikTeX/dvips/base/color.pro>.
    C:\Programme\MikTeX\miktex\bin\dvips.exe: ! Couldn't find font file grmn1200.pfb

    Source: C:\work3\miktex-2.6\Libraries\MiKTeX\Dvi\DviPage.cpp
    Line: 1033
    MiKTeX: 2.6
    OS: Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)
    SystemAdmin: yes
    PowerUser: no
    SharedSetup: yes
    BinDir: C:\Programme\MikTeX\miktex\bin
    Root0: C:\Dokumente und Einstellungen\Graeme\Anwendungsdaten\MiKTeX\2.6
    Root1: C:\Dokumente und Einstellungen\Graeme\Lokale Einstellungen\Anwendungsdaten\MiKTeX\2.6
    Root2: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\MiKTeX\2.6
    Root3: C:\Programme\MikTeX
    Install: C:\Programme\MikTeX
    UserConfig: C:\Dokumente und Einstellungen\Graeme\Anwendungsdaten\MiKTeX\2.6
    UserData: C:\Dokumente und Einstellungen\Graeme\Lokale Einstellungen\Anwendungsdaten\MiKTeX\2.6
    CommonConfig: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\MiKTeX\2.6
    CommonData: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\MiKTeX\2.6

     
    • Graeme Handisides

      I managed to find my updmap.cfg, but it states that it should not be edited, but that I should run

      initexmf --edit-config-file updmap

      Running this results in a window with the statement

      %% T1 font configuration settings. See the MiKTeX manual for help.

      I was not able to find much help in the Manual, or rather, the Manual states how to include a map file, but not how to disable it.

      I have not yet managed to find the appropriate map file, searching was not successful on my system (XP), so either I have not looked in the right place or I will need to do it manually. I have found the map that includes grmn1000, but not the other sizes.

      Any idea how to do this with updmap?

      I tried your suggestion with the fd files, and the result are great, much better than the bitmaps. By using the sl, b, and sc versions, it gives me several different possibilities than were originally provided by the cb fonts.

      However I remain in the dark as to what the different file definitions mean and how they relate to each other, and why this specific set of definitions works (I tried it with the font definitions in bcglmr.fd and it didn't work, although this is probably obvious to anyone who really understands fonts). E.g. how does BCG relate to cmr and then bgmn1000 influence grmn1000.

      Are there any good texts which explain the fonts from a simple level and build up, for users and not for those who are already "experts"?

      Thanks for all the help. I appreciate the time that you put in to help, please excuse the many questions.

      Graeme Handisides

       
    • U_Fischer

      U_Fischer - 2007-08-21

      If you are now using the new font declarations you probably don't need to bother if the psfonts.map still contains the grmn1200 declaration. If you still want to find out how it got there:

      1. Call updmap on a command line. Look if grmn1200 is again in the psfonts.map.
      2. If it is there, call updmap --verbose
        It will tell you all the udpmap.cfg it is using. Make backups of these updmap.cfg.
        Then start to delete the map entries and call updmap in between to check the psfonts.map.

      BCG is an encoding, cmr a font family. bgmn1000 is a virtual font which internally calls (an reorders) grmn1000. The <12> brmn1200 in the original .fd-files means "for 12pt use the font brmn1200" (which is problematic as it calls grmn1200). While <->brmn1000 means "use for all font sizes brmn1000 and scale the font approbriatly".

      I learn all the things about fonts from the LaTeX Companion and the LaTeX Graphics Companion.

      Ulrike Fischer

       
    • U_Fischer

      U_Fischer - 2007-08-19

      At first update type1ec.sty.

      Then try again with option 10pt and 12pt. What fonts/message pdflatex uses/issues in both cases?
      (On my system (miktex.2.5) a .pfb is used for 10pt, but a .pk in 12pt -- and I suspect that it isn't easy to get bgreek to use pfb in both cases.

      Ulrike fischer

       
      • Graeme Handisides

        Hi

        Thanks for your reply.

        1. I updated type1ec.sty. This was not so easy as I thought. The miktex version is older than the current version at ctan. There are two files, type1ec and faq that have been changed since the cm-super.cab at miktex was made. Does this need to be reported?

        2. Now the minimal file at least accepts the 10pt option.

        I found that by switching off the hyperref package, and running TeXify (but not with PDFTeXify) that the dvi no longer has ps-specials and the default viewing mode uses grmn1200.pk to display the dvi file OK. PDFTeXify and dvips both look for grmn1200.pfb, with no success.

        I discovered that the type1ec command should be before

        \usepackage[T1]{fontenc}

        but changing this does not bring any improvement.

        Running the minimal file with PDFTexify and

        \usepackage[10pt]{type1ec}

        produces a log file with following error at the end of the file
        {cm-super-t1.enc}
        !pdfTeX error: (file grmn1200.pfb): cannot open Type 1 font file for reading
        ==> Fatal error occurred, no output PDF file produced!

        Strangely, running it without the 10pt option produces the same error message.

        Running the entire document without the document option 12pt produces a document OK, so it seems to be the scaling into 12pt that produces the problem. What happens when the document option 12pt is different from the 10pt option for type1ec? Does type1ec apply to the entire document, in which case these two options would clash? Could it be that type1ec is not scaling the greek font as expected in 12pt?

        It is strange that produces a functioning document on my MikTex 2.5 version by using the grmn1200.pk file even for pdfs, whereas the 2.6 version insists on looking for a nonexistent .pfb. Or am I missing somtehing?

        Thanks for the help

        Graeme Handisides

         
    • U_Fischer

      U_Fischer - 2007-08-20

      Search for psfonts.map in <UserData> or <ConfigData>/pdftex/config/.
      Open it in an editor and search for an entry

      grmn1200 grmn1200 <grmn1200.pfb

      If it exists delete it and try your document again (Don't fear to break something, psfonts.map will be recreated with an updmap). Does miktex makes a pk now? If yes you will have to go through your updmap.cfg's and find out which map is responsible for the entry.

      If there is no such entry, search for grmn1000, copy the line and change the first 1000 to 1200:

      grmn1200 grmn1000 <grmn1000.pfb

      Then try your document again.

      (I don't have miktex 2.6. yet. So I can't test if it handles unknown fonts differently. And I don't know greek and greek encodings, so I don't know if bgreek is the best choice.)

      Btw: I don't think that type1ec can help together with the bgreek fonts.

      Ulrike Fischer

       
    • Graeme Handisides

      Great!

      grmn1200 grmn1200 <grmn1200.pfb did exist and deleting it solved the problem!

      There is a series of statements mapping grmn****.pfb files which do not exist. If they are used then it results in a pdftex error. Deleting these lines solves the problem, as .pk fonts are used instead.

      bgreek uses the cbgreek fonts and the author of the packet recommends using [10pt]type1ec as a solution to this problem. bgreek is necessary to interpret a certain standard means of inputting polytonic ancient greek. The problem is the cbgreek fonts.

      The problem is solved for now, but how do I prevent these lines being included again next time updmap is called (when does this happen)?

      Thanks

      Graeme Handisides

       
    • Graeme Handisides

      PS

      The Greek fonts are produced using the pk fonts, but they look quite jagged at higher magnifications, in comparison to the 10pt pfb font. Are the pk fonts bitmaps. If so, is there any package which scales pfb fonts? I understood that type1ec would do that, according to the readme from cbgreek, but then I still don't understand fonts that well:-(

      Thanks again

      Graeme Handisides

       
    • U_Fischer

      U_Fischer - 2007-08-20

      To prevent updmap to include the map entries again you will have to find the responsible map file (e.g. search for files with *.map and content grmn1200) and then find the updmap.cfg (the main one is in the install directory, the other in UserConfig or CommonConfig) which loads that map and disable the map there.

      The pk are bitmaps.
      To force bgreek to use for all sizes the 10pt-pfb scaled up you can overwrite the declarations of the fd-files. Open e.g. bcgcmr.fd

      Copy the family declaration to your document preamble:
      \DeclareFontFamily{BCG}{cmr}{}

      Copy then the font shapes declaration to your preamble e.g.
      \DeclareFontShape{BCG}{cmr}{m}{n}{
      <5> bgmn0500
      <6> bgmn0600
      <7> bgmn0700
      <8> bgmn0800
      <9> bgmn0900
      <10> bgmn1000
      <10.95> bgmn1095
      <12> bgmn1200
      <14.4> bgmn1440
      <17.28> bgmn1728
      <20.74> bgmn2074
      <24.88> bgmn2488
      }{}

      Delete all size with exception of the <10>. Replace the <10> by <->

      You get then e.g.
      \DeclareFontShape{BCG}{cmr}{m}{n}{<-> bgmn1000}{}

      If the result suits you you can save a copy of the original fd-file in UserConfig/tex/latex/bgreek/, make the changes there (change also the providesFile-line), renew the filename data base. Then LaTeX will always use only the 10pt-fonts.

      Ulrike Fischer

       

Log in to post a comment.

MongoDB Logo MongoDB