New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
bibtool.rsc in NEMO/trunk/doc/latex/NEMO/main – NEMO

source: NEMO/trunk/doc/latex/NEMO/main/bibtool.rsc @ 11121

Last change on this file since 11121 was 11060, checked in by nicolasmartin, 5 years ago

Backup a merged bibliography with duplicates commented
BibTool? determines double entries from successive identical citation keys so
the procedure was in 2 steps

  1. Process r11051 & r11052 versions of NEMO_manual.bib to have the same pattern for citation key
  2. Merge the 2 versions with BibTool? configured for duplicate checking:
    bibtool -d -- preserve.keys=on -- sort=on input_files -o output_file

It remains to clean the bibliography by deleting the doubles.

File size: 1.4 KB
Line 
1fmt.name.name = "_"
2fmt.et.al     = "_ea"
3
4## Switch of tab indentation for readability under terminal, Trac, ...
5print.use.tab = off
6
7## Make brace the only delimiter
8rewrite.rule = {"^\"\([^#]*\)\"$" "{\1}"}
9
10## Remove void fields
11#rewrite.rule = { "^\" *\"$" }
12rewrite.rule = { "^{ *}$" }
13
14#print { Remove unnecessary fields }
15#delete.field = { address      }
16#delete.field = { chapter      }
17#delete.field = { institution  }
18#delete.field = { isbn         }
19#delete.field = { issn         }
20#delete.field = { issue        }
21#delete.field = { keywords     }
22#delete.field = { language     }
23#delete.field = { note         }
24#delete.field = { number       }
25#delete.field = { organisation }
26#delete.field = { pages        }
27#delete.field = { pdf          }
28#delete.field = { series       }
29#delete.field = { school       }
30#delete.field = { type         }
31#delete.field = { url if field = "doi" }
32#delete.field = { volume       }
33
34## default order for 1st fields
35#sort.order = { * = author # title # booktitle # journal # publisher # editor # year # month # doi # url }
36
37#print { Generate new citation keys }
38ignored.word = "of"
39ignored.word = "and"
40ignored.word = "in"
41## To check duplicates, prevent the key generation by commenting the next lines
42#key.format = { %-2n(author)_%-5.1W(journal)%2d(year) }
43#key.format = { %-2n(author)_%2d(year) }
44
45print { Sort entries by key }
46sort = on
Note: See TracBrowser for help on using the repository browser.