0

The problem

I use the template from IOS Press to write my paper. It gives us a sample pdf with its tex file (jiase2e.tex), where each author has superscript:

Template provided by Press However, if I compile it on my computer using pdflatex, the superscripts are replaced by question marks (?):

Template compiled on my computer

The code

I just use the jiase2e.tex file it provides to us, and never change it. There's part of the tex file:

\documentclass{jaise2e}


\usepackage[T1]{fontenc}
\usepackage{times}%

\usepackage{natbib}
%\usepackage[dvips]{hyperref}
\usepackage{amsmath}
\usepackage{dcolumn}
\usepackage{endnotes}
\usepackage{graphics}


\newcolumntype{d}[1]{D{.}{.}{#1}}


\firstpage{1} \lastpage{5} \volume{1} \pubyear{2009}


\begin{document}
\begin{frontmatter}                           % The preamble begins here.

%
%\pretitle{Pretitle}
\title{Instructions for the preparation of a camera-ready paper in \LaTeX\thanks{Footnote in title.}}

\runningtitle{Instructions for the preparation of a camera-ready paper in \LaTeX}
%\subtitle{Subtitle}


\author[A]{\fnms{First} \snm{Author}\thanks{Corresponding author. E-mail: [email protected].}\thanks{Do not use capitals for the author's surname.}},
\author[B]{\fnms{Second} \snm{Author}}
and
\author[B]{\fnms{Third} \snm{Author}}
\runningauthor{F. Author et al.}
\address[A]{Journal Production Department, IOS Press, Nieuwe Hemweg 6b, 1013 BG, Amsterdam,\\ The Netherlands\\
E-mail: [email protected]}
\address[B]{Department first, then University or Company name, Insert a complete correspondence (mailing) address,
Abbreviate US states, Include country\\
E-mail: \{second,third\}@somewhere.com}
...
\end{frontmatter}
...
\end{document}

What I have tried

As a newbie to LaTex, I only come up with an ugly workaround to add superscripts to authors manually:

\author{First Author\textsuperscript{a}\thanks{Corresponding author. E-mail: [email protected].}\thanks{Do not use capitals for the author's surname.}},
\author{Second Author\textsuperscript{b}}
and
\author{Third Author\textsuperscript{b}}

which works fine but not decent.

On the other hand, I add a line \usepackage{authblk} to jiase2e.tex file as suggested by this but without luck:

\documentclass{jaise2e}


\usepackage[T1]{fontenc}
\usepackage{times}%

\usepackage{natbib}
%\usepackage[dvips]{hyperref}
\usepackage{amsmath}
\usepackage{dcolumn}
\usepackage{endnotes}
\usepackage{graphics}
\usepackage{authblk}   % I add this package

\newcolumntype{d}[1]{D{.}{.}{#1}}


\firstpage{1} \lastpage{5} \volume{1} \pubyear{2009}


\begin{document}
\begin{frontmatter}                           % The preamble begins here.

%
%\pretitle{Pretitle}
\title{Instructions for the preparation of a camera-ready paper in \LaTeX\thanks{Footnote in title.}}

\runningtitle{Instructions for the preparation of a camera-ready paper in \LaTeX}
%\subtitle{Subtitle}


\author[A]{First Author\thanks{Corresponding author. E-mail: [email protected].}\thanks{Do not use capitals for the author's surname.}},
\author[B]{Second Author}
and
\author[B]{Third Author}
\runningauthor{F. Author et al.}
\address[A]{Journal Production Department, IOS Press, Nieuwe Hemweg 6b, 1013 BG, Amsterdam,\\ The Netherlands\\
E-mail: [email protected]}
\address[B]{Department first, then University or Company name, Insert a complete correspondence (mailing) address,
Abbreviate US states, Include country\\
E-mail: \{second,third\}@somewhere.com}

there are no authors this time at all:

no authors at all

Is it possible to fix it? Thanks.

P.S.: I use FreeBSD 10 on my x86-64 computer, and have latest (20140525_1) print/texlive-full installed from ports system.

3
  • You just need to run (pdf)latex twice. Commented Sep 20, 2014 at 12:45
  • @IanThompson Cool! Really Nice! Running it twice fixes the issue, thanks. But just curious to know why should we do it twice. Commented Sep 20, 2014 at 13:13
  • LaTeX writes certain information that it needs to a file with the extension .aux. It needs this information to insert references, etc. so you often have to run it twice (or even three times if certain packages are used). Commented Sep 20, 2014 at 15:09

1 Answer 1

1

As @IanThompson points out, running pdflatex jiase2e.tex twice fixes the issue.

You must log in to answer this question.

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