I am using Visual Studio Code to learn PostScript language.
I use the following task.json to convert EPS to PDF.
{
"version": "2.0.0",
"tasks": [
{
"label": "EPS",
"command": "ps2pdf",
"args": [
"${file}"
],
"options": {
"cwd": "${fileDirname}"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
And my EPS is
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 10 10 300 300
%%BeginProlog
/inch {72 mul} def
/cm {2.54 div inch} def
%%EndProlog
newpath
1 cm 1 cm moveto
9 cm 0 cm rlineto
0 cm 9 cm rlineto
-9 cm 0 cm rlineto
9 cm 9 cm rlineto
closepath
5 setlinewidth
stroke
showpage
%%EOF
Question
How to automatically update a PDF viewed on the right whenever the corresponding EPS is changed on the left?
