ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* beta and hanging question
@ 2000-12-25 19:00 Frans Goddijn
  2000-12-26 19:03 ` Berend de Boer
  2000-12-27  9:05 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Frans Goddijn @ 2000-12-25 19:00 UTC (permalink / raw)


Hello all,

What better use for a fine xmas day than try something new in ConTeXt...
;=}}

I wanted to try the \steluitlijnenin[hangend] tip from Hans from 21
december.

I downloaded a new cont-tmf.zip from www.pragma-ade.nl and unzipped it in
c:\local\tex\texmf from my TeX Live installation. Then I did
mktexlsr
and
texexec --make --alone

I got a number of errors complaining about insufficient hash size and
changed the following line in texmf.cnf from 0 to 20000 (10000 did not help
enough so I wonder if the line mentioning 10K is right)

% Extra space for the hash table of control sequences (which allows 10K
% names as distributed).
% hash_extra = 0 % original line
hash_extra = 20000

I got the new format files in c:\mytex\web2c directory but I found out that
even though texexec PUTS them there, it NEEDS them later on in the
c:\local\tex\texmf-var\web2c branch of the texmf tree when it's compiling a
file. Strange... to correct this I just copied them there.

Next, I tried

\steluitlijnenin[hangend]

I get no error messages but the resulting text shows no protrusions at
all...

Anyone any idea what I do wrong?

Groet and merry xmas to y'all!

Frans


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: beta and hanging question
  2000-12-25 19:00 beta and hanging question Frans Goddijn
@ 2000-12-26 19:03 ` Berend de Boer
  2000-12-27  9:05 ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Berend de Boer @ 2000-12-26 19:03 UTC (permalink / raw)
  Cc: ntg-context

Frans Goddijn wrote:

> I got the new format files in c:\mytex\web2c directory but I found out that
> even though texexec PUTS them there, it NEEDS them later on in the
> c:\local\tex\texmf-var\web2c branch of the texmf tree when it's compiling a
> file. Strange... to correct this I just copied them there.

I think that is caused by the --alone flag.

Groetjes,

Berend. (-:


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: beta and hanging question
  2000-12-25 19:00 beta and hanging question Frans Goddijn
  2000-12-26 19:03 ` Berend de Boer
@ 2000-12-27  9:05 ` Hans Hagen
  2000-12-27 20:40   ` George N. White III
       [not found]   ` <Pine.SGI.4.31.0012271621200.153867-100000@wendigo.bio.dfo. ca>
  1 sibling, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2000-12-27  9:05 UTC (permalink / raw)
  Cc: ntg-context

At 08:00 PM 12/25/00 +0100, Frans Goddijn wrote:
>Hello all,
>
>What better use for a fine xmas day than try something new in ConTeXt...
>;=}}
>
>I wanted to try the \steluitlijnenin[hangend] tip from Hans from 21
>december.
>
>I downloaded a new cont-tmf.zip from www.pragma-ade.nl and unzipped it in
>c:\local\tex\texmf from my TeX Live installation. Then I did
>mktexlsr
>and
>texexec --make --alone
>
>I got a number of errors complaining about insufficient hash size and
>changed the following line in texmf.cnf from 0 to 20000 (10000 did not help
>enough so I wonder if the line mentioning 10K is right)
>
>% Extra space for the hash table of control sequences (which allows 10K
>% names as distributed).
>% hash_extra = 0 % original line
>hash_extra = 20000

normally the progname entry is used, so context.hash_extra=20000, but never
mind, you got it working now

>\steluitlijnenin[hangend]
>
>I get no error messages but the resulting text shows no protrusions at
>all...
>
>Anyone any idea what I do wrong?

You have to set up fonts to protrude [not that complicated, see MAPS
article] which comes down to assigning a handler to a font [see
enco-pro.tex]. 

So, finally you get something like this [you can set protruding per font
and change the amounts per font shape etc]

% output=pdftex

\setuplayout[width=middle,height=middle] \showframe 

\setupwhitespace[big]

\useencoding[pro]

\definefontsynonym [Times-Roman]      [tir]
[encoding=texnansi,handling=normal]
\definefontsynonym [Times-Italic]     [tii]
[encoding=texnansi,handling=slanted]
\definefontsynonym [Times-Bold]       [tib]  [encoding=texnansi,handling=bold]
\definefontsynonym [Times-BoldItalic] [tibi]
[encoding=texnansi,handling=boldslanted]

\setupbodyfont[ptm] \setupalign[hanging]

\starttext 

\title{Times Roman Protruding} 

\tf \input tufte \par \sl \input tufte \par
\bf \input tufte \par \bs \input tufte \page 

\startcolumns[balance=no]
  \tf \input tufte \par \sl \input tufte \par
  \bf \input tufte \par \bs \input tufte \par
\stopcolumns

{ \page \switchtobodyfont[small] \typefile {protrude} }
{ \page \switchtobodyfont[small] \typefile {enco-pro} }

\stoptext

-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: beta and hanging question
  2000-12-27  9:05 ` Hans Hagen
@ 2000-12-27 20:40   ` George N. White III
       [not found]   ` <Pine.SGI.4.31.0012271621200.153867-100000@wendigo.bio.dfo. ca>
  1 sibling, 0 replies; 6+ messages in thread
From: George N. White III @ 2000-12-27 20:40 UTC (permalink / raw)
  Cc: Frans Goddijn, ntg-context

On Wed, 27 Dec 2000, Hans Hagen wrote:

> At 08:00 PM 12/25/00 +0100, Frans Goddijn wrote:
> >Hello all,
> >
> >What better use for a fine xmas day than try something new in ConTeXt...
> >;=}}
> > [...]
>
> >\steluitlijnenin[hangend]
> >
> >I get no error messages but the resulting text shows no protrusions at
> >all...
> >
> >Anyone any idea what I do wrong?
>
> You have to set up fonts to protrude [not that complicated, see MAPS
> article] which comes down to assigning a handler to a font [see
> enco-pro.tex].
>
> So, finally you get something like this [you can set protruding per font
> and change the amounts per font shape etc]
>  [...]

Hmmm, my experiments ended with too much of an effect, either using
essentially the same as the example given in Hans' response, and then a
simpler example with plain tex.  Whenever a line ends in a protruding
character (e.g., hyphen or punctuation) the character preceeding the
line-ending glyph is also set in the margin:

  |                    |
  |We thrive .. because|
  |of our ........ to se-
  |                    |

There was no change using a newer pdftex (on SGI irix 6.5, build with gcc
2.95.2)

from:

This is pdfeTeX, Version 3.14159-14h-pretest-20001004-2.1 (Web2C 7.3.3.1)
(format=cont-en 2000.12.11)  27 DEC 2000 11:59

to:

This is pdfTeX, Version 3.14159-14h-pretest-20001219 (Web2C 7.3.3.1)
(format=pdftex 2000.12.27)  27 DEC 2000 15:41

-- 
George N. White III <WhiteG@dfo-mpo.gc.ca>  tel: 902.426.8509
  Bedford Institute of Oceanography, Nova Scotia, Canada (TZ=AST4ADT)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: beta and hanging question
       [not found]   ` <Pine.SGI.4.31.0012271621200.153867-100000@wendigo.bio.dfo. ca>
@ 2000-12-28  0:26     ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2000-12-28  0:26 UTC (permalink / raw)
  Cc: ntg-context

At 04:40 PM 12/27/00 -0400, George N. White III wrote:
>On Wed, 27 Dec 2000, Hans Hagen wrote:
>
>> At 08:00 PM 12/25/00 +0100, Frans Goddijn wrote:
>> >Hello all,
>> >
>> >What better use for a fine xmas day than try something new in ConTeXt...
>> >;=}}
>> > [...]
>>
>> >\steluitlijnenin[hangend]
>> >
>> >I get no error messages but the resulting text shows no protrusions at
>> >all...
>> >
>> >Anyone any idea what I do wrong?
>>
>> You have to set up fonts to protrude [not that complicated, see MAPS
>> article] which comes down to assigning a handler to a font [see
>> enco-pro.tex].
>>
>> So, finally you get something like this [you can set protruding per font
>> and change the amounts per font shape etc]
>>  [...]
>
>Hmmm, my experiments ended with too much of an effect, either using
>essentially the same as the example given in Hans' response, and then a
>simpler example with plain tex.  Whenever a line ends in a protruding
>character (e.g., hyphen or punctuation) the character preceeding the
>line-ending glyph is also set in the margin:
>
>  |                    |
>  |We thrive .. because|
>  |of our ........ to se-
>  |                    |
>
>There was no change using a newer pdftex (on SGI irix 6.5, build with gcc
>2.95.2)

There has been a small change [not yet in the tex files] in the metrics [em
instead of fake design size] that the pdftex binary (version h) uses but
this can be no reason for the e sticking into the margin. So, this is
something for Thanh.  

I'll send you my output in a separate mail. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: beta and hanging question
@ 2000-12-29 18:44 White, George
  0 siblings, 0 replies; 6+ messages in thread
From: White, George @ 2000-12-29 18:44 UTC (permalink / raw)
  Cc: 'ntg-context '

The example Hans sent is the same as one I had saved from last September.
Using pdftex 0.14h, I have now tried two different snapshots on two
different platforms (i685 linux and SGI Irix) and find that I need
to reduce the [rl]pcode values to about 25% of those that worked with 
0.14g (e.g., in enco-pro.tex).  

My experiments indicate that \pdfprotrudechars=2 should become a 
normal setting with relatively conservative [rl]pcode values.  I often
encounter layouts with rather narrow columns.  Smoother appearance of the
margins is nice, but even more important is that some very bad line breaks 
disappear without needing to reword the text!

-----Original Message-----
From: Hans Hagen
To: George N. White III; thanh@denicser.let.uu.nl
Cc: ntg-context
Sent: 12/27/00 8:26 PM
Subject: Re: beta and hanging question

[...]

There has been a small change [not yet in the tex files] in the metrics
[em
instead of fake design size] that the pdftex binary (version h) uses but
this can be no reason for the e sticking into the margin. So, this is
something for Thanh.  

I'll send you my output in a separate mail. 

Hans
------------------------------------------------------------------------
-
                                                  Hans Hagen | PRAGMA
ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The
Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 |
www.pragma-ade.com
------------------------------------------------------------------------
-


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-12-29 18:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-25 19:00 beta and hanging question Frans Goddijn
2000-12-26 19:03 ` Berend de Boer
2000-12-27  9:05 ` Hans Hagen
2000-12-27 20:40   ` George N. White III
     [not found]   ` <Pine.SGI.4.31.0012271621200.153867-100000@wendigo.bio.dfo. ca>
2000-12-28  0:26     ` Hans Hagen
2000-12-29 18:44 White, George

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