Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage[notes,isbn=false,backend=biber]{biblatex-chicago}
- usepackage{filecontents}
- begin{filecontents}{jobname.bib}
- @book{A01,
- author = {Author, A.},
- year = {2001},
- nameaddon = {d. 243/857--8},
- title = {Alpha},
- }
- @book{B02,
- author = {Author, A.},
- year = {2002},
- nameaddon = {d. 243/857--8},
- title = {Bravo},
- }
- @misc{C03,
- author = {Cuthor, C.},
- year = {2003},
- title = {Charlie},
- }
- end{filecontents}
- addbibresource{jobname.bib}
- begin{document}
- Some text autocite{A01}.
- Some text autocite{B02}.
- Some text autocite{B02}.
- Some text autocite{C03}.
- printbibliography
- end{document}
- makeatletter
- letbbx@na@lasthashundefined
- newbibmacro*{nameaddon}{%
- iffieldequals{namehash}{bbx@na@lasthash}
- {}
- {printfield{nameaddon}}%
- iffieldundef{nameaddon}
- {}
- {savefield{namehash}{bbx@na@lasthash}}%
- }
- makeatother
- newcommand*patchnameaddon[1]{%
- xpatchbibdriver{#1}
- {printfield{nameaddon}}
- {usebibmacro{nameaddon}}
- {}{typeouut{biblatex warning: failed to patch nameaddon in driver #1}}}
- patchnameaddon{book}
- documentclass{article}
- usepackage[notes,isbn=false,backend=biber]{biblatex-chicago}
- usepackage{filecontents}
- begin{filecontents}{jobname.bib}
- @book{A01,
- author = {Author, A.},
- year = {2001},
- nameaddon = {d. 243/857--8},
- title = {Alpha},
- }
- @book{B02,
- author = {Author, A.},
- year = {2002},
- nameaddon = {d. 243/857--8},
- title = {Bravo},
- }
- @misc{C03,
- author = {Cuthor, C.},
- year = {2003},
- title = {Charlie},
- }
- end{filecontents}
- addbibresource{jobname.bib}
- usepackage{xpatch}
- newcommand*patchnameaddon[1]{%
- xpatchbibdriver{#1}
- {printfield{nameaddon}}
- {usebibmacro{nameaddon}}
- {}{typeouut{biblatex warning: failed to patch nameaddon in driver #1}}}
- makeatletter
- letbbx@na@lasthashundefined
- newbibmacro*{nameaddon}{%
- iffieldequals{namehash}{bbx@na@lasthash}
- {}
- {printfield{nameaddon}}%
- iffieldundef{nameaddon}
- {}
- {savefield{namehash}{bbx@na@lasthash}}%
- }
- makeatother
- patchnameaddon{book}
- begin{document}
- Some text autocite{A01}.
- Some text autocite{B02}.
- Some text autocite{B02}.
- Some text autocite{C03}.
- printbibliography
- end{document}
Add Comment
Please, Sign In to add comment