Re: [NTG-context] Why does every new \setupTABLE add more whitespace to the left of table?

2007-07-02 Thread Wolfgang Schuster
2007/7/2, Hamid Kamrani <[EMAIL PROTECTED]>:
> What's the reaosn for this behaviour?
>
> Try:
>
> \starttext
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
>
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \setupTABLE[c][1][align=right]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
>
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
>
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
> \stoptext

Hi,

you comment chars after your \setupTABLE commands.

Your \start/\stop pair can also be removed in your examples,
\framed keeps the \setups local.

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] Index bug (urgent)

2007-07-02 Thread luigi scarso
On 7/3/07, Idris Samawi Hamid <[EMAIL PROTECTED]> wrote:
> Dear gang,
>
> Consider the following:
>
> 
> \starttext
>
> \setupregister[index][n=1]
>
> \index{This is a very, very, very, very, very, very, very, very, very,
>   very, very, very, very, very, long entry}{This is a very, very, very,
>   very, very, very, very, very, very, very, very, very, very, very, long
>   entry}
>
> \index{U}{U}
>
> \placeindex
>
> \stoptext
> 
>
> If we comment the \index{U}{U}, then, in the index, the previous indexed
> entry does not indent the second line.
>
> That is, if the very last entry in an index is long, then indentation of
> the second line is lost.
hmm, i see differences on my context-box

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=cont-en
2007.5.30)  3 JUL 2007 01:01
entering extended mode
\write18 enabled.
 %&-line parsing enabled.
 (/opt/texlive/2007/texmf-var/web2c/natural.tcx)
**test002.tex emergencyend
(./test002.tex
ConTeXt  ver: 2007.04.17 12:51 MKII  fmt: 2007.5.30  int: english/english

A  bug of last beta release ? Try
http://live.contextgarden.net/
-- 
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  : 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
___


[NTG-context] Index bug (urgent)

2007-07-02 Thread Idris Samawi Hamid
Dear gang,

Consider the following:


\starttext

\setupregister[index][n=1]

\index{This is a very, very, very, very, very, very, very, very, very,
  very, very, very, very, very, long entry}{This is a very, very, very,
  very, very, very, very, very, very, very, very, very, very, very, long
  entry}

\index{U}{U}

\placeindex

\stoptext


If we comment the \index{U}{U}, then, in the index, the previous indexed  
entry does not indent the second line.

That is, if the very last entry in an index is long, then indentation of  
the second line is lost.

Can this be fixed or is there a workaround?

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] whitespace in framedtext

2007-07-02 Thread Hans van der Meer
I would like to shrink the whitespace at the top and the bottom of a  
framedtext.

Like thus:

not this but this
--  --
||  ||
||  |   abcd |
|   abcd |  |   abcd |
|   abcd |  ||
||  --
||
--

I have tried a lot of things with [before, after, top, bottom].
Although [depthcorrection=off] shaves somewhat off the whitespace, it  
is not much nor am I sure if this is on the right track; and it is  
not parametrized.


Someone knows the trick?

Hans van der Meer


___
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] Why does every new \setupTABLE add more whitespace to the left of table?

2007-07-02 Thread Hamid Kamrani
What's the reaosn for this behaviour?

Try:

\starttext
\startbuffer
\start
\setupTABLE[frame=on]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}

\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}

\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}

\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}
\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
___


Re: [NTG-context] fancyhdr equivalent

