<html><body>
<p>I have been unable to get the following source to compile with htlatex.   I am using MiKTeX 2.7 on a Windows 2000 PC.<br>
<br>
<font color="#0000FF" face="Courier New">\documentclass{article}</font><br>
<font color="#0000FF" face="Courier New">\usepackage{pstricks}</font><br>
<font color="#0000FF" face="Courier New">\begin{document}</font><br>
<br>
<font color="#0000FF" face="Courier New">\begin{pspicture}(4,5)</font><br>
<font color="#0000FF" face="Courier New">  \psgrid</font><br>
<font color="#0000FF" face="Courier New">\end{pspicture}</font><br>
<br>
<font color="#0000FF" face="Courier New">\end{document}</font><br>
<br>
I use the command line<br>
 htlatex tt <br>
(above code is in tt.tex)<br>
I keep getting the following error <br>
<br>
<b><font face="Courier New">! Undefined control sequence.</font></b><br>
<b><font face="Courier New">\endpspicture ...e \global \pst@shift =\psk@shift </font></b><br>
<b><font face="Courier New">                                                  \endgroup \egroup \ifdim \...</font></b><br>
<b><font face="Courier New">l.9 \end{pspicture}</font></b><br>
<font face="Courier New">   </font><br>
<br>
even after applying patches from<br>
<a href="http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html#bugfixes2.html">http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html#bugfixes2.html</a><br>
and using the htlatex.bat script file.<br>
<br>
<br>
Here is the log file <br>
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<br>
entering extended mode<br>
**\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx\HCode\def\HCod<br>
e##1{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g<br>
@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\doc<br>
umentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname te<br>
x4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HC<br>
ode}{\documentstyle[tex4ht]}}}\makeatother\HCode .a.b.c.\input  tt<br>
(tt.tex (C:\usr\local\MiKTeX\tex\latex\base\article.cls<br>
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class<br>
(C:\usr\local\MiKTeX\tex\latex\base\size10.clo<br>
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)<br>
)<br>
\c@part=\count79<br>
\c@section=\count80<br>
\c@subsection=\count81<br>
\c@subsubsection=\count82<br>
\c@paragraph=\count83<br>
\c@subparagraph=\count84<br>
\c@figure=\count85<br>
\c@table=\count86<br>
\abovecaptionskip=\skip41<br>
\belowcaptionskip=\skip42<br>
\bibindent=\dimen102<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\tex4ht.sty<br>
version 2008-08-07-16:03<br>
Package: tex4ht <br>
--------------------------------------<br>
--- Note --- for _ at preamble, use the command line option `early_'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for ^ at preamble, use the command line option `early^'<br>
--------------------------------------<br>
\tmp:toks=\toks14<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\usepackage.4ht<br>
version 2008-08-07-16:09<br>
)<br>
(C:\usr\local\MiKTeX\tex\latex\pstricks\pstricks.sty<br>
Package: pstricks 2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\pstricks\pstricks.tex<br>
`PSTricks' v1.26  &lt;2008/07/31&gt; (tvz)<br>
\pst@dima=\dimen103<br>
\pst@dimb=\dimen104<br>
\pst@dimc=\dimen105<br>
\pst@dimd=\dimen106<br>
\pst@dimg=\dimen107<br>
\pst@dimh=\dimen108<br>
\pst@hbox=\box26<br>
\pst@boxg=\box27<br>
\pst@cnta=\count87<br>
\pst@cntb=\count88<br>
\pst@cntc=\count89<br>
\pst@cntd=\count90<br>
\pst@cntg=\count91<br>
\pst@cnth=\count92<br>
\pst@toks=\toks15<br>
(C:\usr\local\MiKTeX\tex\generic\pstricks\pstricks.con)<br>
\psunit=\dimen109<br>
\psxunit=\dimen110<br>
\psyunit=\dimen111<br>
\pslinewidth=\dimen112<br>
\pst@customdefs=\toks16<br>
\pslinearc=\dimen113<br>
\everypsbox=\toks17<br>
\psframesep=\dimen114<br>
\pslabelsep=\dimen115<br>
\pst@shift=\dimen116<br>
\theoverlaybox=\box28<br>
)<br>
File: pstricks.tex 2008/07/31 v1.26 `PSTricks' (tvz)<br>
<br>
(C:\usr\local\MiKTeX\tex\latex\xcolor\xcolor.sty<br>
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)<br>
<br>
(C:\usr\local\MiKTeX\tex\latex\00miktex\color.cfg<br>
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive<br>
)<br>
Package xcolor Info: Package option `override' ignored on input line 216.<br>
Package xcolor Info: Driver file: dvips.def on input line 225.<br>
<br>
(C:\usr\local\MiKTeX\tex\latex\graphics\dvips.def<br>
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)<br>
)<br>
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.<br>
Package xcolor Info: Model `RGB' extended on input line 1353.<br>
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.<br>
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.<br>
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.<br>
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.<br>
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.<br>
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\tex4ht.4ht<br>
version 2008-06-23-09:47<br>
--------------------------------------<br>
--- Note --- for additional information, use the command line option `info'<br>
--------------------------------------<br>
<br>
::::::::::::::::::::::::::::::::::::::::::<br>
 TeX4ht info is available in the log file <br>
::::::::::::::::::::::::::::::::::::::::::<br>
) (C:\usr\local\MiKTeX\tex\generic\tex4ht\tex4ht.sty<br>
version 2008-08-07-16:03<br>
<br>
--- needs --- tex4ht tt ---<br>
\tmp:cnt=\count93<br>
(tt.tmp)<br>
\tmp:dim=\skip43<br>
--------------------------------------<br>
--- Note --- for XML code, use the command line option `xml' or `xhtml'<br>
--------------------------------------<br>
 (tt.xref)<br>
\:refout=\write3<br>
 (C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
--------------------------------------<br>
--- Note --- to remove the DOCTYPE declaration use the command line option `no-<br>
DOCTYPE'<br>
--------------------------------------<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
)<br>
--------------------------------------<br>
--- Note --- for marking of the base font, use the command line option `fonts+'<br>
<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for non active _, use the command line option `no_'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for _ of catcode 13, use the command line option `_13'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for non active ^, use the command line option `no^'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for ^ of catcode 13, use the command line option `^13'<br>
--------------------------------------<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
--------------------------------------<br>
--- Note --- for alternative charset, use the command line option `charset=...'<br>
<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- to ignore CSS font decoration, use the `NoFonts' command line opti<br>
on<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for jpg bitmaps of pictures, use the `jpg' command line option. (C<br>
haracter bitmaps are controled only by `g' records of tex4ht.env and `-g' switc<br>
hes of tex4ht.c) <br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for gif bitmaps of pictures, use the `gif' command line option. (C<br>
haracter bitmaps are controled only by `g' records of tex4ht.env and `-g' switc<br>
hes of tex4ht.c) <br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for content and toc in 2 frames, use the command line option `fram<br>
es'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for content, toc, and footnotes in 3 frames, use the command line <br>
option `frames-fn'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for file extension name xht, use the command line option `xht'<br>
--------------------------------------<br>
TeX4ht package options: html<br>
--------------------------------------<br>
--- Note --- to ignore CSS code, use the command line option `-css<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for inline CSS code, use the command line option `css-in'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for pop ups on mouse over, use the command line option `mouseover'<br>
<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for addressing images in a subdirectory, use the command line opti<br>
on `imgdir:.../'<br>
--------------------------------------<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
)<br>
\:tokwrite=\toks18<br>
\:tokpage=\toks19<br>
--------------------------------------<br>
--- Note --- for back links to toc, use the command line option `sections+'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for linear crosslinks of pages, use the command line option `next'<br>
<br>
--------------------------------------<br>
\:tocout=\write4<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\latex.4ht<br>
version 2008-08-07-16:09<br>
--------------------------------------<br>
--- Note --- for links into captions, instead of float heads, use the command l<br>
ine option `refcaption'<br>
--------------------------------------<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
--------------------------------------<br>
--- Note --- For mini tocs immediately aftter the header use the command line o<br>
ption `minitoc&lt;'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for enumerated list elements li's with value attributes, use the c<br>
ommand line option `li-'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for CSS2 code, use the command line option `css2'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for pictorial tabular, use the command line option `pic-tabular'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for bitmap fbox'es, use the command line option `pic-fbox'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for bitmap framebox'es, use the command line option `pic-framebox'<br>
<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for inline footnotes use command line option `fn-in'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for tracing of latex font commands, use the command line option `f<br>
onts'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for width specifications of tabular p entries, use the `p-width' c<br>
ommand line option or a configuration similar to \Configure{HColWidth}{\HCode{ <br>
style=&quot;width:\HColWidth&quot;}}<br>
--------------------------------------<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
--------------------------------------<br>
--- Note --- for pictorial eqnarray, use the command line option `pic-eqnarray'<br>
<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for pictorial array, use the command line option `pic-array'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for pictorial $...$ environments, use the command line option `pic<br>
-m' (not recommended!!)<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for pictorial $...$ and $$...$$ environments with latex alt, use t<br>
he command line option `pic-m+' (not safe!!)<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for pictorial array, use the command line option `pic-array'<br>
--------------------------------------<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\fontmath.4ht<br>
version 2008-08-07-16:09<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\article.4ht<br>
version 2008-08-07-16:09<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
--------------------------------------<br>
--- Note --- for automatic sectioning pagination, use the command line option `<br>
1', `2', `3', '4', '5', '6', or '7'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for files named derived from section titles, use the command line <br>
option `sec-filename'<br>
--------------------------------------<br>
--------------------------------------<br>
--- Note --- for i-columns index, use the command line option `index=i' (e.g., <br>
index=2)<br>
--------------------------------------<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\pstricks.4ht<br>
version 2008-08-07-16:09<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\xcolor.4ht<br>
version 2008-08-07-16:09<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\color.4ht<br>
version 2008-08-07-16:09<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\color.4ht<br>
version 2008-08-07-16:09<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\dvips.4ht<br>
version 2008-08-07-16:09<br>
<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
))<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4.4ht<br>
version 2008-08-07-16:11<br>
)<br>
(C:\usr\local\MiKTeX\tex\generic\tex4ht\html4-math.4ht<br>
version 2008-08-07-16:11<br>
)) (tt.aux)<br>
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.<br>
LaTeX Font Info:    ... okay on input line 5.<br>
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.<br>
LaTeX Font Info:    ... okay on input line 5.<br>
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.<br>
LaTeX Font Info:    ... okay on input line 5.<br>
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.<br>
LaTeX Font Info:    ... okay on input line 5.<br>
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.<br>
LaTeX Font Info:    ... okay on input line 5.<br>
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.<br>
LaTeX Font Info:    ... okay on input line 5.<br>
--- file tt.css ---<br>
<br>
! Undefined control sequence.<br>
\endpspicture ...e \global \pst@shift =\psk@shift <br>
                                                  \endgroup \egroup \ifdim \...<br>
