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 am using two kinds of footnotes:

  1. To show english equivalent of a term.
  2. To explain something in more detail or to refer to the required section.

I want to have an index of the first-type footnotes at the end of my document like a toc (or like a four column table with 2 pairs of english/equivalent headers). Do we have a package or command for that?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You could use the endnote package and define a special command for making a note into both a footnote and an endnote.

\newcommand{\mynote}[1]{\footnote{#1}\endnote{#1}}

Or you can just use the index package makeidx, if you want it ordered alphabetically.

\newcommand{\mynote}[1]{\footnote{#1}\index{#1}}

The second works like this

\documentclass{article}
\usepackage{makeidx}
\makeindex
\newcommand{\mynote}[1]{\footnote{#1}\index{#1}}
\begin{document}
the red colour\mynote{color in american english} here
\printindex
\end{document}

You have to run latex (or pdflatex) twice and also makeindex for sorting the output, so saving the above as mwe.tex, execute the following:

pdflatex mwe
makeindex mwe
pdflatex mwe

If you are using a special TeX-editor like Kile oder TeXnicCenter, there might be options to enable this behavior.

There are possibilities to change the layout of the index, using index style files and document class specific functions, but that would probably be a different question.

share|improve this answer
    
Should I use it Like \mynote{Text}? Using it this way, gives me the error "index type 'default' undefined". I am using the second command. –  Yasser Sobhdel Jan 4 '11 at 12:52
    
Yes, something like the red colour\mynote{color in american english} here. –  Carsten Thiel Jan 4 '11 at 12:56
    
Can you please provide me with a minimal working example of the second. I am still receiving the error "index type 'default' undefined" –  Yasser Sobhdel Jan 4 '11 at 13:03
    
OMG, I was using the index package "\usepackage{index}" :D. Thanks a lot. –  Yasser Sobhdel Jan 4 '11 at 13:22
    
Sorry, I improved the markup. Btw backticks for marking code are also possible in comments. –  Carsten Thiel Jan 4 '11 at 13:25
add comment

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.