Sublime Forum

Latex + dvips + ps2pdf

#1

I would like to run a .tex file using the sequence: latex --> dvips --> ps2pdf to finally produce the PDF file. I did the following for the latex part in a .sublime-build configuration file:

{ “cmd”: ["/Library/TeX/texbin/latex","$file"], “selector”: “text.tex.latex” }

That works as it creates the dvi file, but I am having troubles making something similar for dvips and ps2pdf. What should I use in “selector” for dvips and ps2pdf?

0 Likes

#2

You should write a script/Makefile to run all the steps and then simply call the top command in the sublime build

2 Likes

#3

Can you be more specific about how to make this build? Thanks

0 Likes

#4

Have a look at the documentation on how to make & use build systems :-
https://www.sublimetext.com/docs/3/build_systems.html

0 Likes