Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Confused about pstricks and pdftricks

150 views
Skip to first unread message

Konrad Viltersten

unread,
Jun 18, 2005, 9:06:54 AM6/18/05
to
I have problems understanding what is ment by "offers
support for pstricks in pdftex". Does that mean that i
will use the same code as the example files i have found
for pstricks? Or maybe, i can use a similar way of
expressing the image but using different commands?

Most (all?) of the examples i've found generate an error
on "\psframe". Is that to be changed into an pdftricks
inspired equivalent?

A guy claims that i can only use pdftricks if i use web2c
compiler. Now, i use MiKTeX - is that such a thing? The
claim is being made here:
http://www.ctan.org/tex-archive/help/Catalogue/entries/pdftricks.html

--

Vänligen
Konrad
---------------------------------------------------

Sleep - thing used by ineffective people
as a substitute for coffee

Ambition - a poor excuse for not having
enough sense to be lazy

---------------------------------------------------

Piet van Oostrum

unread,
Jun 18, 2005, 10:59:49 AM6/18/05
to
>>>>> "Konrad Viltersten" <tm...@viltersten.com> (KV) wrote:

>KV> I have problems understanding what is ment by "offers
>KV> support for pstricks in pdftex". Does that mean that i
>KV> will use the same code as the example files i have found
>KV> for pstricks? Or maybe, i can use a similar way of
>KV> expressing the image but using different commands?

No, it will not be the same

>KV> Most (all?) of the examples i've found generate an error
>KV> on "\psframe". Is that to be changed into an pdftricks
>KV> inspired equivalent?

You have to put wrapping code around the pstrick parts of your document.

>KV> A guy claims that i can only use pdftricks if i use web2c
>KV> compiler. Now, i use MiKTeX - is that such a thing? The
>KV> claim is being made here:
>KV> http://www.ctan.org/tex-archive/help/Catalogue/entries/pdftricks.html

Maybe it is a bit too strong.
That page also shows that it is included in MikTeX. It would be a bit silly
if it couldn't be used.
The important part is:
This is done using the shell escape function available in the web2c TeX
compiler.
I don't know if MikTeX has shell escape functionality (meaning that TeX can
call external programs.
Moreover, you can use it without the shell escape by manually running a
program in between two LaTeX runs. It wouldn't surprise me if that could be
done with MikTeX. But as I don't use MikTeX I can't say for sure. It can't
be difficult, however.
--
Piet van Oostrum <pi...@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: pi...@vanoostrum.org

Konrad Viltersten

unread,
Jun 18, 2005, 1:11:51 PM6/18/05
to
>>> I have problems understanding what is ment by "offers
>>> support for pstricks in pdftex". Does that mean that i
>>> will use the same code as the example files i have found
>>> for pstricks? Or maybe, i can use a similar way of
>>> expressing the image but using different commands?
>
> No, it will not be the same

Thanks for the explaination. I'm slightly more enlighten
but still not fully at ease. I tried to compile this code and
expected to see something like a line or so but didn't.

\documentclass{article}
\usepackage{graphicx}
\usepackage{pdftricks}
\usepackage{pstricks}

\begin{document}
The line...
\begin{pdfpic}
\begin{figure}
\begin{pspicture}(5,2)
\psline{|<->|}(0,0.3)(4,1.9)
\end{pspicture}
\end{figure}
\end{pdfpic}
...isn't here!
\end{document}

My guess is - something is still missing but i can't figure out
what. I don't get any errors (that i know of) nor any
warnings. I get to see a nice PDF-document. However, the
nice PDF-doc doesn't include anything else but the text...

What to improve?

Herbert Schulz

unread,
Jun 18, 2005, 2:14:48 PM6/18/05
to
In article <3hj1t4F...@individual.net>,
"Konrad Viltersten" <tm...@viltersten.com> wrote:

Howdy,

Wrap the \usepackage{pstricks} in a psinputs environment:

\begin{psinputs}
\usepackage{pstricks}
\end{psinputs}

which will go into a common input file used for each figure you create.
Each pdfpic figure is put into a separate file which is then compiled
externally.

Good Luck,
Herb Schulz

Uwe Ziegenhagen

unread,
Jun 18, 2005, 2:57:08 PM6/18/05
to

Have a look for ps4pdf from Herbert Voss.

http://www.perce.de/LaTeX/ps4pdf/

ps4pdf.sty
A package to integrate PostScript code into a PDF output.

Uwe

--

mail to news...@ziegenhagen.info is read only from time to time. If
you need an urgent answer, google for me.

Konrad Viltersten

unread,
Jun 18, 2005, 8:34:01 PM6/18/05
to
>> My guess is - something is still missing but i can't figure out
>> what. I don't get any errors (that i know of) nor any
>> warnings. I get to see a nice PDF-document. However, the
>> nice PDF-doc doesn't include anything else but the text...
>
> Wrap the \usepackage{pstricks} in a psinputs environment:
>
> \begin{psinputs}
> \usepackage{pstricks}
> \end{psinputs}
>


I have tried that but it didn't work. I still get only some
empty space in there. My code is now:

\documentclass{article}
\usepackage{graphicx}
\usepackage{pdftricks}

\begin{psinputs}
\usepackage{pstricks}
\end{psinputs}

\begin{document}
The drawing...


\begin{pdfpic}
\begin{figure}
\begin{pspicture}(5,2)

\pscircle(3,0){1}


\end{pspicture}
\end{figure}
\end{pdfpic}
...isn't here!
\end{document}

Can anybody see a circle after compiling this?
Please note that i get no errors - only empty space.
The size of the space doesn't change as i change
arguments for pspicture, though... Do i have to set
the color to non-white?

ptk

unread,
Jun 18, 2005, 9:39:04 PM6/18/05
to
On 2005-06-18 19:34:01 -0500, "Konrad Viltersten" <tm...@viltersten.com> said:

> \documentclass{article}
> \usepackage{graphicx}
> \usepackage{pdftricks}
> \begin{psinputs}
> \usepackage{pstricks}
> \end{psinputs}
>
> \begin{document}
> The drawing...
> \begin{pdfpic}
> \begin{figure}
> \begin{pspicture}(5,2)
> \pscircle(3,0){1}
> \end{pspicture}
> \end{figure}
> \end{pdfpic}
> ...isn't here!
> \end{document}

This may be of absolutely no help, so sorry in advance:
It worked for me in Mac OS X (10.4.1) using an uncutomized, but full
install of gwTeX. For what it's worth, the frontend I used to compile
and view the result was TeXShop.

Hope it helps,
ptk

Jean-Côme Charpentier

unread,
Jun 18, 2005, 10:01:44 PM6/18/05
to
> ....isn't here!

> \end{document}
>
> Can anybody see a circle after compiling this?

Yes! Even with \begin{figure}...\end{figure} which is useless.

> Please note that i get no errors - only empty space.

With the code without \begin{figure}...\end{figure} Do you see the lines
below when you run pdflatex ?

This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
\write18 enabled.
%&-line parsing enabled.
[...]
loading : Context Support Macros / PDF
) Opening PDFStream=<your_name_file>-fig1.texThis is e-TeXk, Version
3.141592-2.1 (Web2C 7.5.2)
\write18 enabled.
%&-line parsing enabled.
[...]
Input files: pdfexample-fig1.ps
Processing: pdfexample-fig1.ps
Rendering with existing %%BoundingBox: 0 0 596 842
Calculating Bounding Box...ready. %%BoundingBox: 205 632 262 689
Creating output file <your_name_file>-fig1.eps...ready.

<<your_name_file>-fig1.pdf, id=1, 57.21375pt x 57.21375pt> <use
<your_name_file>-fig1.pdf>
[...]
Output written on <your_name_file>.pdf (1 page, <xxxx> bytes).
Transcript written on <your_name_file>.log.

where "<your_name_file>" is... your name file! If there is some
differences, what are they ?

Jean-Côme Charpentier

Ulrike Fischer

unread,
Jun 19, 2005, 6:26:25 AM6/19/05
to
"Konrad Viltersten" <tm...@viltersten.com> schrieb:

1. Don't use figure inside other environments!

2. pdftricks needs to run external programms during the LaTeX run to
make the images. It use the \write18 property to do this which you need
to enable at the start of the pdftex run. So the first question is if
you did that.

At the start pdftricks makes a test if the write18 property is enable.
The last time I tried pdftricks this test simply didn't work for miktex
and so no images where created. Look in the log file if pdftricks
complains somewhere.

I would suggest that you use pst-pdf (which is newer but similar to
ps4pdf) http://www.perce.de/LaTeX/pst-pdf/


--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.

rmagere

unread,
Jun 19, 2005, 6:33:41 AM6/19/05
to

"Konrad Viltersten" <tm...@viltersten.com> wrote in message
news:3hjrq6F...@individual.net...

>>> My guess is - something is still missing but i can't figure out
>>> what. I don't get any errors (that i know of) nor any
>>> warnings. I get to see a nice PDF-document. However, the
>>> nice PDF-doc doesn't include anything else but the text...
>>

It isn't working for me either.
Initially I thought the reason could be found in the bug reported here:
http://sarovar.org/tracker/index.php?func=detail&aid=30&group_id=9&atid=117.

However after disabling the check for that file in the pdftricks.sty copy in
my local texmf the program goes through the entire generation of needed
temporary files but something goes wrong in the conversion from eps to pdf.
I end-up with a nice circle in the generated `name-fig1.eps' however the
`name-fig1.pdf' is empty.
From the log I get [I would summarise more but no idea what is relevant]:

loading : Context Support Macros / PDF (2004.03.26)
\nofMPsegments=\count102
\nofMParguments=\count103
\MPscratchCnt=\count104
\MPscratchDim=\dimen112
\MPnumerator=\count105
\everyMPtoPDFconversion=\toks18
) Opening PDFStream=testpdf-fig1.tex
system(latex -interaction=batchmode testpdf-fig1)...executed.

system(dvips -E -o testpdf-fig1.eps testpdf-fig1)...executed.

system(epstopdf testpdf-fig1.eps)...executed.

