MiKTeX and proTeXteps to pdf

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
User avatar
0.8.15
Posts: 16
Joined: Mon May 26, 2008 10:39 am

eps to pdf

Post by 0.8.15 »

hi,

i want to convert .eps pictures with MikTEX into the pdf format.
the packages "epstopdf" or "epspdfconversions" in combination with "graphicx" or "graphics" are supporting that.

after the compilation i always see in the pdf dockument no picture. but ther is just a frame instead.

for security reason i don^t want to enable "write 18".

dev

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

eps to pdf

Post by Stefan Kottwitz »

Hi dev,

do you get warnings or error messages?
Do you use a draft option anywhere?

You could enable write18 just for one compiler run, or convert the eps pictures by calling epstopdf on the command line.

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

eps to pdf

Post by localghost »

0.8.15 wrote:[...] for security reason i don^t want to enable "write 18". [...]
I wonder what these security reasons might be and I would turn off that option on my machine if they are critical. Perhaps you can explain that to me.


Best regards
Thorsten¹
User avatar
0.8.15
Posts: 16
Joined: Mon May 26, 2008 10:39 am

eps to pdf

Post by 0.8.15 »

\documentclass[12pt,a4paper,headsepline]{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{latexsym}
\usepackage[percent]{overpic}
\usepackage{hhline}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{array}
\usepackage{makeidx}
\usepackage{ntheorem}
\usepackage{textcomp}

\usepackage{auto-pst-pdf}%requires also the following packages:
\usepackage{pst-pdf}
\usepackage{ifplatform}
\usepackage{xcolor}
\usepackage{preview}
\usepackage{environ}
\usepackage{graphics}

\usepackage{epstopdf}

%i used the normal code to implement the picture:

\begin{figure}[h!]
\centering
\includegraphics[width=0.35\textwidth]{images/fibril.eps}
\caption{hhhhhhhhhh}
\label{hhhhhh}
\end{figure}



%after compiling i reseive the following messages:

-package epstopdf warning: shell escapefeature is not enabled.
-package graphics error: file images/fibrill.pdf is not found...
...[width=0.35\textwidth]{images/fibrill.eps}

-after using the package "auto-pst-pdf" i reseived the following warning:
"shell escape" (or "write18") is not enabled: auto-pst-pdf will not work!


how can i enable "write18" ?

thanks in advance
Last edited by 0.8.15 on Tue Sep 16, 2008 6:08 pm, edited 4 times in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

eps to pdf

Post by Stefan Kottwitz »

Have a look here: write18, perhaps this already helps.

Stefan
LaTeX.org admin
User avatar
0.8.15
Posts: 16
Joined: Mon May 26, 2008 10:39 am

eps to pdf

Post by 0.8.15 »

thanks, but i tryed this also:

at first i have made an update of the file pdftex.ini ;)

then i wrote EnableWrite18=t into it with 2 ; :

;;; DO NOT EDIT THIS FILE!
[ft.tex]
extensions=
extensions;;EnableWrite18=t;=.tex
extensions;=.src

blablabla

but i reseived the message that write18 is not enabled.
i guess i am wasting to much time with that and i meed to take .jpg pictures instead :(
PS:i am logging off now for tonight
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: eps to pdf

Post by balf »

As far as I know, --enable-write18 is a switch used at runtime. So it makes no sense to use it in pdftex.ini. You can write a batch to have it enabled in the few cases that you need it. See MiKTeX documentation for the details of the syntax. Or maybe your editor lets you specify some parameters at runtime ; it's the case with WinEdt for instance.

B.A.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

eps to pdf

Post by localghost »

As balf already mentioned, you have to use a switch or command line option for the compiler, respectively. In TeXnicCenter you can insert that option in every build profile. Another topic shows screenshots of a profile [1]. Insert --enable-write18 in the command line arguments to pass to the compiler.

[1] LaTeX => PS => PDF
User avatar
0.8.15
Posts: 16
Joined: Mon May 26, 2008 10:39 am

Re: eps to pdf

Post by 0.8.15 »

thank^s localghost but i am going to leave this experiments.
i don^t know how i can use this latex-ps-pdf.tco file. i guess it^s to complicated to explain via text messages.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

eps to pdf

Post by localghost »

0.8.15 wrote:[…] i don^t know how i can use this latex-ps-pdf.tco file. i guess it^s to complicated to explain via text messages.
I explained everything precisely in the mentioned topic. All you have to do is to supplement the profiles with this switch. If you can describe your problems, there may be a better possibility to help.
Post Reply