l.9 \end{pspicture}<br>
                   <br>
? <br>
! Emergency stop.<br>
\endpspicture ...e \global \pst@shift =\psk@shift <br>
                                                  \endgroup \egroup \ifdim \...<br>
l.9 \end{pspicture}<br>
                   <br>
End of file on the terminal!<br>
<br>
 <br>
Here is how much of TeX's memory you used:<br>
 5005 strings out of 95305<br>
 52448 string characters out of 1183350<br>
 251905 words of memory out of 1500000<br>
 8193 multiletter control sequences out of 110000<br>
 3640 words of font info for 14 fonts, out of 1200000 for 2000<br>
 14 hyphenation exceptions out of 8191<br>
 32i,1n,43p,623b,209s stack positions out of 5000i,500n,10000p,200000b,5000s<br>
No pages of output.<br>
<br>
<br>
Can you see what I may have done wrong?<br>
<br>
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.<br>
<br>
Thank you,<br>
<b><font size="2" color="#82823F" face="Times New Roman">Toby Popenfoose</font></b><font size="2" face="Times New Roman"> | Manufacturing Supervisor | </font><font size="2" color="#008000" face="Wingdings">(</font><font size="2" face="Times New Roman"> 574.267.9243 | </font><font size="2" color="#008000" face="Wingdings">*</font><font size="2" face="Times New Roman"> </font><u><font size="2" color="#0000FF" face="Arial">toby.popenfoose@rrd.com</font></u><b><font size="2" face="Times New Roman"><br>
RR Donnelley</font></b><font size="2" face="Times New Roman"> | 2801 West Old Road 30 | Warsaw, IN  46581</font></body></html>