I've seen a couple of posts of this error being reported but the solutions tend to be very specific. Because I am using a template from here (https://github.com/mlouhivu/prace-latex-whitepaper) I am having a very hard time finding this error as I did nothin but try to run the template as is. I would be very appreciative if anyone could point me in the right direction.

Thank you.

%%% Partnership for Advanced Computing in Europe 
%%%   www.prace-ri.eu
%%% LaTeX template for a PRACE-RI whitepaper.
%%% (c) CSC - IT Center for Science Ltd.
%%%   author: Martti Louhivuori ([email protected])
%%% Generic instructions:
%%%   - follow the point-by-point instructions
%%%   - fill in the required author information, title, and abstract
%%%   - write your paper using the general format outlined below
%%%   - do NOT touch the generic layout between the following tags: 
%%%   - the paper should be 3-6 pages long
%%%   - refer to 'example.tex' and 'example.pdf' for a practical example

%   - use the name of your project
%   - capitalise the first letter

%   - include all people involved in the effort
%     - depending on their contribution, include PRACE experts as authors 
%       or mention them in acknowledgements
%   - give affiliations in the option field as a list of numbers 
%     corresponding to the order of \affiliation definitions, i.e. 
%     [1] -> 1st \affiliation, [2] -> 2nd, [1,2] -> 1st & 2nd
%   - mark one of the authors as the corresponding author using
%     \corresponding before the \author, i.e. 
%       \corresponding\author[1]{N.N.}
% example:
%   \author[1]{First Author}
%   \corresponding\author[2]{Second Author}
%   \author[1,2]{Third Author}

%   - define affiliations in the same order you used for in the author 
%     definitions
%   - include: name, address, city, postcode, and country
% example:
%   \affiliation{First affiliation, Address, City and Postcode, Country}
%   \affiliation{Second affiliation, Address, City and Postcode, Country}

%   - use the ID of your project

%   - give the email address of the corresponding author
% example:
%   \email{[email protected]}


%   - write a concise abstract that outlines the approach / methods, main 
%     results, and relevance of your project

% Write the report in the style of a journal article (i.e. Introduction, 
% Methods, Results, Conclusions). The appropriate length of the paper 
% is 3-6 pages (although there is no upper limit).
% In the report please describe:
%   - goals of the project
%     - scientific case and goals related to the project
%     - technical goals (performance, parallel scalability, ...)
%   - work done in the project, including
%     - technical and algorithmic methods and programming techniques employed
%     - use of profiling tools when applicable
%     - use of  numerical libraries when applicable
%     - machine(s) used for the work
%   - results obtained
%     - give quantitative measurements of the achieved performance 
%       enhancements and the scaling behaviour
%     - discuss how the results compare with the goals
%   - summary
%     - relevance of the obtained results for the stated scientific goals
%     - outlook on possible future work
% instructions:
%   - use only \sections and \subsections to divide the paper into logical 
%     segments
%   - capitalise only the first letter of headings
%   - symbols denoting vectors and matrices should be in bold type
%   - scalar variables should be in italics, i.e. enclosed within $$ in text
%   - weights and measures should be expressed in SI units
%   - avoid footnotes if at all possible
%   - collate acknowledgements in a separate section at the end of the 
%     article; do NOT include them on the title page, as a footnote etc.
% example:
%   \section{Introduction}
%     Introductory text...
%   \section{Methods}
%     General description...
%   \subsection{Specific method A}
%     Method A in detail...
%   ...
%   \section{Acknowledgements}
%     The results in this paper have been achieved using the PRACE Research
%     Infrastructure. 

%   - all photographs, schemas, graphs, and diagrams are to be referred to 
%     as figures
%   - line drawings should be goo quality scans or true electronic ouput
%   - low-quality scans are not acceptable
%   - lettering and symbols should be clearly defined either in the caption 
%     or in a legend provided as part of the figure
%   - figures should be placed at the top or the bottom of a page whenever
%     possible
%   - if two images fit next to each other, they may be placed so to save
%     space
%   - refer to figures in the text as Fig.~\ref{fig: foo} (with the correct 
%     reference labels of course)
% examples:
%   - single image:
%     \begin{figure}
%       \includegraphics[width=0.4\textwidth]{example}\hfill{}
%       \caption{singlepicture}
%       \label{fig: single-example}
%     \end{figure}
%   - two images side-by-side:
%     \begin{figure}
%       \includegraphics[width=0.4\textwidth]{example}\hfill{}
%       \includegraphics[width=0.4\textwidth]{example}\hfill{}
%       \caption{(a) first picture; (b) second picture}
%       \label{fig: double-example}
%     \end{figure}

%   - tables must be embedded into the text and not supplied separately
%   - caption before tabular
%   - left-justified columns
%   - only horisontal lines within a table:
%       - \toprule at the beginning of the table
%       - \midrule after the column headings but before the body
%       - \bottomrule at the end of the table
%   - \cmidrule can also be used for partial lines within the column headings 
%     (see the booktabs package documentation for further details: 
%      http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/ )
%   - refer to tables in the text as Table~\ref{tab: foo} (with the correct 
%     reference labels of course)
% example:
%   \begin{table}
%     \caption{An example of a table}
%     \label{tab: example}
%     \begin{tabular}{lll}
%       \toprule 
%       An example of a column heading & Column A (t) & Column B (T) \\
%       \midrule
%       An entry & 1 & 2 \\
%       and another entry & 3 & 4 \\
%       yet another entry & 5 & 6 \\
%       \bottomrule 
%     \end{tabular}
%   \end{table}

%   - use \itemize for bulleted lists and \enumerate for numbered lists
% example:
%   \begin{itemize}
%     \item First point
%     \item Second point
%   \end{itemize}

%   - use \cite for references
%   - always include \cite even when referring to the authors by name
% example:
%   Example citation to a paper\cite{scholes-DiscussFaradaySoc-70} and to 
%   another paper by Someone \emph{et al.}\cite{someone-SomeJournal-00}.

%   - use the equation environment for all equations
%   - short in-line notation may also be used, but should be avoided if
%     possible
%   - use bold type face (\mathbf) for vectors and matrices
%   - refer to equations in the text as Eq.~\ref{eq: foo} (with the correct 
%     reference labels of course)
% example:
%   \begin{equation}
%     Rt = K EP = 93.02 (\pm 9.62) – 13.45
%     \label{eq: example}
%   \end{equation}

