I would like to make author's name, year and citation index/number every time I make a reference. I found useful this question, from which I take my example:
Make \cite{my reference} show name and year
For example:
my_bibtex.bib has this entry:
@article{Franklin1999,
author = "Franklin Allen and Risto Karjalainen",
title = "Using genetic algorithms to find technical trading rules",
year = "1999",
volume = "51",
pages = "245-271",
journal = "Journal of Financial Economics"
}
If in my_paper.tex I use this line:
Important result has been found by \cite{Franklin1999}
My output looks like:
Important result has been found by [1]
But I want it too look like:
Important result has been found by Franklin (1999) [1]
I there a way to do it? I would like also to have the possibility to switch from one to other citation style within the text.
biblatexas the tag suggests or a BibTeX-based bibliography (as in the linked question)? Which bibliography style and citation style (settings) do you use? – moewe Jan 03 '22 at 15:34natbib(via\citet) andbiblatex(via\textcite) would allow you to obtain "Franklin [1]" without any further modification. (Do you really need the year?) – moewe Jan 03 '22 at 15:35natbib\citetwill produce "Franklin [1]" (in numeric styles) or "Franklin (1999)" (in author-year styles) and\citepwill produce "[1]" (numeric) or "(Franklin, 1999)" (author-year), provided you use a compatible bibliography style (e.g.plainnat). – moewe Jan 03 '22 at 15:49\citetI get the same as with\citethat is "Franklin (1999)". With\citepi get "(Franklin, 1999)". Let say that I want to add to each of the citations the "[1]". Is is possible? – Barbab Jan 03 '22 at 15:54natbibyou could use a combination of\citeauthor,\citeyearparand\citepif you use a numeric style. The question is whether that is much better than just a numeric style with\citet. (With numeric style I mean something like\usepackage[numbers]{natbib}such that the bibliography shows numbers.) Note that throwing together several\cite...commands needs care if you want to cite multiple sources at once and if you want to deal with pre- and post-notes properly. You usually end up with something not particularly elegant. – moewe Jan 03 '22 at 16:17