[Tugindia] Reference as footnote
Kapil Hari Paranjape
kapil at imsc.res.in
Fri Oct 10 10:18:42 CEST 2003
Hello,
On Wed, Oct 08, 2003 at 11:27:42AM +0530, Renugopal M wrote:
>
> I want to get the reference [1] for a article as footnote
> (e.g.)
>
> _______
>
> [1] xyz et al ......
>
>
The following worked for me. But be warned that this seems to be
brittle. In particular, it broke when used with hyperref which does
things with citations.
==============example.tex==============
\documentclass{article}
\usepackage{bibentry}
\let\oldcite=\cite
\renewcommand{\thefootnote}{}
\renewcommand{\cite}[1]{\oldcite{#1}\footnotetext{\oldcite{#1}\bibentry{#1}}}
\begin{document}
\bibliographystyle{unsrt}
\nobibliography{ref}
This is just a reference to \cite{DontRead} which should now appear as a
footnote.
\end{document}
==============example.tex==============
===============ref.bib================
@article {DontRead,
AUTHOR = {Knows, O},
TITLE = {This paper is really not worth reading},
JOURNAL = {Proc. Royal Soc. of Cooch Nahin},
VOLUME = {103},
YEAR = {1993},
NUMBER = {3},
PAGES = {209--247},
}
===============ref.bib================
Some notes:
1. The use of a bibtex bibligraphy is essentially essential. Run latex
on example.tex, then bibtex on example.aux and finally run latex
twice more.
2. The use of unsorted bibliography style ensures that references appear
in the order cited.
3. Purists may object that the "empty" footnotemark is not quite the
same as having no footnotemark at all. But other solutions seemed
to require more "hacking".
Regards,
Kapil.
--
Computers are like air conditioners. Both stop working, if you open windows.
-- Adam Heath
--
More information about the tugindia
mailing list