[OS X TeX] \ifpdf in TeX4ht?

Peter Dyballa Peter_Dyballa at Web.DE
Wed Mar 28 21:21:18 CEST 2007

Am 28.03.2007 um 18:38 schrieb Eitan Gurari:

>> Is there an option in TeX4ht which can be checked at latex runtime to
>> do something which only makes sense or is necessary with TeX4ht? I
>> just need some vertical space where TeX makes a page break ...
> How are the page breaks requested?  Those that are automatically
> created by the native tex engine are meaningless for hypertext output.

I have a longtable environment which I split for PDF output with a  
few \newpage's. In HTML the vertical space between the last row "on  
the last page" and the first row "on the next page" is not constant  
and shrinks in two cases to zero.

There is one error with an included PNG image in the end:

	Execute script `File.lg'
	t4ht.c (2006-09-13-14:28 kpathsea)
	t4ht -f/File
	Entering File.lg
	System call: if exist zzFile.ps DEL zzFile.ps >nul
	sh: -c: line 2: syntax error: unexpected end of file
	--- Warning --- System return: 512
	Entering File.css
	Entering File.tmp

When I try to view the "PostScript document text conforming at level  
2.0 - type EPS" file (from an earlier run, last year) in gv I get  
this error:

	Error: /syntaxerror in --%ztokenexec_continue--
	Operand stack:
	Execution stack:
	   %interp_exit   .runexec2   --nostringval--   --nostringval--   -- 
nostringval--   2   %stopped_push   --nostringval--   -- 
nostringval--   --nostringval--   false   1   %stopped_push   1   3    
%oparray_pop   1   3   %oparray_pop   --nostringval--   1   3   % 
oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   -- 
nostringval--   --nostringval--   2   %stopped_push   --nostringval--
	Dictionary stack:
	   --dict:1122/1686(ro)(G)--   --dict:0/20(G)--   --dict:75/200 
(L)--   --dict:100/300(L)--   --dict:43/200(L)--
	Current allocation mode is local
	Last OS error: 2
	Current file position is 8990
	AFPL Ghostscript 8.54: Unrecoverable error, exit code 1

Gv shows a blank rectangular area which correlates to the PNG image's  
size. I can't find in any file the invocation of ImageMagick's  
convert that obviously produces the faulty EPS file.

BTW, Eitan: how can I persuade htlatex to create a united HTML and  
CSS file?

At home I found by chance \ifHtml: does this fail because it's latex  
that creates the DVI file? Is it only useful when one's back- 
converting HTML?



There are two major products that come out of Berkeley: LSD and UNIX.  
We don't believe this to be a coincidence.
                                          - Jeremy S. Anderson

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the macostex-archives mailing list