forked from yfpeng/pengyifan-bibtexformat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.cfg
99 lines (87 loc) · 4.38 KB
/
configuration.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
# Configuration file for bibtexformat
#
# Each command needs to be on one single line (i.e. it is not possible to split strings or
# array items over multiple lines). The only exception are configuration blocks indicated
# by a leading "->". The file is evaluated line by line using the Perl eval function.
#
# The variable $ScriptLocation is the path to the script and its files and has to be
# set to the correct value in bibtexformat itself
#
$Options->{nl} = 2; # default number of lines between two BibTeX items
$Options->{lb} = 3; # default number of blanks before a field descriptor
$Options->{ep} = 16; # default equal sign position starting at the first letter of the field name
$Options->{sep} = ":"; # default separator for the cite keys (e.g. Author:Year:Page)
# Papers and JabRef use different local URL formats to link to PDFs. Papers uses the local-url field,
# JabRef uses the file field.
# The following variables define what has to be done to convert between the file paths, that is to
# convert from Papers to JabRef (i.e. from local-url to file), the RegEx s/$LocalURL/$FileURL/ will
# be executed and vice versa.
$LocalURL = "file://localhost/Volumes/Home/username/";
$FileURL = "/Users/username/";
# backup the library file in case the input file is to be overwritten (without -o outfile)
$BackupLibrary = 1;
# default list with journal abbreviations, more than one can be added, separated by commas
@AbbFiles = ("$ScriptLocation/abbreviations.cfg");
# A user-defined list with regular expressions, which are executed on each line of the library.
# These substitutions require using the -subst option.
$Substitutions = "$ScriptLocation/substitutions.cfg";
# A list of author names, which have been exported by Papers the wrong way and have to be corrected, e.g
# J C Johnson Jr => Johnson, Jr, J C
# Ludwig van Beethoven => van Beethoven, Ludwig
# These substitutions require the -autfix option.
$AuthorNames = "$ScriptLocation/authors.cfg";
# shows the absolute sum of occurrences of authors and journals when using -autlist and -joulist
$ShowSum = 0;
# Absolute or relative path to the directory containing files linked to in the file and/or local-url fields.
# -filecheck adds this value before the path given in the file and local-url fields.
$FileDir = "";
# Example configuration block for a reference type correction, copy it and add as many
# as you like. The fix is performed (i.e. DELETE and REPLACE actions taken), if any of
# the IF conditions is satisfied.
# -> TypeFix:
# IF journal, ^Misc$
# IF type, ^Misc$
# IF RefType, ^Misc$
# DELETE journal, title, author
# REPLACE RefType, @misc
# REPLACE url, howpublished
# REPLACE pages, cite-key
# REPLACE doi, note
# END
# Corrections for ahead-of-print articles. The instructions are carried out if ALL of the
# IF conditions apply and the -aopfix option was given.
# -> AOPFix:
# # if the reference type is @article or @inproceedings
# IF RefType, @article|@inproceedings
# # and the pages field is no, no - no, no-no, no--no, etc.
# IF pages, no(\s*-+\s*no)?
# # and a doi field is present
# IF doi
# # replace the field name "doi" with "pages" (the old pages content is deleted)
# REPLACE doi, note
# DELETE pages
# END
#
# -> AOPFix:
# # if the reference type is @article
# IF RefType, @article
# # and a doi field is present
# IF doi
# # and no pages field is there
# IF NOT pages
# # replace the field name "doi" with "pages"
# REPLACE doi, pages
# END
# Items to be ignored if -s switch is given, case insensitively. The 'general' entry applies to
# all items for which no specific ignore list is provided. In all @misc items, the entries given
# for this type will be ignored. In the configuration below, the 'url' field is kept compared to
# all other items.
-> IgnoreFields:
general: Note, Abstract, Keywords, month, uri, owner, timestamp, label, date-modified, adsnote, adsurl,
priority, posted-at, sn, tc, ut, citeulike-article-id, isbn, doi, domains, location, read,
rating, annote, pmid, date-added, Pii, language, affiliation, url
misc: Note, Abstract, Keywords, month, uri, owner, timestamp, label, date-modified, adsnote, adsurl,
priority, posted-at, sn, tc, ut, citeulike-article-id, isbn, doi, domains, location, read,
rating, annote, pmid, date-added, Pii, language, affiliation
END