* \cldcommand
@ 2012-11-29 8:32 Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-29 9:27 ` \cldcommand Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-11-29 8:32 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]
Hello,
the following shortening "\ctxlua{commands.doif" to "\cldcommand{doif" doesn't work as I'd expect, although it should be equal:
----
\starttext
A
\ctxlua{commands.doif(true)}{T} % Gives "T" - that's OK
\cldcommand{doif(true)}{t} % Gives nothing; why?
B
\stoptext
----
Probably very basic question... What am I doing wrong?
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
[-- Attachment #2: t-CldCmd.mkiv --]
[-- Type: application/octet-stream, Size: 102 bytes --]
\starttext
A
\ctxlua{commands.doif(true)}{T}
\cldcommand{doif(true)}{t}
B
\stoptext
[-- Attachment #3: t-CldCmd.pdf --]
[-- Type: application/pdf, Size: 4966 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \cldcommand
2012-11-29 8:32 \cldcommand Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-11-29 9:27 ` Hans Hagen
2012-11-29 13:06 ` \cldcommand Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2012-11-29 9:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/29/2012 9:32 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello,
>
> the following shortening "\ctxlua{commands.doif" to "\cldcommand{doif"
> doesn't work as I'd expect, although it should be equal:
>
> ----
> \starttext
> A
>
> \ctxlua{commands.doif(true)}{T} % Gives "T" - that's OK
> \cldcommand{doif(true)}{t} % Gives nothing; why?
>
> B
> \stoptext
> ----
>
> Probably very basic question... What am I doing wrong?
indeed as it's \ctxcommand
the \cldcommand does a context.doif an that one takes three arguments
so you've something to wikify: :
\starttext
A
\ctxlua{commands.doif(true)}{one}
B
\cldcommand{doif("a","a","two")}
C
\ctxcommand{doif(true)}{three}
D
\stoptext
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \cldcommand
2012-11-29 9:27 ` \cldcommand Hans Hagen
@ 2012-11-29 13:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 0 replies; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-11-29 13:06 UTC (permalink / raw)
To: ConTeXt
On Thu, 29 Nov 2012 10:27:36 +0100, Hans Hagen <pragma@wxs.nl> wrote:
> On 11/29/2012 9:32 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> indeed as it's \ctxcommand
>
> the \cldcommand does a context.doif an that one takes three arguments
>
> so you've something to wikify: :
>
> \starttext
> A
>
> \ctxlua{commands.doif(true)}{one}
>
> B
>
> \cldcommand{doif("a","a","two")}
>
> C
>
> \ctxcommand{doif(true)}{three}
>
> D
>
> \stoptext
Thanks for explanation - added to http://wiki.contextgarden.net/Command/ctxcommand
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-29 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 8:32 \cldcommand Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-29 9:27 ` \cldcommand Hans Hagen
2012-11-29 13:06 ` \cldcommand Procházka Lukáš Ing. - Pontex s. r. o.
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).