[NTG-context] setupheader[state=high|empty]

2015-10-12 Thread Henning Hraban Ramm
Hi,
if I try \setupheader[state=high] (or empty), it works only for the first 
chapter; i.e. at the start of second and every following chapter, the header 
text is visible. Is this intentional?

I can work around this with
\setuphead[chapter][before={\setupheader[state=empty]}]



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] setupheader[state=high|empty]

2015-10-12 Thread Henning Hraban Ramm
Am 2015-10-12 um 20:39 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>:

>> Henning Hraban Ramm 12. Oktober 2015 um 11:58
>> Hi,
>> if I try \setupheader[state=high] (or empty), it works only for the first 
>> chapter; i.e. at the start of second and every following chapter, the header 
>> text is visible. Is this intentional?
> Yes.
>> I can work around this with
>> \setuphead[chapter][before={\setupheader[state=empty]}]
> \setuphead[chapter][header=empty] % header=high
> 
> Wolfgang

Danke!


Grüßlinge, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] setupheader[state=high|empty]

2015-10-12 Thread Wolfgang Schuster

Henning Hraban Ramm <mailto:te...@fiee.net>
12. Oktober 2015 um 11:58
Hi,
if I try \setupheader[state=high] (or empty), it works only for the 
first chapter; i.e. at the start of second and every following 
chapter, the header text is visible. Is this intentional?

Yes.

I can work around this with
\setuphead[chapter][before={\setupheader[state=empty]}]

\setuphead[chapter][header=empty] % header=high

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] Strange errors on using setupheader

2012-04-01 Thread Malte Stien
Hi Wolfgang,

Thank you so much for that. It did work. And yes, I was wondering whether there 
was a more elegant way of doing this. This way of setting and using variables 
does not seem to be all that well documented; it's not in the ConTeXt Manual, 
presumably because it is new, right?

I think I mostly worked it out, though, except for: What does this line mean:

  set=\texsetup{titlepage}

Thank you again,
Malte.

___
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] Strange errors on using setupheader

2012-04-01 Thread Hans Hagen

On 1-4-2012 12:35, Malte Stien wrote:

Hi Wolfgang,

Thank you so much for that. It did work. And yes, I was wondering whether there 
was a more elegant way of doing this. This way of setting and using variables 
does not seem to be all that well documented; it's not in the ConTeXt Manual, 
presumably because it is new, right?

I think I mostly worked it out, though, except for: What does this line mean:

   set=\texsetup{titlepage}


that the setup names 'titlepage' will be invoked each time after you set 
variables in this category so when you've set some titlepage properties 
a titlepage will be generated


Hans

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


Re: [NTG-context] Strange errors on using setupheader

2012-03-31 Thread Malte Stien
Hi all, Hi Hans,

Thank you for the fix. Okay, so now I am on

  ConTeXt  ver: 2012.03.30 16:16 MKIV  fmt: 2012.3.31  int: english/english

which does indeed fix the little problem I posted yesterday. However, I still 
have one more issue. Again, I condensed it down to something very close to a 
minimal example:


% Select A4 as the paper size
\setuppapersize[A4]

