Re: [NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread Wolfgang Schuster

denis.ma...@ub.unibe.ch schrieb am 02.03.2021 um 11:50:

Ok, so this combination will disable tolerant and stretch again?
\setuptolerance[tolerant,stretch]
\setupalign[hz,hanging]

Or will it be preserved?


The tolerance settings remain.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread denis.maier
Ok, so this combination will disable tolerant and stretch again?
\setuptolerance[tolerant,stretch]
\setupalign[hz,hanging]

Or will it be preserved?

Denis

> -Ursprüngliche Nachricht-
> Von: Hans Hagen 
> Gesendet: Dienstag, 2. März 2021 11:49
> An: mailing list for ConTeXt users ; Maier, Denis
> Christian (UB) 
> Betreff: Re: [NTG-context] Setuptolerance vs setupalign
> 
> On 3/2/2021 11:40 AM, denis.ma...@ub.unibe.ch wrote:
> > Hi,
> >
> > I've just noticed that it's possible to do
> >
> > \setupalign [tolerant,stretch]
> >
> > and
> >
> > \setuptolerance [tolerant,stretch]
> >
> > Are these equivalent?
> >
> > Will this here have the desired effect?
> >
> > \setuptolerance[tolerant,stretch]
> >
> > \setupalign[hz,hanging]
> >
> > Or will \setupalign overwrite the tolerance settings?
> both overwrite ... same underlying code ... at some point it made sense to
> support the tolerance keys in align (which is often an option in environments
> and commands)
> 
> Hans
> 
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread Hans Hagen

On 3/2/2021 11:40 AM, denis.ma...@ub.unibe.ch wrote:

Hi,

I’ve just noticed that it’s possible to do

\setupalign [tolerant,stretch]

and

\setuptolerance [tolerant,stretch]

Are these equivalent?

Will this here have the desired effect?

\setuptolerance[tolerant,stretch]

\setupalign[hz,hanging]

Or will \setupalign overwrite the tolerance settings?
both overwrite ... same underlying code ... at some point it made sense 
to support the tolerance keys in align (which is often an option in 
environments and commands)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread denis.maier
Hi,

I've just noticed that it's possible to do
\setupalign [tolerant,stretch]
and
\setuptolerance [tolerant,stretch]

Are these equivalent?
Will this here have the desired effect?

\setuptolerance[tolerant,stretch]

\setupalign[hz,hanging]

Or will \setupalign overwrite the tolerance settings?

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Various setuptolerance settings within a single document

2014-02-19 Thread Jan Tosovsky
Dear All,

I'd like to apply 'verystrict' tolerance as a default value, which would be
overridden by less strict values in several specific paragraphs with tricky
word combinations causing problems when hyphenating.

But when \setuptolerance command is used multiple times, the last one seems
to be active only from that place on.

When settings is wrapped by \start \stop commands, it seems to be ignored:

\start
\setuptolerance[tolerant]
%text
\stop

Is there any way how to achieve this or do I have to use the lowest required
value for the whole document?

Thanks, Jan

___
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
___


Re: [NTG-context] Various setuptolerance settings within a single document

2014-02-19 Thread Wolfgang Schuster

Am 19.02.2014 um 21:00 schrieb Jan Tosovsky j.tosov...@email.cz:

 Dear All,
 
 I'd like to apply 'verystrict' tolerance as a default value, which would be
 overridden by less strict values in several specific paragraphs with tricky
 word combinations causing problems when hyphenating.
 
 But when \setuptolerance command is used multiple times, the last one seems
 to be active only from that place on.
 
 When settings is wrapped by \start \stop commands, it seems to be ignored:
 
 \start
 \setuptolerance[tolerant]
 %text
 \stop
 
 Is there any way how to achieve this or do I have to use the lowest required
 value for the whole document?

Can you try to end the paragraph before the \stop with a empty line or the \par 
command.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Various setuptolerance settings within a single document

2014-02-19 Thread Jan Tosovsky
On 2014-02-19 Wolfgang Schuster wrote:
 
 Am 19.02.2014 um 21:00 schrieb Jan Tosovsky j.tosov...@email.cz:
 
  I'd like to apply 'verystrict' tolerance as a default value, which
  would be overridden by less strict values
 
  When settings is wrapped by \start \stop commands, it seems to be
  ignored:
 
  \start
  \setuptolerance[tolerant]
  %text
  \stop
 
 
 Can you try to end the paragraph before the \stop with a empty line or
 the \par command.

Wow! Ending that block with \par\stop does the job!

Thanks a lot for this hint!

Jan

___
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
___


[NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Dear list

is there a way to \setupalign and \setuptolerance globaly?

In tabulate- or frameenvironement for example they are reseted.

MWE:
\definefontfeature[default][default][expansion=quality,protrusion=quality]
\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\setupbodyfontenvironment[default][em=italic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]

\starttext
\subject{Normal Text}
align working, tolerance working.

\input knuth

\subject{Table}
Table resets align/tolerance:
\starttabulate
\NC aling/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Framedtext resets align/tolerance:
\startframedtext[width=0.6\textwidth]
aling/tolerance not working

\input tufte
\stopframedtext

\startframedtext[width=0.6\textwidth]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]
aling/tolerance working

\input tufte
\stopframedtext

\stoptext


Thanks!

Christian
___
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
___

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Wolfgang Schuster

Am 30.08.2013 um 14:23 schrieb Christian Prim christian.p...@gmx.ch:

 Dear list
 
 is there a way to \setupalign and \setuptolerance globaly?
 
 In tabulate- or frameenvironement for example they are reseted.

Environments which have a align key use the settings of the key and ignore
global values, to enable protrusion and font expansion for these environment
you have to change their align values.

\setupframedtext
  [align={normal,hanging,hz}]

\setuptabulate
  [align={normal,hanging,hz}]

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Wolfgang Schuster

Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

 Thanks Wolfgang
 
 I have tested it (on new beta) but the alignment is still wrong in the 
 tabulate-environment. It's correct in the framedtext-environment, but 
 tolerance is still missing, so that a line is still too long.
 
 My new questions:
 - What about tolerance? Where must I add the keys?

The \setupalign command does also accepts “tolerant”, “verytolerant” and 
“stretch” as keyword which means you don’t need the \setuptolerance command. 
This is important because the value of the align key is passed to the 
\setupalign command.

 - What about tabulate-environment?

I’m sorry but I was wrong about the setting for the tabulate environment, the 
align value of \setuptabulate accepts only “left”, “middle”, “right” and 
“normal” as arguments. There is also no way to change the format of the default 
tabulation environment, only local changes are possible, e.g.

\starttabulate[|l|pA{normal,hanging,hz,stretch}|]
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \input knuth \NC\NR
\stoptabulate

When you want a different default alignment you have to create your own 
tabulation environment with the \definetabulate command.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang! Now everything is clear and fine.

Christian


2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

  Thanks Wolfgang
 
  I have tested it (on new beta) but the alignment is still wrong in the
 tabulate-environment. It's correct in the framedtext-environment, but
 tolerance is still missing, so that a line is still too long.
 
  My new questions:
  - What about tolerance? Where must I add the keys?

 The \setupalign command does also accepts “tolerant”, “verytolerant” and
 “stretch” as keyword which means you don’t need the \setuptolerance
 command. This is important because the value of the align key is passed to
 the \setupalign command.

  - What about tabulate-environment?

 I’m sorry but I was wrong about the setting for the tabulate environment,
 the align value of \setuptabulate accepts only “left”, “middle”, “right”
 and “normal” as arguments. There is also no way to change the format of the
 default tabulation environment, only local changes are possible, e.g.

 \starttabulate[|l|pA{normal,hanging,hz,stretch}|]
 \NC align/tolerance not working \NC \input knuth \NC\NR
 \NC align/tolerance working \NC \input knuth \NC\NR
 \stoptabulate

 When you want a different default alignment you have to create your own
 tabulation environment with the \definetabulate command.

 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  : 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
___

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang

I have tested it (on new beta) but the alignment is still wrong in the
tabulate-environment. It's correct in the framedtext-environment, but
tolerance is still missing, so that a line is still too long.

My new questions:
- What about tolerance? Where must I add the keys?
- What about tabulate-environment?

Thanks!
Christian

My new MWE is:

\definefontfeature[default][default][expansion=quality,protrusion=quality]
\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\setupbodyfontenvironment[default][em=italic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]

\setupframedtext[align={normal,hanging,hz}] %NEW
\setuptabulate[align={normal,hanging,hz}] %NEW
\showframe %NEW, for better seeing

\starttext
\subject{Normal Text}
align working, tolerance working.

\input knuth

\subject{Table}
Table resets align/tolerance:
\starttabulate
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Framedtext resets align/tolerance:
\startframedtext[width=0.6\textwidth]
align working, tolerance not working

\input tufte
\stopframedtext

\startframedtext[width=0.6\textwidth]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]
align/tolerance working

\input tufte
\stopframedtext

\stoptext


2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 14:23 schrieb Christian Prim christian.p...@gmx.ch:

  Dear list
 
  is there a way to \setupalign and \setuptolerance globaly?
 
  In tabulate- or frameenvironement for example they are reseted.

 Environments which have a align key use the settings of the key and ignore
 global values, to enable protrusion and font expansion for these
 environment
 you have to change their align values.

 \setupframedtext
   [align={normal,hanging,hz}]

 \setuptabulate
   [align={normal,hanging,hz}]

 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  : 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
___

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Sorry

I still have a problem with \startfiguretext  \stopfiguretext.

There ist no \setupfiguretext nor \setupfloattext to enter the align=
keypairs. Where must I enter align={normal,hanging,hz,stretch} to make
the text around these figures aligned like the rest of the document?

Thanks
Christian

PS.: My minimal (not) working example:

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

%\setup?figure?text[align={normal,hanging,hz,stretch}]
\setupalign[hz,hanging,stretch]
\showframe

\starttext
Correct Text

\input knuth
\startfiguretext[right,none]{}{\externalfigure[cow][width=0.5\textwidth]}
Wrong alignment!

\input knuth
\stopfiguretext
\stoptext


2013/8/30 Christian Prim christian.p...@gmx.ch

 Thanks Wolfgang! Now everything is clear and fine.

 Christian


 2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

  Thanks Wolfgang
 
  I have tested it (on new beta) but the alignment is still wrong in the
 tabulate-environment. It's correct in the framedtext-environment, but
 tolerance is still missing, so that a line is still too long.
 
  My new questions:
  - What about tolerance? Where must I add the keys?

 The \setupalign command does also accepts “tolerant”, “verytolerant” and
 “stretch” as keyword which means you don’t need the \setuptolerance
 command. This is important because the value of the align key is passed to
 the \setupalign command.

  - What about tabulate-environment?

 I’m sorry but I was wrong about the setting for the tabulate environment,
 the align value of \setuptabulate accepts only “left”, “middle”, “right”
 and “normal” as arguments. There is also no way to change the format of the
 default tabulation environment, only local changes are possible, e.g.

 \starttabulate[|l|pA{normal,hanging,hz,stretch}|]
 \NC align/tolerance not working \NC \input knuth \NC\NR
 \NC align/tolerance working \NC \input knuth \NC\NR
 \stoptabulate

 When you want a different default alignment you have to create your own
 tabulation environment with the \definetabulate command.

 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  : 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
___

Re: [NTG-context] \setuptolerance and vertical spacing

2008-08-22 Thread Olivier Guéry
 Thank's
 \setuplayout[grid=yes]
 and
 \setuptolerance[horizontal, stretch]
 do the trick, but once again, I don't understand the logic beside a
 part of context :(

 Cheers,
 O.

I've found an other « trick ».
After the « \starttext »
\brokenpenalty \zerocount
allow last sentence of the page to be hyphenate.

Olivier.



-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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
___


[NTG-context] \setuptolerance and vertical spacing

2008-08-19 Thread Olivier Guéry
Hello,

I'm still trying to play with pdf for my Sony e-reader.
So, I need to setup \setuptolerance
It work's great for the horizontal tolerance but I can't understand
anything about the vertical one :-p

It seems that I can't do anything to force page cutting after
hyphenate at the end of the last line.

I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty
'et al' from the « style » documentation at pragma but no effects.

In the documentation I read that I can't use \setuptolerance for both
vertical and horizontal. Is it still true ? (I tried, of course ! No
effects).

Best,
Olivier.


-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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
___


Re: [NTG-context] \setuptolerance and vertical spacing

2008-08-19 Thread Wolfgang Schuster
On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,

 I'm still trying to play with pdf for my Sony e-reader.
 So, I need to setup \setuptolerance
 It work's great for the horizontal tolerance but I can't understand
 anything about the vertical one :-p

 It seems that I can't do anything to force page cutting after
 hyphenate at the end of the last line.

 I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty
 'et al' from the « style » documentation at pragma but no effects.

 In the documentation I read that I can't use \setuptolerance for both
 vertical and horizontal. Is it still true ? (I tried, of course ! No
 effects).

\setuptolerance[vertical,...]

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
___


Re: [NTG-context] \setuptolerance and vertical spacing

2008-08-19 Thread Olivier Guéry
2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]:
 On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,

 I'm still trying to play with pdf for my Sony e-reader.
 So, I need to setup \setuptolerance
 It work's great for the horizontal tolerance but I can't understand
 anything about the vertical one :-p

 It seems that I can't do anything to force page cutting after
 hyphenate at the end of the last line.

 I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty
 'et al' from the « style » documentation at pragma but no effects.

 In the documentation I read that I can't use \setuptolerance for both
 vertical and horizontal. Is it still true ? (I tried, of course ! No
 effects).

 \setuptolerance[vertical,...]

I see this on texshow-web. But I read : « Don't try to combine these
two. » and « in vertical orientation the keywords define a factor
bottomtolerance
which is only used (?) in columns. »
And it's true… if I setup both, only the horizontal one — or the last
one if i setup two lines — seems to be setup (or y don't know the
syntax).

Maybe there's a link with the future vertical-spacing algorithm I read
about here ?

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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
___


Re: [NTG-context] \setuptolerance and vertical spacing

2008-08-19 Thread Wolfgang Schuster
On Tue, Aug 19, 2008 at 12:52 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]:
 On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,

 I'm still trying to play with pdf for my Sony e-reader.
 So, I need to setup \setuptolerance
 It work's great for the horizontal tolerance but I can't understand
 anything about the vertical one :-p

 It seems that I can't do anything to force page cutting after
 hyphenate at the end of the last line.

 I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty
 'et al' from the « style » documentation at pragma but no effects.

 In the documentation I read that I can't use \setuptolerance for both
 vertical and horizontal. Is it still true ? (I tried, of course ! No
 effects).

 \setuptolerance[vertical,...]

 I see this on texshow-web. But I read : « Don't try to combine these
 two. » and « in vertical orientation the keywords define a factor
 bottomtolerance which is only used (?) in columns. »

 And it's true… if I setup both, only the horizontal one — or the last
 one if i setup two lines — seems to be setup (or y don't know the
 syntax).

When you use vertical and horizontal in one setting onely the vertical
setting is used.

 Maybe there's a link with the future vertical-spacing algorithm I read
 about here ?

There is something in core-spa.mkiv.

I think the following thread helps you:
http://archive.contextgarden.net/message/20080208.155131.ab97f37d.en.html

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
___


Re: [NTG-context] \setuptolerance and vertical spacing

2008-08-19 Thread Olivier Guéry
2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]:
 On Tue, Aug 19, 2008 at 12:52 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 2008/8/19 Wolfgang Schuster [EMAIL PROTECTED]:
 On Tue, Aug 19, 2008 at 12:09 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,

 I'm still trying to play with pdf for my Sony e-reader.
 So, I need to setup \setuptolerance
 It work's great for the horizontal tolerance but I can't understand
 anything about the vertical one :-p

 It seems that I can't do anything to force page cutting after
 hyphenate at the end of the last line.

 I tried fine setting with \widowpenalty, \brokenpenalty, \clubpenalty
 'et al' from the « style » documentation at pragma but no effects.

 In the documentation I read that I can't use \setuptolerance for both
 vertical and horizontal. Is it still true ? (I tried, of course ! No
 effects).

 \setuptolerance[vertical,...]

 I see this on texshow-web. But I read : « Don't try to combine these
 two. » and « in vertical orientation the keywords define a factor
 bottomtolerance which is only used (?) in columns. »

 And it's true… if I setup both, only the horizontal one — or the last
 one if i setup two lines — seems to be setup (or y don't know the
 syntax).

 When you use vertical and horizontal in one setting onely the vertical
 setting is used.

 Maybe there's a link with the future vertical-spacing algorithm I read
 about here ?

 There is something in core-spa.mkiv.

 I think the following thread helps you:
 http://archive.contextgarden.net/message/20080208.155131.ab97f37d.en.html

Thank's
\setuplayout[grid=yes]
and
\setuptolerance[horizontal, stretch]
do the trick, but once again, I don't understand the logic beside a
part of context :(

Cheers,
O.



-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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
___


[NTG-context] Re: \setuptolerance

2004-12-03 Thread Richard Gabriel




Hello Patrick,

thank you very much!
Hopely I understand right, that the command 

\setuptolerance[verytolerant,stretch]
( or \setuptolerance[horizontal,verytolerant,stretch] )

will result to
\tolerance 4500\emergencystretch\bodyfontsize

:-)

Richard



Patrick Gundlach wrote:

  Hello Richard,

  
  
could somebody explain me the usage of the \setuptolerance command and
its particular parameters?

  
  
I have put an explanation on texshow-web:
http://texshow.contextgarden.net

  
  
The main ConTeXt manual (cont-eni.pdf, pages 87-88) only mentions that
it is used [horizontal,verystrict] and [vertical,strict] by
default... 

  
  
I wonder what the vertical form is for (columns?).

  
  
On contextgarden.net I've found one example using the following form:

\setuptolerance		[{horizontal, verytolerant},{vertical, verystrict}]

  
  
This looks incorrect to me. See my comment on texshow-web.

Patrick
  



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \setuptolerance

2004-12-03 Thread Patrick Gundlach
Hello Richard,


 \setuptolerance[verytolerant,stretch]
 ( or \setuptolerance[horizontal,verytolerant,stretch] )

 will result to
 \tolerance 4500\emergencystretch\bodyfontsize

[from my memory]

yes.

Patrick

-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuptolerance

2004-11-23 Thread Richard Gabriel
Hello all,
could somebody explain me the usage of the \setuptolerance command and 
its particular parameters?
I've found several forms of this command, but no explanation of them at 
all...

The main ConTeXt manual (cont-eni.pdf, pages 87-88) only mentions that 
it is used [horizontal,verystrict] and [vertical,strict] by default... 
Should I issue two \setuptolerance commands to setup up horizontal and 
vertical tolerance?

On contextgarden.net I've found one example using the following form:
\setuptolerance [{horizontal, verytolerant},{vertical, verystrict}]
...tried this, but it produces Overfull \hbox at almost every third 
line... :-(

Currently I use the setup:
\setuptolerance[verytolerant,stretch]
which gives quite good results, but I don't know what it exactly does (I 
googled it somewhere)...

Thanks for help.
Richard

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context