// YAP.VDM Fritz Heberlein, Uni Eichstaett, Bavaria // (sla019@ku-eichstaett.de) // // Last change: 17-MAY-2001 // // Last change: 19-July-2005 // (Added Ziemsky suggestion concerning the requirements.) // // Starts TeX previewer yap.exe from inside Vedit // and opens the most recently compiled TeX file. // Version für compile.mnu. F. Tex-menu s. runyap.vdm // // Requirements: The key condition is that latex.vcs has to put // the Project filename without extension into T-Reg 85 and the // Project directory into T-Reg 96. // Also, the VEDITTEMP configuration string has to point // to an existing directory and the attribute of this directory // can not be hidden. // // I. Determine path and filename, as set by // the reg_save() commands in latex.vcs reg_load(85, "|(VEDITTEMP)\lastfile.txt") reg_load(96, "|(VEDITTEMP)\lastpath.txt") // II. set Cur_line to #79 num_str(Cur_line,79,left+nocr) sys("yap -1 -s |@(79)|@(96)\|@(85).tex |@(96)\|@(85).dvi", MAX+SUPPRESS+NOWAIT+OK) // III. Quit: necessary to make YAP's inverse search facility working XALL() %f. Weiterentwcklung //#79=curline //File_Close(NOMSG) // schließen, bevor yap aufgerufne wird //file_open(@(103)) // wieder öffnen //Goto_Line(#98)