[Top] | [Contents] | [Index] | [ ? ]

# MiKTeX Tips

Tips for MiKTeX users.

> 1. Introduction |  | About this document.
> 2. TeX compiler |  | TeX compiler tips.
> 3. Dvips |  | Dvips tips.
> 4. DVI Viewer |  | Previewer tips.
> A. Index |  |

# 1. Introduction

This manual lists MiKTeX related tips. Visit the MiKTeX Project page at http://www.miktex.org to view the latest version of this document.

Please feel free to contribute more tips by sending an email to tip@miktex.org.

# 2. TeX compiler

> 2.1 Setting the DVI output filename |  |
> 2.2 Setting the output directory |  |
> 2.3 Improving the edit/view/edit cycle |  |

## 2.1 Setting the DVI output filename

You can use option `--job-name` to set the name of the DVI file

#### Details

The command

    latex --job-name=dog cat.tex

will create the DVI file `dog.dvi` instead of `cat.dvi`.

## 2.2 Setting the output directory

You can use the option `--output-directory` to specify an alternative location for all output files.

#### Details

The command

    latex --output-directory=C:\temp mydoc.tex

causes TeX to leave all output files in the folder `C:\temp`.

## 2.3 Improving the edit/view/edit cycle

Use TeX's `--src` option to enrich the DVI file with source file information.

#### Benefits

- You will be able to synchronize the DVI previewer with the text editor while you are editing the TeX source file.
- You will be able to synchronize the text editor with the DVI previewer while you are viewing the DVI file.

#### Details

The command

    latex --src mydoc.tex

will enrich the DVI file `mydoc.dvi` with source file information, i.e. `mydoc.dvi` will contain references to `mydoc.tex`.

# 3. Dvips

> 3.1 Producing PostScript for distilling to PDF |  |

## 3.1 Producing PostScript for distilling to PDF

Use the option `-Ppdf` to produce PostScript optimized for distilling to PDF.

#### Details

The command

    dvips -Ppdf mydoc.dvi

causes Dvips to

1. use BlueSky/AMS/Y&Y Type 1 fonts
2. and an alternative rule drawing algorithm.

#### Requirements

Requires MiKTeX 1.20c or better.

# 4. DVI Viewer

> 4.1 Page Hopping |  |
> 4.2 Using Yap to view TeX related documentation |  |

## 4.1 Page Hopping

You can type the page number followed by `g` to jump to a certain page. For example, typing the key sequence `220g` will direct Yap to page 220.

## 4.2 Using Yap to view TeX related documentation

You can use Yap to locate and view a DVI file that is installed in the the Documentation Folder (usually `c:\Program Files\MiKTeX\doc`). For example, the command

    yap yap

will open the DVI file `C:\Program Files\MiKTeX\doc\miktex\yap.dvi`.

# A. Index

Jump to: | D E P S Y

| Index Entry | Section
D |  |
| Documentation | 4.2 Using Yap to view TeX related documentation
| DVI file | 2.1 Setting the DVI output filename
| DVI previewer | 2.3 Improving the edit/view/edit cycle
| Dvips | 3.1 Producing PostScript for distilling to PDF
E |  |
| Editor | 2.3 Improving the edit/view/edit cycle
P |  |
| PDF | 3.1 Producing PostScript for distilling to PDF
| PostScript to PDF | 3.1 Producing PostScript for distilling to PDF
S |  |
| Source file information | 2.3 Improving the edit/view/edit cycle
Y |  |
| Yap | 2.3 Improving the edit/view/edit cycle

Jump to: | D E P S Y

[Top] | [Contents] | [Index] | [ ? ]

# Table of Contents

> 1. Introduction
> 2. TeX compiler

> > 2.1 Setting the DVI output filename
> > 2.2 Setting the output directory
> > 2.3 Improving the edit/view/edit cycle

> 3. Dvips

> > 3.1 Producing PostScript for distilling to PDF

> 4. DVI Viewer

> > 4.1 Page Hopping
> > 4.2 Using Yap to view TeX related documentation

> A. Index

[Top] | [Contents] | [Index] | [ ? ]

# Short Table of Contents

> 1. Introduction
> 2. TeX compiler
> 3. Dvips
> 4. DVI Viewer
> A. Index

[Top] | [Contents] | [Index] | [ ? ]

# About this document

This document was generated using texi2html

The buttons in the navigation panels have the following meaning:

Button | Name | Go to | From 1.2.3 go to
--- | --- | --- | ---
[ < ] | Back | previous section in reading order | 1.2.2
[ > ] | Forward | next section in reading order | 1.2.4
[ << ] | FastBack | previous or up-and-previous section | 1.1
[ Up ] | Up | up section | 1.2
[ >> ] | FastForward | next or up-and-next section | 1.3
[Top] | Top | cover (top) of document |
[Contents] | Contents | table of contents |
[Index] | Index | concept index |
[ ? ] | About | this page |

where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:

- 1. Section One

- 1.1 Subsection One-One

- ...

- 1.2 Subsection One-Two

- 1.2.1 Subsubsection One-Two-One
- 1.2.2 Subsubsection One-Two-Two
- 1.2.3 Subsubsection One-Two-Three <== Current Position
- 1.2.4 Subsubsection One-Two-Four

- 1.3 Subsection One-Three

- ...

- 1.4 Subsection One-Four

This document was generated on January, 20 2001 using texi2html