bugtex4ht - Bugs: bug #303, tex4ht ignores extension of HTML...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #303: tex4ht ignores extension of HTML when using showframe option in geometry pacakge

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sat May 21 07:38:10 2016  
Category: NonePriority: 5 - Normal
Severity: 3 - MinorStatus: None
Privacy: PublicAssigned to: Karl Berry <karl>
Open/Closed: Closed

Fri Jul 1 16:04:50 2016, comment #3:

committed to tl (r41590), closing, thanks.

Karl Berry <karl>
Project AdministratorIn charge of this item.
Tue May 24 23:13:51 2016, comment #2:

thanks, committed to tex4ht (modulo copyright stuff :). tex live is frozen right now; will leave open until i can commit it there.

Karl Berry <karl>
Project AdministratorIn charge of this item.
Mon May 23 11:09:00 2016, comment #1:

I am not sure how extension changing works, but I suspect that it is possible to change the extension only before any output is written. So if you want to change the extension in the .cfg file, it needs to be done at the very beginning:


I think the problem is that the showframe option writes a frame around the page before any other output, so tex4ht ignores the request to change the extension.

There is also another problem, lines are drawn before every page in the dvi file, as Geometry tries to draw the frame around pages.

As a fix, we can create minimal geometry.4ht file:


this configuration removes command used for drawing the frame. Patch for literate sources is attached.

(file #236)

Michal Hoftich <michal_h21>
Project Member
Sat May 21 07:38:10 2016, original submission:

Very strange bug. I added the option showframe to the geometry package in my Latex file to test something, and found that htlatex started creating HTML files with extension .html instead of .htm, even thought I did not change my makefile where I tell it to use .htm. here is a MWE


Compiling with the following, telling it to use "htm" for extension, not "html"

htlatex foo.tex "htm"

but it created foo.html instead, ignoring the request. Now removing the showframe option from the Latex file:


Using same command to compile, will now create foo.htm as expected.

This cause my build to fail, because it was looking for .htm file and not .html file.

Using TL 2015 tex4ht.c (2012-07-25-19:36 kpathsea)

Nasser M. Abbasi <nma123>


Attached Files
file #236:  geometry.patch added by michal_h21 (814B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Updated the item)
  • -unavailable- added by nma123 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Jul 1 16:04:50 2016karlOpen/ClosedOpen=>Closed
    Tue May 24 23:13:51 2016karlAssigned toNone=>karl
    Mon May 23 11:09:00 2016michal_h21Attached File-=>Added geometry.patch, #236
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray