| 1 |
!config |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
identifier: pdftex |
| 8 |
name: PDFTeX |
| 9 |
authors: |
| 10 |
- Island of TeX |
| 11 |
commands: |
| 12 |
- name: PDFTeX engine |
| 13 |
command: > |
| 14 |
@{ |
| 15 |
return getCommand('pdftex', interaction, draft, shell, |
| 16 |
synctex, options, 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: synctex |
| 36 |
flag: > |
| 37 |
@{ |
| 38 |
isTrue(parameters.synctex, '--synctex=1', '--synctex=0') |
| 39 |
} |
| 40 |
- identifier: draft |
| 41 |
flag: > |
| 42 |
@{ |
| 43 |
isTrue(parameters.draft, '--draftmode') |
| 44 |
} |
| 45 |
- identifier: options |
| 46 |
flag: > |
| 47 |
@{ |
| 48 |
if (isList(parameters.options)) { |
| 49 |
return parameters.options; |
| 50 |
} |
| 51 |
else { |
| 52 |
throwError('I was expecting a list of options.'); |
| 53 |
} |
| 54 |
} |