Problème PsTricks après màj de MikTeX

Tout ce qui concerne le langage TeX/LaTeX et ses variantes. Ce langage est utilisable sur le forum via les balises tex.
[participation réservée aux membres inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
ezize
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 104
Inscription : samedi 05 août 2006, 13:01

Problème PsTricks après màj de MikTeX

Message non lu par ezize »

Bonjour,

J'ai un fichier qui se compile correctement mais après avoir mis à jour MikTeX (la version portable, via la console), j'ai eu l'erreur suivante :

Code : Tout sélectionner

! Undefined control sequence.
l.2136 \pstGSfontsfalse
                       
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
En commentant les : \usepackage{pstricks}, \usepackage{pstricks-xxx} et \usepackage{pst-xxx}, la compilation se passe sans erreur... D'où vient-il le problème et comment le résoudre ? Merci bien !
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2664
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: Problème PsTricks après màj de MikTeX

Message non lu par gigiair »

Ce serait un miracle si quelqu'un pouvait répondre avec si peu d'éléments.
Il faudrait compiler ce code

Code : Tout sélectionner

\documentclass{article}
\usepackage{pstricks}
\listfiles{}
\begin{document}
\begin{pspicture}(1,1)
  \psline(0,0)(1,1)
\end{pspicture}
\end{document}
Puis lire le fichier log.
Si la cause de l'erreur n'est pas clairement décrite, et s'il n'y a pas d'instructions dans le fichier log qui permettent de compiler sans erreurs le poster ici.
Si ce code compile, poster ici le log complet du document en erreur.
Edit :
Il y a eu ce jour une mise à jour de pstricks-base et une de pst-tools. Il serait sans doute judicieux de les installer.
JJR.
LaTeXien migrateur.
ezize
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 104
Inscription : samedi 05 août 2006, 13:01

Re: Problème PsTricks après màj de MikTeX

Message non lu par ezize »

Merci de m'avoir répondu... Je pensais que les lignes que j'ai données étaient suffisantes car le fichier log est très long ! Désolé.

En compilant (avec latex puis pdflatex) le code précédent, j'ai eu la même erreur et voici le fichier log obtenu :

Code : Tout sélectionner

LOG FILE :
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8 32-bit Portable) (preloaded format=pdflatex 2021.9.26) 26 SEP 2021 20:14
entering extended mode
**./test2.tex
(test2.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-08-27>
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/base\article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/base\size10.clo
File: size10.clo 2021/02/12 v1.4n Standard LaTeX file (size option)
)
\c@part=\count182
\c@section=\count183
\c@subsection=\count184
\c@subsubsection=\count185
\c@paragraph=\count186
\c@subparagraph=\count187
\c@figure=\count188
\c@table=\count189
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/perso\pstricks.sty
Package: pstricks 2020/06/11 v0.70 LaTeX wrapper for `PSTricks' (RN,HV)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/iftex\iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/xcolor\xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/graphics-cfg\color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/graphics-def\pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
) (C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/xkeyval\pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/xkeyval\xkeyval.sty
Package: xkeyval 2020/11/20 v2.8 package option processing (HA)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/xkeyval\xkeyval.tex
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/xkeyval\xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/xkeyval\keyval.tex))
\XKV@depth=\count190
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pstricks\pstricks.tex
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pstricks\pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv)
\pstFP@xs=\count191
\pstFP@xia=\count192
\pstFP@xib=\count193
\pstFP@xfa=\count194
\pstFP@xfb=\count195
\pstFP@rega=\count196
\pstFP@regb=\count197
\pstFP@regs=\count198
\pstFP@times=\count199
)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/utilities\pgfutil-
common.tex
\pgfutil@everybye=\toks18
\pgfutil@tempdima=\dimen139
\pgfutil@tempdimb=\dimen140
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/utilities\pgfutil-
common-lists.tex))
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/utilities\pgfkeys.
code.tex
\pgfkeys@pathtoks=\toks19
\pgfkeys@temptoks=\toks20
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/utilities\pgfkeysf
iltered.code.tex
\pgfkeys@tmptoks=\toks21
))
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/utilities\pgffor.c
ode.tex
Loading pgffor.code.tex
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmath.code.
tex
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathcalc.c
ode.tex
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathutil.c
ode.tex
\pgf@x=\dimen141
\pgf@xa=\dimen142
\pgf@xb=\dimen143
\pgf@xc=\dimen144
\pgf@y=\dimen145
\pgf@ya=\dimen146
\pgf@yb=\dimen147
\pgf@yc=\dimen148
\c@pgf@counta=\count266
\c@pgf@countb=\count267
\c@pgf@countc=\count268
\c@pgf@countd=\count269
\pgfutil@tempcnta=\count270
\pgfutil@tempcntb=\count271
)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathparser
.code.tex
\pgfmath@dimen=\dimen149
\pgfmath@count=\count272
\pgfmath@box=\box50
\pgfmath@toks=\toks22
\pgfmath@stack@operand=\toks23
\pgfmath@stack@operation=\toks24
)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.code.tex
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.basic.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.trigonometric.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.random.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.comparison.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.base.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.round.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.misc.code.tex)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfuncti
ons.integerarithmetics.code.tex)))
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pgf/math\pgfmathfloat.
code.tex
\c@pgfmathroundto@lastzeros=\count273
))
\pgffor@iter=\dimen150
\pgffor@skip=\dimen151
\pgffor@stack=\toks25
\pgffor@toks=\toks26
)
\psLoopIndex=\count274
`PSTricks' v3.08 <2021/09/10> (tvz,hv)
\pst@dima=\dimen152
\pst@dimb=\dimen153
\pst@dimc=\dimen154
\pst@dimd=\dimen155
\pst@dimg=\dimen156
\pst@dimh=\dimen157
\pst@dimm=\dimen158
\pst@dimn=\dimen159
\pst@dimo=\dimen160
\pst@dimp=\dimen161
\pst@hbox=\box51
\pst@ibox=\box52
\pst@boxg=\box53
\pst@cnta=\count275
\pst@cntb=\count276
\pst@cntc=\count277
\pst@cntd=\count278
\pst@cntg=\count279
\pst@cnth=\count280
\pst@cntm=\count281
\pst@cntn=\count282
\pst@cnto=\count283
\pst@cntp=\count284
\@zero=\count285
\pst@toks=\toks27
--- We are running latex or xelatex ---
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pstricks\pstricks.con)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pstricks\pstricks-colo
r.tex)
\psunit=\dimen162
\psxunit=\dimen163
\psyunit=\dimen164
\pst@C@@rType=\count286
\pslinewidth=\dimen165
\psk@startLW=\dimen166
\psk@endLW=\dimen167
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pstricks\pstricks-arro
ws.tex
\pshooklength=\dimen168
\pshookwidth=\dimen169
)
\pst@customdefs=\toks28
! Undefined control sequence.
l.2136 \pstGSfontsfalse
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.2196 \ifpstGSfonts
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Extra \else.
l.2206 \else
I'm ignoring this; it doesn't match any \if.
\pslinearc=\dimen170
\pst@symbolStep=\dimen171
\pst@symbolWidth=\dimen172
\pst@symbolLinewidth=\dimen173
Test lualatex
Test false
\everypsbox=\toks29
\psframesep=\dimen174
\pslabelsep=\dimen175
\sh@wgridXunit=\dimen176
\sh@wgridYunit=\dimen177
\pst@shift=\dimen178
)
File: pstricks.tex 2021/09/10 v3.08 `PSTricks' (tvz,hv)
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/generic/pstricks\pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
File: pst-fp.tex 2020/11/20 v0.06 `PST-fp' (hv)
)
! Extra \fi.
<argument> ...op@@ }\expandafter \@firstofone \fi
l.3 \listfiles
{}
I'm ignoring this; it doesn't match any \if.
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/latex/l3backend\l3backend-pdft
ex.def
File: l3backend-pdftex.def 2021-08-04 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count287
\l__pdf_internal_box=\box54
) (test2.aux)
\openout1 = `test2.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
(C:\-LaTeXLyXPortable-\Miktex\texmfs\install\tex/context/base/mkii\supp-pdf.mki
i
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count288
\scratchdimen=\dimen179
\scratchbox=\box55
\nofMPsegments=\count289
\nofMParguments=\count290
\everyMPshowfont=\toks30
\MPscratchCnt=\count291
\MPscratchDim=\dimen180
\MPnumerator=\count292
\makeMPintoPDFobject=\count293
\everyMPtoPDFconversion=\toks31
)
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.6 \psline(
0,0)(1,1)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
l.6 \psline(
0,0)(1,1)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\c@lor@to@ps ->\PSTricks
_Not_Configured_For_This_Format
l.7 \end
{pspicture}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
l.7 \end
{pspicture}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
[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> 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:0.8 setlinewidth 0 setgray
Non-PDF special ignored!
<special> " tx@Dict begin STP newpath /ArrowA { moveto } def /ArrowB { } d...
{C:/-LaTeXLyXPortable-/Miktex/texmfs/data/pdftex/config/pdftex.map}] (test2.aux
)
*File List*
article.cls 2021/02/12 v1.4n Standard LaTeX document class
size10.clo 2021/02/12 v1.4n Standard LaTeX file (size option)
pstricks.sty 2020/06/11 v0.70 LaTeX wrapper for `PSTricks' (RN,HV)
iftex.sty 2020/03/06 v1.0d TeX engine tests
xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
color.cfg 2016/01/02 v1.6 sample color configuration
pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2020/11/20 v2.8 package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
pstricks.tex 2021/09/10 v3.08 `PSTricks' (tvz,hv)
pst-fp.tex 2020/11/20 v0.06 `PST-fp' (hv)
l3backend-pdftex.def 2021-08-04 L3 backend support: PDF output (pdfTeX)
supp-pdf.mkii
***********
)
Here is how much of TeX's memory you used:
8190 strings out of 478927
151139 string characters out of 2852991
440612 words of memory out of 3000000
26010 multiletter control sequences out of 15000+600000
403430 words of font info for 27 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
50i,5n,61p,401b,127s stack positions out of 5000i,500n,10000p,200000b,80000s
<C:/-LaTeXLyXPortable-/Miktex/texmfs/install/fonts/type1/public/amsfonts/cm/c
mr10.pfb>
Output written on test2.pdf (1 page, 9264 bytes).
PDF statistics:
11 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
Sinon, j'ai mis à jour le package "pst-tools". Par contre, je n'ai pas le package "pstricks-base" et je n'ai pas réussi à le trouver sur le net...

Merci pour toute aide !
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2664
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: Problème PsTricks après màj de MikTeX

Message non lu par gigiair »

Code : Tout sélectionner

This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8 32-bit Portable) (preloaded format=pdflatex 2021.9.26) 26 SEP 2021 20:14
(preloaded format=pdflatex ) signifie que la compilation a été lancée avec pdflatex, avec lequel pstricks est incompatible.
Il faut lancer la compilation avec latex, par exemple en ligne de commande

Code : Tout sélectionner

latex test2.tex
ou configurer ton environnement de compilation pour que ce soit cette commande qui soit lancée et non pdflatex.

Si tu était un utilisateur de AUCTeX/Emacs, tu n'aurais pas ce souci, AUCTeX à partir de la version 12.3 se configure automatiquement pour traiter les fichiers contenant pstricks dans la liste des packages chargés sans qu'i n'y aie besoin de la moindre intervention de l'utilisateur..
JJR.
LaTeXien migrateur.