ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \type macro weird?
@ 2011-04-25 20:05 Hans van der Meer
  2011-04-25 20:37 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2011-04-25 20:05 UTC (permalink / raw)
  To: NTG ConTeXt

This works fine:
\starttext Here a type macro <\type{\abc}> \stoptext

This also:
\starttext \placetable{table \type{abc} title}{abc} \stoptext

This too:
\starttext \placetable{table \type{\blank} title}{abc} \stoptext

But this gives an error (mind the \ before abc). 
\starttext \placetable{table \type{\abc} title}{abc} \stoptext

Do I misinterprete something here? 
I just wanted to typeset "\abc" in the type-font. 
Why is the very first \abc treated as text to typeset but requires the placetable argument that it is an existing macro?
Or isn't this the intended behaviour?

Hans van der Meer


Error log:
system          > tex > error on line 3 in file test.tex: Undefined control sequence ...

1     \starttext
2     %Here a type macro <\type{\abc}>
3 >>  \placetable{table \type{\abc} title}{abc}
4     \stoptext
5     

\@@kjtabletitle ->table \type {\abc 
                                    } title
\doif #1#2->\edef \!!stringa {#1
                                }\edef \!!stringb {#2}\ifx \!!stringa \!!str...
\dostructurecountercomponent ...\c!title }\v!none 
                                                  {\setfalse \hasstructureco...
\docompletefloat ...c!title ={#4},\c!bookmark =][]
                                                  \globallet \previousfloatn...
<argument> ...{table \type {\abc } title}\nextbox 
                                                  \else \docompletefloat {ta...
\secondoftwoarguments #1#2->#2
                              
...
l.3 \placetable{table \type{\abc} title}{abc}

___________________________________________________________________________________
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] 2+ messages in thread

* Re: \type macro weird?
  2011-04-25 20:05 \type macro weird? Hans van der Meer
@ 2011-04-25 20:37 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-04-25 20:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.04.2011 um 22:05 schrieb Hans van der Meer:

> This works fine:
> \starttext Here a type macro <\type{\abc}> \stoptext
> 
> This also:
> \starttext \placetable{table \type{abc} title}{abc} \stoptext
> 
> This too:
> \starttext \placetable{table \type{\blank} title}{abc} \stoptext
> 
> But this gives an error (mind the \ before abc). 
> \starttext \placetable{table \type{\abc} title}{abc} \stoptext
> 
> Do I misinterprete something here? 
> I just wanted to typeset "\abc" in the type-font. 

Use \tex{abc}.

Wolfgang

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2011-04-25 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-25 20:05 \type macro weird? Hans van der Meer
2011-04-25 20:37 ` Wolfgang Schuster

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).