Using Latex On Windows: What Is The Intention of This Document?
Using Latex On Windows: What Is The Intention of This Document?
Using Latex On Windows: What Is The Intention of This Document?
http://www.pinteric.com/miktex.html
Why would someone use LaTeX instead of Word in the rst place?
Although Word is a useful and practical tool for writing short and (very) simple documents, it becomes too complex or even unusable when one wants the word processor to do more complicated tasks. Moreover, many rather commonly needed features, like user-customised automated numbering or various automated indexes,
1 of 4 11/07/2012 05:43 PM
LaTeX on Windows
http://www.pinteric.com/miktex.html
cannot be created using Word at all. LaTeX does require more eort and time to learn to use even for simpler tasks, but once learned, dicult tasks can be accomplished rather easily and straightforwardly. Therefore, LaTeX is simpler, faster and better way to produce large or complex documents and the additional eort eventually pays o. Additionally, LaTeX is especially well suited for scientic and technical reports, even shorter ones. Writing only one diploma or master or doctor dissertation will pay o all your additional eort. And not to be forgotten - LaTeX is completely free of charge! If you want to learn more about (dis)advantages of LaTeX, read about Word Processors: Stupid and Inecient by Allin Cottrell.
1. Text editor
... to create LaTeX documents. You can use any text editor you like! Some text editors are, however, preferred, because they have syntax highlighting, that is program show LaTeX commands dierently than the rest of the text (e.g. dierent colour). See the comparison of TeX editors.
2. PostScript output
... to create EPS graphics for use with LaTeX. (EPS graphics are natural but not exclusive for use with LaTeX.) Your favourite program(s) do not have EPS output? Simply install dummy PostScript printer to your system. You can actually use any PostScript printer you wish, however I recommend free Generic PostScript Printer from Adobe. Now you can simply print from your favourite program(s) to dummy PostScript printer you just have installed, any you will get genuine EPS les. But please beware next three things: During the installation do not forget to choose FILE: as a port to print to (to make it dummy printer). After the installation go open properties of the printer and in Printing preferences/Advanced/Document Options/PostScript Options choose Encapsulated PostScript (EPS) for PostScript Output Option. Every time you create EPS le you have to change .prn extension to .eps extension.
3. LaTeX compiler
... to make real documents out of your LaTeX source le. MiKTeX is a free LaTeX compiler for Windows and its installation is extremely simple. LaTeX compiler produces so called DVI le, which can be then inspected and printed by YAP DVI viewer, which is included in the package.
2 of 4 11/07/2012 05:43 PM
LaTeX on Windows
http://www.pinteric.com/miktex.html
4. PostScript viewer
... to view/print your documents. Of course in general you can inspect and print LaTeX documents using YAP DVI viewer. However, if your document includes EPS graphics, then you need PostScript Viewer. There is a freeware GSView for Windows available! Remember, you have to install both GhostScript and GSView to make latter working! I specify, for the sake of order, the same installation folder (e.g. c:\tex) for all installations and packages!
Please replace above c:\tex\epstool-3.08\ folder with your own Epstool installation folder. Writing epscrop myfile will adjust very reliably bounding box in myfile.eps.
3. Inverse search.
While viewing the LaTeXed document with YAP DVI viewer, you might want to edit the specic part of the source document. Inverse search enables you that by double-
3 of 4
11/07/2012 05:43 PM
LaTeX on Windows
http://www.pinteric.com/miktex.html
clicking this particular part in the DVI viewer, you jump directly to the editor in the specic source line! To achieve it you have to do two following things: Tell MiKTeX to put source specials into the DVI le. You do that by specifying the option --src. Tell YAP in Use/Option/Inverse search how to run your LaTeX editor to specic document and line in it. For example, that line for UltraEdit is "c:\path
\uedit32.exe" %f/%l
YAP puts le name instead of %f and line number instead of %l. You should check your favourite editor manual to nd out the right content of the line for you. In case you know the specic lines for other text editors, please send them to me and they will be added to this document. Important! Inverse search does not function well in two-column environment.
4. Compile jump.
While compiling your le with LaTeX, you might want to edit the specic part of the source document, where an reported error has occurred. You can invoke the editor by pressing e in the error menu, provided that you have specied to MikTeX how to run your LaTeX editor to specic document and line in it. You can do that by putting Editor= line in [TeX] section in the miktex.ini. For example the line(s) for UltraEdit are:
[TeX] ... Editor="c:\path\uedit32.exe %f/%l"
MikTeX puts le name instead of %f and line number instead of %l. You should check your favourite editor manual to nd out the right content of line for you. In case you know the specic lines for other text editors, please send them to me and they will be added to this document.
4 of 4
11/07/2012 05:43 PM