New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indent configuration for multiline headings #3459
Conversation
I would prefer the name Additionally, I think such an API should mimic the one of
This API would allow other values, which could be added in a later PR (or this one), if wished for:
|
@frozolotl That sounds nice in principle. Would the hanging indent affect the first line here? Because I'm not sure it makes sense, but it would for sure be useful to be able to fix the x position of the heading's body independently from the numbering. |
In my line of thinking, when the hanging indent was set to a certain length, only the lines after the first line would be indented by it. I'll henceforth call First idea, Second idea, Third idea, #set heading(hanging-indent: auto, space: space-between-numbering-and-body) (In the current So, the first idea is problematic, and the third idea should probably be implemented with a different API. |
I do agree with your points, However, one requirement that I'm not sure is covered by this is one where all headings should have the same indent, independently of the numbering, so that they align nicely.
I think it is overall a very tricky design space, which "settings of the default show rule" warrant properties on the element. In an ideal world, an element's properties are all semantical and the rest is left to show rules, but in practice it's useful to be able to configure the default show rule with some properties without rewriting it from scratch. |
Hey @haenoe, are you still interested in working on this or should we close it? |
Hii @laurmaedje It seems like I misinterpreted the conversation and thought that the idea was not approved -- sorry for that. Hope this is okay ^^' |
I think the design |
Hi @laurmaedje
Thank you! |
I think you probably just apply |
b642283
to
69dcc89
Compare
Sorry for the long waiting times :/ I hope the new implementation is more or less what you imagined ^^' If not I would be happy about every feedback. |
abb6215
to
cf2a02c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope the new implementation is more or less what you imagined ^^'
If that is the case I will gladly add the required tests and the documentation :D
It does! I left just a few comments on the implementation.
7eca49a
to
17dd870
Compare
I'm quite happy about this. The old default style really wasn't great when multiline. Thanks! |
No problem! Thanks for your guidance :D |
Yeah sure! |
This PR adds the
multiline-indent
option for (multiline-)headings, as discussed in #2410.(Also related is #2411, but proposes this for outlines)
Let me know what you think about all of this! ^^'
Thank you all very much!