forked from google-research/arxiv-latex-cleaner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleaner_config.yaml
22 lines (21 loc) · 971 Bytes
/
cleaner_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
patterns_and_insertions:
[
# Use single ticks for regex patterns
# http://blogs.perl.org/users/tinita/2018/03/strings-in-yaml---to-quote-or-not-to-quote.html
# You need to escape \ with \\ in the pattern, for instance for \\todo
# Use Python named groups https://docs.python.org/3/library/re.html#regular-expression-examples
# Escape {{ and }} in the insertion expression
#
# Optional:
# Set strip_whitespace to n to disable white space stripping while replacing the pattern. (Default: y)
{
"pattern" : '(?:\\figcomp{\s*)(?P<first>.*?)\s*}\s*{\s*(?P<second>.*?)\s*}\s*{\s*(?P<third>.*?)\s*}',
"insertion" : '\parbox[c]{{ {second} \linewidth}} {{ \includegraphics[width= {third} \linewidth]{{figures/{first} }} }}',
"description" : "Replace figcomp",
# "strip_whitespace": n
},
]
verbose: False
commands_to_delete: [
'\\todo',
]