Last active
February 15, 2017 07:35
-
-
Save JohnLukeBentley/3ba5f3d9d0d12edf5d1ccb6b878cd183 to your computer and use it in GitHub Desktop.
Biblatex-Bug-Mergedate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@article{alberici_2016_why, | |
author = {Alberici, Emma}, | |
date = {2016-11-20T21:02:28+11:00}, | |
title = {Why Did 61 Million {{Americans}} Vote for {{Trump}}?}, | |
urldate = {2016-11-24}, | |
journaltitle = {ABC News}, | |
langid = {australian}, | |
timestamp = {2016-11-24T10:04:39Z}, | |
url = {http://www.abc.net.au/news/2016-11-20/us-election-why-did-61-million-americans-vote-for-trump/8040648}, | |
rights = {http://www.abc.net.au/conditions.htm\#UseOfContent}, | |
entrysubtype = {newspaper} | |
} | |
@book{aquinas_1273_compendium, | |
author = {Aquinas, Thomas}, | |
date = {1273?~}, | |
title = {Compendium of Theology}, | |
timestamp = {2016-10-29T09:37:00Z} | |
} | |
@article{barker_2016_swiss, | |
author = {Barker, Anne}, | |
title = {Swiss voters say no to guaranteed free money}, | |
date = {2016-06-06T18:20:00+10:00}, | |
urldate = {2016-07-22}, | |
journaltitle = {ABC News}, | |
langid = {australian}, | |
timestamp = {2016-10-24T10:27:38Z}, | |
abstract = {Voters in Switzerland overwhelmingly reject a proposal to introduce a guaranteed monthly income for all citizens.}, | |
url = {http://www.abc.net.au/news/2016-06-06/swiss-voters-reject-basic-income-proposal/7481672}, | |
rights = {http://www.abc.net.au/conditions.htm\#UseOfContent}, | |
entrysubtype = {newspaper} | |
} | |
@article{barker_2016_turkey, | |
author = {Barker, Anne}, | |
date = {2016-07-18T20:26:06+10:00}, | |
title = {Turkey Divided between Secular and {{Islamist}} Rule}, | |
urldate = {2016-07-24}, | |
journaltitle = {ABC News}, | |
langid = {australian}, | |
timestamp = {2016-10-26T16:24:51Z}, | |
abstract = {Religious fundamentalism is a powerful force in Turkey where the military has a long history of intervening in politics to ensure the nation remains secular.}, | |
url = {http://www.abc.net.au/news/2016-07-18/turkey-coup-attempt-shows-division-over-wish-for-islamist-rule/7639292}, | |
rights = {http://www.abc.net.au/conditions.htm\#UseOfContent}, | |
entrysubtype = {newspaper} | |
} | |
@book{da_vinci_1487_codex, | |
author = {da Vinci, Leonardo}, | |
date = {1487/1490}, | |
title = {Codex Trivulzianus}, | |
options = {useprefix=true}, | |
timestamp = {2016-10-29T09:01:20Z} | |
} | |
@article{greenwald_2016_three, | |
author = {Greenwald, Glenn}, | |
date = {2016-11-05T01:19:00}, | |
title = {Three New Scandals Show How Pervasive and Dangerous Mass Surveillance Is in the West, Vindicating Snowden}, | |
urldate = {2016-11-25}, | |
journaltitle = {The Intercept}, | |
timestamp = {2016-11-25T05:29:50Z}, | |
url = {https://theintercept.com/2016/11/04/three-new-scandals-show-how-pervasive-and-dangerous-mass-surveillance-is-in-the-west-vindicating-snowden/}, | |
entrysubtype = {newspaper} | |
} | |
@article{kennett_2008_true, | |
author = {Kennett, Jeanette}, | |
date = {2008-01}, | |
title = {True and Proper Selves: Velleman on Love}, | |
pages = {213--227}, | |
urldate = {2016-08-02}, | |
shortjournal = {Ethics}, | |
journaltitle = {Ethics}, | |
number = {2}, | |
timestamp = {2016-10-28T02:30:31Z}, | |
shorttitle = {True and {{Proper Selves}}}, | |
doi = {10.1086/523747}, | |
url = {http://www.journals.uchicago.edu/doi/abs/10.1086/523747}, | |
issn = {0014-1704}, | |
volume = {118} | |
} | |
@article{mendelsohn_2010_enough, | |
author = {Mendelsohn, Daniel}, | |
date = {2010-01-25}, | |
title = {But Enough about Me}, | |
urldate = {2016-08-03}, | |
journaltitle = {The New Yorker}, | |
timestamp = {2016-10-28T02:30:36Z}, | |
abstract = {What does the popularity of memoirs tell us about ourselves?}, | |
url = {http://www.newyorker.com/magazine/2010/01/25/but-enough-about-me-2}, | |
entrysubtype = {newspaper} | |
} | |
@book{plato_2004_republic, | |
author = {{Plato}}, | |
date = {-0379~}, | |
title = {Republic}, | |
translator = {Reeve, C. D. C.}, | |
publisher = {{Hackett Publishing Company, Inc.}}, | |
timestamp = {2016-10-17T04:34:52Z}, | |
pagetotal = {392}, | |
isbn = {0-87220-737-4}, | |
edition = {3rd edition}, | |
location = {{Indianapolis}} | |
} | |
@article{russell_1914_nature, | |
author = {Russell, Bertrand}, | |
date = {1914}, | |
title = {On the Nature of Acquaintance}, | |
pages = {1--16,161,435--453}, | |
journaltitle = {Monist}, | |
timestamp = {2016-10-28T02:30:44Z}, | |
volume = {24} | |
} | |
@book{singer_1993_how, | |
author = {Singer, Peter}, | |
date = {1993}, | |
title = {How Are We to Live?: Ethics in an Age of Self-Interest}, | |
addendum = {This Mandarin Edition reprinted by Random House Australia, 1997}, | |
publisher = {{Text publishing company}}, | |
langid = {english}, | |
timestamp = {2016-11-28T00:47:51Z}, | |
pagetotal = {262}, | |
shorttitle = {How {{Are We}} to {{Live}}?}, | |
isbn = {1-86330-431-2}, | |
location = {{Melbourne, Australia}} | |
} | |
@book{simpson_cool_book_0078, | |
author = {Simpson, Lisa}, | |
date = {2016-07-18T10:26:06Z}, | |
title = {Cool Book 0078}, | |
timestamp = {2016-10-29T14:14:06Z} | |
} | |
@book{sep_2016_stanford, | |
author = {{SEP}}, | |
date = {2016-23}, | |
title = {The Stanford Encyclopedia of Philosophy}, | |
urldate = {2016-06-20}, | |
editor = {Zalta, Edward N.}, | |
timestamp = {2016-11-02T19:02:26Z}, | |
url = {http://plato.stanford.edu/archives/fall2016/} | |
} | |
@article{willacy_2016_fukushima, | |
author = {Willacy, Mark}, | |
date = {2016-11-22T13:56:36+11:00}, | |
title = {Fukushima Nuclear Plant Remains a Gap in {{Japan}}'s Disaster Defences}, | |
urldate = {2016-11-24}, | |
journaltitle = {ABC News}, | |
langid = {australian}, | |
timestamp = {2016-11-24T09:50:50Z}, | |
url = {http://www.abc.net.au/news/2016-11-22/fukushima-nuclear-plant-gap-in-japan's-wall-of-disaster-defences/8045894}, | |
rights = {http://www.abc.net.au/conditions.htm\#UseOfContent}, | |
entrysubtype = {newspaper} | |
} | |
@book{oed_online_2016_oed, | |
author = {{OED Online}}, | |
date = {2016-12}, | |
title = {{{OED}} Online}, | |
urldate = {2016-11-01}, | |
publisher = {{Oxford University Press}}, | |
langid = {british}, | |
timestamp = {2016-12-31T08:40:29Z}, | |
url = {http://www.oed.com.rp.nla.gov.au/view/Entry/18890}, | |
location = {{Oxford}} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{a4wide} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Demo | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\usepackage[% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Dates and Datetimes | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
alldates=ymd, %long, ymd, edtf, year | |
labeldate=year, | |
mergedate=basic, %false, minimum, basic, compact or true (default), maximum. Pref = basic. | |
alldatesusetime=true, % print time components in non-compact date ranges | |
labeldateusetime=false, | |
alltimes=24h,% prints 24 hour format times (default); 12h; 24hcomp | |
seconds=true,% print seconds | |
timezones=true,% print timezones | |
datezeros=true,% | |
dateera=secular,% prints BCE/CE controlled by dateerauto, datezeros | |
dateeraauto=501,% Sets the max year ceiling for automatic printing of era | |
abbreviate=true, % prints full localisation strings | |
dateabbrev=false, % prints full date localisation strings | |
dateuncertain=true,% prints date uncertain string '?' | |
datecirca=true, % prints date approximate/circa string 'ca.' | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Style | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
style=authoryear, | |
sorting=none, | |
dashed=false, | |
url=false, | |
%refsection=section, | |
]{biblatex} | |
\addbibresource{Biblatex-Bug-Mergedate.bib} | |
% Seperation between time and timezone. | |
\DefineBibliographyExtras{english}{ | |
\renewcommand*{\bibtimezonesep}{\space} | |
} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Support | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% | |
\DeclareSourcemap{ | |
\maps[datatype=bibtex]{ | |
\map[overwrite]{ | |
% Set verba to date so | |
% the raw input date can be accessed with \citefield{} | |
\step[fieldsource=date] | |
\step[fieldset=verba, origfieldval] | |
} | |
} | |
} | |
% Seperation between bibliographic entries | |
\setlength{\bibitemsep}{0.5em} | |
% Table cells top and bottom padding | |
\renewcommand{\arraystretch}{1.5} | |
% Tilde output | |
\newcommand{\mytilde}{\raise.17ex\hbox{$\scriptstyle\mathtt{\sim}$}} | |
\begin{document} | |
\section{Precision finer than a year} | |
\begin{tabular}{|p{5cm}|l|p{5cm}|} | |
\hline | |
\textbf{Description} & \textbf{Input date} & \textbf{Output citation} \\ | |
\hline | |
\noalign{\bigskip} | |
\hline | |
\multicolumn{3}{|l|}{\textbf{Year level (precision not finer than a year)}}\\ | |
\hline | |
Year precision. Journal article. & \citefield{russell_1914_nature}{verba} & \autocite{russell_1914_nature} \\ | |
\hline | |
\noalign{\bigskip} | |
\hline | |
\multicolumn{3}{|l|}{\textbf{Time level}}\\ | |
\hline | |
Local time zone & \citefield{alberici_2016_why}{verba} & \autocite{alberici_2016_why} \\ | |
Local time zone & \citefield{barker_2016_swiss}{verba} & \autocite[see][1]{barker_2016_swiss} \\ | |
Local time zone & \citefield{barker_2016_turkey}{verba} & \autocite{barker_2016_turkey} \\ | |
Local time zone & \citefield{willacy_2016_fukushima}{verba} & \autocite{willacy_2016_fukushima} \\ | |
\hline | |
Unpsecified time zone & \citefield{greenwald_2016_three}{verba} & \autocite{greenwald_2016_three} \\ | |
\hline | |
Zulu/UTC timezone & \citefield{simpson_cool_book_0078}{verba} & \autocite{simpson_cool_book_0078} \\ | |
\hline | |
\noalign{\bigskip} | |
\hline | |
\multicolumn{3}{|l|}{\textbf{Month and day level }}\\ | |
\hline | |
Month precision. Journal article. & \citefield{kennett_2008_true}{verba} & \autocite{kennett_2008_true} \\ | |
\hline | |
Day precision. Online newspaper article. & \citefield{mendelsohn_2010_enough}{verba} & \autocite[68]{mendelsohn_2010_enough}.\\ | |
\hline | |
\noalign{\bigskip} | |
\hline | |
\multicolumn{3}{|l|}{\textbf{Season level}}\\ | |
\hline | |
Season precision. Encyclopedia article. & \citefield{sep_2016_stanford}{verba} & \autocite{sep_2016_stanford} \\ | |
\hline | |
\noalign{\bigskip} | |
\hline | |
\multicolumn{3}{|l|}{\textbf{Approximate, Uncertain, Eras}}\\ | |
\hline | |
Approximate and Uncertain & 1273?\mytilde & \autocite{aquinas_1273_compendium} \\ | |
\hline | |
Before the year zero (``BCE") & -0379\mytilde & \autocite{plato_2004_republic} \\ | |
\hline | |
\end{tabular} | |
\defbibnote{mybibnote}{Reference entries are sorted in citation order.} | |
\printbibliography[prenote=mybibnote] | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment