1

I installed the mathgifg package according to this guide:

How to install mathgifg package as well as the mathgifg documentation.

For typesetting I am using the MacTex 2013 distribution and pdftex. Now I am testing the installation with a basic version of the mathgifg sample file since I am only interested in using Franklin Gothic Fonts in my documents:

\documentclass{article}
\usepackage{lipsum,url}
\usepackage{textcomp}
\usepackage{mathgifg,amsfonts,amsmath}
\usepackage{ifpdf}
\ifpdf
     \pdfmapfile{+mathgifg.map}
\fi

\newcounter{lipsumnum}
\setcounter{lipsumnum}{1}

\newcommand{\samplefont}[2]{{#1\selectfont #2: 
0123456789, \$20, \texteuro30, \pounds60.
Na\"ive \AE sop's \OE uvres in fran\c cais were my first reading.
\lipsum[\value{lipsumnum}]\stepcounter{lipsumnum}\par}}

\begin{document}

\section{Text Tests}
\label{sec:text}

%\samplefont{\sffamily\fontseries{k}}{Franklin Gothic Book}
\samplefont{\sffamily\fontseries{k}\itshape}{Franklin Gothic Book Italic}

\end{document}

As you can see I am testing the Franklin Gothic Book and the corresponding italic fonts, commenting out the not used option. When I use the Franklin Gothic Book option I get the following error:

!pdfTeX error: /usr/local/texlive/2013/bin/x86_64-darwin/pdflatex (file georgia.pfb): cannot open Type 1 font file for reading
==> Fatal error occurred, no output PDF file produced!

I do not know why pdftex wants to use georgia.pfb for this. When I use the Italic option I get the following error:

!pdfTeX error: /usr/local/texlive/2013/bin/x86_64-darwin/pdflatex (file frabkit.pfb): cannot open Type 1 font file for reading
 ==> Fatal error occurred, no output PDF file produced!

The frabkit.pbf is definitely available in /usr/local/texlive/texmf-local/fonts/type1/itc/franklingothic

During installation of the mathgifg package I had some issues with the correct folders. The texmf-local folder did not exist in /usr/local/texlive, so I created it according to the guide. However, I am not sure if this is the correct way, since the texlive folder does also contain the various MacTex distributions in folders corresponding to the version (2012, 2013, 2014) and I am also not sure if the mathgifg package does require all Georgia and Franklin Gothic Fonts to work (I just installed two).

Any advice is very welcome.

UPDATE: I deleted the lines

\ifpdf
  \pdfmapfile{+mathgifg.map}
\fi

according to the comments. The error now is:

!pdfTeX error: /usr/local/texlive/2013/bin/x86_64-darwin/pdflatex (file xifgki8r): Font xifgki8r at 600 not found

I am using Texpad 1.7.9 for editing and typesetting.

  • You can find out the location of texmflocal with kpsewhich -expand-var=$TEXMFLOCAL in a terminal. – Ulrike Fischer May 4 '15 at 15:02
  • That's the right place. If you followed the instructions Joseph Wright posted, you don't need the \pdfmapfile line, and if you've converted the fonts, it doesn't matter whether you're using pdfTeX or not. What does kpsewhich frabkit.pfb give? – cfr May 4 '15 at 15:03
  • @cfr kpsewhich frabkit.pfb returns nothing. kpsewhich -expand-var=$TEXMFLOCALreturns an empty line. – fr3d-5 May 4 '15 at 15:28
  • That command returns an empty line for me, too, so I think that's expected. I think probably @UlrikeFischer meant to suggest kpsewhich -var=TEXMFLOCAL. The fact that the kpsewhich command returns nothing means that the fonts maybe in the right place but are not installed correctly. Did you run mktexlsr? You probably need to do this as root (e.g. with sudo). – cfr May 4 '15 at 16:29
  • 1
    The style sets \rmfamily to georgia and so e.g. the page number and your section request it. Remove the sty and try simply {\fontfamily{xifg}\fontseries{k}\selectfont abc} – Ulrike Fischer May 4 '15 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.