> "Ling" == Ling Li <[EMAIL PROTECTED]> writes:
Ling> Problem: While adding .bib files via "BibTeX Database form,"
Ling> they are sorted alphabetically. However, sometimes this is not
Ling> desired. For example, I put all "@string" into a abbrev.bib file
Ling> and would like this file to be li
On Wed, Feb 26, 2003 at 03:57:32PM +, Angus Leeming wrote:
> #include// put this to the beginning of the file
>
> template
> void eliminate_duplicates(C & c)
> {
> C unique_c;
> std::set s;
>
> for (typename C::iterator p = c.begin(); p != c.end(); ++p) {
> if
On Wednesday 26 February 2003 3:52 pm, Andre Poenitz wrote:
> On Wed, Feb 26, 2003 at 03:49:21PM +, Angus Leeming wrote:
> > > template
> > > void eliminate_duplicates(C & c)
> > > {
> > > for (size_t i = 1; i < c.size(); ++i) {
> > > typename C::iterator ci = c.begin() + i;
> > >
On Wed, Feb 26, 2003 at 03:49:21PM +, Angus Leeming wrote:
> > template
> > void eliminate_duplicates(C & c)
> > {
> > for (size_t i = 1; i < c.size(); ++i) {
> > typename C::iterator ci = c.begin() + i;
> > if (std::find(c.begin(), ci, *ci) != ci) {
> > c.erase(
Ling Li wrote:
> Problem:
> While adding .bib files via "BibTeX Database form," they are sorted
> alphabetically. However, sometimes this is not desired. For example, I
> put all "@string" into a abbrev.bib file and would like this file to be
> listed at first. If there is another aaa.bib file whic
Problem:
While adding .bib files via "BibTeX Database form," they are sorted
alphabetically. However, sometimes this is not desired. For example, I
put all "@string" into a abbrev.bib file and would like this file to be
listed at first. If there is another aaa.bib file which uses those
@string def