system(rm testpdf-fig1.aux testpdf-fig1.dvi testpdf-fig1.log
testpdf-fig1.eps).
..executed.


<testpdf-fig1.pdf, id=1, 614.295pt x 794.97pt>
File: testpdf-fig1.pdf Graphic file (type pdf)
<use testpdf-fig1.pdf>
Overfull \hbox (269.29349pt too wide) in paragraph at lines 14--14
[][][][][]
[]

[1

{psfonts.map}]
Overfull \vbox (244.96806pt too high) has occurred while \output is active
[]


[2 <testpdf-fig1.pdf>] [3] (testpdf.aux) )
Output written on testpdf.pdf (3 pages, 9150 bytes).

and by just running epstopdf on testpdf-fig1.eps I get:
Error: /configurationerror in --setpagedevice--
Additional information: [/PageSize [0.0 0.0]]
Operand stack:
--dict:1/1(L)--
Execution stack:
%interp_exit
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval-- false
1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop --nostringval-- 1 3 %oparray_pop 1 3 %oparray_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1 3
%oparray_pop --nostringval-- --nostringval-- --dict:7/9(L)-- --nostringval--
1 %dict_continue
Dictionary stack:
--dict:1115/1686(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
MiKTeX GPL Ghostscript 8.15: Unrecoverable error, exit code 1

Using adobe acrobat 7.0 to convert the eps to pdf only leads to a blank page
too.

Not sure if this helps you at all but maybe it can give some clue to more
knowledgeable people of what is the problem.


Piet van Oostrum

unread,
Jun 19, 2005, 7:12:53 AM6/19/05
to
>>>>> "Konrad Viltersten" <tm...@viltersten.com> (KV) wrote:

>KV> Can anybody see a circle after compiling this?
>KV> Please note that i get no errors - only empty space.
>KV> The size of the space doesn't change as i change
>KV> arguments for pspicture, though... Do i have to set
>KV> the color to non-white?

How are you doing it?

Piet van Oostrum

unread,
Jun 19, 2005, 8:17:55 AM6/19/05
to
>>>>> "rmagere" <rma...@the-mail-that-burns.com> (R) wrote:

[...]
>R> system(dvips -E -o testpdf-fig1.eps testpdf-fig1)...executed.

>R> system(epstopdf testpdf-fig1.eps)...executed.

>R> and by just running epstopdf on testpdf-fig1.eps I get:
>R> Error: /configurationerror in --setpagedevice--
>R> Additional information: [/PageSize [0.0 0.0]]

This is because dvips -E isn't giving the proper bounding box. It only
takes text and TeX rulers into account, not Postscript code. The epstopdf
blows up.

The version that I have (1.16) doesn't do dvips -E, but uses ps2eps to get
an EPS file, and that seems to work.
How come your pdftricks uses dvips -E?
However, the included pst2pdf still used dvips -E and that fails.
If I change that to
# dvips -Ppdf -E -o $fig.eps $fig
dvips -Ppdf -o $fig.ps $fig
ps2eps -f $fig.ps
epstopdf $fig.eps
rm $fig.ps $fig.eps $fig.dvi $fig.log $fig.aux
it works.

rmagere

unread,
Jun 19, 2005, 10:21:48 AM6/19/05
to
Piet van Oostrum wrote:
> The version that I have (1.16) doesn't do dvips -E, but uses ps2eps
> to get an EPS file, and that seems to work.
> How come your pdftricks uses dvips -E?

The pdftricks version that comes with MiKTeX (just did an update to make
sure) is
1.15 and not 1.16

> However, the included pst2pdf still used dvips -E and that fails.
> If I change that to
> # dvips -Ppdf -E -o $fig.eps $fig
> dvips -Ppdf -o $fig.ps $fig
> ps2eps -f $fig.ps
> epstopdf $fig.eps
> rm $fig.ps $fig.eps $fig.dvi $fig.log $fig.aux
> it works.

Mmh not sure how changing that file will have any effect on a windows system
given that it is only present in the source directory and uses non windows
commands (e.g. rm).

Anyway here's what I have done and the partial success I have obtained:
1) updated to 1.16
2a) removed the check for whether write18 is enabled or not (the .sty file
now includes a check for whether miktex is being used but it still fails in
detecting it properly).
2b) modified the write18 call to "dvips -o $fig.ps $fig" to "dvips -Ppdf -o
$fig.ps $fig" to conform to your suggestion above (did not modify the
pst2pdf file)
3) installed ps2eps (v1.58) which doesn't come with miktex, requires the
change of a number of system variables and the presence of perl (which is
not standard with windows but I happended to have installed ages ago).
4) fought a bit with bbox (part of ps2eps) to understand where ghostscript
was located (all the other software was happy with its location but for this
program)
5) run pdflatex -enable-write18 on the test file (from which I had removed
the figure environment

Now everything runs and I end up with a test.pdf file which actually shows a
circle in it.

I say `partial' success above as the test.ps file generated through the pure
pstricks file is not identical to the test.pdf file generated through
pdftricks.
I think the error lies in the bounding box not set as tightly as it should
but I might be wrong.
The output are shown below:

PS File:
[parskip] The drawing... CIRCLE ...isn't here!
i.e. all on one line

while
PDF File:
[parskip] The drawing...
CIRCLE (i.e. on a new line
and well past the end of ... above)
...isn't here! (i.e on a new line).

The image of the two outputs can be seen at:
PS: http://img146.echo.cx/img146/5438/test-ps.png
PDF: http://img146.echo.cx/img146/7697/test-pdf.png

Though I must say this is quite an improvement towards actually using
pdftricks, especially considering that most pstrick images will probably be
embedded into figure environments of the main tex file making therefore
irrelevant (or almost) how text flows around them.


Piet van Oostrum

unread,
Jun 19, 2005, 3:33:40 PM6/19/05
to
You might just give up on pdftricks and use the ps4pdf package instead. I
think it just the job much better. However, I am not sure if there is a
version for MikTeX.

Herbert Voss

unread,
Jun 19, 2005, 4:01:51 PM6/19/05
to
Piet van Oostrum wrote:
> You might just give up on pdftricks and use the ps4pdf package instead. I
> think it just the job much better. However, I am not sure if there is a
> version for MikTeX.

pst-pdf is the better version, see
http://PSTricks.tug.org/main.cgi?file=pdf/pdfoutput

Herbert


--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

rmagere

unread,
Jun 19, 2005, 5:23:44 PM6/19/05
to
Herbert Voss wrote:
> Piet van Oostrum wrote:
>> You might just give up on pdftricks and use the ps4pdf package
>> instead. I think it just the job much better. However, I am not sure
>> if there is a version for MikTeX.
>
> pst-pdf is the better version, see
> http://PSTricks.tug.org/main.cgi?file=pdf/pdfoutput
>

Ok I have tried the pst-pdf package.
Here how it went:
1) much easier to install
a) place .sty in appropriate directory
b) chose the right bat/script file and put within the search path
2) compile the usual test file
a) compile using the ps4pdf bat file for win2k,xp and miktex
b) compile each step individually i.e latex -> dvips -> ps2pdf -> pdflatex

Results
from 2a) no circle is shown but very tight bounding box i.e. no big gap
between the two parts of the sentence
(http://img201.echo.cx/img201/10/testps4pdf.png)
the test-ps4pdf.log file states:
[1
Non-PDF special ignored!
Non-PDF special ignored!{psfonts.map}]
(test.aux) )<C:\progra~1\texmf\fonts\type1\bluesky\cm\cmr10.pfb>
Output written on test.pdf (1 page, 7066 bytes).

from 2b) I get only half the circle shown
(http://img201.echo.cx/img201/1622/testmanual.png)
this is due to a bad conversion from the test-pics.ps file to the
test-pics.pdf file as the ps file shows the full circle while the pdf file
only shows half of it (http://img201.echo.cx/my.php?image=test-pics.png -
which also provides with a feeling of the page setup).

Now the same -pics.pdf was generated by calling either:
ps2pdf test-pics.ps test-pics.pdf
or:
ps2pdf -dAutoRotatePages#/None test-pics.ps test-pics.pdf


Konrad Viltersten

unread,
Jun 20, 2005, 2:26:28 AM6/20/05
to
> pst-pdf is the better version, see
> http://PSTricks.tug.org/main.cgi?file=pdf/pdfoutput

OK, i'm trying with this one but it seems that i haven't
that package installed. However, the MiKTeX wizard
doesn't seem to find any package called "pst-pdf" and
i'm too scared to do that manually by my self...

And yes, i haven't "\write 18" capability activated.
Now, i understand that most users seems to agree that
pst-pdf is better than pdftricks, so let's go with that.

The computer tells me that:
" LaTeX Error: File `pst-pdf.sty' not found. "
What can i do about it as a MiKTeX-user? The site
mentioned above says something about a script for
Windows which is a good implication that the package
exists for Windows as well. So, any MiKTeX-users out
there wanting to help? Or perhaps it is a platform
unbound issue?

Konrad Viltersten

unread,
Jun 20, 2005, 2:32:55 AM6/20/05
to
> ...pdftricks needs to run external programms...
> ...It use the \write18 property to do this which you need to

> enable at the start of the pdftex run. So the first question
> is if you did that.

No i haven't enabled it. I would like to but don't know how.

> At the start pdftricks makes a test if the write18 property is
> enable. The last time I tried pdftricks this test simply didn't
> work for miktex and so no images where created. Look in the
> log file if pdftricks complains somewhere.

Yes, it's exactly what it says.

> I would suggest that you use pst-pdf (which is newer but
> similar to ps4pdf) http://www.perce.de/LaTeX/pst-pdf/

I failed to find/install it using the wizard in MiKTeX. I'm
afraid that's how far i'm ready to go - the console window
is scary enough, hehe.

Just in case i can't/won't be using pst-pdf i'd like to know
how to make the pdftricks-package work. It doesn't hurt to
know it, anyway.


Thanks for the helping, by the way - to everybody.

Konrad Viltersten

unread,
Jun 20, 2005, 2:35:04 AM6/20/05
to
> where "<your_name_file>" is... your name file! If there is
> some differences, what are they ?


Difference - i seem to create no eps-images which probably
is cause by the disabled "write18". How do i activate it?

Ulrike Fischer

unread,
Jun 20, 2005, 3:58:02 AM6/20/05
to
"Konrad Viltersten" <tm...@viltersten.com> schrieb:

>> ...pdftricks needs to run external programms...
>> ...It use the \write18 property to do this which you need to
>> enable at the start of the pdftex run. So the first question
>> is if you did that.
>
> No i haven't enabled it. I would like to but don't know how.

with -enable-write18. Read the miktex manual

http://www.miktex.org/manual/pdftex.html

>> I would suggest that you use pst-pdf (which is newer but
>> similar to ps4pdf) http://www.perce.de/LaTeX/pst-pdf/
>
> I failed to find/install it using the wizard in MiKTeX. I'm
> afraid that's how far i'm ready to go - the console window
> is scary enough, hehe.

Nothing will explode. To "install" a package means in most cases that
you should run LaTeX on an .ins file, then put files where the
MikTeX-programs can find them, renew the filename database and run
LaTeX on the dtx to get the docu.

Look at the FAQ

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages

pst-pdf use batchfiles. But if you don't know how to use them you can
call all the necessary programs yourself -- and after some time you
will be quite happy that the batchfiles save you a lot of typing.

>
> Just in case i can't/won't be using pst-pdf i'd like to know
> how to make the pdftricks-package work. It doesn't hurt to
> know it, anyway.

You need to disable the test and then hope that all commands work.

Piet van Oostrum

unread,
Jun 20, 2005, 5:37:03 AM6/20/05
to
>>>>> "rmagere" <rmagere@*the-mail-that-burns*.com> (R) wrote:

>R> Results
>R> from 2a) no circle is shown but very tight bounding box i.e. no big gap
>R> between the two parts of the sentence

