Skip to content
\n

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.

\n

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.

\n

Any advice would be greatly appreciated 😄

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"
\n

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.

\n
\n

In fact, that is exactly how you can solve this, and yes, it's possible :-)

\n
[heading level 1]\n#margin_left=0cm\n# adds tab character between tab stop and heading to create the gap\nbefore=\"\\t\"\n# set tab stop at the margin\ntab_stops=0cm LEFT\n# create room for the section label\nindent_first=-2cm
","upvoteCount":2,"url":"https://github.com/brechtm/rinohtype/discussions/399#discussioncomment-4875648"}}}

How to achieve this heading behaviour? #399

Answered by brechtm
th0mr asked this question in Q&A
Discussion options

You must be logged in to vote

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.

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@th0mr
Comment options

Answer selected by th0mr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants