Failed to save .eps file

조회 수: 3 (최근 30일)
Trang Mai
Trang Mai 2020년 4월 23일
편집: Trang Mai 2020년 4월 24일
I use matlab to save a figure as .eps file. However, the file can not work with Latex editor as it converts the .eps figure into blank .pdf file. Any suggestion please?

답변 (1개)

Stephen23
Stephen23 2020년 4월 23일
편집: Stephen23 2020년 4월 23일
"However, the file can not work with Latex editor as it converts the .eps figure into blank .pdf file. Any suggestion please?"
Most likely you are actually compiling your document with pdflatex, which is the default for most installations these days (not basic LaTeX, which compiles only to DVI files). It is very important to note that pdflatex does not directly handle EPS files, it will correctly handle pdf, png and jpg only:
The simple workaround is to use the epstopdf package, so put this at the top of your LaTeX document:
\usepackage{graphicx}
\usepackage{epstopdf} % must come after GRAPHICX
And also specify the filename without an extension, i.e.:
\includegraphics{picture}
and it will automatically convert the EPS files into PDF and include them in your document.
  댓글 수: 1
Trang Mai
Trang Mai 2020년 4월 24일
편집: Trang Mai 2020년 4월 24일
Many thanks, Steven! The problem has been resolved by re-installing Miktex.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by