On 28.10.24 12:18, Henning Hraban Ramm wrote:
Hi, I’m trying to use a command line argument in parameter names – color name in the example below, variable namespace in my actual project.
I guess I need more expansion, but where?
Or what’s the problem here?

Perhaps my approach is too simplistic, but if I had to do something like that, I would use modes:

\startmode [fiee]
  \definecolor [OEM] [c=1]
  \def{OEM}{fiee}
\stopmode

and for the fallback, use

\startnotallmodes [...]

then you can call from the command line with --mode=fiee and write

\color[OEM]{Company: \OEM}

But maybe your needs are more complex...

All best

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to