// YAP.VDM Fritz Heberlein, Uni Eichstaett, Bavaria // (sla019@ku-eichstaett.de) // Last change 17-MAY-2001 // Starts TeX previewer yap.exe from inside Vedit // Version für compile.mnu. F. Tex-menu s. runyap.vdm //----------------------------------------------------------------- // Rejto comments: // USAGE: This macro calls YAP.EXE from within Vedit and implements // the inverse search feature for those TeX files // which have the .tex extension. Also, there is // a harmless typo noted and corrected later. //------------------------------------------------------------------ // I. Determine path and filename, as set by // the reg_save() commands in latex.vcs //------------------------------------------------------------------- // This seems to be a typo, it should read; par 2004-March-25 // c-init.vdm .....in place of.........latex.vcs // Also later @(79) refers to T-reg 79. Where does it come from? // (I checked c-init.vdm and latex.vcs; Thanks Fritz.) //------------------------------------------------------------------- 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)