I am writing a paper in English. But I'd like to have my name in Chinese displayed. I figured that it would be great to have it in the footnote. Here is what I was trying to do:

\author{Xxxxx Xxxxx\footnote{\begin{CJK}{UTF8}{gkai}Xxxxx, Xxxxx (某某某) is supported in part by U.S. taxpayers through NSF grant XXX-xxxxxxx.\end{CJK}}\footnotemark[1]}

Unfortunately, I got an error message when I tried to compile TeX to PDF.

Latex Error: ./colorfulps.tex:45 Use of \@xfootnotemark doesn't match its definition. ! Incomplete \iffalse; all text was ignored after line 45. ! Emergency stop.

I tried to put the CJK environment in the body text, and it works just find. If I put the CJK environment in a footnote in the body text, I didn't get the error, but the Chinese characters didn't show up, either. So I am pretty sure this is something specific to footnote.

Is there a way to get around this? Thanks in advance.

  • 1
    Welcome to TeX.SX! It would be helpful if you could turn this into a complete minimal (non-)working example, including a \documentclass{} and a \title, which is needed for \maketitle to work. This way people can just copy and paste the code into their editor and don't have to worry about that before being able to help you.
    – Adam Liter
    Apr 3 '14 at 4:36
  • @Adam I am glad to be part of the community. And thanks for the suggestion! Definitely will do it next time :)
    – Zilin J.
    Apr 3 '14 at 15:27

This would work. \footnotemark goes first, footnotetext goes second. Also CJKutf8 package is used here for the Chinese character to show up.

enter image description here





\title{A project}
\author{Xxxxx Xxxxx\footnotemark[\value{footnote}]}
\begin{CJK}{UTF8}{gkai}Xxxxx, Xxxxx (某某某) is supported in part by U.S. taxpayers through NSF grant XXX-xxxxxxx.
  • Hi @Jesse, thanks! Though the code is beyond my understanding, it works like a charm. However, if I add a lot of text after the title (after the last \end{CJK}), then the layout breaks down and the footnote seems to be outside of the page. Do you know how to remedy this issue?
    – Zilin J.
    Apr 3 '14 at 15:48
  • If the title page is the only place you need to put in chinese. Then you can remove the cjk environment within \begin{document}...\end{document} because that is for chinese/english environment. By removing that out of the way, you are at pure English mode and maybe that is what you need.
    – Jesse
    Apr 3 '14 at 17:05
  • I have removed the CJK environment within the document environment and I still have the same issue. Here is the screenshot. i.imgur.com/Usu3mPo.jpg
    – Zilin J.
    Apr 3 '14 at 17:15
  • Where did you put your text? Main text should not be before the \begin{document}. Second, activate the begin/end{titlepage} by removing the % out. Then put your main text after the \end{titlepage}
    – Jesse
    Apr 3 '14 at 17:40
  • I put the main text after the last \end{CJK} inside the document environment. It is not before the \begin{document}. I know if I activate the begin/end{titlepage}, I can have a perfect footnote on the first page. However, I am not allowed to have a title page. And if I remove the titlepage environment, I get the PDF whose first page is shown in the image I posted.
    – Zilin J.
    Apr 3 '14 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.