Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
PDF Export Not Working on Debian Based Linux Platform
Post Body

I ran into a small hiccup when following the Pandoc and LaTeX Guide.pdf that was bundled with the software for a Debian based Linux instruction. After I installed texlive-base, texlive-xetex, and pandoc, I encountered the error below. I can gather that I'm missing the Times New Roman font.

kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
Error producing PDF.
! Package fontspec Error: The font "Times New Roman" cannot be found.

For immediate help type H <return>.
 ...                                              

l.59 \setsansfont

I downloaded the Times New Roman font from https://freefontsfamily.com/times-new-roman-font-free/ and installed it in a folder in my home directory called ./fonts/Times New Roman. I tried to export as PDF again and came across a new error complaining about Arial, but it doesn't look like the previous error. Any suggestions?

kpathsea: Running mktextfm Arial
/usr/share/texlive/texmf-dist/web2c/mktexnam: Could not map source abbreviation A for Arial.
/usr/share/texlive/texmf-dist/web2c/mktexnam: Need to update /usr/share/texlive/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Arial
This is METAFONT, Version 2.7182818 (TeX Live 2019/Debian) (preloaded base=mf)

kpathsea: Running mktexmf Arial

! I can't find file `Arial'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input Arial

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

Transcript written on mfput.log.
grep: Arial.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Arial' failed to make Arial.tfm.
kpathsea: Appending font creation commands to missfont.log.

kpathsea: Running mktextfm Arial
/usr/share/texlive/texmf-dist/web2c/mktexnam: Could not map source abbreviation A for Arial.
/usr/share/texlive/texmf-dist/web2c/mktexnam: Need to update /usr/share/texlive/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Arial
This is METAFONT, Version 2.7182818 (TeX Live 2019/Debian) (preloaded base=mf)

kpathsea: Running mktexmf Arial

! I can't find file `Arial'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input Arial

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

Transcript written on mfput.log.
grep: Arial.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Arial' failed to make Arial.tfm.
kpathsea: Appending font creation commands to missfont.log.
Error producing PDF.
! Package fontspec Error: The font "Arial" cannot be found.

For immediate help type H <return>.
 ...                                              

l.60 

Installed Packages

  • texlive-base (2019.20200218-1)
  • texlive-xetex (2019.20200218-1)
  • pandoc (2.5-3build2)

Author
Account Strength
0%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,864
Link Karma
969
Comment Karma
2,895
Profile updated: 6 months ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago