章内の参照番号に関する問題

章内の参照番号に関する問題

別々の章に分け、それぞれに独自の参考文献リストを用意したいと思います。部分的には実現できましたが、第 2 章の番号付けが正しくありません。第 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の代わりにを使用する必要がありますrefsegment(cf.マニュアルbiblatex、§ 3.6.6):

refsectionと環境の違いはrefsegment、前者は環境にローカルなラベルを作成するのに対し、後者はラベルに影響を与えずにsegmentのフィルターのターゲットを提供することです。それらはドキュメント全体で一意になります。\printbibliography

したがって、目的の出力を得るには、例refsegment=chapterを に変更するだけです。refsection=chapter

BibTeX を のバックエンドとして使用する場合biblatex、この方法では ごとに 1 つずつrefsection、別々に処理する必要がある複数の補助ファイルが作成されます。したがって、ドキュメントが と呼ばれる場合document.tex、 の代わりに 、、 ...bibtex documentを実行する必要があります(ログ ファイルには、実行する必要があるコマンドのヒントが含まれています)。代替のバックエンドbibtex document1-blxbibtex document2-blxビーバーこれは必要ありません。

サンプル文書の1ページ目

サンプル文書の2ページ目

答え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}

関連情報