Difference between revisions of "Command/setuppaper"

From Wiki
Jump to navigation Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Forum == All issues with:")
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
Line 108: Line 108:
 
<!-- something like [[cmd:goto|\goto]] -->
 
<!-- something like [[cmd:goto|\goto]] -->
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 
All issues with:
 
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
 
[[Category:Commands|setuppaper]]
 
[[Category:Commands|setuppaper]]

Revision as of 01:33, 18 March 2012

\setuppaper

Syntax

\setuppaper[...,...=...,...]
paper name
page name
nx number
ny number
width dimension
height dimension
topspace dimension
backspace dimension
option max fit


Description

This command is used in connection with [XY] arranging only!

This command provides the means to setup the parameters needed for [XY] arrangement. Next to this it is possible to adjust the horizontal and vertical placement of the total of the arranged part.

Example

Consider an A4 sheet of labels which carries 12 labels. The topspace before the first label is 21 mm, the left and right space alongside the edges of the sheet is 8 mm.

The important thing is, that the horizontal and vertical adjustments only take place, if the command

\setuplayout[location=middle]

is issued again as shown in the example code below or that the location=middle is added to the \stuplayout of the page. Furthermore the dx and dy parameters in the \setuppaper command, which indicate the distance betweeen adjacant pages may not be 0, because otherwise the location=middle option will cause the label-pages beeing distributed evenly over the space keeping top and bottom and left and right space equally large.

\definepapersize[Label][height=42.3mm,width=97mm]
\setuppapersize[Label][A4]
\setuppaper
   [topspace=21mm, 
    backspace=8mm,
    dx=0.5mm,
    dy=0mm,
    nx=2,
    ny=6]

\setuplayout
   [page=Label,
    topspace=4mm,
    backspace=5mm,
    margin=0mm,
    width=87mm,
    height=34.3mm,
    header=0mm,
    footer=0mm]

\setuplayout[location=middle]

\showframe
\definelayer[Label][width=\paperwidth, height=\paperheight]
\setuparranging[XY]

\starttext
\dorecurse{12}
      {\setlayerframed
         [Label]
         [preset=leftbottom,y=.9cm,x=0mm]
         [frame=off, style=\tfx]
         {\CONTEXT\ is fun!}
    \startstandardmakeup
       \placelayer[Label]\page
    \stopstandardmakeup}
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: