From: Hans van der Meer <hansm@science.uva.nl>
Subject: getting characters
Date: Wed, 25 Jan 2006 10:42:44 +0100 [thread overview]
Message-ID: <36A98D55-BD2D-4D23-AC9D-08AD651688D8@science.uva.nl> (raw)
While fiddling with character strings I found the \getfirstcharacter
macro which is very handy.
However, I am consuming a character string character by character.
Although I have a macro for that, I think it is a good policy to stay
as much as possible within the ConTexT framework when concocting
macro's to be used under ConTeXt.
Now for the question.
\getfirstcharacter puts the first character in \firstcharacter.
I looked for a macro containing the rest of the string but could not
find one.
Something like:
\getfirstcharacter{abc}
then
\firstcharacter = a
\lastcharacters = bc
This will make it possible to process a string character by
character, in the same way as \processcommalist does with comma
separated strings.
But possibly this is already somewhere in the code and I overlooked it.
yours sincerely,
dr. H. van der Meer
next reply other threads:[~2006-01-25 9:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-25 9:42 Hans van der Meer [this message]
2006-01-25 10:00 ` Taco Hoekwater
2006-01-25 10:43 ` Hans Hagen
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=36A98D55-BD2D-4D23-AC9D-08AD651688D8@science.uva.nl \
--to=hansm@science.uva.nl \
--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).