1

I inserted a footnote in a Latex template, and it suddenly shows up like this

footnote

all I did was write

...as a crossed product\footnote{...}

and I really do not know why it is showing just a right bracket there. How do I remove it?

In the .cls file that I am using, there is a section called Footnotes in which this code is included.

%-----------%
% Footnotes %
%-----------%

%% The \vfill forces footnotes to the bottom of the page,
%% which is necessary since \raggedbottom is in effect.
%% 30mm is the width of the line.
\renewcommand\footnoterule{%
  \kern-3\p@ \vfill
  \hrule width 30mm
  \kern2.6\p@}

\newcommand\xxfntext{%
  \long\def\@makefnmark{\mbox{\textsuperscript{\normalfont\@thefnmark)}}}
  \long\def\@makefntext##1{%
    \parindent\XxIndent
    \makebox[1.2em][l]{\@makefnmark}##1}
}

\xxfntext

9
  • 1
    some code you have not shown has redefined the footnote formatting, make a small but complete document that shows the problem. Aug 24, 2020 at 14:08
  • it is a journal template, so I cannot edit the .cls. Can I re-redefine it, maybe calling it footnoteb? Aug 24, 2020 at 14:09
  • you need to give some clue . \footnote does not do that by default so you have an error in code you have not shown. Not really possible to help with only that information. Aug 24, 2020 at 14:10
  • 2
    The line \long\def\@makefnmark{\mbox{\textsuperscript{\normalfont\@thefnmark)}}} contains a ) Aug 24, 2020 at 14:18
  • 1
    You can copy/paste that piece of code into your preamble replacing \newcommand with \renewcommand and putting the whole block between \makeatletter and \makeatother.
    – campa
    Aug 24, 2020 at 14:24

1 Answer 1

2

The line \long\def\@makefnmark{\mbox{\textsuperscript{\normalfont\@thefnmark)}}} from the .cls class that you use contains a ) which is responsible for your undesired output. Since you prefer not to change the command definition in the .cls class itself, campa's suggestion may be the best alternative: redefining the command in your own document and omit the offending ):

\makeatletter
\renewcommand\xxfntext{%
  \long\def\@makefnmark{\mbox{\textsuperscript{\normalfont\@thefnmark}}}
  \long\def\@makefntext##1{%
    \parindent\XxIndent
    \makebox[1.2em][l]{\@makefnmark}##1}
}
\makeatother

You must log in to answer this question.

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