Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Biblatex Bibliography - removing "et al"

4,596 views
Skip to first unread message

Brett

unread,
Apr 26, 2012, 2:56:15 AM4/26/12
to
Hi all

I'm trying to use biblatex for the first time for a uni assignment
(through LyX) and it is working ok, except I can't get biber working
in Windows so using bibtex8 for rendering. Anyway, that aside, a minor
problem I have is that my uni needs me to use "et al." for in-text
referencing with >=4 authors, but all authors' names in the
bibliography.

I'm no TeX expert, but is there some kind of preamble or parameters I
can pass to \printbibliography which will allow me to do this?

TIA

Brett.

jon

unread,
Apr 26, 2012, 12:30:56 PM4/26/12
to
these are options you pass to biblatex. it sounds to me like you need
the following:

\usepackage[
maxcitenames=4, mincitenames=4,
maxbibnames=99, minbibnames=99 % <-- or some absurd number
]{biblatex}

see the biblatex manual for more information, §. 3.1.2.1 (for biblatex
1.6).

cheers,
jon.

Brett

unread,
Apr 29, 2012, 12:30:33 AM4/29/12
to
On Apr 27, 2:30 am, jon <jonwrobin...@gmail.com> wrote:
> these are options you pass to biblatex.  it sounds to me like you need
> the following:
>
> \usepackage[
>   maxcitenames=4, mincitenames=4,
>   maxbibnames=99, minbibnames=99 % <-- or some absurd number
> ]{biblatex}

This seemed to do the job, however I've now found another conundrum.
The output of \printbibliography shows me all 4 names now, formatted
as thus:

Morris, M.H., S. Coombes, S. Schindehutte, and J. Allen (2007).
"Antecedents and Outcomes of Entrepreneurial and Market Orientations
in a Non-pro fit Context: Theoretical and Empirical Insights" . In:
Journal of Leadership & Organizational Studies 13.4, pp. 12 -39.

This is based on the following bibtex entry:

@ARTICLE{morrisetal,
author = {Morris, M.H. and Coombes, S. and Schindehutte, S. and
Allen, J.},
title = {Antecedents and Outcomes of Entrepreneurial and Market
Orientations
in a Non-profit Context: Theoretical and Empirical Insights},
journal = {Journal of Leadership \& Organizational Studies},
year = {2007},
volume = {13},
pages = {12-39},
number = {4},
owner = {brett},
timestamp = {2012.04.11}
}

So I have three questions:

1. The author appears to be rendered properly for Morris, M.H. but
then the initial and surname are swapped for the remainder. Do you
know why this may be?
2. Do you know how I can get rid of the paranthesis around the year
(i.e. "(2007)").
3. Do you know how I can get rid of the "In: " which precedes the
journal name?

Apologies if these are covered in the manual... I'm struggling to get
my head around the technicalities of this. I know virtually no TeX and
am using LyX because I love the formatting and simplicity. Trying to
get Harvard-style referencing though is causing me headaches, I'm
spending more time on that than my research work :)

Appreciate your help.

Brett.

jon

unread,
Apr 29, 2012, 4:32:47 PM4/29/12
to
that is the default behaviour. if you want to change it, add this to
your preamble:

% keep author sorting scheme in form "Lastname, Firstname"
\DeclareNameAlias{sortname}{last-first}

> 2. Do you know how I can get rid of the paranthesis around the year
> (i.e. "(2007)").

this is a pain to fix yourself, though it appears that there is a new
package, xpatch.sty, that can solve this easily. i haven't tried it
myself yet, but look at the answer here:
http://tex.stackexchange.com/a/40710/8528

(in fact, [biber and] biblatex questions are often answered very
quickly there.)

> 3. Do you know how I can get rid of the "In: " which precedes the
> journal name?

add this to your preamble.

% suppress the "In:" for @article
(only):
\renewbibmacro{in:}
{%
\ifentrytype{article}{}
{%
\printtext{\bibstring{in}\intitlepunct}}}

if you want to get rid of the 'in:' entirely, use \renewbibmacro{in:}
{} --- but i assume you want to keep it for @inproceedings,
@incollection, etc.

cheers,
jon.

Brett

unread,
Apr 29, 2012, 9:19:45 PM4/29/12
to
On Apr 30, 6:32 am, jon <jonwrobin...@gmail.com> wrote:
> On Apr 29, 12:30 am, Brett <brett.rand...@gmail.com> wrote:
> > 1. The author appears to be rendered properly for Morris, M.H. but
> > then the initial and surname are swapped for the remainder. Do you
> > know why this may be?
>
> that is the default behaviour.  if you want to change it, add this to
> your preamble:
>
> % keep author sorting scheme in form "Lastname, Firstname"
> \DeclareNameAlias{sortname}{last-first}

Worked perfectly

> > 2. Do you know how I can get rid of the paranthesis around the year
> > (i.e. "(2007)").
>
> this is a pain to fix yourself, though it appears that there is a new
> package, xpatch.sty, that can solve this easily.  i haven't tried it
> myself yet, but look at the answer here:http://tex.stackexchange.com/a/40710/8528
>
> (in fact, [biber and] biblatex questions are often answered very
> quickly there.)

Just installed xpatch and followed the instructions here, worked a
treat! Will keep an eye on that list and post there when necessary
also.

> > 3. Do you know how I can get rid of the "In: " which precedes the
> > journal name?
>
> add this to your preamble.
>
> % suppress the "In:" for @article
> (only):
> \renewbibmacro{in:}
> {%
>   \ifentrytype{article}{}
> {%
>   \printtext{\bibstring{in}\intitlepunct}}}
>
> if you want to get rid of the 'in:' entirely, use \renewbibmacro{in:}
> {} --- but i assume you want to keep it for @inproceedings,
> @incollection, etc.

