CentOS: pandoc error: I can’t find file `pzdr’


Sample error:

[root@tutorialspots pdf]# pandoc -f epub --pdf-engine=xelatex "file.epub" -o "file.pdf"

kpathsea: Running mktextfm pzdr
/usr/share/texlive/texmf/web2c/mktexnam: Could not map source abbreviation  for pzdr.
/usr/share/texlive/texmf/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pzdr
This is METAFONT, Version 2.718281 (TeX Live 2013)


kpathsea: Running mktexmf pzdr
! I can't find file `pzdr'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input pzdr

Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input pzdr

Transcript written on mfput.log.
grep: pzdr.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pzdr' failed to make pzdr.tfm.
kpathsea: Appending font creation commands to missfont.log.
Error producing PDF.
! Font \XeTeXLink@font=pzdr at 0.00002pt not loadable: Metric (TFM) file or ins
talled font not found.
<to be read again>
                   \relax
l.5125   \font\XeTeXLink@font=pzdr at 1sp\relax

Fix:
Step 1: find package

[root@tutorialspots pdf][root@tutorialspots pdf]# yum whatprovides '*/pzdr*' --disablerepo=mariadb
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fra1.de.leaseweb.net
 * epel: mirror.23m.com
 * extras: centosmirror.netcup.net
 * remi-php72: mirror.dogado.de
 * remi-safe: mirror.dogado.de
 * updates: centosmirror.netcup.net
a2ps-4.14-23.el7.i686 : Converts text and other types of files to PostScript
Repo        : base
Matched from:
Filename    : /usr/share/a2ps/afm/pzdr.afm



a2ps-4.14-23.el7.x86_64 : Converts text and other types of files to PostScript
Repo        : base
Matched from:
Filename    : /usr/share/a2ps/afm/pzdr.afm



superlu_dist-doc-5.1.3-6.el7.noarch : Documentation for superlu_dist
Repo        : epel
Matched from:
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive4.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive3.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive4_ABglobal.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive3_ABglobal.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive2.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive1_ABglobal.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive1.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive2_ABglobal.c
Filename    : /usr/share/doc/superlu_dist-doc-5.1.3/EXAMPLE/pzdrive_ABglobal.c



2:texlive-tex4ht-svn29474.0-45.el7.noarch : Convert (La)TeX to HTML/XML
Repo        : base
Matched from:
Filename    : /usr/share/texlive/texmf-dist/tex4ht/ht-fonts/unicode/adobe/zapfding/pzdr.htf



2:texlive-zapfding-svn28614.0-45.el7.noarch : URW "Base 35" font pack for LaTeX
Repo        : base
Matched from:
Filename    : /usr/share/texlive/texmf-dist/fonts/afm/adobe/zapfding/pzdr.afm
Filename    : /usr/share/texlive/texmf-dist/fonts/tfm/adobe/zapfding/pzdr.tfm

Step 2: install texlive-zapfding

yum install texlive-zapfding

[root@tutorialspots pdf]# yum install texlive-zapfding
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fra1.de.leaseweb.net
 * epel: mirror.23m.com
 * extras: centosmirror.netcup.net
 * remi-php72: mirror.dogado.de
 * remi-safe: mirror.dogado.de
 * updates: centosmirror.netcup.net
http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Resolving Dependencies
--> Running transaction check
---> Package texlive-zapfding.noarch 2:svn28614.0-45.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                                       Arch                                Version                                          Repository                         Size
============================================================================================================================================================================
Installing:
 texlive-zapfding                              noarch                              2:svn28614.0-45.el7                              base                               66 k

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total download size: 66 k
Installed size: 67 k
Is this ok [y/d/N]: y
Downloading packages:
texlive-zapfding-svn28614.0-45.el7.noarch.rpm                                                                                                        |  66 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:texlive-zapfding-svn28614.0-45.el7.noarch                                                                                                              1/1
  Verifying  : 2:texlive-zapfding-svn28614.0-45.el7.noarch                                                                                                              1/1

Installed:
  texlive-zapfding.noarch 2:svn28614.0-45.el7

Complete!

Leave a Reply