BibTeX, biblatex and biberSquare brackets around the year in secondary citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ostwaertstramper
Posts: 1
Joined: Sat Feb 28, 2015 3:27 am

Square brackets around the year in secondary citations

Post by ostwaertstramper »

Hi!

I want to cite Gilovich (1985), cited in Ayton (2004). I use the following code:
\citet[cited in \cite{Ayton2004}]{Gilovich1985}

It almost works. I get the following:
Gilovich et al. (1985, cited in Ayton and Fischer (2004))
Now I want the brackets around 2004 to be square brackets. I'd appreciate any help. Thanks in advance!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Square brackets around the year in secondary citations

Post by Johannes_B »

Hi and welcome,

i have no idea how to do that, neither with the new and modern biblatex, nor with the older (and not recommended anymore) packages for bibtex.

Please prepare a minimal working example, that shows how you are citing. Depending on how often that happens, you will get better results by doing it manually.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Square brackets around the year in secondary citations

Post by Stefan Kottwitz »

Welcome to the forum!

I guess it's pretty rare, so you could do it manually.

However, you could find a better approach then "nesting".

In any case, I would avoid the inconsistency of having parentheses and square brackets for years for citations. I would use the same style. Book is book, citation is citation, a citation of another book is a citation as well.

Stefan
LaTeX.org admin
Post Reply