bugtex4ht - Bugs: bug #247, mk4ht oolatex failed to process...

 
 
Show feedback again

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

bug #247: mk4ht oolatex failed to process math formula when wrap fig has been loaded

Submitted by:  Rongsong Shen <shen390s>
Submitted on:  Thu Mar 26 13:12:55 2015  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed Apr 1 23:24:01 2015, comment #4:

thanks, all sounds good, installed in tex4ht and tex live. did not look into \WFclear calls :(.

Karl Berry <karl>
Project Administrator
Wed Apr 1 13:26:49 2015, comment #3:

we can add this only to tex4ht-ooffice.tex in order to affect only open office output.

Strange thing is that \\WFclear is called inside math even if it isn't the last thing in the paragraph, I don't know whether is it caused by tex4ht or wrapfig, this is beyond my level of TeXpertise :)

anyway, new patch is attached, in this version I only switch off first \\par inside of \\WFclear, so I avoided redefinition of the whole macro. Also some basic configuration for wrapfloat is provided, it doesn't respect float specification, because I really couldn't find style attributes for that in ODF docs.

Michal

(file #202)

Michal Hoftich <michal_h21>
Project Member
Tue Mar 31 17:06:28 2015, comment #2:

(sorry for the delayed reply.)

hmm. can we make the \par omission conditional on oo somehow? looking at that code, it seems to me that the \par could be having a real effect on the regular processing. i don't have an actual case at hand, but it is precisely these cases where \everypar is being tinkered with, etc., that it can be crucial. i don't see anything else forcing tex into vertical mode if \WF@box is void. and \par is special in latex besides, so ...

it seems to me that the real problem here is that either
(a) a <p>aragraph is not being opened with the formula, which it should be, and/or
(b) \par is generating an end-of-paragraph even when no paragraph has been opened.

wdyt?

thanks,
k

Karl Berry <karl>
Project Administrator
Thu Mar 26 16:27:03 2015, comment #1:

I can confirm that, it seems that wrapfig redefines everypar and spurious \par is inserted on the wrong place, which results in invalid elements included in file processed with xtpipes. the solution I've found is to comment out this spurious \par command. it seems that it doesn't break anything, I hope, and compilation works with oolatex.

please note that no configurations for wrapfig for oolatex are provided, so the figures may appear strangely.

patch for literate sources is attached.

Michal

(file #199)

Michal Hoftich <michal_h21>
Project Member
Thu Mar 26 13:12:55 2015, original submission:

run following command with attached ex.tex with attached error information err.log attached

Rongsong Shen <shen390s>

 

Attached Files
file #202:  wrapfig.patch added by michal_h21 (1kB - text/x-patch)
file #199:  wrapfig.patch added by michal_h21 (513B - text/x-patch)
file #197:  ex.tex added by shen390s (106B - application/x-tex)
file #198:  err.log added by shen390s (3kB - application/octet-stream)

 

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 shen390s (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):

     

     

    5 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Apr 1 23:24:01 2015karlOpen/ClosedOpen=>Closed
    Wed Apr 1 13:26:49 2015michal_h21Attached File-=>Added wrapfig.patch, #202
    Thu Mar 26 16:27:03 2015michal_h21Attached File-=>Added wrapfig.patch, #199
    Thu Mar 26 13:12:55 2015shen390sAttached File-=>Added ex.tex, #197
      Attached File-=>Added err.log, #198
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray