# Include both eps and png figures, problem with dvipdfmx

I want to include both .eps and .png figures in a latex document. I did some research and find out the solution is to use dvipdfm package. However, this package does not include my .eps files in the document and report following warnings:

\$ dvipdfmx test.dvi

** WARNING ** "ps: plotfile" found (not properly implemented)

I am using following headers in my .tex file:

\usepackage[dvipdfmx]{graphicx}
\input{psfig.sty}

I used to stack Latex, dvi2ps, ps2pdf command to get a .pdf file including .eps figures.

I use following command to include figures in the documet:

\begin{figure}[bthp]
\centerline{\psfig{figure=Results/Rsrch.Evict.eps,width=5in}}
\label{fig:ftl-map}
\end{figure}

Any idea to fix this issue ?

With pdflatex --shell-escape with TeX Live 2013 (and probably --enable-write18 in MikTeX) you can make directly a PDF including both PNG and EPS files. A MWE:

\documentclass{article}
\usepackage{graphicx}
\begin{document}