bugtex4ht - Bugs: bug #406, The optional argument for \chapter...

Show feedback again

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

bug #406: The optional argument for \chapter is ignored in TOC with Memoir class

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Tue Dec 25 18:00:49 2018  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Jan 7 00:26:03 2019, comment #3:

copied to tl.

Karl Berry <karl>
Project Administrator
Sun Jan 6 12:34:45 2019, comment #2:

Thanks Deimi, it seems to do the trick :)

Michal Hoftich <michal_h21>
Project Member
Sun Jan 6 11:24:16 2019, comment #1:

Hi Michal,

A patch is attached.

(file #305)

Deimantas GalĨius <deimi>
Project Member
Tue Dec 25 18:00:49 2018, original submission:

I will reproduce a report from the tex4ebook issue tracker [1]

The \chapter takes two parameters: in curly brackets (more common) and square brackets (less common). If just curly brackets are used, that text is used for both the TOC and chapter header. If curly and square are used, then the text in square brackets are used by LaTeX for the TOC and the text in curly brackets are used for the chapter header. Tex4ebook appears to ignore the square brackets and use whatever's in the curly brackets for both TOC and chapter headers. This is a problem for my current project because I have newlines in the chapter names where they appear at chapter headers, but this is ugly in the TOC.

In the context of this bug report, if only square brackets are used, it is legal for demons to fly out of the author's nose.


I don't know how to fix this yet.

[1] https://github.com/michal-h21/tex4ebook/issues/51

Michal Hoftich <michal_h21>
Project Member


Attached Files
file #305:  t4ht-memoir-chapter.patch added by deimi (486B - 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 deimi (Updated the item)
  • -unavailable- added by michal_h21 (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):



    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Jan 7 00:26:03 2019karlOpen/ClosedOpen=>Closed
    Sun Jan 6 11:24:16 2019deimiAttached File-=>Added t4ht-memoir-chapter.patch, #305
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray