Re: [NTG-context] page[no] not working?

2009-12-08 Thread Matthijs Kooijman
Hi Wolfgang,

 As you don't provide a example with a description where you have the problem
 I can't make a test but this could work in MkIV
I reckoned that the \page[no] command by itself was already broken, so I first
want to fix that before making things more complicated (like doing stuff with
before= or inbetween=).

 \setupdescriptions[...][inbetween={\blank[samepage,line]}]
This isn't exactly what I need, since the page break occurs between the header
and the body of the description (the boxed block is inside the description).
Or is inbetween exactly where that should end up?

However, using your \blank command directly does work. I've now put it in the
before= of my typing environment and that works as well. Thanks for this!

However, I'm still surprised that the \page[no] command, which is documented
to supress page breaks, does not do anything, while I need to insert some
magical blank as well. Should \page[no] be documented as broken?

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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] page[no] not working?

2009-12-08 Thread Wolfgang Schuster

Am 08.12.2009 um 09:27 schrieb Matthijs Kooijman:

 Hi Wolfgang,
 
 As you don't provide a example with a description where you have the problem
 I can't make a test but this could work in MkIV
 I reckoned that the \page[no] command by itself was already broken, so I first
 want to fix that before making things more complicated (like doing stuff with
 before= or inbetween=).

\page[no] did work but only when you use it in the correct way.

\starttext
\blank[force,20cm]
A

\page[no]
\startframedtext
H
\stopframedtext
\stoptext

or

\starttext
\blank[force,20cm]
A
\par\page[no]
\startframedtext
H
\stopframedtext
\stoptext

 \setupdescriptions[...][inbetween={\blank[samepage,line]}]
 This isn't exactly what I need, since the page break occurs between the header
 and the body of the description (the boxed block is inside the description).
 Or is inbetween exactly where that should end up?

As you're unwilling to show a example I can't give a concrete answer.

 However, using your \blank command directly does work. I've now put it in the
 before= of my typing environment and that works as well. Thanks for this!

\starttext
\blank[force,20cm]
A
\blank[samepage,line]
\startframedtext
H
\stopframedtext
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page[no] not working?

2009-12-08 Thread Matthijs Kooijman
Hi Wolfgang,

 \page[no] did work but only when you use it in the correct way.
 snip exapmles

Aha, page[no] only works directly after a paragraph break. I haven't seen that
documented anywhere. I'll put it up on the \page reference page. Is only
after a paragraph break the right usage instructions, or is it more
complicated than that?

 As you're unwilling to show a example I can't give a concrete answer.
I showed a reduced example, which showed the problem I was having exactly. I
could have sent you my entire document consisting of many files, but that
wouldn't be too useful I guess. I appreciate your attempts to provide a
complete solution for my entire problem, but I have enough clue to fit in a
working \page[no] into the right setup commands, if only I had a working
\page[no] command :-)

Fortunately, you've now provided me with two working commands (\par\page[no]
and \blank[samepage,line]), so I managed to make my document look pretty! If
you could only answer my first question above, then I'll improve the \page
documentation.

Thanks!

Matthijs


signature.asc
Description: Digital signature
___
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] page[no] not working?

2009-12-08 Thread luigi scarso
On Tue, Dec 8, 2009 at 10:14 AM, Matthijs Kooijman matth...@stdin.nl wrote:
 Hi Wolfgang,

 \page[no] did work but only when you use it in the correct way.
 snip exapmles

 Aha, page[no] only works directly after a paragraph break. I haven't seen that
 documented anywhere. I'll put it up on the \page reference page. Is only
 after a paragraph break the right usage instructions, or is it more
 complicated than that?

 As you're unwilling to show a example I can't give a concrete answer.
 I showed a reduced example, which showed the problem I was having exactly. I
 could have sent you my entire document consisting of many files, but that
 wouldn't be too useful I guess. I appreciate your attempts to provide a
 complete solution for my entire problem, but I have enough clue to fit in a
 working \page[no] into the right setup commands, if only I had a working
 \page[no] command :-)

 Fortunately, you've now provided me with two working commands (\par\page[no]
 and \blank[samepage,line]), so I managed to make my document look pretty! If
 you could only answer my first question above, then I'll improve the \page
 documentation.

 Thanks!

 Matthijs