The circle isn't to be expected between the parts of the sentence because
you put it in a figure environment. Of course the fact that there is no
circle is a bug. If there was a circle it would be above the sentence.

rmagere

unread,
Jun 20, 2005, 6:13:05 AM6/20/05
to
Piet van Oostrum wrote:
>>>>>> "rmagere" <rmagere@*the-mail-that-burns*.com> (R) wrote:
>
>>> Results

>>> from 2a) no circle is shown but very tight bounding box i.e. no big
>>> gap between the two parts of the sentence

>
> The circle isn't to be expected between the parts of the sentence
> because you put it in a figure environment. Of course the fact that
> there is no circle is a bug. If there was a circle it would be above
> the sentence.

No I have removed the figure environment from my test case (I mentioned it
in one of the previous messages).

[Correct] The page I should obtained (which I do from plain latex) is
http://img146.echo.cx/my.php?image=test-ps.png

[Misplaced] The page I get aftering fixing pdftricks to work with MiKTeX is
http://img146.echo.cx/my.php?image=test-pdf.png

[Missing] The page I get from using pst-pdf with provided bat file is
http://img201.echo.cx/img201/10/testps4pdf.png

[Partial] The page I get from using pst-pdf but running each step manually
is
http://img201.echo.cx/my.php?image=testmanual.png

My guess would be that:
[Misplaced] is generated by a not tight enough bounding box
[Missing] is due to not correct batch file which doesn't run the steps
properly
[Partial] is due to incorrect rotation of the page.

The test code is:

[Correct]
\documentclass{article}
\usepackage{graphicx}
\usepackage{pstricks}
\begin{document}
The drawing...


\begin{pspicture}(5,2)
\pscircle(3,0){1}
\end{pspicture}

...isn't here!
\end{document}

[Misplaced]


\documentclass{article}
\usepackage{graphicx}
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\end{psinputs}
\begin{document}
The drawing...
\begin{pdfpic}

\begin{pspicture}(5,2)
\pscircle(3,0){1}
\end{pspicture}

\end{pdfpic}
...isn't here!
\end{document}

[Missing & Partial]
\documentclass{article}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{pst-pdf}
\begin{document}
The drawing...


\begin{pspicture}(5,2)
\pscircle(3,0){1}
\end{pspicture}

Herbert Voss

unread,
Jun 20, 2005, 6:48:28 AM6/20/05
to
Konrad Viltersten wrote:
>>where "<your_name_file>" is... your name file! If there is
>>some differences, what are they ?
>
>
>
> Difference - i seem to create no eps-images which probably
> is cause by the disabled "write18". How do i activate it?

pdflatex --shell-escape file.tex

Konrad Viltersten

unread,
Jun 20, 2005, 7:12:08 AM6/20/05
to
>>> where "<your_name_file>" is... your name file! If there is
>>> some differences, what are they ?
>>
>> Difference - i seem to create no eps-images which probably
>> is cause by the disabled "write18". How do i activate it?
>
> pdflatex --shell-escape file.tex


That's what i thought but then i get

Package pdftricks Warning: ****************************************
(pdftricks) Package pdftricks v,1.15 loaded
(pdftricks) [psTricks support in PDF (CVR, ACL)]
(pdftricks) ****************************************.

and

Package pdftricks Warning: ****************************************
(pdftricks) No \write 18 capability.
(pdftricks) You'll have to run a script by yourself!
(pdftricks) ****************************************.

What do i do stupidlishly?

Herbert Voss

unread,
Jun 20, 2005, 6:55:59 AM6/20/05
to
rmagere wrote:

> [Missing] The page I get from using pst-pdf with provided bat file is
> http://img201.echo.cx/img201/10/testps4pdf.png

put a \listfiles before \documentclass and send the logfile

> [Partial] The page I get from using pst-pdf but running each step manually
> is
> http://img201.echo.cx/my.php?image=testmanual.png

which is correct, because you defined the box only for (5,2) and
not \begin{pspicture}(0,-1)(5,1)

> \documentclass{article}
> \usepackage{graphicx}
> \usepackage{pstricks}
> \usepackage{pst-pdf}
> \begin{document}
> The drawing...
> \begin{pspicture}(5,2)
> \pscircle(3,0){1}
> \end{pspicture}
> ...isn't here!
> \end{document}

I have no problem with my ps4pdf script running with Linux.

Herbert Voss

unread,
Jun 20, 2005, 6:58:17 AM6/20/05
to
Konrad Viltersten wrote:
>>pst-pdf is the better version, see
>>http://PSTricks.tug.org/main.cgi?file=pdf/pdfoutput
>
>
> OK, i'm trying with this one but it seems that i haven't
> that package installed. However, the MiKTeX wizard
> doesn't seem to find any package called "pst-pdf" and
> i'm too scared to do that manually by my self...
>
> And yes, i haven't "\write 18" capability activated.
> Now, i understand that most users seems to agree that
> pst-pdf is better than pdftricks, so let's go with that.
>
> The computer tells me that:
> " LaTeX Error: File `pst-pdf.sty' not found. "

get the files pst-pdf.dtx|ins from http://perce.de/LaTeX/pst-pdf
and save all in your local texmf tree. Then run latex pst-pdf.ins,
which creates the style file and the documentation. The last
step is to refresh your MiKTeX data base (from the menu)

Herbert Voss

unread,
Jun 20, 2005, 6:59:38 AM6/20/05
to
Konrad Viltersten wrote:
>>>>where "<your_name_file>" is... your name file! If there is
>>>>some differences, what are they ?
>>>
>>>Difference - i seem to create no eps-images which probably
>>>is cause by the disabled "write18". How do i activate it?
>>
>>pdflatex --shell-escape file.tex
>
>
>
> That's what i thought but then i get
>
> Package pdftricks Warning: ****************************************
> (pdftricks) Package pdftricks v,1.15 loaded
> (pdftricks) [psTricks support in PDF (CVR, ACL)]
> (pdftricks) ****************************************.
>
> and
>
> Package pdftricks Warning: ****************************************
> (pdftricks) No \write 18 capability.
> (pdftricks) You'll have to run a script by yourself!
> (pdftricks) ****************************************.
>
> What do i do stupidlishly?

ah MikTeX, see Ulrikes message

Konrad Viltersten

unread,
Jun 20, 2005, 7:27:07 AM6/20/05
to
>>> ...pdftricks needs to run external programms...
>>> ...It use the \write18 property to do this which you need to
>>> enable at the start of the pdftex run. So the first question
>>> is if you did that.
>>
>> No i haven't enabled it. I would like to but don't know how.
>
> with -enable-write18. Read the miktex manual
>
> http://www.miktex.org/manual/pdftex.html

Ah! Thanks. I didn't see that.

>>> I would suggest that you use pst-pdf (which is newer but
>>> similar to ps4pdf) http://www.perce.de/LaTeX/pst-pdf/
>>
>> I failed to find/install it using the wizard in MiKTeX. I'm
>> afraid that's how far i'm ready to go - the console window
>> is scary enough, hehe.
>
> Nothing will explode. To "install" a package means in most cases
> that you should run LaTeX on an .ins file, then put files where the
> MikTeX-programs can find them, renew the filename database
> and run LaTeX on the dtx to get the docu.

> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages
> pst-pdf use batchfiles. But if you don't know how to use them you

> can call all the necessary programs yourself...

OK, i'll try that. It seems like a good idea to have done something
like that once or twice anyway. I'm very thankfull for the info.

>>
>> Just in case i can't/won't be using pst-pdf i'd like to know
>> how to make the pdftricks-package work. It doesn't hurt to
>> know it, anyway.
>
> You need to disable the test and then hope that all
> commands work.

I see no commands for disabling the test on the page a link to
which you so helpfully posted for me. Is it there? Just say
yes or no - i'd like to locate it myself. :)

Robin Fairbairns

unread,
Jun 20, 2005, 7:44:29 AM6/20/05
to
Piet van Oostrum <pi...@cs.uu.nl> writes:
>>>>>> "Konrad Viltersten" <tm...@viltersten.com> (KV) wrote:
>
>>KV> I have problems understanding what is ment by "offers
>>KV> support for pstricks in pdftex". Does that mean that i
>>KV> will use the same code as the example files i have found
>>KV> for pstricks? Or maybe, i can use a similar way of
>>KV> expressing the image but using different commands?

