| 1 |
!config |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
identifier: tex |
| 8 |
name: TeX |
| 9 |
authors: |
| 10 |
- Island of TeX |
| 11 |
commands: |
| 12 |
- name: TeX engine |
| 13 |
command: > |
| 14 |
@{ |
| 15 |
return getCommand('tex', interaction, shell, options, |
| 16 |
reference.fileName); |
| 17 |
} |
| 18 |
arguments: |
| 19 |
- identifier: interaction |
| 20 |
flag: > |
| 21 |
@{ |
| 22 |
if ([ 'batchmode', 'nonstopmode', 'scrollmode', |
| 23 |
'errorstopmode' ].contains(parameters.interaction)) { |
| 24 |
return '--interaction='.concat(parameters.interaction); |
| 25 |
} |
| 26 |
else { |
| 27 |
throwError('The provided interaction value is not valid.'); |
| 28 |
} |
| 29 |
} |
| 30 |
- identifier: shell |
| 31 |
flag: > |
| 32 |
@{ |
| 33 |
isTrue(parameters.shell, '--shell-escape', '--no-shell-escape') |
| 34 |
} |
| 35 |
- identifier: options |
| 36 |
flag: > |
| 37 |
@{ |
| 38 |
if (isList(parameters.options)) { |
| 39 |
return parameters.options; |
| 40 |
} |
| 41 |
else { |
| 42 |
throwError('I was expecting a list of options.'); |
| 43 |
} |
| 44 |
} |