PsTricks 和 Png 文件 Shell 逃逸

PsTricks 和 Png 文件 Shell 逃逸

我在 Mac 上使用 TeXShop,想同时包含 pstricks 图表和插入的图像 (PNG) 文件,但一直没有成功。我尝试切换我的首选项以包含 Shell Escape,但我是新手,在这方面做得最好。我包括了 tex 文件和一些图像。

如果有人能一步一步地帮助我,我将不胜感激。我一直在寻找,但找不到答案。

缺口在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

\documentclass[12pt]{exam}
\usepackage{amsmath}
\usepackage{epstopdf}  
\usepackage{multicol}
\usepackage{color}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{pst-all}
\usepackage{pstricks}
\usepackage{auto-pst-pdf}

\pagestyle{headandfoot}
\firstpageheader{Area Between Curves}{Applications of Integrals}{BC Calculus}
\runningheader{Area Between Curves}{Applications of Integrals}{BC Calculus}
\firstpagefooter{Advisory 3}{Mr. Bennett}{SWW Math Dept.}

\begin{document}    
    \begin{center}
\psset{unit=.85cm}
\begin{pspicture*}(-5,-4)(5,6.5)
  \pscustom[fillstyle=solid,fillcolor=blue!25,linestyle=none,algebraic]{%
    \psplot{0}{2}{x^2+1} 
    \psline(0,1)(2,5)(0,5)  
  }
  \psplot[linewidth=1.25pt,algebraic]{-2.25}{2.25}{x^2+1}
  \psplot[linewidth=1.25pt,algebraic]{-5}{5}{5}
  \psaxes[ticks=none,labels=none,arrowinset=0,arrowsize=8pt]{<->}(0,0)(-4,-3)(4,8)[$x$,-90][$y$,0]
  \uput[r](1,2){$y=x^2+1$}
  \uput[u](-3.5,5){$y=5$}
\end{pspicture*}
\end{center}

\begin{questions}
        \question For the figure above, the area of the shaded region is

        A.  $\dfrac{14}{3}$ \\ \\
        B.  $\dfrac{16}{3}$ \\ \\
        C.   $\dfrac{28}{3}$ \\ \\
        D.  $\dfrac{32}{3}$  \\ \\
        E.  $\dfrac{65}{3}$ \\ \\
\rule{7in}{1.25pt}


    \question (1998 AB 25) What is the area of the region between the graphs of $y=x^2$ and $y=-x$ from $x=0$ to $x=2$?  
        \begin{parts}
            \part 2/3
            \part 8/3
            \part 4
            \part 14/3
            \part 16/3
        \end{parts}
            \answerline
                \rule{7in}{1.25pt}

    \begin{figure}[!h]
        \centering
        \includegraphics{graph3.png}
    \end{figure}
    \question The area of the shaded region in the figure above is represented by which of the following integrals?
        \begin{parts}
            \part $\displaystyle{\int_{a}^{c} (|f(x)|-|g(x)|\; dx}$
            \part $\displaystyle{\int_{b}^{c} f(x)\;dx}- \displaystyle{\int_{a}^{c} g(x)\; dx}$ 
            \part $\displaystyle{\int_{a}^{c} (g(x)-f(x))\;}$
            \part $\displaystyle{\int_{a}^{c}(f(x)-g(x)\;dx}$
            \part $\displaystyle{\int_{a}^{b} (g(x)-f(x))\;dx}+ \displaystyle{\int_{b}^{c} (f(x)-g(x))\;}$
        \end{parts}
            \answerline
                \rule{7in}{1.25pt}

\end{questions}
\end{document}

相关内容