Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build with latex engine #1416

Open
jayhathaway opened this issue Jul 7, 2019 · 1 comment

Comments

@jayhathaway
Copy link

commented Jul 7, 2019

I am using ST3 with latextools on windows and texlive 2019. I have been scouring the documentation and can't figure out how to build with the ordinary latex engine (as in, NOT pdflatex).

@ig0774

This comment has been minimized.

Copy link
Collaborator

commented Jul 7, 2019

So, just to preface this response, we don't have proper support for DVI files, so if you're using simple latex, you'll need to output to PDF if you want to use the viewer integration, etc.

The easiest thing to do would be to use the script builder to run latex and then, when its finished, run dvipdfm. To do that you'd need something like this in your LaTeXTools.sublime-settings file (or project file, etc.):

"builder": "script"
"builder_settings": {
    "windows": {
        "script_commands": [
            "latex -interaction=nonstopmode -synctex=1", 
            "bibtex $jobname",
            "latex -interaction=nonstopmode -synctex=1",
            "latex -interaction=nonstopmode -synctex=1",
            "dvipdfm $jobname.dvi"
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.