라텍스로 논문을 작성하는 중인데 참고문헌 섹션에 헤더 문제가 있습니다. 나는 헤더에 titlesec 패키지를 사용하고, 참고문헌과 텍스트 뒷부분에 나타나는 출판 목록에 대해 biblatex를 사용합니다.
여기에 내 문제의 MWE가 있습니다. 출판 목록 섹션의 헤더는 괜찮지만 참고문헌의 헤더와 바닥글에 "REFERENCES"가 추가되어 이를 올바르게 가져오는 방법을 찾을 수 없습니다.
\documentclass[
openany,
twoside,
12pt]
{report}
\begin{filecontents}{exempleref.bib}
@book{jane1980,
author = "Jane Doe",
title = "Matrix Computations",
edition = "4th Edition",
publisher = "The Johns Hopkins University Press",
address = "Baltimore, Maryland",
year = "2013",
}
@Article{doe2017,
Author = "John Doe",
Title = "Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2016,
Author = "John Doe",
Title = "First Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2015,
Author = "John Doe",
Title = "Previous Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2014,
Author = "John Doe",
Title = "Another Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2013,
Author = "John Doe",
Title = "Prequel to Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2012,
Author = "John Doe",
Title = "Prequel to prequel to Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2011,
Author = "John Doe",
Title = "Before Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
@Article{doe2010,
Author = "John Doe",
Title = "Introduction to Latex Minimal Working Ewample (MWE) First Edition",
Journal = "Great LateX Journal",
Year = "2017",
Number = "3",
Pages = "1-23",
Volume = {1},
}
\end{filecontents}
\usepackage[
paperwidth=16cm,
paperheight=24cm]
{geometry}
\linespread{1.5}
\usepackage[
natbib=true,
style=nature, %bibliography style
backend=bibtex8,
defernumbers, %Will put new reference number for publication list
sorting = none, %sort bibliography by in text citation number
firstinits=true, %turn first and middle names as intials
doi=false, %no doi
isbn=false, %no isbn field
url=false] % no url in bibliography
{biblatex}
\addbibresource{exempleref.bib}
\DefineBibliographyStrings{english}{%change the name of the bibliography section to "References"
bibliography = {References},
}
\defbibheading{bibliography}[\refname]{% %should fix the heading but is inneficient
\section*{#1}
\markboth{}{}
}
\usepackage[
pagestyles] %option allow to change page header
{titlesec}
\titleformat{\chapter}{\normalfont\huge}{\bf\thechapter.}{20pt}{\huge\bf} %change chapter N to N. chapter title
\newpagestyle{mystyle} %page style for whole document
{\sethead[\thepage][][\thechapter .~\chaptertitle]{\thesection~\sectiontitle}{}{\thepage}
}
\newpagestyle{bibstyle} %page style for bibliography
{\sethead[\thepage][][\thechapter .~\chaptertitle]{}{}{\thepage}
}
\pagestyle{mystyle}
\usepackage{lipsum}
\begin{document}
\chapter {First Chapter}
\lipsum[1-1]
\cite{jane1980}
\lipsum[2-2]
\cite{doe2010,doe2011,doe2012,doe2013,doe2014,doe2015,doe2016,doe2017}
\pagestyle{bibstyle} %use the header style for the bibliography
\printbibheading[title = {References}, heading = bibnumbered] %print bibliography title
\printbibliography[heading=none] %print the bibligraphy
\pagestyle{mystyle} %recover document heading style
\begin{refsection} %new section for separated publication list
\printbibheading[title = {Publications list}, heading = bibnumbered]
\nocite{*}
\section {Articles}
\printbibliography[type=article, prefixnumbers={A.}, heading=none]
\section {Book}
\printbibliography[type=book, prefixnumbers={B.}, heading=none]
\end{refsection}
\end{document}
빨간색 원으로 표시된 "REFERENCES"를 제거하려는 결과 출력은 다음과 같습니다.
답변1
제목 설정을 변경 bibliography
한 후 을 사용하므로 heading=bibnumbered
해당 설정도 변경해야 합니다. 아마도
\defbibheading{bibnumbered}[\refname]{\chapter{#1}}
그런데 empty 를 사용할 필요는 없으며 \markboth{}{}
완전히 생략해도 충분합니다.