Open main menu

Changes

Created page with "Documentation for \bleed"
<cd:commandgroup name="bleed" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\bleed</tt> is used to modify the actual dimension of the place allocated to a figure.
</cd:shortdesc>
<cd:variants>
<cd:command category="graphics" file="pack-box.mkiv" interfacedate="2020-06-19T13:41" interfacefile="i-bleed.xml" level="document" name="bleed" variantnumber="1">
<cd:arguments>
<cd:assignments list="yes" optional="yes" ordinal="1">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:inherit name="setupbleeding"></cd:inherit>
</cd:assignments>
<cd:content ordinal="2"></cd:content>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples><cd:example title="">%<context source="yes">

\setuppapersize[A6]
\setupheadertexts[]
\starttext

text before
\externalfigure[mill][width=2cm,frame=on,rulethickness=1pt,framecolor=red]
text after.

text before
\bleed [width=2cm,height=3cm,location=l]{%
\externalfigure [mill] [width=2cm,height=3cm,frame=on,rulethickness=1pt,framecolor=blue]}
text after.

text before
\bleed [width=2cm,height=2cm,location=l]{%
\externalfigure [mill] [width=2cm,height=3cm,frame=on,rulethickness=1pt,framecolor=green]}
text after.

text before
\bleed [width=1cm,height=2cm,location=l]{%
\externalfigure [mill] [width=2cm,height=3cm,frame=on,rulethickness=1pt,framecolor=cyan]}
text after.

%\bleed [width=5cm,height=1cm,location=l]
% {\externalfigure[mill][width=\bleedwidth,height=\bleedheight]}

\stoptext

%</context>
</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="setupbleeding" originator="system"></cd:commandref>
<cd:source file="pack-box.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Graphics"></cd:wikipage></cd:seealso>
</cd:commandgroup>
999

edits