很抱歉描述得不清楚,但我不知道到底出了什么问题。
我想在 LaTeX 文档中加入希腊语。我现在还没有准备好/能够/愿意/有足够的知识来切换到 teTeX 或 LuaTeX,所以我尝试做以下可能不太好的事情:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[greek,english]{babel}
\begin{document}
\textgreek{αὐλός}
\end{document}
这并没有成功:
! Undefined control sequence.
l.74 \bbl@trace
{Compatibility with language.def}
The control sequence at the end of the top line
of your error message was never \def'ed.
[...]
! LaTeX Error: Missing \begin{document}.
[...]
l.74 \bbl@trace{C
ompatibility with language.def}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
l.101 \bbl@trace
{Basic macros}
The control sequence at the end of the top line
of your error message was never \def'ed.
[...]
! Undefined control sequence.
l.281 \bbl@trace
{Hooks}
[...]
! Undefined control sequence.
l.307 \bbl@trace
{Defining babelensure}
[...]
日志文件的其余部分包含更多这种一般形状的内容,我认为将其包含进去不会有帮助。我觉得我需要以某种方式重新安装 Babel 或破解相关的类文件来解决这个问题,但我缺乏这样做的知识。我最初在一个月前通过以下方式安装了 Babelsudo apt install texlive-full
这台运行 Ubuntu 20.04 的新电脑安装了 Babel。我尝试重新安装,但它只是说我已经更新了。
我的 TeX 版本信息似乎是
TeX 3.14159265 (TeX Live 2019/Debian)
kpathsea version 6.3.1
日志档案
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2021.12.17) 10 JAN 2022 11:36
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**aulos_min.tex
(./aulos_min.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
)
\c@part=\count167
\c@section=\count168
\c@subsection=\count169
\c@subsubsection=\count170
\c@paragraph=\count171
\c@subparagraph=\count172
\c@figure=\count173
\c@table=\count174
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen134
)
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/02/11 v2.0o Standard LaTeX package
)
(/home/jeff/Desktop/Dropbox/texmf/tex/latex/jeffplusfixes/babel.sty
Package: babel 2016/02/24 3.9q The Babel package
(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2020/02/14 3.40 Babel switching mechanism
)
(/usr/share/texlive/texmf-dist/tex/generic/babel-greek/greek.ldf
Language: greek 2016/09/07 v1.9h Greek support for the babel system
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2020/02/14 3.40 Babel common definitions
(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2020/02/14 3.40 Babel switching mechanism
)
! Undefined control sequence.
l.74 \bbl@trace
{Compatibility with language.def}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
答案1
你的日志文件显示你没有使用标准 babel 版本,而是使用本地版本
/home/jeff/Desktop/Dropbox/texmf/tex/latex/jeffplusfixes/babel.sty
该版本显然与您所使用的 tex 系统不兼容(即使没有错误,最好也避免使用标准文件的修改版本)