I want to display citations using a mix of apalike and ieeetr styles, something like:
[Chaitin, 1992 [3]]
Is there a BibTeX or Biblatex package that supports this style? (Or a way to tweak BibTeX to behave like this?)
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI want to display citations using a mix of apalike and ieeetr styles, something like:
[Chaitin, 1992 [3]]
Is there a BibTeX or Biblatex package that supports this style? (Or a way to tweak BibTeX to behave like this?)
This can be done with biblatex
. If we use numeric
we only need to enhance the bibmacro cite
a bit to include the name and year.
\DeclareFieldFormat{hardbrackets}{[#1]}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\printnames{labelname}%
\setunit{\nameyeardelim}%
\printfield{year}%
\setunit{\addspace}
\printtext[hardbrackets]{%
\printfield{prefixnumber}%
\printfield{labelnumber}%
\ifbool{bbx:subentry}
{\printfield{entrysetcount}}
{}}}}
MWE
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[babel,german=quotes]{csquotes}
\usepackage{lmodern}
\usepackage[style=numeric, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat{hardbrackets}{[#1]}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\printnames{labelname}%
\setunit{\nameyeardelim}%
\printfield{year}%
\setunit{\addspace}
\printtext[hardbrackets]{%
\printfield{prefixnumber}%
\printfield{labelnumber}%
\ifbool{bbx:subentry}
{\printfield{entrysetcount}}
{}}}}
\begin{document}
\cite{sigfridsson} and \cite{worman,geer}
\printbibliography
\end{document}
You can try this in bibtex:
\usepackage[round]{natbib}
\bibliographystyle{plainnat}
and use \citep
instead of \cite
Chaitrin, 1992a
) or a strange way of presenting a page/chapter/section number (oddly formatted way to sayChaitrin, 1992, p. 3
orChaitrin 1992, 3
). And I would be immediately distracted from whatever you wanted to say and annoyed by the fact that you'd decided to make it difficult for me to understand you.numeric
andauthoryear
styles but does not offer an additional value. One of [3] or "Chaitin, 1992" (if done correctly) is enough to identify the citation uniquely.