Difference between revisions of "Command/showprint"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \showprint") |
|||
Line 22: | Line 22: | ||
<cd:description>Visualizes the combined effect of {{cmd|setuppapersize|2=[arg1][arg2]}} and {{cmd|setuplayout|2=[arg3]}} | <cd:description>Visualizes the combined effect of {{cmd|setuppapersize|2=[arg1][arg2]}} and {{cmd|setuplayout|2=[arg3]}} | ||
</cd:description> | </cd:description> | ||
− | <cd:examples><cd:example title="">< | + | <cd:examples><cd:example title=""> |
+ | Output is too big to be useful on the wiki, but you could run something like this: | ||
+ | <texcode> | ||
\setuppapersize[A3][A3] | \setuppapersize[A3][A3] | ||
− | \switchtobodyfont[ | + | \switchtobodyfont[8pt] |
\starttext | \starttext | ||
Line 61: | Line 63: | ||
\stopcombination | \stopcombination | ||
\stoptext | \stoptext | ||
− | </ | + | </texcode> |
</cd:example></cd:examples> | </cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> |
Revision as of 15:55, 30 November 2021
Contents
\showprint
Summary
The command \showprint visualizes paper and layout arrangement options
Settings
\showprint[...,...][...,...][...=...,...] | |
[...,...] | inherits from \setuppapersize |
[...,...] | inherits from \setuppapersize |
...=...,... | inherits from \setuplayout |
Description
Visualizes the combined effect of \setuppapersize[arg1][arg2] and \setuplayout[arg3]
Examples
Example 1
Output is too big to be useful on the wiki, but you could run something like this:
\setuppapersize[A3][A3] \switchtobodyfont[8pt] \starttext \startcombination[4*4] {\showprint} {\strut} {\showprint[][][location=middle]} {\type{location=middle}} {\showprint[][][location=middle,marking=on]} {\type{marking=on}\break\type{location=middle}} {\showprint[][][location=middle,marking=on,nx=2]} {\type{marking=on}\break\type{location=middle}\break\type{nx=2}} {\showprint[][][location=left]} {\type{location=left}} {\showprint[][][location=right]} {\type{location=right}} {\showprint[][][location={left,bottom}]} {\type{location={left,bottom}}} {\showprint[][][location={right,bottom}]} {\type{location={right,bottom}}} {\showprint[][][nx=2,ny=1]} {\type{nx=2,ny=1}} {\showprint[][][nx=1,ny=2]} {\type{nx=1,ny=2}} {\showprint[][][nx=2,ny=2]} {\type{nx=2,ny=2}} {\showprint[][][nx=2,ny=2,location=middle]} {\type{nx=2,ny=2}\break\type{location=middle}} {\showprint[][][backoffset=3pt]} {\type{backoffset=.5cm}} {\showprint[][][topoffset=3pt]} {\type{topoffset=.5cm}} {\showprint[][][scale=1.5]} {\type{scale=1.5}} {\showprint[][][scale=0.8]} {\type{scale=0.8}} \stopcombination \startcombination[3*4] {\showprint[landscape][] [location=middle]} {\type{landscape}} {\showprint[] [landscape][location=middle]} {\strut\break\type{landscape}} {\showprint[landscape][landscape][location=middle]} {\type{landscape}\break\type{landscape}} {\showprint[90] [] [location=middle]} {\type{90}} {\showprint[] [90] [location=middle]} {\strut\break\type{90}} {\showprint[90] [90] [location=middle]} {\type{90}\break\type{90}} {\showprint[180] [] [location=middle]} {\type{180}} {\showprint[] [180] [location=middle]} {\strut\break\type{180}} {\showprint[180] [180] [location=middle]} {\type{180}\break\type{180}} {\showprint[mirrored] [] [location=middle]} {\type{mirrored}} {\showprint[] [mirrored] [location=middle]} {\strut\break\type{mirrored}} {\showprint[mirrored] [mirrored] [location=middle]} {\type{mirrored}\break\type{mirrored}} \stopcombination \stoptext