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 trying to put the same footnote on to two different places - saving and re-using the footnote counter. Here is what I want to do (part of a larger doc - a paper out of my dissertation):

%Start LateX snippet%

$\Delta$ Age\footnote{\FNTabAge}        
\newcounter{savetmp01} \setcounter{savetmp01}{\value{mpfootnote}} %Save "a"%

Grade\footnote{\FNTabGrade}
\newcounter{savetmp02} \setcounter{savetmp02}{\arabic{mpfootnote}} %Save "b"%

Grade\footnotemark[\arabic{savetmp02}] x Non-English %Reuse "b" - works%

$\Delta$ Age\footnotemark[\arabic{savetmp01}] x Non-English %Reuse "a" - does not work. Instead it shows "b"%

I want to save the footnote counter first when defining $Delta$ Age, and then again when explaining Grade.

The first re-use works perfectly well (both show the same footnotemark "b"), but the second re-use does not work - I am getting "b" again, instead of "a" as I want it.

Any ideas? Already tried using \thesavetmp01 or \value{savetmp01}, but no luck.

share|improve this question
    
Welcome to TeX.sx! Tip: You can mark code by selecting it and hitting Ctrl + K (or clicking the button marked {} above the text field). Also, I removed the thanks. Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. –  Torbjørn T. Mar 20 '12 at 21:31
add comment

1 Answer

I am not sure if I understood your question correctly, but the savefnmark package seems to do what you need:

\documentclass{article}
\usepackage[paperheight=6cm]{geometry}% just for the example
\usepackage{savefnmark}

\begin{document}

Some text\footnote{footnote 1 in text} some more text\footnote{footnote 2 in text}\saveFN\sft\  and now more text and the same footnote counter that was saved\useFN\sft\ and perhaps more text and we finally use the counter one more time\useFN\sft.

\end{document}

enter image description here

share|improve this answer
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.