% A macro for the title page
\def\titlepage[#1][#2][#3][#4]{
\startstandardmakeup
\blank[50mm]
\rightaligned{\ss\tfd\bf\nohyphens{#1}}
\blank[2mm]\textrule[bottom]
\rightaligned{\ss{\tfc{\color[darkgray] {#2
\blank[170mm]

\ss\tfa\copyright\thinspace Some Company Pty Ltd \hfill #3 \par
\color[darkgray]\blank[small]
Commercial in Confidence \hfill Version #4
\stopstandardmakeup
}

\starttext
\startfrontmatter

\titlepage[Company Name][The Plan][Dr Who, et al.][0.1]
\completecontent

\page \chapter{Purpose and Scope}
\section[]{Purpose}
This document should be read in conjunction with bla bla bla...

\stopfrontmatter
\stoptext


This results in

29   \stopfrontmatter
30 \stoptext
31 

inserted text 
}
to be read again 
   \endgroup 
l.29 \stopfrontmatter


If I remove the line

  \color[darkgray]\blank[small]

from the \titlepage macro all works, which I find somewhat unexpected.

Could you please have a look at this?
Thank you.
Malte.


On 31/03/2012, at 1:17, Hans Hagen wrote:

 On 30-3-2012 11:47, Malte Stien wrote:
 Hans,
 
 No, everything works in the (by now ancient) current but is broken in the 
 beta. I am trying to switch to the beta as you suggested, but am being held 
 up by some errors, the first one of which is this
 
 Ah, I forgot to rename a macro ... new beta in an hour ...
 
 (btw, no need for utf directive in mkiv and english is default anyway)
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange errors on using setupheader

2012-03-31 Thread Wolfgang Schuster

Am 31.03.2012 um 14:20 schrieb Malte Stien:

 Hi all, Hi Hans,
 
 Thank you for the fix. Okay, so now I am on
 
  ConTeXt  ver: 2012.03.30 16:16 MKIV  fmt: 2012.3.31  int: english/english
 
 which does indeed fix the little problem I posted yesterday. However, I still 
 have one more issue. Again, I condensed it down to something very close to a 
 minimal example:
 
 
 \color[darkgray]\blank[small]
 Commercial in Confidence \hfill Version #4

You have to change this to:

\blank[small]
\color[darkgray]{Commercial Confidence \hfill Version #4}

A cleaner way to set the values for the title page is \setvariables:

\startsetups titlepage

  \startstandardmakeup[style=sans]

  \blank[50mm]

  \rightaligned{\bfd\getvariable{titlepage}{company}}

  \textrule

  \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}

  \blank[170mm]

   \starttabulate[|plf{\tfa}|prf{\tfa}|]
   \NC \tfa © Some Company Pty Ltd\NC  
\getvariable{titlepage}{author}   \NC\NR
   \TB[small]
   \NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{Version 
\getvariable{titlepage}{version}} \NC\NR
   \stoptabulate

  \stopstandardmakeup

\stopsetups

\starttext

\startfrontmatter

\setvariables
  [titlepage]
  [ set=\texsetup{titlepage},
company={Company Name},
 title={The Plan},
author={Dr Who, et al.},
   version={0.1}]

\stopfrontmatter

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


[NTG-context] Strange errors on using setupheader

2012-03-30 Thread Malte Stien
Hi again,

After I had some issues with \externalfigure, Hans suggested to me that I use a 
newer version of ConTeXt. So, rather than using the latest current (which seems 
to be from May 2011)

  ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.12.6  int: english/english

I am not using the latest beta

  ConTeXt  ver: 2012.03.29 11:28 MKIV  fmt: 2012.3.29  int: english/english

However, as it turns out, the document I am working on is no longer processed 
without errors. I butchered my document to isolate the error and come up with a 
(close to) minimal example:


% Use UTF encoding
\enableregime[utf]

% Set English as the language
\language[en]

% Select A4 as the paper size
\setuppapersize[A4]

% Setup the header...
\setupheadertexts[chapter][section]
\setupheader[leftwidth=.5\hsize, rightwidth=.4\hsize]

\starttext
\startfrontmatter
\completecontent

\chapter{Purpose and Scope}
\section[]{Purpose}
This document should be read in conjunction with bla bla bla...

\stopfrontmatter
\stoptext


I get the following error when processing with the aforementioned version:


argument doifelsemarking(\ascii 
   )
\ctxcommand #1-\directlua \zerocount {commands.#1
  }
\page_layouts_process_element_single_limited ...i 
  {\limitatetext {\getmarkin...
\page_layouts_process_element_single_indeed ...#4}
  \fi \endgroup 
\page_layouts_process_element_single ...#1#2#3{#4}
  \fi 
argument ...\layoutelementparameter \c!lefttext 
  \hss }\hskip -\makeupwidth...
...
l.18 \chapter{Purpose and Scope}


Strangely enough, all works well when I remove (or comment) the \setupheader 
line. Is there anything strange I am doing here? Should work, right?

Any pointers would be appreciated.
Thank you,
Malte.

___
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] Strange errors on using setupheader

2012-03-30 Thread Hans Hagen

On 30-3-2012 11:35, Malte Stien wrote:


argument  doifelsemarking(\ascii


So that's in the (by now ancient) current and not th ebets I assume?

Hans

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


Re: [NTG-context] Strange errors on using setupheader

2012-03-30 Thread Malte Stien
Hans,

No, everything works in the (by now ancient) current but is broken in the 
beta. I am trying to switch to the beta as you suggested, but am being held up 
by some errors, the first one of which is this

Regards,
Malte.

On 30/03/2012, at 20:44, Hans Hagen wrote:

 On 30-3-2012 11:35, Malte Stien wrote:
 
 argument  doifelsemarking(\ascii
 
 So that's in the (by now ancient) current and not th ebets I assume?
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange errors on using setupheader

2012-03-30 Thread Hans Hagen

On 30-3-2012 11:47, Malte Stien wrote:

Hans,

No, everything works in the (by now ancient) current but is broken in the 
beta. I am trying to switch to the beta as you suggested, but am being held up by some 
errors, the first one of which is this


Ah, I forgot to rename a macro ... new beta in an hour ...

(btw, no need for utf directive in mkiv and english is default anyway)


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


[NTG-context] setupheader is ignored

2011-12-16 Thread Steffen Fritzsche
Thanks Hans for fixing the other issue!

I've just discovered another problem. So far I switched the font in for my 
headers with the following command

  \setupheader [style={\ss\switchtobodyfont[10pt]}]

this does not work anymore. Is this on purpose or also a bug?

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


Re: [NTG-context] Columnset error with \setupheader[state=high]

2011-12-09 Thread Hans Hagen

On 7-12-2011 06:31, Peter Park Nelson wrote:

Hello, I hope someone has solved this problem already but I haven't been
able to find a solution.

When using \setupheader[state=high], my columnset behaves correctly on the
first page but runs over the footer area on all subsequent pages.


fixed in next beta



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


[NTG-context] Columnset error with \setupheader[state=high]

2011-12-07 Thread Peter Park Nelson
Update:

I don't have a solution yet, but here is my attempt to figure out where
this problem comes from. I may be (probably am) wrong; I am new to ConTeXt
and not an expert on its internals. But I'll toss this out to see if anyone
is interested.

When \startcolumnset is called, it seems to take a snapshot of the state
of the layout (via setuplayout). However, layout can change, even without
\setuplayout being explicitly called again, as in the case of header
state=high (which modifies the layout of  the first page only). By visual
inspection, it looks like the columnset output routine continues to use the
page dimensions from the first page on subsequent pages. Since the first
page has no header space, height of the text box on the first page will be
larger than on subsequent pages. Therefore, applying the first page height
on subsequent pages will result in text that runs over the footer area.

To see if a new call to \startcolumnset would fix things, I tried to find a
way to automatically do \startcolumnset again at the beginning of the
second page. A crude hack, using the startpostponing mechanism:

\startpostponing[2] % do this block on the second page
\unexpanded\stopcolumnset\unexpanded\startcolumnset[name] % manually end
the current columnset and then start it again.
\stoppostponing

This unfortunately results in a blank page after the first page; however,
the rest of the pages after that blank page have correct columnsets and
footers.

So a real solution to this problem could perhaps be done in two different
ways -- the difference being where in the ConTeXt code it is implemented:
A. The columnset output routine listens for changes in the layout state
and reloads or adjusts itself when layout state changes; or,
B. Any change in layout state passed to the output routine triggers a
re-call of the \startcolumnset macro.

These are probably oversimplified, but I hope someone who understands the
columnset output routine can see what I am trying to get at.
-- 
Peter Park Nelson
peter.park.nel...@gmail.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Columnset error with \setupheader[state=high]

2011-12-07 Thread Peter Park Nelson
Those \unexpanded 's are not necessary, sorry.

On Wed, Dec 7, 2011 at 4:42 PM, Peter Park Nelson 
peter.park.nel...@gmail.com wrote:

 Update:

 I don't have a solution yet, but here is my attempt to figure out where
 this problem comes from. I may be (probably am) wrong; I am new to ConTeXt
 and not an expert on its internals. But I'll toss this out to see if anyone
 is interested.

 When \startcolumnset is called, it seems to take a snapshot of the state
 of the layout (via setuplayout). However, layout can change, even without
 \setuplayout being explicitly called again, as in the case of header
 state=high (which modifies the layout of  the first page only). By visual
 inspection, it looks like the columnset output routine continues to use the
 page dimensions from the first page on subsequent pages. Since the first
 page has no header space, height of the text box on the first page will be
 larger than on subsequent pages. Therefore, applying the first page height
 on subsequent pages will result in text that runs over the footer area.

 To see if a new call to \startcolumnset would fix things, I tried to find
 a way to automatically do \startcolumnset again at the beginning of the
 second page. A crude hack, using the startpostponing mechanism:

 \startpostponing[2] % do this block on the second page
 \unexpanded\stopcolumnset\unexpanded\startcolumnset[name] % manually end
 the current columnset and then start it again.
 \stoppostponing

 This unfortunately results in a blank page after the first page; however,
 the rest of the pages after that blank page have correct columnsets and
 footers.

 So a real solution to this problem could perhaps be done in two different
 ways -- the difference being where in the ConTeXt code it is implemented:
 A. The columnset output routine listens for changes in the layout state
 and reloads or adjusts itself when layout state changes; or,
 B. Any change in layout state passed to the output routine triggers a
 re-call of the \startcolumnset macro.

 These are probably oversimplified, but I hope someone who understands the
 columnset output routine can see what I am trying to get at.
 --
 Peter Park Nelson
 peter.park.nel...@gmail.com




-- 
Peter Park Nelson
peter.park.nel...@gmail.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Columnset error with \setupheader[state=high]

2011-12-06 Thread Peter Park Nelson
Hello, I hope someone has solved this problem already but I haven't been
able to find a solution.

When using \setupheader[state=high], my columnset behaves correctly on the
first page but runs over the footer area on all subsequent pages.

If I do not use state=high (i.e. normal header on first page) the columnset
works correctly. However I need to get rid of that first page header. The
result is the same if I set state=high using
\setuphead[title][header=high].

I found a mention of this in a forum thread from 2006, but no solution:

http://www.ntg.nl/pipermail/ntg-context/2006/018535.html:

Ehrt, Michael wrote:
* ** Do you know if the column text overrunning the footer when using** 
state=high is a general problem or just me? If it's just me I'll** 
probably try installing a plain context distribution without miktex on a** 
separate machine...*
I expect it to be a general problem.
Taco

I have tried with TexLive 2011 and the 29 nov 2011 beta, but get the same
result.

Any help will be appreciated,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columnset running into footer when using \setupheader[state=high]

2008-11-26 Thread Jelle Huisman
Jelle Huisman wrote:
 % columnset running into footer area
 \definelayout[1][]
 \setupheader[state=high]
 \definetext[footerpagenumber][footer][pagenumber]
 \setuphead[chapter][page=yes,header=high,footer=footerpagenumber,number=no,align=middle]
 \definecolumnset[columnl][n=2]
 \showgrid \showframe
 \starttext
 \chapter{One}
 \startcolumnset[column]
 \dorecurse{10}{\input knuth}
 \stopcolumnset
 \stoptext

 Looking in the mail archive it looks like this is an old problem (see: 
 http://archive.contextgarden.net/message/20060516.092742.d455b795.en.html 
 ) but I'm wondering about a solution. Any thoughts?

One way around this is to use \setupcolumnsetlines[][][] to balance the 
columns. With a 1200 page publication: no fun.

Jelle
___
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] columnset running into footer when using \setupheader[state=high]

2008-11-25 Thread Jelle Huisman
Hi all,

I have a fairly standard setup with the usual code to move the 
pagenumber to the footer on the first page of the chapter. This works 
fine, except when I place the text in a columnset, in which case the 
columnset on page 2 (and all following pages) runs into the footer area. 
I'm fairly certain that \setupheader[state=high] interferes with way 
columnset counts the number of lines it can fit into each column, 
resulting in columns that run into the footer area. This code shows the 
problem:

% columnset running into footer area
\definelayout[1][]
\setupheader[state=high]
\definetext[footerpagenumber][footer][pagenumber]
\setuphead[chapter][page=yes,header=high,footer=footerpagenumber,number=no,align=middle]
\definecolumnset[columnl][n=2]
\showgrid \showframe
\starttext
\chapter{One}
\startcolumnset[column]
\dorecurse{10}{\input knuth}
\stopcolumnset
\stoptext

Looking in the mail archive it looks like this is an old problem (see: 
http://archive.contextgarden.net/message/20060516.092742.d455b795.en.html 
) but I'm wondering about a solution. Any thoughts?

Thanks.

Jelle
___
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] \setupheader: leftstyle rightstyle

2007-07-24 Thread Giuseppe Bilotta
Sunday, July 22, 2007 Mojca Miklavec wrote:

 However, there seems to be a little bug. This works perfectly well for
 section (\getmarking[section]), but for chapter the chapter labels
 seem to be erased after the first appearance.

Do you have a \page[even] in between? I've found that the
markings of the last section get cleared when an empty page
is inserted. See also my thread “Section marking forgotten
on next even page?”

-- 
Giuseppe Oblomov Bilotta  

___
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] \setupheader: leftstyle rightstyle

2007-07-23 Thread Mojca Miklavec
On 7/23/07, Matt Gushee wrote:
 Mojca Miklavec wrote:

   \setupheadertexts
   [\sc Book Title][]
   [][{\it (\getmarking[chapter][current])}]

 Okay, that seems to work, too. But why use the [current] argument? Are
 there conditions where

\getmarking[chapter]

 doesn't return the current chapter title?

Probably not, it's only an optional parameter. You have also [last],
[first], ... etc., but [current] is (most probably) the default one.

   However, there seems to be a little bug. This works perfectly well for
   section (\getmarking[section]), but for chapter the chapter labels
   seem to be erased after the first appearance.

 Hmm, that doesn't happen for me. I'm using the 2007-01-23 release of
 ConTeXt. Which version are you using?

I tested with 2007.04.17, 2007.01.12 and 2007.07.03, but result is the
same: Chapter title only appears on the first page and never again. If
you replace chapter by section, it works OK.

Mojca



\setuppagenumbering
[alternative=doublesided,location=bottom]
\setupheadertexts
[{\sc Book Title}][]
[][{\it (\getmarking[chapter][current])}]

\starttext

some text

\page

\chapter{First Chapter}

some text

\page

some text

\page

some text

\page

\chapter{Second Chapter}

some text

\page

\chapter{Third Chapter}

some text

\page

some text

\stoptext
___
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] \setupheader: leftstyle rightstyle

2007-07-22 Thread Matt Gushee
Hi, all--

I would like to use different styles for left and right headers in a 
book: I would like to set the left side (which shows the book title) in 
small caps, and the right side (chapter title) in italics.

   \setupheader[style=\sc]

works fine. So does

   \setupheader[style=\it]

But

   \setupheader[leftstyle=\sc,rightstyle=\it]

Doesn't work. Both headers appear in the (medium-weight roman) body 
font. Any idea why this is the case?

-- 
Matt Gushee
___
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] \setupheader: leftstyle rightstyle

2007-07-22 Thread Patrick Gundlach
Hello Matt,

\setupheader[leftstyle=\sc,rightstyle=\it]

I think the reference is wrong here, I couldn't find 'leftstyle' and
'rightstyle' in the source. And \setupheader is AFAIU for the section
title. You can use \setupheadertexts. See the example:

--
\starttext 
\setupheadertexts[{\sc This is my book!}][{\it \getmarking[section]}]
\setupfootertexts [pagenumber]

\setuppagenumbering [location=]
% \setuphead [section][style=\it]
\section{My first section}
\input tufte

\input knuth

\section{My second section}
\input tufte

\input tufte
\stoptext
--

Patrick
___
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] \setupheader: leftstyle rightstyle

