Bonjour,
J’essaie d’utliser pstricks avec cet exemple
\documentclass[a4paper]{article}
\usepackage{pst-eucl}
\usepackage{calc}
\usepackage{pst-3dplot}%
\usepackage{pst-grad}
\usepackage{pst-plot,pst-math,pstricks-add}%
\usepackage{pst-all}
\begin{document}
\begin{pspicture}(-6,-6)(6,6)
\psline[linecolor=blue,linewidth=1.5pt](-3,1)(2,2)
\end{pspicture}
\end{document}
latex test genere bien un .dvi
mais xdvi ne montre pas la ligne bleue.
dvips genere test.ps
mais
Warning: Missing charsets in String to FontSet conversion
dvipdfm test.dvi
semble OK,
mais
il n’y a pas de ligne bleue non plus.
Où est mon erreur ?
Merci.
J’oubliai:
pdflatex test
! Undefined control sequence.
\c@lor@to@ps → \PSTricks
_Not_Configured_For_This_Format
l.13 \pslinelinecolor=blue,linewidth=1.5pt (2,2)
denis
(Denis)
Janvier 10, 2023, 2:40
3
Bonjour,
Avec la dernière distribution de TeXShop ce fichier me donne sans problème la ligne bleue.
Cordialement.
Bonjour,
Ou est mon erreur ?
Avec
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
et
xdvik version 22.87.04 (Xaw toolkit)
tout et ok. Il y a juste un
WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
avec dvipdf mais sans conséquence ici.
Cela fonctionne chez moi (sur Mac) !
pfercour
(Pfercour)
Janvier 10, 2023, 6:09
6
Bonjour
Le 10/01/2023 à 15:27, Patrick Dupre a écrit :
Bonjour,
J’essaie d’utliser pstricks avec cet example
…
Pas de problème sous Debian 11 pour avoir un rendu
de la ligne bleue oblique.
Compilation par :
TeX, Version 3.141592653 (TeX Live 2022)
Avec LaTeXila par :
latexmk -pdfps -synctex=1
le message renvoyé étant :
Overfull \hbox (11.43292pt too wide) in paragraph
0 errors, 0 warnings, 1 badbox.
xdvik m’affiche bien le .dvi avec la ligne bleue.
xdvik version 22.87.06
Avec cependant ce message :
gs: %%%% WARNING: Transparency operations ignored - need to use
-dALLOWPSTRANSPARENCY
Pas de soucis ni de message pour le pdf avec Evince,
ni pour le ps avec GV.
Philippe Armingaud
J’utilise
texlive (linux fedora)
Merci pour l’info,
Ici, j’ai
pdflatex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021)
kpathsea version 6.3.3
xdvi --version
xdvik version 22.87.04 (Xaw toolkit)
Libraries: kpathsea version 6.3.3, freetype version 2.11.1
pdflatex test
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-05-07>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/pst-eucl/pst-eucl.sty
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.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/xkeyval/keyval.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.06, 2020/11/20 (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' v3.01a <2021/03/30> (tvz,hv)
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (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
v1.42a, 2020/04/01))
(/usr/share/texlive/texmf-dist/tex/latex/pst-tools/pst-tools.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.10, 2020/03/24 (hv)))
(/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-pdftex.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse-2020-10-01.st
y (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex
))) (/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx.sty
(/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/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/pst-eucl/pst-eucl.tex
(/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-plot/pst-plot.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-tools/pst-tools.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex
(/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/multido/multido.tex
v1.42, 2010/05/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))
(/usr/share/texlive/texmf-dist/tex/generic/multido/multido.tex
v1.42, 2010/05/14 <tvz>) v1.92, 2019/05/16 (tvz,hv))
(/usr/share/texlive/texmf-dist/tex/generic/multido/multido.tex
v1.42, 2010/05/14 <tvz>) `PST-Euclide v1.75, 2020/09/29 (dr,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/pst-3dplot/pst-3dplot.sty
(/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-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/pst-plot/pst-plot.tex))
(/usr/share/texlive/texmf-dist/tex/generic/pst-3dplot/pst-3dplot.tex
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex)
(/usr/share/texlive/texmf-dist/tex/generic/multido/multido.tex
v1.42, 2010/05/14 <tvz>) `PST-3dplot' v2.06, 2020/10/25 (HV,DL)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-grad/pst-grad.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-math/pst-math.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/latex/pstricks-add/pstricks-add.sty
(/usr/share/texlive/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex))
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pst-all.sty
(/usr/share/texlive/texmf-dist/tex/latex/pst-tree/pst-tree.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-tree/pst-tree.tex
v1.13, 2017/02/18(tvz,dg,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-coil/pst-coil.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-coil/pst-coil.tex
v1.13, 2017/02/18
(/usr/share/texlive/texmf-dist/tex/generic/pst-node/pst-node.tex)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-text/pst-text.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-text/pst-text.tex
v1.01, 2018/12/22(tvz,hv)))
(/usr/share/texlive/texmf-dist/tex/latex/pst-eps/pst-eps.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-eps/pst-eps.tex
v1.00, 2006/11/04))
(/usr/share/texlive/texmf-dist/tex/latex/pst-fill/pst-fill.sty
(/usr/share/texlive/texmf-dist/tex/generic/pst-fill/pst-fill.tex
`PST-Fill' v1.01, 2007/03/10 (tvz,dg,hv)))) (./test3.aux)
(/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/siunitx/siunitx-abbreviations.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/translator/translator-basic-dictionary
-English.dict)
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.13 \psline[linecolor=blue,linewidth=1.5pt](
-3,1)(2,2)
?
Oui, c’est ce que j’ai compris !!!
Mais cela ne marche pas avec ma distribution fedora (fc36) !!!
> pdflatex --version
> pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021)
> kpathsea version 6.3.3
Il faut compiler avec latex, pas pdflatex (ou alors avec \pdfoutput=0 en
1re ligne du fichier tex) car il faut le driver dvips. L’erreur est
lisible ici
[...]
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def))
Oui, j’ai aussi essaye
Il n’y a pas d’erreur, mais
xdvi ne montre pas la ligne bleue
et retourne :
%%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
gs:
gs:
gs: Error: /undefined in .setstrokeconstantalpha
gs: Operand stack:
gs: 56.9055 56.9055 -85.3582 28.4527 1.0
gs: Execution stack:
gs: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fals
gs: e 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop
gs: 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval--
gs: %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nost
gs: ringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nos
gs: tringval--
gs: Dictionary stack:
gs: --dict:772/1123(ro)(G)-- --dict:0/20(G)-- --dict:200/200(L)-- --dict:23/
gs: 250(L)-- --dict:37/200(L)-- --dict:132/200(L)--
gs: Current allocation mode is local
gs: Last OS error: Resource temporarily unavailable
dvips focntionne sans erreur, mais gv donne
Warning: Missing charsets in String to FontSet conversion
mais toujours pas de ligne bleue
Il n’y a pas d’erreur, mais
xdvi ne montre pas la ligne bleue
et retourne:
%%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
J’ai le même warning mais l’affichage est correcte avec
xdvik version 22.87.04 (Xaw toolkit)
Libraries: kpathsea version 6.3.4/dev, freetype version 2.11.1
Oui, j’ai bien compris,
xdvik version 22.87.04 (Xaw toolkit)
Libraries: kpathsea version 6.3.3, freetype version 2.11.1
Warning: Missing charsets in String to FontSet conversion
gs:
gs:
gs: %%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
gs:
gs:
gs: Error: /undefined in .setstrokeconstantalpha
gs: Operand stack:
gs: 56.9055 56.9055 -85.3582 28.4527 1.0
gs: Execution stack:
gs: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fals
gs: e 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop
gs: 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval--
gs: %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nost
gs: ringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nos
gs: tringval--
gs: Dictionary stack:
gs: --dict:772/1123(ro)(G)-- --dict:0/20(G)-- --dict:200/200(L)-- --dict:23/
gs: 250(L)-- --dict:37/200(L)-- --dict:132/200(L)--
gs: Current allocation mode is local
gs: Last OS error: Resource temporarily unavailable
Chez moi
Avec ce code
\documentclass[a4paper]{article}
\usepackage{pst-eucl}
\usepackage{calc}
\usepackage{pst-3dplot}%
\usepackage{pst-grad}
\usepackage{pst-plot,pst-math,pstricks-add}%
\usepackage{pst-all}
%\usepackage{auto-pst-pdf}%PD
%\RequirePackage{pst-xkey}
\begin{document}
Atomic ${\rm ^{14}C}$ is mainly formed in the Earth's atmosphere
from the bombardment of nitrogen molecules by cosmic rays. Plants
fix atmospheric ${\rm CO_{2}}$ during the photosynthesis. Thus, the
level of ${\rm ^{14}C}$ in plants (and in animals that eat plants)
when they die, approximately equals the level of the isotopes in the
atmosphere at that time.
\begin{figure}
\begin{pspicture}(-6,-6)(6,6)
% \psline[linecolor=blue,linewidth=10.5pt](3,1)(2,2)
\end{pspicture}
\end{figure}
\end{document}
latex, dvips, ps2pdf
fonctionne très bien (WARNING)
Des que je décommente la ligne \psline
ps2pdf donne
Error: /undefined in .setstrokeconstantalpha
Operand stack:
56.9055 56.9055 85.3582 28.4527 1.0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:766/1123(ro)(G)-- --dict:0/20(G)-- --dict:196/200(L)-- --dict:178/300(L)-- --dict:38/200(L)-- --dict:130/200(L)--
Current allocation mode is local
Current file position is 312027
GPL Ghostscript 9.56.1: Unrecoverable error, exit code 1
Je ne vois pas ce que je peux faire de plus.
La ligne bleue n’est jamais obtenue
Et côté gs (version 9.55.0) ? Mais pas convaincu que ce soit la bonne
piste à suivre…
Peut-etre que l’erreur
Error: /undefined in .setstrokeconstantalpha
gs: Operand stack:
gs: 56.9055 56.9055 -85.3582 28.4527 1.0
gs: Execution stack:
gs: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fals
gs: e 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop
gs: 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval--
gs: %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nost
gs: ringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nos
gs: tringval--
gs: Dictionary stack:
gs: --dict:772/1123(ro)(G)-- --dict:0/20(G)-- --dict:200/200(L)-- --dict:23/
gs: 250(L)-- --dict:37/200(L)-- --dict:132/200(L)--
gs: Current allocation mode is local
gs: Last OS error: Resource temporarily unavailable
n’est pas trop un problème. gv affiche une page blanche.
dvips génère test.ps.
Mais je ne comprends toujours pas pourquoi je n’ai qu’une page blanche
Et
ps2pdf test.ps
%%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
Error: /undefined in .setstrokeconstantalpha
Operand stack:
56.9055 56.9055 -85.3582 28.4527 1.0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:766/1123(ro)(G)-- --dict:0/20(G)-- --dict:196/200(L)-- --dict:180/300(L)-- --dict:38/200(L)-- --dict:132/200(L)--
Current allocation mode is local
Current file position is 251001
GPL Ghostscript 9.56.1: Unrecoverable error, exit code 1