Skip to content

Instantly share code, notes, and snippets.

@cereda
Created February 7, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cereda/3ccdfb6257e5272ad9c1080a89c9ae9b to your computer and use it in GitHub Desktop.
Save cereda/3ccdfb6257e5272ad9c1080a89c9ae9b to your computer and use it in GitHub Desktop.
!config
identifier: indent
name: Indent
command: <arara> latexindent @{silent} @{trace} @{settings} @{cruft} @{overwrite} @{output} @{file} @{modifylinebreaks} @{logfile}
arguments:
- identifier: silent
flag: "@{isTrue(parameters.silent, '-s')}"
- identifier: overwrite
flag: "@{isTrue(parameters.overwrite, '-w')}"
- identifier: trace
flag: "@{isTrue(parameters.trace, '-t')}"
- identifier: modifylinebreaks
flag: "@{isTrue(parameters.trace, '-m')}"
- identifier: settings
flag: <arara> @{
check = parameters.containsKey('where');
location = check ? parameters.where:'';
if ([ 'local', 'onlydefault' ].contains(parameters.settings)) {
return isTrue(parameters.settings == 'local', isTrue(check, '-l='.concat(location), '-l'), '-d');
}
}
- identifier: cruft
flag: "-c=@{parameters.cruft}"
- identifier: logfile
flag: "-g @{parameters.logfile}"
- identifier: output
flag: "@{[ '-o', parameters.output ]}"
- identifier: where
flag: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment