[NTG-context] Re: collector advice

2024-09-12 Thread jbf
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

[NTG-context] Re: collector advice

2024-09-12 Thread Wolfgang Schuster
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

[NTG-context] collector advice

2024-09-11 Thread jbf
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

[NTG-context] overthinking overprinting

2022-05-19 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Adam Reviczky via ntg-context
][{\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

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Jan-Erik Hägglöf
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

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Wolfgang Schuster
.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

Re: [NTG-context] Presets in collectors

2012-11-10 Thread Marco Patzer
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

[NTG-context] Presets in collectors

2012-11-09 Thread Marco Patzer
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

Re: [NTG-context] animation error

2011-09-06 Thread Wolfgang Schuster
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,

Re: [NTG-context] Labelling figures

2008-09-16 Thread Hans Hagen
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

Re: [NTG-context] Labelling figures

2008-09-16 Thread Wolfgang Schuster
\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

[NTG-context] Labelling figures

2008-06-06 Thread Wolfgang Schuster
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]{

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
]{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 #

Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Peter Rolf
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

Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
;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

Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Peter Rolf
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[