2007-07-22 Thread Mojca Miklavec
On 7/22/07, Matt Gushee wrote:
 Hi, all--

 I would like to use different styles for left and right headers in a
 book: I would like to set the left side (which shows the book title) in
 small caps, and the right side (chapter title) in italics.

\setupheader[style=\sc]

 works fine. So does

\setupheader[style=\it]

 But

\setupheader[leftstyle=\sc,rightstyle=\it]

 Doesn't work. Both headers appear in the (medium-weight roman) body
 font. Any idea why this is the case?

I usually use something like

\setuppagenumbering
[alternative=doublesided,location=bottom]
\setupheadertexts
[\sc Book Title][]
[][{\it (\getmarking[chapter][current])}]

However, there seems to be a little bug. This works perfectly well for
section (\getmarking[section]), but for chapter the chapter labels
seem to be erased after the first appearance.

leftstyle= might also require implementation of
- style of the left label on left page
- style of the middle label on the left page
- style of the right labale on the left page
- all the three styles again on the right page, the same 6 for footer

Mojca
___
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] \setupheader: leftstyle rightstyle

2007-07-22 Thread Alex K
Hi,

Hope this isn't hijacking the thread, but I have a quick question related to 
this and I'd thought I'd post it here instead of starting a whole new topic 
about something similar. How do you center headers? I know that if you just use 
one header, it's automatically centered, but if you use alternating headers, 
they're left/right aligned by default... right?

