## tex4ht - 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 Submitted on: Tue 25 Dec 2018 06:00:49 PM EET Category: None Priority: 5 - Normal Severity: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Closed

Mon 07 Jan 2019 12:26:03 AM EET, comment #3:

copied to tl.

Karl Berry <karl>
Sun 06 Jan 2019 12:34:45 PM EET, comment #2:

Thanks Deimi, it seems to do the trick :)

Michal Hoftich <michal_h21>
Sun 06 Jan 2019 11:24:16 AM EET, comment #1:

Hi Michal,

A patch is attached.

Deimantas Galčius <deimi>
Tue 25 Dec 2018 06:00:49 PM EET, 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.

Michal Hoftich <michal_h21>

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?
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):