Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[11pt]{article}
- usepackage[backend=bibtex,
- style=authoryear, natbib=true,
- ]{biblatex}
- usepackage{hyperref}
- begin{filecontents}{bibfile.bib}
- @book{Veblen2005:1899,
- Author = {Veblen, Thorstein},
- Isbn = {9788187879299},
- Language = {en},
- Month = jan,
- Publisher = {Aakar Books},
- Title = {{The Theory of the Leisure Class; An Economic Study of Institutions}},
- Year = {[1899] 2005}}
- end{filecontents}
- addbibresource{bibfile.bib}
- begin{document}
- noindent
- ldots citep{Veblen2005:1899} stated that ldots\
- printbibliography
- end{document}
- documentclass{article}
- usepackage[backend=biber, style=authoryear, natbib=true]{biblatex}
- usepackage{hyperref}
- usepackage{filecontents}
- begin{filecontents*}{jobname.bib}
- @book{Veblen2005:1899,
- author = {Veblen, Thorstein},
- Isbn = {978-81-87879-29-9},
- publisher = {Aakar Books},
- title = {The Theory of the Leisure Class},
- subtitle = {An Economic Study of Institutions},
- date = {2005-01},
- origyear = {1899}}
- @book{Weber2013,
- Author = {Weber, Max},
- Isbn = {9781135973988},
- Keywords = {Reference / General, Religion / General},
- Language = {en},
- Month = jul,
- Publisher = {Routledge},
- Title = {{The Protestant Ethic and the Spirit of Capitalism}},
- Year = {2013},
- origdate = {1905}}
- end{filecontents*}
- addbibresource{jobname.bib}
- renewbibmacro*{date+extrayear}{%
- iffieldundef{thefield{datelabelsource}year}
- {}
- {printtext[parens]{%
- iffieldundef{origyear}% this is new ...
- {}
- {printtext[brackets]{printorigdate}
- setunit{addspace}}% ... till here
- iffieldsequal{year}{thefield{datelabelsource}year}
- {printdateextralabel}%
- {printfield{labelyear}%
- printfield{extrayear}}}}}%
- renewbibmacro*{date}{}%
- renewbibmacro*{issue+date}{%
- iffieldundef{issue}
- {}
- {printtext[parens]{printfield{issue}}}%
- newunit}
- renewbibmacro*{cite:labelyear+extrayear}{%
- iffieldundef{labelyear}
- {}
- {printtext[bibhyperref]{%moved this
- iffieldundef{origyear}% this is new
- {}
- {printtext[brackets]{printorigdate}
- setunit{addspace}}% everything beyond this point is old
- printfield{labelyear}%
- printfield{extrayear}}}}
- usepackage{hyperref}
- hypersetup{
- pdfborderstyle={/S/U/W 1}, % thanks, https://tex.stackexchange.com/a/26085/22939
- }
- % arara: pdflatex
- % arara: biber
- % arara: pdflatex
- begin{document}
- ldots citep{Veblen2005:1899} stated that ldots\
- However citet{Weber2013} demonstrates that ldots
- printbibliography
- end{document}
- renewbibmacro*{date+extrayear}{%
- iffieldundef{thefield{datelabelsource}year}
- {}
- {printtext[parens]{%
- iffieldundef{origyear}% this is new ...
- {}
- {printtext[brackets]{printorigdate}
- setunit{addspace}}% ... till here
- iffieldsequal{year}{thefield{datelabelsource}year}
- {printdateextralabel}%
- {printfield{labelyear}%
- printfield{extrayear}}}}}%
- renewbibmacro*{date}{}%
- renewbibmacro*{issue+date}{%
- iffieldundef{issue}
- {}
- {printtext[parens]{printfield{issue}}}%
- newunit}
- renewbibmacro*{cite:labelyear+extrayear}{%
- iffieldundef{labelyear}
- {}
- {printtext[bibhyperref]{%moved this
- iffieldundef{origyear}% this is new
- {}
- {printtext[brackets]{printorigdate}
- setunit{addspace}}% everything beyond this point is old
- printfield{labelyear}%
- printfield{extrayear}}}}
- documentclass{article}
- usepackage[backend=biber, style=authoryear, natbib=true]{biblatex}
- usepackage{hyperref}
- usepackage{filecontents}
- begin{filecontents*}{jobname.bib}
- @book{Veblen2005:1899,
- author = {Veblen, Thorstein},
- Isbn = {978-81-87879-29-9},
- publisher = {Aakar Books},
- title = {The Theory of the Leisure Class},
- subtitle = {An Economic Study of Institutions},
- date = {2005-01},
- origyear = {1899},
- }
- end{filecontents*}
- addbibresource{jobname.bib}
- addbibresource{biblatex-examples.bib}
- renewbibmacro*{date+extrayear}{%
- iffieldundef{thefield{datelabelsource}year}
- {}
- {printtext[parens]{%
- iffieldundef{origyear}% this is new ...
- {}
- {printtext[brackets]{printorigdate}
- setunit{addspace}}% ... till here
- iffieldsequal{year}{thefield{datelabelsource}year}
- {printdateextralabel}%
- {printfield{labelyear}%
- printfield{extrayear}}}}}%
- renewbibmacro*{date}{}%
- renewbibmacro*{issue+date}{%
- iffieldundef{issue}
- {}
- {printtext[parens]{printfield{issue}}}%
- newunit}
- renewbibmacro*{cite:labelyear+extrayear}{%
- iffieldundef{labelyear}
- {}
- {printtext[bibhyperref]{%moved this
- iffieldundef{origyear}% this is new
- {}
- {printtext[brackets]{printorigdate}
- setunit{addspace}}% everything beyond this point is old
- printfield{labelyear}%
- printfield{extrayear}}}}
- begin{document}
- ldots citep{Veblen2005:1899,wilde} stated that ldots
- printbibliography
- end{document}
Add Comment
Please, Sign In to add comment