[pstricks] pstricks generates bug in simple program

Jean-Philippe Grivet jean-philippe.grivet at wanadoo.fr
Thu Jan 30 15:25:06 CET 2020


Le 30/01/2020 à 12:00, pstricks-request at tug.org a écrit :
> Hello,
>
> When compiling the following code (Win7, Miktek, TekMaker)
>
> \documentclass[11pt,a4paper]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[french]{babel}
> \usepackage{indentfirst,graphicx,bm}
> \usepackage{pstricks}
> \begin{document}
> \begin{center} \begin{Large}
> \textbf{Le chemostat, d'apr?s Monod}\\
> \end{Large}\end{center}
> \end{document}
> I get the followinge error message
> Latex Error missing \begin{document} see Latex manual ...
> Undefined control sequence...
> Commenting out the \usepackage{pstricks} line allows for a normal compilation. An hour ago,
> I deleted package pstricks and re-installed it from the Miktex repository with no change
> in behavior.
> What should I do now ?
> Tank you for your help
> JP Grivet
>
> Dear Jean-Philippe,
>
> I tried your code on TexLive 2018 and no problem.
> Be sure there is no character before \documentclass[]{}
>
> By the way, you do not use any pstricks command in your example!
>
> Best regards,
> Patrice

Dear Patrice,

Thank you for your interest. I retyped the whole program, with exactly 
the same result. I now attach the log file. This code is a minimal 
excerpt fro a longer program that used to work well before I had the 
poor idea of updating Latex.

JP Grivet

-------------- next part --------------
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit) (preloaded format=latex 2020.1.29)  30 JAN 2020 15:22
entering extended mode
**./ess1.tex
(ess1.tex
LaTeX2e <2019-10-01> patch level 3
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\size11.clo"
File: size11.clo 2019/10/25 v1.4k Standard LaTeX file (size option)
)
\c at part=\count80
\c at section=\count81
\c at subsection=\count82
\c at subsubsection=\count83
\c at paragraph=\count84
\c at subparagraph=\count85
\c at figure=\count86
\c at table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\inputenc.sty
"
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc at prehook=\toks14
\inpenc at posthook=\toks15
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\fontenc.sty"
Package: fontenc 2018/08/11 v2.0j Standard LaTeX package
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\t1enc.def"
File: t1enc.def 2018/08/11 v2.0j Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 48.
)) ("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\babel.
sty"
Package: babel 2020/01/15 3.38 The Babel package

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\switch.de
f"
File: switch.def 2020/01/15 3.38 Babel switching mechanism
)
*************************************
* Local config file bblopts.cfg used
*
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/latex/arabi\bblopts.cfg
File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of
 babel
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel-french\fr
ench.ldf"
Language: french 2019/09/07 v3.5f French support from the babel system

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\babel.def
"
File: babel.def 2020/01/15 3.38 Babel common definitions
\babel at savecnt=\count88
\U at D=\dimen103

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\txtbabel.
def")
\bbl at readstream=\read1
\bbl at dirlevel=\count89
)
Package babel Info: \l at acadian = using hyphenrules for french
(babel)             (\language1) on input line 91.
Package babel Info: \l at canadien = using hyphenrules for french
(babel)             (\language1) on input line 92.
\FB at nonchar=\count90
Package babel Info: Making : an active character on input line 419.
Package babel Info: Making ; an active character on input line 420.
Package babel Info: Making ! an active character on input line 421.
Package babel Info: Making ? an active character on input line 422.
\FBguill at level=\count91
\FBold at everypar=\toks16
\FB at Mht=\dimen104
\mc at charclass=\count92
\mc at charfam=\count93
\mc at charslot=\count94
\std at mcc=\count95
\dec at mcc=\count96
\c at FBcaption@count=\count97
\listindentFB=\dimen105
\descindentFB=\dimen106
\labelindentFB=\dimen107
\labelwidthFB=\dimen108
\leftmarginFB=\dimen109
\parindentFFN=\dimen110
\FBfnindent=\dimen111
))
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/carlisle\scalefnt
.sty")
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.s
ty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV at toks@=\toks17
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/tools\indentfirst
.sty"
Package: indentfirst 1995/11/23 v1.03 Indent first paragraph (DPC)
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphicx
.sty"
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphics
.sty"
Package: graphics 2019/11/01 v1.3d Standard LaTeX Graphics (DPC,SPQR)

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\trig.sty
"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\grap
hics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: dvips.def on input line 105.

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-def\dvip
s.def"
File: dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips
))
\Gin at req@height=\dimen112
\Gin at req@width=\dimen113
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/tools\bm.sty"
Package: bm 2019/07/24 v1.2d Bold Symbol Support (DPC/FMi)
\symboldoperators=\mathgroup4
\symboldletters=\mathgroup5
\symboldsymbols=\mathgroup6
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 141.
LaTeX Info: Redefining \bm on input line 209.
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pstricks\pstricks
.sty"
Package: pstricks 2018/12/21 v0.69 LaTeX wrapper for `PSTricks' (RN,HV)
 (C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/latex/iftex\iftex.sty
Package: iftex 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, 
and LuaTeX
)
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/tools\shellesc.st
y"
Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX
Package shellesc Info: Restricted shell escape enabled on input line 77.
) (C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/latex/xcolor\xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\colo
r.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: dvips.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
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:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/xkeyval\pst-xke
y.tex"
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/latex/xkeyval\xkeyval.s
ty"
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/xkeyval\xkeyval
.tex"
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/xkeyval\xkvutil
s.tex"
\XKV at toks=\toks18
\XKV at tempa@toks=\toks19
)
\XKV at depth=\count98
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pstricks\pstric
ks.tex"
("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pstricks\pst-fp
.tex" `pst-fp' v0.05, 2010/01/17 (hv)
\pstFP at xs=\count99
\pstFP at xia=\count100
\pstFP at xib=\count101
\pstFP at xfa=\count102
\pstFP at xfb=\count103
\pstFP at rega=\count104
\pstFP at regb=\count105
\pstFP at regs=\count106
\pstFP at times=\count107
)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgfutil-c
ommon.tex
\pgfutil at everybye=\toks20
\pgfutil at tempdima=\dimen114
\pgfutil at tempdimb=\dimen115

