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?
"""
\setupbodyfont[plex,18pt]
% set \OEM to the parameter name, fall back to "fiee"
\expanded\define\OEM{\expanded\doifelsedocumentargument{OEM}{\expanded\getdocumentargument{OEM}}{fiee}}
\definecolor[col:fiee][c=1]
\definecolor[col:pragma][m=1,y=1]
\definecolor[col:black][k=1]
\starttext
\color[col:\OEM]{Company: \OEM}
\stoptext
"""
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________