ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \processcommalist with any separator
@ 2013-01-24 20:35 Jaroslav Hajtmar
  2013-01-24 20:49 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Hajtmar @ 2013-01-24 20:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-24 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-24 20:35 \processcommalist with any separator Jaroslav Hajtmar
2013-01-24 20:49 ` Wolfgang Schuster
2013-01-24 21:02   ` Jaroslav Hajtmar

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