Macro Language Reference > Macros > Page > tpacopy
  
tpacopy
Description
Creates a master page with an associated text stream so that if, after formatting, PTC ALD finds that the stream will not fit onto a page, it will use the master page as a template and insert additional copied pages until the text stream is ended. The macro works on a per-page basis.
Syntax
tpacopy mode:n? type:n? ( stream:t ) max non-prog pages:n?
tpacopy
[no parameter]
Invoke the Page Autocopy dialog box.
mode
0
Off
1
Master page
2
Copied page
type
0
Normal
1
Document sequences
2
Pre-format
* 
This new parameter potentially changes previous functionality. Previously, if you entered tpacopy 1,2 it would have set the mode to Master (mode 1) with a maximum of 2 non-progress pages. Now, it will still set the mode to Master, but will change the type to pre-format (type 2). However the probability of this occurrence is rare.
stream
The name of the text stream associated with the master page.
max non-prog pages
The amount of consecutive copied pages that should be allowed without making formatting progress. For example, if you have some errors in your data, and PTC ALD is producing empty pages, PTC ALD will stop formatting when it tries to format an empty page. With the max non-prog pages parameter, you are able to define how many pages PTC ALD should try to paginate before proceeding. Another example of this is if you have a book where the text is on right pages only and rasters on left pages. Normally PTC ALD stops when a page stays empty (this is the meaning of no progress). With this option set to 1, if there is no progress on a page PTC ALD will try to format the next page and stop only when no text can flow on the page after that.