Problem with "packed" and "\space" / "broad" and "/nospace"
-----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-----
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
-----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-----
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
-----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-----
participants (2)
-
Bernd Kosubek
-
Wolfgang Schuster