LaTeX Install

From UCB Math Wiki
Revision as of 01:45, 3 October 2007 by Mgsa (talk | contribs) (Installing MikTeX)
Jump to: navigation, search

Installation for Windows

There are three easy steps for installing LaTeX on Windows:

  • Install GhostView - for creating and viewing postscript (.ps) files
  • Install MikTex - this is the standard LaTeX package for Windows
  • Install a Text Editor - to type up your own LaTeX files or edit other people's files

All these components will take up approximately 400 MB on your computer, but have at least 600 MB free before installation to keep your computer running smoothly.

Installing GhostView

This step is so that you can create and view postscript (.ps) files.

You need to download GhostView, which consists of two parts, GSView and Ghostscript. Download the most current versions of both and install them following the instructions in the self-extracting installation packages. Users of personal computers should install the Win32 versions of these packages.

Installing MikTeX

This is the crucial component of the installation and also the biggest on disk, consisting of more than 300 MB. Expect it to take about an hour to download and install, even with a fast connection and computer.

Go to the MikTex webpage and choose Install MikTex from the left menu bar. Select the version you want to install (probably the newest) and follow the instructions. You usually have the choice between a basic install and a full install. If you have the room on your computer and plan to use LaTeX pretty heavily in the future, you might as well do a complete install, rather than having to Latex_Install#Installing_Extra_Packages add packages later.

Once MikTeX is done installing, it will have created two directories full of many files: the MikTex directory and the texmf directory, the latter of which has all the executable files like latex.exe .

Installing a Text Editor

Any text editor is sufficient to type up LaTeX documents, however some are specially designed with LaTeX in mind. These usually have buttons for common tasks and text highlighting/coloration for LaTeX environments like Math Mode.

Warning: do not type up LaTeX documents in word processing programs, such as MS Word. These programs "mark up" the text, meaning they have program-specific coding hidden in the file. The text you see on screen is much less than the actual text inside the file. The LaTeX compiler will encounter this extra coding and produce strange results.

It's recommended to use a text editor with LaTeX-specific features. Such a list can be found here.

For text editors without LaTeX in mind, you will have to create your LaTeX files in them (making sure to give them a .tex filename extension). Then, bring the file to the same folder that latex.exe is in (usually C:\texmf\miktex\bin ). Open the command prompt, navigate to the folder latex.exe is in and type latex <filename> to compile the file. This produces several files, including a .dvi file. The DVI file can easily be converted to PS or PDF formats.

Installing Extra Packages

Once you've been using LaTeX for a while, you may find that you need to install new/additional LaTeX packages. MikTeX makes this process very simple. Find MikTeX in your Start Menu and select MikTex Options. This is the file mo.exe in the same directory where you find latex.exe (usually this is C:\texmf\miktex\bin ).

Click on the Packages tab, then right-click the root of the directory tree (usually called 'MikTeX Packages'). The option 'Find Package' appears, so click it. Then type the name of the package you seek into the appropriate field and click 'Find Now'. Select the search result you want and click 'Goto'. Install if necessary.

Installation for Mac

Installing LaTeX

Installing a Text Editor

A list of text editors can be found here.

Installing Extra Packages

Once you've been using LaTeX for a while, you may find that you need to install new/additional LaTeX packages.

Installation for Linux