![LuaTeX:方程式中的矩阵出现“缺失数字,视为零”错误](https://linux22.com/image/376730/LuaTeX%EF%BC%9A%E6%96%B9%E7%A8%8B%E5%BC%8F%E4%B8%AD%E7%9A%84%E7%9F%A9%E9%98%B5%E5%87%BA%E7%8E%B0%E2%80%9C%E7%BC%BA%E5%A4%B1%E6%95%B0%E5%AD%97%EF%BC%8C%E8%A7%86%E4%B8%BA%E9%9B%B6%E2%80%9D%E9%94%99%E8%AF%AF.png)
解决了:我在该等式之前声明了一个算法,在其中我设置了 \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