diff options
author | Karl Berry <karl@freefriends.org> | 2023-06-22 20:40:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-06-22 20:40:28 +0000 |
commit | 4b07e25190f1d822067cbb7468cdfb146f85357e (patch) | |
tree | 2b41107763933dfea62f99db19cdbd86ed7effec /Master/texmf-dist/doc/latex | |
parent | 1f17113c2f43f384032e0ba335419982d786c7d4 (diff) |
biblatex-oxref (22jun23)
git-svn-id: svn://tug.org/texlive/trunk@67440 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/README.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.pdf | bin | 465051 -> 465449 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.tex | 58 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.pdf | bin | 472736 -> 473126 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.tex | 89 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.pdf | bin | 469463 -> 469581 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.tex | 89 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxref.bib | 17 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxref.pdf | bin | 566202 -> 597300 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.pdf | bin | 469196 -> 469561 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.tex | 58 |
11 files changed, 252 insertions, 63 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/README.md b/Master/texmf-dist/doc/latex/biblatex-oxref/README.md index 8d5c13f87ac..c8b147bc812 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/README.md +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/README.md @@ -45,7 +45,8 @@ UNIX-like systems: - oxnotes.cbx, oxnotes-ibid.cbx, oxnotes-note.cbx, oxnotes-inote.cbx, oxnotes-trad1.cbx, oxnotes-trad2.cbx, oxnotes-trad3.cbx, oxyear.cbx, oxnum.cbx, oxalph.cbx - - american-oxref.lbx, british-oxref.lbx, english-oxref.lbx + - american-oxref.lbx, british-oxref.lbx, english-oxref.lbx, + spanish-oxref.lbx - oxnotes.dbx, oxnotes-ibid.dbx, oxnotes-note.dbx, oxnotes-inote.dbx, oxnotes-trad1.dbx, oxnotes-trad2.dbx, oxnotes-trad3.dbx, oxyear.dbx, oxnum.dbx, oxalph.dbx @@ -88,6 +89,7 @@ first two steps. american-oxref.lbx, british-oxref.lbx, english-oxref.lbx, + spanish-oxref.lbx oxalph.bbx, oxalph.cbx, oxalph.dbx, diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.pdf b/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.pdf Binary files differindex a0d43bbfefa..e4bea5bdcf6 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.tex b/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.tex index 0fbee878f57..42885114334 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.tex +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxalph-doc.tex @@ -13,7 +13,7 @@ %% See: http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- %% -\def\Version{2023/02/01 v3.0} +\def\Version{2023/06/06 v3.1} \ProvidesFile{oxalph-doc.tex} [\Version\space Alphabetic biblatex style inspired by the Oxford Guide to Style] \PassOptionsToPackage{style=oxalph,varissuedate,anon}{biblatex} @@ -63,6 +63,12 @@ \colorlet{hacked}{orange} \colorlet{manual}{purple} +\usepackage{iftex} +\ifluatex + % Fix spacing in tcolorbox + \usepackage{luacolor} +\fi + \usepackage{tcolorbox} \tcbuselibrary{skins,xparse,documentation,breakable,minted} \colorlet{Option}{violet} @@ -228,7 +234,28 @@ \usepackage{readprov} \GetFileInfo{\jobname.tex} \title{OXALPH -- An alphabetic style for Biblatex} + +\newcounter{elementcount} +\newcommand{\commaorandlist}[1]{% + \renewcommand*{\do}[1]{\stepcounter{elementcount}}% + \dolistloop{#1}% + \ifnumgreater{\value{elementcount}}{2}{% + \def\finaland{, and }% + }{% + \def\finaland{ and }% + }% + \renewcommand*{\do}[1]{% + \ifnumequal{\value{elementcount}}{1}{% + ##1% + }{% + \ifnumequal{\value{elementcount}}{2}{#1\finaland}{##1, }% + }% + \addtocounter{elementcount}{-1}% + }% + \dolistloop{#1}} + \author{Alex Ball} +\listadd\thetranslators{Bruno Maltras} \date{\printdateTeX{\filedate}} \begin{document} \thispagestyle{empty} @@ -240,7 +267,8 @@ \LARGE\thetitle \bigskip - \Large\theauthor + \Large\theauthor\par + \normalsize with translations by \commaorandlist\thetranslators \bigskip \Large\thedate @@ -254,7 +282,9 @@ \hspace*{.1\textwidth}\raisebox{0pt}[0pt][0pt]{\rule{\normalrulethickness}{\textheight}} \newpage -\tableofcontents* +\begin{KeepFromToc} +\tableofcontents +\end{KeepFromToc} \chapter{Introduction} @@ -997,6 +1027,25 @@ Druin, A. (2002), \enquote{The Role of Children in the Design of New Technology} \end{Verbatim} \end{bibexbox} + +If the last\slash only word of the journal title is abbreviated +(indicated by point or capital letter), it does not need a comma after it. +\pkg[biblatex]{Oxref} will try to detect this and adjust the punctuation accordingly; +the list of characters that it uses is set with \cs{DeclareAbbrEndChars}. +The default setting is this: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars{A\^{A}BCDEFG\u{G}HI\^{I}JKLMNO\"{O}\^{O}PQRSTU\"{U}\^{U}VWXYZ.} +\end{tcblisting} + +There is also a starred version of the command that appends to this list: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars*{\c{C}\.{I}\c{S}} +\end{tcblisting} + +\hack{To override this mechanism for a single entry, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} + \begin{bibexbox}(hacked) <NHR \S18.8.5*\textdagger> {li.etal2013flh} @@ -1016,9 +1065,6 @@ Li, S., et al. (2013), \enquote{Forever Love: The Hitherto Earliest Record of Co \end{Verbatim} \end{bibexbox} -\hack{If the last\slash only word of the journal title is abbreviated (indicated by point or capital letter), it does not need a comma after it. \pkg[biblatex]{Oxref} will try to detect this; if it gets it wrong, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} - - \begin{bibexbox} <OGS \S15.4.1*\textdagger> {jsr1990spt} diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.pdf b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.pdf Binary files differindex f43b5fa6bf6..d21bb281b38 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.tex b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.tex index c729b0d965e..ac20f195984 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.tex +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnotes-doc.tex @@ -13,7 +13,7 @@ %% See: http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- %% -\def\Version{2023/02/01 v3.0} +\def\Version{2023/06/06 v3.1} \ProvidesFile{oxnotes-doc.tex} [\Version\space Footnote-based biblatex style inspired by the Oxford Guide to Style] \PassOptionsToPackage{style=oxnotes,scnames,varissuedate,anon}{biblatex} @@ -63,6 +63,12 @@ \colorlet{hacked}{orange} \colorlet{manual}{purple} +\usepackage{iftex} +\ifluatex + % Fix spacing in tcolorbox + \usepackage{luacolor} +\fi + \usepackage{tcolorbox} \tcbuselibrary{skins,xparse,documentation,breakable,minted} \colorlet{Option}{violet} @@ -228,7 +234,28 @@ \usepackage{readprov} \GetFileInfo{\jobname.tex} \title{OXNOTES -- A notes-based style for Biblatex} + +\newcounter{elementcount} +\newcommand{\commaorandlist}[1]{% + \renewcommand*{\do}[1]{\stepcounter{elementcount}}% + \dolistloop{#1}% + \ifnumgreater{\value{elementcount}}{2}{% + \def\finaland{, and }% + }{% + \def\finaland{ and }% + }% + \renewcommand*{\do}[1]{% + \ifnumequal{\value{elementcount}}{1}{% + ##1% + }{% + \ifnumequal{\value{elementcount}}{2}{#1\finaland}{##1, }% + }% + \addtocounter{elementcount}{-1}% + }% + \dolistloop{#1}} + \author{Alex Ball} +\listadd\thetranslators{Bruno Maltras} \date{\printdateTeX{\filedate}} \begin{document} \thispagestyle{empty} @@ -240,7 +267,8 @@ \LARGE\thetitle \bigskip - \Large\theauthor + \Large\theauthor\par + \normalsize with translations by \commaorandlist\thetranslators \bigskip \Large\thedate @@ -254,7 +282,9 @@ \hspace*{.1\textwidth}\raisebox{0pt}[0pt][0pt]{\rule{\normalrulethickness}{\textheight}} \newpage -\tableofcontents* +\begin{KeepFromToc} +\tableofcontents +\end{KeepFromToc} \chapter{Introduction} @@ -1007,6 +1037,39 @@ A. Druin, \enquote{The Role of Children in the Design of New Technology}, \emph{ \end{Verbatim} \end{bibexbox} +\begin{bibexbox}<OGS \S15.4.1> +{lindars1965eir} +B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965), 452–67. +\tcblower +\begin{Verbatim} +@article{lindars1965eir, + author = {B. Lindars}, + title = {Ezechiel and Individual Responsibility}, + journaltitle = {VT}, + volume = {15}, + date = {1965}, + pages = {452-467}} +\end{Verbatim} +\end{bibexbox} + +If the last\slash only word of the journal title is abbreviated +(indicated by point or capital letter), it does not need a comma after it. +\pkg[biblatex]{Oxref} will try to detect this and adjust the punctuation accordingly; +the list of characters that it uses is set with \cs{DeclareAbbrEndChars}. +The default setting is this: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars{A\^{A}BCDEFG\u{G}HI\^{I}JKLMNO\"{O}\^{O}PQRSTU\"{U}\^{U}VWXYZ.} +\end{tcblisting} + +There is also a starred version of the command that appends to this list: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars*{\c{C}\.{I}\c{S}} +\end{tcblisting} + +\hack{To override this mechanism for a single entry, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} + \begin{bibexbox}(hacked) <NHR \S18.8.5*> {li.etal2013flh} @@ -1026,23 +1089,6 @@ Shu Li et al., \enquote{Forever Love: The Hitherto Earliest Record of Copulating \end{Verbatim} \end{bibexbox} -\hack{If the last\slash only word of the journal title is abbreviated (indicated by point or capital letter), it does not need a comma after it. \pkg[biblatex]{Oxref} will try to detect this; if it gets it wrong, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} - -\begin{bibexbox}<OGS \S15.4.1> -{lindars1965eir} -B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965), 452–67. -\tcblower -\begin{Verbatim} -@article{lindars1965eir, - author = {B. Lindars}, - title = {Ezechiel and Individual Responsibility}, - journaltitle = {VT}, - volume = {15}, - date = {1965}, - pages = {452-467}} -\end{Verbatim} -\end{bibexbox} - \begin{bibexbox} <OGS \S15.4.1*> {jsr1990spt} @@ -1453,7 +1499,8 @@ Rosemary Stewart et al. (eds.), \emph{Managing in Britain} (London, 1994). \tcblower \begin{Verbatim} @collection{stewart.etal1994mb, - editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter and Peter Walgenbach}, + editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter + and Peter Walgenbach}, title = {Managing in {Britain}}, location = {London}, date = {1994}} diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.pdf b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.pdf Binary files differindex e7d2cae73f9..e331370beba 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.tex b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.tex index af20bde70ef..7249da613d8 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.tex +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxnum-doc.tex @@ -13,7 +13,7 @@ %% See: http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- %% -\def\Version{2023/02/01 v3.0} +\def\Version{2023/06/06 v3.1} \ProvidesFile{oxnum-doc.tex} [\Version\space Numeric biblatex style inspired by the Oxford Guide to Style] \PassOptionsToPackage{style=oxnum,scnames,varissuedate,anon,backref=true}{biblatex} @@ -63,6 +63,12 @@ \colorlet{hacked}{orange} \colorlet{manual}{purple} +\usepackage{iftex} +\ifluatex + % Fix spacing in tcolorbox + \usepackage{luacolor} +\fi + \usepackage{tcolorbox} \tcbuselibrary{skins,xparse,documentation,breakable,minted} \colorlet{Option}{violet} @@ -226,7 +232,28 @@ \usepackage{readprov} \GetFileInfo{\jobname.tex} \title{OXNUM -- A numeric style for Biblatex} + +\newcounter{elementcount} +\newcommand{\commaorandlist}[1]{% + \renewcommand*{\do}[1]{\stepcounter{elementcount}}% + \dolistloop{#1}% + \ifnumgreater{\value{elementcount}}{2}{% + \def\finaland{, and }% + }{% + \def\finaland{ and }% + }% + \renewcommand*{\do}[1]{% + \ifnumequal{\value{elementcount}}{1}{% + ##1% + }{% + \ifnumequal{\value{elementcount}}{2}{#1\finaland}{##1, }% + }% + \addtocounter{elementcount}{-1}% + }% + \dolistloop{#1}} + \author{Alex Ball} +\listadd\thetranslators{Bruno Maltras} \date{\printdateTeX{\filedate}} \begin{document} \thispagestyle{empty} @@ -238,7 +265,8 @@ \LARGE\thetitle \bigskip - \Large\theauthor + \Large\theauthor\par + \normalsize with translations by \commaorandlist\thetranslators \bigskip \Large\thedate @@ -252,7 +280,9 @@ \hspace*{.1\textwidth}\raisebox{0pt}[0pt][0pt]{\rule{\normalrulethickness}{\textheight}} \newpage -\tableofcontents* +\begin{KeepFromToc} +\tableofcontents +\end{KeepFromToc} \chapter{Introduction} @@ -982,6 +1012,39 @@ A. Druin, \enquote{The Role of Children in the Design of New Technology}, \emph{ \end{Verbatim} \end{bibexbox} +\begin{bibexbox}<OGS \S15.4.1> +{lindars1965eir} +B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965), 452–67. +\tcblower +\begin{Verbatim} +@article{lindars1965eir, + author = {B. Lindars}, + title = {Ezechiel and Individual Responsibility}, + journaltitle = {VT}, + volume = {15}, + date = {1965}, + pages = {452-467}} +\end{Verbatim} +\end{bibexbox} + +If the last\slash only word of the journal title is abbreviated +(indicated by point or capital letter), it does not need a comma after it. +\pkg[biblatex]{Oxref} will try to detect this and adjust the punctuation accordingly; +the list of characters that it uses is set with \cs{DeclareAbbrEndChars}. +The default setting is this: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars{A\^{A}BCDEFG\u{G}HI\^{I}JKLMNO\"{O}\^{O}PQRSTU\"{U}\^{U}VWXYZ.} +\end{tcblisting} + +There is also a starred version of the command that appends to this list: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars*{\c{C}\.{I}\c{S}} +\end{tcblisting} + +\hack{To override this mechanism for a single entry, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} + \begin{bibexbox}(hacked) <NHR \S18.8.5*> {li.etal2013flh} @@ -1001,23 +1064,6 @@ Shu Li et al., \enquote{Forever Love: The Hitherto Earliest Record of Copulating \end{Verbatim} \end{bibexbox} -\hack{If the last\slash only word of the journal title is abbreviated (indicated by point or capital letter), it does not need a comma after it. \pkg[biblatex]{Oxref} will try to detect this; if it gets it wrong, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} - -\begin{bibexbox}<OGS \S15.4.1> -{lindars1965eir} -B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965), 452–67. -\tcblower -\begin{Verbatim} -@article{lindars1965eir, - author = {B. Lindars}, - title = {Ezechiel and Individual Responsibility}, - journaltitle = {VT}, - volume = {15}, - date = {1965}, - pages = {452-467}} -\end{Verbatim} -\end{bibexbox} - \begin{bibexbox} <OGS \S15.4.1*> {jsr1990spt} @@ -1428,7 +1474,8 @@ Rosemary Stewart et al. (eds.), \emph{Managing in Britain} (London, 1994). \tcblower \begin{Verbatim} @collection{stewart.etal1994mb, - editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter and Peter Walgenbach}, + editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter + and Peter Walgenbach}, title = {Managing in {Britain}}, location = {London}, date = {1994}} diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.bib b/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.bib index 0c95d56987d..971a142fee0 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.bib +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.bib @@ -221,6 +221,13 @@ date = {2002}, pages = {1-25}, doi = {10.1080/01449290110108659}} +@article{lindars1965eir, + author = {B. Lindars}, + title = {Ezechiel and Individual Responsibility}, + journaltitle = {VT}, + volume = {15}, + date = {1965}, + pages = {452-467}} @article{li.etal2013flh, author = {Shu Li and Chungkun Shih and Chen Wang and Hong Pang and Dong Ren}, title = {Forever Love}, @@ -231,13 +238,6 @@ date = {2013}, eid = {e78188}, doi = {10.1371/journal.pone.0078188}} -@article{lindars1965eir, - author = {B. Lindars}, - title = {Ezechiel and Individual Responsibility}, - journaltitle = {VT}, - volume = {15}, - date = {1965}, - pages = {452-467}} @article{jsr1990spt, title = {Solar Photon Thruster}, journaltitle = {Journal of Spacecraft and Rockets}, @@ -447,7 +447,8 @@ location = {Amsterdam}, date = {1952}} @collection{stewart.etal1994mb, - editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter and Peter Walgenbach}, + editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter + and Peter Walgenbach}, title = {Managing in {Britain}}, location = {London}, date = {1994}} diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.pdf b/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.pdf Binary files differindex 64d0e7f5de9..0511bca7f48 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxref.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.pdf b/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.pdf Binary files differindex a03712a1aa1..b9a60cde4a2 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.tex b/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.tex index b979930b88d..c14100c0cda 100644 --- a/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.tex +++ b/Master/texmf-dist/doc/latex/biblatex-oxref/oxyear-doc.tex @@ -13,7 +13,7 @@ %% See: http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- %% -\def\Version{2023/02/01 v3.0} +\def\Version{2023/06/06 v3.1} \ProvidesFile{oxyear-doc.tex} [\Version\space Author-year biblatex style inspired by the Oxford Guide to Style] \PassOptionsToPackage{style=oxyear,varissuedate,anon}{biblatex} @@ -63,6 +63,12 @@ \colorlet{hacked}{orange} \colorlet{manual}{purple} +\usepackage{iftex} +\ifluatex + % Fix spacing in tcolorbox + \usepackage{luacolor} +\fi + \usepackage{tcolorbox} \tcbuselibrary{skins,xparse,documentation,breakable,minted} \colorlet{Option}{violet} @@ -228,7 +234,28 @@ \usepackage{readprov} \GetFileInfo{\jobname.tex} \title{OXYEAR -- An author–year style for Biblatex} + +\newcounter{elementcount} +\newcommand{\commaorandlist}[1]{% + \renewcommand*{\do}[1]{\stepcounter{elementcount}}% + \dolistloop{#1}% + \ifnumgreater{\value{elementcount}}{2}{% + \def\finaland{, and }% + }{% + \def\finaland{ and }% + }% + \renewcommand*{\do}[1]{% + \ifnumequal{\value{elementcount}}{1}{% + ##1% + }{% + \ifnumequal{\value{elementcount}}{2}{#1\finaland}{##1, }% + }% + \addtocounter{elementcount}{-1}% + }% + \dolistloop{#1}} + \author{Alex Ball} +\listadd\thetranslators{Bruno Maltras} \date{\printdateTeX{\filedate}} \begin{document} \thispagestyle{empty} @@ -240,7 +267,8 @@ \LARGE\thetitle \bigskip - \Large\theauthor + \Large\theauthor\par + \normalsize with translations by \commaorandlist\thetranslators \bigskip \Large\thedate @@ -254,7 +282,9 @@ \hspace*{.1\textwidth}\raisebox{0pt}[0pt][0pt]{\rule{\normalrulethickness}{\textheight}} \newpage -\tableofcontents* +\begin{KeepFromToc} +\tableofcontents +\end{KeepFromToc} \chapter{Introduction} @@ -1029,6 +1059,25 @@ Druin, A. (2002), \enquote{The Role of Children in the Design of New Technology} \end{Verbatim} \end{bibexbox} + +If the last\slash only word of the journal title is abbreviated +(indicated by point or capital letter), it does not need a comma after it. +\pkg[biblatex]{Oxref} will try to detect this and adjust the punctuation accordingly; +the list of characters that it uses is set with \cs{DeclareAbbrEndChars}. +The default setting is this: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars{A\^{A}BCDEFG\u{G}HI\^{I}JKLMNO\"{O}\^{O}PQRSTU\"{U}\^{U}VWXYZ.} +\end{tcblisting} + +There is also a starred version of the command that appends to this list: + +\begin{tcblisting}{listing only} +\DeclareAbbrEndChars*{\c{C}\.{I}\c{S}} +\end{tcblisting} + +\hack{To override this mechanism for a single entry, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} + \begin{bibexbox}(hacked) <NHR \S18.8.5*\textdagger> {li.etal2013flh} @@ -1048,9 +1097,6 @@ Li, S., et al. (2013), \enquote{Forever Love: The Hitherto Earliest Record of Co \end{Verbatim} \end{bibexbox} -\hack{If the last\slash only word of the journal title is abbreviated (indicated by point or capital letter), it does not need a comma after it. \pkg[biblatex]{Oxref} will try to detect this; if it gets it wrong, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.} - - \begin{bibexbox} <OGS \S15.4.1*\textdagger> {jsr1990spt} |