Text Formatting ⇒ fncychap and footnotes
fncychap and footnotes
At the moment i am working on my thesis. I would like to use the fncychap pacckage. In my chapter title i have a reference to a footnote
\chapter{title\footnote{text}}
When i dont use the fncychap package the footnote will be visible at the bottom of the page. When i do use the package the footnote will not appear.
Does anybody know how to solve this problem or know an other way to refer to a footnote text of a kind? Btw: the footnote gives information about where i published most data in the chapter.
\chapter{title\footnote{text}}
When i dont use the fncychap package the footnote will be visible at the bottom of the page. When i do use the package the footnote will not appear.
Does anybody know how to solve this problem or know an other way to refer to a footnote text of a kind? Btw: the footnote gives information about where i published most data in the chapter.
NEW: TikZ book now 40% off at Amazon.com for a short time.

fncychap and footnotes
Hi,
you should protect the \footnote command. Additionally, you could use the optional argument of the \chapter command to prevent the footnote from appearing in the Table of Contents. Take a look at the following example code:
you should protect the \footnote command. Additionally, you could use the optional argument of the \chapter command to prevent the footnote from appearing in the Table of Contents. Take a look at the following example code:
Code: Select all
Code, edit and compile here:
\documentclass{book}\usepackage[Lenny]{fncychap}\begin{document}\tableofcontents\chapter[Test chapter]{Test chapter\protect\footnote{Test footnote.}}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: fncychap and footnotes
thanks for the quick reply. I tried this one out and the number is shown in the title, but the footnote is not visible. I found this about the protect command:
Latex complains when you put citations in table captions (and when you put footnotes in arguments of \section commands). Fix this by putting a \protect command in front:
\caption{Data taken from \protect \citeauthor{Efron79t}
\protect \shortcite{Efron79t}}
In general, any fragile command that appears in a moving argument must be preceded by a \protect command. See Help with Latex for more information.
So this should work. I will try more and if i find the solution i will post it in this forum. Hope you can help me out any further?
Latex complains when you put citations in table captions (and when you put footnotes in arguments of \section commands). Fix this by putting a \protect command in front:
\caption{Data taken from \protect \citeauthor{Efron79t}
\protect \shortcite{Efron79t}}
In general, any fragile command that appears in a moving argument must be preceded by a \protect command. See Help with Latex for more information.
So this should work. I will try more and if i find the solution i will post it in this forum. Hope you can help me out any further?
fncychap and footnotes
Hmmm... Can you please post a minimal working example showing this undesired behaviour? My previous code works OK, so I'm a little curious about why my suggestion isn't working for you.bafl wrote:... I tried this one out and the number is shown in the title, but the footnote is not visible...
Anyway, try using the footmisc package with the stable option:
Code: Select all
Code, edit and compile here:
\documentclass{book}\usepackage[Lenny]{fncychap}\usepackage[stable]{footmisc}\begin{document}\tableofcontents\chapter{Test chapter\footnote{Test footnote.}}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
fncychap and footnotes
Thank you for your reply. I added footmisc but still it doesn't work. I think it conflicts with some other usepackage. Hereby an example file of the total setup. Hope you can help me.
Maybe it has something to do with
Maybe it has something to do with
- \usepackage{fancyhdr,lastpage}
\usepackage{remreset}
Code: Select all
Code, edit and compile here:
\documentclass[a4paper,titlepage]{book}%---------------------------------------------The different packages you want to use%---------------------------------------------are given here%---------------------------------------------You need to keep the fancyhdr and lastpage%---------------------------------------------for this lay-out!!!\usepackage{fullpage}\usepackage{times} %om het font Times te gebruiken\usepackage{amsmath} %om formules te kunnen schrijven\usepackage{graphicx} %om figuren te kunnen invoegen\usepackage{multicol} %meerdere kolommen in het artikel\usepackage{subfigure}%meerdere figuren naast elkaar\usepackage{fancyhdr,lastpage} %footers and headers, total number of pages\usepackage{multirow}\usepackage[stable]{footmisc}\usepackage{eurosym} %\EUR{10} \euro generates the symbol.\usepackage[english]{babel} %ook voor hyphenation in english\usepackage{minitoc} % adds mini TOC per chapter\usepackage{datetime}%\usepackage{makeidx}%\makeindex% ----- om te voorkomen dat de footnotes resetten bij ieder begin van een chapter ----\usepackage{remreset}\makeatletter\@removefromreset{footnote}{chapter}\makeatother% ------------------------------------------------------------------------------------\renewcommand{\thefootnote}{\roman{footnote}} % renew footnote numberering to i, ii, iii, iv, ...\usepackage[Bjornstrup]{fncychap} %fancy chapter headings, google: fncychap pas op footnotes in chapter titels werken niet!%\usepackage[colorlinks]{hyperref} % maakt links aan in PDF's van ref's en cite's\newdateformat{yyyymmdd}{\THEYEAR\twodigit{\THEMONTH}\twodigit{\THEDAY}}\newcommand{\DOLLAR}[1]{\$\hspace{0.6mm}#1} %defines a new function \DOLLAR{0.10} where the distance between dollar sign and number is 0.6mm (like the EUR sign)\numberwithin{equation}{section}
fncychap and footnotes
Hi. The problem comes from the use of the Bjornstrup option for the fncychap package, as can be seen in the following minimal example:
However, if you use, for example, Lenny as the option for fncychap, the problem disappears, as can be seen in the following example:
At this point, I have two possible solutions:
1) Instead of the standard \footnote command, use \footnotemark and \footnotetext, as the following code suggests:
2) Don't use the fncychap package; in its stead use the titlesec package to imitate the Bjornstrup style.
Of course, the first solution is the quickest (it requires no additional coding and it's already illustrated in my example.)
Code: Select all
Code, edit and compile here:
\documentclass{book}\usepackage[stable]{footmisc}\usepackage[Bjornstrup]{fncychap}\begin{document}\chapter{test\footnote{this footnote won't appear in the final document}}\end{document}
Code: Select all
Code, edit and compile here:
\documentclass{book}\usepackage[stable]{footmisc}\usepackage[Lenny]{fncychap}\begin{document}\chapter{test\footnote{this footnote will appear in the final document}}\end{document}
1) Instead of the standard \footnote command, use \footnotemark and \footnotetext, as the following code suggests:
Code: Select all
Code, edit and compile here:
\documentclass{book}\usepackage[Bjornstrup]{fncychap}\usepackage[stable]{footmisc}\begin{document}\chapter{test\footnotemark[1]}\footnotetext[1]{test footnote text}\stepcounter{footnote}% required to avoid duplication of the countertest text\footnote{A standard footnote}\end{document}
Of course, the first solution is the quickest (it requires no additional coding and it's already illustrated in my example.)
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: fncychap and footnotes
thank you very much for your reply. I will try the first one out. Strange it only happens with Bjornstrup,...