MCG-NKU / CVPR_Template

367 stars 58 forks source link

add ordered citations #2

Open cfunk1210 opened 4 years ago

cfunk1210 commented 4 years ago

Can we enable the cite package sorting in the cls? It always bugs me that people don't follow the rule of ordering the citation in ascending order. Looks like that rule might not be in the latest version of the pdf but it's really easy to do.

Just add \usepackage[sort,nocompress]{cite} to the cls.

https://ctan.math.illinois.edu/macros/latex/contrib/cite/cite.pdf

Thanks

trougnouf commented 4 years ago

I prefer to sort citations in order of appearance, but that doesn't seem to be an option here.

\bibliographystyle{ieeetr} does that but without full names.

edit: per https://stackoverflow.com/a/6562312/3233339 , it's as simple as commenting out

ITERATE {presort}
SORT

in ieee_fullname.bst

MingMingCheng commented 4 years ago

By default, cvpr citations are sorted. Maybe, we should allow users to choose whether to have "compress" or "nocompress" for the cite package.

cfunk1210 commented 4 years ago

I mean citations inline.

pablospe commented 4 years ago

I confirm \usepackage[sort,nocompress]{cite} solves this problem. It should be included in the template.

pablospe commented 4 years ago

I prefer to sort citations in order of appearance, but that doesn't seem to be an option here.

\bibliographystyle{ieeetr} does that but without full names.

edit: per https://stackoverflow.com/a/6562312/3233339 , it's as simple as commenting out

ITERATE {presort}
SORT

in ieee_fullname.bst

I believe this is not the solution because it doesn't follow the CVPR style. I understand that the references need to be sorted by authors, and not in order of appearance. It is different thing what @cfunk1210 is referring, basically, to sort the citation lists into ascending order. For example, [4,10,6,1] to [1,4,6,10].

cfunk1210 commented 4 years ago

@pablospe is correct. This only refers to multiple citations within the paper. It shouldn't affect anything else and please don't make a change in the references sort rder.

yuanpanlifly commented 1 year ago

请问文献顺序不对怎么解决的啊

MingMingCheng commented 1 year ago

请问文献顺序不对怎么解决的啊

官方并未规定顺序。所以不存在顺序不对的问题