mhchem 想要 expl3

mhchem 想要 expl3

我在 Ubuntu 上使用 TexLive,但无法编译这个 .tex 文件:

\documentclass[
letter,
12pt         %% set default font size to 12 point
]{scrartcl}  %% article, see KOMA documentation (scrguide.dvi)

%just have this
%\usepackage{ucs} breaks biblatex?
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[american]{babel}

\usepackage[autostyle]{csquotes}

\usepackage[
    backend=biber,
    style=authoryear-icomp,
    sortlocale=de_DE,
    natbib=true,
    url=false, 
    doi=true,
    eprint=false
]{biblatex}

\addbibresource{references-biblatex.bib}

\usepackage[hidelinks]{hyperref}
\hypersetup{
    colorlinks=false,
}


\usepackage{amsmath,amssymb,amstext}

\usepackage{graphicx}

\usepackage{siunitx}

%\usepackage{expl3} % i thought i might have to include it

\usepackage[version=4]{mhchem}      %chemical notation

\title{Not very minimal Example}
\author{Test Name}
\date{}

\begin{document}
\maketitle


\tableofcontents

Test

\printbibliography

\end{document}

当我删除 mhchem 包时它可以工作,但我需要它来完成我的实验报告。

使用 mhchem 包我收到以下消息:

/texmf/tex/latex/l3kernel/l3str.sty
*****************************************************************
** 
** Package l3str is obsolete and has been removed!
** 
** Its functionality is now only provided as part of in the expl3 package
** 
** After showing you an error message you can hit <return> we will continue
** for now by loading expl3 for you. However, at some point in the future
** the old packages will be removed.
** 
** Therefore, please replace '\usepackage{l3str}'
** with '\usepackage{expl3}' in your documents as soon as possible.
** 
*******************************************************************

! Package l3str Error: This package is obsolete --- use 'expl3' instead.

See the l3str package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.72    use 'expl3' instead}

我真的不知道该如何解决这个问题。我尝试了以下方法:

  • 删除/安装 l3kernel
  • 使用 TeXStudio 在 Windows 机器上进行编译(在那里可以工作!)
  • 谷歌搜索,不明白问题可能出在哪里

事实上它在 Windows 上运行良好,这说明我的 latex 安装没有正确设置,我可能需要安装其他包?(通过 tlmgr)

我希望有人能帮助我,我非常喜欢乳胶,但一开始它非常令人生畏。:)

相关内容