Am 04.07.2011 um 17:02 schrieb Willi Egger:

> Hi all,
> 
> experimenting with context.labeltext...
> 
> My question is how can I tweak the context.labeltext(text) command at the 
> lua-side to make ConTeXt to typeset  the labeltext starting with an uppercase 
> letter? e.g.  if "text" contains "january" to display "January"?


You can access constants and variables with “interfaces.constants” and 
“interfaces.variables”:

\starttext

\startluacode
context.labeltext("%s",interfaces.variables.january)
\stopluacode

\stoptext

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
___________________________________________________________________________________

Reply via email to