Setting up text-editors for MiKTeX (a LaTeX implementation on Windows)


Get MiKTeX at http://www.miktex.org/.
At the time of this writing, I used MiKTeX 2.4.

Run this installer, accepting all of the defaults.

When completed, you should find these Start Menu entries.

To use MiKTeX, one would then use a text-editor to compose your TeX/LaTeX source, e.g. my_next_opus.tex. One would then open a command shell ( Start Menu --> Run --> cmd ), navigate to the source directory (using cd "PATH_TO_YOUR_DIRECTORY"),
then run (assuming that MikTeX was installed in C:\texmf\)
C:\texmf\miktex\bin\latex.exe my_next_opus.tex
If any paths or filenames contain spaces (or to be extra careful), one must enclose each object in quotes, e.g.:
"C:\texmf\miktex\bin\latex.exe" "my_next_opus.tex"
Then, to view the resulting .dvi file (exercising extra care):
"C:\texmf\miktex\bin\yap.exe" "my_next_opus.dvi"
Other MikTeX commands (like dvips, dvipdf, etc...) are available in C:\texmf\miktex\bin\

Since the use of the command shell is tedious, I will describe the setup on two text-editors (focusing on the features below in bold red). I'm certain that other text-editors can be analogously configured.


"Notepad++ is a free source code editor (and Notepad replacement) which supports several programming languages running under the MS Windows environment."

Some nice features:

If you want to use Notepad++, visit http://notepad-plus.sourceforge.net/, obtain and run this installer, accepting all of the defaults.

Then, continue with this link:
setup Notepad++.


"UltraEdit the #1 selling, most powerful, value priced text editor available! UltraEdit-32 is a disk-based editor for Windows 98/Me/NT/2000/2003 and XP (not Win32s)."

Some nice features:

If you want to use UltraEdit, visit http://www.ultraedit.com/, obtain and run this installer, accepting all of the defaults.

Then, continue with this link:
setup UltraEdit..




setting up Notepad++


UltraEdit can do all of the features we've discussed for Notepad++ above, plus one more feature: opening yap to the section in the .dvi-file corresponding to the text-editor's current line in the .tex-file. It's possible that Notepad++ can do this as well. If so, please let me know.

setting up UltraEdit


Rob Salgado (salgado@physics.syr.edu)
version 6/26/2006 of http://physics.syr.edu/~salgado/software/latex/miktex_setup/ (zipped)