LaTeX forum ⇒ Page LayoutHow can I customize the \thanks footnote symbol? Topic is solved

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?

Postby billy2011 » Sun Dec 04, 2011 10:10 pm

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!

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Dec 05, 2011 12:38 am

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
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

Postby billy2011 » Mon Dec 05, 2011 3:43 am

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.

  1. \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.
Reason: code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Dec 05, 2011 9:37 am

Hi Billy,

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

  1. \makeatletter
  2. \let\@fnsymbol\@arabic
  3. \makeatother


Complete minimal example:

  1. \documentclass[a4paper,11pt,two column]{article}
  2. \makeatletter
  3. \let\@fnsymbol\@arabic
  4. \makeatother
  5. \begin{document}
  6. \author{Author-one\thanks{first}, Author-two\thanks{second}}
  7. \title{Test}
  8. \maketitle
  9. \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
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

Postby billy2011 » Mon Dec 05, 2011 10:06 am

wow, it really works. you are awesome! thank you very much!
:D

Link:
BBcode:
HTML:
Hide post links
Show post links

billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

Postby billy2011 » Mon Dec 05, 2011 10:46 am

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.
Reason: code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Dec 05, 2011 11:12 am

No problem,

use this in your preamble for redefining the symbols:

  1. \makeatletter
  2. \renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
  3. \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
  4. \or \ddagger\ddagger \else\@ctrerr\fi}}
  5. \makeatother


Just replace *, \dagger etc. as desired.

Stefan
Site admin

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

billy2011
Posts: 13
Joined: Sun Dec 04, 2011 9:57 pm

Postby billy2011 » Mon Dec 05, 2011 12:05 pm

Great! Thanks,Stefan. :D

Link:
BBcode:
HTML:
Hide post links
Show post links

ereninci
Posts: 3
Joined: Tue Aug 13, 2013 10:36 am

Postby ereninci » Tue Aug 13, 2013 10:45 am

Stefan_K wrote:No problem,

use this in your preamble for redefining the symbols:

  1. \makeatletter
  2. \renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
  3. \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
  4. \or \ddagger\ddagger \else\@ctrerr\fi}}
  5. \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?

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
cgnieder
Site Moderator
Posts: 1948
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Tue Aug 13, 2013 5:31 pm

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:

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


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


Regards
Clemens
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 5 guests