[tex4ht] Choice of LaTeX -> *ml method for all browsers?

Beuthe, Thomas beuthet at aecl.ca
Tue Aug 24 16:42:50 CEST 2010



(Please find enclosed a zip file containing the contents of an
"example" directory that contains the files and runs I will be referring to.)

Thanks for answering.

I also had no real explanation for why TeX4ht would not be producing the
images of the math, so I went looking for an example.

I found one, and I am including it under the directory "Original".
This example was obviously run on *nix, not windows.

I then took the .tex file and ran it again myself, on several Windows systems,
including Windows XP, Windows XP X64 and Windows 7 64-bit version.
You can see the results of the XP X64 version in the directory marked My_version.

The .log and .lg files match perfectly between the two different runs.
From what I can see, my run seems to indicate that it is creating the appropriate .png files,
but they never seem to show up in my directory.

I tried copying in the .png files from the original run
as a test and then everything displays perfectly,
so the hooks all seem to be in the right places in the html file I created.

I have no idea why TeX4ht is erasing(?) the png files, but it looks like it is.
I took the step of copying the messages produced from the actual run, and included them
in the on_sceen.txt file in the upper level "example" directory.
If you look in there, you will see that there are commands that say things like:

System call: if exist tex4httest0x.png DEL tex4httest0x.png >nul

...for example in the following sequence:

t4ht.c (2009-01-31-07:34 kpathsea)
t4ht tex4httest
Entering tex4httest.lg
System call: if exist zztex4httest.ps DEL zztex4httest.ps >nul
System return: 0
System call: if exist tex4httest0x.png DEL tex4httest0x.png >nul
System return: 0
System call: dvips -E -Ppdf -mode ibmvga -D 110 -f tex4httest.idv -pp 1 > zztex4httest.ps
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com)
' TeX output 2010.08.23:2154' ->
System return: 0

Strange.  Now if I search the entire TeXLive 2009 directory files for
the key "if exist", I find only one instance that might be connected to
TeX4ht in the file:


perhaps a misguided 

 Gif exist %%3 DEL %%3 >nul

or something?

Before I get too far into the tex4ht.env file,
I figure you probably are more familiar with it than I am,
so I included it for your inspection in the upper level "example" directory.
Is there something that's messing up in there that is
causing it to erase my .png files?

Or is the use of "convert", being confused with the dos command:

C:\>help convert
Converts FAT volumes to NTFS.

CONVERT volume /FS:NTFS [/V] [/CvtArea:filename] [/NoSecurity] [/X]

  volume      Specifies the drive letter (followed by a colon),
              mount point, or volume name.
  /FS:NTFS    Specifies that the volume is to be converted to NTFS.
  /V          Specifies that Convert should be run in verbose mode.
              Specifies a contiguous file in the root directory to be
              the place holder for NTFS system files.
  /NoSecurity Specifies the converted files and directories security
              settings to be accessible by everyone.
  /X          Forces the volume to dismount first if necessary.
              All opened handles to the volume would then be invalid.


That is mistakenly being used?
If I include the next few lines in the screen output after what I included above,
it looks like this:

System call: convert -trim +repage -density 110x110 -transparent "#FFFFFF" zztex4httest.ps tex4httest0x.png
Invalid Parameter - "+repage"
--- Warning --- System return: 4

Is this supposed to happen?:

Invalid Parameter - "+repage"

I'm at a loss, but I'm hoping you can help me further...


-----Original Message-----
From: Karl Berry [mailto:karl at freefriends.org] 
Sent: August-23-10 8:06 PM
To: Beuthe, Thomas
Cc: tex4ht at tug.org
Subject: Re: [tex4ht] Choice of LaTeX -> *ml method for all browsers?

    Can the html that is produced be configured to preferentially
    deliver everything complicated graphically?

I'm under the impression that the simple  htlatex abc  should produce
abc.html with bitmap math.

    My attempts at using "htlatex test" produce html devoid of
    graphic inclusions for some reason, and the use of "mk4th
    htlatex test.tex" results in the message:
     "! I can't find file `.cfg'."

Sorry, doesn't sound familiar.  All that comes to mind offhand is to try
looking in the .log file.

    any further advice you could give or references you might suggest? 

Eitan's intro article:

Eitan's detailed documentation:

Eitan's documentation and sources are not the easiest to read (at least
not for me), but he did provide a wealth of information.  Takes time to
digest, for sure.

Hope this helps,


This e-mail, and any attachments, may contain information that
is confidential, subject to copyright, or exempt from disclosure.
Any unauthorized review, disclosure, retransmission, 
dissemination or other use of or reliance on this information 
may be unlawful and is strictly prohibited.  


Le présent courriel, et toute pièce jointe, peut contenir de 
l'information qui est confidentielle, régie par les droits 
d'auteur, ou interdite de divulgation. Tout examen, 
divulgation, retransmission, diffusion ou autres utilisations 
non autorisées de l'information ou dépendance non autorisée 
envers celle-ci peut être illégale et est strictement interdite.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.zip
Type: application/x-zip-compressed
Size: 58893 bytes
Desc: example.zip
URL: <http://tug.org/pipermail/tex4ht/attachments/20100824/adc7592b/attachment-0001.bin>

More information about the tex4ht mailing list