>
>No, it will not be the same
>
>>KV> Most (all?) of the examples i've found generate an error
>>KV> on "\psframe". Is that to be changed into an pdftricks
>>KV> inspired equivalent?
>
>You have to put wrapping code around the pstrick parts of your document.
>
>>KV> A guy claims that i can only use pdftricks if i use web2c
>>KV> compiler. Now, i use MiKTeX - is that such a thing? The
>>KV> claim is being made here:
>>KV> http://www.ctan.org/tex-archive/help/Catalogue/entries/pdftricks.html
>
>Maybe it is a bit too strong.

i think it's explained that external processing is necessary.

>That page also shows that it is included in MikTeX. It would be a bit silly
>if it couldn't be used.

presumably, the miktex people who included it in miktex know what
they're doing (i don't -- i just include the indication when i see
that miktex has a package for a catalogued item). (it's probably
available in tex live, too, but those guys don't any longer dabble in
the public catalogue :-( )

>The important part is:
>This is done using the shell escape function available in the web2c TeX
>compiler.
>[...]

i've changed that to "recent tex implementations", in cognisance of
the above. i've also added documentation links, which should clear up
any difficulties people might have, reading the bald statement in the
package description.

changes to the catalogue will be at the cambridge node rsn (my final
check of a change is to put it up on the web), and will propagate to
other nodes overnight.

http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/pdftricks.html
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge

rmagere

unread,
Jun 20, 2005, 8:11:15 AM6/20/05
to
Herbert Voss wrote:
> put a \listfiles before \documentclass and send the logfile
see below


>> [Partial] The page I get from using pst-pdf but running each step
>> manually is
>> http://img201.echo.cx/my.php?image=testmanual.png
>
> which is correct, because you defined the box only for (5,2) and
> not \begin{pspicture}(0,-1)(5,1)
>

Ah, I have never used pstricks before so I had just copied the example
provided by Konrad.
I decided to try it out as I'll soon need to start making figures for my
thesis and thought it would be a good time to get it working.

Anway after having changed the test file
from "\begin{pspicture}(5,2)" to "\begin{pspicture}(0,-1)(5,1)".
If I now run:
pdflatex test.tex
latex test.tex
dvips -o test-pics.ps test.dvi
ps2pdf test-pics.ps
pdflatex test.tex
I get exactly the same result as I would from plain latex/postcript i.e.
Success!

Regarding the ps4pdf.bat file I still get no image inserted.
The batch file I am using is the one from
http://perce.de/LaTeX/pst-pdf/ps4pdf.bat
The log files are pasted at the end of the message.
Overall starting from just test.tex in the directory I end-up with
test.aux, test.dvi, test.log, test.pdf, test-pics.ps and test-ps4pdf.log
so there's no test-pics.pdf and the test-pics.ps is an empty page.

I then tried the batch file for no MiKTeX installation
(http://perce.de/LaTeX/pst-pdf/ps4pdf.bat.noMiKTeX) which generated:
.aux, .dvi,
.log, -pics.pdf, -pics.ps, -ps4pdfa.log, -ps4pdfb.log, -ps4pdfc.log
so this time there's no test.pdf but the test-pics.pdf is generated with the
required circle and it is then sufficient to run pdflatex test.tex after
this batch file to get the require test.pdf (again looking like the
postscript version).
So by adding the lines:

texify --pdf "%_name%%_ext%" > "%_name%-ps4pdfd.log"
@if errorlevel 1 goto :ERROR

between
ps2pdf "%_name%-pics.ps" >> "%_name%-ps4pdfc.log"
@if errorlevel 1 goto :ERROR
and
@goto :EOF

I now have a batch file that works.

Anway here are the logs (with test file including \listfiles) of running the
miktex version of the batch file.

TEST.LOG
This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded
format=latex 2005.6.19) 20 JUN 2005 12:42
entering extended mode
**test.tex
(test.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, italian, ukenglish,
dumylan
g, nohyphenation, loaded.
(C:\progra~1\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\progra~1\texmf\tex\latex\base\size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(C:\progra~1\texmf\tex\latex\graphics\graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(C:\progra~1\texmf\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
(C:\progra~1\texmf\tex\latex\graphics\graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(C:\progra~1\texmf\tex\latex\graphics\trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(C:\progra~1\texmf\tex\latex\00miktex\graphics.cfg
File: graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
)
Package graphics Info: Driver file: pdftex.def on input line 80.

(C:\progra~1\texmf\tex\latex\graphics\pdftex.def
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(C:\progra~1\texmf\tex\latex\pstricks\pstricks.sty
Package: pstricks 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)

(C:\progra~1\texmf\tex\generic\pstricks\pstricks.tex
`PSTricks' v1.04 <2004/06/22> (tvz)
\pst@dima=\dimen105
\pst@dimb=\dimen106
\pst@dimc=\dimen107
\pst@dimd=\dimen108
\pst@dimg=\dimen109
\pst@dimh=\dimen110
\pst@hbox=\box26
\pst@boxg=\box27
\pst@cnta=\count88
\pst@cntb=\count89
\pst@cntc=\count90
\pst@cntd=\count91
\pst@cntg=\count92
\pst@cnth=\count93
\pst@toks=\toks15
(C:\progra~1\texmf\tex\generic\pstricks\pstricks.con)
\psunit=\dimen111
\psxunit=\dimen112
\psyunit=\dimen113
\pslinewidth=\dimen114
\pst@customdefs=\toks16
\pslinearc=\dimen115
\everypsbox=\toks17
\psframesep=\dimen116
\pslabelsep=\dimen117
\theoverlaybox=\box28
)
File: pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)

(C:\progra~1\texmf\tex\latex\xcolor\xcolor.sty
Package: xcolor 2005/06/06 v2.03 LaTeX color extensions (UK)

(C:\progra~1\texmf\tex\latex\00miktex\color.cfg
File: color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
)
Package xcolor Info: Package option `override' ignored on input line 157.
Package xcolor Info: Driver file: pdftex.def on input line 166.
Package xcolor Info: Color model `cmy' added on input line 1117.
Package xcolor Info: Color model `hsb' added on input line 1125.
Package xcolor Info: Color model `RGB' extended on input line 1140.
Package xcolor Info: Color model `HTML' added on input line 1151.
Package xcolor Info: Color model `HSB' added on input line 1157.
Package xcolor Info: Color model `Gray' added on input line 1163.
))
(C:\progra~1\texmflocal\tex\latex\pst-pdf\pst-pdf.sty
Package: pst-pdf 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
\c@pspicture=\count94
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 180.
\ppf@temptoken=\toks18

(C:\progra~1\texmf\tex\latex\preview\preview.sty
Package: preview 2005/04/03 preview-latex 0.9.1
\pr@snippet=\count95
\pr@box=\box29
)
(C:\progra~1\texmf\tex\latex\graphics\dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)) (test.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.

(C:\progra~1\texmf\tex\context\base\supp-pdf.tex
(C:\progra~1\texmf\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
\protectiondepth=\count96
\scratchcounter=\count97
\scratchtoks=\toks19
\scratchdimen=\dimen118
\scratchskip=\skip43
\scratchmuskip=\muskip10
\scratchbox=\box30
\scratchread=\read1
\scratchwrite=\write3
\zeropoint=\dimen119
\onepoint=\dimen120
\onebasepoint=\dimen121
\minusone=\count98
\thousandpoint=\dimen122
\onerealpoint=\dimen123
\emptytoks=\toks20
\nextbox=\box31
\nextdepth=\dimen124
\everyline=\toks21
\!!counta=\count99
\!!countb=\count100
\recursecounter=\count101
)


loading : Context Support Macros / PDF (2004.03.26)
\nofMPsegments=\count102
\nofMParguments=\count103
\MPscratchCnt=\count104

\MPscratchDim=\dimen125
\MPnumerator=\count105
\everyMPtoPDFconversion=\toks22
)
Preview: Fontsize 10pt
Preview: PDFoutput 1

Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `test-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ---------------------------------------------------
-
(pst-pdf) latex test.tex
(pst-pdf) dvips -o test-pics.ps test.dvi
(pst-pdf) ps2pdf test-pics.ps
(pst-pdf) ---------------------------------------------------
- .


[1
Non-PDF special ignored!
Non-PDF special ignored!

{psfonts.map}] (test.aux)

*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
xcolor.sty 2005/06/06 v2.03 LaTeX color extensions (UK)
color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
pst-pdf.sty 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
preview.sty 2005/04/03 preview-latex 0.9.1
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
supp-pdf.tex
***********

)
Here is how much of TeX's memory you used:
2364 strings out of 95501
26329 string characters out of 1189066
88867 words of memory out of 1092638
5446 multiletter control sequences out of 60000
3640 words of font info for 14 fonts, out of 500000 for 1000
22 hyphenation exceptions out of 4999
29i,5n,39p,221b,117s stack positions out of 1500i,500n,5000p,200000b,32768s
PDF statistics:
7 PDF objects out of 300000
0 named destinations out of 300000
1 words of extra memory for PDF output out of 65536


<C:\progra~1\texmf\fonts\type1\bluesky\cm\cmr10.pfb>
Output written on test.pdf (1 page, 7066 bytes).


TEST-PS4PDF.LOG
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
(test.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, italian, ukenglish,
dumylan
g, nohyphenation, loaded.
(C:\progra~1\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\progra~1\texmf\tex\latex\base\size10.clo))
(C:\progra~1\texmf\tex\latex\graphics\graphicx.sty
(C:\progra~1\texmf\tex\latex\graphics\keyval.sty)
(C:\progra~1\texmf\tex\latex\graphics\graphics.sty
(C:\progra~1\texmf\tex\latex\graphics\trig.sty)
(C:\progra~1\texmf\tex\latex\00miktex\graphics.cfg)
(C:\progra~1\texmf\tex\latex\graphics\dvips.def)))
(C:\progra~1\texmf\tex\latex\pstricks\pstricks.sty
(C:\progra~1\texmf\tex\generic\pstricks\pstricks.tex
`PSTricks' v1.04 <2004/06/22> (tvz)
(C:\progra~1\texmf\tex\generic\pstricks\pstricks.con))
(C:\progra~1\texmf\tex\latex\xcolor\xcolor.sty
(C:\progra~1\texmf\tex\latex\00miktex\color.cfg)))
(C:\progra~1\texmflocal\tex\latex\pst-pdf\pst-pdf.sty
(C:\progra~1\texmf\tex\latex\preview\preview.sty
(C:\progra~1\texmf\tex\latex\preview\prtightpage.def))
(C:\progra~1\texmf\tex\latex\graphics\pdftex.def))
No file test.aux.
Preview: Fontsize 10pt
Preview: Tightpage -32891 -32891 32891 32891
[1] (test.aux)

*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
xcolor.sty 2005/06/06 v2.03 LaTeX color extensions (UK)
color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
pst-pdf.sty 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
preview.sty 2005/04/03 preview-latex 0.9.1
prtightpage.def
pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
***********

)
Output written on test.dvi (1 page, 1108 bytes).
Transcript written on test.log.
This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4)
entering extended mode
(test.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, italian, ukenglish,
dumylan
g, nohyphenation, loaded.
(C:\progra~1\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\progra~1\texmf\tex\latex\base\size10.clo))
(C:\progra~1\texmf\tex\latex\graphics\graphicx.sty
(C:\progra~1\texmf\tex\latex\graphics\keyval.sty)
(C:\progra~1\texmf\tex\latex\graphics\graphics.sty
(C:\progra~1\texmf\tex\latex\graphics\trig.sty)
(C:\progra~1\texmf\tex\latex\00miktex\graphics.cfg)
(C:\progra~1\texmf\tex\latex\graphics\pdftex.def)))
(C:\progra~1\texmf\tex\latex\pstricks\pstricks.sty
(C:\progra~1\texmf\tex\generic\pstricks\pstricks.tex
`PSTricks' v1.04 <2004/06/22> (tvz)
(C:\progra~1\texmf\tex\generic\pstricks\pstricks.con))
(C:\progra~1\texmf\tex\latex\xcolor\xcolor.sty
(C:\progra~1\texmf\tex\latex\00miktex\color.cfg)))
(C:\progra~1\texmflocal\tex\latex\pst-pdf\pst-pdf.sty
(C:\progra~1\texmf\tex\latex\preview\preview.sty)
(C:\progra~1\texmf\tex\latex\graphics\dvips.def)) (test.aux)
(C:\progra~1\texmf\tex\context\base\supp-pdf.tex
(C:\progra~1\texmf\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
)


loading : Context Support Macros / PDF (2004.03.26)

)
Preview: Fontsize 10pt
Preview: PDFoutput 1

Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `test-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ---------------------------------------------------
-
(pst-pdf) latex test.tex
(pst-pdf) dvips -o test-pics.ps test.dvi
(pst-pdf) ps2pdf test-pics.ps
(pst-pdf) ---------------------------------------------------
- .


[1
Non-PDF special ignored!
Non-PDF special ignored!{psfonts.map}] (test.aux)

*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
xcolor.sty 2005/06/06 v2.03 LaTeX color extensions (UK)
color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
pst-pdf.sty 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
preview.sty 2005/04/03 preview-latex 0.9.1
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
supp-pdf.tex
***********

)<C:\progra~1\texmf\fonts\type1\bluesky\cm\cmr10.pfb>
Output written on test.pdf (1 page, 7066 bytes).

Transcript written on test.log.

Konrad Viltersten

unread,
Jun 20, 2005, 8:45:05 AM6/20/05
to
>>> pst-pdf is the better version, see
>>> http://PSTricks.tug.org/main.cgi?file=pdf/pdfoutput
>>
>> OK, i'm trying with this one but it seems that i haven't
>> that package installed. However, the MiKTeX wizard
>> doesn't seem to find any package called "pst-pdf" and
>> i'm too scared to do that manually by my self...
>>
>> The computer tells me that:
>> " LaTeX Error: File `pst-pdf.sty' not found. "
>
> get the files pst-pdf.dtx|ins from http://perce.de/LaTeX/pst-pdf
> and save all in your local texmf tree. Then run latex pst-pdf.ins,
> which creates the style file and the documentation. The last
> step is to refresh your MiKTeX data base (from the menu)


Hmmm... This will be rather awkward, i presume... Where is
the texmf tree? I understand by my googling that it's
called "texmf", that it's a directory and that it's
somewhere as a subdir to my MiKTeX dir... But i have no
such thing as far i can see...

I have an executable called "findtexmf.exe" but it didn't
gave me a path when i ran it...

Also - the file you mention - on my computer it gets called
.dtx.txt for some reason. Should/can i rename it to .dtx?

Herbert Voss

unread,
Jun 20, 2005, 8:25:34 AM6/20/05
to
rmagere wrote:
> Herbert Voss wrote:
>
>>put a \listfiles before \documentclass and send the logfile
>
> see below
>
>
>
>>>[Partial] The page I get from using pst-pdf but running each step
>>>manually is
>>>http://img201.echo.cx/my.php?image=testmanual.png
>>
>>which is correct, because you defined the box only for (5,2) and
>>not \begin{pspicture}(0,-1)(5,1)
>>
>
> Ah, I have never used pstricks before so I had just copied the example
> provided by Konrad.
> I decided to try it out as I'll soon need to start making figures for my
> thesis and thought it would be a good time to get it working.
>
> Anway after having changed the test file
> from "\begin{pspicture}(5,2)" to "\begin{pspicture}(0,-1)(5,1)".
> If I now run:
> pdflatex test.tex

the above is senseless here ...

> latex test.tex
> dvips -o test-pics.ps test.dvi
> ps2pdf test-pics.ps
> pdflatex test.tex

these four commands are only needed, you can put them in an own batch
file, if the ones from the website don't work.

here's my pdf http://perce.de/temp/circtest.pdf

Ulrike Fischer

unread,
Jun 20, 2005, 8:40:34 AM6/20/05
to
"Konrad Viltersten" <tm...@viltersten.com> schrieb:

>> You need to disable the test and then hope that all
>> commands work.
>
> I see no commands for disabling the test on the page a link to
> which you so helpfully posted for me. Is it there? Just say
> yes or no - i'd like to locate it myself. :)
>

the test is in pdftricks.sty:

\ifPDFTshell
% we must set it to false if \write18 doesn't work.
% Hack given by Thierry Bouche (Thanks !)
\def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time}
\ifmiktex%
\immediate\write18{rem >"\tmpfile"}%%%%%% LDL-2
\else
\immediate\write18{touch \tmpfile} %%%%%% LDL-1
\fi
\ifmiktex
\IfFileExists{\tmpfile.}{\PDFTshelltrue}{\PDFTshellfalse} %%%%%% LDL-4
\else
\IfFileExists{\tmpfile}{\PDFTshelltrue}{\PDFTshellfalse} %%%%%% LDL-3
\fi
\fi


It seemed to have been changed since last time I looked at it. I don't
know if the test works now. At least you will need a folder tmp. You
can also uncomment the test (in a copy of pdftricks.sty e.g.
mik-pdftricks.sty) and hope for the best.

rmagere

unread,
Jun 20, 2005, 8:38:16 AM6/20/05
to
Herbert Voss wrote:

> rmagere wrote:
>> pdflatex test.tex
>
> the above is senseless here ...
Yeah but it reminds me of which commands I need to call :)

>> latex test.tex
>> dvips -o test-pics.ps test.dvi
>> ps2pdf test-pics.ps
>> pdflatex test.tex
>
> these four commands are only needed, you can put them in an own batch
> file, if the ones from the website don't work.

Indeed, but as I stated it was enough to add two lines to the .noMiKTeX
batch file to get it working properly with MiKTeX.

Which is exactly what I am getting now through either the four commands
above or the modified batch file.
I must say that this definetly appears to be the easiest package/set-up for
a windows user that wants to get pstricks to work with pdf files.


rmagere

unread,
Jun 20, 2005, 8:53:55 AM6/20/05
to

It has changed i.e. now is v1.16 rather than v1.15 however MiKTeX (at least
up to yesterday) still installs v1.15.
Furthermore this test is still wrong because:
a) it assumes the presence of a tmp folder (which generally is not present
as (at least in Win2K and WinXP) there are a "Temp" directory within the
windows directory and the "local settings" directory (one for each user).
b) rem > "filename.test" does not generate the "filename.test"
advice:
if you want to use pdftricks (though after having tried I strongly recomend
pst-pdf for a miktex user) just change the \PDFTshellfalse to \PDFTshelltrue
in the two lines below.

Ulrike Fischer

unread,
Jun 20, 2005, 9:11:30 AM6/20/05
to
"Konrad Viltersten" <tm...@viltersten.com> schrieb:

> Hmmm... This will be rather awkward, i presume... Where is
> the texmf tree? I understand by my googling that it's
> called "texmf", that it's a directory and that it's
> somewhere as a subdir to my MiKTeX dir... But i have no
> such thing as far i can see...

texmf isn't a subdir, it's the "masterdir" which contains all
tex-files:

C:\texmf\miktex\bin
C:\texmf\tex\latex ..

You should also have a localtexmf folder.


> Also - the file you mention - on my computer it gets called
> .dtx.txt for some reason. Should/can i rename it to .dtx?

Yes. Windows sometimes adds unwanted extensions to files.

Heiko Oberdiek

unread,
Jun 20, 2005, 9:18:00 AM6/20/05
to
Ulrike Fischer <ne...@nililand.de> wrote:

Recent web2c versions and so pdfTeX can use a test based
on "\ifeof18". But it is difficult to test the presence of this
feature, because \ifeof18 would arise an error message if not
supported. But here you can probably test the version number
of pdfTeX. Can someone confirm this that there is a
pdfTeX version of mikTeX where \ifeof18 works?

Yours sincerely
Heiko <ober...@uni-freiburg.de>

rmagere

unread,
Jun 20, 2005, 10:33:43 AM6/20/05
to
Heiko Oberdiek wrote:

> Ulrike Fischer <ne...@nililand.de> wrote:
>
> Recent web2c versions and so pdfTeX can use a test based
> on "\ifeof18". But it is difficult to test the presence of this
> feature, because \ifeof18 would arise an error message if not
> supported. But here you can probably test the version number
> of pdfTeX. Can someone confirm this that there is a
> pdfTeX version of mikTeX where \ifeof18 works?

If you post a sample file that you would like tested I don't mind running
it.


Ulrike Fischer

unread,
Jun 20, 2005, 10:51:49 AM6/20/05
to
Heiko Oberdiek <ober...@uni-freiburg.de> schrieb:


> Recent web2c versions and so pdfTeX can use a test based
> on "\ifeof18". But it is difficult to test the presence of this
> feature, because \ifeof18 would arise an error message if not
> supported. But here you can probably test the version number
> of pdfTeX. Can someone confirm this that there is a
> pdfTeX version of mikTeX where \ifeof18 works?

I don't think that such a version exists. I updated all the miktex
executable and got

This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded

format=latex 2005.6.20) 20 JUN 2005 16:48

! Bad number (18).
l.3 \ifeof18

rmagere

unread,
Jun 20, 2005, 11:19:52 AM6/20/05
to
Ulrike Fischer wrote:
>
> I don't think that such a version exists. I updated all the miktex
> executable and got
>
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded
> format=latex 2005.6.20) 20 JUN 2005 16:48
>
> ! Bad number (18).
> l.3 \ifeof18

