Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I was wondering if I'll have the option to add something like \listoffootnotes in my document like I can use \listoffigures or tables...

Anyone knows how?

share|improve this question
1  
Would you mind clarifying why would you need that? I'm not sure whether LaTeX is able to keep track of footnotes, and since they don't have a title, it would look somewhat weird if they are accumulated in a list. Can you post a mockup how such list could look like, and we can try to work out something. –  Martin Tapankov Sep 30 '10 at 7:48
    
Well, this is like a second bibliography. In footnotes I have all links and in bibliography just books/articles. It should look like other lists with page number and so on... Thanks mindcorrosive :) –  nowf Sep 30 '10 at 8:02
2  
Maybe you could use endnotes instead of footnotes? Or make extensive use of the footcite command and then print a normal bibliography at the end. [footcite might be a biblatex thing, rather than bibtex, I can't remember] –  Seamus Sep 30 '10 at 10:41
    
Here is a solution for a very similar problem: tex.stackexchange.com/a/40504/10570. It is a general approach so that one can use it for listing almost everything. –  Holle Feb 12 '12 at 16:49
    
@Holle "Answers" that (for the most part) consist of a link to another tex.sx answer should be comments instead. –  lockstep Feb 12 '12 at 16:55

2 Answers 2

up vote 5 down vote accepted

I wouldn't recommend a \listoffootnotes command for this — instead, you should define a new command like \externallink{...} which then populates a \listoflinks command. Then write

\footnote{\externallink{{...}}

Or something along those lines. Anyway, to create new "List of..." lists, you can use the tocloft package. Here's an example:

\documentclass{article}
\usepackage{tocloft,url}
\newlistof{links}{lks}{List of Links}
\newcommand\externallink[1]{%
  \refstepcounter{links}%
  \footnote{\url{#1}}%
  \addcontentsline{lks}{links}{%
    \protect\numberline{\thelinks}%
    \protect\url{#1}}%
}
\begin{document}
\listoflinks
\section{Start}
Google\externallink{gmail.com}
and Yahoo\externallink{mail.yahoo.com}
and Microsoft\externallink{hotmail.com}
all have webmail.
\end{document}

mindcorrosive's answer is also very sensible.

share|improve this answer
    
I think your solution is cleaner, and spares the hassle of an additional bibliography. –  Martin Tapankov Sep 30 '10 at 8:47
    
Depends, really, on what the links are, etc. etc. I wouldn't think it out-of-place to have a bibtex database of online references with publishing dates, authors, and so on, in which case a 2nd bibliography would be rather sensible. –  Will Robertson Sep 30 '10 at 8:57

From your clarification, this is how I would try to do it:

Use two separate bibliographies, with the help of the multibib package and give each an appropriate name. Set the first one for the books and articles, and the second one for the URLs (that is, your footnotes). See this question on info how to cite URLs. You would have to add footnotes as \footnote{\cite{}}.

I don't have enough time for testing this right now, but give this a try, and if it doesn't work, I'll try to edit this with an example later.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.