Page Layoutclassicthesis | Footnote and '\cref'

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
gbernardi
Posts: 3
Joined: Fri Jul 01, 2011 7:08 pm

classicthesis | Footnote and '\cref'

Post by gbernardi »

Hello everybody.
I've just subscribed to the forum to ask for some help in a problem I'm having with the classicthesis template.
Basically, I realized that using the command footnote in classicthesis before I define an equation, causes all the references I make to the mentioned equation to link to the footnote.
E.g.

Code: Select all

\footnote{bla bla bla\label{fn:example}}
%
%
\begin{eqnarray}
% \nonumber to remove numbering (before each equation)
 a &=&  b \label{eq:eq1}\\
 c &=& d  \label{eq:eq1}
\end{eqnarray}
%
%
Bla bla bla \cref{eq:eq1} bla bla bla
causes the last line in the code to be:
Bla bla bla Footnote 1 bla bla bla
As you may have noticed, I used the package cleveref for references.

I know that I should provide minimal example, but I'd have to include quite a lot of files to do it.
I just wanted to know if somebody has had this problem before.

Thanks in advance
Giuliano
Last edited by gbernardi on Sat Jul 02, 2011 8:53 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

classicthesis | Footnote and '\cref'

Post by localghost »

gbernardi wrote:[…] I know that I should provide minimal example, but I'd have to include quite a lot of files to do it. […]
You have not understood the principal of a minimal example. It contains only the relevant code that reproduces the problem. In your case probably the footnote and the equation system. I don't think that the problem is related to the classicthesis package. And just for notification, you are defining the label eq:eq1 two times.

And by the way, there are very good reasons not to use the eqnarray environment any more [1]. Use the structures of the amsmath package, which are enhanced by the mathtools package.

[1] The PracTeX Journal — TeX Users Group, Lars Madsen: Avoid eqnarray!


Best regards and welcome to the board
Thorsten
gbernardi
Posts: 3
Joined: Fri Jul 01, 2011 7:08 pm

classicthesis | Footnote and '\cref'

Post by gbernardi »

localghost wrote:
gbernardi wrote:[…] I know that I should provide minimal example, but I'd have to include quite a lot of files to do it. […]
You have not understood the principal of a minimal example. It contains only the relevant code that reproduces the problem. In your case probably the footnote and the equation system. I don't think that the problem is related to the classicthesis package.
I'm sorry for that :roll: . But since I started to use classicthesis, I've had quite a lot of problems with it. So I tend to be quite biased in my judgement at the moment :D (even though I think this template really rocks :D )
And just for notification, you are defining the label eq:eq1 two times.
Just a typo :)
And by the way, there are very good reasons not to use the eqnarray environment any more [1]. Use the structures of the amsmath package, which are enhanced by the mathtools package.

[1] The PracTeX Journal — TeX Users Group, Lars Madsen: Avoid eqnarray!
Thank you for the advice. I didn't know about it. And actually it solved my problem :D Damn eqnarray :twisted:
Best regards and welcome to the board
Thank you very much. I come here quite often and I really appreciate the help of this community. A bit more now ;)

Ciao
Giuliano
Post Reply