文献 BibTeX-Integration 和 Siunitx-Package‘decimalsymbol’错误

文献 BibTeX-Integration 和 Siunitx-Package‘decimalsymbol’错误

我发了一篇帖子,提到由于我的 bibtex8bit 包存在问题,我无法将我的 literature.bib 文件包含在我的硕士论文中(不幸的是,无法安装软件包 bibtex8bit)。现在我重新安装了 MikteX 和 TeXStudio,Bibtex8bit 问题消失了。但由于代码不足,我的文献文件仍然无法读取。此外,我突然收到有关“siunitx-package”的新错误,这是我以前从未见过的。如果您能给我一些建议,那将对我有很大帮助。

太感谢了!

代码

\documentclass[11pt,a4paper,oneside,titlepage]{scrbook}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
%Codierung
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
%Hyperref
\usepackage{hyperref}
%Zitation von Referenzen
\usepackage{endnotes}
\usepackage[super,square,sort&compress]{natbib}
%Einbindung von Graphiken
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{pdfpages}
%Erweiterung von Tabellen
\usepackage{longtable}
\usepackage{multirow}
\usepackage{booktabs}
%Mathematische Pakete
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{pdflscape}
%SI_Einheiten
\usepackage[locale = DE, decimalsymbol=comma,exponent-product = \cdot]{siunitx}
\sisetup{locale = DE, per-mode=reciprocal-positive-first}
%Chemische Pakete
\usepackage[version=4]{mhchem}
\usepackage{chemfig}

%Newcommands
\newcommand{\diff}{\mathop{}\!\mathrm{d}}

\begin{document}

    \setcounter{page}{1}
    \pagenumbering{arabic}
    
\begin{itemize}
    \item Preparation of $\SI{5}{molar}$ Nitric Acid solution with distilled water
    \item Addition of AC to be treated into distillation flask at the rate of $1:50$ [\gram:\milli\liter solution]
        
    \end{itemize}

Rivka B. Fidel and David A. Laird \cite{Fidel.2013b}, 

\chapter*{List of Abbreviations}

\newpage
\bibliography{literature}
\bibliographystyle{unsrtdin}
\addcontentsline{toc}{chapter}{Bibliography}

\end{document}

错误信息

Package keyvalue Error: Unknown option 'decimalsymbol' for package siunitx. \ProcessKeysOptions { siunitx }
Undefined control sequence. ...llation flask at the rate of $1:50$ [\gram
Citation `Fidel.2013b' on page 1 undefined
There were undefined citations.

答案1

该选项decimalsymbol来自 的版本 1。siunitx在版本 2 中,这些选项可供升级者使用,但它们不会延续到当前版本 (v3)。您需要quantity-product = {,}

(注意:v2 是 10 多年前发布的 - 这不是一个快速的变化。)

相关内容