Thanks, though I quickly realised I still needed a backslash in front of
composedcollector, which you had inadvertently left out of the solution.
I discovered that when the image disappeared. So the following
ultimately worked correctly:
\setcollector [example] {\externalfigure[bird.jpg
jbf schrieb am 12.09.2024 um 04:21:
Using the example in the ConTexT wiki for "collectors", I have as
follows, to credit the person who took the photo:
\setupcaption[number=no]
\definecollector[example]
\setcollector [example]
{\leftaligned{\externalfigure[bird.jpg][width=5cm
Using the example in the ConTexT wiki for "collectors", I have as
follows, to credit the person who took the photo:
\setupcaption[number=no]
\definecollector[example]
\setcollector [example]
{\leftaligned{\externalfigure[bird.jpg][width=5cm,frame=off]}}
\setcollector [exampl
background, these might work with \startknockout etc.
When I try my example:
\useMPlibrary[dum]
\setupcolors[
rgb=no,cmyk=yes,
intent=overprint,% or knockout
]
\setupbodyfont[modern,ss,18pt]
\starttext
\definecollector[Test]
\setcollector [Test] {\externalfigure[none][width=8cm,height
Thank-you Adam, Hraban and Richard for your suggestions.
In the end it was remarkably simple:
\starttext
\definecollector[example]
\setcollector [example] {\externalfigure[cow][width=6cm,frame=off]}
\setcollector [example] [corner={right,bottom},location={right,top}]
{\rotate[rotation=90
][{\directsetup{figure}\tightlayer[figure]}]
\startsetups figure
\setlayerframed[figure][frame=off,preset=rightbottom]{\copyright\ 2022}
\stopsetups
\externalfigure[cow][background={foreground,figure}]
\stoptext
\starttext
\definecollector[example]
\setcollector [example] {\externalfigure[cow
g pictures in Inkscape and
>> export it to pdf but sometimes I do screenshots and save it in .png or .pdf
>> format. So I just want to put labels in it like a layer in same size as the
>> included picture.
>>
>> Or is this something that’s already solved so "rei
.png or .pdf
> format. So I just want to put labels in it like a layer in same size as the
> included picture.
>
> Or is this something that’s already solved so "reinventing wheel" is
> unnecessary?
Look at the example for \layeredtext, \collectedtext or \setcollector
r=bottom
and mid aligned as in the example below. However, I prefer not to adjust
the distance manually.
\setupbodyfont [12pt]
\definecollector
[mycollector]
\setcollector
[mycollector]
{\framed[align=normal]{\input khat
Hi!
Is there a reason that presets don't work with collectors?
Collectors are based on layers and that's what presets are made for,
right? Bug or feature?
\definecollector
[mycollector]
[width=\textwidth]
\setcollector
[mycollector]
{\framed[width=5cm,heigh
ldstack_box\hbox{\symbol[#symbol]}%
\setcollector
[fieldstack]
{\fieldbody
[\currentfieldstackname]
[\c!option=\v!readonly,
\c!width=\wd\scrn_fieldstack_box,
\c!height=\ht\scrn_fieldstack_box,
\c!depth=\dp\scrn_fieldstack_box,
nd a box and to
>> dimens
>> what I wanted but it's not very elegant.
>>
>> \setupexternalfigures[location={local,global,default}]
>>
>> \starttext
>>
>> \newbox\labelbox \setbox\labelbox\hbox{\externalfigure[cow]}
>>
>> \newd
\labelbox \setbox\labelbox\hbox{\externalfigure[cow]}
>
> \newdimen\labelwidth \labelwidth \wd\labelbox
> \newdimen\labelheight \labelheight\ht\labelbox
>
> \definecollector[label][state=repeat]
>
> \setcollector[label]{\box\labelbox}
>
> \setcollector[label][x=.65\labelwi
fault}]
\starttext
\newbox\labelbox \setbox\labelbox\hbox{\externalfigure[cow]}
\newdimen\labelwidth \labelwidth \wd\labelbox
\newdimen\labelheight \labelheight\ht\labelbox
\definecollector[label][state=repeat]
\setcollector[label]{\box\labelbox}
\setcollector[label][x=.65\labelwidth,y=.75\labelheight]{
]{text}
# \saveXMLasdata
# \saveXMLdata
# \saveXMLelement
# \sbox
\scale[options]{text}
# \scratchbox
# \scratchcounter
# \scratchdimen
# \scratchskip
\screen
\section[references]{text}
\seeregister[text]{text}{text+text+text}
\selectblocks[names][names][critererium]
\selectpaper[options]
\selectversion
#
a collector (Details, p.75) instead; I have no experience with them,
>> but setup should be the same as for layer.
>
>> % - - - - -
>> \definecollector[foo][state=repeat]
>
>> \starttext
>> \switchtobodyfont[32pt]
>
>> \setcollector[foo]{\strut eat more...}
>&g
;ve currently set them
>> as page backgrounds, but their content gets reset on each
>> new page.
> use a collector (Details, p.75) instead; I have no experience with them,
> but setup should be the same as for layer.
> % - - - - -
> \definecollector[foo][state=repea
g like a macro
>
> \addtolayer[layername][hoffset=whatever(optional)]{additional content}
>
use a collector (Details, p.75) instead; I have no experience with them,
but setup should be the same as for layer.
% - - - - -
\definecollector[foo][state=repeat]
\starttext
\switchtobodyfont[
18 matches
Mail list logo