overleaf/services/web/app/coffee/Features/Project/ProjectHelper.coffee
Paulo Jorge Reis af2d959504 Merge pull request #1072 from sharelatex/spd-open-with-overleaf
Implement v1 open-with-overleaf API in v2 (part 1)

GitOrigin-RevId: 488f4eeefc29086a72295ccbc7c63d2f927add12
2018-11-15 10:04:33 +00:00

10 lines
222 B
CoffeeScript

ENGINE_TO_COMPILER_MAP = {
latex_dvipdf: "latex"
pdflatex: "pdflatex"
xelatex: "xelatex"
lualatex: "lualatex"
}
module.exports =
compilerFromV1Engine: (engine) ->
return ENGINE_TO_COMPILER_MAP[engine]