%   - additional acknowledgements may be added
%   - names of PRACE machines and the corresponding sites and countries
%     should be inserted to end of the general PRACE acknowledgement 
This work was financially supported by the PRACE project funded in part
by the EUs 7th Framework Programme (FP7/2007-2013) under grant agreement
no. RI-283493. The work was achieved using the PRACE Research Infrastructure
resources at [insert here machine names and the corresponding sites and

%   - use \thebibliography and \bibitems to enter references, no separate .bib
%     files
%   - use normal font for *everything* (no bold typefaces etc.)
%   - shorten the last page number, i.e. 51--9 for pages 51--59
%   - for more than 6 authors the first 6 should be listed followed by et al.
%     - use \emph{et al.} for the et al.
%   - end each reference with a period
% example:
%   \begin{thebibliography}{99}
%     \bibitem{scholes-DiscussFaradaySoc-70}
%       S. Scholes, Discuss. Faraday Soc. No. 50 (1970) 222.
%     \bibitem{mazurin-Phase-Separation-in-Glass-84}
%       O.V. Mazurin and E.A. Porai-Koshits (eds.), 
%       Phase Separation in Glass, North-Holland, Amsterdam, 1984.
%     \bibitem{dimitriev-JMaterSci-75}
%       Y. Dimitriev and E. Kashchieva, J.Mater. Sci. 10 (1975) 1419.
%     \bibitem{eaton-Porous-Glass-Support-Material-75}
%       D.L. Eaton, Porous Glass Support Material, US Patent No. 3 904 422 
%       (1975).
%   \end{thebibliography}


Below is the prace.cls file:

%%% Partnership for Advanced Computing in Europe 
%%%   www.prace-ri.eu
%%% LaTeX document class for a PRACE-RI whitepaper.
%%% (c) CSC - IT Center for Science Ltd.
%%%   author: Martti Louhivuori ([email protected])
%%% Requires: LaTeX2e
%%%           geometry, graphicx, ifthen, booktabs
\ProvidesClass{prace}[2013/03/26 PRACE-RI Whitepaper class]



% A4: 210x297mm - 20mm margins
\geometry{text={170mm,257mm}, centering}

% page numbering
% default font

% default values
\def\authoremail{[email protected]}

% internal counters

% project ID & author contact details

% tag corresponding author
% corresponding author footnote
    \csname c@\@mpfn\endcsname 1\relax%
% corresponding author contact detail footnote
    \authorfootnote{Corresponding author.\\%
    tel. \authortel{}\hspace{1ex}
    fax. \authorfax{}\hspace{1ex} 
    e-mail. \authoremail{}}

% tmp flag

% convert integers to letters

% store author definitions for later use
%   \def\alfalist{\csvitoa{#1}}
    \ifnum \c@praceauth >\z@
        \edef\authorlist{\authorlist{}, \tmpname{}}
% store affiliation definitions for later use
    \ifnum \c@praceaffi >\@ne
% output affiliation list

% title block
    Available on-line at www.prace-ri.eu\\\vspace{1em}
    {\large\bfseries Partnership for Advanced Computing in Europe}
  \vskip 2em%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
      \lineskip .5em%
    \vskip 1em%
            \@latex@warning{Corresponding author is undefined}
  \vskip 1.5em%

% section heading formats
\def\section{\@startsection {section}{1}{\z@}%
    {-3.5ex \@plus -1ex \@minus -.2ex}%
    {2.3ex \@plus.2ex}%
    {-3.25ex\@plus -1ex \@minus -.2ex}%
    {1.5ex \@plus .2ex}%
    {-3.25ex\@plus -1ex \@minus -.2ex}%
    {1.5ex \@plus .2ex}%
% redefine section, figure etc. format
\def\thesection       {\arabic{section}.}
\def\thesubsection    {\thesection\arabic{subsection}.}
\def\thesubsubsection {\thesubsection\arabic{subsection}.}

% add horisontal lines before and after the abstract
    \noindent{\bfseries \abstractname}
    {\vspace{1em}\\{\small Project ID: \projectname}\\
% no indentation for quotations
        \listparindent 0.0em
        \itemindent    \listparindent
        \rightmargin   \leftmargin
        \parsep        \z@ \@plus\p@}%

% add space either after table caption or before figure caption
    {\small #1. #2\par}

% ref.number in References

screen capture of error

  • 1
    If you fill the input stack in the first few lines of the document then almost certainly you have defined an infinote loop and so it will run out of stack however big you build tex. there is probably an error in the class or package defining \maketitle but inpossible to see from the image you provided (and i don't folow the external links) please try to make a small example and post here in a code section so peopel can debug Oct 10, 2017 at 20:34
  • 2
    please paste your compilable code (even if it doesn't compile) directly into the question to give us something to test with. you can highlight the code and then click on the {} icon above the question box. Oct 10, 2017 at 20:36
  • @barbarabeeton Thank you very much for your comments, I have edited my post with the compilable code. Oct 11, 2017 at 14:20
  • @DavidCarlisle Thank you David, I'm not sure if you also get the notification if I only reply to Barbara, but I have edited my comment with the code, do you require any other files? The template included a .cls file as well, which I can provide if that may be the source of the problem. Oct 11, 2017 at 14:21
  • the prace.cls file isn't on ctan, and that may well be part of the problem, so we'd need access to that too. Oct 11, 2017 at 14:30

1 Answer 1


It's a bug in the class file, add a fix immediately after the documentclass line, so it looks like:

    \csname c@\@mpfn\endcsname 1\relax%
    \protected@xdef\@thefnmark{\thempfn}%this was xdef, which is a bad idea.
  • Thank you very much David, may I ask how you knew to do this and what exactly you did? I would love to be able to handle this on my own next time. Thanks again! Oct 12, 2017 at 13:41
  • 1
    I added \tracingall just before \maketitle and looked where it was looping in the log, that together with the fact that I could have guessed it was a non-robust command in a raw \edef or \write just from the title without even looking at the question, just because that's how TeX is:-) Oct 12, 2017 at 13:45
  • @user8728930: If this answer is what you have looked for (and most likely it is, since it is written by DPC), consider to accept it please
    – user31729
    Oct 31, 2017 at 20:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .