Note: the names listed in the boxes are the names of the system scripts in Page.vb and PageAutomation.vb.
The AutoPaginateByPage script is called by the AutoPaginate(string) script. It contains three loops:
•Pages loop: it opens pages and places initial shape on page, and also controls the page completion. For each page, it restarts the LG loop.
•LGs loop: it cycles through all the LGs on the current page. It gets the shape data and counts how many articles pass the preliminary test. For each LG it restarts the articles loop.
•Articles loop: it cycles through all unlinked articles in the selected folder. In ProcessArticle script, it checks the suitability of an article, and then, if it passes the tests, links it and format it, and then tries to fit it. Should the fitting fails, it looks for another best articles. If all fails, it attempts to change just the article shape.