3

I'm trying to use \usepackage[italian]{babel} with this journal template: https://it.sharelatex.com/templates/journals/aps

But i get errors on \maketitle (4 errors):

! Missing $ inserted.
! Please use \mathaccent for accents in math mode.
! You can't use `\spacefactor' in math mode.

How can i solve that?

  • Welcome, out of interest, are submissions in italian to the APS allowed? – Johannes_B May 7 '16 at 10:27
  • How can i check that? @Johannes_B – slash89mf May 7 '16 at 10:28
  • I cannot reproduce the error, please provide a minimal working exaple. – Johannes_B May 7 '16 at 10:34
  • If you download the tex file and add the line \usepackage[italian]{babel}, you get all compiled? – slash89mf May 7 '16 at 10:38
  • Seems like sharelatex was too lazy to properly show me something, or i was to stupid. Usually, i don't use the online editors. – Johannes_B May 7 '16 at 10:46
2

It's a bug in italian.ldf and should be reported.

The problem is that the revtex4-1 class activates the comma, but italian.ldf assigns a different meaning than the class expects. Here is a workaround.

\documentclass[
 aps,
]{revtex4-1}

\usepackage[T1]{fontenc}
\usepackage[italian]{babel}

%% work around the bad interaction between revtex and babel-italian
\makeatletter
\let\it@comma@def\active@comma
\makeatother

\begin{document}

\author{Ann Author}
\altaffiliation{a, b}
\affiliation{c, d}

\maketitle

\end{document}

enter image description here

|improve this answer|||||

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.