Running LaTeX From TextPad

It is very convenient to run LaTeX and view its output directly from TextPad, rather than mucking about with the command line interface. To do this, however, we need to do a little setup.

  1. Open TextPad.
  2. Open the preferences page by going to the Configure menu and selecting "Preferences..."
  3. At the bottom of the left-hand column of the preferences pages, you will notice the word "Tools". Select it. You will now see the following:
  4. Click the "Add" button on the upper right and select "DOS Command".
  5. You'll see the following text box, into which you'll type "latex".
  6. Hit OK, and then select "DOS Command" again, but this time type "yap" into the text box. After hitting OK again, you should see this:
  7. Hit the "Apply" button, and you'll see this: (you may need to click the box next to "Tools" in order to see the two new entries in the left-hand column.)
  8. Now select the "latex" entry in the left-hand column, and edit the text boxes, check boxes, etc., to make it look exactly like this:
  9. Now select the "yap" entry in the left-hand column, and edit the text boxes, check boxes, etc., to make it look exactly like this:
  10. Finally, click "OK". You should now be able to see your two new commands under the Tools menu:
  11. Now, when we have a LaTeX document open in text pad, we can just select the "latex" tool to compile and the "yap" tool to view. Hooray!