1

I would like to have two series of footnotes, and to mark the difference among them with one having numbers like "1" and the other with "(1)".

\documentclass{article}
\usepackage{fontspec}
\usepackage{bigfoot}
\DeclareNewFootnote[para]{A}
\DeclareNewFootnote[para]{B}
%% \renewcommand*{\thefootnoteB}{(\arabic{footnoteB})}
\newcommand{\FNone}[1]{\footnoteA{#1}}
\newcommand{\FNtwo}[1]{\footnoteB{#1}}

\begin{document}

Lalala\FNone{One.} Lalala\FNone{One.} Lalala\FNone{One.}

Lalala\FNtwo{Two.} Lalala\FNtwo{Two.} Lalala\FNtwo{Two.}
\end{document}

Without changing anything, small footnotes share the same line:

enter image description here

But if I uncomment the line above, trying to add the parentheses, I lose something, and the notes don’t stack anymore:

enter image description here

How to fix this?

6
  • What about \renewcommand{\thefootnoteB}{(\roman{footnoteB})} for example?
    – gildux
    Feb 6, 2023 at 1:23
  • I might have thousands of notes :'( so the roman numbers would get absurd
    – Parjánya
    Feb 6, 2023 at 2:17
  • Just thought the problem might be the character height, because \renewcommand*{\thefootnoteB}{·\arabic{footnoteB}·} works, perhaps with smaller parentheses...
    – Parjánya
    Feb 6, 2023 at 2:20
  • yep, this kind of works, but I have no idea why: \renewcommand*{\thefootnoteB}{{\tiny (}\arabic{footnoteB}{\tiny )}}
    – Parjánya
    Feb 6, 2023 at 2:22
  • 1
    It works fine for me (uncommented). I tried it with XeLaTeX, LuaLaTeX and PDFLaTeX (without fontspec). Feb 6, 2023 at 4:13

1 Answer 1

1

bigfoot documentation is very terse, but it's said that it's “interface is identical to that of manyfoot; users should seek information from that package's documentation.” According to the documentation of that later, the command \DeclareNewFootnote[para]{X} does :

  • \newfootnote{X} to create the footnote level
  • \newcounter{footnoteX} for the associated counter
  • \newcommand{\footnoteX} to create the insertion command

So, my idea was to rebuild the counter to sweet your needs: \renewcommand{\thefootnoteX}{(\arabic{footnoteX})}

A better way may be to do the full thing yourself

\usepackage{bigfoot}
\DeclareNewFootnote[para]{A}
\newcounter{footnoteB}
\newcommand{\footnoteB}{%
  \stepcounter{footnoteB}%
  \Footnotemark(\thefootnoteB) \FootnotetextB{}%
}
\renewcommand{\thefootnoteB}{\arabic{footnoteB}}

I find it better because the counter may be used at some other location without need of the parens.

One may want to use the new hook, but I don't see how to achieve it in this case.

\usepackage{bigfoot}
\DeclareNewFootnote[para]{A}
\SetFootnoteHook{(}
\DeclareNewFootnote[para]{B}[arabic]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .