GeneralFramed text with footnote

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

Framed text with footnote

Post by NinV »

Hi,

I need to put a footnote in a framed text.

I tried this:

Code: Select all

\framebox[\textwidth]{like this
* Matematika problemo\footnote{\textit{Ha\^{g}i} estas en islamaj landoj la titolo de tiu, kiu pilgrimis al Mako. \^{G}i estas uzata kiel parto de la nomo.} 
}
but the footnote is not diplayed at the bottom of the page.

I did some search on the web but I wasn't able to find a solution.

Can you help me?

Thanks,
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Framed text with footnote

Post by gmedina »

Hi Nino,

use \footnotemark, \footnotetex:

Code: Select all

\documentclass{book}
\begin{document}

\framebox[\textwidth]{like this * Matematika problemo\footnotemark 
}

\footnotetext{\textit{Ha\^{g}i} estas en islamaj landoj la titolo de tiu, kiu pilgrimis al Mako. \^{G}i estas uzata kiel parto de la nomo.}


\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

Re: Framed text with footnote

Post by NinV »

Hi gmedina,

thank you very much. You helped me again!

I wonder why I couldn't find this solution on the web :oops:

Ciao,
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Framed text with footnote

Post by localghost »

In principal you can find this solution in every basic LaTeX documentation. The solution provided by gmedina works in every case where usual footnotes are not allowed.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

Framed text with footnote

Post by NinV »

When I have a problem, firstly I browse the documentation I downloaded, then I browse the web... and after some days of browsing I ask for help.

The problem is that the documentation is as an ocean... and in most cases, chiefly in case of packages, not well done, e.g. they don't give any example.

For instance because I needed a multipage framed box I used the package "framed". In its documentation is written:
The contents of the framed regions are restricted: Floats, footnotes, marginpars and head-line entries will be lost.
but the gmedina's solution is not mentioned.

I know that all authors are working for free and nobody can ask them to supply a commercial-like product, so I'm not criticizing anyone: I'm really very grateful to them!

And I'm also very grateful to this forum whose members are very kind (in contrast with a lot of Italian forums).

I hope I won't need to bother you for too long.

Ciao,
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
Post Reply