// CONT-LATEX2E.VDM - Rejto adaptation of : Peter A. Rejto 04/0/2004 // // CONT-HLP.VDM - Context sensitive help Christian Ziemski 06.07.1999 // (ChZiemski@bigfoot.com) //////////////////////////////////////// // // USAGE: // // 1.: Find the word at the cursor and place it into the Windows clipboard. // (Simple adaptation of the Ziemski macro) // // 2.: Open the latex help file, LATEX2E.HLP. (As per Ted's suggestion) // // 3.: Press the Index tab and use the Ctrl-V keystroke to enter the selected word into // the input box of the LATEX2E HELP Dialog_Input_Box. // ///////////////////////////////////////// // From the Ziemski original: // // Calls the VEDIT Help for the word/command at cursor position. // // // For easy usage assign it to Ctrl-F1: // // Key_Add("Ctrl-F1","[VISUAL EXIT] SPOS() if(S('|S',REVERSE+ADVANCE+NOERR)==0){BOL} #103=CP if(S('|S',NOERR)==0){EoL} #104=RF() RCB(#104,#103,CP) RPos() H(@#104) RE(#104)",OK) // ////////////////////////////////////////// Save_Pos() // remember original position if(Search("|S",REVERSE+ADVANCE+NOERR)==0){ // search previous separator Begin_Of_Line // if none: from line begin } // #103=Cur_Pos // remember begin of word if(Search("|S",NOERR)==0){ // search next separator EoL // if none: up to line end } // // #104=Reg_Free() // Clip_Copy_Block(#103,Cur_Pos) // get word to search for in help // par; and place it into the Windows Clipboard. Restore_Pos() // restore cursor position // PAR begins: Sys("start c:\texmf\doc\latex\help\latex2e.hlp", DOS+SIMPLE+NOWAIT) // /////////////// // Additional Notes: // // This macro is similar to the VEDIT {Help, Command at cursor} menu command macro. // However, it does not place the the "command" into the input box of the Help // Dialog_Input_Box. This has to done manually with the Ctrl-V keystroke. //