[Tex/LaTex] Biblatex, JEA style

biblatex

I provide here a MWE:

\documentclass[11pt,a4paper,showtrims]{memoir} % for a 4long document
\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like ``---''
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX
\usepackage{etoolbox}
\usepackage{polyglossia}
\usepackage[style=verbose-   ibid,firstinits=true,sorting=nty,sortcites=true,useprefix=false,isbn=false,maxnames=6,citepages=omit,backend=biber]{biblatex} % originally the style was verbose-ibid
%\usepackage[style=footnote-dw,namefont=smallcaps,firstinits=true,idembib=true,idembibformat=dash,nopublisher=false,edbyidem=false,backend=biber]{biblatex}
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\renewcommand*{\newunitpunct}{\addcomma\space}%put commas instead of periods after some elements of the title
%\usepackage{biblatex}%remove �in� in journal articles
\renewbibmacro{in:}{%
\ifentrytype{article}{}{%
\printtext{\bibstring{in}\intitlepunct}}}
\renewcommand*{\labelnamepunct}{\addcomma\space}
\renewcommand*{\nametitledelim}{\addcomma\space}
\renewcommand*{\bibfont}{\normalfont\small}

\renewbibmacro*{publisher+location+date}{%
\printtext[parens]{% ADDED
\printlist{location}%
%\iflistundef{publisher}
  %{\setunit*{\addcomma\space}}
 % {\setunit*{\addcolon\space}}%
%\printlist{publisher}%
\setunit*{\addcomma\space}%
\usebibmacro{date}%
}%\nopunct% ADDED
\newunit}
%for citing short forms
\renewbibmacro*{cite:short}{%
\printnames{labelname}%
\setunit*{\nametitledelim}%
% If article:
\ifentrytype{article}{%
    \usebibmacro{journal}%
    \setunit{\addspace}%
    \printfield{volume}}{%
% If incollection:
\ifentrytype{incollection}{%
    \usebibmacro{in:}%
    \printtext[booktitle]{\printfield[titlecase]{booktitle}}}{%
% Else:
\printtext[bibhyperlink]{\printfield[citetitle]{labeltitle}}}}}

%for defining shorthands
\defbibcheck{noshorthand}{%
\iffieldundef{shorthand}{}{\skipentry}%
}

\renewbibmacro*{journal}{%journal abbreviation instead of full title
\iffieldundef{shortjournal}
{%
  \iffieldundef{journaltitle}
    {}
    {%
      \printtext[journaltitle]
        {%
          \printfield[titlecase]{journaltitle}%
          \setunit{\subtitlepunct}%
          \printfield[titlecase]{journalsubtitle}%
         }%
     }%
}
{\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}}%
}

