解决了:我在该等式之前声明了一个算法,在其中我设置了 \SetKwArray{array}{array}。我将其更改为 \SetKwArray{arraq}{array},现在运行正常。
这是我的文档。它抛出错误:
缺少数字,视为零。 \begin{matrix}(由 unicode-math-luatex.sty 在第 227 行编写)。我无法修复它。我尝试过:-- \ 后的可选参数(修复:\{})-- & 后的可选参数(修复:&{})-- 加载/卸载各种包
\documentclass[a4paper]{scrartcl}
% Für mathematische Symbole
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{import}
\usepackage{polyglossia}
\setdefaultlanguage[
spelling = new,
babelshorthands = true ]
{german}
% Für Pseudo-Code
\usepackage[ruled,vlined]{algorithm2e}
% Durchstreichen
\usepackage[normalem]{ulem}
%Hyperlinks
\usepackage{hyperref}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = blue, %Colour for external hyperlinks
linkcolor = blue, %Colour of internal links
citecolor = red %Colour of citations
}
% Aside Kommentar
\usepackage{marginnote}
\reversemarginpar
% Package für bessere Liste
\usepackage{scrextend}
% Coole Listen [Seperator-zeichen]
\usepackage[ampersand]{easylist}
% \emph{} - ändern
\DeclareTextFontCommand{\emph}{\bfseries}
%Für Farben
\usepackage[dvipsnames]{xcolor}
\definecolor{TextMarkerGelb}{RGB}{255, 255, 120}
\usepackage{soul}
\sethlcolor{TextMarkerGelb}
% Paragraph-Einstellung
\usepackage[explicit]{titlesec}
\setcounter{secnumdepth}{4}
\titleformat{\paragraph}[block]
{\normalfont\normalsize\bfseries}{}{0pt}{\uline{#1}}
\titleformat{name=\paragraph,numberless}[block]
{\normalfont\normalsize\bfseries}{}{0pt}{\uline{#1.}}
%Roboto-Font: https://fonts.google.com/?selection.family=Roboto
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{Roboto}
\setsansfont{Roboto}
\setmonofont{Roboto}
\setmathfont{Asana Math} % for math symbols, can be any other OpenType math font
\setmathfont[range=\mathup] {Roboto}
\setmathfont[range=\mathbfup]{Roboto}
\setmathfont[range=\mathbfit]{Roboto}
\setmathfont[range=\mathit] {Roboto}
% O-Notation
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\SetMathAlphabet{\mathcal}{bold}{OMS}{cmsy}{b}{n}
%Bibliographie-Verwaltung
\usepackage{biblatex}
%Ermöglicht [H]
\usepackage{float}
%Integral d
\newcommand*\dif{\mathop{}\!\mathrm{d}}
%Counter Alphabetisch statt zahlen
\renewcommand\thesection{\Alph{section}}
\renewcommand\thesubsection{\thesection.\arabic{subsection}}
\begin{document}
\begin{equation}
\begin{matrix}
[1] & [2] & [3] & [4] & [5] & [6] & [7] & [8] \cr
3 & 4 & 5 & 1 & 17 & 19 & 13 & 14
\end{matrix}
\end{equation}
\end{document}
我做错了什么以及我该如何让它发挥作用?
编辑:上传日志文件:https://pastebin.com/DzBFsvUs