How do I print a field from the bibliography
How do I print any field from a .bib file?
For example how do I print the title from the following entry?
@article{Gerace2019,
Author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
Journal = {Nature Materials},
Number = {3},
Pages = {200--201},
Title = {Quantum nonlinearities at the single-particle level},
Volume = {18},
Year = {2019}
}
I want to do something like:
The title of the paper cite{Gerace2019} is printtitle{Gerace2019}
bibliographies
add a comment |
How do I print any field from a .bib file?
For example how do I print the title from the following entry?
@article{Gerace2019,
Author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
Journal = {Nature Materials},
Number = {3},
Pages = {200--201},
Title = {Quantum nonlinearities at the single-particle level},
Volume = {18},
Year = {2019}
}
I want to do something like:
The title of the paper cite{Gerace2019} is printtitle{Gerace2019}
bibliographies
add a comment |
How do I print any field from a .bib file?
For example how do I print the title from the following entry?
@article{Gerace2019,
Author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
Journal = {Nature Materials},
Number = {3},
Pages = {200--201},
Title = {Quantum nonlinearities at the single-particle level},
Volume = {18},
Year = {2019}
}
I want to do something like:
The title of the paper cite{Gerace2019} is printtitle{Gerace2019}
bibliographies
How do I print any field from a .bib file?
For example how do I print the title from the following entry?
@article{Gerace2019,
Author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
Journal = {Nature Materials},
Number = {3},
Pages = {200--201},
Title = {Quantum nonlinearities at the single-particle level},
Volume = {18},
Year = {2019}
}
I want to do something like:
The title of the paper cite{Gerace2019} is printtitle{Gerace2019}
bibliographies
bibliographies
asked 14 hours ago
TomTom
226125
226125
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you are using biblatex
the command you are looking for is called citetitle
.
For the most common fields biblatex
has dedicated cite...
commands (citeauthor
, citetitle
, citedate
, cityear
, citeurl
) if the field you want to print is not amongst those, then you can use the generic citefield{<key>}{<field>}
. Since biblatex
differentiates between fields, lists and name lists, there are citefield
, citelist
and citename
, see also How to extract BibTeX entries (as DOI, abstract, etc.). It is possible to create your own cite...
command for fields that don't have one yet (see also the previous link).
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=numeric, backend=biber]{biblatex}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
The title of the paper cite{Gerace2019} is citetitle{Gerace2019}
printbibliography
end{document}
If you are using a BibTeX-based solution, you can load the usebib
package and use its usebibentry
command.
Note that usebib
does not parse the field contents like BibTeX or Biber. In particular, name lists and other lists are not split up as usual. That means that it is possible to display name fields like author
with usebib
the output will look exactly as the input in the .bib
file.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage{usebib}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
bibinput{jobname} % give the file name of your .bib file here (without extension)
% just as in bibliography
begin{document}
The title of the paper cite{Gerace2019} is usebibentry{Gerace2019}{title}
bibliographystyle{plain}
bibliography{jobname}
end{document}
Wow that was quick. Thanks!
– Tom
13 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f478749%2fhow-do-i-print-a-field-from-the-bibliography%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you are using biblatex
the command you are looking for is called citetitle
.
For the most common fields biblatex
has dedicated cite...
commands (citeauthor
, citetitle
, citedate
, cityear
, citeurl
) if the field you want to print is not amongst those, then you can use the generic citefield{<key>}{<field>}
. Since biblatex
differentiates between fields, lists and name lists, there are citefield
, citelist
and citename
, see also How to extract BibTeX entries (as DOI, abstract, etc.). It is possible to create your own cite...
command for fields that don't have one yet (see also the previous link).
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=numeric, backend=biber]{biblatex}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
The title of the paper cite{Gerace2019} is citetitle{Gerace2019}
printbibliography
end{document}
If you are using a BibTeX-based solution, you can load the usebib
package and use its usebibentry
command.
Note that usebib
does not parse the field contents like BibTeX or Biber. In particular, name lists and other lists are not split up as usual. That means that it is possible to display name fields like author
with usebib
the output will look exactly as the input in the .bib
file.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage{usebib}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
bibinput{jobname} % give the file name of your .bib file here (without extension)
% just as in bibliography
begin{document}
The title of the paper cite{Gerace2019} is usebibentry{Gerace2019}{title}
bibliographystyle{plain}
bibliography{jobname}
end{document}
Wow that was quick. Thanks!
– Tom
13 hours ago
add a comment |
If you are using biblatex
the command you are looking for is called citetitle
.
For the most common fields biblatex
has dedicated cite...
commands (citeauthor
, citetitle
, citedate
, cityear
, citeurl
) if the field you want to print is not amongst those, then you can use the generic citefield{<key>}{<field>}
. Since biblatex
differentiates between fields, lists and name lists, there are citefield
, citelist
and citename
, see also How to extract BibTeX entries (as DOI, abstract, etc.). It is possible to create your own cite...
command for fields that don't have one yet (see also the previous link).
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=numeric, backend=biber]{biblatex}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
The title of the paper cite{Gerace2019} is citetitle{Gerace2019}
printbibliography
end{document}
If you are using a BibTeX-based solution, you can load the usebib
package and use its usebibentry
command.
Note that usebib
does not parse the field contents like BibTeX or Biber. In particular, name lists and other lists are not split up as usual. That means that it is possible to display name fields like author
with usebib
the output will look exactly as the input in the .bib
file.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage{usebib}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
bibinput{jobname} % give the file name of your .bib file here (without extension)
% just as in bibliography
begin{document}
The title of the paper cite{Gerace2019} is usebibentry{Gerace2019}{title}
bibliographystyle{plain}
bibliography{jobname}
end{document}
Wow that was quick. Thanks!
– Tom
13 hours ago
add a comment |
If you are using biblatex
the command you are looking for is called citetitle
.
For the most common fields biblatex
has dedicated cite...
commands (citeauthor
, citetitle
, citedate
, cityear
, citeurl
) if the field you want to print is not amongst those, then you can use the generic citefield{<key>}{<field>}
. Since biblatex
differentiates between fields, lists and name lists, there are citefield
, citelist
and citename
, see also How to extract BibTeX entries (as DOI, abstract, etc.). It is possible to create your own cite...
command for fields that don't have one yet (see also the previous link).
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=numeric, backend=biber]{biblatex}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
The title of the paper cite{Gerace2019} is citetitle{Gerace2019}
printbibliography
end{document}
If you are using a BibTeX-based solution, you can load the usebib
package and use its usebibentry
command.
Note that usebib
does not parse the field contents like BibTeX or Biber. In particular, name lists and other lists are not split up as usual. That means that it is possible to display name fields like author
with usebib
the output will look exactly as the input in the .bib
file.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage{usebib}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
bibinput{jobname} % give the file name of your .bib file here (without extension)
% just as in bibliography
begin{document}
The title of the paper cite{Gerace2019} is usebibentry{Gerace2019}{title}
bibliographystyle{plain}
bibliography{jobname}
end{document}
If you are using biblatex
the command you are looking for is called citetitle
.
For the most common fields biblatex
has dedicated cite...
commands (citeauthor
, citetitle
, citedate
, cityear
, citeurl
) if the field you want to print is not amongst those, then you can use the generic citefield{<key>}{<field>}
. Since biblatex
differentiates between fields, lists and name lists, there are citefield
, citelist
and citename
, see also How to extract BibTeX entries (as DOI, abstract, etc.). It is possible to create your own cite...
command for fields that don't have one yet (see also the previous link).
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage[style=numeric, backend=biber]{biblatex}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
addbibresource{jobname.bib}
begin{document}
The title of the paper cite{Gerace2019} is citetitle{Gerace2019}
printbibliography
end{document}
If you are using a BibTeX-based solution, you can load the usebib
package and use its usebibentry
command.
Note that usebib
does not parse the field contents like BibTeX or Biber. In particular, name lists and other lists are not split up as usual. That means that it is possible to display name fields like author
with usebib
the output will look exactly as the input in the .bib
file.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{csquotes}
usepackage{usebib}
%usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{Gerace2019,
author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele},
journal = {Nature Materials},
number = {3},
pages = {200--201},
title = {Quantum nonlinearities at the single-particle level},
volume = {18},
year = {2019},
}
end{filecontents}
bibinput{jobname} % give the file name of your .bib file here (without extension)
% just as in bibliography
begin{document}
The title of the paper cite{Gerace2019} is usebibentry{Gerace2019}{title}
bibliographystyle{plain}
bibliography{jobname}
end{document}
edited 14 hours ago
answered 14 hours ago
moewemoewe
93.3k10115352
93.3k10115352
Wow that was quick. Thanks!
– Tom
13 hours ago
add a comment |
Wow that was quick. Thanks!
– Tom
13 hours ago
Wow that was quick. Thanks!
– Tom
13 hours ago
Wow that was quick. Thanks!
– Tom
13 hours ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f478749%2fhow-do-i-print-a-field-from-the-bibliography%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