Probably somewhat related to another question but still kinda different.
I have a two column layout paper that I’d like to translate to another language. During the translation process I’d like to set up an intermediate representation where the left column would contain the original text, whereas the right one would contain my translation.
Since texts would quickly diverge due to different word lengths and phrase structures, I’d like to have a way to force header synchronization between the columns, so that layout engine would append vertical space to a shorter column so that the next headers in both columns would appear on the same horizontal line.
Hi, I’ve updated your post’s title to a question as per our guidelines at How to post in the Questions category. Please keep this in mind in the future
The headings are ‘synchronised’ insofar as you are using a grid for each element (heading, paragraphs, etc.). However, what I have not yet solved for is how to have the heading numbers synchronised when using automated numbering of headings.
Enumerating headings is easy, but headings don’t “own” the content following them, so there is no built-in way in typst to divide a document into logical sections where each section would be a heading and its body of content.
It’s possible to do something like this with content introspection, but it can also be fragile and break if there are any styling commands (show rules) that span over multiple sections (and they start somewhere in the middle of the document, i.e they apply before your section-splitting algorithm can run)