2007-07-02 Thread Wolfgang Schuster
2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> On 7/2/07, Peter I. Hansen <[EMAIL PROTECTED]> wrote:
> > On 7/2/07, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
> > > 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED] >:
> > > > On 7/2/07, Wolfgang Schuster
> > > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > 2007/7/2, Peter I. Hansen < [EMAIL PROTECTED]>:
> > > > > > Thanks, this works for me. One thing though, I would like to turn
> the
> > > > > > framing off on pages where a chapter begins. I tried
> > > > > > \setuphead[chapter][header=empty], but this just
> gives
> > > > me
> > > > > > an empty frame.
> > > > > >  Is there a way to selectively turn of backgounds on for example
> chapter
> > > > > > pages?
> > > > >
> > > > > \setuphead
> > > > >   [chapter]
> > > > >
> > > >
> [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
> > > > >header=high]
> > > > >
> > > > > \setupbackgrounds[header][text][frame=on]
> > > > >
> > > > > \starttext
> > > > >
> > > > > \dorecurse{4}
> > > > >   {\chapter{Knuth}
> > > > >\dorecurse{12}
> > > > >  {\input knuth\par}}
> > > > >
> > > > > \stoptext
> > > >
> > > > Beautifull. One problem arise, if you put a \placecontent after
> \starttext
> > > > the first chapter will stil have the frame on.
> > >
> > > do you mean
> > >
> > > \starttext
> > > \placecontent
> > > \chapter{Knuth}
> > > \stoptext
> > >
> > > I see only a frame on the first page with the table of contents and
> > > this normal because there is no chapter on this page.
> > >
> > > use \completecontent and not \placecontent
> > >
> > > if this is not what you mean send a example
> >
> > \completecontent seems to solve my problem so far... To see  what my
> > problem was  try out the following example:
> >
> > \setuplayout[location=middle,
> >  header=\lineheight,
> >
> headerdistance=\lineheight]
> >
> > \setuppagenumbering [alternative=doublesided,location=]
> >
> > \setupheadertexts   [section][pagenumber]
> > [pagenumber][chapter]
> >
> > \setuphead
> > [chapter]
> >
> [%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]},
> >   header=high]
> >
> > \setupbackgrounds
> [header][text][frame=off,bottomframe=on]
> >
> > \starttext
> >
> > \placecontent
> > %\completecontent
> >
> > \dorecurse{3}
> > {\chapter{Test}
> > \dorecurse{250}{talking talking talking }
> > }
> >
> > \stoptext
> >
>
> Actually, if I add something before the content, eg.
> \subject{Preface}\page[yes] then things go bad again... There is something
> about this I can't grasp.

Can you send the pdf file and explain what is wrong in the output

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] fancyhdr equivalent

2007-07-02 Thread Peter I. Hansen

On 7/2/07, Peter I. Hansen <[EMAIL PROTECTED]> wrote:


On 7/2/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> > On 7/2/07, Wolfgang Schuster
> > <[EMAIL PROTECTED]> wrote:
> >
> > > 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> > > > Thanks, this works for me. One thing though, I would like to turn
the
> > > > framing off on pages where a chapter begins. I tried
> > > > \setuphead[chapter][header=empty], but this just gives
> > me
> > > > an empty frame.
> > > >  Is there a way to selectively turn of backgounds on for example
chapter
> > > > pages?
> > >
> > > \setuphead
> > >   [chapter]
> > >
> > [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
> > >header=high]
> > >
> > > \setupbackgrounds[header][text][frame=on]
> > >
> > > \starttext
> > >
> > > \dorecurse{4}
> > >   {\chapter{Knuth}
> > >\dorecurse{12}
> > >  {\input knuth\par}}
> > >
> > > \stoptext
> >
> > Beautifull. One problem arise, if you put a \placecontent after
\starttext
> > the first chapter will stil have the frame on.
>
> do you mean
>
> \starttext
> \placecontent
> \chapter{Knuth}
> \stoptext
>
> I see only a frame on the first page with the table of contents and
> this normal because there is no chapter on this page.
>
> use \completecontent and not \placecontent
>
> if this is not what you mean send a example

\completecontent seems to solve my problem so far... To see  what my
problem was  try out the following example:

\setuplayout[location=middle,
 header=\lineheight,
 headerdistance=\lineheight]

\setuppagenumbering [alternative=doublesided,location=]

\setupheadertexts   [section][pagenumber]
[pagenumber][chapter]