(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgfutil-c
ommon-lists.tex))
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgfkeys.c
ode.tex
\pgfkeys at pathtoks=\toks21
\pgfkeys at temptoks=\toks22

(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgfkeysfi
ltered.code.tex
\pgfkeys at tmptoks=\toks23
))
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgffor.co
de.tex
Loading [

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.10 \ProvidesPackageRCS[v
                          \pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf...

You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

! Undefined control sequence.
l.10 \ProvidesPackageRCS[v\pgfversion
                                     ] $Header: /cvsroot/pgf/pgf/generic/pgf...
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.

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <10.95> on input line 10.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 10.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 10.

Overfull \hbox (94.49686pt too wide) in paragraph at lines 10--11
[]\T1/cmr/m/n/10.95 v] $\OML/cmm/m/it/10.95 Header \OT1/cmr/m/n/10.95 : \OML/cm
m/m/it/10.95 =cvsroot=pgf=pgf=generic=pgf=utilities=pgffor:code:tex; v\OT1/cmr/
m/n/10.95 1\OML/cmm/m/it/10.95 :\OT1/cmr/m/n/10.95 252013\OML/cmm/m/it/10.95 =\
OT1/cmr/m/n/10.95 12\OML/cmm/m/it/10.95 =\OT1/cmr/m/n/10.95 1311 :
 []


(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmath.code.t
ex
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathcalc.co
de.tex
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathutil.co
de.tex
\pgf at x=\dimen116
\pgf at xa=\dimen117
\pgf at xb=\dimen118
\pgf at xc=\dimen119
\pgf at y=\dimen120
\pgf at ya=\dimen121
\pgf at yb=\dimen122
\pgf at yc=\dimen123
\c at pgf@counta=\count108
\c at pgf@countb=\count109
\c at pgf@countc=\count110
\c at pgf@countd=\count111
\pgfutil at tempcnta=\count112
\pgfutil at tempcntb=\count113
)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathparser.
code.tex
\pgfmath at dimen=\dimen124
\pgfmath at count=\count114
\pgfmath at box=\box27
\pgfmath at toks=\toks24
\pgfmath at stack@operand=\toks25
\pgfmath at stack@operation=\toks26
)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.code.tex
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.basic.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.trigonometric.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.random.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.comparison.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.base.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.round.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.misc.code.tex)
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfunctio
ns.integerarithmetics.code.tex)))
(C:\Users\grivet\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/math\pgfmathfloat.c
ode.tex
\c at pgfmathroundto@lastzeros=\count115
))
\pgffor at iter=\dimen125
\pgffor at skip=\dimen126
\pgffor at stack=\toks27
\pgffor at toks=\toks28
)
\psLoopIndex=\count116

`PSTricks' v2.97  <2019/05/11> (tvz,hv)
\pst at dima=\dimen127
\pst at dimb=\dimen128
\pst at dimc=\dimen129
\pst at dimd=\dimen130
\pst at dimg=\dimen131
\pst at dimh=\dimen132
\pst at dimm=\dimen133
\pst at dimn=\dimen134
\pst at dimo=\dimen135
\pst at dimp=\dimen136
\pst at hbox=\box28
\pst at ibox=\box29
\pst at boxg=\box30
\pst at cnta=\count117
\pst at cntb=\count118
\pst at cntc=\count119
\pst at cntd=\count120
\pst at cntg=\count121
\pst at cnth=\count122
\pst at cntm=\count123
\pst at cntn=\count124
\pst at cnto=\count125
\pst at cntp=\count126
\@zero=\count127
\pst at toks=\toks29

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pstricks\pstric
ks.con")
\psunit=\dimen137
\psxunit=\dimen138
\psyunit=\dimen139
\pst at C@@rType=\count128
\pslinewidth=\dimen140
\psk at startLW=\dimen141
\psk at endLW=\dimen142
\pst at customdefs=\toks30
\pslinearc=\dimen143
\pst at symbolStep=\dimen144
\pst at symbolWidth=\dimen145
\pst at symbolLinewidth=\dimen146
\everypsbox=\toks31
\psframesep=\dimen147
\pslabelsep=\dimen148
\sh at wgridXunit=\dimen149
\sh at wgridYunit=\dimen150
\pst at shift=\dimen151
)
File: pstricks.tex 2019/05/11 v2.97 `PSTricks' (tvz,hv)

("C:\Users\grivet\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pstricks\pst-fp
.tex")
File: pst-fp.tex 2019/05/11 v2.97 `PST-fp' (hv)
) (ess1.aux)
\openout1 = `ess1.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Info: Redefining \degres on input line 14.
LaTeX Info: Redefining \dots on input line 14.
LaTeX Info: Redefining \up on input line 14.
 [1

] (ess1.aux) ) 
Here is how much of TeX's memory you used:
 9342 strings out of 494316
 163520 string characters out of 3170440
 234090 words of memory out of 3000000
 13376 multiletter control sequences out of 15000+200000
 11461 words of font info for 35 fonts, out of 3000000 for 9000
 36 hyphenation exceptions out of 8191
 38i,5n,45p,387b,425s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on ess1.dvi (1 page, 1104 bytes).


More information about the PSTricks mailing list.