ndlib / nddiss

LaTeX style for Notre Dame Dissertations. We will need to continue to keep this available, even after Curate is retired. Or we will need to transfer ownership to the Graduate School.
LaTeX Project Public License v1.3c
43 stars 45 forks source link

References are not sorted in the way they appear in the narrative #11

Closed prtkm closed 5 years ago

prtkm commented 5 years ago

Hi Don,

I just started writing my thesis and noticed that the references are not sorted in the order the appear in the narrative. Is this a feature? It seems odd to me that the first reference that appears in the document is number 20. See example below:

screen shot 2019-01-30 at 8 29 37 pm

Here is how they should appear if sorted (it looks a lot clearer IMO). I created a pull request that addresses this issue.

screen shot 2019-01-30 at 8 31 22 pm

dbrower commented 5 years ago

Hi Prateek! The behavior you see is expected. The numbers come from the ordering in the bibliography, which is sorted by author last name. I know there are differences in citation formats between disciplines, so please feel free to modify the dissertation style to suit your needs. Maybe this sorting behavior could be turned into an option on the class? Thanks for reaching out.

prtkm commented 5 years ago

Ah I see. Sorting by author last name would make sense for author-date style citations (class option textrefs). I think sorting by order of appearance is more appropriate for numbered citations (class option numrefs).