This also worked perfectly! I thought I would be smart and try and
modify this to remove "URL: " from electronic references with the
below, but it didn't have any effect, any ideas why?

% suppress the "URL:" for @electronic (only):
\renewbibmacro{url:}
{%
\ifentrytype{electronic}{}
{%
\printtext{\bibstring{url}\intitlepunct}}}

Appreciate your help.

Brett.

jon

unread,
Apr 30, 2012, 1:54:17 PM4/30/12
to
this one is easier, i think. the default declaration in biblatex.def
is
\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{#1}}

but you can 'add' a declaration that is restricted to the 'online' and
'electronic' forms. (in standard biblatex, @electronic is an alias for
@online; i'm not sure if this is true for the style you use....) to
do so, add this to your preamble:

\DeclareFieldFormat[online, electronic]{url}{\url{#1}}

this will only print the actual url in the bibliography entries for
those two entry types, while other entries (e.g., @article) will still
get 'URL: www.whatever.com'. if you want to get rid of the 'URL' for
every entry, omit the optional argument for \DeclareFieldFormat.

cheers,
jon.

Brett

unread,
May 1, 2012, 7:07:59 AM5/1/12
to
On May 1, 3:54 am, jon <jonwrobin...@gmail.com> wrote:
> \DeclareFieldFormat[online, electronic]{url}{\url{#1}}
>
> this will only print the actual url in the bibliography entries for
> those two entry types, while other entries (e.g., @article) will still
> get 'URL:www.whatever.com'.  if you want to get rid of the 'URL' for
> every entry, omit the optional argument for \DeclareFieldFormat.

Fixed it perfectly! I think I'm gradually learning how everything fits
together now. By searching on some of the tips you've given me along
the way, I've come across the following great blog post:

http://tex.stackexchange.com/questions/12806/guidelines-for-customizing-biblatex-styles

At this point, I have one remaining question! One of my bibliography
entries has the author field showing up like:

Jaskyte, K. and Riobó, M.S.R.M. de. 2004

However, in by .bib file, the author is defined like this:

author = {Jaskyte, K. and de Riobó, M.S.R.M.}

Do you know why the "de" is being moved, and how I can work around
this?

After that, I think I'm basically there and have figured the rest out.
Thanks!

Brett.

jon

unread,
May 1, 2012, 9:20:12 PM5/1/12
to
On May 1, 7:07 am, Brett <brett.rand...@gmail.com> wrote:
> At this point, I have one remaining question! One of my bibliography
> entries has the author field showing up like:
>
> Jaskyte, K. and Riobó, M.S.R.M. de. 2004
>
> However, in by .bib file, the author is defined like this:
>
> author = {Jaskyte, K. and de Riobó, M.S.R.M.}
>
> Do you know why the "de" is being moved, and how I can work around
> this?

for this, you need to look at the biblatex option 'useprefix'. by
default biblatex loads useprefix=false, which means it is not
alphabetizing by the (so-called) 'von' part of the name (or, in your
case, the 'de' part of the name). so if M.S.R.M. de Riobó were the
only author, it would be located after 'randall, bob' in the
bibliography (but before 'robinson, jon'), rather than among the 'd's
of the bibliography. useprefix=true will generically sort all such
names by their 'von' part instead. the section 'name parts and name
spacing' gives a detailed explanation of how powerful biblatex is in
this respect.

however, biblatex gives you two choices to get around this for special
cases:

1. use the sortname field (e.g., sortname = {Riobo, M. S. R. M.},):
sortname overrides auther, editor, etc., without changing how the name
appears in the bibliography. (you could even do sortname = {zzzzz}
and put someone at the very end if you really wanted to do so.)

2. use biber instead of bibtex as the backend (i.e.,
\usepackage[useprefix=true, backend=biber]{biblatex}); with biber you
can do things like this on a case-by-case basis.

... and there is always the old bibtex tricks like putting the name in
braces {de~Riob{\'o}}, M. S. R. M., but there is little to recommend
about this approach given its inherent inflexibility and that it is
simply designed to 'trick' bibtex into doing your bidding. (in all
honesty, my .bib file is still riddled with these from before i used,
or understood, biblatex.)

cheers,
jon.

Brett

unread,
May 3, 2012, 1:31:43 AM5/3/12
to
On May 2, 11:20 am, jon <jonwrobin...@gmail.com> wrote:
> On May 1, 7:07 am, Brett <brett.rand...@gmail.com> wrote:
>
> > At this point, I have one remaining question! One of my bibliography
> > entries has the author field showing up like:
>
> > Jaskyte, K. and Riobó, M.S.R.M. de. 2004
>
> > However, in by .bib file, the author is defined like this:
>
> > author = {Jaskyte, K. and de Riobó, M.S.R.M.}
>
> > Do you know why the "de" is being moved, and how I can work around
> > this?
>
> for this, you need to look at the biblatex option 'useprefix'.  by
> default biblatex loads useprefix=false, which means it is not
> alphabetizing by the (so-called) 'von' part of the name (or, in your
> case, the 'de' part of the name). so if M.S.R.M. de Riobó were the
> only author, it would be located after 'randall, bob' in the
> bibliography (but before 'robinson, jon'), rather than among the 'd's
> of the bibliography. useprefix=true will generically sort all such
> names by their 'von' part instead.  the section 'name parts and name
> spacing' gives a detailed explanation of how powerful biblatex is in
> this respect.

Thanks Jon! useprefix=true seems to have done precisely what I needed.

Appreciate all your help.

Brett.
0 new messages