ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* labeltext assignment
@ 2012-06-11  8:01 Philipp Gesang
  2012-06-11  9:03 ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Philipp Gesang @ 2012-06-11  8:01 UTC (permalink / raw)
  To: ConTeXt ML


[-- Attachment #1.1: Type: text/plain, Size: 650 bytes --]

Hi all,

there appears to be something special about how the key-value
list works with \setuplabeltext:

·······································································
  \setuplabeltext [
    foo=bar, %% <- comma not allowed here?
  % foo=bar  %% <- works
  ]
  \starttext
  \labeltext{foo}
  \stoptext
·······································································

Normally the trailing comma causes no trouble, but here it won’t
even compile.

Best regards
Philipp

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: labeltext assignment
  2012-06-11  8:01 labeltext assignment Philipp Gesang
@ 2012-06-11  9:03 ` Hans Hagen
  2012-06-11 19:06   ` Philipp Gesang
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2012-06-11  9:03 UTC (permalink / raw)
  To: ConTeXt ML

On 11-6-2012 10:01, Philipp Gesang wrote:
> Hi all,
>
> there appears to be something special about how the key-value
> list works with \setuplabeltext:
>
> ·······································································
>    \setuplabeltext [
>      foo=bar, %% <- comma not allowed here?
>    % foo=bar  %% <- works
>    ]
>    \starttext
>    \labeltext{foo}
>    \stoptext
> ·······································································
>
> Normally the trailing comma causes no trouble, but here it won’t
> even compile.

indeed a slightly different parser is used here

-----------------------------------------------------------------
                                           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] 18+ messages in thread

* Re: labeltext assignment
  2012-06-11  9:03 ` Hans Hagen
@ 2012-06-11 19:06   ` Philipp Gesang
  2012-06-11 19:27     ` Wolfgang Schuster
  0 siblings, 1 reply; 18+ messages in thread
From: Philipp Gesang @ 2012-06-11 19:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1980 bytes --]

Hi Hans!

···<date: 2012-06-11, Monday>···<from: Hans Hagen>···

> On 11-6-2012 10:01, Philipp Gesang wrote:
> >Hi all,
> >
> >there appears to be something special about how the key-value
> >list works with \setuplabeltext:
> >
> >·······································································
> >   \setuplabeltext [
> >     foo=bar, %% <- comma not allowed here?
> >   % foo=bar  %% <- works
> >   ]
> >   \starttext
> >   \labeltext{foo}
> >   \stoptext
> >·······································································
> >
> >Normally the trailing comma causes no trouble, but here it won’t
> >even compile.
> 
> indeed a slightly different parser is used here

I’ll watch out for these cases, then.

Regards
Philipp


> 
> -----------------------------------------------------------------
>                                           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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: labeltext assignment
  2012-06-11 19:06   ` Philipp Gesang
@ 2012-06-11 19:27     ` Wolfgang Schuster
  2012-06-11 21:33       ` Exceptions to assignment syntax [was: Re: labeltext assignment] Philipp Gesang
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfgang Schuster @ 2012-06-11 19:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 11.06.2012 um 21:06 schrieb Philipp Gesang:

> Hi Hans!
> 
> ···<date: 2012-06-11, Monday>···<from: Hans Hagen>···
> 
>> On 11-6-2012 10:01, Philipp Gesang wrote:
>>> Hi all,
>>> 
>>> there appears to be something special about how the key-value
>>> list works with \setuplabeltext:
>>> 
>>> ·······································································
>>>  \setuplabeltext [
>>>    foo=bar, %% <- comma not allowed here?
>>>  % foo=bar  %% <- works
>>>  ]
>>>  \starttext
>>>  \labeltext{foo}
>>>  \stoptext
>>> ·······································································
>>> 
>>> Normally the trailing comma causes no trouble, but here it won’t
>>> even compile.
>> 
>> indeed a slightly different parser is used here
> 
> I’ll watch out for these cases, then.

\definepalet has a similar problem because it uses also a custom parser.

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] 18+ messages in thread

* Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 19:27     ` Wolfgang Schuster
@ 2012-06-11 21:33       ` Philipp Gesang
  2012-06-11 22:15         ` Aditya Mahajan
  2012-06-12 11:42         ` Marco
  0 siblings, 2 replies; 18+ messages in thread
From: Philipp Gesang @ 2012-06-11 21:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2169 bytes --]

Hi Wolfgang!

···<date: 2012-06-11, Monday>···<from: Wolfgang Schuster>···

