@@ -25,13 +25,11 @@ if not IsBound(Splash) then
2525 ErrorNoReturn(" the 2nd argument must be a record," );
2626 fi ;
2727
28-
2928 path := UserHomeExpand(" ~/" );
3029 if IsBound (opt.path) then
3130 path := opt.path;
3231 fi ;
3332
34-
3533 if IsBound (opt.directory) then
3634 if not opt.directory in DirectoryContents(path) then
3735 Exec(Concatenation(" mkdir " , path, opt.directory));
@@ -47,13 +45,11 @@ if not IsBound(Splash) then
4745 dir := Filename(tdir, " " );
4846 fi ;
4947
50-
5148 file := " vizpicture" ;
5249 if IsBound (opt.filename) then
5350 file := opt.filename;
5451 fi ;
5552
56-
5753 if IsBound (opt.viewer) then
5854 viewer := opt.viewer;
5955 if not IsString(viewer) then
@@ -73,7 +69,6 @@ if not IsBound(Splash) then
7369 fi ;
7470 fi ;
7571
76-
7772 if IsBound (opt.type) and (opt.type = " latex" or opt.type = " dot" ) then
7873 type := opt.type;
7974 elif Length(str) >= 6 and str{[ 1 .. 6 ]} = " %la tex" then
@@ -90,14 +85,12 @@ if not IsBound(Splash) then
9085 inn := Concatenation(dir, file, " .dot" );
9186 fi ;
9287
93-
9488 filetype := " pdf" ;
9589 if IsBound (opt.filetype) and IsString(opt.filetype) and type <> " latex" then
9690 filetype := opt.filetype;
9791 fi ;
9892 out := Concatenation(dir, file, " ." , filetype);
9993
100-
10194 engine := " dot" ;
10295 if IsBound (opt.engine) then
10396 engine := opt.engine;
@@ -110,16 +103,11 @@ if not IsBound(Splash) then
110103 fi ;
111104 fi ;
112105
113-
114106 FileString(inn, str);
115107 if type = " latex" then
116-
117-
118108 Exec(Concatenation(" cd " , dir, " ;" ,
119109 " pdflatex " , file, " 2>/dev/null 1>/dev/null" ));
120110 else
121-
122-
123111 Exec(Concatenation(engine, " -T" , filetype, " " , inn, " -o " , out));
124112 fi ;
125113 Exec(Concatenation(viewer, " " , out, " 2>/dev/null 1>/dev/null &" ));
0 commit comments