
각 장마다 고유한 참조 목록이 있는 다양한 장을 만들고 싶습니다. 나는 이것을 부분적으로 깨달았지만 두 번째 장의 번호 매기기가 정확하지 않습니다. 1장에서 사용한 참고문헌은 2장에서도 같은 번호를 유지합니다. 나는 이 문제를 거의 멍하니 바라보았기 때문에 누군가가 나를 도와줄 수 있기를 정말로 바랍니다.
\documentclass[paper=A4,
twoside=true,
11pt,
headings=normal
]{scrreprt}
\usepackage[
backend= bibtex,
bibencoding=utf8,
style=nature,
sorting=none,
defernumbers=true,
refsegment=chapter,
natbib=true,
backref = false
]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
@misc{D04,
author = {Duthor, C.},
year = {2003},
title = {Delta},
}
@misc{E05,
author = {Euthor, C.},
year = {2003},
title = {Ecko},
}
@misc{F06,
author = {Futhor, C.},
year = {2003},
title = {Foxtrot},
}
\end{filecontents}
\addglobalbib{\jobname.bib}
\begin{document}
\chapter{intro}
test \cite{A01} test \cite{B02} test \cite{C03} test \cite{D04}.
\printbibliography[segment=\therefsegment,resetnumbers=true,heading=subbibliography]
\chapter{chap2}
test \cite{E05} test \cite{B02} test \cite{A01} test \cite{F06}
\printbibliography[segment=\therefsegment,resetnumbers=true,heading=subbibliography]
\end{document}
답변1
각 장에 대해 독립적인 번호를 가지려면 refsection
a 대신 a를 사용해야 합니다 refsegment
(참조.매뉴얼 biblatex
, § 3.6.6):
refsection
a 와 환경 의 차이점refsegment
은 전자는 환경에 국한된 레이블을 생성하는 반면 후자는 레이블에 영향을 주지 않고segment
필터 대상을 제공한다는 것입니다 .\printbibliography
전체 문서에서 고유합니다.
따라서 원하는 출력을 얻으려면 예제에서 refsegment=chapter
으로 변경하십시오.refsection=chapter
BibTeX를 의 백엔드로 사용할 때 이 접근 방식은 개별적으로 처리해야 하는 biblatex
여러 보조 파일(각각 하나씩)을 생성한다는 점에 유의하세요. refsection
따라서 문서가 호출되는 경우 document.tex
대신 , , ... bibtex document
을 실행해야 합니다 (로그 파일에는 실행해야 하는 명령에 대한 힌트가 포함되어 있습니다). 대체 백엔드 사용bibtex document1-blx
bibtex document2-blx
비버, 이것은 필요하지 않습니다.
답변2
당신은 한 번보고 싶을 수도 있습니다챕터비브
\include{}
다른 .tex 파일이 포함된 기본 파일을 만든 다음 포함된 각 파일에 참고문헌을 배치해야 합니다 .
\documentclass[
paper=A4,
twoside=true,
11pt,
headings=normal
]{scrreprt}
\usepackage{chapterbib}
\begin{document}
\include{chapter_one}
\end{document}
그런 다음 Chapter_one.tex에서:
% Content of document
\bibliographystyle{style}
\bibliography{Mybibliography}