Changes

Jump to navigation Jump to search
4,081 bytes added ,  15:53, 30 November 2021
Created page with "Documentation for \showprint"
<cd:commandgroup name="showprint" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\showprint</tt> visualizes paper and layout arrangement options
</cd:shortdesc>
<cd:variants>
<cd:command category="layout" file="page-run.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-layout.xml" level="document" name="showprint" variantnumber="1">
<cd:arguments>
<cd:keywords list="yes" optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:inherit name="setuppapersize"></cd:inherit>
</cd:keywords>
<cd:keywords list="yes" optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:inherit name="setuppapersize"></cd:inherit>
</cd:keywords>
<cd:assignments list="yes" optional="yes" ordinal="3">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:inherit name="setuplayout"></cd:inherit>
</cd:assignments>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Visualizes the combined effect of {{cmd|setuppapersize|2=[arg1][arg2]}} and {{cmd|setuplayout|2=[arg3]}}
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setuppapersize[A3][A3]
\switchtobodyfont[5pt]
\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
</context>
</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="definelayout" originator="system"></cd:commandref>
<cd:commandref name="definepapersize" originator="system"></cd:commandref>
<cd:commandref name="setuplayout" originator="system"></cd:commandref>
<cd:commandref name="setuppapersize" originator="system"></cd:commandref>
<cd:source file="page-run.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Layout"></cd:wikipage></cd:seealso>
</cd:commandgroup>

Navigation menu