* \footnote in \startlines[space=on] overflows
@ 2012-04-22 15:16 Marco Pessotto
2012-04-22 16:42 ` Philipp Gesang
0 siblings, 1 reply; 5+ messages in thread
From: Marco Pessotto @ 2012-04-22 15:16 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \footnote in \startlines[space=on] overflows
2012-04-22 15:16 \footnote in \startlines[space=on] overflows Marco Pessotto
@ 2012-04-22 16:42 ` Philipp Gesang
2012-04-22 17:38 ` Marco Pessotto
0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2012-04-22 16:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1435 bytes --]
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
[-- 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] 5+ messages in thread
* Re: \footnote in \startlines[space=on] overflows
2012-04-22 16:42 ` Philipp Gesang
@ 2012-04-22 17:38 ` Marco Pessotto
2012-04-22 19:40 ` Philipp Gesang
0 siblings, 1 reply; 5+ messages in thread
From: Marco Pessotto @ 2012-04-22 17:38 UTC (permalink / raw)
To: ntg-context
Philipp Gesang <gesang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \footnote in \startlines[space=on] overflows
2012-04-22 17:38 ` Marco Pessotto
@ 2012-04-22 19:40 ` Philipp Gesang
2012-04-22 20:28 ` Marco Pessotto
0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2012-04-22 19:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2430 bytes --]
On 2012-04-22 19:38, Marco Pessotto wrote:
> Philipp Gesang <gesang@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
[-- 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] 5+ messages in thread
* Re: \footnote in \startlines[space=on] overflows
2012-04-22 19:40 ` Philipp Gesang
@ 2012-04-22 20:28 ` Marco Pessotto
0 siblings, 0 replies; 5+ messages in thread
From: Marco Pessotto @ 2012-04-22 20:28 UTC (permalink / raw)
To: ntg-context
Philipp Gesang <gesang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-22 20:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 15:16 \footnote in \startlines[space=on] overflows Marco Pessotto
2012-04-22 16:42 ` Philipp Gesang
2012-04-22 17:38 ` Marco Pessotto
2012-04-22 19:40 ` Philipp Gesang
2012-04-22 20:28 ` Marco Pessotto
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).