Debian Codegraph @

texmf-dist/doc/dvipdfm/sample.tex

raw
1 \documentclass{article}
2 \usepackage[dvipdfm]{graphicx}
3 \usepackage[dvipdfm]{color}
4 \usepackage[dvipdfm]{hyperref}
5 \title{\color{blue}Latex Support Test File}
6 \author{\color{green}Mark A. Wicks}
7 \begin{document}
8 \maketitle
9 \section{Introduction}
10 This document is primarily intended
11 to demonstrate the functionality
12 of some \LaTeX packages that require
13 driver support for their functionality.
14 It is quick-and-dirty.
15 It is not intended to be pretty, and
16 does not demonstrate good ways to use these packages
17 (In fact, it demonstrates some bad ways to use these packages).
18
19 \section{Driver Files}
20 This distribution of {\tt dvipdfm} includes
21 the {\tt .def} files required to support
22 the \textcolor{green}{color},
23 \rotatebox{30}{\textcolor{red}{graphics}}, and hyperref \LaTeX\space
24 packages. Once these .def files
25 are installed where these packages
26 can find them. You also may need
27 to modify {\tt color.sty}, {\tt graphics.sty},
28 and {\tt hyperref.sty} so that they
29 recognize {\tt dvipdfm} as a driver.
30 Once these {\tt .def} files are installed,
31 you should be able to use {\tt dvipdfm}
32 with \LaTeX for many applications.
33
34 After running \LaTeX on this
35 document, {\tt hyperref}
36 should produce a hyperlinked
37 document, complete with an outline.
38
39 \newpage
40 \section{Graphics Support}
41 Currently, JPEG and PDF image
42 inclusion are supported.
43
44 \subsection{JPEG Image Inclusion}
45 Figure~\ref{fig:author}
46 shows a photograph of the author
47 that was obtained from a JPEG file.
48 A small file with the extension of {\tt .bb}
49 supplies the bounding box to the \LaTeX\space
50 Graphics package. For PDF and JPEG files,
51 this bounding box can easily be created by running
52 the {\tt ebb} utility included with this
53 distribution of {\tt dvipdfm}.
54
55 \begin{figure}
56 \begin{center}
57 \includegraphics{mwicks.jpeg}
58 \end{center}
59
60 \caption{A photograph of the author.}
61 \label{fig:author}
62 \end{figure}
63
64 \subsection{PDF Image Inclusion}
65 Figure~\ref{fig:circuit} shows
66 an electronics circuit,
67 drawn with XFig, distilled,
68 and then included as PDF file.
69 \begin{figure}
70 \begin{center}
71 \includegraphics{transistor.pdf}
72 \end{center}
73
74 \caption{A simple two-stage transistor circuit.}
75 \label{fig:circuit}
76 \end{figure}
77
78 \begin{figure}
79 \begin{center}
80 \includegraphics[width=3.0in]{something.pdf}
81 \end{center}
82
83 \caption{A second included figure}
84 \label{fig:something}
85 \end{figure}
86
87 \end{document}