Custom verbose citations don't look like bibliography
up vote
1
down vote
favorite
I need to modify the custom interview citation style from this post. The bibliography looks like it should. In the citation the authors name is given as "Given Family". However, the citation should look like the bibliography ("Family, Given"). How can I change that?
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
biblatex
New contributor
add a comment |
up vote
1
down vote
favorite
I need to modify the custom interview citation style from this post. The bibliography looks like it should. In the citation the authors name is given as "Given Family". However, the citation should look like the bibliography ("Family, Given"). How can I change that?
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
biblatex
New contributor
Remove the lineDeclareNameAlias{sortname}{default}
.
– moewe
1 hour ago
For first citations I think it would be conceptually nicer to redefinecite:full
instead, see the answer below.
– moewe
1 hour ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I need to modify the custom interview citation style from this post. The bibliography looks like it should. In the citation the authors name is given as "Given Family". However, the citation should look like the bibliography ("Family, Given"). How can I change that?
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
biblatex
New contributor
I need to modify the custom interview citation style from this post. The bibliography looks like it should. In the citation the authors name is given as "Given Family". However, the citation should look like the bibliography ("Family, Given"). How can I change that?
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
biblatex
biblatex
New contributor
New contributor
edited 1 hour ago
moewe
84.9k9108327
84.9k9108327
New contributor
asked 1 hour ago
derd
524
524
New contributor
New contributor
Remove the lineDeclareNameAlias{sortname}{default}
.
– moewe
1 hour ago
For first citations I think it would be conceptually nicer to redefinecite:full
instead, see the answer below.
– moewe
1 hour ago
add a comment |
Remove the lineDeclareNameAlias{sortname}{default}
.
– moewe
1 hour ago
For first citations I think it would be conceptually nicer to redefinecite:full
instead, see the answer below.
– moewe
1 hour ago
Remove the line
DeclareNameAlias{sortname}{default}
.– moewe
1 hour ago
Remove the line
DeclareNameAlias{sortname}{default}
.– moewe
1 hour ago
For first citations I think it would be conceptually nicer to redefine
cite:full
instead, see the answer below.– moewe
1 hour ago
For first citations I think it would be conceptually nicer to redefine
cite:full
instead, see the answer below.– moewe
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
verbose
's cite:full
macros usually call usedriver
as
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}%
which means that they change the format for sortname
(the name format of the 'primary' name associated with an entry, the name before the title, usually author, editor or translator in that order) to default
.
The idea behind that is that default
(which in the end is given-family
) is the 'natural' name order and that family-given/given-family
or family-given
is only used in the bibliography to make it easier to spot the right part of the name for sorting. In the footnotes there is little issue with sorting and so given-family
is used.
The implementation of cite:short:interview
follows that practice to call usedriver
with DeclareNameAlias{sortname}{default}
.
In the following code DeclareNameAlias{sortname}{default}
is removed for cite:short:interview
(for subsequent citations) and also cite:full
(for the first citation)
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
renewbibmacro*{cite:full}{%
usebibmacro{cite:full:citepages}%
printtext[bibhypertarget]{%
usedriver
{}
{thefield{entrytype}}}%
usebibmacro{shorthandintro}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
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',
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
});
}
});
derd 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%2f466060%2fcustom-verbose-citations-dont-look-like-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
up vote
3
down vote
accepted
verbose
's cite:full
macros usually call usedriver
as
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}%
which means that they change the format for sortname
(the name format of the 'primary' name associated with an entry, the name before the title, usually author, editor or translator in that order) to default
.
The idea behind that is that default
(which in the end is given-family
) is the 'natural' name order and that family-given/given-family
or family-given
is only used in the bibliography to make it easier to spot the right part of the name for sorting. In the footnotes there is little issue with sorting and so given-family
is used.
The implementation of cite:short:interview
follows that practice to call usedriver
with DeclareNameAlias{sortname}{default}
.
In the following code DeclareNameAlias{sortname}{default}
is removed for cite:short:interview
(for subsequent citations) and also cite:full
(for the first citation)
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
renewbibmacro*{cite:full}{%
usebibmacro{cite:full:citepages}%
printtext[bibhypertarget]{%
usedriver
{}
{thefield{entrytype}}}%
usebibmacro{shorthandintro}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
add a comment |
up vote
3
down vote
accepted
verbose
's cite:full
macros usually call usedriver
as
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}%
which means that they change the format for sortname
(the name format of the 'primary' name associated with an entry, the name before the title, usually author, editor or translator in that order) to default
.
The idea behind that is that default
(which in the end is given-family
) is the 'natural' name order and that family-given/given-family
or family-given
is only used in the bibliography to make it easier to spot the right part of the name for sorting. In the footnotes there is little issue with sorting and so given-family
is used.
The implementation of cite:short:interview
follows that practice to call usedriver
with DeclareNameAlias{sortname}{default}
.
In the following code DeclareNameAlias{sortname}{default}
is removed for cite:short:interview
(for subsequent citations) and also cite:full
(for the first citation)
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
renewbibmacro*{cite:full}{%
usebibmacro{cite:full:citepages}%
printtext[bibhypertarget]{%
usedriver
{}
{thefield{entrytype}}}%
usebibmacro{shorthandintro}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
verbose
's cite:full
macros usually call usedriver
as
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}%
which means that they change the format for sortname
(the name format of the 'primary' name associated with an entry, the name before the title, usually author, editor or translator in that order) to default
.
The idea behind that is that default
(which in the end is given-family
) is the 'natural' name order and that family-given/given-family
or family-given
is only used in the bibliography to make it easier to spot the right part of the name for sorting. In the footnotes there is little issue with sorting and so given-family
is used.
The implementation of cite:short:interview
follows that practice to call usedriver
with DeclareNameAlias{sortname}{default}
.
In the following code DeclareNameAlias{sortname}{default}
is removed for cite:short:interview
(for subsequent citations) and also cite:full
(for the first citation)
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
renewbibmacro*{cite:full}{%
usebibmacro{cite:full:citepages}%
printtext[bibhypertarget]{%
usedriver
{}
{thefield{entrytype}}}%
usebibmacro{shorthandintro}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
verbose
's cite:full
macros usually call usedriver
as
usedriver
{DeclareNameAlias{sortname}{default}}
{thefield{entrytype}}}%
which means that they change the format for sortname
(the name format of the 'primary' name associated with an entry, the name before the title, usually author, editor or translator in that order) to default
.
The idea behind that is that default
(which in the end is given-family
) is the 'natural' name order and that family-given/given-family
or family-given
is only used in the bibliography to make it easier to spot the right part of the name for sorting. In the footnotes there is little issue with sorting and so given-family
is used.
The implementation of cite:short:interview
follows that practice to call usedriver
with DeclareNameAlias{sortname}{default}
.
In the following code DeclareNameAlias{sortname}{default}
is removed for cite:short:interview
(for subsequent citations) and also cite:full
(for the first citation)
RequirePackage{filecontents}
begin{filecontents*}{jobname.bib}
@interview{homer,
interviewee = {Homer Simpson},
interviewer = {Bart Simpson},
date = {2018-07-25},
address = {Springfield},
}
end{filecontents*}
begin{filecontents}{interview.dbx}
DeclareDatamodelEntrytypes{interview}
DeclareDatamodelFields[type=list,datatype=name]{
interviewer,
interviewee,
}
DeclareDatamodelEntryfields[interview]{
addendum,
doi,
eprint,
eprintclass,
eprinttype,
interviewer,
interviewee,
location,
note,
pubstate,
}
end{filecontents}
documentclass[ngerman]{article}
usepackage{babel}
usepackage{csquotes}
usepackage[datamodel=interview,backend=biber, style=verbose]{biblatex}
usepackage{hyperref}
addbibresource{jobname.bib}
NewBibliographyString{interview}
DefineBibliographyStrings{german}{%
interview = {Interview},
}
DeclareNameAlias{interviewee}{author}
DeclareBibliographyDriver{interview}{%
usebibmacro{bibindex}%
usebibmacro{begentry}%
printnames{interviewee}%
newunitnewblock
bibstring{interview}%
setunit{addspace}%
printnames{interviewer}%
setunit{addcommaspace}%
usebibmacro{date}%
setunit{addcommaspace}%
printlist{location}%
newunitnewblock
printfield{note}%
newunitnewblock
usebibmacro{doi+eprint+url}%
newunitnewblock
usebibmacro{addendum+pubstate}%
setunit{bibpagerefpunct}newblock
usebibmacro{pageref}%
newunitnewblock
iftoggle{bbx:related}
{usebibmacro{related:init}%
usebibmacro{related}}
{}%
usebibmacro{finentry}}
newbibmacro*{cite:short:interview}{%
usebibmacro{cite:full:citepages}%
printtext[bibhyperlink]{%
usedriver
{}
{thefield{entrytype}}}}
renewbibmacro*{cite:short}{%
ifbibmacroundef{cite:short:strfield{entrytype}}
{printnames{labelname}%
setunit*{printdelim{nametitledelim}}%
printtext[bibhyperlink]{%
printfield[citetitle]{labeltitle}}}
{usebibmacro*{cite:short:strfield{entrytype}}}}
renewbibmacro*{cite:full}{%
usebibmacro{cite:full:citepages}%
printtext[bibhypertarget]{%
usedriver
{}
{thefield{entrytype}}}%
usebibmacro{shorthandintro}}
begin{document}
Loremfootcite{homer}
ipsumfootcite{homer}
printbibliography
end{document}
edited 1 hour ago
answered 1 hour ago
moewe
84.9k9108327
84.9k9108327
add a comment |
add a comment |
derd is a new contributor. Be nice, and check out our Code of Conduct.
derd is a new contributor. Be nice, and check out our Code of Conduct.
derd is a new contributor. Be nice, and check out our Code of Conduct.
derd is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f466060%2fcustom-verbose-citations-dont-look-like-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
Remove the line
DeclareNameAlias{sortname}{default}
.– moewe
1 hour ago
For first citations I think it would be conceptually nicer to redefine
cite:full
instead, see the answer below.– moewe
1 hour ago