未加载 \selectlanguage*{spanish}

未加载 \selectlanguage*{spanish}

我上周在 Windows 11 操作系统上安装了最新版本的 MiKTeX,上次更新时间:2022 年 2 月 12 日,遇到了一个问题。我以前从未遇到过这种情况。如果我像这样编写这个最小工作示例

 \documentclass[a4paper,12pt]{article}
 \usepackage{amsmath,amssymb} 
 \begin{document}
 alpha
 \end{document}

我总是收到以下消息:

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 22.11.25) (preloaded format=pdflatex.fmt)
 \write18 enabled.
entering extended mode
(C:/Users/sebys/OneDrive/Desktop/new question/Test3.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2022-11-02>
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\size12.clo))
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty))
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty)
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty))
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty))

(C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdf
tex.def) (C:/Users/sebys/OneDrive/Desktop/new question\Test3.aux
! Not loaded.
\selectlanguage ...ing it}\errmessage {Not loaded}
                                                  
l.2 \selectlanguage
                    *{spanish}
? 

.aux 文件。

\relax 
\selectlanguage *{spanish}
\@writefile{toc}{\selectlanguage *{spanish}}
\gdef \@abspage@last{1}
 

发生了什么事?

相关老问题:软件包 babel 错误:您尚未加载 spanish 选项。删除 .aux 不起作用

应该如何解决?

相关内容