Redefine symbols for new command \morse{.-..}
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
On 10-12-2010 11:17, Jonas Stein wrote:
\define[]\short{\dontleavehmode \blackrule[width=0.4em]\ } \define[]\long {\dontleavehmode \blackrule[width=1.4em]\ } \define[1] \morse {MAGIC}
\morse{.-..}
up to you to complete the tables ... after that I'll clean up the code a bit ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Jonas Stein