On 4/16/2013 1:14 PM, Alan BRASLAU wrote:
Since the question has been raised about understanding \define, etc. indeed some use remains a bit unclear (to me).
On Tue, 16 Apr 2013 12:34:48 +0200 Hans Hagen
wrote: there is a commented blob that implements thinsg like this
\starttext \define[2]\whatevera{#1+#2} \whatevera{A}{B} \define[me][too][2]\whateverb{#1+#2+#3+#4} \whateverb[A]{B}{C} \whateverb[A][B]{C}{D} \define[alpha][beta][gamma][delta]\whateverc{#1+#2+#3+#4} \whateverc[P][Q] \stoptext
but it's just an old idea.
I am perhaps a bit bewildered today... but I do not understand the above. It gets too tricky for me!
that's why it's commented code -) \define [optional-arg-1-default][optional-arg-2-default]...[number of {} args] but .. not likely to become enabled anyway (was an experiment)
Or, maybe, I might like to handle authors: \define[2]\Author{\index{#2, #1}#1 #2} \Author{Thomas A.}{Schmitz} But what if I were to type \Author{Aristotle}?
the [] are optional with an optional default
\define[one,two,three]\whatever{first: #one second: #two third: #three}
that's not too complex to implement (as mkvi) if there's enough votes for it
On 4/16/2013 11:10 AM, Thomas A. Schmitz wrote:
It certainly isn't an urgent need, but having
\define[one,two,three]
wouldn't be absurd, now would it?
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------