{"id":309,"date":"2008-03-12T13:31:40","date_gmt":"2008-03-12T12:31:40","guid":{"rendered":"http:\/\/ospublish.constantvzw.org\/?p=309"},"modified":"2008-09-08T16:17:58","modified_gmt":"2008-09-08T15:17:58","slug":"multiple-pages-with-linked-boxes-in-scribus","status":"publish","type":"post","link":"http:\/\/ospublish.constantvzw.org\/blog\/tools\/multiple-pages-with-linked-boxes-in-scribus","title":{"rendered":"Multiple pages with (linked) boxes in Scribus"},"content":{"rendered":"

Besides pagenumbers, Scribus masterpages can currently only hold static elements. Ivan Monroy Lopez<\/a> wrote us a very handy python script which puts as many linked or unlinked text boxes on as many pages you want. You can also run the script multiple times… <\/p>\n

measurements.py<\/a>
\n
template.py<\/a><\/p>\n


\nThe script is split into two files: measurements.py<\/strong> and template.py<\/strong>. Template.py<\/strong> should be run from inside Scribus (In the main menu choose: Script > Execute Script). Put info about boxes (size, amount, page start etc.) into measurements.py<\/strong>.<\/p>\n

This is what measurements.py<\/strong> looks like if you would want to end up with a 22 page document with 2 linked columns of equal length on each page:<\/p>\n

#the script will start inserting boxes at page
\nstart = 1
\n#the script will stop inserting boxes at page
\nend = 22<\/code>
\n#the definition of text boxes follows the format:
\n#[x-position, y-position, width, height]
\n#x and y positions refer to top-left corner of boxes.
\n#units are based on the default set for the document.
\n<\/code>
\n#text boxes needed in even pages. edit as needed.
\neven = [[0, 0, 100, 100], [100, 100, 100, 100]]
\n<\/code>
\n#text boxes needed in odd pages. edit as needed.
\nodd = [[0, 100, 100, 100], [100, 0, 100, 100]]<\/code>
\n#will the text boxes be linked? (yes or no)
\nlink = 'yes'
\n#link = 'no'<\/code><\/p>\n

both measurements.py<\/strong> and template.py<\/strong> should be in the same directory.<\/p>\n","protected":false},"excerpt":{"rendered":"

Besides pagenumbers, Scribus masterpages can currently only hold static elements. Ivan Monroy Lopez wrote us a very handy python script which puts as many linked or unlinked text boxes on as many pages you want. You can also run the script multiple times… measurements.py template.py<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[59,2],"_links":{"self":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts\/309"}],"collection":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":1,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":674,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts\/309\/revisions\/674"}],"wp:attachment":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}