* Meta(post)/(fun) macro with label position
@ 2023-01-19 21:40 Alexandre Christe via ntg-context
2023-01-20 0:29 ` Jeong Dal via ntg-context
2023-01-20 0:56 ` Alan Braslau via ntg-context
0 siblings, 2 replies; 4+ messages in thread
From: Alexandre Christe via ntg-context @ 2023-01-19 21:40 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Alexandre Christe
[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]
Dear list,
Is there a way in a Meta(post)/(fun) macro to specify the label position as
an argument?
def labelT(expr pos)(text t) =
...
enddef;
Thanks a lot in advance,
Alex
[-- Attachment #1.2: Type: text/html, Size: 301 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Meta(post)/(fun) macro with label position
2023-01-19 21:40 Meta(post)/(fun) macro with label position Alexandre Christe via ntg-context
@ 2023-01-20 0:29 ` Jeong Dal via ntg-context
2023-01-20 0:56 ` Alan Braslau via ntg-context
1 sibling, 0 replies; 4+ messages in thread
From: Jeong Dal via ntg-context @ 2023-01-20 0:29 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
[-- Attachment #1.1: Type: text/plain, Size: 269 bytes --]
Dear Alex,
I don’t know what you want exactly.
I hope that it may help.
\startMPpage
def myLabel(expr xpos, ypos)(text t) =
dotlabel.top(textext(t),(xpos,ypos));
enddef;
myLabel(1cm, 1cm, "Position");
\stoppage
Good luck.
Best regards,
Dalyoung
[-- Attachment #1.2: Type: text/html, Size: 1922 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Meta(post)/(fun) macro with label position
2023-01-19 21:40 Meta(post)/(fun) macro with label position Alexandre Christe via ntg-context
2023-01-20 0:29 ` Jeong Dal via ntg-context
@ 2023-01-20 0:56 ` Alan Braslau via ntg-context
2023-01-20 6:13 ` Alexandre Christe via ntg-context
1 sibling, 1 reply; 4+ messages in thread
From: Alan Braslau via ntg-context @ 2023-01-20 0:56 UTC (permalink / raw)
To: Alexandre Christe via ntg-context; +Cc: Alan Braslau
On Thu, 19 Jan 2023 22:40:13 +0100
Alexandre Christe via ntg-context <ntg-context@ntg.nl> wrote:
> def labelT(expr pos)(text t) =
> ...
> enddef;
vardef labelT@#(text t) =
...
enddef ;
Then you can pass on the "suffix" @#
Alan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Meta(post)/(fun) macro with label position
2023-01-20 0:56 ` Alan Braslau via ntg-context
@ 2023-01-20 6:13 ` Alexandre Christe via ntg-context
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Christe via ntg-context @ 2023-01-20 6:13 UTC (permalink / raw)
To: Alan Braslau; +Cc: Alexandre Christe, Alexandre Christe via ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 430 bytes --]
Thank you so much Alan, that was exactly what I was looking for.
Le ven. 20 janv. 2023 à 01:56, Alan Braslau <alan.braslau@icloud.com> a
écrit :
> On Thu, 19 Jan 2023 22:40:13 +0100
> Alexandre Christe via ntg-context <ntg-context@ntg.nl> wrote:
>
> > def labelT(expr pos)(text t) =
> > ...
> > enddef;
>
> vardef labelT@#(text t) =
> ...
> enddef ;
>
> Then you can pass on the "suffix" @#
>
> Alan
>
[-- Attachment #1.2: Type: text/html, Size: 865 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-20 6:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 21:40 Meta(post)/(fun) macro with label position Alexandre Christe via ntg-context
2023-01-20 0:29 ` Jeong Dal via ntg-context
2023-01-20 0:56 ` Alan Braslau via ntg-context
2023-01-20 6:13 ` Alexandre Christe via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).