Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter Fix #6

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions LICENCE.md
Original file line number Diff line number Diff line change
@@ -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
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# 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.

Almost all of this is original work, built from scratch simply by following the Biblatex documentation. Small parts have been taken from various forum posts where I ran into difficulty. The parts for storing previous footnote numbers (the cite:save bibmacro) and some code for printing only surnames for the above n citations were taken from [Will Hardy's](https://github.com/willhardy/aglc) attempt at implementing the AGLC, so thanks to him.

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)
Expand Down Expand Up @@ -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}}
```
```
20 changes: 11 additions & 9 deletions aglcv3.bbx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@
\addspace%
\printfield{volume}%
\printfield{issue}%
\addspace%
\printfield{journaltitle}%
\printfield{pages}%
\printfield{note}%
Expand Down Expand Up @@ -375,11 +376,12 @@
\addspace%
\printtext{(}%
\printlist{publisher}%
\newunit%
\printfield{origyear}%
\newunit%
\usebibmacro{edition}%
\printfield{year}%
\printtext{)}%
\printfield{volume}%
\printtext{)}% \printfield{volume}%
\printfield{pages}%
}

Expand All @@ -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}
Expand Down Expand Up @@ -1515,4 +1517,4 @@

\DeclareFieldFormat[case-us-unreported]{number}{#1}

\endinput
\endinput
8 changes: 4 additions & 4 deletions aglcv3.cbx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -250,4 +250,4 @@
\DeclareMultiCiteCommand{\asinsertedby}[\mkbibfootnote]{\cite}{, as inserted by }
\DeclareMultiCiteCommand{\inserting}[\mkbibfootnote]{\cite}{, inserting }

\endinput
\endinput