普通的:

普通的:

我对乳胶展示中的 nexus 样式类印象深刻(见这里)。不幸的是,当我尝试实现它时,我需要加载 mhchem 包,而这样做时,底部的选项卡无法正确呈现:

普通的:

在此处输入图片描述

加载mhchem包时:

在此处输入图片描述

如您所见,页脚不仅颜色不正确,而且还缺少标签。

这是我的不起作用的代码:

% !TeX program = lualatex
\documentclass[11pt,oneside]{book}

%%%%%%%%%%%%% Geometry
\usepackage[a4paper,left=2.5cm,right=2.5cm, bottom=2.5cm,top=2.5cm]{geometry}

%%%%%%%%%%%%%%% Les paquets

\usepackage[english]{babel}
\usepackage[palette=munch]{nexus}

%%%%%%%%%%%%%%%% hyperref
\usepackage{lipsum}
\usepackage[verbose]{hyperref}
\hypersetup{ 
    hidelinks
}
\setlength{\XeTeXLinkMargin}{-1pt}
\usepackage{mhchem} % <----- MHCHEM, COMMENT THIS LINE AND COMPILE TWICE TO SEE PROPER LAYOUT

\begin{document}

\include{titlepage}

\tableofcontents

\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]

\subsection{This is a subsection}
\lipsum[1-2]

\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]


\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]

\subsection{This is a subsection}
\lipsum[1-2]

\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]

%%%%%%%%%%%%%%%%%%%%%%%


\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]

\subsection{This is a subsection}
\lipsum[1-2]

\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]

\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]

\subsection{This is a subsection}
\lipsum[1-2]

\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]


%%%%%%
\begin{appendices}
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]

\subsection{This is a subsection}
\lipsum[1-2]

\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]

\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]

\subsection{This is a subsection}
\lipsum[1-2]

\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]


\end{appendices}

\end{document}

相关的类文件可以在创建者的 github 存储库中找到这里\usepackage{mhchem}. 人们会注意到,上面的代码只是添加了导致错误的test.tex 。

我尝试过的事情

我尝试过以下建议这个答案并添加\mhchemoptions{text-greek=default, math-greek=default}到后面的行\usepackage{mhchem},但遗憾的是无济于事。它没有解决我的问题。我不确定是什么导致了这个问题

答案1

您的样式加载assoccnt。mhchem 加载calc。正如文档所述assoccnt

此包与 calc 包配合得不是很好。在关联之前加载 calc

因此将 mhchem 移至 nexus 之前。

相关内容