\showframe
\starttext
\blank[force,20.5cm]
\ruledvbox{A}%
\nobreak
\vskip-\lineheight
\nobreak
\startframedtext
H
\stopframedtext
\stoptext


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


Re: [NTG-context] page[no] not working?

2009-12-08 Thread Wolfgang Schuster

Am 08.12.2009 um 10:14 schrieb Matthijs Kooijman:

 Aha, page[no] only works directly after a paragraph break. I haven't seen that
 documented anywhere. I'll put it up on the \page reference page. Is only
 after a paragraph break the right usage instructions, or is it more
 complicated than that?

I think the better answer is that you have to call it in vertical mode
where you go with \par or a empty line.

 As you're unwilling to show a example I can't give a concrete answer.
 I showed a reduced example, which showed the problem I was having exactly. I
 could have sent you my entire document consisting of many files, but that
 wouldn't be too useful I guess. I appreciate your attempts to provide a
 complete solution for my entire problem, but I have enough clue to fit in a
 working \page[no] into the right setup commands, if only I had a working
 \page[no] command :-)

You wrote:

My actual problem is with a \startframed directly after a description header 
...

which is for me

\startdescription{...}
\startframed
...
\stopframed
...

and what you showed is something different and putting \page[no] between
\startdescription and \startframed is not what I would suggest.

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
___


[NTG-context] page[no] not working?

2009-12-07 Thread Matthijs Kooijman
Hi all,

I've come to understand taht using the \page[no] command should prevent a
pagebreak at that particular spot whenever possible. However, this seems to be
not working for me. My actual problem is with a \startframed directly after a
description header, but the problem is easily reproduced with the below
example (for MkII, replace the 25cm with 20cm). The \dontleavehmod was needed
to make the \blank work...


  \starttext
  \dontleavehmode
  \blank[25cm]
  A
  \page[no]
  \startframedtext
  H
  \stopframedtext
  \stoptext


This example generates the A at the bottom of the first page, with the boxed
H on the next page, putting a page break exactly where the page[no] is. Is it
broken, or am I missing an important detail about how page[no] works?

I've also tried 

  \defineblankmethod [nobreak] {\nobreak}
  \blank[nobreak,line]

and some variations as suggested by Wolfgang (IIRC) in some thread from 2008,
but that failed with missing number, treated as zero for me.

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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] page[no] not working?

2009-12-07 Thread Wolfgang Schuster

Am 07.12.2009 um 22:55 schrieb Matthijs Kooijman:

 Hi all,
 
 I've come to understand taht using the \page[no] command should prevent a
 pagebreak at that particular spot whenever possible. However, this seems to be
 not working for me. My actual problem is with a \startframed directly after a
 description header, but the problem is easily reproduced with the below
 example (for MkII, replace the 25cm with 20cm). The \dontleavehmod was needed
 to make the \blank work...

As you don't provide a example with a description where you have the problem
I can't make a test but this could work in MkIV

\setupdescriptions[...][inbetween={\blank[samepage,line]}]

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] Page quadruple not working

2007-03-13 Thread Wolfgang Schuster

2007/3/13, Aditya Mahajan [EMAIL PROTECTED]:


Why does \page[quadruple] not work?

\setuppagenumbering [alternative=doublesided,location=footer]

\starttext

this is a test
\page[quadruple]



Hi Aditya,

\page[yes,quadruple]

Wolfgang

test


\stoptext


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Page quadruple not working

2007-03-13 Thread Aditya Mahajan
On Tue, 13 Mar 2007, Wolfgang Schuster wrote:

 2007/3/13, Aditya Mahajan [EMAIL PROTECTED]:
 
 Why does \page[quadruple] not work?
 
 \setuppagenumbering [alternative=doublesided,location=footer]
 
 \starttext
 
 this is a test
 \page[quadruple]


 Hi Aditya,

 \page[yes,quadruple]

Thank you Wolfgang.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page quadruple not working

2007-03-12 Thread Aditya Mahajan
Why does \page[quadruple] not work?

\setuppagenumbering [alternative=doublesided,location=footer]

\starttext

this is a test
\page[quadruple]
test

\stoptext


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context