listofitems 错误:你的 TeX 引擎不提供 \expanded 原语

listofitems 错误:你的 TeX 引擎不提供 \expanded 原语

通常,我在 Overleaf 上使用 LaTeX,但现在我需要在计算机上使用它。我有 TeXmaker 和 TeXStudio,但当我尝试运行在 Overleaf 中完美运行的代码时,我在第 67 行收到错误:

! Package listofitems Error: the \expanded primitive is not provided by your TeX engine, listofitems v1.62 cannot work: loading listofitems v1.61.See the listofitems package documentation for explanation.Type H <return> for immediate help.... {\input listofitemsold.tex\relax\endinput}

我正在阅读 的文档\listofitems,但我不明白为什么我的代码需要它,或者为什么我会收到该错误。我添加了\usepackage{listofitems},它显示在此处:http://tug.ctan.org/macros/generic/listofitems/listofitems-en.pdf

尽管如此,它还是不起作用。我按照另一个问题用 MikTeX 包管理器验证了我的所有包,但包已安装,我不知道还能做什么。我将展示我的序言:

\documentclass[11pt]{report}

%% Language and font encodings
\usepackage[spanish, english]{babel}
\selectlanguage{spanish}
\usepackage[utf8x]{inputenc}
%% Sets page size and margins
\usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm]{geometry}
%\baselineskip=10mm
\renewcommand{\baselinestretch}{1.3}

%% Useful packages
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage{imakeidx} %Tabla de Contenido
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage[all]{xy}
\usepackage{tikz-cd}
\usepackage{mathdots}
\usepackage{bbm}
\usepackage{hyperref}
\usepackage{faktor}
\usepackage{thmtools}

% Títulos con Fuente distinta---------
%\usepackage{titlesec}
%\usepackage{titling}

% Specify different font for section headings
%\newfontfamily\headingfont[]{Gill Sans}
%\titleformat*{\section}{\LARGE\headingfont}
%\titleformat*{\subsection}{\Large\headingfont}
%\titleformat*{\subsubsection}{\large\headingfont}
%\renewcommand{\maketitlehooka}{\headingfont}
\usepackage{sectsty}
\allsectionsfont{\sffamily}

%----Definiciones con otra Fuente
%\declaretheoremstyle[headfont=\normalfont]{normalhead}

\theoremstyle{plain}
\newtheorem{theorem}{Teorema}[chapter]

\theoremstyle{definition}
\newtheorem{definitionx}[theorem]{Definici\'on}
\newenvironment{definition}
  {\pushQED{\qed}\renewcommand{\qedsymbol}{$\square$}\definitionx}
  {\popQED\enddefinitionx}

\newtheorem{examplex}[theorem]{Ejemplo}
\newenvironment{example}
  {\pushQED{\qed}\renewcommand{\qedsymbol}{$\triangle$}\examplex}
  {\popQED\endexamplex}

\theoremstyle{plain}
\newtheorem{lemma}[theorem]{Lema}
\newtheorem{corollary}[theorem]{Corolario}
\newtheorem{preposition}[theorem]{Proposici\'on}
\usepackage{listofitems}
%Here is the error, in the next one.
\theoremstyle{remark}
\newtheorem{note}[theorem]{Nota}
%------------------

\usepackage{subfiles}

\graphicspath{{images/}{../images/}}

\usepackage{stackengine}
\stackMath 

%% Definiciones
\DeclareMathOperator{\rep}{rep}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\coker}{coker}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\incl}{incl}
\DeclareMathOperator{\proj}{proj}
\DeclareMathOperator{\inj}{inj}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\rad}{rad}

%------------------------------------------------------------------------
%------------------------------------------------------------------------
%----INICIO DEL DOCUMENTO------------------------------------------------
%------------------------------------------------------------------------
%------------------------------------------------------------------------

\begin{document}

任何帮助都会非常有用。谢谢。

答案1

\expanded原语在 LuaTeX 中可用多年,并在 TeX Live 2019 版本中普遍可用(在 pdfTeX 和 XeTeX 中)。由于 Overleaf 目前使用 TeX Live 2017,因此它在 pdfTeX 中不可用。

相关内容