summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/dvipdfm/sample.tex
blob: 0e955616b4c07f294ef19336d6e14f8117b692fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\documentclass{article}
\usepackage[dvipdfm]{graphicx}
\usepackage[dvipdfm]{color}
\usepackage[dvipdfm]{hyperref}
\title{\color{blue}Latex Support Test File}
\author{\color{green}Mark A. Wicks}
\begin{document}
\maketitle
\section{Introduction}
This document is primarily intended
to demonstrate the functionality
of some \LaTeX packages that require
driver support for their functionality.
It is quick-and-dirty.
It is not intended to be pretty, and
does not demonstrate good ways to use these packages
(In fact, it demonstrates some bad ways to use these packages).

\section{Driver Files}
This distribution of {\tt dvipdfm} includes
the {\tt .def} files required to support
the \textcolor{green}{color},
\rotatebox{30}{\textcolor{red}{graphics}}, and hyperref \LaTeX\space
packages.  Once these .def files
are installed where these packages
can find them.  You also may need
to modify {\tt color.sty}, {\tt graphics.sty},
and {\tt hyperref.sty} so that they
recognize {\tt dvipdfm} as a driver.
Once these {\tt .def} files are installed,
you should be able to use {\tt dvipdfm}
with \LaTeX for many applications.

After running \LaTeX on this
document, {\tt hyperref}
should produce a hyperlinked
document, complete with an outline.

\newpage
\section{Graphics Support}
Currently, JPEG and PDF image
inclusion are supported.

\subsection{JPEG Image Inclusion}
Figure~\ref{fig:author}
shows a photograph of the author
that was obtained from a JPEG file.
A small file with the extension of {\tt .bb}
supplies the bounding box to the \LaTeX\space
Graphics package.  For PDF and JPEG files,
this bounding box can easily be created by running
the {\tt ebb} utility included with this
distribution of {\tt dvipdfm}.

\begin{figure}
  \begin{center}
    \includegraphics{mwicks.jpeg}
  \end{center}

  \caption{A photograph of the author.}
  \label{fig:author}
\end{figure}

\subsection{PDF Image Inclusion}
Figure~\ref{fig:circuit} shows
an electronics circuit,
drawn with XFig, distilled,
and then included as PDF file.
\begin{figure}
  \begin{center}
     \includegraphics{transistor.pdf}
  \end{center}

  \caption{A simple two-stage transistor circuit.}
  \label{fig:circuit}
\end{figure}

\begin{figure}
  \begin{center}
     \includegraphics[width=3.0in]{something.pdf}
  \end{center}

  \caption{A second included figure}
  \label{fig:something}
\end{figure}

\end{document}