Re: [NTG-context] \blank[inhibit] broken ???

2008-07-28 Thread Wolfgang Schuster
On Sun, Jul 27, 2008 at 8:28 PM, Peter Münster [EMAIL PROTECTED] wrote:
 On Fri, Jul 25 2008, Wolfgang Schuster wrote:

 \defineblankmethod [nobreak] {\penalty\plustenthousand}

 Hello,

 Why \plustenthousand, and not 1?

Less tokens, faster and just a matter of style.

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] \blank[inhibit] broken ???

2008-07-28 Thread Hans Hagen
Taco Hoekwater wrote:
 Hi STeffen,
 
 Steffen Wolfrum wrote:
 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 
 Perhaps he meant \inhibitblank or \blank[disable].
 (guessed from the code)

indeed


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \blank[inhibit] broken ???

2008-07-28 Thread Steffen Wolfrum
Thanks for clarification, Taco!


Steffen



Am 28.07.2008 um 16:28 schrieb Hans Hagen:

 Taco Hoekwater wrote:
 Hi STeffen,

 Steffen Wolfrum wrote:
 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?

 Perhaps he meant \inhibitblank or \blank[disable].
 (guessed from the code)

 indeed


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \blank[inhibit] broken ???

2008-07-27 Thread Peter Münster
On Fri, Jul 25 2008, Wolfgang Schuster wrote:

 \defineblankmethod [nobreak] {\penalty\plustenthousand}

Hello,

Why \plustenthousand, and not 1?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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] \blank[inhibit] broken ???

2008-07-26 Thread Taco Hoekwater
Hi STeffen,

Steffen Wolfrum wrote:
 ... yes, but Hans said so (see my email quoting him)!!!
 
 What did he mean?

Perhaps he meant \inhibitblank or \blank[disable].
(guessed from the code)

Best wishes,
Taco
___
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] \blank[inhibit] broken ???

2008-07-25 Thread Wolfgang Schuster
On Fri, Jul 25, 2008 at 9:58 AM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
 Hi,

 looking for a reliable soluion to the problem of keeping section heads with
 following paragraphs I found the email below from Hans 2003.

 But using it gives an error (see below):


 \starttext

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[big]\blank[inhibit]}]

 \input tufte \par
 \input knuth \par
 \input tufte \par
 \input knuth \par

 \myhead{Sektion}

 \index{Index}

 \subsection{Subsektion}

 \input knuth \par


 \stoptext


 Is inhibit broken?

'inhibit' is no legal value for \blank.

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] \blank[inhibit] broken ???

2008-07-25 Thread Steffen Wolfrum
... yes, but Hans said so (see my email quoting him)!!!

What did he mean?
Do you know an other solution?

St.


Am 25.07.2008 um 10:08 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 9:58 AM, Steffen Wolfrum [EMAIL PROTECTED] 
  wrote:
 Hi,

 looking for a reliable soluion to the problem of keeping section  
 heads with
 following paragraphs I found the email below from Hans 2003.

 But using it gives an error (see below):


 \starttext

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[big]\blank[inhibit]}]

 \input tufte \par
 \input knuth \par
 \input tufte \par
 \input knuth \par

 \myhead{Sektion}

 \index{Index}

 \subsection{Subsektion}

 \input knuth \par


 \stoptext


 Is inhibit broken?

 'inhibit' is no legal value for \blank.

 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
 ___

___
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] \blank[inhibit] broken ???

2008-07-25 Thread Wolfgang Schuster
On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
[EMAIL PROTECTED] wrote:
 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 Do you know an other solution?

\defineblankmethod [nobreak] {\penalty\plustenthousand}
\defineblankmethod [endgraf] {\endgraf}

\definehead[myhead][section]
\setuphead[myhead][after={\blank[endgraf,nobreak,big]}]

Not sure about the order in the blank command but this should work.

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] \blank[inhibit] broken ???

2008-07-25 Thread Steffen Wolfrum

Am 25.07.2008 um 10:25 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:
 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 Do you know an other solution?

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[endgraf,nobreak,big]}]

 Not sure about the order in the blank command but this should work.


Hmm, I think I have tried all possible combination now but it does not  
work.
Did you try?


\starttext

\defineblankmethod [nobreak] {\penalty\plustenthousand}
\defineblankmethod [endgraf] {\endgraf}

\definehead[myhead][section]
\setuphead[myhead][after={\blank[nobreak,endgraf,big]}]

\input tufte \par
\input knuth \par
\input tufte \par
\input knuth \par

\myhead{Sektion}

\index{Index}

test

\stoptext


Steffen
___
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] \blank[inhibit] broken ???

2008-07-25 Thread Wolfgang Schuster
On Fri, Jul 25, 2008 at 10:33 AM, Steffen Wolfrum
[EMAIL PROTECTED] wrote:

 Am 25.07.2008 um 10:25 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 Do you know an other solution?

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[endgraf,nobreak,big]}]

 Not sure about the order in the blank command but this should work.

 Hmm, I think I have tried all possible combination now but it does not work.
 Did you try?

 \starttext

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[nobreak,endgraf,big]}]

 \input tufte \par
 \input knuth \par
 \input tufte \par
 \input knuth \par

 \myhead{Sektion}

 \index{Index}

 test

 \stoptext

 Steffen

You're looking for http://wiki.contextgarden.net/Registers#Technical_note

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] \blank[inhibit] broken ???

2008-07-25 Thread Steffen Wolfrum

Am 25.07.2008 um 10:39 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:33 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 Am 25.07.2008 um 10:25 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 Do you know an other solution?

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[endgraf,nobreak,big]}]

 Not sure about the order in the blank command but this should work.

 Hmm, I think I have tried all possible combination now but it does  
 not work.
 Did you try?

 \starttext

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[nobreak,endgraf,big]}]

 \input tufte \par
 \input knuth \par
 \input tufte \par
 \input knuth \par

 \myhead{Sektion}

 \index{Index}

 test

 \stoptext

 Steffen

 You're looking for http://wiki.contextgarden.net/Registers#Technical_note


ok, but this was just one easily reproducible example of troubling  
situations.

For another is \vskip, as sometimes the distance between two heading  
must be smaller than the normal space above or below:

\subsection ...
\vskip-14pt
\subsubsection ...

In this situation I always experience the same problem: you have a  
heading at bottom of page :o(

I just didn't manage to show this with an minimal example.

Steffen
___
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] \blank[inhibit] broken ???

2008-07-25 Thread Wolfgang Schuster
On Fri, Jul 25, 2008 at 10:52 AM, Steffen Wolfrum
[EMAIL PROTECTED] wrote:

 Am 25.07.2008 um 10:39 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:33 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 Am 25.07.2008 um 10:25 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 Do you know an other solution?

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[endgraf,nobreak,big]}]

 Not sure about the order in the blank command but this should work.

 Hmm, I think I have tried all possible combination now but it does not
 work.
 Did you try?

 \starttext

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[nobreak,endgraf,big]}]

 \input tufte \par
 \input knuth \par
 \input tufte \par
 \input knuth \par

 \myhead{Sektion}

 \index{Index}

 test

 \stoptext

 Steffen

 You're looking for http://wiki.contextgarden.net/Registers#Technical_note


 ok, but this was just one easily reproducible example of troubling
 situations.

 For another is \vskip, as sometimes the distance between two heading must be
 smaller than the normal space above or below:

 \subsection ...
 \vskip-14pt
 \subsubsection ...

 In this situation I always experience the same problem: you have a heading
 at bottom of page :o(

 I just didn't manage to show this with an minimal example.

\newsignal\sectionsignal

\setuphead
  [section]
  [before={\blank[big]},
   after={\blank[2*big]\vskip\sectionsignal}]

\def\subsectionbefore
  {\ifdim\lastskip=\sectionsignal
 %\blank[-medium]%
 \vskip-\medskipamount
   \else
 \blank[big]%
   \fi}

\setuphead
  [subsection]
  [before=\subsectionbefore,
   after={\blank[big]}]

\showgrid

\starttext
\section{Section}
\subsection{Subsection}
text
\section{Section}
text
\subsection{Subsection}
\stoptext

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] \blank[inhibit] broken ???

2008-07-25 Thread Steffen Wolfrum
wow ... the power of programming.

st.


Am 25.07.2008 um 13:22 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:52 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 Am 25.07.2008 um 10:39 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:33 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 Am 25.07.2008 um 10:25 schrieb Wolfgang Schuster:

 On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:

 ... yes, but Hans said so (see my email quoting him)!!!

 What did he mean?
 Do you know an other solution?

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[endgraf,nobreak,big]}]

 Not sure about the order in the blank command but this should  
 work.

 Hmm, I think I have tried all possible combination now but it  
 does not
 work.
 Did you try?

 \starttext

 \defineblankmethod [nobreak] {\penalty\plustenthousand}
 \defineblankmethod [endgraf] {\endgraf}

 \definehead[myhead][section]
 \setuphead[myhead][after={\blank[nobreak,endgraf,big]}]

 \input tufte \par
 \input knuth \par
 \input tufte \par
 \input knuth \par

 \myhead{Sektion}

 \index{Index}

 test

 \stoptext

 Steffen

 You're looking for http://wiki.contextgarden.net/Registers#Technical_note


 ok, but this was just one easily reproducible example of troubling
 situations.

 For another is \vskip, as sometimes the distance between two  
 heading must be
 smaller than the normal space above or below:

 \subsection ...
 \vskip-14pt
 \subsubsection ...

 In this situation I always experience the same problem: you have a  
 heading
 at bottom of page :o(

 I just didn't manage to show this with an minimal example.

 \newsignal\sectionsignal

 \setuphead
  [section]
  [before={\blank[big]},
   after={\blank[2*big]\vskip\sectionsignal}]

 \def\subsectionbefore
  {\ifdim\lastskip=\sectionsignal
 %\blank[-medium]%
 \vskip-\medskipamount
   \else
 \blank[big]%
   \fi}

 \setuphead
  [subsection]
  [before=\subsectionbefore,
   after={\blank[big]}]

 \showgrid

 \starttext
 \section{Section}
 \subsection{Subsection}
 text
 \section{Section}
 text
 \subsection{Subsection}
 \stoptext

 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
 ___

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