** file: example.tex ***

\documentclass[a4paper]{article}

\begin{document}

\[ \lim_{x \to \infty} \exp(-x) = 0 \]

\[ \cos (2\theta) = \cos^2 \theta - \sin^2 \theta \]

\[ \frac{!n}{k!(n-k)!} = \binom{n}{k} \]

\[ \frac{\frac{1}{x}+\frac{1}{y}}{y-z} \]

\end{document}

to compile it to dvi format

$ latex example.tex

it will produce example.dvi file

to view it use the following command

$ xdvi example.dvi

screenshot of its output.

## No comments:

## Post a Comment