Featured Book

LaTeX Beginners Guide

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 2 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

How can I customize the \thanks footnote symbol? Topic is solved

footnotessymbolsAdd tags Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).

How can I customize the \thanks footnote symbol?

Postby billy2011 on Sun Dec 4th, 2011

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!
billy2011
 
Posts: 13
Joined: Sun Dec 4th, 2011

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

Postby Stefan_K on Mon Dec 5th, 2011

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 Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6422
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

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

Postby billy2011 on Mon Dec 5th, 2011

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  •  Open in writeLaTeX
\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 13th, 2013, edited 1 time in total.
Reason: code markup
billy2011
 
Posts: 13
Joined: Sun Dec 4th, 2011

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

Postby Stefan_K on Mon Dec 5th, 2011

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  •  Open in writeLaTeX
\makeatletter
\let\@fnsymbol\@arabic
\makeatother


Complete minimal example:

Code: Select all  •  Open in writeLaTeX
\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 Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6422
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

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

Postby billy2011 on Mon Dec 5th, 2011

wow, it really works. you are awesome! thank you very much!
:D
billy2011
 
Posts: 13
Joined: Sun Dec 4th, 2011

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

Postby billy2011 on Mon Dec 5th, 2011

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 13th, 2013, edited 1 time in total.
Reason: code markup
billy2011
 
Posts: 13
Joined: Sun Dec 4th, 2011

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

Postby Stefan_K on Mon Dec 5th, 2011

No problem,

use this in your preamble for redefining the symbols:

Code: Select all  •  Open in writeLaTeX
\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 Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6422
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

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

Postby billy2011 on Mon Dec 5th, 2011

Great! Thanks,Stefan. :D
billy2011
 
Posts: 13
Joined: Sun Dec 4th, 2011

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

Postby ereninci on Tue Aug 13th, 2013

Stefan_K wrote:No problem,

use this in your preamble for redefining the symbols:

Code: Select all  •  Open in writeLaTeX
\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?
ereninci
 
Posts: 3
Joined: Tue Aug 13th, 2013

Re: How can I customize the \thanks footnote symbol?

Postby cgnieder on Tue Aug 13th, 2013

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  •  Open in writeLaTeX
\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  •  Open in writeLaTeX
\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
Clemens
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen
System: TeXlive 2013, OpenSUSE 12.3
User avatar
cgnieder
Site Moderator
 
Posts: 1696
Joined: Sat Apr 16th, 2011
Location: Germany

Next

Topic Tags

footnotessymbols

Return to Page Layout

Who is online

Users browsing this forum: No registered users and 2 guests