\setuphead
[chapter]
[%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]},
  header=high]

\setupbackgrounds   [header][text][frame=off,bottomframe=on]

\starttext

\placecontent
%\completecontent

\dorecurse{3}
{\chapter{Test}
\dorecurse{250}{talking talking talking }
}

\stoptext



Actually, if I add something before the content, eg.
\subject{Preface}\page[yes] then things go bad again... There is something
about this I can't grasp.
___
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] fancyhdr equivalent

2007-07-02 Thread Wolfgang Schuster
2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
>
> \completecontent seems to solve my problem so far... To see  what my
> problem was  try out the following example:
>
> \setuplayout[location=middle,
>  header=\lineheight,
>  headerdistance=\lineheight]
>
> \setuppagenumbering [alternative=doublesided,location=]
>
> \setupheadertexts   [section][pagenumber]
> [pagenumber][chapter]
>
> \setuphead
>  [chapter]
>  [%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]},
>   header=high]
>
> \setupbackgrounds   [header][text][frame=off,bottomframe=on]
>
> \starttext
>
> \placecontent
> %\completecontent
>
> \dorecurse{3}
> {\chapter{Test}
> \dorecurse{250}{talking talking talking }
> }
>
> \stoptext
>

I see a rule on page 1, 2, 4, 6 and 8, no rules are on page 3, 5 and 7.

All of them are correct and what I expect from your setups.
I am correct you don't want the rule on the first page.

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] fancyhdr equivalent

2007-07-02 Thread Peter I. Hansen
On 7/2/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> > On 7/2/07, Wolfgang Schuster
> > <[EMAIL PROTECTED]> wrote:
> >
> > > 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> > > > Thanks, this works for me. One thing though, I would like to turn the
> > > > framing off on pages where a chapter begins. I tried
> > > > \setuphead[chapter][header=empty], but this just gives
> > me
> > > > an empty frame.
> > > >  Is there a way to selectively turn of backgounds on for example chapter
> > > > pages?
> > >
> > > \setuphead
> > >   [chapter]
> > >
> > [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
> > >header=high]
> > >
> > > \setupbackgrounds[header][text][frame=on]
> > >
> > > \starttext
> > >
> > > \dorecurse{4}
> > >   {\chapter{Knuth}
> > >\dorecurse{12}
> > >  {\input knuth\par}}
> > >
> > > \stoptext
> >
> > Beautifull. One problem arise, if you put a \placecontent after \starttext
> > the first chapter will stil have the frame on.
>
> do you mean
>
> \starttext
> \placecontent
> \chapter{Knuth}
> \stoptext
>
> I see only a frame on the first page with the table of contents and
> this normal because there is no chapter on this page.
>
> use \completecontent and not \placecontent
>
> if this is not what you mean send a example

\completecontent seems to solve my problem so far... To see  what my
problem was  try out the following example:

\setuplayout[location=middle,
 header=\lineheight,
 headerdistance=\lineheight]

\setuppagenumbering [alternative=doublesided,location=]

\setupheadertexts   [section][pagenumber]
[pagenumber][chapter]

\setuphead
 [chapter]
 [%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]},
  header=high]

\setupbackgrounds   [header][text][frame=off,bottomframe=on]

\starttext

\placecontent
%\completecontent

\dorecurse{3}
{\chapter{Test}
\dorecurse{250}{talking talking talking }
}

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


Re: [NTG-context] Itemize problem

2007-07-02 Thread Hamid Kamrani
This happens on live context too. Itemize starts with 0 in some
situations. You can create the problem with:

\starttext

\bTABLE
\bTR
\bTD
\startitemize[n]
\item one
\item two
\stopitemize
\eTD
\eTR
\eTABLE

\stoptext

On 7/1/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Mon, 2 Jul 2007, [EMAIL PROTECTED] wrote:
>
> > To Aditya
> >
> >> It is possible that this change caused your existing setup to break.
> >> Can you create a minimum example that exhibits the problem? Start with
> >> Patrick's example, and start adding lines from your setup, so that the
> >> problem reappears. That may help in figuring out if it is something
> >> wrong in your setup, or a bug.
> >
> > I already provide a minimum example. Patrick just used my example on
> > Context live where it works. On my system with the latest Context it does
> > not.
> >
> > In addition, what could be wrong with my setup ? The setup
> > is all Context and nothing special and the setup
> > I am using, did not give me problems in the past.
> > I will try to debug but I think it must be a bug with the latest Context.
>
> Can you send the log file that you get with
>
> \tracingmacros 2
> \starttext
> \startitemize[n]
> \item one
> \item two
> \stopitemize
> \stoptext
>
> Aditya
> ___
> 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] fancyhdr equivalent

2007-07-02 Thread Wolfgang Schuster
2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> On 7/2/07, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>
> > 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> > > Thanks, this works for me. One thing though, I would like to turn the
> > > framing off on pages where a chapter begins. I tried
> > > \setuphead[chapter][header=empty], but this just gives
> me
> > > an empty frame.
> > >  Is there a way to selectively turn of backgounds on for example chapter
> > > pages?
> >
> > \setuphead
> >   [chapter]
> >
> [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
> >header=high]
> >
> > \setupbackgrounds[header][text][frame=on]
> >
> > \starttext
> >
> > \dorecurse{4}
> >   {\chapter{Knuth}
> >\dorecurse{12}
> >  {\input knuth\par}}
> >
> > \stoptext
>
> Beautifull. One problem arise, if you put a \placecontent after \starttext
> the first chapter will stil have the frame on.

do you mean

\starttext
\placecontent
\chapter{Knuth}
\stoptext

I see only a frame on the first page with the table of contents and
this normal because there is no chapter on this page.

use \completecontent and not \placecontent

if this is not what you mean send a example

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] fancyhdr equivalent

2007-07-02 Thread Peter I. Hansen

On 7/2/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:


2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> Thanks, this works for me. One thing though, I would like to turn the
> framing off on pages where a chapter begins. I tried
> \setuphead[chapter][header=empty], but this just gives me
> an empty frame.
>  Is there a way to selectively turn of backgounds on for example chapter
> pages?

\setuphead
  [chapter]
  [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
   header=high]

\setupbackgrounds[header][text][frame=on]

\starttext

\dorecurse{4}
  {\chapter{Knuth}
   \dorecurse{12}
 {\input knuth\par}}

\stoptext



Beautifull. One problem arise, if you put a \placecontent after \starttext
the first chapter will stil have the frame on.
___
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] fancyhdr equivalent

2007-07-02 Thread Aditya Mahajan
On Mon, 2 Jul 2007, Wolfgang Schuster wrote:

> 2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
>> Thanks, this works for me. One thing though, I would like to turn the
>> framing off on pages where a chapter begins. I tried
>> \setuphead[chapter][header=empty], but this just gives me
>> an empty frame.
>>  Is there a way to selectively turn of backgounds on for example chapter
>> pages?
>
> \setuphead
>  [chapter]
>  [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
>   header=high]
>
And incase you only want to get rid of the frame:

\setupbackgrounds[state=repeat]
\setupbackgrounds[header][text][background=whatever]
\defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight]{}}]
\couplepage[chapter][before={\defineoverlay[whatever][]}]
\setuphead[chapter][before={\pagetype[chapter]}]
\starttext
  \chapter{First} \page test \chapter{second} \page test

Aditya
___
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] fancyhdr equivalent

2007-07-02 Thread Wolfgang Schuster

2007/7/1, Peter I. Hansen <[EMAIL PROTECTED]>:

Hello

Just getting started with ConTeXt, and liking it so far :)

However, I would like to use something similar to the LaTeX 'fancyhdr'
package. I've been poking around trying to find such a thing and the closest
I could get is:

http://osdir.com/ml/tex.context/2001-10/msg00094.html

I can't find it in the manual, so if it is built in maybe one of you guys
can tell how to use it?

Thanks, Peter


Hi Peter,

you can use my module wolf-txt to come closer to the LaTeX.

It provides left, middle and right keys for the headertexts.

Wolfgang


wolf-txt.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] fancyhdr equivalent

2007-07-02 Thread Wolfgang Schuster
2007/7/2, Peter I. Hansen <[EMAIL PROTECTED]>:
> Thanks, this works for me. One thing though, I would like to turn the
> framing off on pages where a chapter begins. I tried
> \setuphead[chapter][header=empty], but this just gives me
> an empty frame.
>  Is there a way to selectively turn of backgounds on for example chapter
> pages?

\setuphead
  [chapter]
  [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]},
   header=high]

\setupbackgrounds[header][text][frame=on]

\starttext

\dorecurse{4}
  {\chapter{Knuth}
   \dorecurse{12}
 {\input knuth\par}}

\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] metafun/label: utf8 and spaces

2007-07-02 Thread Patrick Gundlach
Hi Mojca,


>> label("foobar baz äöß",(3cm,3cm));  % <-- broken
>> draw btex foobar baz äöß  etex  % <--- OK


>
> Why not this one? [\sometxt] (Much faster, less problems, etc.)

(with the sound of 'wizard of oz')
Because, because, because... I didn't know about it. 

Thanks!

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] fancyhdr equivalent

2007-07-02 Thread Peter I. Hansen

On 7/2/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:


On Mon, 2 Jul 2007, Peter I. Hansen wrote:

> On 7/1/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>>
>> On Sun, 1 Jul 2007, Peter I. Hansen wrote:
>>
>> > Hello
>> >
>> > Just getting started with ConTeXt, and liking it so far :)
>> >
>> > However, I would like to use something similar to the LaTeX
'fancyhdr'
>> > package. I've been poking around trying to find such a thing and the
>> closest
>> > I could get is:
>> >
>> > http://osdir.com/ml/tex.context/2001-10/msg00094.html
>> >
>> > I can't find it in the manual, so if it is built in maybe one of you
>> guys
>> > can tell how to use it?
>>
>> Look at Section 4.17 of ConTeXt manual
>> 
>
>
> What I would like to do is for example to frame the headertext, and I
tried
> with eg.
>
> \setupheadertexts  [chapter][pagenumber]
> \setupheader [style=\inframed]
>
> But this creates a framed chapter text and a framed pagenumber. How do I
put
> both in one frame?
>

\setupbackgrounds  [header][text][frame=on]

To get a decent visual effect, you need to set the header height to be
something reasonable, for example

\setuplayout[header=2\lineheight]



Thanks, this works for me. One thing though, I would like to turn the
framing off on pages where a chapter begins. I tried
\setuphead[chapter][header=empty], but this just gives me an empty frame.
Is there a way to selectively turn of backgounds on for example chapter
pages?
___
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] Time to take over a ConTeXt project in Hamburg, Germany?

2007-07-02 Thread Karsten Heymann
Hi,

I'm looking for someone to take over long-term support for a running
(paid) ConTeXt project in Hamburg, Germany. I'm currently supporting a
small scientific institution who does regular publications with
context, but since I'm leaving university now and changing places to
start a "real" full-time job, I (sadly) will have no more time to do
so.

The job consists of:

* maintaining the layout files and do occasionally changes
* maintaining their local context installation (minimal installation
on Ubuntu 6.06)
* providing simple linux/subversion/scite support (nothing complicated)
* (optional) maintaining the existing Word-HTML to XML converter
written in python

If you

* have some experience in using and configuring context (installing
fonts, defining layouts,
  getting multi-column-grid layout looking nice)
* can communicate in german
* know how to use subversion
* can start right now (or at least quite soon)
* (optional) can provide occasional local support in Hamburg

then please contact me for further information.

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