Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reference to footnote using cleveref

438 views
Skip to first unread message

Sebastian Lohmeier

unread,
Apr 5, 2010, 11:56:31 AM4/5/10
to
Hello,

I am trying to create references to footnotes with cleveref. cleveref
does not detect references of type "footnote" by default (see the first
example in the attached minimal document). In this case, I get the warning

LaTeX Warning: \Cref reference format for label type `' undefined on
input line 14.

When defining a new type of reference as described in the package
documentation (second example), I get an error:

! Use of \cref@override@label@type doesn't match its definition.
\@currentlabel ->2
l.18 ...ote{1st footnote \label[footnote]{fn:bar}}

What am I doing
I use the latest cleveref package (2009/12/11 v0.15.3) from CTAN.


Does anyone have an idea how to solve this problem?


Thanks in advance.
Sebastian


% minimal example:
% ----------------------------------------------------------
\documentclass{article}

\usepackage{cleveref}
%% define new reference type 'footnote':
\crefname{footnote}{footnote}{footnotes}
\crefformat{footnote}{#2footnote~#1#3}
\Crefformat{footnote}{#2Footnote~#1#3}

\begin{document}

First example:

Text\footnote{1st footnote \label{fn:foo}}. Reference to
\cref{fn:foo}.


Second example:

More text\footnote{2nd footnote \label[footnote]{fn:bar}}. Another
reference to \cref{fn:bar}.

\end{document}

0 new messages