[pstricks] PSTricks with tex4ht in MiKTeX 2.6 and 2.7

Toby.Popenfoose at rrd.com Toby.Popenfoose at rrd.com
Fri Aug 8 21:01:20 CEST 2008



I have been unable to get the following source to compile with htlatex.   I
am using MiKTeX 2.7 on a Windows 2000 PC.

\documentclass{article}
\usepackage{pstricks}
\begin{document}

\begin{pspicture}(4,5)
  \psgrid
\end{pspicture}

\end{document}

I use the command line
 htlatex tt
(above code is in tt.tex)
I keep getting the following error

! Undefined control sequence.
\endpspicture ...e \global \pst at shift =\psk at shift
                                                  \endgroup \egroup \ifdim
\...
l.9 \end{pspicture}


even after applying patches from
http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html#bugfixes2.html
and using the htlatex.bat script file.


Here is the log file
This is pdfTeX, Version 3.1415926-1.40.8-beta-20080627 (MiKTeX 2.7)
(preloaded format=latex 2008.8.8)  8 AUG 2008 13:50
entering extended mode
**\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx\HCode\def\HCod
e##1{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g
@addto at macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\doc
umentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
 te
x4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HC
ode}{\documentstyle[tex4ht]}}}\makeatother\HCode .a.b.c.\input  tt
(tt.tex (C:\usr\local\MiKTeX\tex\latex\base\article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(C:\usr\local\MiKTeX\tex\latex\base\size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\tex4ht.sty
version 2008-08-07-16:03
Package: tex4ht
--------------------------------------
--- Note --- for _ at preamble, use the command line option `early_'
--------------------------------------
--------------------------------------
--- Note --- for ^ at preamble, use the command line option `early^'
--------------------------------------
\tmp:toks=\toks14
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\usepackage.4ht
version 2008-08-07-16:09
)
(C:\usr\local\MiKTeX\tex\latex\pstricks\pstricks.sty
Package: pstricks 2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)

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

(C:\usr\local\MiKTeX\tex\latex\xcolor\xcolor.sty
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

(C:\usr\local\MiKTeX\tex\latex\00miktex\color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Package option `override' ignored on input line 216.
Package xcolor Info: Driver file: dvips.def on input line 225.

(C:\usr\local\MiKTeX\tex\latex\graphics\dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\tex4ht.4ht
version 2008-06-23-09:47
--------------------------------------
--- Note --- for additional information, use the command line option `info'
--------------------------------------

::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (C:\usr\local\MiKTeX\tex\generic\tex4ht\tex4ht.sty
version 2008-08-07-16:03

--- needs --- tex4ht tt ---
\tmp:cnt=\count93
(tt.tmp)
\tmp:dim=\skip43
--------------------------------------
--- Note --- for XML code, use the command line option `xml' or `xhtml'
--------------------------------------
 (tt.xref)
\:refout=\write3
 (C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
--------------------------------------
--- Note --- to remove the DOCTYPE declaration use the command line option
`no-
DOCTYPE'
--------------------------------------
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
)
--------------------------------------
--- Note --- for marking of the base font, use the command line option
`fonts+'

--------------------------------------
--------------------------------------
--- Note --- for non active _, use the command line option `no_'
--------------------------------------
--------------------------------------
--- Note --- for _ of catcode 13, use the command line option `_13'
--------------------------------------
--------------------------------------
--- Note --- for non active ^, use the command line option `no^'
--------------------------------------
--------------------------------------
--- Note --- for ^ of catcode 13, use the command line option `^13'
--------------------------------------

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
--------------------------------------
--- Note --- for alternative charset, use the command line option
`charset=...'

--------------------------------------
--------------------------------------
--- Note --- to ignore CSS font decoration, use the `NoFonts' command line
opti
on
--------------------------------------
--------------------------------------
--- Note --- for jpg bitmaps of pictures, use the `jpg' command line
option. (C
haracter bitmaps are controled only by `g' records of tex4ht.env and `-g'
switc
hes of tex4ht.c)
--------------------------------------
--------------------------------------
--- Note --- for gif bitmaps of pictures, use the `gif' command line
option. (C
haracter bitmaps are controled only by `g' records of tex4ht.env and `-g'
switc
hes of tex4ht.c)
--------------------------------------
--------------------------------------
--- Note --- for content and toc in 2 frames, use the command line option
`fram
es'
--------------------------------------
--------------------------------------
--- Note --- for content, toc, and footnotes in 3 frames, use the command
line
option `frames-fn'
--------------------------------------
--------------------------------------
--- Note --- for file extension name xht, use the command line option `xht'
--------------------------------------
TeX4ht package options: html
--------------------------------------
--- Note --- to ignore CSS code, use the command line option `-css
--------------------------------------
--------------------------------------
--- Note --- for inline CSS code, use the command line option `css-in'
--------------------------------------
--------------------------------------
--- Note --- for pop ups on mouse over, use the command line option
`mouseover'

--------------------------------------
--------------------------------------
--- Note --- for addressing images in a subdirectory, use the command line
opti
on `imgdir:.../'
--------------------------------------
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
)
\:tokwrite=\toks18
\:tokpage=\toks19
--------------------------------------
--- Note --- for back links to toc, use the command line option `sections+'
--------------------------------------
--------------------------------------
--- Note --- for linear crosslinks of pages, use the command line option
`next'

--------------------------------------
\:tocout=\write4

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\latex.4ht
version 2008-08-07-16:09
--------------------------------------
--- Note --- for links into captions, instead of float heads, use the
command l
ine option `refcaption'
--------------------------------------

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
--------------------------------------
--- Note --- For mini tocs immediately aftter the header use the command
line o
ption `minitoc<'
--------------------------------------
--------------------------------------
--- Note --- for enumerated list elements li's with value attributes, use
the c
ommand line option `li-'
--------------------------------------
--------------------------------------
--- Note --- for CSS2 code, use the command line option `css2'
--------------------------------------
--------------------------------------
--- Note --- for pictorial tabular, use the command line option
`pic-tabular'
--------------------------------------
--------------------------------------
--- Note --- for bitmap fbox'es, use the command line option `pic-fbox'
--------------------------------------
--------------------------------------
--- Note --- for bitmap framebox'es, use the command line option
`pic-framebox'

--------------------------------------
--------------------------------------
--- Note --- for inline footnotes use command line option `fn-in'
--------------------------------------
--------------------------------------
--- Note --- for tracing of latex font commands, use the command line
option `f
onts'
--------------------------------------
--------------------------------------
--- Note --- for width specifications of tabular p entries, use the
`p-width' c
ommand line option or a configuration similar to
\Configure{HColWidth}{\HCode{
style="width:\HColWidth"}}
--------------------------------------
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
--------------------------------------
--- Note --- for pictorial eqnarray, use the command line option
`pic-eqnarray'

--------------------------------------
--------------------------------------
--- Note --- for pictorial array, use the command line option `pic-array'
--------------------------------------
--------------------------------------
--- Note --- for pictorial $...$ environments, use the command line option
`pic
-m' (not recommended!!)
--------------------------------------
--------------------------------------
--- Note --- for pictorial $...$ and $$...$$ environments with latex alt,
use t
he command line option `pic-m+' (not safe!!)
--------------------------------------
--------------------------------------
--- Note --- for pictorial array, use the command line option `pic-array'
--------------------------------------
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\fontmath.4ht
version 2008-08-07-16:09

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\article.4ht
version 2008-08-07-16:09

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
--------------------------------------
--- Note --- for automatic sectioning pagination, use the command line
option `
1', `2', `3', '4', '5', '6', or '7'
--------------------------------------
--------------------------------------
--- Note --- for files named derived from section titles, use the command
line
option `sec-filename'
--------------------------------------
--------------------------------------
--- Note --- for i-columns index, use the command line option `index=i'
(e.g.,
index=2)
--------------------------------------
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\pstricks.4ht
version 2008-08-07-16:09

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\xcolor.4ht
version 2008-08-07-16:09

(C:\usr\local\MiKTeX\tex\generic\tex4ht\color.4ht
version 2008-08-07-16:09

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\color.4ht
version 2008-08-07-16:09
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\dvips.4ht
version 2008-08-07-16:09

(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
))
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht
version 2008-08-07-16:11
)
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht
version 2008-08-07-16:11
)) (tt.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
--- file tt.css ---

! Undefined control sequence.
\endpspicture ...e \global \pst at shift =\psk at shift
                                                  \endgroup \egroup \ifdim
\...
l.9 \end{pspicture}

?
! Emergency stop.
\endpspicture ...e \global \pst at shift =\psk at shift
                                                  \endgroup \egroup \ifdim
\...
l.9 \end{pspicture}

End of file on the terminal!


Here is how much of TeX's memory you used:
 5005 strings out of 95305
 52448 string characters out of 1183350
 251905 words of memory out of 1500000
 8193 multiletter control sequences out of 110000
 3640 words of font info for 14 fonts, out of 1200000 for 2000
 14 hyphenation exceptions out of 8191
 32i,1n,43p,623b,209s stack positions out of
5000i,500n,10000p,200000b,5000s
No pages of output.


Can you see what I may have done wrong?

I had the problem with MiKTeX 2.6 so I uninstalled and am getting the same
error with 2.7 so I tried the patches with no success.

Thank you,
Toby Popenfoose | Manufacturing Supervisor | ( 574.267.9243 | *
toby.popenfoose at rrd.com
RR Donnelley | 2801 West Old Road 30 | Warsaw, IN  46581
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080808/a238c11a/attachment.html 


More information about the PSTricks mailing list