如何指向 miktex 加载 moderncv 模板

如何指向 miktex 加载 moderncv 模板

我的问题与一。我已经跑了模切以管理员身份从命令提示符执行此操作,操作成功完成。但是当我尝试将简历编译为 .pdf 时,出现以下错误:

    ! LaTeX Error: File `moderncv.cls' not found.

I have already downloaded moderncv into a separate directory. How can I point miktex to it?

The full miktex log is as follows:

    ======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: ftp://ftp.fu-berlin.de/tex/CTAN/systems/win32/miktex/tm/packages/
lightweight database digest: fd7a40a42ed2f1e70be3b6bdb1baccf2
going to download 1177267 bytes
going to install 38 file(s) (1 package(s))
downloading ftp://ftp.fu-berlin.de/tex/CTAN/systems/win32/miktex/tm/packages/moderncv.tar.lzma...

Unfortunately, the package moderncv could not be installed.Please check the log file:
C:/Users/user/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log
======================================================================

! LaTeX Error: File `moderncv.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: 

答案1

我已经成功修复了这个问题。在使用现代简历模板。可以使用 miktex 包管理器安装所有包,该管理器在 Windows 上默认安装在:

C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\mpm_mfc_admin.exe

首先,安装现代简历。手动安装更像是麻烦。编译 CV 时,moderncv 将需要许多附加软件包。其中之一是xparse.sty可以按照说明进行安装这里(安装包l3内核l3 软件包)始终确保 miktex关闭在安装/更新软件包时。下一个可能引起困难的软件包是tikz.sty需要软件包前列腺素多发性硬化症。如果一切顺利,简历就编写好了。

相关内容