ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \processcommalist with any separator
Date: Thu, 24 Jan 2013 21:35:56 +0100	[thread overview]
Message-ID: <51019B2C.1080002@gyza.cz> (raw)

Hello ConTeXist.

I use the \processcommalist command and at this point I would like to 
see if there is any possibility of using a similar command but with the 
custom separator. Not to me to use a comma as a separator, because I 
need to have a comma as a character in the processed item list.

Thanks Jaroslav Hajtmar


Here is my inspirative minimal example:

\def\setmyownparameter#1#2{%
\global\def\myparameter{#2}#1%
}%%

\def\processmylist[#1]#2%
   {\processcommalist[#1]{\setmyownparameter{#2}}}


\startbuffer[mybuffer]
Here I use my parameter \myparameter.\par
\stopbuffer


\starttext

\processmylist[firstparameter, secondparameter, thirdparameter]{
\getbuffer[mybuffer]
}


% I would like use for example * as list separator (best option to 
choose any character).

%\processmylist[Hello, He said.*Here is comma, used too.* And here is 
comma, too.]{
%\getbuffer[mybuffer]
%}


\stoptext

___________________________________________________________________________________
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	other threads:[~2013-01-24 20:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24 20:35 Jaroslav Hajtmar [this message]
2013-01-24 20:49 ` Wolfgang Schuster
2013-01-24 21:02   ` Jaroslav Hajtmar

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=51019B2C.1080002@gyza.cz \
    --to=hajtmar@gyza.cz \
    --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).