BibTeX, biblatex and bibercomma in \citealt

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

comma in \citealt

Post by snowfrog »

Hi,

I've got a citation that goes
(e.g see Author1,1990, for Model1; Author2,1992, for Model2; Author3,1993, for Model3)
To get this, I wrote

Code: Select all

(\textit{e.g.} see \citealt{Author1} for Model1; \citealt{Author2} for Model2; \citealt{Author3} for Model3)
but the citation prints as

Code: Select all

Author1 1990
whereas what I would like is

Code: Select all

Author1, 1990
Could anybody suggest what to do?

The package I use is natbib and the \bibliographystyle{apalike}.

Thanks!

Recommended reading 2024:

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

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

snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

comma in \citealt

Post by snowfrog »

Solved it!

Probably not the best way to do it but I'm now doing

Code: Select all

\citeauthor{Author1}, \citeyear{Author1}, for Model1;
magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

comma in \citealt

Post by magicmoose »

A quick way of making it a bit easier might be to put

Code: Select all

\newcommand{\citeay}{\citeauthor{#1}, \citeyear{#1}}
in your preamble so you only have to do \citeay{author} to get the reference
RebeccaMqamelo
Posts: 1
Joined: Thu Nov 04, 2021 11:17 pm

comma in \citealt

Post by RebeccaMqamelo »

The command you are looking for is

Code: Select all

\citealp
See the official docs here: https://gking.harvard.edu/files/natnotes2.pdf
Post Reply