* suggestion: setups for \startitem
@ 2013-07-04 7:32 Thomas A. Schmitz
2013-07-06 10:10 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Thomas A. Schmitz @ 2013-07-04 7:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
this is just a small suggestion for the interface: since a while, we've
had \startitem \stopitem. Would it be possible / feasible / interesting
to add a bit of configuration to it? I tried looking at the source. but
couldn't find anything. This minimal example explains what I mean:
\starttext
\startitemize
\item One
\item Two
\sym{$\Rightarrow$} Three
\stopitemize
\startitemize
\startitem
One
\stopitem
\startitem
Two
\stopitem
\startitem[sym=$\Rightarrow$]
Three
\stopitem
\stopitemize
\stoptext
How to achieve the result of #1 with the syntax in #2?
Thanks and best wishes
Thomas
___________________________________________________________________________________
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: suggestion: setups for \startitem
2013-07-04 7:32 suggestion: setups for \startitem Thomas A. Schmitz
@ 2013-07-06 10:10 ` Wolfgang Schuster
2013-07-06 12:58 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-07-06 10:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 04.07.2013 um 09:32 schrieb Thomas A. Schmitz <thomas.schmitz@uni-bonn.de>:
> Hi,
>
> this is just a small suggestion for the interface: since a while, we've had \startitem \stopitem. Would it be possible / feasible / interesting to add a bit of configuration to it? I tried looking at the source. but couldn't find anything. This minimal example explains what I mean:
>
> \starttext
>
> \startitemize
> \item One
> \item Two
> \sym{$\Rightarrow$} Three
> \stopitemize
>
>
> \startitemize
> \startitem
> One
> \stopitem
> \startitem
> Two
> \stopitem
> \startitem[sym=$\Rightarrow$]
> Three
> \stopitem
> \stopitemize
>
> \stoptext
>
> How to achieve the result of #1 with the syntax in #2?
You have the change the definition for \startitem but I would go for a bigger change which includes also \head, \txt etc.
To do this one could write
\startitem[alternative=head,text=…]
one could use it as synonym for \starthead or with
\startitem[alternative=symbol,text=…]
as alternative for \sym. Since references are lost with this method you can write “reference=…” in the argument.
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: suggestion: setups for \startitem
2013-07-06 10:10 ` Wolfgang Schuster
@ 2013-07-06 12:58 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2013-07-06 12:58 UTC (permalink / raw)
To: ntg-context
On 7/6/2013 12:10 PM, Wolfgang Schuster wrote:
> To do this one could write
>
> \startitem[alternative=head,text=…]
>
> one could use it as synonym for \starthead or with
>
> \startitem[alternative=symbol,text=…]
>
> as alternative for \sym. Since references are lost with this method you can write “reference=…” in the argument.
Currently I'm a bit careful with changes as I'm using a 'copy' of
context mkiv that has been adapted to a potential upcoming Lua related
speedup that Luigi and I are working on. We will present most of that at
the context conference (among other things).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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-07-06 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-04 7:32 suggestion: setups for \startitem Thomas A. Schmitz
2013-07-06 10:10 ` Wolfgang Schuster
2013-07-06 12:58 ` Hans Hagen
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).