1

In my text citations, I would like to have the following:

1 author   -> show 1 author
2 authors  -> show both authors
3+ authors -> show only one author et al

I've tried maxnames 1 and maxnames 2 but both didn't work.

sorry, I am new to this platform. My current setup is:

\documentclass[12pt,a4paper]{article}
\usepackage{etex}
\usepackage[style=authoryear, backend=biber, maxnames=2, minnames=1]{biblatex} 
\addbibresource{Quellen.Stand.19.05.25.bib}
\DeclareFieldFormat{url}{\textnormal{\url{#1}}}
\DeclareFieldFormat{urldate}{\textnormal{\url{#1}}}
\renewcommand*{\bibfont}{\normalfont\fontsize{8}{10}\selectfont}
\usepackage{csquotes}
\usepackage{url}
\usepackage{xurl} %für Line-Breaks in URL
\usepackage{xcolor}
\usepackage[colorlinks=true, linkcolor=cyan, urlcolor=cyan, citecolor=cyan]{hyperref}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{balance}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage{geometry}
\usepackage{tabularx}
\usepackage{booktabs} %für Tabellen
\usepackage{float} %damit Tabellen an meinem erwünschten Platz auftauchen
\usepackage{caption} %um Tabelle caption DInge zu tun
\usepackage{graphicx} % For including images
\usepackage[absolute,overlay]{textpos} % For positioning the image
\usepackage{multicol} %für Text in 2 Spalten
\usepackage{subcaption}
\usepackage{changepage}
\usepackage{makecell}

does that help?

5
  • Please add a short, but compilable test file which allows us to reproduce the problem. It should include a class, the necessary packages and a document environment. Commented May 19 at 16:33
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented May 19 at 16:35
  • Welcome to TeX.SE. I've taken the liberty of replacing the author tag with biblatex. If I've misunderstood your formatting objective, feel free to revert.
    – Mico
    Commented May 19 at 16:42
  • Incidentally, claims such as "it didn't work" are rather tricky to interpret. It would really help if you were a bit more specific. For instance, are you getting error and/or warning messages? If so, what do these messages say? Even if the test document compiles without errors or warnings, it's still very helpful to describe what "didn't work" entails.
    – Mico
    Commented May 19 at 17:10
  • 1
    maxnames should in principle be the right choice (modulo picking maxcitenames or maxbibnames): See tex.stackexchange.com/q/1554/35864. Often the uniquelist feature causes some confusion here, though: tex.stackexchange.com/q/69028/35864.
    – moewe
    Commented May 19 at 20:41

1 Answer 1

1

I think that what you want is maxcitenames=2.

enter image description here

\documentclass{article}
\begin{filecontents}[overwrite]{mybib.bib}
@misc{A,   author="A",             title="Thoughts", year=3001}
@misc{AB,  author="A and B",       title="Thoughts", year=3002}
@misc{ABC, author="A and B and C", title="Thoughts", year=3003}
\end{filecontents}

\usepackage[style=authoryear, % or some other appropriate style
            natbib, % optional
            maxcitenames=2]{biblatex}
\addbibresource{mybib.bib}

\begin{document}
\citet{A}, \citet{AB}, \citet{ABC}
\printbibliography
\end{document}
4
  • When having maxcitenames=2 why are there still 3 authors shown (A,B and C`?
    – albert
    Commented May 19 at 17:15
  • @albert - The OP set the citing tag and used the term "text citations" when describing their formatting objective. This makes me believe that the focus is on how the citation call-outs, and not on how the bibliographic entries, should be formatted. The OP also mentioned (admittedly rather unclearly) that maxnames=2 "didn't work"; unfortunately, the OP didn't specify what "didn't work" entails. However, the context makes me believe that for the case at hand, "didn't work" could mean "went too far". Let's see if the OP weighs in with some [highly welcome!] clarifying information.
    – Mico
    Commented May 19 at 17:31
  • i tried maxcitenames 1 and maxcitenames 2 but still for some of my references that are more than 2 authors, its cited as author1 autor 2 et al and not as author 1 et al
    – Fini
    Commented May 21 at 8:38
  • @Fini - Did you try using the piece of advice that moewe provided in a comment, viz., to set the option uniquelist=false? (By default, the authoryear option automatically sets \uniquelist=true; this can override the setting maxcitenames=2 for some entries. See p. 76 of the user guide of the biblatex package for more information.
    – Mico
    Commented May 21 at 9:27

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.