我是 MikTex 的新手,但对 Latex 有一些经验。
从这里安装适用于 Windows 的 Miktexhttps://miktex.org/download. 选择所有默认安装选项。
启动 TeXWorks 时,选择“从模板新建...”,选择“基本文章”(不对模板进行任何更改)
按 Typeset(绿色播放按钮)。出现错误对话框:“无效的 stoi 参数”。
看起来像是一个包问题,因为下一个对话框是“找不到所需文件:geometry.sty”
“将安装软件包:”下拉菜单是空的。看起来很可疑
在软件包对话框中单击安装,系统会提示我选择软件包源,我选择了这个(尝试了几个不同的存储库)。另一个奇怪的事情是,软件包信息对话框不记得我上次尝试时选择了哪个源。但我可以单击“更改”并选择一个源。
然后在控制台中得到:“抱歉,但是“MiKTeX 编译器驱动程序”没有成功。”。
这是日志输出
2021-02-02 16:55:39,055Z INFO miktex-pdftex - this process (3464) started by 'miktex-texworks' with command line: C:\Users\XXXXXXX\AppData\Local\Programs\MiKTeX\miktex\bin\x64\miktex-pdftex.exe -synctex=1 -undump=pdflatex untitled-2.tex
2021-02-02 16:55:39,063Z WARN miktex-pdftex - security risk: running with elevated privileges
2021-02-02 16:55:39,071Z INFO miktex-pdftex - allowing known shell commands
2021-02-02 16:55:46,194Z INFO miktex-pdftex.packagemanager - going to download https://api2.miktex.org/repositories?&releaseState=Stable
2021-02-02 16:55:49,386Z INFO miktex-pdftex - installing package geometry triggered by tex/latex/geometry\geometry.sty
2021-02-02 16:55:49,403Z INFO miktex-pdftex.packagemanager - going to download https://api2.miktex.org/repositories/db90da458ceeb4a0f389b9d21de4aa96
2021-02-02 16:55:49,619Z INFO miktex-pdftex - mpm: starting package maintenance...
2021-02-02 16:55:49,619Z INFO miktex-pdftex - mpm: installation directory: C:\Users\XXXXXXX\AppData\Local\Programs\MiKTeX
2021-02-02 16:55:49,619Z INFO miktex-pdftex - mpm: package repository: ftp://mirror.kumi.systems/ctan/systems/win32/miktex/tm/packages/
2021-02-02 16:55:49,622Z FATAL miktex-pdftex - invalid stoi argument
2021-02-02 16:55:49,622Z INFO miktex-pdftex - this process (3464) finishes with exit code 1
我错过了什么?
答案1
有些编辑器无法处理“询问我”选项以自动加载软件包。使用 MikTeX 控制台设置->常规来选择其他选项。