Graphics, Figures & Tables"LaTeX -> PDF" Compilation with EPS Graphics Files

Information and discussion about graphics, figures & tables in LaTeX documents.
giant30
Posts: 13
Joined: Tue Feb 28, 2012 11:59 am

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by giant30 »

Hi,

I'm writing my thesis using MiKTeX 2.9 and TeXnicCenter (64bit). I want to use the output file "LaTeX -> PDF" and all my figure are in EPS format. So, how to can I use PDFLaTeX? I don't want to convert the EPS files to PDF first. Is there any way that LaTeX can do it automatically using "LaTeX -> PDF"?

thanks
sam

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by Stefan Kottwitz »

Hi Sam,

welcome to the board!

Have a look at LaTeX => PS => PDF, there's an example output profile. Perhaps you can use it if you adjust the paths to the current MiKTeX version.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by localghost »

On MiKTeX 2.9 the conversion process should be initiated automatically in the background. If not, include the epstopdf package and pay special attention to its manual (keyword "shell escape", details by forum search).


Best regards and welcome to the board
Thorsten
giant30
Posts: 13
Joined: Tue Feb 28, 2012 11:59 am

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by giant30 »

Stefan_K wrote:Hi Sam,

welcome to the board!

Have a look at LaTeX => PS => PDF, there's an example output profile. Perhaps you can use it if you adjust the paths to the current MiKTeX version.

Stefan
Hi Stefan,
thanks for the reply. I used this output setting, Latex-->PS-->PDF, b4 but i found its very slow in viewing as i hoped that i can build it directly from Latex to PDF,
thx again,
Best regards
sam..
giant30
Posts: 13
Joined: Tue Feb 28, 2012 11:59 am

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by giant30 »

localghost wrote:On MiKTeX 2.9 the conversion process should be initiated automatically in the background. If not, include the epstopdf package and pay special attention to its manual (keyword "shell escape", details by forum search).


Best regards and welcome to the board
Thorsten
Hi Thorsten,
thanks for the reply. I already spent two days on trying with epstopdf package but no good results yet as I'm quiet new with Latex. Anyway, I'll try it again..
Best regards
sam..
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by Stefan Kottwitz »

Hi Sam,

yes you can do it directly. Thorsten's solution would be the best choice. What do you mean by you tried but did not get good results yet? Didn't it work at all? Did you get an error message?

Have a look at: Enable shell escape for epstopdf, this is for activating that feature in TeXnicCenter. The forum search might show more, as Thorsten said.

Also here are screenshots, showing how to set in in various editors: PDF export, scroll a bit down there.

Stefan
LaTeX.org admin
giant30
Posts: 13
Joined: Tue Feb 28, 2012 11:59 am

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by giant30 »

Stefan_K wrote:Hi Sam,

yes you can do it directly. Thorsten's solution would be the best choice. What do you mean by you tried but did not get good results yet? Didn't it work at all? Did you get an error message?

Have a look at: Enable shell escape for epstopdf, this is for activating that feature in TeXnicCenter. The forum search might show more, as Thorsten said.

Also here are screenshots, showing how to set in in various editors: PDF export, scroll a bit down there.

Stefan
Dear Stefan,
I wrote like that in my lates:


\documentclass[a4paper,oneside,12pt]{D:/My_thesis/Classes/MyReport}
\usepackage{epstopdf}
......
....

then in the output profile setting:

Latex-->PDF:
D:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe
-enable-write18 -interaction=nonstopmode "%pm"


but still doesn't work.. what i miss? pls any help?
best regards
sam...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by localghost »

giant30 wrote:[…] but still doesn't work. […]
Not quite an adequate problem description. Check the log file for any irregularities, especially for messages from the epstopdf package.
giant30 wrote:[…] what i miss? […]
Hard to say with a remote diagnosis. You could check out the working directory where your source file is located and look if there are any PDF files that have been converted from your EPS files. If not the log file should have some information here, too.
giant30
Posts: 13
Joined: Tue Feb 28, 2012 11:59 am

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by giant30 »

localghost wrote:
giant30 wrote:[…] but still doesn't work. […]
Not quite an adequate problem description. Check the log file for any irregularities, especially for messages from the epstopdf package.
giant30 wrote:[…] what i miss? […]
Hard to say with a remote diagnosis. You could check out the working directory where your source file is located and look if there are any PDF files that have been converted from your EPS files. If not the log file should have some information here, too.
Dear localghost,
Thank you for the reply.
I run my code and found the there were only five .eps figures converted to .pdf and saved in the same directory where i saved the .eps figures. The five figures appeared in the thesis pdf file. However, the rest of figures were not converted and just i can see a blank space in the thesis pdf..
so i dun know where is the problem :(
best regards

sam..
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

"LaTeX -> PDF" Compilation with EPS Graphics Files

Post by Stefan Kottwitz »

Hi Sam,

check the .log file what happened, check how the other figures differ. Perhaps try

Code: Select all

epstopdf filename.eps
at the command prompt, for testing if it works at all. You could also post the .log file here as attachment.

Stefan
LaTeX.org admin
Post Reply