fancyhdr \leftmark, \section*에 대한 \rightmark 항목

fancyhdr \leftmark, \section*에 대한 \rightmark 항목

다음 라텍스 문서가 있는데 번호 매기기 없이 "약어 목록" 섹션을 포함하고 싶습니다. 이는 목차에도 나타나야 합니다(그림 목록 및 표 목록 섹션과 유사하게 표시되어야 함). 지금까지는 훌륭해서 명령으로 수행할 수 있었습니다 \addcontentsline{toc}{section}{List of Abbreviations}.

\fancyhdr그러나 여전히 옵션 에 문제가 있습니다 \leftmark. 여전히 CONTENTS섹션 헤더에 나열됩니다 List of Abbreviations. 이 문제를 어떻게 해결할 수 있나요?

\documentclass[11pt, bibliography=totoc, twoside]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\usepackage[onehalfspacing]{setspace}

\usepackage{float}
\usepackage{acronym}
\usepackage{geometry}
\usepackage{hyperref}
\hypersetup{colorlinks,linkcolor=black,urlcolor=blue,citecolor=blue}
\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[LE]{\rightmark}
\fancyhead[RO]{\leftmark}
\fancyfoot[C]{\thepage}
\setlength{\headheight}{14pt}


\usepackage{blindtext}

\title{dummy}
\author{my name}
\date{December 2019}

\begin{document}

\maketitle

\pagestyle{fancy}

\tableofcontents 
\newpage

\pagenumbering{Roman} 
\section*{List of Abbreviations}
\addcontentsline{toc}{section}{List of Abbreviations}
\begin{acronym}\itemsep0pt
\acro{ABC}{Alphabet}
\end{acronym}
\newpage

\listoffigures
\addcontentsline{toc}{section}{\listfigurename}
\newpage

\listoftables
\addcontentsline{toc}{section}{\listtablename}
\newpage


\pagenumbering{arabic} 
\section{Introduction}
\blindtext
\newpage

\section{Section 2}
\blindtext[4]
\subsection{subsection 2.1}
\blindtext[4]
\subsection{subsection 2.2}
\blindtext[4]
\newpage

\section{Section 3}
\blindtext
\newpage


\end{document}

답변1

\section*헤더에 쓰지 않으므로 직접 작성해야 합니다. 추가하다

\markboth{List of Abbreviations}{List of Abbreviations}

관련 정보