// 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. // // Note: In order to use the yap inverse search feature in Vedit, yap // has to be customized. Specifically, in {Options, Inverse Search} // add the line |(HOME)\vpw.exe -c goto_line(%l) "%f" // Oops, this has to be checked again! // // History: // Created by Fritz Heberlein in the 1990-s. // 17-MAY-2001: // Added code to allow inverse search in Vedit. // 2004: Incorporated Rejto suggestion and moved // reg_save() commands from c.init.vdm to latex.vcs // 19-MAY-2005: // Rejto adaptation for the Win 2K My Documents directory. // As per the Vedit Macro Language Reference Manual: // Long filenames with embedded spaces or commas must be // enclosed in double-quotes; if multiple files are specified, or // the "-a", "-l" and "-t" options are used, the entire string must // be enclosed in other delimiters, typically single-quotes. // So, first, the double quote seperator was replaced by the single quote // under the tilda. Second, @(96) was replaced by "|@(96), since this // T-register contains the PATH. Third, the extension .tex was replaced // by .tex" and the extension .div was replaced by .div". // // 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) System(`yap -1 -s "|@(79)|@(96)\|@(85).tex" "|@(96)\|@(85).dvi" `, MAX+SUPPRESS+NOWAIT+OK) //sys("yap -1 -s |@(79)|@(96)\|@(85).tex |@(96)\|@(85).dvi") // This was the original // 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)