Hi, let me quickly explain how the parameters are ment to work. (And I guess it does work as we intended.)
If you don't have a paperformat, neither centered, fittosize and margin have any impact. Once you set paperformat to a paperformat, the output will contain this paper format information. Additionally the other parameters come into play. If fittosize is false (e.g. zero -- PyX is written and still allows for pre-boolean-type python versions), centered indicates whether the output should be centered on the page. PyX uses a translation only so no rescaling occurs. If fittosize is true, the centered option will not be taken into account anymore. Instead the content is always translated and scaled to fit the papersize leaving a margin as indicated by margin. The warning about "exceeds papersize" just happens as needed if the content does not fit onto the paper. Margin is not taken into account here. Best, André Am 09.06.2008 um 18:31 schrieb Axel Freyn: > Hello, > > I don't understand exactly your problem, but: > A) margin has only an effect, if the page does already a > transformation. I think, that only happens, if you > a) specify a paperformat and b) set rotated, centered or fittosize > to 1. In all other cases, the margin is simply ignored. > > B), page does not do the splitting upon different pages - that is > something you have to provide: I think, there are to possibilities: > 1) create the sub-canvas'es "c2" of appropriate size > 2) use the long canvas "c", and add to the page-constructor the > "Bounding Box", which you want to use for this page. > > C) The warning "content exceeds the papersize". is only emitted, > when the page does some transformation - without centered=1. > > HTH, > > Axel > > > On Sat, Jun 7, 2008 at 12:19 PM, R. Bastian <[EMAIL PROTECTED]> wrote: > Hello the pyx-list, > > I am in trouble with pyx.document.page(...). > The idea is to cut a long canvas 'c' to obtain 'n' (sub-)canvas 'c2' > (which will be the 'n' pages of the final score). > > But in the line > page = pyx.document.page(c2, centered=0, margin=1.0, ...etc.) > > 'margin=1.0' seems to have no effect, > 'fittosize=1' puts the score upon one page > 'centered=1' issues a warning "content exceeds the papersize". > > What is wrong ? > > thanks in advance, > > -- > R. Bastian > www.musiques-rb.org > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > PyX-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyx-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php_______________________________________________ > PyX-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyx-user -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
