diff --git a/LICENCE.md b/LICENCE.md new file mode 100644 index 0000000..a68a683 --- /dev/null +++ b/LICENCE.md @@ -0,0 +1,2 @@ +CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) +Forked from https://github.com/McJones/AGLCLaTeX in Jan 2018 diff --git a/README.md b/README.md index a4b7195..fcede04 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ # AGLCLaTeX + +Forked from original code by McJones: https://github.com/McJones/ + A Biblatex style implementing version 3 of the Australian Guide to Legal Citation -The Australian Guide to Legal Citation ('AGLC') is in my opinion one of the best and most flexible citation systems ever devised. This is despite its many detailed rules; in fact, it is probably the detail that contributes most to its flexibility, as it is very easy to find a close match for any source type. +The Australian Guide to Legal Citation ('AGLC') is in my opinion one of the best and most flexible citation systems ever devised. This is despite its many detailed rules; in fact, it is probably the detail that contributes most to its flexibility, as it is very easy to find a close match for any source type.* It is the citation system I learned when I was in law school, and it is currently the most widely used system for legal citations in Australia. The AGLC is published by the Melbourne University Law Review Association, and is available from the [University of Melbourne website](http://law.unimelb.edu.au/mulr/aglc/about) as a read-only PDF and to purchase in hard or soft copy. @@ -9,6 +12,9 @@ Almost all of this is original work, built from scratch simply by following the The decision to create an entirely new style from scratch was due to the complexity of the AGLC. None of the existing styles was particularly suitable to modify, and while I could have built upon one and _heavily_ modified it, it seemed easier to simply take full control. This allowed me to learn the workings of Biblatex in some considerable detail. Additionally, as far as I could tell, Will was the only other person to attempt this and publish the result, but he was working with version 2 of the AGLC rather than version 3 (and there have been significant changes and expansions), and did not attempt a 'complete' solution. +*Note, this is the opinion of the code's original author, McJones. The current maintainers of the code differ wildly on the relative merits of the AGLC3. Regardless, standards are standards... + + ## Contents - [General](#general) @@ -1737,4 +1743,4 @@ Title = {Red Hat Inc v The SCO Group Inc}, Venue = {D Del}, Number = {Civ No 03-772-SLR}, Date = {2004-04-06}} -``` \ No newline at end of file +``` diff --git a/aglcv3.bbx b/aglcv3.bbx index fe9357e..3be13df 100644 --- a/aglcv3.bbx +++ b/aglcv3.bbx @@ -329,6 +329,7 @@ \addspace% \printfield{volume}% \printfield{issue}% + \addspace% \printfield{journaltitle}% \printfield{pages}% \printfield{note}% @@ -375,11 +376,12 @@ \addspace% \printtext{(}% \printlist{publisher}% + \newunit% \printfield{origyear}% + \newunit% \usebibmacro{edition}% \printfield{year}% - \printtext{)}% - \printfield{volume}% + \printtext{)}% \printfield{volume}% \printfield{pages}% } @@ -403,12 +405,12 @@ \printfield{volume}% \iffieldundef{postnote}{% \addspace% - \printtext{[trans of:}% - \addspace% - \printfield{origtitle}% - \addspace\printtext{(}% - \printtext{first published}\addspace\printfield{origyear}% - \printtext{)]}}{}% + \printtext{[}% + \iffieldundef{origtitle}{\printtext{first published}\addspace\printfield{origyear}% + \printtext{]}}{% + \printtext{trans of:}\addspace\printfield{origtitle}\addspace\printtext{(}% + \printtext{first published}\addspace\printfield{origyear}% + \printtext{)]}}}{}% } \DeclareFieldFormat[book,chapter]{origyear}{first\addspace{published}\addspace#1} @@ -1515,4 +1517,4 @@ \DeclareFieldFormat[case-us-unreported]{number}{#1} -\endinput \ No newline at end of file +\endinput diff --git a/aglcv3.cbx b/aglcv3.cbx index 1fece21..42d5140 100644 --- a/aglcv3.cbx +++ b/aglcv3.cbx @@ -15,12 +15,12 @@ \DeclareNameFormat{surname}{\ifthenelse{\value{listcount}=1}{#1}{}} \DeclareNameFormat{firstname}{\ifthenelse{\value{listcount}=1}{#3}{}} -% for surnames +% for surnames - changed to 'last' 17/01/19 \newbibmacro{author/editor:surname}{% \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}}% - {\ifuseauthor{\printnames[surname]{author}}{}}% - {\ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}{\printnames[surname]{editor}}{}}} + {\ifuseauthor{\printnames[last]{author}}{}}% + {\ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}{\printnames[last]{editor}}{}}} % for reported cases with a venue @@ -250,4 +250,4 @@ \DeclareMultiCiteCommand{\asinsertedby}[\mkbibfootnote]{\cite}{, as inserted by } \DeclareMultiCiteCommand{\inserting}[\mkbibfootnote]{\cite}{, inserting } -\endinput \ No newline at end of file +\endinput