TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to acheive something similar to

\title{\myTitle \thanks{ \input{../acknowledgement} }}

(which doesn't work?) in order to load the content for \thanks on the fly?

share|improve this question
up vote 7 down vote accepted

I assume "doesn't work" means in this case "Generates the following error:"

! Use of \@xfootnotemark doesn't match its definition.
\@ifnextchar ... \reserved@d =#1\def \reserved@a {
                                                  #2}\def \reserved@b {#3}\f...
l.8 \maketitle


\thanks expands its argument (at least which the standard classes) and so you need to \protect the \input:


\def\myTitle{My title}



An alternative would be the catchfile package to store the content of the input file in a macro first using \CatchFileDef{\mymacro}{<file>}{}.

share|improve this answer
Yes! \protect does the trick! Thanks! – Chris May 26 '11 at 8:45
Thanks! Can you add a tiny bit about what protect does, or a link to a relevant resource? This works, but it's also really confusing :/ – Clément Jul 22 at 14:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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