0

I am trying to create and format some inline footnotes inside minipages. I looked at some questions like this one but it seems that they are not working in the minipage environment. Is there a way to format inline footnotes in minipage environment?

\documentclass{article}
\usepackage[stable,para,hang]{footmisc}

\makeatletter \footglue=.5em plus.15em minus.15em

\long\def@makefntext#1{\leavevmode @makefnmark\nobreak #1% } \makeatother

\begin{document} \begin{minipage}[t]{\textwidth} Lorem\footnote{lorem} ipsum\footnote{ipsum} dolor\footnote{dolor} sit\footnote{sit} \end{minipage} \end{document}

For in-line footnotes I mean the footnote one next to the other, while I get footnotes one below the other, in the picture below an example of both types:

enter image description here

I am trying to achieve two levels of inline footnotes, like the previous image but with the second level inline

G M
  • 2,225
  • it is unclear what you want to do. To me, this question seems to already answer it https://tex.stackexchange.com/questions/274/can-i-get-a-normal-footnote-in-a-minipage-environment-in-latex-how – anis Jan 10 '23 at 11:49
  • do you want the footnote to appear under the minipage env? – anis Jan 10 '23 at 11:49
  • @anis I have added an image, I would like inline footnotes inside minipages env – G M Jan 10 '23 at 12:23

2 Answers2

2

You can apply the inline format to all footnotes of the document using:

\documentstyle[fnpara]{article}

\begin{document}

Lorem\footnote{lorem} ipsum\footnote{ipsum} \bigskip

\begin{minipage}[t]{\textwidth} Lorem\footnote{lorem} ipsum\footnote{ipsum} dolor\footnote{dolor} sit\footnote{sit} \end{minipage}

\end{document}

kekko
  • 509
  • Thanks but it does not seems to work for me, the footnotes are below not inline – G M Jan 10 '23 at 16:27
  • Maybe some package is clashing? I tried with LiveTeX and Overleaf and it works with this preamble – kekko Jan 10 '23 at 16:43
  • Thanks a lot kekko, yes probably that's the problem still don't work in my project probably due to endnotes and footmisc. But indeed is a good solution! Thanks! – G M Jan 11 '23 at 08:21
  • However, documentstyle seems obsolete – G M Jan 11 '23 at 08:27
  • 1
    Yes, it comes from an old application of a dirty rule in the TeXBook specifically for when you have a lot of footnotes. If you go to appendix D there is the code for the macro. I'm not yet that kind of hacker to make a new one from that but maybe you know how to do it (or maybe with a new question someone here could do something?). If you find a solution let me know. – kekko Jan 11 '23 at 10:03
1

Not a great answer but if there is no way to do it and you are desperate, you can fake the footnote style with something like this:

\documentclass{article}

\usepackage[para]{threeparttablex}

\begin{document}

\begin{minipage}[t]{\textwidth}

Lorem\textsuperscript{a} ipsum\textsuperscript{b} dolor\textsuperscript{c} sit\textsuperscript{d}

\rule [-1.4ex]{6.7cm}{0.4pt} \begin{tablenotes} \item [a] lorem \item [b] ipsum \item [c] dolor \item [c] sit \end{tablenotes}

\end{minipage}

\end{document}

kekko
  • 509
  • Thanks a lot! That could be a solution, unfortunately, is not what I am looking for. – G M Jan 10 '23 at 12:26
  • Otherwise you can apply the inline format to all footnotes of the document using \documentstyle[fnpara]{article} – kekko Jan 10 '23 at 15:31
  • Thanks a lot kekko! can you please provide a working example? It does not seem to work for me. – G M Jan 10 '23 at 15:35