[Tex/LaTex] Latex error: Option clash for package inputenc

input-encodingsoption-clash

I tried to cut all the unnecessary text and it all boils down to this: the following file does compile if I comment the \usepackage[mac]{inputenc} line.

\documentclass{frontiersSCNS}
\def\journal{Bioengineering}
\def\firstAuthorLast{Sample {et~al.}}
\usepackage[mac]{inputenc}
\begin{document}
a
\end{document}

However, with that line, the result is

Latex error: Option clash for package inputenc

\begin
      {document}

It must be something trivial, but I have no idea what is happening and how to solve it. Can anyone help me?

Best Answer

I just stumbled upon the same issue with the frontiers style. You can add

\DeclareOption{utf8}{\PassOptionsToPackage{utf8}{inputenc}}

in line 25 of frontiersSCNS.cls and use

\documentclass[utf8]{frontiersSCNS}

in your document. I've submitted this suggestion also to the frontiers editorial office.