Update: Replacing the following line (number 79):
startline=`cat $bibfile | grep -n $reference | awk -F: '{print $1}'`
with:
startline=`cat $bibfile | grep -n @[a-z]*{$reference, | awk -F: '{print $1}'`
prevents problems with short/1 character cite keys and should work 100% of the time as long ...
Search found 4 matches
- Sat Feb 13, 2010 4:13 pm
- Forum: BibTeX, biblatex and biber
- Topic: Changing sort order with natbib author-year style
- Replies: 5
- Views: 23933
- Sat Feb 13, 2010 1:31 am
- Forum: BibTeX, biblatex and biber
- Topic: Changing sort order with natbib author-year style
- Replies: 5
- Views: 23933
Changing sort order with natbib author-year style
In case anybody else encounters the same issue, the attached shell script re-orders the order that references are given in the tex source file. Removing the 'sort' option to natbib should then result in references that are sorted chronologically in the text but alphabetically in the bibliography ...
- Mon Feb 08, 2010 11:35 am
- Forum: BibTeX, biblatex and biber
- Topic: Changing sort order with natbib author-year style
- Replies: 5
- Views: 23933
Re: Changing sort order with natbib author-year style
Hmm, I feared as much. Plan B is to write a shell script to grep, reorder and replace the citep entries by cross-referencing against the bib file; I'll be damned if I'm doing it manually
Thanks for the reply anyway,
Matt

Thanks for the reply anyway,
Matt
- Thu Feb 04, 2010 12:35 pm
- Forum: BibTeX, biblatex and biber
- Topic: Changing sort order with natbib author-year style
- Replies: 5
- Views: 23933
Changing sort order with natbib author-year style
Hi guys
I've (nearly) finished writing my thesis, using natbib and the author-year style for references and my own bst file (generated using custom bib). I was using the 'sort' option for natbib, which sorted multiple references in alphabetical order (the same as the bibliography) when using, for ...
I've (nearly) finished writing my thesis, using natbib and the author-year style for references and my own bst file (generated using custom bib). I was using the 'sort' option for natbib, which sorted multiple references in alphabetical order (the same as the bibliography) when using, for ...