MiKTeX and proTeXt-enable-write18 not working?

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
peterAAA
Posts: 2
Joined: Wed Sep 16, 2009 6:36 pm

-enable-write18 not working?

Post by peterAAA »

Hi,

I'm trying to get pstricks to work in one single conversion by using pdftricks.
Unfortunately it doesn't work, it says it doesn't have write18 support.
My compiler configuration in Texniccenter looks like this:

Code: Select all

D:\Program Files\MiKTeX 2.7\miktex\bin\pdflatex.exe
-enable-write18 -interaction=nonstopmode "%pm"
Minimal Example (which doesn't produce any picture):
http://tug.org/PSTricks/main.cgi?file=p ... #pdftricks

What am i missing?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

-enable-write18 not working?

Post by localghost »

peterAAA wrote:[...] What am i missing?
Just one single dash for the switch.

Code: Select all

pdflatex --enable-write18 -interaction=nonstopmode jobname.tex
For using pstricks with pdflatex, you may take a look at the auto-pst-pdf package. It is also possible to create a special profile for TeXnicCenter (TXC) when using the pst-pdf package.


Best regards and welcome to the board
Thorsten
peterAAA
Posts: 2
Joined: Wed Sep 16, 2009 6:36 pm

Re: -enable-write18 not working?

Post by peterAAA »

Its still not working, same error as before. I attached a logfile of the pdflatex output.
Attachments
test.log
(5.59 KiB) Downloaded 449 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

-enable-write18 not working?

Post by localghost »

/PSTrick/pdf/pdfoutput wrote:MiKTeX users load the package with option miktex:

Code: Select all

\usepackage[miktex]{pdftricks}
and have to pay attention that they have a directory called \tmp.
zboud
Posts: 3
Joined: Mon Sep 21, 2009 5:35 pm

-enable-write18 not working?

Post by zboud »

I have the same problem. The following code does not work, even if compiled with the --enable-write18 option, and with a \tmp directory in the root. Where should the \tmp directory be? Does anyone know what's wrong?

Code: Select all

\documentclass[a4paper]{article}

\usepackage[miktex]{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\usepackage{pst-all}
\usepackage{pstricks-add}
\end{psinputs}

\begin{document}
\begin{figure}[htb]
\centering
\caption{The image, converted with \texttt{pdftricks}}
\begin{pdfpic}
\begin{pspicture}(-7.5,-3)(7.5,3)
\psaxes[labels=none](0,0)(-7,-2)(7,2)
\psplot[linecolor=blue, linewidth=1.5pt]{-7}{7}{x 0.01745329252 div sin}
\uput[45](3.1415926,0){$\pi$}
\uput[90](-1.570796,0){$-\pi/2$}
\uput[-90](1.570796,0){$\pi/2$}
\uput[-135](-3.1415926,0){$-\pi$}
\psline[linewidth=1pt,linecolor=red,linestyle=dotted](1.57079632,1)(1.57079632,0)
\psline[linewidth=1pt,linecolor=red,linestyle=dotted](-1.57079632,-1)(-1.57079632,0)
\end{pspicture}
\end{pdfpic}
\end{figure}

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: -enable-write18 not working?

Post by localghost »

Your sample code works fine for me. Attach the log file produced by this code to your next post. Show where you inserted the command line option in the settings of your editor.


Thorsten
Post Reply