这应该像 -
如何更改 RTF 模板以获得所需的输出?
I presume you are referring to the output layout. The for-each and for-each-group functions can only be used for an entire line. The very first thing in the first cell needs to be the for-each, and the very last thing in the last cell needs to be the end for-each. You can have nested ones so there's multiple for-each in the first cell. The beginning for-each cannot be in column 2 or 3. An alternative is creating this with nested tables. They can look like one table if you make the margins /padding 0 in the correct spots.