ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Redefine symbols for new command \morse{.-..}
@ 2010-12-10 10:17 Jonas Stein
  2010-12-10 12:09 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Stein @ 2010-12-10 10:17 UTC (permalink / raw)
  To: ntg-context

i'd like to define a new command

\define[]\short{\dontleavehmode \blackrule[width=0.4em]\ }
\define[]\long {\dontleavehmode \blackrule[width=1.4em]\ }
\define[1] \morse {MAGIC}

\morse{.-..} 
should create a \short for every '.' and \long for every '-'
But this transcription should be only active in the 
"morse environment"

Is that possible? Who knows the MAGIC?

Kind regards,

-- 
Jonas Stein <news@jonasstein.de>

___________________________________________________________________________________
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:[~2010-12-10 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10 10:17 Redefine symbols for new command \morse{.-..} Jonas Stein
2010-12-10 12:09 ` Hans Hagen

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