[NTG-context] thispagestyle

2007-03-11 Thread hector


Hello

I'm a new user of context, but i'm a user latex some years ago.

Y have some questions about context.

In this moment i want know what is the context
command for the latex command thispagestyle, for example
\thispagestyle{empty}?

Thanks

--
héctor





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


[NTG-context] figure occupies space into next page

2007-03-11 Thread Gerhard Kugler
Hi,

I have set a figure at left side. It approaches the botton of the
page. The first line of the next page starts at the mid as if the rest
of the figure would be there:

---
| |   text text text text text
|  figure |   text text text text text
| |   text text text text text
| |   text text text text text
| |   text text text text text
---

-automatic page break

  text text text text text
 text text text text text text text text text text
 text text text text text text text text text text
 text text text text text text text text text text

How can I prevent this behavior?

My command is simply:

\placefigure [left][fig:gub3]{Das
Relationsnetzwerk}{\externalfigure[gub3][width=0.45\textwidth]}


Gerhard

-- 
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] thispagestyle

2007-03-11 Thread Taco Hoekwater
hector wrote:
 
 Hello
 
 I'm a new user of context, but i'm a user latex some years ago.
 
 Y have some questions about context.
 
 In this moment i want know what is the context
 command for the latex command thispagestyle, for example
 \thispagestyle{empty}?

There is

   \noheaderandfooterlines  (disables header and footers on current page)

as well as

   \page[empty] (break this page, and insert an empty page)

Best, Taco






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


Re: [NTG-context] figure occupies space into next page

2007-03-11 Thread Taco Hoekwater
Hi Gerhard,

 I have set a figure at left side. It approaches the botton of the
 page. The first line of the next page starts at the mid as if the rest
 of the figure would be there:
 
 ---
 | |   text text text text text
 |  figure |   text text text text text
 | |   text text text text text
 | |   text text text text text
 | |   text text text text text
 ---
 
 -automatic page break
 
   text text text text text
  text text text text text text text text text text
  text text text text text text text text text text
  text text text text text text text text text text
 
 How can I prevent this behavior?

Does the figure itself fit on the page, or does it stick out on
the bottom? If it does not fit, you have to insert a
   \page[preference] (or perhaps even the stronger \page)
before the paragraph. If it does fit, the problem could
be caused by whitespace at the bottom of the image.

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


Re: [NTG-context] Some questions about context

2007-03-11 Thread Wolfgang Schuster
On Sun, 11 Mar 2007 14:15:47 +1100
Robin Kirkham [EMAIL PROTECTED] wrote:

 Hi Wolfgang,
 
 Many thanks for you help. I solved this problem by simply
 
 \setuplayout[%
  ... ,
  leftedge=20mm,
  rightedge=20mm]
 \setupheader[after=\hrule]
 
 It seems that if you give only one argument to \setupheader, it  
 applies to the whole header, including the left and right edges. So,  
 I just extend the edges off the page (or anywhere I need -- I don't  
 use the edges for anything else).
 
 I'll use your \vrule idea to control the line thickness, although the  
 \hrule default is about right anyway.

Hi Robin,

you can use \hrule height xx pt|cm|... to change the rulethickness. I
needed \vrule in my example because TeX was in horizontal mode where
you can only use \vrule, \hrule therefore can only be used in vertical
mode, you can see is depends on the current TeX if you can use \hrule
or \vrule.

Another thing is that your solution place the rule below the header
text, my method use the headerbackground and is therefore independant
from the current textstyle and size.

I played with your solution and found a few problem. I think there are
also problem that can appear with my solution but I had not tried to
find them.

\setuplayout
  [location=middle,
   leftedge=20mm,
   rightedge=20mm]

\setuppapersize[A5][A4]
%\showframe


\setupheader
  [after=\hrule]

\starttext

\input knuth

\page

\setupheader[state=empty]

\input knuth

\page

\setuppagenumbering[location=]
\setupheader[state=start]

\input knuth

\stoptext

Wolfgang

 
 Thanks,
 
 Robin
 
 
  Moreover, how do you get a rule in the header that extends from the
  left of the left margin, right across to the right of the right
  margin (including the gaps in between)?
 
  On 06/03/2007, at 10:00 PM, [EMAIL PROTECTED] wrote:
 
  From: Oliver Buerschaper [EMAIL PROTECTED]
  Date: 6 March 2007 9:19:23 PM
  Subject: Re: [NTG-context] Some questions about context
 
  And another question (in other topic): how we can do lines at
  header and
  footer like fancyheaders in latex?
 
  For your headers try this:
 
  \setupheader
[text]
[after=\hrule]
 
  Hi Robin,
 
  I tried to make something working and came to the following three
  methods to draw a rule under the header at the whole pagewidth.
 
  If you use ConTeXts default layout with different margins you should
  use bigger values for the rulewidth than only pagewidth.
 
  \setuplayout[location=middle,cutspace=\backspace,width=middle]
  %\setuppapersize[A5][A4]
  %\showframe
 
  \startuseMPgraphic{headerrule}
  setbounds currentpicture to unitsquare xyscaled (\the\paperwidth,\the
  \headerheight); draw (0,0)--(\the\paperwidth,0);
  \stopuseMPgraphic
 
  \defineoverlay
[headerrule]
[\useMPgraphic{headerrule}]
 
  \defineoverlay
[headerrule]
[\vrule height\headerheight width0pt%
 \vrule width\paperwidth height 0.4pt\relax]
 
  \defineoverlay
[headerrule]
[{\framed[width=\paperwidth,height=
  \headerheight,frame=off,bottomframe=on]{}}]
 
  \setupbackgrounds
[header]
[text]
[background=headerrule]
 
  \starttext
 
  \input knuth
 
  \stoptext
 
  Wolfgang
 
 ___
 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


[NTG-context] figure occupies space into next page

2007-03-11 Thread Gerhard Kugler
Hi,

my first try to send was not successful, so I repeat:


I have set a figure at left side. It approaches the botton of the
page. The first line of the next page starts at the mid as if the rest
of the figure would be there:

---
| |   text text text text text
|  figure |   text text text text text
| |   text text text text text
| |   text text text text text
| |   text text text text text
---

-automatic page break

  text text text text text
 text text text text text text text text text text
 text text text text text text text text text text
 text text text text text text text text text text

How can I prevent this behavior?

My command is simply:

\placefigure [left][fig:gub3]{Das
Relationsnetzwerk}{\externalfigure[gub3][width=0.45\textwidth]}


Gerhard

-- 
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] thispagestyle

2007-03-11 Thread Wolfgang Schuster
On Sat, 10 Mar 2007 19:30:28 -0500
hector [EMAIL PROTECTED] wrote:

 
 
 Hello
 
 I'm a new user of context, but i'm a user latex some years ago.
 
 Y have some questions about context.
 
 In this moment i want know what is the context
 command for the latex command thispagestyle, for example
 \thispagestyle{empty}?
 
 Thanks
 
 --
 héctor
 

Hi Hector,

you can make local changes by placing your content between \start ...
\stop and change the supress the header and footer with
\noheaderandfooterlines only at this local group.

If you want only to supress the header and footer at the page before
every chapter -- only when this page is empty -- you can use the
following setup.

\starttext

\setuphead
  [chapter]
  [page=,
   before={\page\ifodd\realpageno\else\page[empty]\fi\page[right]}]

\setupheadertexts
  [chapter]

\setuppagenumbering[alternative=doublesided]

\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }

\stoptext

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


Re: [NTG-context] figure occupies space into next page

2007-03-11 Thread Gerhard Kugler
On Sun, Mar 11, 2007 at 01:04:25PM +0100, Taco Hoekwater wrote:
 
 Does the figure itself fit on the page, or does it stick out on
 the bottom? If it does not fit, you have to insert a
\page[preference] (or perhaps even the stronger \page)
 before the paragraph. If it does fit, the problem could
 be caused by whitespace at the bottom of the image.
 

It fits. And there is enough space für the caption which fits also.

Gerhard

-- 
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context