# [R] Problem with a submission to jss

Christophe Genolini cgenolin at u-paris10.fr
Mon Oct 15 08:04:29 CEST 2012

Le 14/10/2012 00:00, Duncan Murdoch a écrit :
> On 12-10-13 3:20 PM, Christophe Genolini wrote:
>> Hi the list,
>>
>> I am about to submit an article describing an R package to the Journal of Statistical Software but I
>> encounter a strange behavior of LaTeX: the numbering of the figure is correct (1. 2. 3. ...), but
>> when I make a reference to a figure, the section (or the subsection) number appears instead of the
>> figure number.
>> I check if this behavior occurs with the file example provide in the jss package style: it does (I
>> joint the example to this mail). So does someone know what is wrong?
>>
>> Sincerely
>> Christophe
>>
>>
>>
>>
>
> I would guess you put the \label in the wrong place.  Put it in the \caption and it should be fine.
>
> Duncan Murdoch
>
It works, thanks.
But it looks surprising for me. I use LaTeX for quite a long time and I always put the \label after
the \caption (and I find several website that advice to do so). Is it something specific to the jss
style?

Christophe

--
Christophe Genolini
Maître de conférences en bio-statistique
Vice président Communication interne et animation du campus
Université Paris Ouest Nanterre La Défense