[OS X TeX] tex4ht question

Herbert Schulz herbs at wideopenwest.com
Sun May 23 11:14:00 EDT 2010


On May 21, 2010, at 9:15 AM, Adam M. Goldstein wrote:

> I can't get tex4ht to succeed on the command line; SimpleTex4ht works, though.
> 
> Here is the file:
> 
>> \documentclass{article}
>> \begin{document}
>> Hi! Joy to the World!
>> \end{document}
> 
> Not surprisingly, the file compiles correctly (using LaTeX, not pdfLaTeX). But:
> 
>> zsh-% tex4ht joy.tex
>> ----------------------------
>> tex4ht.c (2007-04-21-21:07 kpathsea)
>> tex4ht joy.tex 
>> --- warning --- Can't find/open file `tex4ht.env | .tex4ht'
>> [1]    6518 bus error  tex4ht joy.tex
>> zsh-%
>> 
> 
> Any ideas? My first thought was that something isn't in the right path. 
> 
> I am using TL2009, older MacBook Pro, Snow Leopard.
> 
> Thanks for considering my question!
> 
> 

Howdy,

Here's the results of running htlatex on your file (called test.tex on my system):

$ htlatex test.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, assamese, bengali, gujarati, hindi, kannada
, malayalam, marathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, i
rish, italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, b
okmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slova
k, slovenian, spanish, swedish, turkish, turkmen, ukenglish, ukrainian, upperso
rbian, welsh, loaded.
(./test.tex (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.sty)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.sty
--- needs --- tex4ht test ---
(./test.tmp)
l.1437 --- TeX4ht warning --- No file test.xref ---
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/latex.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/fontmath.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/article.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
No file test.aux.
[1] (./test.aux) )
Output written on test.dvi (1 page, 9512 bytes).
Transcript written on test.log.
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, assamese, bengali, gujarati, hindi, kannada
, malayalam, marathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, i
rish, italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, b
okmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slova
k, slovenian, spanish, swedish, turkish, turkmen, ukenglish, ukrainian, upperso
rbian, welsh, loaded.
(./test.tex (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.sty)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.sty
--- needs --- tex4ht test ---
(./test.tmp) (./test.xref)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/latex.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/fontmath.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/article.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./test.aux) [1] (./test.aux) )
Output written on test.dvi (1 page, 9512 bytes).
Transcript written on test.log.
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, assamese, bengali, gujarati, hindi, kannada
, malayalam, marathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, i
rish, italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, b
okmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slova
k, slovenian, spanish, swedish, turkish, turkmen, ukenglish, ukrainian, upperso
rbian, welsh, loaded.
(./test.tex (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.sty)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/tex4ht.sty
--- needs --- tex4ht test ---
(./test.tmp) (./test.xref)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/latex.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/fontmath.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/article.4ht
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2009/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./test.aux) [1] (./test.aux) )
Output written on test.dvi (1 page, 9512 bytes).
Transcript written on test.log.
----------------------------
tex4ht.c (2009-01-31-07:33 kpathsea)
tex4ht -f/test.tex 
  -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/ 
(/usr/local/texlive/2009/texmf-dist/tex4ht/base/unix/tex4ht.env)
(/usr/local/texlive/2009/texmf-dist/tex4ht/ht-fonts/iso8859/1/charset/unicode.4hf)
(/usr/local/texlive/2009/texmf-dist/fonts/tfm/public/cm/cmr10.tfm)
(/usr/local/texlive/2009/texmf-dist/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr10.htf'
(/usr/local/texlive/2009/texmf-dist/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
[1 file test.html
 file test.css
 file test.tmp
]
Execute script `test.lg'
----------------------------
t4ht.c (2009-01-31-07:34 kpathsea)
t4ht -f/test.tex 
(/usr/local/texlive/2009/texmf-dist/tex4ht/base/unix/tex4ht.env)
Entering test.lg
Entering test.css
Entering test.tmp

So all went well. As noted above I've got a tex4ht.env in /usr/local/texlive/2009/texmf-dist/tex4ht/base/unix/.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list