bugtex4ht - Bugs: bug #491, KOMA book (scrbook) \subsubsection...

 
 
Show feedback again

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

bug #491: KOMA book (scrbook) \subsubsection and \paragraph

Submitted by:  Jürgen Spitzmüller <jspitzm>
Submitted on:  Thu Nov 26 10:51:45 2020  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Mon Nov 30 09:02:03 2020, comment #10:

Thank you so much!

Jürgen Spitzmüller <jspitzm>
Mon Nov 30 00:02:52 2020, comment #9:

Thanks for your reports. I've added support for the missing commands to TeX4ht sources. Paragraphs created by \paragraph and similar commands now have distinct paragraph styles.

Michal Hoftich <michal_h21>
Project Member
Sun Nov 29 10:14:37 2020, comment #8:

So here is a new test can to ease debugging. Not supported currently:

  • \subsubsection*
  • \paragraph*
  • \subparagraph*

The test case is scrbook, but I get the same result with the standard classes.

(file #384, file #385)

Jürgen Spitzmüller <jspitzm>
Sat Nov 28 16:35:10 2020, comment #7:

Strange, the tracker removes the stars. To be clear, I am talking of the starred headings here.

Jürgen Spitzmüller <jspitzm>
Sat Nov 28 16:33:53 2020, comment #6:

> (neither is \subsubsection, as opposed to \subsection and \section*)


I mean \subsubsection, as opposed to \subsection and \section*

Jürgen Spitzmüller <jspitzm>
Sat Nov 28 16:32:22 2020, comment #5:

> The paragraph heading is set as s "paragraph-h" character style. LO shows only paragraphs styles in the main toolbar, but you can select character styles in the style inspector.


I see, thanks. I was furthermore mislead by the fact that I was using \paragraph* which doesn't seem to be handled yet (neither is \subsubsection, as opposed to \subsection and \section*)

> We can create a new paragraph style for the whole paragraph. It is a bit more complicated, but not too hard.


For my usecase, this would be very useful (while keeping the character style additionally)

Jürgen Spitzmüller <jspitzm>
Sat Nov 28 14:36:41 2020, comment #4:

The paragraph heading is set as s "paragraph-h" character style. LO shows only paragraphs styles in the main toolbar, but you can select character styles in the style inspector.

We can create a new paragraph style for the whole paragraph. It is a bit more complicated, but not too hard.

Michal Hoftich <michal_h21>
Project Member
Sat Nov 28 12:06:51 2020, comment #3:

After todays's TL update, this works flawlessly for subsubsection.

However, \paragraph is converted to normal text body style (also in other classes, as it were) rather than a semantic style of its own (as I would expect).

As it is, it is hard to identify and handle \paragraph's after conversion to ODT.

WRT to LaTeX output, I would probably expect \paragraph headings to be merged with the following paragraph and be assigned to a distinctive semantic style.

Ideally, this would be a run-in sidehead, but as it seems, this is not yet implemented in ODT:
https://bugs.documentfoundation.org/show_bug.cgi?id=48459

although there are workarounds:
https://forum.openoffice.org/en/forum/viewtopic.php?f=71&t=709

For practical reasons, a semantic style would help a lot already, as one could easily locate and handle the uses than (as opposed to the current handling).

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 11:39:02 2020, comment #2:

Great, thanks.

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 00:45:23 2020, comment #1:

Thanks for the report. It should be fixed in the sources.

Michal Hoftich <michal_h21>
Project Member
Thu Nov 26 10:51:45 2020, original submission:

Both these macros are converted in ODT to normal body text rather than the respective heading styles.

This only applies to scrbook.cls. scrartcl.cls seems to work fine.

MWE attached.

Jürgen Spitzmüller <jspitzm>

 

Attached Files
file #384:  scrbook-headers.tex added by jspitzm (487B - text/x-tex - Starred headers below subsection level)
file #385:  scrbook-headers.odt added by jspitzm (7kB - application/vnd.oasis.opendocument.text - Starred headers below subsection level)
file #375:  scrbook.tex added by jspitzm (477B - text/x-tex)
file #376:  scrbook.odt added by jspitzm (7kB - application/vnd.oasis.opendocument.text)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by jspitzm (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
    Sun Nov 29 10:14:37 2020jspitzmAttached File-=>Added scrbook-headers.tex, #384
      Attached File-=>Added scrbook-headers.odt, #385
    Fri Nov 27 12:00:39 2020michal_h21Open/ClosedOpen=>Closed
    Thu Nov 26 10:51:45 2020jspitzmAttached File-=>Added scrbook.tex, #375
      Attached File-=>Added scrbook.odt, #376
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray