* Problem with "packed" and "\space" / "broad" and "/nospace"
@ 2009-02-23 20:52 Bernd Kosubek
2009-02-23 20:56 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Bernd Kosubek @ 2009-02-23 20:52 UTC (permalink / raw)
To: ConTeXt Mailinglist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo all!
The following lines demonstrates my problem:
{
\setupspacing[packed]
\startalignment[right]
xxxx xxxx.
yyyy yyyy yyyy yyyy.
zzzz zzzz zzzz zzzz.
xxxx xxxx.
yyyy yyyy yyyy yyyy.\space{}
zzzz zzzz zzzz zzzz.
\stopalignment
}
{
\setupspacing[broad]
\startalignment[right]
xxxx xxxx.
yyyy yyyy yyyy yyyy.
zzzz zzzz zzzz zzzz.
xxxx xxxx.
yyyy yyyy yyyy yyyy.\nospace{}
zzzz zzzz zzzz zzzz.
\stopalignment
}
\stoptext
In my mind, the first line should be the shortest (no
additional spacing).
The length of the second line must be longer (additional
spacing after the second sentence).
The length of the third line must be longer than that of the
second line (additional spacing between every sentence).
And the fourth line must be shorter than the third line
(same length as the first line).
If I run "texexec" over this, the last three line are longer
than the first line AND they have the same lengths.
What have I not understand -- or is it a known problem or a
bug?
- --
Bernd Kosubek
Unsigned eMail are not from me.
eMail: kosubek@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4
D63B
URL: http://www.sksatz.com
Keyserver: blackhole.pca.dfn.de (oder andere)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQFJowywEokq7LfE1jsRAvFaAJ9/MZbXAgNZ7PcgQiZtCzE1jq5ZAgCfZ0Lz
3ftR6JipB5c2stVcKNwwNzQ=
=NGjT
-----END 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with "packed" and "\space" / "broad" and "/nospace"
2009-02-23 20:52 Problem with "packed" and "\space" / "broad" and "/nospace" Bernd Kosubek
@ 2009-02-23 20:56 ` Wolfgang Schuster
2009-02-23 21:35 ` Bernd Kosubek
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2009-02-23 20:56 UTC (permalink / raw)
To: kosubek, mailing list for ConTeXt users
Am 23.02.2009 um 21:52 schrieb Bernd Kosubek:
> If I run "texexec" over this, the last three line are longer
> than the first line AND they have the same lengths.
>
> What have I not understand -- or is it a known problem or a
> bug?
You get what you write.
2. Sentence: \space{} = 2 spaces because of the {}
3. Sentence: Wide than the first sentence because of the disabled
frenchspacing
4. Sentence: You write \nospace but insert a space with {}
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with "packed" and "\space" / "broad" and "/nospace"
2009-02-23 21:35 ` Bernd Kosubek
@ 2009-02-23 21:34 ` Wolfgang Schuster
2009-02-23 22:01 ` Bernd Kosubek
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2009-02-23 21:34 UTC (permalink / raw)
To: kosubek, mailing list for ConTeXt users
Am 23.02.2009 um 22:35 schrieb Bernd Kosubek:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am Montag, 23. Februar 2009 21:56 schrieb Wolfgang Schuster:
>> Am 23.02.2009 um 21:52 schrieb Bernd Kosubek:
>>> If I run "texexec" over this, the last three line are
>>> longer than the first line AND they have the same
>>> lengths.
>>>
>>> What have I not understand -- or is it a known problem
>>> or a bug?
>>
>> You get what you write.
>>
>> 2. Sentence: \space{} = 2 spaces because of the {}
>>
>> 3. Sentence: Wide than the first sentence because of the
>> disabled frenchspacing
>>
>> 4. Sentence: You write \nospace but insert a space with
>> {}
>
> Thank You for the quick answer.
>
> I don't understand where the second space should be come
> from.
> I use the empty group "{}" always to separate optionless
> commands.
>
> I think it is the same whether I write:
>
> xxxx. yyyy. or
> xxxy.{} yyyy. or
> xxxx.
> yyyy. or
> xxxx.{}
> yyyy.
>
> If I use
>
> xxxx.\space yyyy or xxxx.\space{} yyyy
>
> the first \space produce NO space (that is not what I wish)
Nonsense, the first \space produce a space and the whitespace
in the input between \space and yyyy is gobbled from the macro.
The empty group after the second space prevents TeX from gobbling
the space and you get now one space from the \space command and
another one from the whitespace in the output.
> I suppose, that the empty group has no effect.
> The following space will be printed and THIS space should be
> smaller in an broad-environment if I use \nospace or larger
> in an packed-environment if I use \space.
You need a empty group to get a space after commands like \TeX
because the command gobbles otherwise all following whitespace.
Try the following example:
text\relax text\space text\space{}\space{}\space{}\space text
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with "packed" and "\space" / "broad" and "/nospace"
2009-02-23 20:56 ` Wolfgang Schuster
@ 2009-02-23 21:35 ` Bernd Kosubek
2009-02-23 21:34 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Bernd Kosubek @ 2009-02-23 21:35 UTC (permalink / raw)
To: Wolfgang Schuster, mailing list for ConTeXt users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 23. Februar 2009 21:56 schrieb Wolfgang Schuster:
> Am 23.02.2009 um 21:52 schrieb Bernd Kosubek:
> > If I run "texexec" over this, the last three line are
> > longer than the first line AND they have the same
> > lengths.
> >
> > What have I not understand -- or is it a known problem
> > or a bug?
>
> You get what you write.
>
> 2. Sentence: \space{} = 2 spaces because of the {}
>
> 3. Sentence: Wide than the first sentence because of the
> disabled frenchspacing
>
> 4. Sentence: You write \nospace but insert a space with
> {}
>
> Wolfgang
Thank You for the quick answer.
I don't understand where the second space should be come
from.
I use the empty group "{}" always to separate optionless
commands.
I think it is the same whether I write:
xxxx. yyyy. or
xxxy.{} yyyy. or
xxxx.
yyyy. or
xxxx.{}
yyyy.
If I use
xxxx.\space yyyy or xxxx.\space{} yyyy
the first \space produce NO space (that is not what I wish)
I suppose, that the empty group has no effect.
The following space will be printed and THIS space should be
smaller in an broad-environment if I use \nospace or larger
in an packed-environment if I use \space.
- --
Bernd Kosubek
Unsigned eMail are not from me.
eMail: kosubek@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4
D63B
URL: http://www.sksatz.com
Keyserver: blackhole.pca.dfn.de (oder andere)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQFJoxafEokq7LfE1jsRAjXLAKCHuX5TDHnEfKscgY02u+DoLSZXVgCffQRA
AncnhYSkHngDZV57RKRnPdQ=
=C9Pg
-----END 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with "packed" and "\space" / "broad" and "/nospace"
2009-02-23 21:34 ` Wolfgang Schuster
@ 2009-02-23 22:01 ` Bernd Kosubek
0 siblings, 0 replies; 5+ messages in thread
From: Bernd Kosubek @ 2009-02-23 22:01 UTC (permalink / raw)
To: Wolfgang Schuster, mailing list for ConTeXt users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 23. Februar 2009 22:34 schrieb Wolfgang Schuster:
>
> Nonsense, the first \space produce a space and the
> whitespace in the input between \space and yyyy is
> gobbled from the macro.
>
> The empty group after the second space prevents TeX from
> gobbling the space and you get now one space from the
> \space command and another one from the whitespace in the
> output.
>
> > I suppose, that the empty group has no effect.
> > The following space will be printed and THIS space
> > should be smaller in an broad-environment if I use
> > \nospace or larger in an packed-environment if I use
> > \space.
>
> You need a empty group to get a space after commands like
> \TeX because the command gobbles otherwise all following
> whitespace.
>
> Try the following example:
>
> text\relax text\space text\space{}\space{}\space{}\space
> text
>
> Wolfgang
Thank you!!!!
I think I understand it (I hope so)!
- --
Bernd Kosubek
Unsigned eMail are not from me.
eMail: kosubek@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4
D63B
URL: http://www.sksatz.com
Keyserver: blackhole.pca.dfn.de (oder andere)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQFJoxy1Eokq7LfE1jsRApTQAJ4jil0SnnLmObcG1i00LMvmkwUlhQCaAnMN
SZIqzDxD2ZvA1cVhD0/PuyE=
=J0Ni
-----END 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-23 22:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23 20:52 Problem with "packed" and "\space" / "broad" and "/nospace" Bernd Kosubek
2009-02-23 20:56 ` Wolfgang Schuster
2009-02-23 21:35 ` Bernd Kosubek
2009-02-23 21:34 ` Wolfgang Schuster
2009-02-23 22:01 ` Bernd Kosubek
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).