> 
> Am 11.06.2012 um 21:06 schrieb Philipp Gesang:
> 
> > Hi Hans!
> > 
> > ···<date: 2012-06-11, Monday>···<from: Hans Hagen>···
> > 
> >> On 11-6-2012 10:01, Philipp Gesang wrote:
> >>> Hi all,
> >>> 
> >>> there appears to be something special about how the key-value
> >>> list works with \setuplabeltext:
> >>> 
> >>> ·······································································
> >>>  \setuplabeltext [
> >>>    foo=bar, %% <- comma not allowed here?
> >>>  % foo=bar  %% <- works
> >>>  ]
> >>>  \starttext
> >>>  \labeltext{foo}
> >>>  \stoptext
> >>> ·······································································
> >>> 
> >>> Normally the trailing comma causes no trouble, but here it won’t
> >>> even compile.
> >> 
> >> indeed a slightly different parser is used here
> > 
> > I’ll watch out for these cases, then.
> 
> \definepalet has a similar problem because it uses also a custom parser.

Dear others, please contribute if you know about further setups
whose parameters behave in a non-standard way. As this is quite
counterintuitive, I’d like to wikify any known exceptions
somewhere over here:
http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups

Thanks
Philipp




> 
> 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 21:33       ` Exceptions to assignment syntax [was: Re: labeltext assignment] Philipp Gesang
@ 2012-06-11 22:15         ` Aditya Mahajan
  2012-06-11 22:22           ` Aditya Mahajan
  2012-06-11 22:27           ` Philipp Gesang
  2012-06-12 11:42         ` Marco
  1 sibling, 2 replies; 18+ messages in thread
From: Aditya Mahajan @ 2012-06-11 22:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 618 bytes --]

On Mon, 11 Jun 2012, Philipp Gesang wrote:

> Dear others, please contribute if you know about further setups
> whose parameters behave in a non-standard way. As this is quite
> counterintuitive, I’d like to wikify any known exceptions
> somewhere over here:
> http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups

That is not a place where I will look for if I were confused. Perhaps it 
is better to create a patch entitled "Its not a bug, its a feature" (or 
something similar, that lists things like this (and the left vs 
leftflushed that is listed in the FAQ).

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 22:15         ` Aditya Mahajan
@ 2012-06-11 22:22           ` Aditya Mahajan
  2012-06-11 22:34             ` Philipp Gesang
  2012-06-12 10:24             ` Wolfgang Schuster
  2012-06-11 22:27           ` Philipp Gesang
  1 sibling, 2 replies; 18+ messages in thread
From: Aditya Mahajan @ 2012-06-11 22:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1184 bytes --]

On Mon, 11 Jun 2012, Aditya Mahajan wrote:

> On Mon, 11 Jun 2012, Philipp Gesang wrote:
>
>> Dear others, please contribute if you know about further setups
>> whose parameters behave in a non-standard way. As this is quite
>> counterintuitive, I’d like to wikify any known exceptions
>> somewhere over here:
>> http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
>
> That is not a place where I will look for if I were confused. Perhaps it is 
> better to create a patch entitled "Its not a bug, its a feature" (or 
> something similar, that lists things like this (and the left vs leftflushed 
> that is listed in the FAQ).

Other potential topics that fit better on such a page:

* Why is space after \externalfigure[..][..] gobbled? (in the FAQ)
* Why does \framed not work in the beginning of a line (or why we need
\dontleavehmode) (in the FAQ)
* Why page=yes does not give a page break before sections (why we need to 
add continue=no) (in the ML a few days ago)
* Why does marking=on not work when page-layout=print-layout (the marking 
is outside the page-layout). (in the ML a few weeks ago, and on tex.sx)

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 22:15         ` Aditya Mahajan
  2012-06-11 22:22           ` Aditya Mahajan
@ 2012-06-11 22:27           ` Philipp Gesang
  1 sibling, 0 replies; 18+ messages in thread
From: Philipp Gesang @ 2012-06-11 22:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1115 bytes --]

Hi Aditya!

···<date: 2012-06-11, Monday>···<from: Aditya Mahajan>···

> On Mon, 11 Jun 2012, Philipp Gesang wrote:
> 
> >Dear others, please contribute if you know about further setups
> >whose parameters behave in a non-standard way. As this is quite
> >counterintuitive, I’d like to wikify any known exceptions
> >somewhere over here:
> >http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
> 
> That is not a place where I will look for if I were confused.

Of course this was meant in addition to the respective entries in
the reference, where I would look first.

> Perhaps it is better to create a patch entitled "Its not a bug, its
> a feature" (or something similar, that lists things like this (and
> the left vs leftflushed that is listed in the FAQ).

“Caveats” might work well, but we can redirect anyways. I’d add
the \setupnote vs. \setupnotation as I always have to look up
which is which.

Regards
Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 22:22           ` Aditya Mahajan
@ 2012-06-11 22:34             ` Philipp Gesang
  2012-06-12 10:24             ` Wolfgang Schuster
  1 sibling, 0 replies; 18+ messages in thread
From: Philipp Gesang @ 2012-06-11 22:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 836 bytes --]