\DeclareFieldFormat{postnote}{\mkcomprange[{\mkpageprefix[pagination]}]{#1}}
\DeclareFieldFormat{pages}{\mkcomprange{#1}}

\setcounter{mincomprange}{100}
\setcounter{maxcomprange}{100000}
\setcounter{mincompwidth}{10}

\makeatletter
\patchcmd{\blx@comprange@check}
{\blx@comprange@comp{#1}{#2}}
{\blx@tempcnta=#1
\divide\blx@tempcnta100
\multiply\blx@tempcnta100
\ifnumequal{\blx@tempcnta}{#1}
 {\blx@range@out@value{#1\bibrangedash#2}}
 {\blx@comprange@comp{#1}{#2}}}
{}{}
\makeatother

\DeclareFieldFormat{postnote}{\mkcomprange{#1}}% no postnote prefix in "normal" citation commands
\DeclareFieldFormat{multipostnote}{\mkcomprange{#1}}% no postnote prefix in "multicite" commands

These are the two instances of bibliography I am actually using:

@incollection{Leahy.2011c,
author = {Leahy, A.},
title = {'Necho' in Late Period personal names},
pages = {547--573},
bookpagination = {page},
publisher = {Uitgeverij Peeters en Departement Oosterse Studies},
series = {Orientalia Lovaniensia Analecta},
editor = {Aston, D. A. and Bader, Bettina and Gallorini, Carla and Nicholson, Paul and Buckingham, Sarah},
booktitle = {Under the Potter's Tree},
year = {2011},
usera = {Yes},
location = {Leuven},
booksubtitle = {Studies on Ancient Egypt Presented to Janine Bourriau on the Occasion of Her 70th Birthday},
number = {204},
}

@book{Blobaum.2006,
author = {Bl{\"o}baum, A. I.},
year = {2006},
title = {''Denn ich bin ein K{\"o}nig, der die Maat liebt''},
number = {4},
publisher = {Shaker Verlag},
subtitle = {Herrscherlegitimation im sp{\"a}tzeitlichen {\"A}gypten},
location = {Aachen},
series = {Aegyptiaca Monasteriensia},
shorttitle = {Denn ich bin ein K{\"o}nig}
}

What comes from the codes above is:

A.LEAHY,“A mysterious fragment and a monumental hinge.Necho II and Psammetichus II once again”, in: Verba manent. Recueil d’études dédiées à Dimitri Meeks par ses collègues et amis, ed. by I. RÉGEN and F. SERVAJEAN, Cenim 2, (Montpellier, 2009), 227–40.

A.I.Blöbaum, ”Denn ich bin ein König,der die Maat liebt”,Herrscherlegitimationimspätzeit-
lichen Ägypten
, Aegyptiaca Monasteriensia 4, (Aachen, 2006)

I would like the following changes, matching the Journal of Egyptian Archaeology requirements:

A.I.Blöbaum, ”Denn ich bin ein König,der die Maat liebt”,Herrscherlegitimationimspätzeit-
lichen Ägypten
(Aegyptiaca Monasteriensia 4; Aachen: 2006)

This means that I would like to get rid of the comma at the end of the title, and put the Series and its number in the round brackets.

Moreover, for a contribution in an edited book, I would like something like that:

A.LEAHY,“A mysterious fragment and a monumental hinge.Necho II and Psammetichus II once again”, in I. RÉGEN and F. SERVAJEAN (eds),Verba manent. Recueil d’études dédiées à Dimitri Meeks par ses collègues et amis (Cenim 2; Montpellier: 2009), 227–40.

Any help appreciated.

Best Answer

The document below demonstrates style edits that will change the format and print order of "by" editors and series titles. For brevity, I carried over only some of the style changes from your MWE.

\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=verbose-ibid,firstinits=true,maxnames=6]{biblatex} 

% Put editor string in parentheses
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}

% Like editor+others but without comma before editor string and dash checks
\newbibmacro*{ineditor+others}{%
  \ifboolexpr{ test \ifuseeditor and not test {\ifnameundef{editor}} }
    {\printnames{editor}%
     \setunit{\addspace}%
     \usebibmacro{editor+othersstrg}%
     \clearname{editor}}
    {}}

% Print editors before "in" title
\renewbibmacro{in:}{%
  \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}%
  \usebibmacro{ineditor+others}%
  \newunit
  \clearname{editor}}

% Print series as usual if location is undefined
\renewbibmacro*{series+number}{%
  \iflistundef{location}
    {\printfield{series}%
     \setunit*{\addspace}%
     \printfield{number}%
     \newunit}
    {}}

% Omit preceding punctuation, print series with location,
%   omit publisher, wrap in parentheses
\renewbibmacro*{publisher+location+date}{%
  \nopunct%
  \printtext[parens]{%
    \printfield{series}%
    \setunit*{\addspace}%
    \printfield{number}%
    \setunit{\addsemicolon\space}%
    \printlist{location}%
    \setunit*{\addcolon\space}%
    \usebibmacro{date}}%
    \newunit}

% A few other style changes carried over from your MWE
\renewcommand*{\newunitpunct}{\addcomma\space}
\renewcommand*{\labelnamepunct}{\newunitpunct}
\renewcommand\mkbibnamelast[1]{\textsc{#1}}
\DeclareNameAlias{sortname}{first-last}

\begin{filecontents}{\jobname.bib}
@incollection{leahy,
  author = {Leahy, A.},
  title = {`Necho' in Late Period personal names},
  pages = {547--573},
  bookpagination = {page},
  publisher = {Uitgeverij Peeters en Departement Oosterse Studies},
  series = {Orientalia Lovaniensia Analecta},
  editor = {Aston, D. A. and Bader, Bettina and Gallorini, Carla and Nicholson, Paul and Buckingham, Sarah},
  booktitle = {Under the Potter's Tree},
  year = {2011},
  location = {Leuven},
  booksubtitle = {Studies on Ancient Egypt Presented to Janine Bourriau on the Occasion of Her 70th Birthday},
  number = {204}}
@book{blobaum,
  author = {Bl{\"o}baum, A. I.},
  year = {2006},
  title = {``Denn ich bin ein K{\"o}nig, der die Maat liebt''},
  number = {4},
  publisher = {Shaker Verlag},
  subtitle = {Herrscherlegitimation im sp{\"a}tzeitlichen {\"A}gypten},
  location = {Aachen},
  series = {Aegyptiaca Monasteriensia},
  shorttitle = {Denn ich bin ein K{\"o}nig}}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
\nocite{leahy,blobaum,aristotle:physics,aristotle:poetics,kant:kpv,hyman}
\printbibliography
\end{document}

enter image description here