home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 45
/
Amiga_Dream_45.iso
/
Amiga
/
Magazine
/
Dossier-LaTeX
/
tex_scripts.lha
/
print.edge
< prev
next >
Wrap
Text File
|
1995-10-11
|
650b
|
27 lines
/*Print It*/
Options Results
getenvvar _FE_Name
/* Essentially the same comments as for view.edge apply here. See that file
for more details. */
fenam=result
ch=upper(right(fenam,4))
if compare(ch,'.TEX')==0 then name=left(fenam,length(fenam)-4)
else name=fenam
nam=name||'.dvi'
getenvvar _FE_Path
fepath=result
name=fepath||nam
address command 'rename' name name
if ~(rc==0) then exit
getenvvar _FE_Changes
number=result
if ~(number==0) then do
requestnotify title ERROR string 'You have modified the file. TeX it first.'
end
else do
address command 'TeX:bin/TeXPrt SCREEN=EDGE FILE='name
address command delete 'TeX:bin/DVIPrint.log'
end