bugtex4ht - Bugs: bug #494, ltugboat header and signature

 
 
Show feedback again

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

bug #494: ltugboat header and signature

Submitted by:  Karl Berry <karl>
Submitted on:  Sat Dec 5 23:59:39 2020  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri Jan 1 22:44:22 2021, comment #2:

all set here, thanks michal.

Karl Berry <karl>
Project Administrator
Sun Dec 6 21:27:38 2020, comment #1:

Hi Karl,

I think the configuration for the Ltugboat class is quite old. ltugboat.4ht requires ltugboat-a.4ht, which defines most configurable hooks.

The configuration in html4.4ht has some issues - for example it doesn't close paragraphs before <div> elements etc. It also inserts too many <br /> in the signature, which results in the blank lines.

ad 1) I think the journal info in requested using the following code from html4.4ht:

\@ifclassloaded{ltugproc}{}{%
\@ifpackageloaded{ltugproc}{}{\Configure{@BODY}{\rtitlex}}
}

You can detect the draft mode using ifdraft package:

\ifdraft{Do in draft}{Do in final}

So it should be possible to input tugboat.dates here. Could you upload sample dates file?

I think there is issue with the .cfg file, because TeX4ht uses .cfg files itself. I've tried to move the title and other information to ltugboat.cfg. It compiled without errors, but the signature showed twice. I didn't really investigate what is the issue, but it doesn't happen when I use different extension, like ltugboat.adr.

ad 2) This can be fixed by removing <br /> element from HtmlPar configuration that happens in \Configure{signature}. See the attached .cfg file. I've also used the <address> element instead of just <div> for the signature, I think it is semantically more appropriate.

It was set to be indented by 60% to the right, which is really strange. If you want to align it to the right, there are better ways. I've removed the left margin altogether, just the diamond glyph is hanging.

Best,
Michal

(file #393)

Michal Hoftich <michal_h21>
Project Member
Sat Dec 5 23:59:39 2020, original submission:

Hi Michal - I'm sorry to have to ask you about this, but I'm just not sure where to start with the tugboat-related code in tex4ht-4ht.tex.

Consider the attached source and output for a trivial tugboat article, which just specifies information for an author and ends with our usual \makesignature. There are two problems with the output:

1) the volume/issue/year numbers in the headline. This is fine for drafts and authors, but for production posting we need to have tex4ht do "\input ../tugboat.dates" to define them. Ideally it would happen automatically if the [final] option is specified, but if there's a way I can do it by hand, that'd work too. How?
(For normal TeX runs, tugboat.dates is read via an ltugboat.cfg file, but the tex4ht run does not read that .cfg. I don't know why not.)

2) there's a blank line between each element of the signature;
and the signature is pushed much too far to the right.
How to ameliorate?

In the past we've hacked these things with a local ltugboat.4ht file, but I'd like to get away from that and use the standard .4ht's.

Thanks/sorry!

Karl Berry <karl>
Project Administrator

 

Attached Files
file #393:  hej.cfg added by michal_h21 (1kB - application/octet-stream)
file #391:  tub2etest.html added by karl (2kB - text/html)
file #392:  tub2etest.tex added by karl (368B - text/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Updated the item)
  • -unavailable- added by karl (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):

     

     

    4 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Jan 1 22:44:22 2021karlOpen/ClosedOpen=>Closed
    Sun Dec 6 21:27:38 2020michal_h21Attached File-=>Added hej.cfg, #393
    Sat Dec 5 23:59:39 2020karlAttached File-=>Added tub2etest.html, #391
      Attached File-=>Added tub2etest.tex, #392
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray