A typical question might be: "If I have a heading aligned left, can I make the subsequent line align right with the end of the heading?
It is not possible to automate it, since GN4 does not know methods to GET/SET the information of the current horizontal position.
You will have to create all different styles for all headers, perhaps even with text included. In each style, you will have to test (manually) the minimum column width, required for the header to fit; in the example below, it was 2.63cm. After this style, which is indeed a table style, it is necessary to have an >endtab< to proceed the text.