It is possible to solve your issue with natbib
(which provides a bunch of new \cite
- like commands, e.g. \citep
, \citet
, ...). I provided a new command called \citef
(the suffix 'f' stands for footnote :-)
Code
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\makeatletter
\newcommand*{\ibid}{Ibid.}
\let\@predcite\@empty
\let\@currcite\@empty
\def\citef{\kernel@ifnextchar[\citef@{\citef@[]}}
\def\citef@[#1]{\kernel@ifnextchar[{\citef@@[{#1}]}{\citef@@[][{#1}]}}
\def\citef@@[#1][#2]#3{%
\def\@currcite{#3}%
\unskip
\ifx\@currcite\@predcite
\footnote{#1 \ifx\tempa\@empty\unskip\fi%
\ibid\ifx\tempb\@empty\else\NAT@cmt #2\fi}%
\else%
\footnote{\citealp[#1][#2]{#3}}%
\fi
\gdef\@predcite{#3}%
}
\makeatother
\begin{document}
Some Text\citef{article-full}\par
Some Text\citef[11]{article-full}\par
Some Text\citef[cf.][13]{booklet-full}\par
\bibliographystyle{apalike}
\bibliography{xampl}
\end{document}
(Note that I also included an 'Ibid'-function, which is strongly recommended when using footcites.)
Output
Here is your example formatted using biblatex-apa
. As far as I know, this is a very accurate rendition of the current APA style. The one point of difference between your expected output and the actual output is the howpublished
fields you have in your entries. Those fields do not get printed in the style as currently configured. The howpublished
field is not a possible field for the @online
entry type, but organization
is, so I changed them to organization
in my version of your .bib
file, but this field is not printed in the biblatex-apa
output. The only field that is currently part of the @online
entry type in biblatex-apa
is the addendum
, which would be printed in parentheses after the URL. I've changed one bib item to show this.
It's not entirely clear to me what these fields are in your actual examples.
\documentclass{llncs}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@electronic{middlekid,
author = {MiddleKid},
title = {Re: {T}he Unfortunate Prerequisites and Consequences of Partitioning
Your Mind},
url = {http://scienceblogs.com/pharyngula/2007/01/the_unfortunate_prerequisites.php},
date = {2007-01-22},
entrysubtype = {Web log comment}
}
@electronic{middle,
Author = {Simon Newman},
Addendum = {The Finer Times: War, Crime and History Resource},
Keywords = {religion,middle age},
Urldate = {2014-07-04},
Title = {Religion in the Middle Ages},
Url = {http://www.thefinertimes.com/Middle-Ages/religion-in-the-middle-ages.html}
}
@electronic{secular,
Organization = {Der Spiegel},
Keywords = {secular},
Urldate = {2014-07-11},
Title = {10 Countries That Have Secular Governments},
Url = {http://religion.answers.com/secularism/10-countries-that-have-secular-governments}
}
@book{wallace,
Author = {Anthony Wallace},
Keywords = {history,religion},
Publisher = {New York: Random House},
Title = {Religion: an anthropological view},
Year = {1966}}
\end{filecontents*}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[hyphens]{url}
\usepackage[ngerman,british]{babel}
\usepackage{csquotes}
\usepackage[style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\DeclareLabeldate{%
\field{date}
\field{eventdate}
\field{origdate}
\field{urldate}
\literal{n.d.}
}
\usepackage[breaklinks=true]{hyperref}
\addbibresource{\jobname.bib}
\begin{document}
This is a citation \textcite{middle,secular,wallace,middlekid}.
\sloppy % needed in this case to allow one long URL to break correctly
\printbibliography
\end{document}
Best Answer
With your combination of (a) document class (
isuthesis
), (b) bibliography style (apa
), and (c) citation management pacakge (natbib
), I'm afraid I can't figure out how to provide a complete solution to your query: Loadingnatbib
with the optionnumbers
and using\citet
instead of\cite
does provide numerical labels for the entries in the bibliography, but it also generates citation call-outs of the form "Kumar [1]" rather than "Kumar (1991)". I'm afraid I wasn't able to figure out how to show the year label in the citation callouts while showing numerical labels in the bibliography.I can't help but make a few comments. The main issue, in my mind, is the following: Given that it appears that you want to use authoryear-style citation call-outs, why would you (or some adviser?) want to deliberately clutter up the bibliography, by providing numerical labels that serve no discernible purpose -- other than, possibly, to reveal easily how many pieces you've cited in total by looking at the final entry in the bibliography? But then, who even cares about wanting to count easily how many pieces were referenced?
Instead of getting too worked up over adding pointless numerical labels to the bib entries, I'd spend some time cleaning up and correcting the information actually contained in the bib file. If you compare your original input with the cleaned-up entries used in the example above, I think you'll find a few differences.