-
I am currently trying to achieve this styling for my headings, i.e. the label for the header is sent back 2cm from the rest of the content but all lines of the heading content remain where they are. Here is an edited image showing what I would like the styling to look like. Below is my current output using my stylesheet. As you can see, when the heading becomes multiple lines long then the heading does not remain in the "content" section of the document like I illustrated in the picture above. I'm doing this with a custom stylesheet. I have created a minimal example that replicates this issue:
Do you have any idea how I might be able to solve this? In an ideal world I would apply a style to the heading label to send it back 2cm, but as far as I can read in the rinohtype docs, this does not seem possible. I had a quick look at the stylesheets for the rinohtype docs, where you are trying to achieve something similar for the styling of your headings. https://github.com/brechtm/rinohtype/blob/master/doc/rinohtype.rts. But as far as I can tell, the same problem would occur if your titles went past two lines. Any advice would be greatly appreciated 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In fact, that is exactly how you can solve this, and yes, it's possible :-) [heading level 1]
#margin_left=0cm
# adds tab character between tab stop and heading to create the gap
before="\t"
# set tab stop at the margin
tab_stops=0cm LEFT
# create room for the section label
indent_first=-2cm |
Beta Was this translation helpful? Give feedback.
In fact, that is exactly how you can solve this, and yes, it's possible :-)