如何让 fancyhdr 正确显示我的 acro 缩写列表章节标题,而不是上一章的标题?

如何让 fancyhdr 正确显示我的 acro 缩写列表章节标题,而不是上一章的标题?

请原谅我用意大利面条式代码来制作这个 MWE,但是我的报告在目录和正文列表之前但在表格列表之后有一个缩写列表。

表格章节名称列表溢出到缩写章节列表中并显示在标题中。如果可能的话,我想继续使用 acro 以完全相同的方式显示我的缩写,但不要发生这种情况。我也不希望缩写列表出现在内容列表中。

这是我的 MWE,其中标题中的第 1 章溢出到我生成缩写列表的地方。

\documentclass{report}
\usepackage{acro}
\usepackage{fancyhdr}
\usepackage{longtable}
\usepackage{array}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\leftmark}
\usepackage{lipsum}

\acsetup{pages/display=all,make-links=true,list/template = longtable,list/heading=chapter*,list/name={List of Abbreviations},pages/name=true}

\DeclareAcronym{STEM}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM1}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM2}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM3}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM4}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM5}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM6}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM7}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM8}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM9}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM10}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM11}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM12}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM13}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM14}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM15}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM16}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}
\DeclareAcronym{STEM17}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM18}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}
\DeclareAcronym{STEM19}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM20}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM21}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM22}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM23}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM24}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM25}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM26}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM27}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM28}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM29}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM30}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM31}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM32}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM33}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM34}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM35}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM36}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\DeclareAcronym{STEM37}{
short = STEM,
long  = science technology engineering and mathematics,
tag = acronym
}

\begin{document}

\chapter{A Chapter}

\lipsum[]{4}

\newpage
\acuseall
\printacronyms

\end{document}

我尝试过使用 \renewcommand\chaptername{} 或其他什么,但这会改变我报告中章节名称的连续性!我还尝试过非常混乱地放入词汇表来尝试解决这个问题,但对我来说没有用。

非常感谢您的帮助!谢谢

答案1

添加\markboth{\acrolistname}{\acrolistname}到打印首字母缩略词列表的部分:

\newpage
\acuseall
\markboth{\acrolistname}{\acrolistname} %<<<<<< added
\printacronyms

相关内容