\documentclass[11pt]{article} % \useAMS % \newcommand{\qed}{ \hspace{\fill} \framebox(9,10)\\ } % code that allows pictures \usepackage{pictex} \usepackage[pdftex]{graphicx} \newcommand{\answer}{ {\bf Answer: } } \newcommand{\vtor}[1]{ \stackrel{\scriptstyle \rightharpoonup}{ #1 } } % code for enlarging margins, just delete \% % \setlength{\oddsidemargin}{0in} % \setlength{\textwidth}{6.25in} % \setlength{\oddsidemargin}{0in} % \setlength{\textwidth}{6.25in} \newcounter{mycounter} \setcounter{mycounter}{1} \newcommand{\prob}[1]{\begin{enumerate} \item[\themycounter.]% \addtocounter{mycounter}{1} #1 \end{enumerate} } \newcommand{\newprob}[1]{\newpage \begin{enumerate} \item[\themycounter.]% \addtocounter{mycounter}{1} #1 \end{enumerate} } \newcommand{\bigprob}[1]{\begin{enumerate} \item[\themycounter.]% \addtocounter{mycounter}{1} #1 \vspace{2.5in} \end{enumerate} } \newcommand{\donetex}{ \vspace{\fill} \hspace*{\fill} Done in \LaTeX. } \begin{document} $\stackrel{\scriptscriptstyle{\rm mth 112}}{\scriptscriptstyle{\rm (Bradford)}} $ \centerline{pdf-Test \# 2} \hspace{\fill} Name :\underbar{\hspace{1.3in} } \bigskip \noindent When using \LaTeX\ , you can drop a tex file into a problem by invoking the pictex and graphic package. The code in the preamble is: \bigskip \hspace*{.5in}$\backslash$usepackage\{pictex\} \bigskip \hspace*{.5in}$\backslash$usepackage[pdftex]\{graphicx\} \vspace{.5in} \prob{Consider the graph of $y = f'(x)$ \bigskip \centerline{ \input testpict1.tex } \bigskip \bigskip State all the intervals where $f(x)$, the original function, is increasing. \vspace{.5in} State all the intervals where $f(x)$ is decreasing. \vspace{.5in} Draw an approximate graph of $y = f''(x)$. Indicate your scales. \vspace{2in} State all the intervals where $f(x)$ is concave up. } % end prob \vspace{.5in} The above graph was included in the file with the following code: \bigskip \hspace{.5in}$\backslash$centerline\{ $\backslash$input testpict1.tex \} \bigskip \noindent To drop a jpeg into a \TeX\ document you should use the following code: \bigskip $\backslash$centerline\{ $\backslash$includegraphics[scale=.5]\{petemarsh.jpg\} \} \% end center \bigskip \noindent But the formatting of a jpeg is difficult. See the following. \bigskip \newpage ``A find in 1984 in Lindow Moss, Cheshire, adds a new dimension to the picture of interest in new places. Workmen watching a peat cutting machine found parts of a human body preserved in the water logged peat about 0.7 metres ($2{1\over 4}$ feet) below the present surface. Excavations...revealed that the body, which was that of a man, had been garroted and then dumped on the surface of the bog in a shallow pool. Details of the stratigraphy in which the body was found, and preliminary radiocarbon dates, suggest that Lindow Man, or {\it Pete Marsh} as he is affectionately known to those who found him, was executed some time towards the end of the first millennium {\sc bc} or early first millenium {\sc ad}.'' \vspace{.5in} % ***************************************8***** \centerline{ \includegraphics[scale=.5]{petemarsh.jpg} } % end center % ***************************************** \vspace{.5in} \donetex \end{document}