27 May 2015

Setup WinEdt to Use Cygwin/TeX Live

1. Scenario

I have installed Cygwin, and included TeX Live so that I can compile LaTeX files in Cygwin.
Then I install WinEdt 9, and to save hard disk space, I would like to configure WinEdt such that it can (re-)use Cygwin/Tex Live.

2. Configuration

2.1. Edit System Environment Vaiables to include Path to Cygwin Executables

Skip this step if you have included the path to Cygwin executables.
  1. In Windows 8.1, press [Windows Key] + [Q], type "variables", and select "Edit the system environment variables" from the list. (For other Windows versions, try to find "System Properties", then select "Environment Variables...".)
  2. Under System variables, select "Path" variable, click "Edit...". Append ";C:\cygwin\bin" to the value.
  3. Click 'Ok' three times to complete.

2.2. Configure WinEdt 9

  1. Select Options > Configurations > TeX Live. This tells WinEdt 9 to make use of TeX Live.
  2. Go to Options > Execution Modes.
  3. Select TeX System tab.
  4. Modify the following fields
    • TeX Root: C:\cygwin
    • TeX Bin: C:\cygwin\bin
    • TeX Help: C:\cygwin\usr\share\texmf-dist\doc
  5. Select TeX Options tab.
  6. Modify the following fields
    • Default PDFTeXify Engine: pdftex.exe -fmt=latex -output-format=pdf

3. Bonus

Can use Sumatra PDF, which synchronizes well with WinEdt and TeX Live.