我今天更新了 TexLive,根据实用程序,它已成功更新法语:
但是我遇到了一个以前没有出现过的排版问题,使用命令
\usepackage[francais]{babel}
即
./struct_effectivite.tex:112:软件包 babel 错误:未知语言“francais”。
您
(babel) 拼错了其名称,它尚未安装,
(babel) 或您在之前的运行中请求了它。请
分别修复其名称、(babel) 安装它或仅重新运行该文件。在
(babel) 某些情况下,您可能需要删除辅助文件。
请参阅 babel 软件包文档以了解说明。
键入 H 可立即获得帮助。
请注意,如果我输入
\usepackage[french]{babel}
(字面意思!它说未知语言‘francais’并不是未知语言‘法语’)。
我该如何解决此问题?
根据要求,这里有一个带有日志文件的示例:
\documentclass[12pt]{smfart}
\usepackage{amscd,verbatim}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
Bla bla bla.
\end{document}
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
\write18 enabled.
entering extended mode
(./test-babel.tex
LaTeX2e <2020-10-01> patch level 2
L3 programming layer <2020-10-27> xparse <2020-03-03>
(/Users/kahn/Library/texmf/tex/latex/smfart.cls
Document Class: smfart 2000/11/20 v1.3 Classe LaTeX pour les articles publies p
ar la SMF
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/umsb.fd))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amscd.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/tools/verbatim.sty)
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel/babel.def
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel/txtbabel.def))
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel-french/french.ldf))
(/usr/local/texlive/2020/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/latin1.def))
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./test-babel.aux)
./test-babel.tex:7: Package babel Error: Unknown language `francais'. Either yo
u have
(babel) misspelled its name, it has not been installed,
(babel) or you requested it in a previous run. Fix its name,
(babel) install it or just rerun the file, respectively. In
(babel) some cases, you may need to remove the aux file.
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.7 \begin{document}
?
[1{/usr/local/texlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test-babel.aux) ){/usr/local/texlive/2020/texmf-dist/fonts/enc/dvips/cm-supe
r/cm-super-t1.enc}</usr/local/texlive/2020/texmf-dist/fonts/type1/public/cm-sup
er/sfrm0900.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/cm-super
/sfrm1200.pfb>
Output written on test-babel.pdf (1 page, 12148 bytes).
SyncTeX written on test-babel.synctex.gz.
Transcript written on test-babel.log.