Bug 114090 - Create a new style with name "Appendix"
Summary: Create a new style with name "Appendix"
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: sdc.blanco
URL:
Whiteboard: target:6.5.0
Keywords:
Depends on: 128858
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2017-11-27 11:52 UTC by Olivier Hallot
Modified: 2020-01-28 08:29 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
proof of concept (12.81 KB, application/vnd.oasis.opendocument.text)
2020-01-08 09:01 UTC, sdc.blanco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2017-11-27 11:52:53 UTC
Description:
User often need to add appendices to a thesis, report or book. To add an appendix in the same file one has to create a new style (often with same level as Heading 1) but with different numbering and other attributes.

The bug is to create a new style "Appendix", under Title inheritance, similar to "Table of contents" for the purpose of adding appendices.

E.g. Font size 16pt, bold.

Actual Results:  
NO specific Appendix style, must create it from current headings settings

Expected Results:
A predefined/default "Appendix" style, inherited from Title paragraph style.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 Kevin Suo 2017-11-27 14:54:20 UTC
I am setting this valid enhancement request to NEW.

As a workaround, you can maintain a template of your own, and set it as default template.
Comment 2 Heiko Tietze 2019-12-22 07:16:40 UTC
Seth committed a patch at https://gerrit.libreoffice.org/#/c/85657/ but I wonder if this new style is really needed and if the font has to be in bold and size 16. So more opinions please.
Comment 3 sdc.blanco 2019-12-22 14:36:48 UTC
If this is to be added, then perhaps it should be placed as a child to "Index Heading" -- possibly with the name "Appendix Heading"  (Note that all the children under "Index Heading" are 16pt, bold.)
Comment 4 Olivier Hallot 2020-01-07 16:53:53 UTC
I actually think that the Appendixes must have outline level of Heading 1. This way it will be placed in the index in same level of Heading 1 (I see appendixes as full chapters, but with collateral contents).

Also, the appendix count should have a specific numbering, and start at first occurence, for example 
Appendix A, Appendix B ...
Appendix 1, Appendix 2 ...
Appendix I, Appendix II ...
Comment 5 Thomas Lendo 2020-01-07 21:02:05 UTC
I also see Appendix in level 1 as a kind of Heading 1, so the formatting should be similar. Appendix in level 2 as kind of Heading 2 and so on.

The last downloadable master for Linux is from 28. of December (https://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@86-TDF/current/), so I couldn't test it.
Comment 6 sdc.blanco 2020-01-08 09:01:20 UTC
Created attachment 156996 [details]
proof of concept

An illustration of functional idea (w/o desired font attributes).  Document created last week for another purpose (the interaction between Chapter Numbering and Custom Styles) -- but that issue may also be relevant here.
Comment 7 Heiko Tietze 2020-01-09 08:37:38 UTC
No objection, so let's do it. Seth, your patch misses the Level 1 modification. Please have a look.
Comment 8 sdc.blanco 2020-01-09 09:36:15 UTC
(In reply to Heiko Tietze from comment #7)
> No objection, so let's do it. Seth, your patch misses the Level 1
> modification. Please have a look.

Appendix is a child of "Heading".  Will wait for patch that changes Heading to Level 1 (bug 128858), and then Level 1 should come by inheritance.
Comment 9 Heiko Tietze 2020-01-27 09:04:56 UTC
Seth, please resolve as fixed yourself if the follow-up patch is referenced to the other ticket.
Comment 10 Commit Notification 2020-01-27 09:06:20 UTC
Seth Chaiklin committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/aeac2420bc6a274fbf0ff0851d05ac21737182b7

tdf#114090 Create a new paragraph style with name "Appendix"

It will be available in 6.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 sdc.blanco 2020-01-27 20:31:16 UTC
(In reply to Heiko Tietze from comment #9)
> resolve as fixed yourself if the follow-up patch is referenced
> to the other ticket.
Just to clarify.  This patch creates an Appendix style, with bold, centered, 16pt font, which inherits from Heading.  At present, the outline level of Heading is "Text Body" -- so it is still necessary to modify Appendix to Level 1 (if that is desired). When bug #128858 is resolved, then Heading will have Outline level 1, which Appendix will inherit. So if there is no objection, then I will close this bug as Fixed.
Comment 12 Heiko Tietze 2020-01-28 08:29:22 UTC
(In reply to sdc.blanco from comment #11)
> So if there is no objection, then I will close this bug as Fixed.

Just do it.