1

I am trying to convert eps figure (generated by Matlab) to PDF. The goal is to attach the figure to a conference paper for publication. As many others have pointed out, Matlab generate eps files with non-embedded fonts and as a result IEEE does not accept the PDF. I have been looking to solve this issue for a couple of days.

I have tried using epstopdf package which generates a PDF but when I tried to upload the paper, IEEE still does not allow due to the font issue. I have been trying to edit the options of the epstopdf package by changing

Here is a sample code:

\documentclass[]{report}


\usepackage{blindtext}

\usepackage{graphicx}
\usepackage{epstopdf}
\epstopdfsetup{outdir=./}

\begin{document}
\chapter{Main report}
\blindtext\blindtext\blindtext\blindtext\blindtext

\appendix
\chapter{Parametric study}
\clearpage

\epstopdfsetup{-dEmbedAllFonts=true} 

\section{Subset A}
\begin{figure}[H]
\centering
\includegraphics[scale=0.45]{ICC.eps}
\caption{Parametric study - subset A.}
\label{fig:A-example}
\end{figure}
\clearpage

\end{document}

This gives me a "Undefined control sequence" error. I have already checked my Pdflatex option as recommended by others: "pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %.tex" is set already.

My problems are: how can I use \epstopdfsetup option inside a latex file? and how can I use \epstopdfsetup to generate a PDF from eps that will solve the non-embedded font issue. Thanks so much.

  • Imho epstopdf (the programm not the package) already uses the embed option. You should at first try on the command line if epstopdf file or epstopdf --embed file gets you are correct pdf. – Ulrike Fischer Nov 3 '17 at 16:54
  • I am using Texmaker. Where should I run this command? Thanks. – jhon_wick Nov 3 '17 at 19:38
  • You should run it in console. However, it seems there are some issues with 32-bit MiKTeX: github.com/MiKTeX/miktex/issues/296. As @UlrikeFischer mentioned, fonts should be embedded by default, but they are not. – Ivan Kokan May 5 at 13:07

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.