Hi Aditya!

···<date: 2012-06-11, Monday>···<from: Aditya Mahajan>···

> On Mon, 11 Jun 2012, Aditya Mahajan wrote:
> >On Mon, 11 Jun 2012, Philipp Gesang wrote:
> Other potential topics that fit better on such a page:
> 
> * Why is space after \externalfigure[..][..] gobbled? (in the FAQ)
> * Why does \framed not work in the beginning of a line (or why we need
> \dontleavehmode) (in the FAQ)
> * Why page=yes does not give a page break before sections (why we
> need to add continue=no) (in the ML a few days ago)
> * Why does marking=on not work when page-layout=print-layout (the
> marking is outside the page-layout). (in the ML a few weeks ago, and
> on tex.sx)

Let’s not forget the float vs. paragraph issue:
http://tex.stackexchange.com/questions/56388/avoid-line-break-after-macro

Philipp


[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 22:22           ` Aditya Mahajan
  2012-06-11 22:34             ` Philipp Gesang
@ 2012-06-12 10:24             ` Wolfgang Schuster
  1 sibling, 0 replies; 18+ messages in thread
From: Wolfgang Schuster @ 2012-06-12 10:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.06.2012 um 00:22 schrieb Aditya Mahajan:

> On Mon, 11 Jun 2012, Aditya Mahajan wrote:
> 
>> On Mon, 11 Jun 2012, Philipp Gesang wrote:
>> 
>>> Dear others, please contribute if you know about further setups
>>> whose parameters behave in a non-standard way. As this is quite
>>> counterintuitive, I’d like to wikify any known exceptions
>>> somewhere over here:
>>> http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
>> 
>> That is not a place where I will look for if I were confused. Perhaps it is better to create a patch entitled "Its not a bug, its a feature" (or something similar, that lists things like this (and the left vs leftflushed that is listed in the FAQ).
> 
> Other potential topics that fit better on such a page:
> 
> * Why is space after \externalfigure[..][..] gobbled? (in the FAQ)

This has in MkIV a long time ago.

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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-11 21:33       ` Exceptions to assignment syntax [was: Re: labeltext assignment] Philipp Gesang
  2012-06-11 22:15         ` Aditya Mahajan
@ 2012-06-12 11:42         ` Marco
  2012-06-12 13:58           ` Hans Hagen
  1 sibling, 1 reply; 18+ messages in thread
From: Marco @ 2012-06-12 11:42 UTC (permalink / raw)
  To: ntg-context

On 2012-06-11 Philipp Gesang <gesang@stud.uni-heidelberg.de> wrote:

> Dear others, please contribute if you know about further setups
> whose parameters behave in a non-standard way.

Here's another candidate: \usepath

http://article.gmane.org/gmane.comp.tex.context/75727

> As this is quite counterintuitive, I’d like to wikify any known
> exceptions somewhere over here:

How about unifying the interface? IMO that would make more sense
then bury the “caveats” somewhere deep in the wiki.


Marco


___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-12 11:42         ` Marco
@ 2012-06-12 13:58           ` Hans Hagen
  2012-06-12 14:24             ` Marco
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2012-06-12 13:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Marco

On 12-6-2012 13:42, Marco wrote:
> On 2012-06-11 Philipp Gesang <gesang@stud.uni-heidelberg.de> wrote:
>
>> Dear others, please contribute if you know about further setups
>> whose parameters behave in a non-standard way.
>
> Here's another candidate: \usepath
>
> http://article.gmane.org/gmane.comp.tex.context/75727

that's one that can be dealt with (I'll adapt that one)

>> As this is quite counterintuitive, I’d like to wikify any known
>> exceptions somewhere over here:
>
> How about unifying the interface? IMO that would make more sense
> then bury the “caveats” somewhere deep in the wiki.