So far I have a two-page spread set up so that the chapter appears on the right 
header and the title of the text on the left, but neither are centered. Do I 
use \midaligned, or am I on the wrong track?

Thanks.

- Original Message 
From: Mojca Miklavec [EMAIL PROTECTED]
To: mailing list for ConTeXt users ntg-context@ntg.nl
Sent: Sunday, July 22, 2007 7:56:12 AM
Subject: Re: [NTG-context]
 \setupheader: leftstyle  rightstyle

On 7/22/07, Matt Gushee wrote:
 Hi, all--

 I would like to use different styles for left and right headers in a
 book: I would like to set the left side (which shows the book title) in
 small caps, and the right side (chapter title) in italics.

\setupheader[style=\sc]

 works fine. So does

\setupheader[style=\it]

 But

\setupheader[leftstyle=\sc,rightstyle=\it]

 Doesn't work. Both headers appear in the (medium-weight roman) body
 font. Any idea why this is the case?

I usually use something like

\setuppagenumbering
[alternative=doublesided,location=bottom]
\setupheadertexts
[\sc Book Title][]
[][{\it
 (\getmarking[chapter][current])}]

However, there seems to be a little bug. This works perfectly well for
section (\getmarking[section]), but for chapter the chapter labels
seem to be erased after the first appearance.

