From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: catcode change in macros
Date: Fri, 14 Nov 2008 19:22:19 +0100 [thread overview]
Message-ID: <F3A7B988-B622-4B09-B181-3AD2C96A913C@gmail.com> (raw)
Hi,
I make in a module the comment sign a simple letter to pass
number formats to a lua function and want to know if should
use another (better) way to change the catodes.
\def\????ax{@@@@ax}
\bgroup
\catcode`\%=11
\catcode`\:=14
\gdef\setupaxis
{\catcode`\%=11
\catcode`\:=14
\dodoubleargument\dosetupaxis}
\gdef\dosetupaxis[#1][#2]:
{\catcode`\%=11
\catcode`\:=14
\def\docommand##1{\getparameters[\????ax##1][#2]}:
\catcode`\%=14
\catcode`\:=12
\processcommalist[#1]\docommand}
\egroup
\setupaxis
[\c!x,\c!y]
[\c!format=%d]
Regards,
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2008-11-14 18:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 18:22 Wolfgang Schuster [this message]
2008-11-14 18:36 ` Aditya Mahajan
2008-11-14 18:37 ` Aditya Mahajan
2008-11-14 18:51 ` Wolfgang Schuster
2008-11-15 13:13 ` Wolfgang Schuster
2008-11-15 20:06 ` Aditya Mahajan
2008-11-15 20:41 ` Hans Hagen
2008-11-15 20:59 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F3A7B988-B622-4B09-B181-3AD2C96A913C@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).