* groupedcommand with color
@ 2012-02-14 11:55 Steffen Wolfrum
2012-02-14 12:21 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-02-14 11:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
\define\PlainSwitch%
{\groupedcommand{\language[de]\ss}{}}
\define\ColorSwitch%
{\groupedcommand{\language[de]\ss\color[darkred]}{}}
\starttext
English: \date
{\PlainSwitch German \date}
English: \date
{\ColorSwitch German \date}
Test \date
\stoptext
Someone knows what to change here (in order to get the red "G" back)?
Thanks, Steffen
___________________________________________________________________________________
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] 7+ messages in thread
* Re: groupedcommand with color
2012-02-14 11:55 groupedcommand with color Steffen Wolfrum
@ 2012-02-14 12:21 ` Hans Hagen
2012-02-14 12:37 ` Steffen Wolfrum
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2012-02-14 12:21 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum
On 14-2-2012 12:55, Steffen Wolfrum wrote:
> Hi,
>
> due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
>
>
> \define\PlainSwitch%
> {\groupedcommand{\language[de]\ss}{}}
>
> \define\ColorSwitch%
> {\groupedcommand{\language[de]\ss\color[darkred]}{}}
>
> \starttext
>
> English: \date
>
> {\PlainSwitch German \date}
>
> English: \date
>
> {\ColorSwitch German \date}
>
> Test \date
>
> \stoptext
>
> Someone knows what to change here (in order to get the red "G" back)?
something
{\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}}
-----------------------------------------------------------------
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] 7+ messages in thread
* Re: groupedcommand with color
2012-02-14 12:21 ` Hans Hagen
@ 2012-02-14 12:37 ` Steffen Wolfrum
2012-02-14 12:44 ` Hans Hagen
2012-02-14 12:44 ` Philipp Gesang
0 siblings, 2 replies; 7+ messages in thread
From: Steffen Wolfrum @ 2012-02-14 12:37 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 14.02.2012 um 13:21 schrieb Hans Hagen:
> On 14-2-2012 12:55, Steffen Wolfrum wrote:
>> Hi,
>>
>> due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
>>
>>
>> \define\PlainSwitch%
>> {\groupedcommand{\language[de]\ss}{}}
>>
>> \define\ColorSwitch%
>> {\groupedcommand{\language[de]\ss\color[darkred]}{}}
>>
>> \starttext
>>
>> English: \date
>>
>> {\PlainSwitch German \date}
>>
>> English: \date
>>
>> {\ColorSwitch German \date}
>>
>> Test \date
>>
>> \stoptext
>>
>> Someone knows what to change here (in order to get the red "G" back)?
>
> something
>
> {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}}
In version 2012.01.16 this gives an error:
! Extra }, or forgotten \endgroup.
Steffen
___________________________________________________________________________________
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] 7+ messages in thread
* Re: groupedcommand with color
2012-02-14 12:37 ` Steffen Wolfrum
@ 2012-02-14 12:44 ` Hans Hagen
2012-02-14 13:26 ` Steffen Wolfrum
2012-02-14 12:44 ` Philipp Gesang
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2012-02-14 12:44 UTC (permalink / raw)
To: Steffen Wolfrum; +Cc: mailing list for ConTeXt users
On 14-2-2012 13:37, Steffen Wolfrum wrote:
>
> Am 14.02.2012 um 13:21 schrieb Hans Hagen:
>
>> On 14-2-2012 12:55, Steffen Wolfrum wrote:
>>> Hi,
>>>
>>> due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
>>>
>>>
>>> \define\PlainSwitch%
>>> {\groupedcommand{\language[de]\ss}{}}
>>>
>>> \define\ColorSwitch%
>>> {\groupedcommand{\language[de]\ss\color[darkred]}{}}
>>>
>>> \starttext
>>>
>>> English: \date
>>>
>>> {\PlainSwitch German \date}
>>>
>>> English: \date
>>>
>>> {\ColorSwitch German \date}
>>>
>>> Test \date
>>>
>>> \stoptext
>>>
>>> Someone knows what to change here (in order to get the red "G" back)?
>>
>> something
>>
>> {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}}
>
>
> In version 2012.01.16 this gives an error:
>
> ! Extra }, or forgotten \endgroup.
and how about
{\groupedcommand{\language[de]\ss\directcolored[darkred]}{}}
-----------------------------------------------------------------
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] 7+ messages in thread
* Re: groupedcommand with color
2012-02-14 12:37 ` Steffen Wolfrum
2012-02-14 12:44 ` Hans Hagen
@ 2012-02-14 12:44 ` Philipp Gesang
1 sibling, 0 replies; 7+ messages in thread
From: Philipp Gesang @ 2012-02-14 12:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2081 bytes --]
On 2012-02-14 13:37, Steffen Wolfrum wrote:
>
> Am 14.02.2012 um 13:21 schrieb Hans Hagen:
>
> > On 14-2-2012 12:55, Steffen Wolfrum wrote:
> >> Hi,
> >>
> >> due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
> >>
> >>
> >> \define\PlainSwitch%
> >> {\groupedcommand{\language[de]\ss}{}}
> >>
> >> \define\ColorSwitch%
> >> {\groupedcommand{\language[de]\ss\color[darkred]}{}}
> >>
> >> \starttext
> >>
> >> English: \date
> >>
> >> {\PlainSwitch German \date}
> >>
> >> English: \date
> >>
> >> {\ColorSwitch German \date}
> >>
> >> Test \date
> >>
> >> \stoptext
> >>
> >> Someone knows what to change here (in order to get the red "G" back)?
> >
> > something
> >
> > {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}}
>
>
> In version 2012.01.16 this gives an error:
>
> ! Extra }, or forgotten \endgroup.
Works when using “\switchtocolor”:
········································································
\define\ColorSwitch
{\groupedcommand{\language[de]\ss\switchtocolor[darkred]}{}}
\starttext
foo \bgroup\ColorSwitch bar\egroup baz\par
\stoptext
········································································
Regards
Philipp
>
>
> Steffen
> ___________________________________________________________________________________
> 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] 7+ messages in thread
* Re: groupedcommand with color
2012-02-14 12:44 ` Hans Hagen
@ 2012-02-14 13:26 ` Steffen Wolfrum
2012-02-14 20:29 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Steffen Wolfrum @ 2012-02-14 13:26 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen, Philipp Gesang
Am 14.02.2012 um 13:44 schrieb Hans Hagen:
> On 14-2-2012 13:37, Steffen Wolfrum wrote:
>>
>> Am 14.02.2012 um 13:21 schrieb Hans Hagen:
>>
>>> On 14-2-2012 12:55, Steffen Wolfrum wrote:
>>>> Hi,
>>>>
>>>> due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
>>>>
>>>>
>>>> \define\PlainSwitch%
>>>> {\groupedcommand{\language[de]\ss}{}}
>>>>
>>>> \define\ColorSwitch%
>>>> {\groupedcommand{\language[de]\ss\color[darkred]}{}}
>>>>
>>>> \starttext
>>>>
>>>> English: \date
>>>>
>>>> {\PlainSwitch German \date}
>>>>
>>>> English: \date
>>>>
>>>> {\ColorSwitch German \date}
>>>>
>>>> Test \date
>>>>
>>>> \stoptext
>>>>
>>>> Someone knows what to change here (in order to get the red "G" back)?
>>>
>>> something
>>>
>>> {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}}
>>
>>
>> In version 2012.01.16 this gives an error:
>>
>> ! Extra }, or forgotten \endgroup.
>
> and how about
>
> {\groupedcommand{\language[de]\ss\directcolored[darkred]}{}}
now it works: directedcolor, as well as switchtolcolor
Thank you Hans and Philipp!
Steffen
___________________________________________________________________________________
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] 7+ messages in thread
* Re: groupedcommand with color
2012-02-14 13:26 ` Steffen Wolfrum
@ 2012-02-14 20:29 ` Wolfgang Schuster
0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2012-02-14 20:29 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum
Am 14.02.2012 um 14:26 schrieb Steffen Wolfrum:
>
> Am 14.02.2012 um 13:44 schrieb Hans Hagen:
>
>> On 14-2-2012 13:37, Steffen Wolfrum wrote:
>>>
>>> Am 14.02.2012 um 13:21 schrieb Hans Hagen:
>>>
>>>> On 14-2-2012 12:55, Steffen Wolfrum wrote:
>>>>> Hi,
>>>>>
>>>>> due to \color[]{} now needs an argument, groupedcommand doesn't work as before:
>>>>>
>>>>>
>>>>> \define\PlainSwitch%
>>>>> {\groupedcommand{\language[de]\ss}{}}
>>>>>
>>>>> \define\ColorSwitch%
>>>>> {\groupedcommand{\language[de]\ss\color[darkred]}{}}
>>>>>
>>>>> \starttext
>>>>>
>>>>> English: \date
>>>>>
>>>>> {\PlainSwitch German \date}
>>>>>
>>>>> English: \date
>>>>>
>>>>> {\ColorSwitch German \date}
>>>>>
>>>>> Test \date
>>>>>
>>>>> \stoptext
>>>>>
>>>>> Someone knows what to change here (in order to get the red "G" back)?
>>>>
>>>> something
>>>>
>>>> {\groupedcommand{\language[de]\ss\startcolor[darkred]}{\stopcolor}}
>>>
>>>
>>> In version 2012.01.16 this gives an error:
>>>
>>> ! Extra }, or forgotten \endgroup.
>>
>> and how about
>>
>> {\groupedcommand{\language[de]\ss\directcolored[darkred]}{}}
>
> now it works: directedcolor, as well as switchtolcolor
You can also use \definestartstop to create your command which can then be used with \ColorSwitch{…} and {\ColorSwitch …}.
\definestartstop
[ColorSwitch]
[commands={\language[de]},
style=sans,
color=darkred]
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] 7+ messages in thread
end of thread, other threads:[~2012-02-14 20:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 11:55 groupedcommand with color Steffen Wolfrum
2012-02-14 12:21 ` Hans Hagen
2012-02-14 12:37 ` Steffen Wolfrum
2012-02-14 12:44 ` Hans Hagen
2012-02-14 13:26 ` Steffen Wolfrum
2012-02-14 20:29 ` Wolfgang Schuster
2012-02-14 12:44 ` Philipp Gesang
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).