That's exactly the same output I got when I tried it - both through simple
call to pdflatex and to pdflatex -enable-write18 - I thought I had used the
\ifeof18 option wrongly and that's why I asked for a sample file.


Robin Fairbairns

unread,
Jun 20, 2005, 12:02:37 PM6/20/05
to
"rmagere" <rmagere@*the-mail-that-burns*.com> writes:

>Ulrike Fischer wrote:
>> It seemed to have been changed since last time I looked at it. I don't
>> know if the test works now. At least you will need a folder tmp. You
>> can also uncomment the test (in a copy of pdftricks.sty e.g.
>> mik-pdftricks.sty) and hope for the best.
>
>It has changed i.e. now is v1.16 rather than v1.15 however MiKTeX (at least
>up to yesterday) still installs v1.15.

because the authors haven't bothered to submit the changed version to
ctan. most people who maintain their software on sarovar or
sourceforge or wherever seem to think that it's quite good enough.

one point of putting such things on ctan is to limit the size of the
distributors' task -- if every distributor has to scan every software
repository for new versions of software, their task becomes ever
nearer impossible.

but package writers continue not to bother. for example, jonathan
fine's rather interesting python/tex interaction stuff isn't on ctan,
so will probably never achieve wide distribution.

>Furthermore this test is still wrong because:
>a) it assumes the presence of a tmp folder (which generally is not present
>as (at least in Win2K and WinXP) there are a "Temp" directory within the
>windows directory and the "local settings" directory (one for each user).
>b) rem > "filename.test" does not generate the "filename.test"
>advice:
>if you want to use pdftricks (though after having tried I strongly recomend
>pst-pdf for a miktex user) just change the \PDFTshellfalse to \PDFTshelltrue
>in the two lines below.
>> \IfFileExists{\tmpfile.}{\PDFTshelltrue}{\PDFTshellfalse} %%%%%%
>> LDL-4 \else
>> \IfFileExists{\tmpfile}{\PDFTshelltrue}{\PDFTshellfalse} %%%%%%

and of course pst-pdf is _also_ not on ctan (in fact i've only today
realised it was a separate object). sigh. herbert voss regularly
updates ctan with his changes on perce.de, but apparently not everyone
:-(

of course, nobody ever reads my faq, but _that_ doesn't talk about
software that's not on ctan, either. but since nobody reads it, that
doesn't bother people either: if they want to advertise their stuff,
it not being in my faq won't bother them, and if they want to keep
their stuff cryptic, they wouldn't want the faq or anything else to
mention it either.

</rant>

Herbert Voss

unread,
Jun 20, 2005, 12:13:52 PM6/20/05
to
Robin Fairbairns wrote:

> and of course pst-pdf is _also_ not on ctan (in fact i've only today
> realised it was a separate object). sigh. herbert voss regularly
> updates ctan with his changes on perce.de, but apparently not everyone
> :-(

hehe, keep cool ...
it makes no sense to have packages on CTAN as long they are
really really experimental and maybe buggy.

Heiko Oberdiek

unread,
Jun 20, 2005, 12:15:46 PM6/20/05
to
"rmagere" <rmagere@*the-mail-that-burns*.com> wrote:

\def\msg#{\immediate\write16 }
\ifeof18
\msg{* Shell escape is disabled}
\else
\msg{* Shell escape is enabled}
\fi
\csname @@end\endcsname
\end

Run it through (pdf)(e)(la)tex both with enabled
write 18 feature and when the feature is disabled.
In both cases you should get a message on the
screen, but no errors.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Heiko Oberdiek

unread,
Jun 20, 2005, 12:15:47 PM6/20/05
to
Ulrike Fischer <ne...@nililand.de> wrote:

> Heiko Oberdiek <ober...@uni-freiburg.de> schrieb:
>
>
> > Recent web2c versions and so pdfTeX can use a test based
> > on "\ifeof18". But it is difficult to test the presence of this
> > feature, because \ifeof18 would arise an error message if not
> > supported. But here you can probably test the version number
> > of pdfTeX. Can someone confirm this that there is a
> > pdfTeX version of mikTeX where \ifeof18 works?
>
> I don't think that such a version exists. I updated all the miktex
> executable and got
>
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded
> format=latex 2005.6.20) 20 JUN 2005 16:48
>
> ! Bad number (18).
> l.3 \ifeof18

Olaf has added this feature: 2004-12-28, pdfTeX 1.21a was released
on 2005-02-04 and in its release notes this feature is listed.

Thus we have a nice feature, that cannot be used, because there
is no way for detecting it :-((

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Heiko Oberdiek

unread,
Jun 20, 2005, 12:21:40 PM6/20/05
to
Herbert Voss <Herber...@gmx.net> wrote:

> Robin Fairbairns wrote:
>
> > and of course pst-pdf is _also_ not on ctan (in fact i've only today
> > realised it was a separate object). sigh. herbert voss regularly
> > updates ctan with his changes on perce.de, but apparently not everyone
> > :-(
>
> hehe, keep cool ...
> it makes no sense to have packages on CTAN as long they are
> really really experimental and maybe buggy.

CTAN helps in finding/distributing software, but it is not a
quality control system.
Thus there is experimental stuff there, prominent example: latex3.
You can make a subdirectory "experimental" to make clear, the
code is not production stable.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Konrad Viltersten

unread,
Jun 20, 2005, 12:48:58 PM6/20/05
to
> texmf isn't a subdir, it's the "masterdir" which
> contains all tex-files:
> C:\texmf\miktex\bin
> C:\texmf\tex\latex ..
> You should also have a localtexmf folder.

Got that. And yes, i have such directories. The issue is
that after i downloaded the two files mentioned by
Herbert Voss (i.e. pst-pdf.ins and pst-pdf.dtx) i get no
interesting results.

The vastly non-interesting results i get when i double
click the .INS-file is that the computer tells me that it
will change my internet settings. After that - nothing...
So, should i:
a) run the file in a special way?
b) download more files?
c) (re)install something?
d) shoot myself for being stubborn or at least quit
trying to make a drawing in LaTeX?
e) other?

>> Also - the file you mention - on my computer it gets called
>> .dtx.txt for some reason. Should/can i rename it to .dtx?
>
> Yes. Windows sometimes adds unwanted extensions to files.

Got it. Sometimes i wonder why i still use Windows (then i
remember - i'm too lazy to make a total-switch, hehe).

rmagere

unread,
Jun 20, 2005, 12:33:43 PM6/20/05
to
Heiko Oberdiek wrote:

> "rmagere" <rmagere@*the-mail-that-burns*.com> wrote:
>> If you post a sample file that you would like tested I don't mind
>> running it.
>
> \def\msg#{\immediate\write16 }
> \ifeof18
> \msg{* Shell escape is disabled}
> \else
> \msg{* Shell escape is enabled}
> \fi
> \csname @@end\endcsname
> \end
>
> Run it through (pdf)(e)(la)tex both with enabled
> write 18 feature and when the feature is disabled.
> In both cases you should get a message on the
> screen, but no errors.
>

Ok I tried:
tex
etex
latex
pdftex
pdfetex
pdflatex
both with enabled and not-enabled write18 and everytime I get the error
below:

! Bad number (18).
l.2 \ifeof18


Heiko Oberdiek

unread,
Jun 20, 2005, 12:38:17 PM6/20/05
to
"rmagere" <rmagere@*the-mail-that-burns*.com> wrote:

It is not supported then.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

rmagere

unread,
Jun 20, 2005, 12:41:46 PM6/20/05
to
Herbert Voss wrote:
> Robin Fairbairns wrote:
>
>> and of course pst-pdf is _also_ not on ctan (in fact i've only today
>> realised it was a separate object). sigh. herbert voss regularly
>> updates ctan with his changes on perce.de, but apparently not
>> everyone :-(
>
> hehe, keep cool ...
> it makes no sense to have packages on CTAN as long they are
> really really experimental and maybe buggy.
>
That is true but having tried in the past day different solutions to
pstricks in pdf I think pst-pdf is definetely the easiest solution for a
windows/miktex user especially as it doesn't require manually modifying .sty
files, nor installing a programming language (perl), nor modifiying
environmental variable of the system, nor modifying the source latex files
(but for including the package) and it produces outputs identical to the
plain postscript version.
Caveat: I only tried that circle example and not any of the more complex
pstricks functions

I think it would be a benefit if it was provided by miktex package manager
and mentioned in the faq as a (the preffered?) method for using pstricks
with pdf output.


Herbert Voss

unread,
Jun 20, 2005, 12:42:54 PM6/20/05
to

but no problem with Linux ...

Herbert


voss@shania:~/tmp/mist> pdflatex --shell-escape circtest.tex
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.3)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
(./circtest.tex
LaTeX2e <2003/12/01>

[ ... ]

* Shell escape is enabled

)
No pages of output.
Transcript written on circtest.log.

Robin Fairbairns

unread,
Jun 20, 2005, 2:45:52 PM6/20/05
to
Heiko Oberdiek <ober...@uni-freiburg.de> writes:
>Herbert Voss <Herber...@gmx.net> wrote:
>
>> Robin Fairbairns wrote:
>>
>> > and of course pst-pdf is _also_ not on ctan (in fact i've only today
>> > realised it was a separate object). sigh. herbert voss regularly
>> > updates ctan with his changes on perce.de, but apparently not everyone
>> > :-(
>>
>> hehe, keep cool ...
>> it makes no sense to have packages on CTAN as long they are
>> really really experimental and maybe buggy.
>
>CTAN helps in finding/distributing software, but it is not a
>quality control system.

thank you heiko.

> Thus there is experimental stuff there, prominent example: latex3.
>You can make a subdirectory "experimental" to make clear, the
>code is not production stable.

there is a tree, macros/latex/exptl, for precisely this purpose.

the thing that started my little rant was the assertion that pst-pdf
is the best thing available; if that's the case, why aren't pdftricks
and ps4pdf flagged as experimental?

(answer: because their authors don't think they are.)

Morten Høgholm

unread,
Jun 20, 2005, 2:52:59 PM6/20/05
to
On Mon, 20 Jun 2005 18:48:58 +0200, Konrad Viltersten
<tm...@viltersten.com> wrote:

> Got that. And yes, i have such directories. The issue is
> that after i downloaded the two files mentioned by
> Herbert Voss (i.e. pst-pdf.ins and pst-pdf.dtx) i get no
> interesting results.
>
> The vastly non-interesting results i get when i double
> click the .INS-file is that the computer tells me that it
> will change my internet settings. After that - nothing...
> So, should i:
> a) run the file in a special way?
> b) download more files?
> c) (re)install something?
> d) shoot myself for being stubborn or at least quit
> trying to make a drawing in LaTeX?
> e) other?

