![Windows 11 - 终端 - LaTeX 错误 - 您尚未定义语言 [?](https://linux22.com/image/459790/Windows%2011%20-%20%E7%BB%88%E7%AB%AF%20-%20LaTeX%20%E9%94%99%E8%AF%AF%20-%20%E6%82%A8%E5%B0%9A%E6%9C%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80%20%5B%EF%BC%9F.png)
VSCodium 中的代码
\documentclass[
% remove for less green,
BCOR=12mm, % 12mm binding corrections, adjust to fit your binding
parskip=half, % new paragraphs start with half line vertical space
open=any, % chapters start on both odd and even pages
cleardoublepage=plain, % no header/footer on blank pages
]{tudothesis}
\usepackage{xcolor}
\usepackage{upgreek}
% Warning, if another latex run is needed
\usepackage[aux]{rerunfilecheck}
\usepackage{bibgerm}
% just list chapters and sections in the toc, not subsections or smaller
\setcounter{tocdepth}{1}
%------------------------------------------------------------------------------
%------------------------------ Fonts, Unicode, Language ----------------------
%------------------------------------------------------------------------------
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX} % -- becomes en-dash etc.
% german language
\usepackage{polyglossia}
\setdefaultlanguage{german}
% for english abstract and english titles in the toc
\setotherlanguages{english}
% intelligent quotation marks, language and nesting sensitive
\usepackage[autostyle]{csquotes}
% microtypographical features, makes the text look nicer on the small scale
\usepackage{microtype}
%------------------------------------------------------------------------------
%------------------------ Math Packages and settings --------------------------
%------------------------------------------------------------------------------
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
% \let\mtdblcolon\dblcolon
%\usepackage{unicode-math}
% Enable Unicode-Math and follow the ISO-Standards for typesetting math
\usepackage[
math-style=ISO,
bold-style=ISO,
sans-style=italic,
nabla=upright,
partial=upright,
]{unicode-math}
\setmathfont{Latin Modern Math}
%\usepackage[warnings-off={mathtools-colon}]{unicode-math}]
%\usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
% nice, small fracs for the text with \sfrac{}{}
\usepackage{xfrac}
%------------------------------------------------------------------------------
%---------------------------- Numbers and Units -------------------------------
%------------------------------------------------------------------------------
\usepackage[
locale=DE,
separate-uncertainty=true,
per-mode=symbol-or-fraction,
]{siunitx}
\sisetup{math-micro=\text{µ},text-micro=µ}
%------------------------------------------------------------------------------
%-------------------------------- tables -------------------------------------
%------------------------------------------------------------------------------
\usepackage{booktabs} % \toprule, \midrule, \bottomrule, etc
%------------------------------------------------------------------------------
%-------------------------------- graphics -------------------------------------
%------------------------------------------------------------------------------
\usepackage{graphicx}
% currently broken
% \usepackage{grffile}
% allow figures to be placed in the running text by default:
\usepackage{scrhack}
\usepackage{float}
\floatplacement{figure}{htbp}
\floatplacement{table}{htbp}
% keep figures and tables in the section
\usepackage[section, below]{placeins}
%------------------------------------------------------------------------------
%---------------------- customize list environments ---------------------------
%------------------------------------------------------------------------------
\usepackage{enumitem}
%------------------------------------------------------------------------------
%------------------------------ Bibliographie ---------------------------------
%------------------------------------------------------------------------------
\usepackage[
backend=biber, % use modern biber backend
autolang=hyphen, % load hyphenation rules for if language of bibentry is not
sorting=none,% german, has to be loaded with \setotherlanguages
style=numeric-comp, % in the references.bib use langid={en} for english sources
]{biblatex}
\bibliography{Literatur.bib}
\def\bibliography#1{}
\addbibresource{Literatur.bib} % the bib file to use
\DefineBibliographyStrings{german}{andothers = {{et\,al\adddot}}} % replace u.a. with et al.
% Last packages, do not change order or insert new packages after these ones
\usepackage[pdfusetitle, unicode, linkbordercolor=orange]{hyperref}
\usepackage{bookmark}
\usepackage[shortcuts]{extdash}
%------------------------------------------------------------------------------
%------------------------- Angaben zur Arbeit ----------------------------
%------------------------------------------------------------------------------
\author{vv}
%\title{vvv }
\title{vv \\ \small{vv}}
\date{... Januar 2023}
%\birthplace{vv}
\chair{\small{vv vv}}
\division{\small{vv}}
\thesisclass{vv}
%\firstcorrector{vv}
%\secondcorrector{vv}
% tu logo on top of the titlepage
\titlehead{\includegraphics[height=1.5cm]{SRH2}}
\begin{document}
\frontmatter
%\input{content/hints.tex}
\maketitle
\tableofcontents
\mainmatter
\chapter{Einleitung}
ABC
\end{document}
我刚刚在 Windows 11 系统上重新安装了 LaTeX。但现在我在终端中收到一条错误消息
Package unicode-math Warning: Using \overbracket and \underbracket from
(unicode-math) `mathtools' package.
(unicode-math)
(unicode-math) Use \Uoverbracket and \Uunderbracket for
(unicode-math) original `unicode-math' definition.
Package unicode-math Warning: I'm going to overwrite the following commands
(unicode-math) from the `mathtools' package:
(unicode-math)
(unicode-math) \dblcolon, \coloneqq, \Coloneqq, \eqqcolon.
(unicode-math)
(unicode-math)
(unicode-math) Note that since I won't overwrite the other
(unicode-math) colon-like commands, using them will lead to
(unicode-math) inconsistencies.
[...]
! You haven't defined the language [ yet. \selectlanguage ...t defined the language #1 yet}
\else \grmn@originalTeX \e ... l.138 \begin{document}
LaTeX 文件在我的笔记本电脑上运行没有错误。我不知道该怎么办。有人能帮我吗?
答案1
您正在使用bibgerm
软件包,但您可能不应该使用它。它上次更新于 2000 年,与 相关,bibtex
但您正在使用biblatex
。
我假设这只是一个需要在文档稍后加载的问题。
建议:养成在每个包上方写一个简短注释的习惯,解释为什么使用它。这样,如果你把前言给别人,他们就可以删除他们不需要的东西。