BibTeX, biblatex and biberConditional number of authors in biblatex citation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
tseccull
Posts: 2
Joined: Mon Dec 31, 2018 8:24 pm

Conditional number of authors in biblatex citation

Post by tseccull »

Hi!

I'm currently writing my PhD thesis and I'm using biblatex for the first time. I'm having trouble formatting my citations conditionally based on the number of authors an article has.

For example if I have three articles (all made up of course :P):
Weyland, B. (2018) Journal of Extreme Surgery, 23, 65
Weyland, B., White, P. and Venture, T.S. (2017) Monthly Notices of the Superscience Society, 24, 7
Orpheus, B. and Twilight, J. (2014) Vampirism and Necromancy, 503, 321

I want the respective citations to look like the following:
(Weyland 2018)
(Weyland et al. 2017)
(Orpheus and Twilight 2014)

Right now, however, I can only get:
(Weyland 2018)
(Weyland et al. 2017)
(Orpheus et al. 2014)

How can I get biblatex to put all authors in the citation, but only in the cases where there are only two authors on the article? Any help you can offer is appreciated, thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Conditional number of authors in biblatex citation

Post by Johannes_B »

mincitenames=2
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
tseccull
Posts: 2
Joined: Mon Dec 31, 2018 8:24 pm

Conditional number of authors in biblatex citation

Post by tseccull »

Johannes_B wrote:mincitenames=2
Hi Johannes, sorry this isn't what I'm looking for. If an article has 1 author I want it to look like (Author_A Year), if it has 2 authors I want it to look like (Author_A and Author_B Year), and if it has 3+ authors I want it to look like (Author_A et al. Year). In the case of 3+ authors what you recommend gives (Author_A, Author_B et al. Year), where what I want is (Author_A et al. Year) with only the first author named; at the same time I want both authors to be named on papers with only two authors.

If you know how please could you advise on how I could get my citations to look like this? Sorry if my previous question was not clear enough.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Conditional number of authors in biblatex citation

Post by Johannes_B »

I guess i meant to say maxcitenames=2.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply