ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Protrusion and \scale
@ 2015-12-15  7:46 Marc Trius
  2015-12-15 10:26 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Trius @ 2015-12-15  7:46 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 877 bytes --]

Hello,

I'm using \scale to scale up a headline to the width of the entire 
paragraph, like so:


\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]

\def\scaleHead#1%
{\scale[width=\textwidth]{#1}}

\setuphead[subject]
[textcommand=\scaleHead]

\starttext

\subject{Call me Ishmael.}

Some years ago—never mind how long precisely—having little or no money in
my purse, and nothing particular to interest me on shore, I thought I
would sail about a little and see the watery part of the world. It is a
way I have of driving off the spleen and regulating the circulation.

\stoptext


My problem is that I would like the period at the end of the first line 
to hang, the same way I would get in the text body, and I can't figure 
out how. What would be the correct way to accomplish this?

Thank you,
Marc Trius

[-- Attachment #1.2: Type: text/html, Size: 2357 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] 2+ messages in thread

* Re: Protrusion and \scale
  2015-12-15  7:46 Protrusion and \scale Marc Trius
@ 2015-12-15 10:26 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2015-12-15 10:26 UTC (permalink / raw)
  To: ntg-context

On 12/15/2015 8:46 AM, Marc Trius wrote:
> Hello,
>
> I'm using \scale to scale up a headline to the width of the entire
> paragraph, like so:
>
>
> \definefontfeature
> [default]
> [default]
> [protrusion=quality,expansion=quality]
>
> \def\scaleHead#1%
> {\scale[width=\textwidth]{#1}}
>
> \setuphead[subject]
> [textcommand=\scaleHead]
>
> \starttext
>
> \subject{Call me Ishmael.}
>
> Some years ago—never mind how long precisely—having little or no money in
> my purse, and nothing particular to interest me on shore, I thought I
> would sail about a little and see the watery part of the world. It is a
> way I have of driving off the spleen and regulating the circulation.
>
> \stoptext
>
>
> My problem is that I would like the period at the end of the first line
> to hang, the same way I would get in the text body, and I can't figure
> out how. What would be the correct way to accomplish this?

that would only work if you typeset with a \hsize that is exactly the 
length of the title which in turn means that you have to adapt the font 
size and even then tex will probably squeeze the spacing first

so the best is:

\subject{Call me Ishmael\rlap{.}}



-----------------------------------------------------------------
                                           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] 2+ messages in thread

end of thread, other threads:[~2015-12-15 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-15  7:46 Protrusion and \scale Marc Trius
2015-12-15 10:26 ` Hans Hagen

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).