New 2018.
Pathagoras can repeat the content of a single cell throughout a table. You now can stack repeating content in a vertical table (left side of below sample--the old default result), or you can choose a more horizontal presentation (right side). Further, if variables reside in the repeating text, they are automatically incremented.
|
OR |
|
Setup:
For a 'stacked' presentation, follow the steps outlined on this page:
For a horizontal presentation, create a table of a single row. The number of cells in that row should correspond to the number of columns you want the table to contain..
In the first cell (column 1, row 1), type the content you want to be repeated. If you are including variables, type just the 'raw' variable names. Don't increment anything. Pathagoras will take care of that. (If you want the incrementing number to appear in a certain location, type an ampersand at that spot. (See [Client@ Address] in the sample below.) Otherwise the incrementing number will appear at the end of the variable.
Surround the text you want repeated with the <<*Repeat*. . . >> command. Leave the remaining cells in the table blank. (The empty cells are Pathagoras' cue that you want them filled with the content of Row1/Col1. Don't worry about how many rows you'll need. Pathagoras will calculate that for you and add all necessary rows when the table is processed.
Example:
<<*Repeat*[Client Name] [Client@ Address] [Client@ City, ST ZIP]>> |
If you prefer, you can type the <<*Repeat* . . .>> boundaries outside of the table. Pathagoras will still assume you want to duplicate the content of Row1/Col1.
<<*Repeat*
[Client Name] [Client@ Address] [Client@ City, ST ZIP] |
>>
Usage:
When the <<*Repeat*. . . >> command is encountered (either via the automatic processing during document assembly, or by pressing <Alt-P> to 'force process' the text), Pathagoras will 'see' the repeat block and the blank cells to the right of Row1/Col1. It then asks "How many repeats?" Provide a number. Pathagoras then asks you to confirm that you want to copy the text into the appropriate cells 'left to right.'. With a 'Yes' answer, Pathagoras will quickly duplicate the content into the appropriate number of cells, automatically incrementing the variables in the process. (If you say 'No', Pathagoras will duplicate the text within Row1/Col1 and leave the other cells blank.)