Page LayoutHow can I customize the \thanks footnote symbol?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

How can I customize the \thanks footnote symbol?

Post by billy2011 »

hi, fellows,

I want to customize my paper, in which author1 has a label 1, and corresponding footnote 1, author2 has footnote2.


I had tried \footnote in the \author, it did not work. using \thanks in \author, it always gave a random symbol, not a number I designated.


Could you tell me how to do that? Thanks in advance!

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

How can I customize the \thanks footnote symbol?

Post by Stefan Kottwitz »

Hi Billy,

which document class do you use? I'm sure the symbol is not randomly chosen, but the document class provides a \thanks command which chooses from a default list of symbols.

Stefan
LaTeX.org admin
billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

How can I customize the \thanks footnote symbol?

Post by billy2011 »

Thank you,Stefan. I am a beginner with LaTeX. So, LaTeX is still a bit annoying for me because I am not very much familiar with its commands and usage. However, I really like its powerful features.

I used a common document class as below.

Code: Select all

\documentclass[a4paper,11pt,two column]{article}
If we could modify the default list of symbols by \thanks command, it would solve my problem.

Waiting for you solutions. Many thanks!
Last edited by cgnieder on Tue Aug 13, 2013 5:22 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

How can I customize the \thanks footnote symbol?

Post by Stefan Kottwitz »

Hi Billy,

if you don't need those footnote symbols, you can use numbers instead by inserting this into your document preamble:

Code: Select all

\makeatletter
\let\@fnsymbol\@arabic
\makeatother
Complete minimal example:

Code: Select all

\documentclass[a4paper,11pt,two column]{article}
\makeatletter
\let\@fnsymbol\@arabic
\makeatother
\begin{document}
\author{Author-one\thanks{first}, Author-two\thanks{second}}
\title{Test}
\maketitle
\end{document}
In \maketitle, the footnote (\thanks) presentation is changed to use \@fnsymbol instead of an arabic number. The redefinition above replaces \@fnsymbol to always produce arabic numbers.

Stefan
LaTeX.org admin
billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

Re: can I customise the random symbol of \thanks command

Post by billy2011 »

wow, it really works. you are awesome! thank you very much!
:D
billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

How can I customize the \thanks footnote symbol?

Post by billy2011 »

Just one more question on this issue. Are there possible ways to fully control the display of \thanks symbols?

For example, in some place, we may arbitrarily want to show a designated symbol, such as \ddag or something else.

Thank you!
Last edited by cgnieder on Tue Aug 13, 2013 5:23 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

How can I customize the \thanks footnote symbol?

Post by Stefan Kottwitz »

No problem,

use this in your preamble for redefining the symbols:

Code: Select all

\makeatletter
\renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
   \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
   \or \ddagger\ddagger \else\@ctrerr\fi}}
\makeatother
Just replace *, \dagger etc. as desired.

Stefan
LaTeX.org admin
billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

Re: can I customise the random symbol of \thanks command

Post by billy2011 »

Great! Thanks,Stefan. :D
ereninci
Posts: 3
Joined: Tue Aug 13, 2013 10:36 am

How can I customize the \thanks footnote symbol?

Post by ereninci »

Stefan_K wrote:No problem,

use this in your preamble for redefining the symbols:

Code: Select all

\makeatletter
\renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
   \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
   \or \ddagger\ddagger \else\@ctrerr\fi}}
\makeatother
Just replace *, \dagger etc. as desired.

Stefan
How can I have the first footnote on the title page to be footnote * and the rest of the footnotes to be numberred consecutively with arabic numbers?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

How can I customize the \thanks footnote symbol?

Post by cgnieder »

Hi ereninci,

Welcome to the LaTeX community!

Usually it is best not to hijack solved threads but starting new ones, maybe referring to the existing one with a link.

Maybe one of the following solutions is what you want:

Code: Select all

\documentclass{article}
\makeatletter
% *, 2, 3, ...
\renewcommand*{\@fnsymbol}[1]{\ifcase#1\or*\else\@arabic{#1}\fi}
\makeatother
\title{A test}
\author{Captain Kirk\thanks{first} \and Spock\thanks{second}}
\begin{document}
\maketitle
\end{document}

Code: Select all

\documentclass{article}
\makeatletter
% *, 1, 2, ...
\renewcommand*{\@fnsymbol}[1]{\ifcase#1\or*\else\@arabic{\numexpr#1-1\relax}\fi}
\makeatother
\title{A test}
\author{Captain Kirk\thanks{first} \and Spock\thanks{second}}
\begin{document}
\maketitle
\end{document}
Regards
site moderator & package author
Post Reply