that's currently not feasable for all

-----------------------------------------------------------------
                                           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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-12 13:58           ` Hans Hagen
@ 2012-06-12 14:24             ` Marco
  2012-06-12 14:33               ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Marco @ 2012-06-12 14:24 UTC (permalink / raw)
  To: ntg-context

On 2012-06-12 Hans Hagen <pragma@wxs.nl> wrote:

> On 12-6-2012 13:42, Marco wrote:
> > On 2012-06-11 Philipp Gesang <gesang@stud.uni-heidelberg.de> wrote:
> >
> >> Dear others, please contribute if you know about further setups
> >> whose parameters behave in a non-standard way.
> >
> > Here's another candidate: \usepath
> >
> > http://article.gmane.org/gmane.comp.tex.context/75727
> 
> that's one that can be dealt with (I'll adapt that one)

While you're at it, check \usesubpath as well. I didn't test, but
assume it has the same issue.

> >> As this is quite counterintuitive, I’d like to wikify any known
> >> exceptions somewhere over here:
> >
> > How about unifying the interface? IMO that would make more sense
> > then bury the “caveats” somewhere deep in the wiki.
> 
> that's currently not feasable for all

What's the reason? Performance of backwards compatibility?

Personally, I would sacrifice some runtime in favour of a more
uniform interface. That's one of the main ideas that define ConTeXt
and set it apart from other TeX macro packages.

Regarding the backwards compatibility, wasn't MkIV the chance to
introduce incompatible changes (changes for improving the user
interface :)?


Marco


___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-12 14:24             ` Marco
@ 2012-06-12 14:33               ` Hans Hagen
  2012-06-12 14:41                 ` Philipp Gesang
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2012-06-12 14:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Marco

On 12-6-2012 16:24, Marco wrote:

> While you're at it, check \usesubpath as well. I didn't test, but
> assume it has the same issue.

uses the same code

>>>> As this is quite counterintuitive, I’d like to wikify any known
>>>> exceptions somewhere over here:
>>>
>>> How about unifying the interface? IMO that would make more sense
>>> then bury the “caveats” somewhere deep in the wiki.
>>
>> that's currently not feasable for all
>
> What's the reason? Performance of backwards compatibility?

more that we cannot use the regular parser

> Personally, I would sacrifice some runtime in favour of a more
> uniform interface. That's one of the main ideas that define ConTeXt
> and set it apart from other TeX macro packages.

if you have completed the list i can see what can be done otherwise

(runtime is often not the reason esp not for macros that get used only a 
few times in a run)

> Regarding the backwards compatibility, wasn't MkIV the chance to
> introduce incompatible changes (changes for improving the user
> interface :)?

sure

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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-12 14:33               ` Hans Hagen
@ 2012-06-12 14:41                 ` Philipp Gesang
  2012-06-12 17:13                   ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Philipp Gesang @ 2012-06-12 14:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2501 bytes --]

Hi Hans!

···<date: 2012-06-12, Tuesday>···<from: Hans Hagen>···

> On 12-6-2012 16:24, Marco wrote:
> 
> >While you're at it, check \usesubpath as well. I didn't test, but
> >assume it has the same issue.
> 
> uses the same code
> 
> >>>>As this is quite counterintuitive, I’d like to wikify any known
> >>>>exceptions somewhere over here:
> >>>
> >>>How about unifying the interface? IMO that would make more sense
> >>>then bury the “caveats” somewhere deep in the wiki.
> >>
> >>that's currently not feasable for all
> >
> >What's the reason? Performance of backwards compatibility?
> 
> more that we cannot use the regular parser
> 
> >Personally, I would sacrifice some runtime in favour of a more
> >uniform interface. That's one of the main ideas that define ConTeXt
> >and set it apart from other TeX macro packages.
> 
> if you have completed the list i can see what can be done otherwise

I’ll be collecting candidates for the wiki page until saturday
and then write up a draft, maybe submit it to the list for review
first. I can draw up a preliminary list first so you can have a
look at it.

Philipp

> (runtime is often not the reason esp not for macros that get used
> only a few times in a run)
> 
> >Regarding the backwards compatibility, wasn't MkIV the chance to
> >introduce incompatible changes (changes for improving the user
> >interface :)?
> 
> sure
> 
> 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-12 14:41                 ` Philipp Gesang
@ 2012-06-12 17:13                   ` Hans Hagen
  2012-06-16 13:19                     ` Philipp Gesang
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2012-06-12 17:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12-6-2012 16:41, Philipp Gesang wrote:

> I’ll be collecting candidates for the wiki page until saturday
> and then write up a draft, maybe submit it to the list for review
> first. I can draw up a preliminary list first so you can have a
> look at it.

next week is ok

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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-12 17:13                   ` Hans Hagen
@ 2012-06-16 13:19                     ` Philipp Gesang
  2012-06-18  9:46                       ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Philipp Gesang @ 2012-06-16 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 977 bytes --]

Hi Hans!

···<date: 2012-06-12, Tuesday>···<from: Hans Hagen>···

> On 12-6-2012 16:41, Philipp Gesang wrote:
> 
> >I’ll be collecting candidates for the wiki page until saturday
> >and then write up a draft, maybe submit it to the list for review
> >first. I can draw up a preliminary list first so you can have a
> >look at it.
> 
> next week is ok

Here’s some pre-alpha draft version with some links I collected:
  https://gist.github.com/2941284
(The gist is auto-converted; use the “raw” or “edit” buttons to
view the code. The content of <texcode> is messed up in the
output.)

Unfortunately I won’t be able to complete it this weekend as I
planned to, because Reality™ demands that I spend my time on
paperwork instead.

This means there’s plenty of times for further suggestions.

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 18+ messages in thread

* Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
  2012-06-16 13:19                     ` Philipp Gesang
@ 2012-06-18  9:46                       ` Hans Hagen
  0 siblings, 0 replies; 18+ messages in thread
From: Hans Hagen @ 2012-06-18  9:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 16-6-2012 15:19, Philipp Gesang wrote:
> Hi Hans!
>
> ···<date: 2012-06-12, Tuesday>···<from: Hans Hagen>···
>
>> On 12-6-2012 16:41, Philipp Gesang wrote:
>>
>>> I’ll be collecting candidates for the wiki page until saturday
>>> and then write up a draft, maybe submit it to the list for review
>>> first. I can draw up a preliminary list first so you can have a
>>> look at it.
>>
>> next week is ok
>
> Here’s some pre-alpha draft version with some links I collected:
>    https://gist.github.com/2941284
> (The gist is auto-converted; use the “raw” or “edit” buttons to
> view the code. The content of <texcode> is messed up in the
> output.)
>
> Unfortunately I won’t be able to complete it this weekend as I
> planned to, because Reality™ demands that I spend my time on
> paperwork instead.

palets ... the trailing comma is actually an error but anyway we can have:

\def\colo_palets_define_one#1#2% get rid of { }
   {\doifassignmentelse{#2} % catch empty entries
      {\colo_palets_define_two{#1}[#2]}
      {\colo_palets_define_three{#1}{#2}}}

\def\colo_palets_define_three#1#2%
   {\ifcsname\??colorpaletspecification#2\endcsname
 
\processcommacommand[\csname\??colorpaletspecification#2\endcsname]{\colo_palets_define_one{#1}}%
    \fi}

which then also supports:

\setupcolors [x11]

\definepalet [colorful] [primary=green]

\definepalet [bleak] [primary=darkgray,colorful]

\starttext
     \setuppalet [colorful]
     \color[primary]{Ain’t I a colorful entity?}
     \setuppalet [bleak]
     \color[primary]{Ain’t I a colorful entity?}
\stoptext

i.e. a hidden feature of referencing to already defined palets.

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] 18+ messages in thread

end of thread, other threads:[~2012-06-18  9:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-11  8:01 labeltext assignment Philipp Gesang
2012-06-11  9:03 ` Hans Hagen
2012-06-11 19:06   ` Philipp Gesang
2012-06-11 19:27     ` Wolfgang Schuster
2012-06-11 21:33       ` Exceptions to assignment syntax [was: Re: labeltext assignment] Philipp Gesang
2012-06-11 22:15         ` Aditya Mahajan
2012-06-11 22:22           ` Aditya Mahajan
2012-06-11 22:34             ` Philipp Gesang
2012-06-12 10:24             ` Wolfgang Schuster
2012-06-11 22:27           ` Philipp Gesang
2012-06-12 11:42         ` Marco
2012-06-12 13:58           ` Hans Hagen
2012-06-12 14:24             ` Marco
2012-06-12 14:33               ` Hans Hagen
2012-06-12 14:41                 ` Philipp Gesang
2012-06-12 17:13                   ` Hans Hagen
2012-06-16 13:19                     ` Philipp Gesang
2012-06-18  9:46                       ` 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).