Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When I try to put a footnote into a definition environment (or theorem, etc.) it fails, whereas it works well in plain text...

How can I fix it? (N.B. I use thmbox, I don't know if this have an incidence).

share|improve this question
1  
Please provide a short, complete, example that demonstrates the problem. –  Will Robertson Oct 6 '10 at 9:38
1  
Can you explain your problem in more detail? provide a minimum working example? How does it not work? Does it fail to compile? Does it compile, but look wrong in some way? We can't help you unless you explain in more detail what the problem is. –  Seamus Oct 6 '10 at 9:42
    
OK. I made an MWE myself. The problem seems to be that it compiles, you get the footnote number, but the footnote itself is missing. Is this the same problem you are having, @nandayo? –  Seamus Oct 6 '10 at 9:45
    
I'm ,sorry, I just discover the way this site works, I thought I would receive a mail when answered (now I checked the options ;-) ) Yes, this is precisely this problem : the footnote number appears, but the footnote itself is absent. –  nandayo Oct 6 '10 at 17:17
    
Please see at tex.stackexchange.com/questions/41100/… and the answers which have been given there. Does that solve your problem? –  Stephen Jan 15 '12 at 18:00
add comment

3 Answers

Use \footnotemark inside the definition environment, then outside the environment (it might have to be after another paragraph) place \footnotetext{...}.

Worst case, you might have to hard-code the footnote number like \footnotetext[7]{...}.

share|improve this answer
add comment

Seems to be the same effect as for floats. Perhaps the combination of \footnotemark and \footnotetext can help.

share|improve this answer
    
According to my MWE (which, I stress, might be different from the OPs problem) \footnotemark[7]\footnotetext{foo} doesn't work. It produces the right footnotemark, but the text is still missing. –  Seamus Oct 6 '10 at 16:32
    
Putting \footnotetext{foo} outside the thmbox environment almost works: the footnote text appears, but with the wrong mark: with a 0 in my case... –  Seamus Oct 6 '10 at 16:33
    
Same here, none of footnotemark or footnotetext works. You think the problem is linked to the use of the package thmbox ? –  nandayo Oct 6 '10 at 17:19
add comment

You may try with ntheorem package: footnotemark/footnotetext. Or use mdframed, that cooperates with amsthm as well as ntheorem ; it places the footnote at the end of the environment, somehow like threeparttable. Both works fine on the following example:

\documentclass[11pt]{book} %
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}%
\usepackage{amssymb,amsmath}
\usepackage{framed}
\usepackage[amsmath,framed]{ntheorem}
\newframedtheorem{Prop}{Proposition}
\usepackage[ntheorem]{mdframed}
\newmdtheoremenv[backgroundcolor = lightgray]{proposition}[Prop]{Proposition}
\theoremclass{Theorem}
\theoremstyle{break}

\begin{document}

\begin{Prop}Example withc framed. \footnotemark\end{Prop}\footnotetext{Just to see! }

\begin{proposition}
Example with mdframed \footnote{Just to see! }
\end{proposition}

\end{document}

Here is the resulting pdf:enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.