Re: [NTG-context] \textrules in header

2009-05-17 Thread Robert-André Mauchin

> Hans Hagen wrote (2001-10-18 (13:09)):
>
> > At 09:40 AM 10/18/2001 +, Peter Jander wrote:
> > > Hi,
> > >
> > > I want a line to separate the header from the text body. Now if I
> > > say
> > >
> > > \setupheader[after=\textrule]
> > >
> > > the line starts in the margin. The length is the width of the text
> > > (which is ok). The same happens with a \hairline.
> > > Any suggestions on how I can make the line span just the text
> > > block?
> >
> > \setupbackgrounds[header][text]
> > [frame=on,topframe=off,leftframe=off,rightframe=off]
> >
> > \setuplayout[header=18pt,headerdistance=12pt]
> >
> > \starttext \input tufte \stoptext
>
> Why doesn't Peter's solution work? It is the first that a new
> user will think about (well, I did, at least :-). And the rules
> really are something that logically belongs to the header, not
> to the background. For example, when you start a new chapter,
> and switch off the header on its first page, then you want the
> rule to disappear as well, and not to switch it off separately
> by changing the state of the background. (By the way, how would
> that work? Can you give a \setuphead solution?)
>
> Marco

Hi,

Sorry to bump this very old thread, but I've searched a long time to 
find this solution :


\setupheader[text][after=\hrule height 1pt]

Hope it helps

Bob
___
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] columns(ets) and itemize[columns]

2009-05-17 Thread Wolfgang Schuster


Am 17.05.2009 um 23:31 schrieb Alan BRASLAU:


Hello,

I just completed a "big" project making heavy use of columnset,  
columnsetspan

and paragraphs. Very powerful!

Two questions, first:
What is the real difference between columns and columnset?
I am a bit confused* about their coexistence. Is this purposeful or  
necessary
(or is it simply historical)? Is \startcolumns simply an unnamed,  
"default"

columnset?


columns and columnset are two different mechanism two produce a document
with text and two or more columns. the columns mechanism is the older  
one
with limited control about the placement of figures but allows you to  
mix

one column and multicolumns text on a page. columnsets are a new version
of the column mechanism with more control about the placement of figures
and other features like spanned columns etc. (look at the manual for  
more)
and is better suited for magazine like layouts (Vit Zyka posted a few  
nice

examples a few years ago).


(*and the wiki page needs to be clarified...)


the wiki is from users for users, feel free to correct the articles


Second question, maybe a bug?
\startitemize[columns] does not interact well:
I suspect that it could or should use paragraphs internally rather  
than

columns so as to work within a column(set).


that's a limitation in tex, when you use the 'columns' key for itemize
the items are typeset with a \startcolumns / \stopcolumns before and
after the environment and you can nest columns /columnset environments
(a tex limitation) but in normal one column text this is not the case
and you can use multicolumn items in most cases (in a few cases
streamlayer are necessary, e.g. within framedtext) but you can

\startcolumns
\startsimplecolumns
\startitemize
\item one
\item two
...
\stopitemize
\stopsimplecolumns
\stopcolumns

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
___


[NTG-context] columns(ets) and itemize[columns]

2009-05-17 Thread Alan BRASLAU
Hello,

I just completed a "big" project making heavy use of columnset, columnsetspan 
and paragraphs. Very powerful!

Two questions, first:
What is the real difference between columns and columnset?
I am a bit confused* about their coexistence. Is this purposeful or necessary 
(or is it simply historical)? Is \startcolumns simply an unnamed, "default" 
columnset?

(*and the wiki page needs to be clarified...)

Second question, maybe a bug?
\startitemize[columns] does not interact well:
I suspect that it could or should use paragraphs internally rather than 
columns so as to work within a column(set).

Minimal example:

\starttext

\startitemize[columns] \item first \item second \item third \stopitemize

\startcolumns[n=2]

\startitemize[columns] \item forth \item fifth \item sixth \stopitemize

\column

\startitemize[columns] \item seventh \item eighth \item nineth \stopitemize

\stopcolumns

\stoptext

Gives something like:

•_first_•_third
•_second

•_forth•_seventh
•_fifth_•_eighth
•_sixth•_nineth

Whereas I was expecting:

•_first_•_third
•_second

•_forth__•_sixth___•_seventh_•_nineth
•_fifth_•_eighth

Alan

___
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] formula-style alignment

2009-05-17 Thread afsmith
Hey again, ntg-context.

I would like to align one piece of a line to the left, and another
piece of the same line to the right, sort of like numbered math
equations, except not math.
Additionally I would like to do this inside a narrowed block


How can I do this? I have tried side-by-side-frames-inside-a-frame but
the two pieces of the line just stay clumped together. I have tried
'\startalign' and '\(left|right)aligned' to no avail. I have tried
'\hfill' but that pushes things past into/past the right margin...
___
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] underbar to space

2009-05-17 Thread Peter Münster
On Sun, 17 May 2009, Xan wrote:

> I just want to do \underbar{\ \ \ \ \ \ \ \ \ \  \ } for doing something
> like: __ . When I do that ConTeXt does not underbar me the
> spaces. The same applies for \underbar{\space \space \space }
> 
> How can I get that \underbar underbars the spaces even?

\starttext
\underbar{\dorecurse{50}~}
\stoptext

Cheers, Peter

-- 
Contact information: 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
___


[NTG-context] underbar to space

2009-05-17 Thread Xan

Hi,

I just want to do \underbar{\ \ \ \ \ \ \ \ \ \  \ } for doing 
something like: __ . When I do that ConTeXt does not 
underbar me the spaces. The same applies for \underbar{\space \space 
\space }


How can I get that \underbar underbars the spaces even?

Thanks in advance,
Xan.

PS: Please CC mail me.
___
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
___