[NTG-context] \footnote in \startlines[space=on] overflows

2012-04-22 Thread Marco Pessotto

Dear list,

I use \(start|stop)lines[spaces=on] to typeset poetry, which seems the
right thing to do to preserve eventual initial whitespace.

Anyway, I encounter the following issues:

= cut here = %
\starttext

this is normal text.

\startlines[space=on]

 this is a {\em test} with a long long long long line\footnote{this is
   a test with a long long long long line this is a test with a long
   long long long line this is a test with a long long long long line
   this is a test with a long long long long line}

\stoplines

Normal text again.

\stoptext
= cut here = %

First, the {\em test} consumes a whitespace, even if after a command the
space is supposed to be eaten.

Second, the footnote overflows. (Tested with the latest beta).

Thanks in advance.
Best regards

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


Re: [NTG-context] \footnote in \startlines[space=on] overflows

2012-04-22 Thread Philipp Gesang
On 2012-04-22 17:16, Marco Pessotto wrote:
 
 Dear list,
 
 I use \(start|stop)lines[spaces=on] to typeset poetry, which seems the
 right thing to do to preserve eventual initial whitespace.
 
 Anyway, I encounter the following issues:
 
 = cut here = %
 \starttext
 
 this is normal text.
 
 \startlines[space=on]
 
  this is a {\em test} with a long long long long line\footnote{this is
a test with a long long long long line this is a test with a long
long long long line this is a test with a long long long long line
this is a test with a long long long long line}
 
 \stoplines
 
 Normal text again.
 
 \stoptext
 = cut here = %
 
 First, the {\em test} consumes a whitespace, even if after a command the
 space is supposed to be eaten.

Hi Marco,

I remember I brought this up a while ago:
  http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html
Seems like one can avoid the spaces through grouping (or with
“\gobbleoneargument”; or by using a single-argument wrapper
instead of a font switch; or by using an active character for
termination of the macro name; refer to spac-lin.mkiv, lines
18--31, for the official options).

Hth
Philipp

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


pgpgp0fX3GS1M.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] \footnote in \startlines[space=on] overflows

2012-04-22 Thread Marco Pessotto
Philipp Gesang ges...@stud.uni-heidelberg.de writes:

 On 2012-04-22 17:16, Marco Pessotto wrote:

n I remember I brought this up a while ago:
   http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html
 Seems like one can avoid the spaces through grouping (or with
 “\gobbleoneargument”; or by using a single-argument wrapper
 instead of a font switch; or by using an active character for
 termination of the macro name; refer to spac-lin.mkiv, lines
 18--31, for the official options).

Thanks! Still there is the problem of the footnote. I can live with some
random space (expecially if there is the workaround!), but the footnotes
are quite an issue.

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

Re: [NTG-context] \footnote in \startlines[space=on] overflows

2012-04-22 Thread Philipp Gesang
On 2012-04-22 19:38, Marco Pessotto wrote:
 Philipp Gesang ges...@stud.uni-heidelberg.de writes:
 
  On 2012-04-22 17:16, Marco Pessotto wrote:
 
 n I remember I brought this up a while ago:
http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html
  Seems like one can avoid the spaces through grouping (or with
  “\gobbleoneargument”; or by using a single-argument wrapper
  instead of a font switch; or by using an active character for
  termination of the macro name; refer to spac-lin.mkiv, lines
  18--31, for the official options).
 
 Thanks! Still there is the problem of the footnote. I can live with some
 random space (expecially if there is the workaround!), but the footnotes
 are quite an issue.

Took some code digging but finally:


\startsetups get_back_my_spacing
  \activatespacehandler{off}
\stopsetups

\setupnote[footnote][setups=get_back_my_spacing]

\starttext

\startlines[space=on]

 this is a {\em test} with a long long long long
 line\footnote{this is a test with a long long long long line this is a test 
with a long long long long line this is a test with a long long long long line 
this is a test with a long long long long line}
 another line, obeying spaces once more
 this is no haiku

\stoplines

\stoptext


(NB the “setups” parameter is declared “experimental” in
strc-not.mkvi; it might misbehave some time in the future ...)

Regards
Philipp



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

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


pgp7Y3XU7r0bp.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] \footnote in \startlines[space=on] overflows

2012-04-22 Thread Marco Pessotto
Philipp Gesang ges...@stud.uni-heidelberg.de writes:

 On 2012-04-22 19:38, Marco Pessotto wrote:
 Thanks! Still there is the problem of the footnote. I can live with some
 random space (expecially if there is the workaround!), but the footnotes
 are quite an issue.

 Took some code digging but finally:

And indeed it works like a charm. Thanks a lot.

 
 \startsetups get_back_my_spacing
   \activatespacehandler{off}
 \stopsetups

 \setupnote[footnote][setups=get_back_my_spacing]

 \starttext

 \startlines[space=on]

  this is a {\em test} with a long long long long
  line\footnote{this is a test with a long long long long line this is a test 
 with a long long long long line this is a test with a long long long long 
 line this is a test with a long long long long line}
  another line, obeying spaces once more
  this is no haiku

 \stoplines

 \stoptext
 

 (NB the “setups” parameter is declared “experimental” in
 strc-not.mkvi; it might misbehave some time in the future ...)

 Regards
 Philipp

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