Options > Execution Modes > Console Applications > LaTeX
Executable: Path\to\latex_preprocessor.bat
Switches: %0
Parameters: "%N%T" "%P\preprocessor.pp"
Full Executable: Path\to\latex_preprocessor.bat
The path to latex.exe should be included in the PATH environmental variable.
"%P\preprocessor.pp" will be the JobFile.
WinEdt 5.6 settings for Forward Search:
Options > Menu Setup > Main Menu > Accessories > Insert New Item:
Pp_Forward_Search
Macro: Run('wperl Path\to\preprocessor_forward_search.pl "%!l%p\%n%t" "%P\%N.dvi" %% "%P\preprocessor.pp"');
Requires file filter: %P\%N.dvi
Start in: %P
Shortcut: Ctrl - Shift - P
Hint: PP DVI Search
Requires a Document
Requires Opened File
WinEdt 6.0 settings for Forward Search in the MainMenu.ini file:
MENU="&Accessories"
...
ITEM="PP_DVI_Search"
CAPTION="&PP DVI Search"
MACRO=:Run(|wperl Path\to\preprocessor_forward_search.pl "%!l%p\%n%t" "%P\%N.dvi" %% "%P\preprocessor.pp"|);
IMAGE="DviFind"
DISABLED=0
INVISIBLE=0
CONFIGURATION=""
SHORTCUT="Shift+Ctrl+P"
SAVE_INPUT=0
START_FOLDER="%P"
REQ_FILTER="%P\%N.dvi"
REQ_DOCUMENT=1
REQ_FILE=1
REQ_MAIN_FILE=0
REQ_SELECTED_TEXT=0
REQ_MODIFIED_TEXT=0
REQ_CLIPBOARD_TEXT=0
REQ_A_MODIFIED_DOCUMENT=0
REQ_UNDO_INFO=0
REQ_REDO_INFO=0
REQ_UNDO_BUFFER=0
REQ_WORKING_STATUS=0