![TexLive 2015 - 在 TexStudio 中使用“法语”选项时出错](https://linux22.com/image/317422/TexLive%202015%20-%20%E5%9C%A8%20TexStudio%20%E4%B8%AD%E4%BD%BF%E7%94%A8%E2%80%9C%E6%B3%95%E8%AF%AD%E2%80%9D%E9%80%89%E9%A1%B9%E6%97%B6%E5%87%BA%E9%94%99.png)
我是 LaTex 世界的新手。我昨天刚刚在 Windows 10 电脑上安装了 Texlive 2015 和 texstudio(最新版本)。除了模板“Article{french}”拒绝编译任何最小工作示例外,一切似乎都正常工作。问题可能来自法语选项或 Texstudio 参数。已安装“collection lang-french”和“babel-french”。我检查了 TexLive 管理器。从那时起,我阅读了所有我能找到的解决方案,但没有任何成功。
以下是我写的内容:
\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[a4paper]{geometry}
\usepackage{babel}
\begin{document}
test
\end{document}
这是日志文件:
% les options suivantes (conseillées) par défaut :
\abbreviations
\disallowuchyph
\overfullhboxmark
\tthyphenation
\tabbingaccents
\automaticlettrine
% désactivez les options de frenchle pour '«' et '»' !
% test eFrench = {\befr}
\newcommand{\fbefr}{{\footnotesize E}F{\footnotesize RENCH}}
\DeclareRobustCommand{\befr}{\fbefr}
我无法理解这一切意味着什么,因为我对计算机或软件一无所知。
有人能理解或者有任何解决方案可以让我的 texlive 以法语使用吗?
非常感谢 !
发布的文件运行时没有错误,直到最近在 texlive 中用 替换frenchle
。e-french
该文件现在生成
(/usr/local/texlive/2015/texmf-dist/tex/generic/e-french/french.cfg
! Undefined control sequence.
l.2 \abbreviations
我正在使用 PdfLatex
答案1
babel-french 现在已经更新以避免该问题,因此不再需要下面建议的修复。
这是最近添加的 e-french 文件中令人遗憾的不兼容性。
最简单的(临时)本地修复方法是将一个空文件添加french.cfg
到包含文档的文件夹中。然后系统将读取此文件,而不是french.cfg
e-french 发行版中的文件。
答案2
此错误是由于 TeX Live 中包含了e-french
(以前的frenchle
)。更新babel-french
解决了此问题。
babel-french
使用3.1g 版本(TeX Live 修订版 37701)编译示例时的记录
> pdflatex manu
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./manu.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/utf8.def
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/local/texlive/2015/texmf-dist/tex/latex/lm/lmodern.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2015/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/babel-french/frenchb.ldf
(/usr/local/texlive/2015/texmf-dist/tex/generic/babel/babel.def)
*************************************
* Local config file french.cfg used
*
(/usr/local/texlive/2015/texmf-dist/tex/generic/e-french/french.cfg
! Undefined control sequence.
l.2 \abbreviations
babel-french
使用版本 3.1h(TeX Live 修订版 38160)编译示例时的记录
> pdflatex manu
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./manu.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/utf8.def
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/local/texlive/2015/texmf-dist/tex/latex/lm/lmodern.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2015/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2015/texmf-dist/tex/generic/babel-french/frenchb.ldf
(/usr/local/texlive/2015/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2015/texmf-dist/tex/latex/carlisle/scalefnt.sty)
No file manu.aux.
(/usr/local/texlive/2015/texmf-dist/tex/latex/lm/t1lmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
[1{/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./manu.aux) ){/usr/local/texlive/2015/texmf-dist/fonts/enc/dvips/lm/lm-ec.enc}
</usr/local/texlive/2015/texmf-dist/fonts/type1/public/lm/lmr10.pfb>
Output written on manu.pdf (1 page, 23380 bytes).
Transcript written on manu.log.