0

I made a plot in Mathematica of a unit circle. I then saved the Mathematica notebook as a .tex file and it generated a .tex file and an .eps file of the plot with the name "Unit Circle_gr1.eps". I'm trying to import this figure into my Latex document and I have read that using the epstopdf package would be able to do this.

However, I'm not sure if I'm using the \includegraphics or epstopdf packages correctly, as I have only started working with Latex a couple of days ago and I'm completely new to this. Any help would be appreciated, here is my code and output:

\documentclass[a4paper,12pt]{report}
\usepackage{physics}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{thmtools}
\usepackage{graphics}
\usepackage{epstopdf}


\renewcommand{\thechapter}{\Roman{chapter}}
\newtheorem{theorem}{Theorem}

\declaretheoremstyle[spaceabove = 6pt, spacebelow = 6pt, headpunct={:} ,postfoothook=\noindent\hspace{-\fontdimen2\font}]{mydef}

\declaretheorem[parent=chapter,name = Def,style = mydef]{definition}
\renewcommand{\thedefinition}{\arabic{chapter}.\arabic{definition}}

\declaretheorem[numbered = no,style = mydef, name = Example]{example}


\begin{document}
    \setcounter{chapter}{2}
    \chapter{Partial Differentiation}
    Contrary to the previous chapter, now we will discuss the continuity and differentiation of functions of several variables.
    \begin{definition}
        Let $D$ be a subset of $\mathbb{R}^2$, i.e: $$D \subseteq \mathbb{R}^2 = \{(x,y) \mid x\in \mathbb{R}, y\in\mathbb{R} \}$$
        We say that $f:D\rightarrow\mathbb{R}$ is a real-valued function of two variables, if it assigns a real number $f(x,y)\, \mathrm{to\,each}\, (x,y) \in D.$ The \emph{range} of $f$ is the set of real numbers that $f$ maps to, $R\subseteq\mathbb{R}.$
    \end{definition}
    \begin{example}
        Let $f(x,y) = \sin(x^2y) \leadsto D = {\mathbb{R}}^2\, , R\rightarrow \left[-1,-1 \right] $
    \end{example}

    \begin{example}
        Let $f(x,y) = \ln\left[1-(x^2+y^2)\right]$\\ For $D:$ $$1-(x^2+y^2)\ge0$$
        $$(x^2+y^2)<1$$
        $$\Rightarrow D = \{(x,y)\in\mathbb{R}^2\mid x^2+y^2<1\}=\text{An open disc of radius}\,\, 1\,\, \text{centered at} (0,0).$$
    \end{example}
    \includegraphics{epstopdf[Unit Circle_gr1.eps]}
\end{document}

enter image description here

  • Have you tried \includegraphics{"Unit Circle_gr1.eps"}. – Arzigoglu Feb 24 '17 at 5:44
  • That works without the quotations, thank you! – Hushus46 Feb 24 '17 at 6:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.