ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Macro expansion inside \type
@ 2014-01-10  3:10 Devendra Ghate
  2014-01-10  6:00 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Devendra Ghate @ 2014-01-10  3:10 UTC (permalink / raw)
  To: ntg-context

Hello Everyone,

Consider the following MWE:

\define\author{Devendra Ghate}
\starttext
  \type{\author}
\stoptext

As mentioned on the wiki, this doesn't expand `\author` but rather
prints it as it is. However, I would like `\author` to be expanded
before it is typeset.

Is this possible?

Regards,
Devendra Ghate
___________________________________________________________________________________
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: Macro expansion inside \type
  2014-01-10  3:10 Macro expansion inside \type Devendra Ghate
@ 2014-01-10  6:00 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2014-01-10  6:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 10 Jan 2014, Devendra Ghate wrote:

> Hello Everyone,
>
> Consider the following MWE:
>
> \define\author{Devendra Ghate}
> \starttext
> \type{\author}
> \stoptext
>
> As mentioned on the wiki, this doesn't expand `\author` but rather
> prints it as it is. However, I would like `\author` to be expanded
> before it is typeset.

Type is for verbatim material. If you want monospaced fonts, use 
\mono{\author}.

Aditya
___________________________________________________________________________________
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:[~2014-01-10  6:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10  3:10 Macro expansion inside \type Devendra Ghate
2014-01-10  6:00 ` Aditya Mahajan

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