1

I need an in-text reference in LaTeX to display the result as Author (Year: Page)

Desired result:

According to Scott & McFeaters (2011: 116), battlefield archaeology has evolved into a reliable field of study.

My main page includes the following package reference

\RequirePackage[
    backend=biber,
    style=authoryear,
    isbn=false,
    doi=false,
    url=false,
    giveninits=true
  ]{biblatex}

\DeclareDelimFormat{finalnamedelim}{\addspace\&\space}

My code is:

According to \autocite[116]{scott_and_mcfeaters_2011}, battlefield archaeology has evolved into a reliable field of study

The article in my bib file is:

@article{scott_and_mcfeaters_2011,
    title = {The Archaeology of Historic Battlefields: A History and Theoretical Development in Conflict Archaeology},
    volume = {19},
    doi = {10.1007/s10814-010-9044-8},
    pages = {103--132},
    number = {1},
    journaltitle = {Journal of Archaeological Research},
    author = {Scott, Douglas and McFeaters, Andrew},
    date = {2011},
}

However I am getting the result:

According to (Scott & McFeaters 2011: 116), battlefield archaeology has evolved into a reliable field of study

The above reference will be correct for the end-of-paragraph reference but I need the in-text reference to be Scott & McFeaters (2011: 116)

1
  • You can have both citation types, see my renewed answer.
    – CarLaTeX
    Commented Apr 23, 2023 at 20:10

1 Answer 1

1

You get the format you like with \textcite.
Hence, you only need to set the \autocite to \textcite for inline citation with:

\DeclareAutoCiteCommand{inline}{\textcite}{\textcite}

You can have both citation types. You can get (Author, Year) with \parencite.

Here is a complete MWE:

\begin{filecontents*}[overwrite]{references.bib}
@article{scott_and_mcfeaters_2011,
    title = {The Archaeology of Historic Battlefields: A History and Theoretical Development in Conflict Archaeology},
    volume = {19},
    doi = {10.1007/s10814-010-9044-8},
    pages = {103--132},
    number = {1},
    journaltitle = {Journal of Archaeological Research},
    author = {Scott, Douglas and McFeaters, Andrew},
    date = {2011},
}
\end{filecontents*}

\documentclass{article}
\RequirePackage[
    backend=biber,
    style=authoryear,
    isbn=false,
    doi=false,
    url=false,
    giveninits=true
  ]{biblatex}

\DeclareDelimFormat{finalnamedelim}{\addspace\&\space}
\DeclareAutoCiteCommand{inline}{\textcite}{\textcite}

% from https://tex.stackexchange.com/a/66395/101651:
\renewcommand*{\postnotedelim}{\addcolon\addspace}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}

\addbibresource{references.bib}

\begin{document}
With text cite: \textcite[116]{scott_and_mcfeaters_2011}

With auto cite:

According to \autocite[116]{scott_and_mcfeaters_2011}, battlefield archaeology has evolved into a reliable field of study

You can have both citation type \parencite[116]{scott_and_mcfeaters_2011}.

\printbibliography
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .
https://tex.stackexchange.com/questions/683190/biblatex-in-text-reference-author-year-page
tex.stackexchange.com
CC-MAIN-2024-33
151322
application/http; msgtype=response
sha1:OVV65XHN5DN7OGD3ZYWH3KFP2Z7OPQ5Z
<urn:uuid:e14ecc0c-ca5a-4b1d-b63f-22fd64ed1b20>
2024-08-08T08:35:50Z
104.18.43.226
text/html
sha1:DUGMX2YDWZ77TKRLUXBJ6RNEZ4ZWARR3
<urn:uuid:b4c568ac-076e-4d67-ae8f-3f07e3d948ff>
https://tex.stackexchange.com/questions/683190/biblatex-in-text-reference-author-year-page
response
<urn:uuid:aa4ac58f-30f8-4d9c-b526-9927e45b6fb9>
isPartOf: CC-MAIN-2024-33
publisher: Common Crawl
description: Wide crawl of the web for August 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-108
software: Apache Nutch 1.20 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/