home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
texmf
/
rexx
/
GoldEd
/
TeX-DVI.ged
< prev
next >
Wrap
Text File
|
1994-03-22
|
1KB
|
54 lines
/*
$VER: TeX-DVI.ged V0.96 (20.3.94) Axel Burghardt
Bringe über das TeX-Server Kommando 'SHOWDVI' den DVI-Viewer nach
vorne. Ist der aktuelle Text kein TeX-Text, dann mache nichts.
*/
Title = "TeX-DVI V0.96"
OPTIONS RESULTS
/* ----------------- Wie wurde GoldEd gestartet? ------------------ */
IF (LEFT(ADDRESS(), 6) ~= "GOLDED") THEN address 'GOLDED.1'
'LOCK CURRENT'
SIGNAL ON SYNTAX
OPTIONS FAILAT 6
/* -------------------------- Hauptteil --------------------------- */
IF ~show('P','TEX.1') THEN DO
'REQUEST BODY="TeX-Server läuft nicht!"'
END
ELSE DO
'QUERY DOC VAR DOC'
Basename = left(Doc,length(Doc)-4)
Extension = right(Doc,4)
IF upper(Extension) ~= '.TEX' THEN
'REQUEST BODY="Kein TeX-Text!"'
ELSE DO
IF exists(Basename||'.DVI') THEN DO
'UNLOCK'
address 'TEX.1' 'SHOWDVI' Basename||'.DVI'
END
ELSE
'REQUEST BODY="'upper(Baseame||'.DVI') 'nicht gefunden!"'
END
END
'UNLOCK'
EXIT 0
/* ----------------------- Fehlerbehandlung ----------------------- */
SYNTAX:
'REQUEST BODY="Fehler in Zeile' SIGL ':' ERRORTEXT(RC) '"'
'MARK HIDE'
'GOTO LINE='SIGL
'MARK SET'
'UNLOCK'
EXIT 5