Friday, March 16, 2012

End notes and Foot notes in LaTeX

So I was writing up notes for a reading group on Afghanistan, and it has apparently become fashionable to use endnotes in the humanities. Being fond of Edward Gibbon, I use footnotes excessively. Irritating everyone, I use both while making it indistinguishable whether I refer to a footnote or endnote by a superscripted number.

How to do this in LaTeX? Quite simple:



    \expandafter\let\csname c@#1\expandafter\endcsname\csname c@#2\endcsname

Blah blah blah.

It turns out to work quite well.

I modified some macros from a TeX Stackexchange discussion on "slave counters" I get only partial credit.