ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* next space
@ 2010-11-29  9:29 Steffen Wolfrum
  2010-11-29 13:39 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2010-11-29  9:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

please have a look at this:


\definestartstop[redimportant][before={\startcolor[red]\bf\penalty10000\hskip\zeropoint},after={\/\stopcolor}]

\starttext

This is normal, but this\startredimportant one\startfootnote at least \stopfootnote is bold\stopredimportant style.

This is normal, but this\startredimportant one\startfootnote at least \stopfootnote is bold\stopredimportant.


This is normal, but this\startredimportant{} one\startfootnote at least \stopfootnote{} is bold\stopredimportant{} style.

This is normal, but this\startredimportant{} one\startfootnote at least \stopfootnote{} is bold\stopredimportant.

\stoptext


Is the missing \autoinsertnextspace back in the meantime? 
Or does someone has a good substitute ... other then {} braces?

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

* Re: next space
  2010-11-29  9:29 next space Steffen Wolfrum
@ 2010-11-29 13:39 ` Wolfgang Schuster
  2010-12-03 16:21   ` next space (problematic example!) Steffen Wolfrum
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-11-29 13:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:

> Hi,
> 
> please have a look at this:
> 
> \definestartstop[redimportant][before={\startcolor[red]\bf\penalty10000\hskip\zeropoint},after={\/\stopcolor}]

\definestartstop
   [redimportant]
   [style=bold,
    color=red,
    after=\autoinsertnextspace]

\setupnote
   [footnote]
   [next=\autoinsertnextspace]

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

* Re: next space (problematic example!)
  2010-11-29 13:39 ` Wolfgang Schuster
@ 2010-12-03 16:21   ` Steffen Wolfrum
  2010-12-04 14:12     ` Steffen Wolfrum
  2010-12-04 14:56     ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2010-12-03 16:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster:

> 
> Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
> 
>> Hi,
>> 
>> please have a look at this:
>> 
>> \definestartstop[redimportant][before={\startcolor[red]\bf\penalty10000\hskip\zeropoint},after={\/\stopcolor}]
> 
> \definestartstop
>   [redimportant]
>   [style=bold,
>    color=red,
>    after=\autoinsertnextspace]
> 
> \setupnote
>   [footnote]
>   [next=\autoinsertnextspace]
> 
> Wolfgang


But how about this (see below)?
Is there a chance to get a space after footnote even before an italic?

Steffen

-------

\definestartstop[Textit][style=\em,
%   color=red,
   after=\autoinsertnextspace]
   
\setupnote
  [footnote]
  [next=\autoinsertnextspace]


\starttext

Test text.
\startfootnote
Note.
\stopfootnote 
\startTextit Test\stopTextit text

Test text.
\startfootnote
Note.
\stopfootnote 
Test text

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

* Re: next space (problematic example!)
  2010-12-03 16:21   ` next space (problematic example!) Steffen Wolfrum
@ 2010-12-04 14:12     ` Steffen Wolfrum
  2010-12-04 14:56     ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2010-12-04 14:12 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Hans,

Is there something you can do about that (that lost space between footnote and italics, see below)?

As I am just about to finish a project I would otherwise hack in those "{}" again :o(


Thanks,
Steffen



Am 03.12.2010 um 17:21 schrieb Steffen Wolfrum:

> 
> Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster:
> 
>> 
>> Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
>> 
>>> Hi,
>>> 
>>> please have a look at this:
>>> 
>>> \definestartstop[redimportant][before={\startcolor[red]\bf\penalty10000\hskip\zeropoint},after={\/\stopcolor}]
>> 
>> \definestartstop
>>  [redimportant]
>>  [style=bold,
>>   color=red,
>>   after=\autoinsertnextspace]
>> 
>> \setupnote
>>  [footnote]
>>  [next=\autoinsertnextspace]
>> 
>> Wolfgang
> 
> 
> But how about this (see below)?
> Is there a chance to get a space after footnote even before an italic?
> 
> Steffen
> 
> -------
> 
> \definestartstop[Textit][style=\em,
> %   color=red,
>   after=\autoinsertnextspace]
> 
> \setupnote
>  [footnote]
>  [next=\autoinsertnextspace]
> 
> 
> \starttext
> 
> Test text.
> \startfootnote
> Note.
> \stopfootnote 
> \startTextit Test\stopTextit text
> 
> Test text.
> \startfootnote
> Note.
> \stopfootnote 
> Test text
> 
> \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
> ___________________________________________________________________________________

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

* Re: next space (problematic example!)
  2010-12-03 16:21   ` next space (problematic example!) Steffen Wolfrum
  2010-12-04 14:12     ` Steffen Wolfrum
@ 2010-12-04 14:56     ` Wolfgang Schuster
  2010-12-04 16:16       ` Steffen Wolfrum
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-04 14:56 UTC (permalink / raw)
  To: Steffen Wolfrum; +Cc: mailing list for ConTeXt users


Am 03.12.2010 um 17:21 schrieb Steffen Wolfrum:

> But how about this (see below)?
> Is there a chance to get a space after footnote even before an italic?

No, \autoinsertnextspace fails when the next token in the input is a command
which is no criterion to insert a space and you have to help tex in this case
with a {} or \ after \stopfootnote.

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

* Re: next space (problematic example!)
  2010-12-04 14:56     ` Wolfgang Schuster
@ 2010-12-04 16:16       ` Steffen Wolfrum
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2010-12-04 16:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.12.2010 um 15:56 schrieb Wolfgang Schuster:

> 
> Am 03.12.2010 um 17:21 schrieb Steffen Wolfrum:
> 
>> But how about this (see below)?
>> Is there a chance to get a space after footnote even before an italic?
> 
> No, \autoinsertnextspace fails when the next token in the input is a command
> which is no criterion to insert a space and you have to help tex in this case
> with a {} or \ after \stopfootnote.


Ok. I'll use {} . Again :o)

(this looks quite save .... hopefully there is no unforeseen side-effect)


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

end of thread, other threads:[~2010-12-04 16:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-29  9:29 next space Steffen Wolfrum
2010-11-29 13:39 ` Wolfgang Schuster
2010-12-03 16:21   ` next space (problematic example!) Steffen Wolfrum
2010-12-04 14:12     ` Steffen Wolfrum
2010-12-04 14:56     ` Wolfgang Schuster
2010-12-04 16:16       ` Steffen Wolfrum

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).