* \stretched
@ 2012-06-28 7:30 Hans Hagen
2012-07-05 15:23 ` \stretched Willi Egger
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2012-06-28 7:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
In the next version, the \stretched command has been replaced by a new
one using the character kerning feature.
\hbox to 5cm{\stretched{to the limit}}
\stretched{to the limit}
\stretched[width=10cm]{to the limit}
In addition one can set a style and color.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread
* Re: \stretched
2012-06-28 7:30 \stretched Hans Hagen
@ 2012-07-05 15:23 ` Willi Egger
2012-07-05 15:49 ` \stretched luigi scarso
0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2012-07-05 15:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello!
I just downloaded yesterday night's version of Context and tried the example provided. - What is wrong with the first line with the \hbox? This stretched text is as long as the second line and uses the whole text width. The third line has a width of 10cm as it seems.
Willi
On Jun 28, 2012, at 9:30 AM, Hans Hagen wrote:
> Hi,
>
> In the next version, the \stretched command has been replaced by a new one using the character kerning feature.
>
> \hbox to 5cm{\stretched{to the limit}}
> \stretched{to the limit}
> \stretched[width=10cm]{to the limit}
>
> In addition one can set a style and color.
>
> Hans
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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] 4+ messages in thread
* Re: \stretched
2012-07-05 15:23 ` \stretched Willi Egger
@ 2012-07-05 15:49 ` luigi scarso
2012-07-08 17:46 ` \stretched Willi Egger
0 siblings, 1 reply; 4+ messages in thread
From: luigi scarso @ 2012-07-05 15:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]
On Thu, Jul 5, 2012 at 5:23 PM, Willi Egger <context@boede.nl> wrote:
> Hello!
>
> I just downloaded yesterday night's version of Context and tried the
> example provided. - What is wrong with the first line with the \hbox? This
> stretched text is as long as the second line and uses the whole text width.
> The third line has a width of 10cm as it seems.
>
>
\ruledhbox to 5cm{\stretched{to the limit}}
means that the box has 5cm, but \stretched must use some horizontal size
(i.e \hsize)
to stretch the text. The twos are different lengths: it doesn't make much
sense to strecth the text "to the limit" to its natural width (yes, it
makes sense --- stretched is nil)
try
\ruledhbox to 5cm{\stretched{to the limit}}
\ruledhbox to 5cm{\hsize=5cm\stretched{to the limit}}
\ruledhbox to 5cm{\hsize=0cm\stretched{to the limit}}
\ruledhbox{\stretched{to the limit}}
\ruledhbox{\stretched[width=10cm]{to the limit}}
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 1378 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] 4+ messages in thread
* Re: \stretched
2012-07-05 15:49 ` \stretched luigi scarso
@ 2012-07-08 17:46 ` Willi Egger
0 siblings, 0 replies; 4+ messages in thread
From: Willi Egger @ 2012-07-08 17:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Luigi,
thanks for the explanation, now (finally) I understand the mechanism…
Willi
On Jul 5, 2012, at 5:49 PM, luigi scarso wrote:
>
>
> On Thu, Jul 5, 2012 at 5:23 PM, Willi Egger <context@boede.nl> wrote:
> Hello!
>
> I just downloaded yesterday night's version of Context and tried the example provided. - What is wrong with the first line with the \hbox? This stretched text is as long as the second line and uses the whole text width. The third line has a width of 10cm as it seems.
>
>
> \ruledhbox to 5cm{\stretched{to the limit}}
> means that the box has 5cm, but \stretched must use some horizontal size (i.e \hsize)
> to stretch the text. The twos are different lengths: it doesn't make much sense to strecth the text "to the limit" to its natural width (yes, it makes sense --- stretched is nil)
> try
> \ruledhbox to 5cm{\stretched{to the limit}}
> \ruledhbox to 5cm{\hsize=5cm\stretched{to the limit}}
> \ruledhbox to 5cm{\hsize=0cm\stretched{to the limit}}
> \ruledhbox{\stretched{to the limit}}
> \ruledhbox{\stretched[width=10cm]{to the limit}}
>
> --
> luigi
>
> ___________________________________________________________________________________
> 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] 4+ messages in thread
end of thread, other threads:[~2012-07-08 17:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-28 7:30 \stretched Hans Hagen
2012-07-05 15:23 ` \stretched Willi Egger
2012-07-05 15:49 ` \stretched luigi scarso
2012-07-08 17:46 ` \stretched Willi Egger
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).