Separate bibliographies at the end of the document
up vote
1
down vote
favorite
I have a document where each chapter acts as a refsection and resets the references counter. I know I can print the individual bibliographies at the end of each chapter, but I'd like to have them all at the end of the document instead. For example if I have three chapters A,B,C, I'd like the document to look like:
Chapter A
...
Chapter B
...
Chapter C
...
Bibliography
Chapter A
[1]
[2]
...
Chapter B
[1]
[2]
...
Chapter C
[1]
[2]
...
My LaTeX document looks something like this
usepackage[style=numeric,backend=biber,refsection=chapter]{biblatex}
addbibresource{mydocument.bib}
begin{document}
chapter{A}
... some text here and some cite{} commands...
chapter{B}
... some text here and some cite{} commands...
chapter{C}
... some text here and some cite{} commands...
% This will only produce the bibliography for chapter C
% What I'd like to have here is something that will produce
% Bibliography
% Chapter A
% ...
% Chapter B
% ...
% Chapter B
% ...
printbibliography
end{document}
Any ideas?
biblatex bibliographies
New contributor
add a comment |
up vote
1
down vote
favorite
I have a document where each chapter acts as a refsection and resets the references counter. I know I can print the individual bibliographies at the end of each chapter, but I'd like to have them all at the end of the document instead. For example if I have three chapters A,B,C, I'd like the document to look like:
Chapter A
...
Chapter B
...
Chapter C
...
Bibliography
Chapter A
[1]
[2]
...
Chapter B
[1]
[2]
...
Chapter C
[1]
[2]
...
My LaTeX document looks something like this
usepackage[style=numeric,backend=biber,refsection=chapter]{biblatex}
addbibresource{mydocument.bib}
begin{document}
chapter{A}
... some text here and some cite{} commands...
chapter{B}
... some text here and some cite{} commands...
chapter{C}
... some text here and some cite{} commands...
% This will only produce the bibliography for chapter C
% What I'd like to have here is something that will produce
% Bibliography
% Chapter A
% ...
% Chapter B
% ...
% Chapter B
% ...
printbibliography
end{document}
Any ideas?
biblatex bibliographies
New contributor
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a document where each chapter acts as a refsection and resets the references counter. I know I can print the individual bibliographies at the end of each chapter, but I'd like to have them all at the end of the document instead. For example if I have three chapters A,B,C, I'd like the document to look like:
Chapter A
...
Chapter B
...
Chapter C
...
Bibliography
Chapter A
[1]
[2]
...
Chapter B
[1]
[2]
...
Chapter C
[1]
[2]
...
My LaTeX document looks something like this
usepackage[style=numeric,backend=biber,refsection=chapter]{biblatex}
addbibresource{mydocument.bib}
begin{document}
chapter{A}
... some text here and some cite{} commands...
chapter{B}
... some text here and some cite{} commands...
chapter{C}
... some text here and some cite{} commands...
% This will only produce the bibliography for chapter C
% What I'd like to have here is something that will produce
% Bibliography
% Chapter A
% ...
% Chapter B
% ...
% Chapter B
% ...
printbibliography
end{document}
Any ideas?
biblatex bibliographies
New contributor
I have a document where each chapter acts as a refsection and resets the references counter. I know I can print the individual bibliographies at the end of each chapter, but I'd like to have them all at the end of the document instead. For example if I have three chapters A,B,C, I'd like the document to look like:
Chapter A
...
Chapter B
...
Chapter C
...
Bibliography
Chapter A
[1]
[2]
...
Chapter B
[1]
[2]
...
Chapter C
[1]
[2]
...
My LaTeX document looks something like this
usepackage[style=numeric,backend=biber,refsection=chapter]{biblatex}
addbibresource{mydocument.bib}
begin{document}
chapter{A}
... some text here and some cite{} commands...
chapter{B}
... some text here and some cite{} commands...
chapter{C}
... some text here and some cite{} commands...
% This will only produce the bibliography for chapter C
% What I'd like to have here is something that will produce
% Bibliography
% Chapter A
% ...
% Chapter B
% ...
% Chapter B
% ...
printbibliography
end{document}
Any ideas?
biblatex bibliographies
biblatex bibliographies
New contributor
New contributor
New contributor
asked yesterday
Jenny
82
82
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
biblatex
has you covered. You can use:
bibbysection
The documentation describes it as:
This command automatically loops over all reference sections. This is
equivalent to giving oneprintbibliography
command for every section
but has the additional benefit of automatically skipping sections
without references.
By what you described, it is probable that you also want option defernumbers=true
, but it is hard to say more in the absence of compilable code.
To get specific titles per bibliography's chapter, as requested in the comments, you'll have to be verbose:
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
begin{document}
chapter{A}
cite{herrmann}
cite{kastenholz}
chapter{B}
cite{sigfridsson}
chapter{C}
cite{massa}
printbibheading
printbibliography[section=1,heading=subbibliography,title={References for chapter A}]
printbibliography[section=2,heading=subbibliography,title={References for chapter B}]
printbibliography[section=3,heading=subbibliography,title={References for chapter C}]
end{document}
A more automated and shorter alternative to the same purpose would be (courtesy of @moewe):
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
begin{document}
chapter{A}
label{blx:refsectiontherefsection}
cite{herrmann}
cite{kastenholz}
chapter{B}
label{blx:refsectiontherefsection}
cite{sigfridsson}
chapter{C}
label{blx:refsectiontherefsection}
cite{massa}
printbibheading
bibbysection[heading=bibbysubsect]
end{document}
Hey, thank you for this. I feel that I am really close. The final thing is thatbibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried theheading
option but no luck.
– Jenny
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
1
You could try something likedefbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
withbibbysection[heading=bibbysubsect]
where you would have to manually addlabel{blx:refsectiontherefsection}
after eachchapter
.
– moewe
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
|
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
biblatex
has you covered. You can use:
bibbysection
The documentation describes it as:
This command automatically loops over all reference sections. This is
equivalent to giving oneprintbibliography
command for every section
but has the additional benefit of automatically skipping sections
without references.
By what you described, it is probable that you also want option defernumbers=true
, but it is hard to say more in the absence of compilable code.
To get specific titles per bibliography's chapter, as requested in the comments, you'll have to be verbose:
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
begin{document}
chapter{A}
cite{herrmann}
cite{kastenholz}
chapter{B}
cite{sigfridsson}
chapter{C}
cite{massa}
printbibheading
printbibliography[section=1,heading=subbibliography,title={References for chapter A}]
printbibliography[section=2,heading=subbibliography,title={References for chapter B}]
printbibliography[section=3,heading=subbibliography,title={References for chapter C}]
end{document}
A more automated and shorter alternative to the same purpose would be (courtesy of @moewe):
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
begin{document}
chapter{A}
label{blx:refsectiontherefsection}
cite{herrmann}
cite{kastenholz}
chapter{B}
label{blx:refsectiontherefsection}
cite{sigfridsson}
chapter{C}
label{blx:refsectiontherefsection}
cite{massa}
printbibheading
bibbysection[heading=bibbysubsect]
end{document}
Hey, thank you for this. I feel that I am really close. The final thing is thatbibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried theheading
option but no luck.
– Jenny
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
1
You could try something likedefbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
withbibbysection[heading=bibbysubsect]
where you would have to manually addlabel{blx:refsectiontherefsection}
after eachchapter
.
– moewe
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
|
show 1 more comment
up vote
2
down vote
accepted
biblatex
has you covered. You can use:
bibbysection
The documentation describes it as:
This command automatically loops over all reference sections. This is
equivalent to giving oneprintbibliography
command for every section
but has the additional benefit of automatically skipping sections
without references.
By what you described, it is probable that you also want option defernumbers=true
, but it is hard to say more in the absence of compilable code.
To get specific titles per bibliography's chapter, as requested in the comments, you'll have to be verbose:
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
begin{document}
chapter{A}
cite{herrmann}
cite{kastenholz}
chapter{B}
cite{sigfridsson}
chapter{C}
cite{massa}
printbibheading
printbibliography[section=1,heading=subbibliography,title={References for chapter A}]
printbibliography[section=2,heading=subbibliography,title={References for chapter B}]
printbibliography[section=3,heading=subbibliography,title={References for chapter C}]
end{document}
A more automated and shorter alternative to the same purpose would be (courtesy of @moewe):
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
begin{document}
chapter{A}
label{blx:refsectiontherefsection}
cite{herrmann}
cite{kastenholz}
chapter{B}
label{blx:refsectiontherefsection}
cite{sigfridsson}
chapter{C}
label{blx:refsectiontherefsection}
cite{massa}
printbibheading
bibbysection[heading=bibbysubsect]
end{document}
Hey, thank you for this. I feel that I am really close. The final thing is thatbibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried theheading
option but no luck.
– Jenny
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
1
You could try something likedefbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
withbibbysection[heading=bibbysubsect]
where you would have to manually addlabel{blx:refsectiontherefsection}
after eachchapter
.
– moewe
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
|
show 1 more comment
up vote
2
down vote
accepted
up vote
2
down vote
accepted
biblatex
has you covered. You can use:
bibbysection
The documentation describes it as:
This command automatically loops over all reference sections. This is
equivalent to giving oneprintbibliography
command for every section
but has the additional benefit of automatically skipping sections
without references.
By what you described, it is probable that you also want option defernumbers=true
, but it is hard to say more in the absence of compilable code.
To get specific titles per bibliography's chapter, as requested in the comments, you'll have to be verbose:
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
begin{document}
chapter{A}
cite{herrmann}
cite{kastenholz}
chapter{B}
cite{sigfridsson}
chapter{C}
cite{massa}
printbibheading
printbibliography[section=1,heading=subbibliography,title={References for chapter A}]
printbibliography[section=2,heading=subbibliography,title={References for chapter B}]
printbibliography[section=3,heading=subbibliography,title={References for chapter C}]
end{document}
A more automated and shorter alternative to the same purpose would be (courtesy of @moewe):
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
begin{document}
chapter{A}
label{blx:refsectiontherefsection}
cite{herrmann}
cite{kastenholz}
chapter{B}
label{blx:refsectiontherefsection}
cite{sigfridsson}
chapter{C}
label{blx:refsectiontherefsection}
cite{massa}
printbibheading
bibbysection[heading=bibbysubsect]
end{document}
biblatex
has you covered. You can use:
bibbysection
The documentation describes it as:
This command automatically loops over all reference sections. This is
equivalent to giving oneprintbibliography
command for every section
but has the additional benefit of automatically skipping sections
without references.
By what you described, it is probable that you also want option defernumbers=true
, but it is hard to say more in the absence of compilable code.
To get specific titles per bibliography's chapter, as requested in the comments, you'll have to be verbose:
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
begin{document}
chapter{A}
cite{herrmann}
cite{kastenholz}
chapter{B}
cite{sigfridsson}
chapter{C}
cite{massa}
printbibheading
printbibliography[section=1,heading=subbibliography,title={References for chapter A}]
printbibliography[section=2,heading=subbibliography,title={References for chapter B}]
printbibliography[section=3,heading=subbibliography,title={References for chapter C}]
end{document}
A more automated and shorter alternative to the same purpose would be (courtesy of @moewe):
documentclass{book}
usepackage[style=numeric,backend=biber,refsection=chapter,defernumbers=true]{biblatex}
addbibresource{biblatex-examples.bib}
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
begin{document}
chapter{A}
label{blx:refsectiontherefsection}
cite{herrmann}
cite{kastenholz}
chapter{B}
label{blx:refsectiontherefsection}
cite{sigfridsson}
chapter{C}
label{blx:refsectiontherefsection}
cite{massa}
printbibheading
bibbysection[heading=bibbysubsect]
end{document}
edited yesterday
answered yesterday
gusbrs
6,1692838
6,1692838
Hey, thank you for this. I feel that I am really close. The final thing is thatbibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried theheading
option but no luck.
– Jenny
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
1
You could try something likedefbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
withbibbysection[heading=bibbysubsect]
where you would have to manually addlabel{blx:refsectiontherefsection}
after eachchapter
.
– moewe
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
|
show 1 more comment
Hey, thank you for this. I feel that I am really close. The final thing is thatbibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried theheading
option but no luck.
– Jenny
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
1
You could try something likedefbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
withbibbysection[heading=bibbysubsect]
where you would have to manually addlabel{blx:refsectiontherefsection}
after eachchapter
.
– moewe
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
Hey, thank you for this. I feel that I am really close. The final thing is that
bibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried the heading
option but no luck.– Jenny
yesterday
Hey, thank you for this. I feel that I am really close. The final thing is that
bibbysection
labels all section as "References", so I get a string of References instead of Chapter 1, Chapter 2, Chapter 3. Is there an option to tell it to use the chapter names or numbers instead? I tried the heading
option but no luck.– Jenny
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
@Jenny Take a look a the edit. I think that's what you are looking for.
– gusbrs
yesterday
1
1
You could try something like
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
with bibbysection[heading=bibbysubsect]
where you would have to manually add label{blx:refsectiontherefsection}
after each chapter
.– moewe
yesterday
You could try something like
defbibheading{bibbysubsect}{section*{References for Chapter ref{blx:refsectiontherefsection}}}
with bibbysection[heading=bibbysubsect]
where you would have to manually add label{blx:refsectiontherefsection}
after each chapter
.– moewe
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
@moewe Thanks! Included.
– gusbrs
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
Works like a charm! Thank you both!
– Jenny
yesterday
|
show 1 more comment
Jenny is a new contributor. Be nice, and check out our Code of Conduct.
Jenny is a new contributor. Be nice, and check out our Code of Conduct.
Jenny is a new contributor. Be nice, and check out our Code of Conduct.
Jenny is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461313%2fseparate-bibliographies-at-the-end-of-the-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown