PSTricks in latex-image

170 views
Skip to first unread message

Alex Jordan

unread,
May 3, 2021, 3:56:59 PM5/3/21
to prete...@googlegroups.com
I'm down a rabbit hole, a bit off track from WW-tikz. But I have run
in to this. I can't build the PSTricks images in the Showcase Article,
because PSTricks wants you to run latex (not pdflatex). Then you get a
dvi, and of course we don't do anything with that (yet) using the
pretext script latex-image build.

So I'm thinking to add:
syntax="pstricks"

And then follow up with that. In extract-latex-image.xsl, I found
where you (Rob) pointed me to:

<!-- Stylesheet is parametrized by format for output -->
<!-- latex: for PDF to be cropped, manipulated, etc -->
<!-- tactile: placeholder rectangle for braille cells, meant -->
<!-- to survive latex -> DVI, dvisvgm -> SVG -->

Is this the appropriate place to have options like "latex",
"pdflatex", "xelatex"? And then I'd follow up with the pretext script
and dvi processing.

Rob Beezer

unread,
May 4, 2021, 6:19:19 PM5/4/21
to prete...@googlegroups.com
How did you do this in the first place? Do you want to stay in this rabbit
hole? ;-)

1. We will someday need latex-image/@syntax. Maybe that day is now.

2. I'd propose

docinfo/latex-image-preamble/@syntax

to match. In other words multiple "latex-image-preamble".

3. We'll need to support something like

@syntax="all"

as the default when @syntax is not present, for backward-compatibility.

4. extract-latex-image.xsl will need to be parameterized to only extract the
*right* images in a pass through source, so we can hit them with the right
tools. This will be good for the "label" element being effective in new
situations. Maybe this means new command-line format options?
latex-image-pstricks? I'm in this file (nothing pending now?) so we might need
to be careful about conflicts.

5. Config file for pretext/pretext has a "tex" option. Maybe not a great name
choice. It is a PDF-maker of latex source. Maybe we need a "tex2dvi" option?
(I need it for tactile graphics.) Maybe "tex" should have a "tex2pdf" alias,
and/or both should have "latex" instead of "tex".

6. Schema.

7. Documentation.

Did I forget anything? ;-)

Rob

Alex Jordan

unread,
May 4, 2021, 6:45:22 PM5/4/21
to prete...@googlegroups.com
> How did you do this in the first place? Do you want to stay in this rabbit
hole? ;-)

I really do not know!! I guess I did not use pretext to make the image
files? Although, it seems to me that different versions of LaTeX let
you get by with pdflatex on pstricks code if you use the [pdf] option
on the package. Maybe I got by before that way? Sounds questionable.

> 4. extract-latex-image.xsl will need to be parameterized to only extract the
*right* images in a pass through source, so we can hit them with the right
tools. This will be good for the "label" element being effective in new
situations. Maybe this means new command-line format options?
latex-image-pstricks? I'm in this file (nothing pending now?) so we might need
to be careful about conflicts.

If I understand this right, I'm not sure I'd want it to work that way.
I wouldn't want to have to process only my tikz images, and then only
my pstricks images separately, etc. Could we just do
./pretext -c latex-image
and pretext sorts them and calls different subroutines depending on the @syntax?

> 5. Config file for pretext/pretext has a "tex" option. Maybe not a great name
choice. It is a PDF-maker of latex source. Maybe we need a "tex2dvi" option?
(I need it for tactile graphics.) Maybe "tex" should have a "tex2pdf" alias,
and/or both should have "latex" instead of "tex".

Is even "PDF-maker" too broad? At times, I wanted xelatex to process
an image when I had a special character in it. At other times, I
wanted pdflatex to process an image because of some known bug with
tikz and xelatex.
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/236dcc24-070b-51d6-5798-e1d4b6810a56%40ups.edu.

Alex Jordan

unread,
May 7, 2021, 4:07:19 PM5/7/21
to prete...@googlegroups.com
It seems that this has to do with my TeXLive being 2018. And if your
latex installation is more recent, the pstricks images are coming out
fine.

Rob Beezer

unread,
May 7, 2021, 5:27:40 PM5/7/21
to prete...@googlegroups.com
For the record, the

examples/fonts/fonts-and-characters.xml

example has a pstricks image, but it needs to be processed with xelatex
rather than pdflatex.

And it may be that the

pstricks-add

LaTeX package might be necessary.

Rob

Alex Jordan

unread,
May 13, 2021, 3:29:37 PM5/13/21
to prete...@googlegroups.com
I think there is still an issue here. (With a little more discussion I
may officially make an "Issue"). I'd like to ask others to (a) try
latex, pdflatex, and xelatex on the attached tex file and report what
works and what does not. And report your OS and latex version. For me,
this happens.

I have Mac OS 10.14.6.
TeX Live 2021
[
specifically:
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021)
kpathsea version 6.3.3
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03
]

When I try
pretext -c latex-image -f all fonts-and-characters.xml
I get five files (tex, pdf, png, svg, eps) but they are not good. The
tex file is fine. But the pdf is (as far as I can see empty) and then
so are the other three image files.

If I manually run:
xelatex lemniscate-pstricks.tex
it builds a PDF file, but it's empty. (This is the PDF I attached.)

If I manually run:
pdflatex lemniscate-pstricks.tex
I hit the usual pstricks error when using pdflatex:

! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills..


If I manually run:
latex lemniscate-pstricks.tex
dvips emniscate-pstricks.dvi
it builds a .ps file that I can successfully open and see the lemniscate.


BTW, I get similar results from the pstricks images in the showcase
article. Except the PDFs are not completely blank. The little figure
looking at the rainbow is there, but nothing else.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/108ce68e-b445-0eb7-fdfe-aa969833ce44%40ups.edu.
lemniscate-pstricks.tex
lemniscate-pstricks.pdf

Rob Beezer

unread,
May 13, 2021, 4:30:44 PM5/13/21
to prete...@googlegroups.com
pdflatex run fails, hit Return at each "?", PDF is created, but is apparently blank

xelatex makes a PDF with the correct image, with no errors during processing.

Rob

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~$ cat /etc/issue
Ubuntu 20.04.2 LTS \n \l


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

latex -v
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Copyright 2019 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.01

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ latex lemniscate-pstricks.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded
format=latex)
restricted \write18 enabled.
entering extended mode
(./lemniscate-pstricks.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/pstricks-add/pstricks-add.sty
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/dvips.def))
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex))))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Loading pgffor.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonomet
ric.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.cod
e.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison
.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerari
thmetics.code.tex)))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)))
`PSTricks' v2.97 <2019/05/11> (tvz,hv)
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-plot/pst-plot.sty
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/pst-xkey.sty)
(/usr/share/texlive/texmf-dist/tex/latex/multido/multido.sty
(/usr/share/texlive/texmf-dist/tex/generic/multido/multido.tex
v1.42, 2010/05/14 <tvz>))
(/usr/share/texlive/texmf-dist/tex/generic/pst-plot/pst-plot.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.09b, 2017/12/03 (hv))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex
v1.42, 2019/03/03)
(/usr/share/texlive/texmf-dist/tex/generic/pst-arrow/pst-arrow.tex
`pst-arrow' v0.01, 2016/09/01 (dr,hv))
(/usr/share/texlive/texmf-dist/tex/generic/pst-3d/pst-3d.tex
`PST-3d' v1.11, 2010/02/14 (tvz))
(/usr/share/texlive/texmf-dist/tex/generic/pst-math/pst-math.tex
`pst-math' v0.64 , (CJ,hv)) `pstricks-add' v3.89a, 2020/02/12 (dr,hv))
v1.92, 2019/05/16 (tvz,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-node/pst-node.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-3d/pst-3d.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-3d/pst-3d.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-math/pst-math.sty
(/usr/share/texlive/texmf-dist/tex/latex/pst-calculate/pst-calculate.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)))
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texlive/texmf-dist/tex/latex/translator/translator.sty)))
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pst-math/pst-math.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex))
No file lemniscate-pstricks.aux.
*geometry* driver: auto-detecting
*geometry* detected driver: dvips

(/usr/share/texlive/texmf-dist/tex/latex/translator/translator-basic-dictionary
-English.dict)
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) [1]
(./lemniscate-pstricks.aux) )
Output written on lemniscate-pstricks.dvi (1 page, 2868 bytes).
Transcript written on lemniscate-pstricks.log.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ pdflatex lemniscate-pstricks.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded
format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./lemniscate-pstricks.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/pstricks-add/pstricks-add.sty
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def))
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex))))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Loading pgffor.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonomet
ric.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.cod
e.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison
.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerari
thmetics.code.tex)))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)))
`PSTricks' v2.97 <2019/05/11> (tvz,hv)
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-plot/pst-plot.sty
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/pst-xkey.sty)
(/usr/share/texlive/texmf-dist/tex/latex/multido/multido.sty
(/usr/share/texlive/texmf-dist/tex/generic/multido/multido.tex
v1.42, 2010/05/14 <tvz>))
(/usr/share/texlive/texmf-dist/tex/generic/pst-plot/pst-plot.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.09b, 2017/12/03 (hv))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex
v1.42, 2019/03/03)
(/usr/share/texlive/texmf-dist/tex/generic/pst-arrow/pst-arrow.tex
`pst-arrow' v0.01, 2016/09/01 (dr,hv))
(/usr/share/texlive/texmf-dist/tex/generic/pst-3d/pst-3d.tex
`PST-3d' v1.11, 2010/02/14 (tvz))
(/usr/share/texlive/texmf-dist/tex/generic/pst-math/pst-math.tex
`pst-math' v0.64 , (CJ,hv)) `pstricks-add' v3.89a, 2020/02/12 (dr,hv))
v1.92, 2019/05/16 (tvz,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-node/pst-node.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-3d/pst-3d.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-3d/pst-3d.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-math/pst-math.sty
(/usr/share/texlive/texmf-dist/tex/latex/pst-calculate/pst-calculate.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)))
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texlive/texmf-dist/tex/latex/translator/translator.sty)))
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pst-math/pst-math.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex))
(./lemniscate-pstricks.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/usr/share/texlive/texmf-dist/tex/latex/translator/translator-basic-dictionary
-English.dict)
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills...

?
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills...

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills...

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills...

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills...

?
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
l.19 \psset
{polarplot,plotpoints=500,linecolor=red,fillcolor=blue!30,fills...

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.20 \psplot{-45}{45}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.20 \psplot{-45}{45}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.20 \psplot{-45}{45}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.20 \psplot{-45}{45}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.20 \psplot{-45}{45}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.20 \psplot{-45}{45}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.21 ...=blue]{135}{225}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.21 ...=blue]{135}{225}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.21 ...=blue]{135}{225}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.21 ...=blue]{135}{225}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.21 ...=blue]{135}{225}{x dup add cos 3 mul sqrt}

?
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.21 ...=blue]{135}{225}{x dup add cos 3 mul sqrt}

?
[1
Non-PDF special ignored!
<special> header=pstricks.pro
Non-PDF special ignored!
<special> header=pst-algparser.pro
Non-PDF special ignored!
<special> header=pst-tools.pro
Non-PDF special ignored!
<special> header=pst-dots.pro
Non-PDF special ignored!
<special> header=pst-node.pro
Non-PDF special ignored!
<special> header=pst-3d.pro
Non-PDF special ignored!
<special> header=pst-math.pro
Non-PDF special ignored!
<special> header=pstricks-add.pro
Non-PDF special ignored!
<special> ps: /pssetRGBcolor /setrgbcolor load def /pssetCMYKcolor /setcmyk...
Non-PDF special ignored!
<special> ps:tx@Dict begin gsave STV CP T /ps@rot 0 def grestore end
Non-PDF special ignored!
<special> ps:tx@Dict begin gsave STV CP T /ps@refangle 0. def grestore e...
Non-PDF special ignored!
<special> ps:tx@Dict begin gsave STV CP T /ps@rot 0 def grestore end
Non-PDF special ignored!
<special> " tx@Dict begin STP newpath 0.8 SLW _Not_Configured_For_This_For...
Non-PDF special ignored!
<special> " tx@Dict begin STP newpath /ArrowA { moveto } def /ArrowB { } d...
Non-PDF special ignored!
<special> " tx@Dict begin STP newpath /ArrowA { moveto } def /ArrowB { } d...
] (./lemniscate-pstricks.aux) )
Output written on lemniscate-pstricks.pdf (1 page, 920 bytes).
Transcript written on lemniscate-pstricks.log.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ xelatex lemniscate-pstricks.tex
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Debian) (preloaded
format=xelatex)
restricted \write18 enabled.
entering extended mode
(./lemniscate-pstricks.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/pstricks-add/pstricks-add.sty
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def))
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex))))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Loading pgffor.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonomet
ric.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.cod
e.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison
.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerari
thmetics.code.tex)))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)))
`PSTricks' v2.97 <2019/05/11> (tvz,hv)
(/usr/share/texlive/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg))
(/usr/share/texlive/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg
Using PSTricks configuration for XeTeX+xdvipdfmx
))) (/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)
>>> Loading XeTeX special macros
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks-xetex.def))
(/usr/share/texlive/texmf-dist/tex/latex/pst-plot/pst-plot.sty
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/pst-xkey.sty)
(/usr/share/texlive/texmf-dist/tex/latex/multido/multido.sty
(/usr/share/texlive/texmf-dist/tex/generic/multido/multido.tex
v1.42, 2010/05/14 <tvz>))
(/usr/share/texlive/texmf-dist/tex/generic/pst-plot/pst-plot.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.09b, 2017/12/03 (hv))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex
v1.42, 2019/03/03)
(/usr/share/texlive/texmf-dist/tex/generic/pst-arrow/pst-arrow.tex
`pst-arrow' v0.01, 2016/09/01 (dr,hv))
(/usr/share/texlive/texmf-dist/tex/generic/pst-3d/pst-3d.tex
`PST-3d' v1.11, 2010/02/14 (tvz))
(/usr/share/texlive/texmf-dist/tex/generic/pst-math/pst-math.tex
`pst-math' v0.64 , (CJ,hv)) `pstricks-add' v3.89a, 2020/02/12 (dr,hv))
v1.92, 2019/05/16 (tvz,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-node/pst-node.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-3d/pst-3d.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-3d/pst-3d.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pst-math/pst-math.sty
(/usr/share/texlive/texmf-dist/tex/latex/pst-calculate/pst-calculate.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def)))
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texlive/texmf-dist/tex/latex/translator/translator.sty)))
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pst-math/pst-math.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex))
(./lemniscate-pstricks.aux)
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex

(/usr/share/texlive/texmf-dist/tex/latex/translator/translator-basic-dictionary
-English.dict)
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx-abbreviations.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) [1]
(./lemniscate-pstricks.aux) )
(see the transcript file for additional information)
Output written on lemniscate-pstricks.pdf (1 page).
Transcript written on lemniscate-pstricks.log.

Alex Jordan

unread,
May 13, 2021, 5:19:15 PM5/13/21
to prete...@googlegroups.com
Looking more closely at my xelatex run, the log indicates an error at
the end. And that leads me here:
https://tex.stackexchange.com/questions/596636/xelatex-and-pstricks-on-mac-osx
(a post from two days ago!)

I updated ghostscript, but that was not enough.

I eventually found out here
http://macosx-tex.576846.n2.nabble.com/External-Editor-Auto-Preview-Update-td7588811.html#a7588824

That I should try:
xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E"
lemniscate-pstricks.tex

And yes, after running xelatex with that output-driver option, I'm in business.

I get the sense from other things on that thread that this will be the
situation for people with TeXLive 2020 or 2021. You (Rob) are on 2019
where things work. Earlier, I was on 2018, where things did not work
but for different reasons.

Now my question is, if there is any reason not to just always use this
output-driver option in all calls to xelatex. I will document this in
the documentation once I really understand what our advice will be,
and what changes to the pretext script that this should maybe induce.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/375f6fd5-67c0-2966-32a1-d95fa3050b7b%40ups.edu.

Alex Jordan

unread,
Sep 18, 2021, 2:00:36 PM9/18/21
to prete...@googlegroups.com
At yesterday's meeting I proposed removing the pstricks images from
the showcase article (and from the fonts article). With current LaTeX,
neither pdflatex nor xelatex can handle pstricks without passing the
option:

-output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E"

So currently, these are just broken. You can't build these articles
from scratch, you have to rely on the images that are committed to the
repo already. (The 2019 TeXLive allowed xelatex to process pstricks. A
change to that is described here:
https://tug.org/pipermail/tex-live/2021-March/046599.html)

An alternative is that we could support pstricks latex-images, but
they would need something like syntax="pstricks". And then (a)
pretext/pretext could pass the above parameter to xelatex while
building isolated images. And (b) the latex stylesheet could treat
these images differently than other latex-images. Not dropping in the
code, but rather looking for the individual image.pdf file from
pretext/pretext.

Is it worth doing this? Introducing another option for @syntax? And if
so, do authors provide the \begin{pspicture}...\end{pspicture} or is
that automated?

Alex Jordan

unread,
Sep 18, 2021, 2:32:48 PM9/18/21
to prete...@googlegroups.com
Or I could look at conditioning on whether something like
"\begin{pspicture}" is present in the latex-image content.
Reply all
Reply to author
Forward
0 new messages