LaTeX forum ⇒ GeneralSwitching between Packages within the Document

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

Switching between Packages within the Document

Postby pippipalma » Sun Mar 10, 2013 8:03 pm

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

Tags:

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

Postby cgnieder » Sun Mar 10, 2013 8:46 pm

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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

pippipalma
Posts: 22
Joined: Mon Aug 20, 2012 5:12 pm

Postby pippipalma » Sun Mar 10, 2013 11:14 pm

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:
  1. \documentclass{book}
  2. \usepackage{manyfoot}
  3. \usepackage{lipsum}
  4. \usepackage{fancyhdr}
  5. \usepackage{textcomp}
  6. \usepackage{array}
  7. \usepackage{tabularx}
  8. \usepackage{booktabs}
  9. \usepackage{hanging}
  10. \usepackage{indentfirst}
  11. \usepackage{longtable}
  12. \begin{document}
  13. \lipsum\footnote{\lipsum[1-3]}
  14.  
  15. \lipsum
  16.  
  17. \renewcommand\footnoterule{}
  18. \begin{longtable}{l|l}
  19. \toprule
  20. A&B\\
  21. \midrule
  22. \endhead
  23.  
  24. \midrule
  25. \endfoot
  26.  
  27. \bottomrule
  28. \endlastfoot
  29.  
  30. aaaaaa&bbbbb\\
  31.  
  32. aaa\footnote{111}aaa&bbb\footnote{222}bb\\
  33.  
  34. aaaaaa&bbbbb\\
  35.  
  36. \end{longtable}
  37. \end{document}


When I use bigfoot, the following (identical, except for \DeclareNewFootnote{default}) code does not work:
  1. \documentclass{book}
  2. \usepackage{bigfoot}
  3. \usepackage{lipsum}
  4. \usepackage{fancyhdr}
  5. \usepackage{textcomp}
  6. \usepackage{array}
  7. \usepackage{tabularx}
  8. \usepackage{booktabs}
  9. \usepackage{hanging}
  10. \usepackage{indentfirst}
  11. \usepackage{longtable}
  12. \DeclareNewFootnote{default}
  13. \begin{document}
  14. \lipsum\footnote{\lipsum[1-3]}
  15.  
  16. \lipsum
  17.  
  18. \renewcommand\footnoterule{}
  19. \begin{longtable}{l|l}
  20. \toprule
  21. A&B\\
  22. \midrule
  23. \endhead
  24.  
  25. \midrule
  26. \endfoot
  27.  
  28. \bottomrule
  29. \endlastfoot
  30.  
  31. aaaaaa&bbbbb\\
  32.  
  33. aaa\footnote{111}aaa&bbb\footnote{222}bb\\
  34.  
  35. aaaaaa&bbbbb\\
  36.  
  37. \end{longtable}
  38. \end{document}


Thanks!

Giuseppe

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

Postby cgnieder » Mon Mar 11, 2013 1:12 pm

It took me a while to find it but the solution is simple: with »bigfoot« you need to use
  1. \renewcommand\defaultfootnoterule{}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

pippipalma
Posts: 22
Joined: Mon Aug 20, 2012 5:12 pm

Postby pippipalma » Mon Mar 11, 2013 1:54 pm

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


Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests