davids@ucscf.UCSC.EDU (Dave Schreiber) (01/29/91)
I've been trying to link AmigaTeX and DME together using ARexx.
Specifically, I've created an ARexx script, bound to SHIFT-F1 in DME, that
takes a name of a LaTeX file as an argument. Here it is:
----
/*LaTeX a file and then preview it*/
arg fullname
echo fullname
if (length(fullname) < 5) then do
echo 'This is not a TeX file!'
exit 101
end
if (right(fullname,4) != '.tex') then do
echo 'You need to specify a TeX file!'
exit 101
end
filename = left(fullname,length(fullname)-4)
address command
'tex &lplain 'filename
'preview 'filename
exit 0
----
The line in DME's s:.edrc file that binds the macro to SHIFT-F1 is:
map s-f1 (saveold rx1 tex.rx $filename)
Everything works fine, until AmigaTeX is run. AmigaTeX prints its
copyright line, then both it and DME freeze up. Sending commands to
AmigaTeX doesn't work (although XOper shows that its ARexx ports are open)
and neither does trying to break out of it using BREAK. I get the same
effect whether running the macro from DME or from the CLI (except that DME
doesn't freeze when the script is run from the CLI). Replacing 'tex
&lplain 'filename with a command to execute an external script that runs
AmigaTeX also changes nothing. Suggestions, anybody? I'm using AmigaTeX
V2.9r and DME V1.42, BTW. Thanks.
--
Dave Schreiber davids@slugmail.ucsc.edu
or (but not both) davids@ucscf.ucsc.edu
"It was fun learning about logic, but I don't see where or when I will ever
use it again."