leftstyle= might also require implementation of
- style of the left label on left page
- style of the middle label on the left page
- style of the right labale on the left page
- all the three styles again on the right page, the same 6 for footer

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








   
Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

sample.tex
Description: TeX document
___
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] \setupheader: leftstyle rightstyle

2007-07-22 Thread Matt Gushee
Patrick Gundlach wrote:

 'rightstyle' in the source. And \setupheader is AFAIU for the section
 title.

AFAIU? Sorry, I'm not familiar with that acronym.

 \setupheadertexts[{\sc This is my book!}][{\it \getmarking[section]}]

Ah, yes, that does the trick! Thank you.


Mojca Miklavec wrote:

  \setupheadertexts
  [\sc Book Title][]
  [][{\it (\getmarking[chapter][current])}]

Okay, that seems to work, too. But why use the [current] argument? Are 
there conditions where

   \getmarking[chapter]

doesn't return the current chapter title?

  However, there seems to be a little bug. This works perfectly well for
  section (\getmarking[section]), but for chapter the chapter labels
  seem to be erased after the first appearance.

Hmm, that doesn't happen for me. I'm using the 2007-01-23 release of 
ConTeXt. Which version are you using?

-- 
Matt Gushee
___
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] \setupheader: leftstyle rightstyle not working

2007-07-21 Thread Matt Gushee
[sorry if this appears twice--I accidentally sent it from the wrong
  e-mail account]

Hi, all--

I would like to use different styles for left and right headers in a 
book: I would like to set the left side (which shows the book title) in 
small caps, and the right side (chapter title) in italics.

   \setupheader[style=\sc]

works fine. So does

   \setupheader[style=\it]

But

   \setupheader[leftstyle=\sc,rightstyle=\it]

Doesn't work. Both headers appear in the (medium-weight roman) body 
font. Any idea why this is the case?

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