<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages>
--
Morten

Rolf Niepraschk

unread,
Jun 21, 2005, 3:03:16 AM6/21/05
to
Robin Fairbairns wrote:
...

>
> the thing that started my little rant was the assertion that pst-pdf
> is the best thing available; if that's the case, why aren't pdftricks
> and ps4pdf flagged as experimental?

In my view: `ps4pdf' can be called "obsolete" if `pst-pdf' comes to
CTAN. Please wait a bit.

...Rolf

Ulrike Fischer

unread,
Jun 21, 2005, 4:03:34 AM6/21/05
to
"Konrad Viltersten" <tm...@viltersten.com> schrieb:


> The vastly non-interesting results i get when i double
> click the .INS-file is that the computer tells me that it
> will change my internet settings. After that - nothing...
> So, should i:
> a) run the file in a special way?

Simply run it with pdfLaTeX or LaTeX like a normal .tex file.


>>> Also - the file you mention - on my computer it gets called
>>> .dtx.txt for some reason. Should/can i rename it to .dtx?
>>
>> Yes. Windows sometimes adds unwanted extensions to files.
>
> Got it. Sometimes i wonder why i still use Windows (then i
> remember - i'm too lazy to make a total-switch, hehe).

You can avoid the extra extension by changing in the "save-window" the
file type from "textfile '.txt'" to "all files .*", then windows will
no longer try to be to clever.

Konrad Viltersten

unread,
Jun 21, 2005, 2:00:27 PM6/21/05
to
> In my view: `ps4pdf' can be called "obsolete" if `pst-pdf'
> comes to CTAN. Please wait a bit.


One thing struck me just now. What is ment by "obsolete"
in these cases? As far i understand the matter, we're
talking wrappers to PSTricks here, hence, the only
enchancement possible should be a newer version of
PSTricks, not the wrappers themselves.

What do i miss here?

Herbert Voss

unread,
Jun 21, 2005, 2:14:03 PM6/21/05
to
Konrad Viltersten wrote:
>>In my view: `ps4pdf' can be called "obsolete" if `pst-pdf'
>>comes to CTAN. Please wait a bit.
>
>
>
> One thing struck me just now. What is ment by "obsolete"
> in these cases? As far i understand the matter, we're
> talking wrappers to PSTricks here, hence, the only
> enchancement possible should be a newer version of
> PSTricks, not the wrappers themselves.
>
> What do i miss here?

pst-pdf in general has nothing to do with PSTricks. It was
only the reason why ps4pdf.sty and then pst-pdf.sty were
developed, but it can also be used for psfrag, PostScript
specials, displaymath and so on, see example file.

rmagere

unread,
Jun 22, 2005, 1:18:20 PM6/22/05
to
Konrad Viltersten wrote:
> messages. As in - i think i'm getting somewhere...
>
> Package pst-pdf Warning: pspicture No. 1 undefined.
> Package pst-pdf Warning: File `test10-pics.pdf' not found.
> (pst-pdf) Use the following commands to create it:
> (pst-pdf) ---------------------------------------------
> -------
> (pst-pdf) latex test10.tex
> (pst-pdf) dvips -o test10-pics.ps test10.dvi
> (pst-pdf) ps2pdf test10-pics.ps
> (pst-pdf) ---------------------------------------------
> ------- .
>
> Now, can somebody clever enlighten me please what the
> above is supposed to mean? If possible, do that in terms
> of "you fogot to do XYZ, you lazy bum!". Thanks.

Out of curiosity have you run:

latex test10.tex
dvips -o test10-pics.ps test10.dvi
ps2pdf test10-pics.ps
texify --pdf test10.tex

from a command prompt and checked if the final test10.pdf is actually what
you wanted?


Konrad Viltersten

unread,
Jun 22, 2005, 1:41:29 PM6/22/05
to
>> Now, can somebody clever enlighten me please what the
>> above is supposed to mean? If possible, do that in terms
>> of "you fogot to do XYZ, you lazy bum!". Thanks.
>
> \listfiles
> put it as first line in your document, then run it
> as usual and send the file list, which is part of the logfile

Beginning of a LONG and NASTY listing here

This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded

format=latex 2005.6.22) 22 JUN 2005 19:38
entering extended mode
**test10.tex
(test10.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, swedish, dumylang,
nohyphen
ation, loaded.
(C:\Program\MiKTeX\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\Program\MiKTeX\tex\latex\base\size12.clo
File: size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(C:\Program\MiKTeX\tex\latex\pstricks\pstricks.sty
Package: pstricks 2004/05/12 v0.2l LaTeX wrapper for `PSTricks'
(RN,HV)

(C:\Program\MiKTeX\tex\generic\pstricks\pstricks.tex
`PSTricks' v1.04 <2004/06/22> (tvz)
\pst@dima=\dimen103
\pst@dimb=\dimen104
\pst@dimc=\dimen105
\pst@dimd=\dimen106
\pst@dimg=\dimen107
\pst@dimh=\dimen108
\pst@hbox=\box26
\pst@boxg=\box27
\pst@cnta=\count87
\pst@cntb=\count88
\pst@cntc=\count89
\pst@cntd=\count90
\pst@cntg=\count91
\pst@cnth=\count92
\pst@toks=\toks14
(C:\Program\MiKTeX\tex\generic\pstricks\pstricks.con)
\psunit=\dimen109
\psxunit=\dimen110
\psyunit=\dimen111
\pslinewidth=\dimen112
\pst@customdefs=\toks15
\pslinearc=\dimen113
\everypsbox=\toks16
\psframesep=\dimen114
\pslabelsep=\dimen115
\theoverlaybox=\box28
)
File: pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)

(C:\Program\MiKTeX\tex\latex\xcolor\xcolor.sty
Package: xcolor 2005/06/06 v2.03 LaTeX color extensions (UK)

(C:\Program\MiKTeX\tex\latex\00miktex\color.cfg
File: color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
)
Package xcolor Info: Package option `override' ignored on input line
157.
Package xcolor Info: Driver file: pdftex.def on input line 166.

(C:\Program\MiKTeX\tex\latex\graphics\pdftex.def
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
\Gread@gobject=\count93
)
Package xcolor Info: Color model `cmy' added on input line 1117.
Package xcolor Info: Color model `hsb' added on input line 1125.
Package xcolor Info: Color model `RGB' extended on input line 1140.
Package xcolor Info: Color model `HTML' added on input line 1151.
Package xcolor Info: Color model `HSB' added on input line 1157.
Package xcolor Info: Color model `Gray' added on input line 1163.
))
(C:\Program\MiKTeX\tex\latex\pst-pdf\pst-pdf.sty
Package: pst-pdf 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
\c@pspicture=\count94

(C:\Program\MiKTeX\tex\latex\graphics\graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(C:\Program\MiKTeX\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks17
)
(C:\Program\MiKTeX\tex\latex\graphics\graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(C:\Program\MiKTeX\tex\latex\graphics\trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(C:\Program\MiKTeX\tex\latex\00miktex\graphics.cfg
File: graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
)
Package graphics Info: Driver file: pdftex.def on input line 80.
)
\Gin@req@height=\dimen116
\Gin@req@width=\dimen117
)
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 180.
\ppf@temptoken=\toks18

(C:\Program\MiKTeX\tex\latex\preview\preview.sty
Package: preview 2005/04/03 preview-latex 0.9.1
\pr@snippet=\count95
\pr@box=\box29
)
(C:\Program\MiKTeX\tex\latex\graphics\dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)) (test10.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line
9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line
9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line
9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.

(C:\Program\MiKTeX\tex\context\base\supp-pdf.tex
(C:\Program\MiKTeX\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
\protectiondepth=\count96
\scratchcounter=\count97
\scratchtoks=\toks19
\scratchdimen=\dimen118
\scratchskip=\skip43
\scratchmuskip=\muskip10
\scratchbox=\box30
\scratchread=\read1
\scratchwrite=\write3
\zeropoint=\dimen119
\onepoint=\dimen120
\onebasepoint=\dimen121
\minusone=\count98
\thousandpoint=\dimen122
\onerealpoint=\dimen123
\emptytoks=\toks20
\nextbox=\box31
\nextdepth=\dimen124
\everyline=\toks21
\!!counta=\count99
\!!countb=\count100
\recursecounter=\count101
)
loading : Context Support Macros / PDF (2004.03.26)
\nofMPsegments=\count102
\nofMParguments=\count103
\MPscratchCnt=\count104
\MPscratchDim=\dimen125
\MPnumerator=\count105
\everyMPtoPDFconversion=\toks22
)
Preview: Fontsize 12pt
Preview: PDFoutput 1
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <24.88> on input line 20.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <20.74> on input line 20.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <17.28> on input line 20.

Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `test10-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ---------------------------------------------
-------
(pst-pdf) latex test10.tex
(pst-pdf) dvips -o test10-pics.ps test10.dvi
(pst-pdf) ps2pdf test10-pics.ps
(pst-pdf) ---------------------------------------------
------- .


(test10.aux)

*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
xcolor.sty 2005/06/06 v2.03 LaTeX color extensions (UK)
color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
pst-pdf.sty 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
preview.sty 2005/04/03 preview-latex 0.9.1
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
supp-pdf.tex
***********

)
Here is how much of TeX's memory you used:
2385 strings out of 95515
26669 string characters out of 1189251
89108 words of memory out of 1092916
5461 multiletter control sequences out of 60000
7894 words of font info for 28 fonts, out of 500000 for 1000
14 hyphenation exceptions out of 4999
32i,5n,39p,228b,169s stack positions out of
1500i,500n,5000p,200000b,32768s
PDF statistics:
0 PDF objects out of 300000
0 named destinations out of 300000
1 words of extra memory for PDF output out of 65536

No pages of output.


The End!!!

Herbert Voss

unread,
Jun 22, 2005, 1:47:07 PM6/22/05
to
Konrad Viltersten wrote:

> Beginning of a LONG and NASTY listing here

> Package pst-pdf Warning: pspicture No. 1 undefined.


>
>
> Package pst-pdf Warning: File `test10-pics.pdf' not found.
> (pst-pdf) Use the following commands to create it:
> (pst-pdf) ---------------------------------------------
> -------
> (pst-pdf) latex test10.tex
> (pst-pdf) dvips -o test10-pics.ps test10.dvi
> (pst-pdf) ps2pdf test10-pics.ps
> (pst-pdf) ---------------------------------------------

did you run these commands?

> *File List*
> article.cls 2004/02/16 v1.4f Standard LaTeX document class
> size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
> pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
> pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
> xcolor.sty 2005/06/06 v2.03 LaTeX color extensions (UK)
> color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
> pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
> pst-pdf.sty 2005/05/28 v1.1g PS graphics for pdfLaTeX (RN,HjG)
> graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
> keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
> graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
> trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
> graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
> preview.sty 2005/04/03 preview-latex 0.9.1
> dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
> supp-pdf.tex
> ***********

looks okay so far

Konrad Viltersten

unread,
Jun 22, 2005, 2:16:01 PM6/22/05
to
> Out of curiosity have you run:
>
> latex test10.tex
> dvips -o test10-pics.ps test10.dvi
> ps2pdf test10-pics.ps
> texify --pdf test10.tex

No, i haven't (i had once, few days ago but that was way
before i did a lot of changes according to the great help
provided at this place. So, i'll check those commands again.

> from a command prompt and checked if the final
> test10.pdf is actually what you wanted?

Here's an other thing - i do get something (yippi!) but i'm
not sure if that's what i want. I get a matrix of squares
with a blue circle inside it as well as some letters in the
corners along with some latex related terms. All that out
of the code below:

\begin{pspicture}(-5.25,-5.25)(5.25,5.25)
\pscircle*[linecolor=cyan]{5}
\psgrid[subgriddiv=0,gridcolor=lightgray,gridlabels=0pt]
\Huge\sffamily\bfseries
\rput(-4.5,4.5){A} \rput(4.5,4.5){B}
\rput(-4.5,-4.5){C}\rput(4.5,-4.5){D}
\rput(0,0){pst-pdf}
\rmfamily
\rput(0,-3.8){PSTricks}
\rput(0,3.8){\LaTeX}
\end{pspicture}

Now, you tell me - is that what i wanted? I'm guessing
"yes" but i'm also guessing it's a good idea to recheck.

Konrad Viltersten

unread,
Jun 22, 2005, 2:23:54 PM6/22/05
to
>> Package pst-pdf Warning: File `test10-pics.pdf' not found.
>> (pst-pdf) Use the following commands to create it:
>> (pst-pdf)
>> --------------------------------------------- -------
>> (pst-pdf) latex test10.tex
>> (pst-pdf) dvips -o test10-pics.ps test10.dvi
>> (pst-pdf) ps2pdf test10-pics.ps
>> (pst-pdf)
>> ---------------------------------------------
>
> did you run these commands?


Now i have (shamefull look all over my face). And yes,
i get SOME pdf with contents that most likely are
what they're supposed to be.

Now, just fun, how about not having to work with the
console window but rather push some buttons in
WinEdt - is it doable? I guess i'll bother people on
WinEdt-related forum with that one.

What i'd like to know now is what those commands do.
I have installed (i think) and am using (i guess) the
package "pst-pdf". However, i seem to call for
something named "ps2pdf". Is it the same thing or was
the ps2pdf just a work-around to see if my computer
has gone mad?

In any case i can already run pstricks-code so from
now on i can only get better! I'd like to express a
really great THANKS to everybody who contributed
(or spread confusion trying to contribute, hehe).

Konrad Viltersten

unread,
Jun 22, 2005, 9:49:49 AM6/22/05
to
> The current offered by MiKTeX is rel-0-9-1. Run the update wizard
> once in a while.

I did and i will. Thanks!

>> Also, what bothers me a little bit is that i can't locate the
>> pst-pdf package in the database manager in MiKTeX. Since
>> it swallowed my "\usepackage{pst-pdf} i'm guessing it's in
>> there somewhere, though.
>
> Just let the update wizard do it's job.


I did. I think it helped a little bit since i get new error


messages. As in - i think i'm getting somewhere...

Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `test10-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ---------------------------------------------
-------
(pst-pdf) latex test10.tex
(pst-pdf) dvips -o test10-pics.ps test10.dvi
(pst-pdf) ps2pdf test10-pics.ps
(pst-pdf) ---------------------------------------------

------- .

Now, can somebody clever enlighten me please what the
above is supposed to mean? If possible, do that in terms
of "you fogot to do XYZ, you lazy bum!". Thanks.

--

Herbert Voss

unread,
Jun 22, 2005, 9:41:21 AM6/22/05
to
Konrad Viltersten wrote:

> I did. I think it helped a little bit since i get new error
> messages. As in - i think i'm getting somewhere...
>
> Package pst-pdf Warning: pspicture No. 1 undefined.
> Package pst-pdf Warning: File `test10-pics.pdf' not found.
> (pst-pdf) Use the following commands to create it:
> (pst-pdf) ---------------------------------------------
> -------
> (pst-pdf) latex test10.tex
> (pst-pdf) dvips -o test10-pics.ps test10.dvi
> (pst-pdf) ps2pdf test10-pics.ps
> (pst-pdf) ---------------------------------------------
> ------- .
>
> Now, can somebody clever enlighten me please what the
> above is supposed to mean? If possible, do that in terms
> of "you fogot to do XYZ, you lazy bum!". Thanks.

\listfiles


put it as first line in your document, then run it
as usual and send the file list, which is part of the logfile

Herbert

Morten Høgholm

unread,
Jun 22, 2005, 9:02:46 AM6/22/05
to
On Wed, 22 Jun 2005 15:04:51 +0200, Konrad Viltersten
<tm...@viltersten.com> wrote:

> So, after i updated database and tried to compile an example
> i get following fun stuff to play with:
>
> LaTeX Warning: You have requested, on input line 95, version
> `2005/01/29' of package preview,
> but only version
> `2004/04/11 preview-latex 0.8.1'
> is available.

The current offered by MiKTeX is rel-0-9-1. Run the update wizard once in
a while.

> Also, what bothers me a little bit is that i can't locate the


> pst-pdf package in the database manager in MiKTeX. Since
> it swallowed my "\usepackage{pst-pdf} i'm guessing it's in
> there somewhere, though.

The package manager knows only about prepackaged packages, not random
files you install on your computer.

> So, what do i do next? :)

Just let the update wizard do it's job.

--
Morten

Konrad Viltersten

unread,
Jun 22, 2005, 9:04:51 AM6/22/05
to
>> So, should i... ...run the file in a special way?

>
> Simply run it with pdfLaTeX or LaTeX like a normal .tex file.


Yes, followed the advices at
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages>
and ended up with something that might be what i wished for.
I see a resemblance between the files in the newly created
pst-pdf directory and other in MiKTeX tree structure.

So, after i updated database and tried to compile an example
i get following fun stuff to play with:

LaTeX Warning: You have requested, on input line 95, version
`2005/01/29' of package preview,
but only version
`2004/04/11 preview-latex 0.8.1'
is available.

as well as something about wrong in-parameters.

Also, what bothers me a little bit is that i can't locate the
pst-pdf package in the database manager in MiKTeX. Since
it swallowed my "\usepackage{pst-pdf} i'm guessing it's in
there somewhere, though.


When i try to compile the file from my editor i get the
message about wrong number of of input parameters in the
definition of "\next" and something about # being changed
into ##...

So, what do i do next? :)

--

rmagere

unread,
Jun 22, 2005, 3:20:30 PM6/22/05
to
Konrad Viltersten wrote:
>
> Now, you tell me - is that what i wanted? I'm guessing
> "yes" but i'm also guessing it's a good idea to recheck.

Short Answer:
Yes.

Long Answer:
I guess it would be good that you were able to check
it yourself or everytime you would need to have
someone do it for you.
Now how can you check your output? maybe by
comparing it to a result you trust to be right...
Given that pstricks has been used for a long time to
generate ps files, maybe you could just run it through
plain latex, get the dvi, convert it to postscript and
check if your postscript file is equal to your pdf file.
If they are than you got what you wanted.


Konrad Viltersten

unread,
Jun 22, 2005, 4:34:07 PM6/22/05
to


Got it. Thank you very much.

0 new messages