GeneralClash between the icomma package and revtex4-1 class ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Clash between the icomma package and revtex4-1 class ?

Post by Cham »

I'm experiencing a problem with affiliations in the revtex4-1 class, and the icomma package. Here's a MWE to reproduce the problem :

Code: Select all

\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[10pt,letterpaper,nofootinbib,notitlepage]{revtex4-1}
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{icomma}

\begin{document}

\title{La limite de Chandrasekhar}
\author{Phélippe Dêsbiens}
\affiliation{Collège de Montréal, département de physique}
%\date{}
	\begin{center}
		Course number
	\end{center}
\maketitle

\section{A title}

Bla bla bla

\end{document}
What should be the appropriate fix ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Clash between the icomma package and revtex4-1 class ?

Post by Stefan Kottwitz »

Revtex makes the comma an active character working like a command instead of simply being printed. That breaks with icomma.

A crazy but quick fix would be printing the comma in math mode:

\affiliation{Collège de Montréal$,$ département de physique}

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Clash between the icomma package and revtex4-1 class ?

Post by Cham »

The revtex4 class is really painfull. I'm starting to hate it, and I will not use it anymore after these few documents. Too bad, since I like its output style.

For the affiliation, I now understand better what is happening, and I'll use a simple dot instead.
Post Reply