![使用 miktex 将包加载到 texmaker 时出现问题](https://linux22.com/image/358678/%E4%BD%BF%E7%94%A8%20miktex%20%E5%B0%86%E5%8C%85%E5%8A%A0%E8%BD%BD%E5%88%B0%20texmaker%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%20.png)
尝试构建时出现以下错误:
线:\documentclass[a4paper, english]{scrartcl}
日志错误:
! LaTeX Error: File `scrartcl.cls' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: cls) Enter file name: ! Emergency stop.
如果我将该行更改为\documentclass[10pt,a4paper]{article}
它可以工作,但会出现在下一行:
\usepackage{natbib}
日志错误:
! LaTeX Error: File `natbib.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop.
在我的 MikTeX 包管理器中,我看到koma-script
已安装,当我尝试添加时natbib
,我得到了
MiKTeX Problem Report Message: Couldn't connect to server Data: Source: Libraries\MiKTeX\PackageManager\CurlWebSession.cpp Line: 337 MiKTeX: 2.9 OS: Windows 10 Pro, 64-bit, build 15063 Invokers: non-existing SystemAdmin: no PowerUser: no Root0: C:\Users\TamarPC\AppData\Roaming\MiKTeX\2.9 Root1: C:\Users\TamarPC\AppData\Local\MiKTeX\2.9 Root2: C:\ProgramData\MiKTeX\2.9 Root3: C:\Program Files\MiKTeX 2.9 UserInstall: C:\Users\TamarPC\AppData\Roaming\MiKTeX\2.9 UserConfig: C:\Users\TamarPC\AppData\Roaming\MiKTeX\2.9 UserData: C:\Users\TamarPC\AppData\Local\MiKTeX\2.9 CommonInstall: C:\Program Files\MiKTeX 2.9 CommonConfig: C:\ProgramData\MiKTeX\2.9 CommonData: C:\ProgramData\MiKTeX\2.9
这里发生了什么?