在使用 newtxttext 从 pdf 复制的文本缺少空格,我发现我想使用\pdfinterwordspaceon
,例如,自 TeX Live 2014 起可用。但是,我正在使用 MiKTeX(pdflatex
在 Windows 上使用 )
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2016.6.30) 7 JUL 2016 11:33
并且以下 MWE 无法编译:
\documentclass{article}
\pdfinterwordspaceon
\begin{document}
Compile!
\end{document}
这些是我收到的错误消息:
line 5: Font \csname\endcsname=dummy-space at 1.00375pt not loadable: Metric (TFM) file not found. \end{document}
line 5: Font \csname\endcsname=dummy-space at 1.00375pt not loadable: Metric (TFM) file not found. \end{document}
此外,我还查看了几个日志文件:
miktex-maketfm.log
2016-07-07 11:25:05,150-0400 INFO makex - Running miktex-makemf.exe...
2016-07-07 11:25:05,385-0400 INFO makex - Running hbf2gf.exe...
2016-07-07 11:25:05,577-0400 FATAL miktex-maketfm - No creation rule for font dummy-space.
miktex-makemf.log
2016-07-07 11:25:05,338-0400 FATAL miktex-makemf - The dummy-space source file could not be found.
2016-07-07 11:25:06,240-0400 FATAL miktex-makemf - The dummy-space source file could not be found.
2016-07-07 11:25:07,216-0400 FATAL miktex-makemf - The dummy-space source file could not be found.
2016-07-07 11:25:08,103-0400 FATAL miktex-makemf - The dummy-space source file could not be found.
2016-07-07 11:25:09,014-0400 FATAL miktex-makemf - The dummy-space source file could not be found.
miktex-makepk.log
2016-07-07 11:25:09,531-0400 FATAL miktex-makepk - Unknown command-line option.
我也尝试过这个,结果是一样的:
\documentclass{article}
\pdfmapline{+dummy-space <dummy-space.pfb}
\pdfinterwordspaceon
\begin{document}
Compile!
\end{document}
这应该可行吗?我需要额外的软件包吗?如果需要,需要哪一个?
答案1
我发现下载dummy-space.pfb
并dummy-space.tfm
从这里并将它们存储在我的文件旁边,tex
使我的第二个 MWE 编译成功。行
\pdfmapline{+dummy-space <dummy-space.pfb}
似乎是必需的——没有它就无法编译。
当然,我对通过 MiKTeX 包管理器提供的更自动化的解决方案感兴趣。