* Question about enumerations/before/after
@ 2017-10-09 11:07 Weber, Matthias
2017-10-09 18:12 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Weber, Matthias @ 2017-10-09 11:07 UTC (permalink / raw)
To: ntg-context
Dear all,
I have something like
\defineenumeration [test]
[text={Test:},
headstyle=bold,
number=no,
before={\startcolor[red]},
after={\stopcolor},
style=normal,
title=no
]
\starttext
\input{knuth}
\starttest
\input{tufte}
\stoptest
\input{knuth}
\stoptext
When I comment out the before/after, I get paragraph breaks before and after the enumeration. How can I have them with the before/after?
Thanks,
Matthias
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about enumerations/before/after
2017-10-09 11:07 Question about enumerations/before/after Weber, Matthias
@ 2017-10-09 18:12 ` Pablo Rodriguez
2017-10-09 18:41 ` Weber, Matthias
2017-10-09 18:58 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2017-10-09 18:12 UTC (permalink / raw)
To: ntg-context
On 10/09/2017 01:07 PM, Weber, Matthias wrote:
> Dear all,
>
> I have something like
>
> \defineenumeration[test]
> [before={\startcolor[red]},
> after={\stopcolor}]
>
> When I comment out the before/after, I get paragraph breaks before
> and after the enumeration. How can I have them with the before/after?
Matthias,
adding \blank to before and after the color block does the trick:
[before={\blank\startcolor[red]},
after={\stopcolor\blank}]
It my the first idea that came to mind.
I hope it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about enumerations/before/after
2017-10-09 18:12 ` Pablo Rodriguez
@ 2017-10-09 18:41 ` Weber, Matthias
2017-10-09 18:58 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Weber, Matthias @ 2017-10-09 18:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks Pablo,
that does it.
Matthias
> On Oct 9, 2017, at 2:12 PM, Pablo Rodriguez <oinos@gmx.es> wrote:
>
> On 10/09/2017 01:07 PM, Weber, Matthias wrote:
>> Dear all,
>>
>> I have something like
>>
>> \defineenumeration[test]
>> [before={\startcolor[red]},
>> after={\stopcolor}]
>>
>> When I comment out the before/after, I get paragraph breaks before
>> and after the enumeration. How can I have them with the before/after?
> Matthias,
>
> adding \blank to before and after the color block does the trick:
>
> [before={\blank\startcolor[red]},
> after={\stopcolor\blank}]
>
> It my the first idea that came to mind.
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about enumerations/before/after
2017-10-09 18:12 ` Pablo Rodriguez
2017-10-09 18:41 ` Weber, Matthias
@ 2017-10-09 18:58 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2017-10-09 18:58 UTC (permalink / raw)
To: mailing list for ConTeXt users, Pablo Rodriguez
On 10/9/2017 8:12 PM, Pablo Rodriguez wrote:
> On 10/09/2017 01:07 PM, Weber, Matthias wrote:
>> Dear all,
>>
>> I have something like
>>
>> \defineenumeration[test]
>> [before={\startcolor[red]},
>> after={\stopcolor}]
>>
>> When I comment out the before/after, I get paragraph breaks before
>> and after the enumeration. How can I have them with the before/after?
> Matthias,
>
> adding \blank to before and after the color block does the trick:
>
> [before={\blank\startcolor[red]},
> after={\stopcolor\blank}]
>
> It my the first idea that came to mind.
just use the color key:
\defineenumeration
[test]
[text={Test:},
headstyle=bold,
number=no,
color=red,
style=normal,
title=no]
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-09 18:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-09 11:07 Question about enumerations/before/after Weber, Matthias
2017-10-09 18:12 ` Pablo Rodriguez
2017-10-09 18:41 ` Weber, Matthias
2017-10-09 18: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).