EDIT: Added the complete cite macro from my aglc2.cbx file.
EDIT: Added the cite:save macro as suggested by domwass
EDIT: Added these links to files to reproduce the problem
UPDATE: I think I have this solved now. Key was as @domwass suggested to create a cite:save
macro. Updated code is below
- tmp.tex - contains sample code
- tmp.pdf - this is what it looks like
- bibliography.bib - needs no introduction
- lawessay.cls - lawessay style I use for the tex source (adapted from Will Hardy's style)
- aglc2.bbx - BBX file for the lawessay style
- aglc2.cbx - CBX file. The code snippet below comes from this
Hi, I think this is a newbie question. In my biblatex cite
macro I have this code:
\newbibmacro*{cite:save}{%
\csxdef{cbx@\thefield{entrykey}}{\the\value{instcount}}%
\label{cbx@\the\value{instcount}}%
}
\newbibmacro*{cite}{%
\global\boolfalse{cbx@loccit}%
\ifciteseen
{%
\iffieldundef{shorthand}
{%
\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{%
% citeibid is true and this citation has been seen on this page previously
% and citation is in a footnote
\usebibmacro{cite:ibid}%
} {%else
% either citeibid is false or this is the first time the citation appears
% on this page
\ifthenelse{\(\equal{\thefield{entrytype}}{jurisdiction}\or%
\equal{\thefield{entrytype}}{legislation}\or%
\equal{\thefield{entrytype}}{legal}\)%
\or\not\ifciteseen}
{%
% If the entry is a jurisdiction or legislation or legal
% or if the citation has not been seen before
% ie: this is how to print a first citation. Legislation, legal and
% jurisdictions are always printed as though they were a first citation.
\usebibmacro{cite:short}%
} {% else
% Must be something else or a subsequent citation
\usebibmacro{author/editor:surname}%
above n\addnbspace%
\ref{cbx@\csuse{cbx@\thefield{entrykey}}}%
}
} {%
% shorthand field is defined
\usebibmacro{cite:shorthand}%
}
}
} {%
% citation has not been seen before
\usebibmacro{cite:full}
}
}
So when a footnote is printed as ...'above n xx' the xx is the page number. How can I set it to be the footnote number?
pageref
.\cite
with\footnote
. At the moment it is very hard to see what's going on.\printlist[last]{pageref}
with\the\value{instcount}
I get the footnote number of the previous time the item is cited but not the first time it is cited.