Text FormattingFootnote number not showing as superscript

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
adnaniut
Posts: 11
Joined: Tue Aug 10, 2010 1:23 am

Footnote number not showing as superscript

Post by adnaniut »

In my thesis I need to include number of footnotes. But the numbers are not showing as superscript at the bottom of page, rather showing inline with text. Here is the code I am using:

Code: Select all

Sections of this chapter\footnote{reference a}$^{,}$\footnote{reference b} discusses blahblah.
It writes at the bottom of the page as
1reference a
2reference b

I want them to display as
^1 reference a
^2 reference b

Any help would be much appreciated
Last edited by cgnieder on Mon May 20, 2013 11:46 am, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Footnote number not showing as superscript

Post by cgnieder »

Since what you want is the standard behaviour this means something in your document changes it. So we need to see a Infominimal working example in order to propose a solution.

Regards
site moderator & package author
adnaniut
Posts: 11
Joined: Tue Aug 10, 2010 1:23 am

Footnote number not showing as superscript

Post by adnaniut »

Thanks for your quick reply. Here is an example of my script

Code: Select all

\documentclass[12pt]{report}

\usepackage[symbol]{footmisc}
\DefineFNsymbols{blank}[text]{} \setfnsymbol{blank}
\makeatletter
\renewcommand\@makefntext[1]%
    {\noindent\makebox[0pt][r]{\@thefnmark}#1}

\begin{document}
In this chapter\footnote{reference a}$^{,}$\footnote{reference a} we want to show footnote as superscript, not inline with text.

\end{document}
Last edited by cgnieder on Mon May 20, 2013 1:24 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Footnote number not showing as superscript

Post by cgnieder »

But you defined them not be be superscripted:
adnaniut wrote:

Code: Select all

\makeatletter
\renewcommand\@makefntext[1]%
    {\noindent\makebox[0pt][r]{\@thefnmark}#1}
By adjusting this definition or removing it completely you should get what you want. By the way: you don't need to add a superscripted comma manually, footmisc's option multiple will take care of that for you:

Code: Select all

\documentclass[12pt]{report}
\usepackage[multiple]{footmisc}

\makeatletter
\renewcommand\@makefntext[1]%
    {\noindent\makebox[0pt][r]{\textsuperscript{\@thefnmark}\,}#1}
\makeatother

\begin{document}
In this chapter\footnote{reference a}\footnote{reference b} we want to show footnote as superscript, not inline with text.

\end{document}
Regards
site moderator & package author
adnaniut
Posts: 11
Joined: Tue Aug 10, 2010 1:23 am

Footnote number not showing as superscript

Post by adnaniut »

Thank you very much. It solved the problem.
cgnieder wrote:But you defined them not be be superscripted:
adnaniut wrote:

Code: Select all

\makeatletter
\renewcommand\@makefntext[1]%
    {\noindent\makebox[0pt][r]{\@thefnmark}#1}
By adjusting this definition of removing it completely you should get what you want. By the way: you don't need to add a superscripted comma manually, footmisc's option multiple will take care of that for you:

Code: Select all

\documentclass[12pt]{report}
\usepackage[multiple]{footmisc}

\makeatletter
\renewcommand\@makefntext[1]%
    {\noindent\makebox[0pt][r]{\textsuperscript{\@thefnmark}\,}#1}
\makeatother

\begin{document}
In this chapter\footnote{reference a}\footnote{reference b} we want to show footnote as superscript, not inline with text.

\end{document}
Regards
Post Reply