我正在使用memoir
带有chemstyle
包的类。我刚刚发现我的命令的输出\listofschemes
与我的输出的缩进和格式不同\listoffigures
。
我试图研究 chemstyle 的定义并重新定义,\listofschemes
但我无法弄清楚如何修改输出以匹配标准\listoffigures
输出。
以下是 MWE:
\documentclass[oneside,openany,11pt]{memoir}
\usepackage[demo]{graphicx}
\usepackage{chemstyle}
\begin{document}
\frontmatter
\addcontentsline{toc}{chapter}{Table of Contents}\tableofcontents*\clearpage
\listoffigures\addcontentsline{toc}{chapter}{List of Schemes}\listofschemes
\mainmatter
\chapter{Chapter one}\section{Sec one}
\begin{figure}\caption{Test}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test2}\includegraphics{blank}\end{scheme}
\section{sec two}
\begin{figure}\caption{Test3}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test4}\includegraphics{blank}\end{scheme}
\begin{figure}\caption{Test5}\includegraphics{blank}\end{figure}
\chapter{Chapter 2}\section{chap 2 sec 1}
\begin{scheme}\caption{Test6}\includegraphics{blank}\end{scheme}
\begin{figure}\caption{Test7}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test8}\includegraphics{blank}\end{scheme}
\section{chap 2 sec 2}
\begin{figure}\caption{Test9}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test10}\includegraphics{blank}\end{scheme}
\end{document}
查看chemscheme.sty
文件,它甚至看起来缩进应该是零,所以我有点困惑......
\newlistentry[chapter]{scheme}{los}{0}%
\cftsetindents{scheme}{0em}{2.3em}%
我使用了一系列其他软件包,但这又重现了问题。为了以防万一它能解决,我也使用floatrow
了flafter
。
答案1
使用手册第 9.3.1 节中的代码示例memoir
来创建“方案列表”——这将覆盖 的操作chemscheme.sty
。(您可能还想\clearpage
在 之前添加\listofschemes
。)
\documentclass[oneside,openany,11pt]{memoir}
\usepackage[demo]{graphicx}
\usepackage{chemstyle}
% \newcommand{\listschemename}{Schemes}% already defined in chemscheme.sty
\newlistof{listofschemes}{los}{\listschemename}
\newlistentry{scheme}{los}{0}
\begin{document}
\frontmatter
\addcontentsline{toc}{chapter}{Table of Contents}\tableofcontents*\clearpage
\listoffigures\clearpage
\listofschemes\clearpage
\mainmatter
\chapter{Chapter one}\section{Sec one}
\begin{figure}\caption{Test}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test2}\includegraphics{blank}\end{scheme}
\section{sec two}
\begin{figure}\caption{Test3}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test4}\includegraphics{blank}\end{scheme}
\begin{figure}\caption{Test5}\includegraphics{blank}\end{figure}
\chapter{Chapter 2}\section{chap 2 sec 1}
\begin{scheme}\caption{Test6}\includegraphics{blank}\end{scheme}
\begin{figure}\caption{Test7}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test8}\includegraphics{blank}\end{scheme}
\section{chap 2 sec 2}
\begin{figure}\caption{Test9}\includegraphics{blank}\end{figure}
\begin{scheme}\caption{Test10}\includegraphics{blank}\end{scheme}
\end{document}