* \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
* Re: \processcommalist with any separator
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
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-01-24 20:49 UTC (permalink / raw)
To: hajtmar, mailing list for ConTeXt users
Am 24.01.2013 um 21:35 schrieb Jaroslav Hajtmar <hajtmar@gyza.cz>:
> 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.
\starttext
\define[1]\ListEntry{#1\par}
\processcommalist[one,two,{three,four}]\ListEntry
\blank
\processseparatedlist[one;two;three,four][;]\ListEntry
\stoptext
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \processcommalist with any separator
2013-01-24 20:49 ` Wolfgang Schuster
@ 2013-01-24 21:02 ` Jaroslav Hajtmar
0 siblings, 0 replies; 3+ messages in thread
From: Jaroslav Hajtmar @ 2013-01-24 21:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanx Wolfgang
Great - it works - that's what I needed ..
I apologize, but I have not found anywhere command \processseparatedlist ...
respectively. I did not know exactly what to look for.
Jaroslav Hajtmar
Dne 24.1.2013 21:49, Wolfgang Schuster napsal(a):
> Am 24.01.2013 um 21:35 schrieb Jaroslav Hajtmar <hajtmar@gyza.cz>:
>
>> 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.
> \starttext
>
> \define[1]\ListEntry{#1\par}
>
> \processcommalist[one,two,{three,four}]\ListEntry
>
> \blank
>
> \processseparatedlist[one;two;three,four][;]\ListEntry
>
> \stoptext
>
> 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 : 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).