Instantly share code, notes, and snippets.
Last active
November 1, 2017 08:10
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save JohnLukeBentley/9f3ad4f462751b95a95f9ddff7813e3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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[12pt,a4paper]{article} | |
\usepackage{a4wide} | |
\usepackage{filecontents} | |
\begin{filecontents}{\jobname.bib} | |
@book{adams_2001_2003_title_01, | |
author = {Adams, Phillip}, | |
date = {2001/2003}, | |
title = {Title 01 Input 2001/2003} | |
} | |
@book{adams_2001_2003_title_02, | |
author = {Adams, Phillip}, | |
date = {2001/2003}, | |
title = {Title 02 Input 2001/2003} | |
} | |
@book{charles_1998_1999_title_01, | |
author = {Charles, Ray}, | |
date = {1998-05-07/1999-06-01}, | |
title = {Title 01 Input 1998-05-07/1999-06-01} | |
} | |
@book{charles_1998_1999_title_02, | |
author = {Charles, Ray}, | |
date = {1998-04-03/1999-06-01}, | |
title = {Title 02 Input 1998-04-03/1999-06-01} | |
} | |
@book{charles_1998_1999_title_03, | |
author = {Charles, Ray}, | |
date = {1998-10-03/1999-02-12}, | |
title = {Title 03 Input 1998-10-03/1999-02-12} | |
} | |
@article{ford_unknown_1982_title_01, | |
author = {Ford, Harrison}, | |
title = {Title 01 Input Unknown/1982}, | |
year = {unknown/1982}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_unknown_1982_title_02, | |
author = {Ford, Harrison}, | |
title = {Title 02 Input Unknown/1982}, | |
year = {unknown/1982}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_1980_unknown_title_03, | |
author = {Ford, Harrison}, | |
title = {Title 03 Input 1980/Unknown}, | |
year = {1980/unknown}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_1980_unknown_title_04, | |
author = {Ford, Harrison}, | |
title = {Title 04 Input 1980/Unknown}, | |
year = {1980/unknown}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_open_1982_title_05, | |
author = {Ford, Harrison}, | |
title = {Title 05 Input Open/1982}, | |
year = {open/1982}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_open_1982_title_06, | |
author = {Ford, Harrison}, | |
title = {Title 06 Input Open/1982}, | |
year = {open/1982}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_1980_open_title_07, | |
author = {Ford, Harrison}, | |
title = {Title 07 Input 1980/Open}, | |
year = {1980/open}, | |
journaltitle = {Journal of cool} | |
} | |
@article{ford_1980_open_title_08, | |
author = {Ford, Harrison}, | |
title = {Title 08 Input 1980/Open}, | |
year = {1980/open}, | |
journaltitle = {Journal of cool} | |
} | |
@inproceedings{hasselhoff_2004_2004_presentation_01, | |
author = {Hasselhoff, David}, | |
date = {2004-06-01/2004-06-03}, | |
title = {Presentation 01 Input 2004-06-01/2004-06-03}, | |
booktitle = {Proceedings of the {{Great}} Org {{June Conference}}}, | |
eventtitle = {Great Org {{June Conference}}} | |
} | |
@inproceedings{hasselhoff_2004_2004_presentation_02, | |
author = {Hasselhoff, David}, | |
date = {2004-06-01/2004-06-03}, | |
title = {Presentation 02 Input 2004-06-01/2004-06-03}, | |
booktitle = {Proceedings of the {{Great}} Org {{June Conference}}}, | |
eventtitle = {Great Org {{June Conference}}} | |
} | |
@inproceedings{hasselhoff_2004_2004_presentation_03, | |
author = {Hasselhoff, David}, | |
date = {2004-07-15/2004-07-19}, | |
title = {Presentation 03 Input 2004-07-15/2004-07-19}, | |
booktitle = {Proceedings of the {{Great}} Org {{July Conference}}}, | |
eventtitle = {Great Org {{July Conference}}} | |
} | |
@inproceedings{hasselhoff_2004_2004_presentation_04, | |
author = {Hasselhoff, David}, | |
date = {2004-07-15/2004-07-19}, | |
title = {Presentation 04 Input 2004-07-15/2004-07-19}, | |
booktitle = {Proceedings of the {{Great}} Org {{July Conference}}}, | |
eventtitle = {Great Org {{July Conference}}} | |
} | |
@article{moore_unknown_2006_title_01, | |
author = {Moore, Roger}, | |
title = {Title 01 Input Unknown/2006}, | |
year = {unknown/2006}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_unknown_2007_title_02, | |
author = {Moore, Roger}, | |
title = {Title 02 Input Unknown/2007}, | |
year = {unknown/2007}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_2006_unknown_title_03, | |
author = {Moore, Roger}, | |
title = {Title 03 Input 2006/Unknown}, | |
year = {2006/unknown}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_2005_2006_title_04, | |
author = {Moore, Roger}, | |
date = {2005/2006}, | |
title = {Title 04 Input 2005/2006}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_2005_2007_title_05, | |
author = {Moore, Roger}, | |
date = {2005/2007}, | |
title = {Title 05 Input 2005/2007}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_2006_2008_title_06, | |
author = {Moore, Roger}, | |
date = {2006/2008}, | |
title = {Title 06 Input 2006/2008}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_open_2006_title_07, | |
author = {Moore, Roger}, | |
title = {Title 07 Input Open/2006}, | |
year = {open/2006}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_open_2007_title_08, | |
author = {Moore, Roger}, | |
title = {Title 08 Input Open/2007}, | |
year = {open/2007}, | |
journaltitle = {Journal of sardonism} | |
} | |
@article{moore_2006_open_title_09, | |
author = {Moore, Roger}, | |
title = {Title 09 Input 2006/Open}, | |
year = {2006/open}, | |
journaltitle = {Journal of sardonism} | |
} | |
\end{filecontents} | |
\usepackage[% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Dates and Datetimes | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
alldates=ymd, % year, short, long, terse, comp, ymd, edtf. ymd = Year-Month-Day format | |
labeldate=ymd, % year, short, long, terse, comp, ymd, edtf. ymd = Year-Month-Day format | |
datezeros=true, | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Style | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
style=authoryear, | |
sorting=none, | |
dashed=false, | |
url=false, | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% style=authoryear option | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% mergedate= % false, minimum, basic, compact or true (default), maximum. | |
mergedate=false | |
]{biblatex} | |
\addbibresource{\jobname.bib} | |
% Space between table rows | |
\renewcommand{\arraystretch}{1.25} | |
\begin{document} | |
{\Huge Multiple works by author in same range}\\ | |
Mutliples works by author in the same range (where a range matches another based on start and end years only, even if the ranges differ at the day level).\\ | |
Note \verb|sorting=none| is set. | |
\begin{refsection} | |
\section{Year level input} | |
\begin{tabular}{|p{250pt}|l|} | |
\hline | |
\textbf{Title} & \textbf{In text citation result}\\ | |
\hline | |
\citetitle{adams_2001_2003_title_01} & \autocite{adams_2001_2003_title_01}\\ | |
\hline | |
\citetitle{adams_2001_2003_title_02} & \autocite{adams_2001_2003_title_02}\\ | |
\hline | |
\noalign{\bigskip} | |
\end{tabular} | |
\printbibliography[heading=subbibliography] | |
\end{refsection} | |
\begin{refsection} | |
\section{Day level input} | |
\begin{tabular}{|p{250pt}|l|} | |
\hline | |
\textbf{Title} & \textbf{In text citation result}\\ | |
\hline | |
\citetitle{charles_1998_1999_title_01} & \autocite{charles_1998_1999_title_01}\\ | |
\hline | |
\citetitle{charles_1998_1999_title_02} & \autocite{charles_1998_1999_title_02}\\ | |
\hline | |
\citetitle{charles_1998_1999_title_03} & \autocite{charles_1998_1999_title_03}\\ | |
\hline | |
\noalign{\bigskip} | |
\end{tabular} | |
\printbibliography[heading=subbibliography] | |
\end{refsection} | |
\begin{refsection} | |
\section{With open and unknown ranges} | |
\begin{tabular}{|p{250pt}|l|} | |
\hline | |
\textbf{Title} & \textbf{In text citation result}\\ | |
\hline | |
\citetitle{ford_unknown_1982_title_01} & \autocite{ford_unknown_1982_title_01}\\ | |
\hline | |
\citetitle{ford_unknown_1982_title_02} & \autocite{ford_unknown_1982_title_02}\\ | |
\hline | |
\citetitle{ford_1980_unknown_title_03} & \autocite{ford_1980_unknown_title_03}\\ | |
\hline | |
\citetitle{ford_1980_unknown_title_04} & \autocite{ford_1980_unknown_title_04}\\ | |
\hline | |
\citetitle{ford_open_1982_title_05} & \autocite{ford_open_1982_title_05}\\ | |
\hline | |
\citetitle{ford_open_1982_title_06} & \autocite{ford_open_1982_title_06}\\ | |
\hline | |
\citetitle{ford_1980_open_title_07} & \autocite{ford_1980_open_title_07}\\ | |
\hline | |
\citetitle{ford_1980_open_title_08} & \autocite{ford_1980_open_title_08}\\ | |
\hline | |
\noalign{\bigskip} | |
\end{tabular} | |
\printbibliography[heading=subbibliography] | |
\end{refsection} | |
\clearpage | |
\begin{refsection} | |
\section{Multiple presentations with the same conference} | |
Multiple presentations within the same conference, for two conferences in the same year:\\ | |
\begin{tabular}{|p{250pt}|l|} | |
\hline | |
\textbf{Title} & \textbf{In text citation result}\\ | |
\hline | |
\citetitle{hasselhoff_2004_2004_presentation_01} & \autocite{hasselhoff_2004_2004_presentation_01}\\ | |
\hline | |
\citetitle{hasselhoff_2004_2004_presentation_02} & \autocite{hasselhoff_2004_2004_presentation_02}\\ | |
\hline | |
\citetitle{hasselhoff_2004_2004_presentation_03} & \autocite{hasselhoff_2004_2004_presentation_03}\\ | |
\hline | |
\citetitle{hasselhoff_2004_2004_presentation_04} & \autocite{hasselhoff_2004_2004_presentation_04}\\ | |
\hline | |
\noalign{\bigskip} | |
\end{tabular} | |
\printbibliography[heading=subbibliography] | |
\end{refsection} | |
\clearpage | |
\begin{refsection} | |
\section{Distinct ranges} | |
These should be regarded as distinct ranges (that don't attract an \verb|extradate| alphabetic index: `a', `b', `c'):\\ | |
\begin{tabular}{|p{250pt}|l|} | |
\hline | |
\textbf{Title} & \textbf{In text citation result}\\ | |
\hline | |
\citetitle{moore_unknown_2006_title_01} & \autocite{moore_unknown_2006_title_01}\\ | |
\hline | |
\citetitle{moore_unknown_2007_title_02} & \autocite{moore_unknown_2007_title_02}\\ | |
\hline | |
\citetitle{moore_2006_unknown_title_03} & \autocite{moore_2006_unknown_title_03}\\ | |
\hline | |
\citetitle{moore_2005_2006_title_04} & \autocite{moore_2005_2006_title_04}\\ | |
\hline | |
\citetitle{moore_2005_2007_title_05} & \autocite{moore_2005_2007_title_05}\\ | |
\hline | |
\citetitle{moore_2006_2008_title_06} & \autocite{moore_2006_2008_title_06}\\ | |
\hline | |
\citetitle{moore_open_2006_title_07} & \autocite{moore_open_2006_title_07}\\ | |
\hline | |
\citetitle{moore_open_2007_title_08} & \autocite{moore_open_2007_title_08}\\ | |
\hline | |
\citetitle{moore_2006_open_title_09} & \autocite{moore_2006_open_title_09}\\ | |
\hline | |
\noalign{\bigskip} | |
\end{tabular} | |
\printbibliography[heading=subbibliography] | |
\end{refsection} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment