-
Notifications
You must be signed in to change notification settings - Fork 0
Expansion Config
Fabian Wenzelmann edited this page Oct 9, 2018
·
1 revision
As we've seen before the commands can become quite large, for example we used
/gummibaum expand --file template.tex --row "REPL-TOKEN=token" --row "REPL-VALUE=value" --const "REPL-NAME=John" --csv data.csv
To keep things more readable you can define consts and rows in a JSON file. Create the file config.json with the following content:
{
"const": {
"REPL-NAME": "John"
},
"rows": {
"REPL-TOKEN": "token",
"REPL-VALUE": "value"
}
}
Then the above command can be replaced by
./gummibaum expand --file template.tex --csv data.csv --config config.json
The remaining commands can be used of course.