diff --git a/internal/cli/app.go b/internal/cli/app.go index 7a7e6f9..e7938b1 100644 --- a/internal/cli/app.go +++ b/internal/cli/app.go @@ -185,7 +185,7 @@ func pandocBinaryMustExist(c *cli.Context) error { } // pdflatex must also be present - cmd = exec.Command("pdflatex", "-v") + cmd = exec.Command("pdflatex", "--version") outputRaw, err = cmd.Output() if err != nil { return errors.Wrap(err, "error calling pdflatex") diff --git a/internal/render/html.go b/internal/render/html.go index de961dc..170ec0e 100644 --- a/internal/render/html.go +++ b/internal/render/html.go @@ -82,7 +82,7 @@ func html(output string, live bool, errCh chan error, wg *sync.WaitGroup) { if live { if !opened { opened = true - open.Run("output/index.html") + open.Run(filepath.Join(".", "output", "index.html")) } } else { wg.Done()