How to cite title and reference and page numbers with biblatex?
up vote
3
down vote
favorite
I want to be able to cite a specific page from a reference using biblatex.
I have noticed that from textcite[109]{Klein:400738} would print the author's name with the brackets containing the page number and reference's label as so: "from Klein [1, p.109]". Though, I would prefer the title to be printed instead of the author's name: "from « Basic concept I » [1, p.109]".
I kinda made a "homemade" fix to it by simply calling both citetitle{Klein:400738}cite[109]{Klein:400738} but I was wondering if there was not any default or cleaner way of doing so.
MWE if needed.
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{filecontents}
usepackage{hyperref}
usepackage[
hyperref=true,
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = {apr},
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}\
Textcite printing the author: textcite[109]{Klein:400738}\
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}\
Improved one: ?
printbibliography[title={Bibliographie}]
end{document}
Thank you so much.
biblatex
add a comment |
up vote
3
down vote
favorite
I want to be able to cite a specific page from a reference using biblatex.
I have noticed that from textcite[109]{Klein:400738} would print the author's name with the brackets containing the page number and reference's label as so: "from Klein [1, p.109]". Though, I would prefer the title to be printed instead of the author's name: "from « Basic concept I » [1, p.109]".
I kinda made a "homemade" fix to it by simply calling both citetitle{Klein:400738}cite[109]{Klein:400738} but I was wondering if there was not any default or cleaner way of doing so.
MWE if needed.
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{filecontents}
usepackage{hyperref}
usepackage[
hyperref=true,
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = {apr},
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}\
Textcite printing the author: textcite[109]{Klein:400738}\
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}\
Improved one: ?
printbibliography[title={Bibliographie}]
end{document}
Thank you so much.
biblatex
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I want to be able to cite a specific page from a reference using biblatex.
I have noticed that from textcite[109]{Klein:400738} would print the author's name with the brackets containing the page number and reference's label as so: "from Klein [1, p.109]". Though, I would prefer the title to be printed instead of the author's name: "from « Basic concept I » [1, p.109]".
I kinda made a "homemade" fix to it by simply calling both citetitle{Klein:400738}cite[109]{Klein:400738} but I was wondering if there was not any default or cleaner way of doing so.
MWE if needed.
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{filecontents}
usepackage{hyperref}
usepackage[
hyperref=true,
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = {apr},
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}\
Textcite printing the author: textcite[109]{Klein:400738}\
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}\
Improved one: ?
printbibliography[title={Bibliographie}]
end{document}
Thank you so much.
biblatex
I want to be able to cite a specific page from a reference using biblatex.
I have noticed that from textcite[109]{Klein:400738} would print the author's name with the brackets containing the page number and reference's label as so: "from Klein [1, p.109]". Though, I would prefer the title to be printed instead of the author's name: "from « Basic concept I » [1, p.109]".
I kinda made a "homemade" fix to it by simply calling both citetitle{Klein:400738}cite[109]{Klein:400738} but I was wondering if there was not any default or cleaner way of doing so.
MWE if needed.
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{filecontents}
usepackage{hyperref}
usepackage[
hyperref=true,
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = {apr},
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}\
Textcite printing the author: textcite[109]{Klein:400738}\
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}\
Improved one: ?
printbibliography[title={Bibliographie}]
end{document}
Thank you so much.
biblatex
biblatex
asked Nov 14 at 16:38
Odyseus_v4
545
545
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
If you want to use this construction more often, it is a very good idea to define a dedicated citation command with titletextcite.
We can steal some of the code for textcite and simplify it a bit to end up with
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
usepackage{hyperref}
makeatletter
newbibmacro*{titletextcite}{%
printfield[citetitle]{labeltitle}%
setunit*{addnbspace}%
printtext{bibopenbracket}globalbooltrue{cbx:parens}%
usebibmacro{cite}%
setunit{%
ifbool{cbx:parens}
{bibclosebracketglobalboolfalse{cbx:parens}}
{}%
multicitedelim}}
DeclareCiteCommand{titletextcite}
{usebibmacro{prenote}}
{usebibmacro{citeindex}%
usebibmacro{titletextcite}}
{}
{usebibmacro{textcite:postnote}}
makeatother
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = apr,
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}
Textcite printing the author: textcite[109]{Klein:400738}
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}
Improved one: titletextcite[109]{Klein:400738}
printbibliography[title={Bibliographie}]
end{document}
![Improved one: “Basic concepts I” [1, p. 109]](https://i.stack.imgur.com/LIOt9.png)
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
If you want to use this construction more often, it is a very good idea to define a dedicated citation command with titletextcite.
We can steal some of the code for textcite and simplify it a bit to end up with
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
usepackage{hyperref}
makeatletter
newbibmacro*{titletextcite}{%
printfield[citetitle]{labeltitle}%
setunit*{addnbspace}%
printtext{bibopenbracket}globalbooltrue{cbx:parens}%
usebibmacro{cite}%
setunit{%
ifbool{cbx:parens}
{bibclosebracketglobalboolfalse{cbx:parens}}
{}%
multicitedelim}}
DeclareCiteCommand{titletextcite}
{usebibmacro{prenote}}
{usebibmacro{citeindex}%
usebibmacro{titletextcite}}
{}
{usebibmacro{textcite:postnote}}
makeatother
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = apr,
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}
Textcite printing the author: textcite[109]{Klein:400738}
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}
Improved one: titletextcite[109]{Klein:400738}
printbibliography[title={Bibliographie}]
end{document}
![Improved one: “Basic concepts I” [1, p. 109]](https://i.stack.imgur.com/LIOt9.png)
add a comment |
up vote
1
down vote
accepted
If you want to use this construction more often, it is a very good idea to define a dedicated citation command with titletextcite.
We can steal some of the code for textcite and simplify it a bit to end up with
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
usepackage{hyperref}
makeatletter
newbibmacro*{titletextcite}{%
printfield[citetitle]{labeltitle}%
setunit*{addnbspace}%
printtext{bibopenbracket}globalbooltrue{cbx:parens}%
usebibmacro{cite}%
setunit{%
ifbool{cbx:parens}
{bibclosebracketglobalboolfalse{cbx:parens}}
{}%
multicitedelim}}
DeclareCiteCommand{titletextcite}
{usebibmacro{prenote}}
{usebibmacro{citeindex}%
usebibmacro{titletextcite}}
{}
{usebibmacro{textcite:postnote}}
makeatother
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = apr,
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}
Textcite printing the author: textcite[109]{Klein:400738}
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}
Improved one: titletextcite[109]{Klein:400738}
printbibliography[title={Bibliographie}]
end{document}
![Improved one: “Basic concepts I” [1, p. 109]](https://i.stack.imgur.com/LIOt9.png)
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
If you want to use this construction more often, it is a very good idea to define a dedicated citation command with titletextcite.
We can steal some of the code for textcite and simplify it a bit to end up with
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
usepackage{hyperref}
makeatletter
newbibmacro*{titletextcite}{%
printfield[citetitle]{labeltitle}%
setunit*{addnbspace}%
printtext{bibopenbracket}globalbooltrue{cbx:parens}%
usebibmacro{cite}%
setunit{%
ifbool{cbx:parens}
{bibclosebracketglobalboolfalse{cbx:parens}}
{}%
multicitedelim}}
DeclareCiteCommand{titletextcite}
{usebibmacro{prenote}}
{usebibmacro{citeindex}%
usebibmacro{titletextcite}}
{}
{usebibmacro{textcite:postnote}}
makeatother
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = apr,
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}
Textcite printing the author: textcite[109]{Klein:400738}
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}
Improved one: titletextcite[109]{Klein:400738}
printbibliography[title={Bibliographie}]
end{document}
![Improved one: “Basic concepts I” [1, p. 109]](https://i.stack.imgur.com/LIOt9.png)
If you want to use this construction more often, it is a very good idea to define a dedicated citation command with titletextcite.
We can steal some of the code for textcite and simplify it a bit to end up with
documentclass[french, 11pt, a4paper, titlepage]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[
backend=biber,
style=numeric,
sorting=ynt
]{biblatex}
usepackage{hyperref}
makeatletter
newbibmacro*{titletextcite}{%
printfield[citetitle]{labeltitle}%
setunit*{addnbspace}%
printtext{bibopenbracket}globalbooltrue{cbx:parens}%
usebibmacro{cite}%
setunit{%
ifbool{cbx:parens}
{bibclosebracketglobalboolfalse{cbx:parens}}
{}%
multicitedelim}}
DeclareCiteCommand{titletextcite}
{usebibmacro{prenote}}
{usebibmacro{citeindex}%
usebibmacro{titletextcite}}
{}
{usebibmacro{textcite:postnote}}
makeatother
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Klein:400738,
author = {Klein, H.},
title = {Basic concepts I},
journal = {{CAS - CERN Accelerator School: RF Engineering for Particle Accelerators}},
month = apr,
year = {1991},
doi = {10.5170/CERN-1992-003.97},
pages = {97-124}
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
Default citation with page number: cite[109]{Klein:400738}
Textcite printing the author: textcite[109]{Klein:400738}
My solution: citetitle{Klein:400738}~cite[109]{Klein:400738}
Improved one: titletextcite[109]{Klein:400738}
printbibliography[title={Bibliographie}]
end{document}
![Improved one: “Basic concepts I” [1, p. 109]](https://i.stack.imgur.com/LIOt9.png)
answered Nov 14 at 16:47
moewe
82.7k8106317
82.7k8106317
add a comment |
add a comment |
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%2f459975%2fhow-to-cite-title-and-reference-and-page-numbers-with-biblatex%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