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 -- 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: article.pdf Type: application/pdf Size: 314784 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121013/4d254bc8/attachment-0002.pdf>
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 > > > > This body part will be downloaded on demand. >I would guess you put the \label in the wrong place. Put it in the \caption and it should be fine. Duncan Murdoch
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 >> >> >> >> This body part will be downloaded on demand. >> > > 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