I am trying to get back refence page numbers into endnotes, so that the original page of the entry appears in the end note.
So far I have tried looking at redefining the relvent part of endnote.sty in my preample, but that is in TeX and quite new to me. So working in TeXWorks I have tried someting along these lines instead (this inserts the footnote/endnote number in the main text and then puts a url with notes in the end note sucessfully - its the back ref to the page that i can not get right - any help appreciated please):
Code: Select all
\RequirePackage{endnotes}
\let\footnote=\endnote
%: urlNote
\newcounter{thisPageRef}%
\setcounter{thisPageRef}{0}%
%
\newcommand{\urlNote}[2]{% #1 - url, then #2 - Notes
\refstepcounter{thisPageRef}\label{TN-\thethisPageRef}}
\href{#1}{#2}\footnote{P. \pageref{TN-\thethisPageRef}} \ #2 - \url{#1}}%
}% tn is an arbitary prefix I've tried \arabic{} and \value{}
%
%: -- reset endnotes // old information now redundant endnote.sty has been revised
%\makendnote takes two arguments (the superscripted endnote number and the text of the endnote)
%
%the default format is
%
%\long\def\makendnote#1#2{%
%\edef\@currentlabel{\csname p@footnote\endcsname#1}%
%\indent$^{#1}$#2}