GeneralSwitching between Packages within the Document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pippipalma
Posts: 23
Joined: Mon Aug 20, 2012 5:12 pm

Switching between Packages within the Document

Post by pippipalma »

Hello!

I'm typesetting a quite complex document with the book and several footnote systems.

I saw that in the first chapters that bigfoot could fit very well my needs (much better than manyfoot does). However, as in the last chapter I have to insert two footnote systems within a longtable (with some p type columns), bigfoot systems show some undesired behaviour, while, on the contrary, the systems made with manyfoot work quite well.

Is there a way to "switch" from bigfoot to manyfoot at a given point of the document (in particular just before my last chapter)?


Thanks and best regards,
Giuseppe

Recommended reading 2024:

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

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Switching between Packages within the Document

Post by cgnieder »

pippipalma wrote:Is there a way to "switch" from bigfoot to manyfoot at a given point of the document (in particular just before my last chapter)?
In general: no. Once a package is loaded you cannot unload any more.

If you can show us what the trouble with »bigfoot« and »longtable« are maybe we can find another solution...

Regards
site moderator & package author
pippipalma
Posts: 23
Joined: Mon Aug 20, 2012 5:12 pm

Switching between Packages within the Document

Post by pippipalma »

Well, in the first part of the book bigfoot seems to be necessary, in particular with regard to page breaking of nested footnotes.

In the last chapter, however, due to the use of multicol environment and longtable, manyfoot seems to be much stabler than bigfoot. It is really hard for me to produce a minimal working example showing that problem, I will submit it as soon possible.

On the contrary, I'm able to produce a minimal working example for a minor problem concerning bigfoot in the last chapter. When I use longtable, I'd like to turn off the footnoterule just before the beginning of the table.
With manyfoot the following code works fine:

Code: Select all

\documentclass{book}
\usepackage{manyfoot}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{textcomp}
\usepackage{array}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{hanging}
\usepackage{indentfirst}
\usepackage{longtable}
\begin{document}
\lipsum\footnote{\lipsum[1-3]}

\lipsum

\renewcommand\footnoterule{}
\begin{longtable}{l|l}
\toprule
A&B\\
\midrule
\endhead

\midrule
\endfoot

\bottomrule
\endlastfoot

aaaaaa&bbbbb\\

aaa\footnote{111}aaa&bbb\footnote{222}bb\\

aaaaaa&bbbbb\\

\end{longtable}
\end{document}
When I use bigfoot, the following (identical, except for \DeclareNewFootnote{default}) code does not work:

Code: Select all

\documentclass{book}
\usepackage{bigfoot}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{textcomp}
\usepackage{array}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{hanging}
\usepackage{indentfirst}
\usepackage{longtable}
\DeclareNewFootnote{default}
\begin{document}
\lipsum\footnote{\lipsum[1-3]}

\lipsum

\renewcommand\footnoterule{}
\begin{longtable}{l|l}
\toprule
A&B\\
\midrule
\endhead

\midrule
\endfoot

\bottomrule
\endlastfoot

aaaaaa&bbbbb\\

aaa\footnote{111}aaa&bbb\footnote{222}bb\\

aaaaaa&bbbbb\\

\end{longtable}
\end{document}
Thanks!

Giuseppe
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Switching between Packages within the Document

Post by cgnieder »

It took me a while to find it but the solution is simple: with »bigfoot« you need to use

Code: Select all

\renewcommand\defaultfootnoterule{}
Regards
site moderator & package author
pippipalma
Posts: 23
Joined: Mon Aug 20, 2012 5:12 pm

Switching between Packages within the Document

Post by pippipalma »

Great, thanks a lot!
I'm still looking for a (reasonable) minimal working example that can show the instabilities (at least, as they seem to me) in footnote movements at the interface of longtable and multicols environment...

Regards,
Giuseppe
Post Reply