自定义包的 MikTex 和字体出现问题,缺少文件

自定义包的 MikTex 和字体出现问题,缺少文件

我正在尝试让自定义文档类在一台我没有管理权限的 Windows PC 上运行。MikTex 无法访问其软件包存储库,到目前为止,我不得不手动安装大量软件包,这确实很耗时。

现在,当我尝试编译我的文档时,遇到了这个错误:

Command Line:   pdflatex.exe --interaction=errorstopmode --synctex=-1 "main.tex"
Startup Folder: C:\Users\x\Downloads\rtthesisex-exjobb\rtthesisex

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)
entering extended mode
(C:\Users\x\Downloads\rtthesisex-exjobb\rtthesisex\main.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
----- SNIP (loading packages) -----
Option `squaren' provided!
)) (C:\Users\x\Downloads\rtthesisex-exjobb\rtthesisex\main.aux)
(C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\omljkpw.fd)
(C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\omsjkpw.fd)
(C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\omxjkp.fd)
(C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\ujkpexa.fd)
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ts1cmr.fd")
(C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\t1jkpk.fd)
======================================================================
miktex-maketfm.exe: Try Again
miktex-maketfm.exe: Data: get host by name failed in tcp_connect()
======================================================================
Running miktex-makemf.exe...
miktex-makemf: The jkpmn8t source file could not be found.

Running hbf2gf.exe...


hbf2gf (CJK ver. 4.8.0)



Couldn't find `jkpmn.cfg'

miktex-maketfm: No creation rule for font jkpmn8t.

! Font T1/jkpk/m/n/10=jkpmn8t at 10.0pt not loadable: Metric (TFM) file not fou
nd.
<to be read again> 
                   relax 
l.17 \begin{document}

? x
No pages of output.
Transcript written on main.log.


_____________________________________________________________________

 PDFLaTeX Compilation Report (Pages: 0)

 Errors: 1   Warnings: 1   Bad Boxes: 0
_____________________________________________________________________

我不知道如何手动修复此问题。我尝试重新安装该软件包,但 kpfonts 中没有包含 .cfg 文件。有人有其他想法吗?

答案1

您不需要手动安装所有内容。创建一个本地存储库。您需要两个 miktex-zz... 文件和要安装的 miktex 包。将所有内容放在某个文件夹中,然后使用此文件夹。有关详细信息,请参阅例如 MiKTeX:[...] 似乎不是本地软件包存储库

忽略有关文件的消息.cfg。maketfm 正在将其作为最后的手段进行查找。真正的问题是.tfm文件丢失。您可能将其放在了错误的位置。所有.fd文件也都在错误的文件夹中:它们应该位于 中tex\latex\kpfonts

相关内容