atom-community / atom-community/atom-script

Sequential commands

Open
#399 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

I'm attempting to add support for a knitr > latex > pdf work flow, similar to what I have used in textmate in the past. For all of these additions I will (of course) submit pull requests, once I know I've got everything working ok.

I have successfully setup commands for both knitr and latex separately:

```
Knitr:
"File Based":
command: "Rscript"
args: (context) -> ['-e', 'library(knitr); knit("'+context.filepath+'", output="'+context.filepath.replace('.Rnw','.tex')+'")']

LaTeX:
"File Based":
command: "texi2pdf"
args: (context) -> ['-c', context.filepath, '-o', context.filepath.replace('.tex','.pdf')]
```

But what I would really like to do is have a way to run the knitr command and then the latex command in sequence with one command. Does script have any sort of support for sequences of commands like this? If not, does anyone have ideas on how that might be accomplished?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.