Skip to content

Commit

Permalink
feat: support platex and uplatex
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
aslushnikov committed May 23, 2021
1 parent 29eec6d commit 7b0246c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/CompilationRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ class CompilationRequest {
}

function validateCommand(command) {
if (command !== 'pdflatex' && command !== 'xelatex' && command !== 'lualatex')
//TODO: all possible commands should be fetched from the host on
// service start.
if (command !== 'pdflatex' && command !== 'xelatex' && command !== 'lualatex' &&
command !== 'platex' && command !== 'uplatex')
return `Unknown command: ${command}`;
return null;
}
Expand Down
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ <h6>
<option value="pdflatex">pdflatex</option>
<option value="xelatex">xelatex</option>
<option value="lualatex">lualatex</option>
<option value="platex">platex</option>
<option value="uplatex">uplatex</option>
</select>
</div>
</div>
Expand Down

0 comments on commit 7b0246c

Please sign in to comment.