Re: [NTG-context] Controlling figure placement?

2006-05-24 Thread Ehrt, Michael
Hi there,

this is the only thing I could come up with, using manual page breaks and not 
using an area at all:

Before \starttext, do

\setupbackgrounds[page][background=pagegraphics]
\definelayer[pagegraphics][x=0cm,y=0cm,width=\paperwidth,height=\paperheight]
\useexternalfigure[pdf01][01-x3.pdf][scale=1000]


Within the columnset, at the appropriate place do

\page
%if necessary, manual spacing adjustment on the last line of the prev. Page
\setupheader[state=empty]
\setupfooter[state=empty]
\setlayer[pagegraphics][x=0mm, y=0mm]{\externalfigure[pdf01]}
~\page


This is more or less ugly, since I  have to break pages manually and maybe need 
to adjust spacing on the page before the image. But I'm used to it, that's the 
way I did it in LaTeX when I used the multicols package. I just thought there 
must be a more elegant solution within Context.
I did try to place the background in the columnsetarea (which worked), but in 
there never got rid of the headers.

Does anyone know if it's possible? Hans maybe?

Because that would be the one thing I need. If it's not possible I'll just keep 
doing the LaTeX thing in Context, and have the advantage of column spans for 
introduction text as a bonus...


Michael



> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von Ehrt, Michael
> Gesendet: Mittwoch, 24. Mai 2006 09:54
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Controlling figure placement?
> 
> Hi again, 
> 
> > Is there a way that gives more control over figure 
> placement within a
> > columnset area? What I'd like to do is:
> > 
> > - have a columnset area that covers a whole page
> > - if possible, leave out headers and footers on that page 
> (don't know
> > how)
> > - place an external figure on that page which is the same 
> size as the
> > whole page, 210 by 297mm.
> > 
> > What I tried so far is:
> > 
> > \definecolumnset[test][n=3,distance=15pt]
> > \definecolumnsetspan[intro][n=2]
> > \definecolumnsetarea[one][fixed][x=1,y=1,nx=3,ny=46,page=3,sta
> > te=start]
> > \definecolumnsetarea[two][fixed][x=1,y=1,nx=3,ny=46,page=5,sta
> > te=start]
> > \setupcolumnsetareatext[one][\setups{mypdf}]
> > \setupcolumnsetareatext[two][\setups{myjpg}]
> > \startsetups[mypdf]\externalfigure[01-x3.pdf]\stopsetups
> > \startsetups[myjpg]\externalfigure[01.jpg]\stopsetups
> 
> 
> I managed to clear headers and footers by using
> 
> \setupcolumnsetareatext[one][{\page[no,blank]\setups{mypdf}}]
> \setupcolumnsetareatext[two][{\page[no,blank]\setups{myjpg}}]
> 
> But this has the problem that it clears ALL headers and footers on
> subsequent pages. Trying to clear them using
> \setupheader[text][state=empty] here didn't work. What I 
> actually looked
> for was something like
> 
> \adaptlayout[3,5][command={\setupheader[text][state=empty]\set
> upfooter[t
> ext][state=empty]}]
> 
> But this doesn't exist. Also, changing the layout width is 
> not possible
> with adaptlayout, which might fix the left-right-positioning...
> 
> Does anyone know how to do it?
> 
> Cheers
> 
> Michael
> ___
> 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] Controlling figure placement?

2006-05-24 Thread Ehrt, Michael
Hi again, 

> Is there a way that gives more control over figure placement within a
> columnset area? What I'd like to do is:
> 
> - have a columnset area that covers a whole page
> - if possible, leave out headers and footers on that page (don't know
> how)
> - place an external figure on that page which is the same size as the
> whole page, 210 by 297mm.
> 
> What I tried so far is:
> 
> \definecolumnset[test][n=3,distance=15pt]
> \definecolumnsetspan[intro][n=2]
> \definecolumnsetarea[one][fixed][x=1,y=1,nx=3,ny=46,page=3,sta
> te=start]
> \definecolumnsetarea[two][fixed][x=1,y=1,nx=3,ny=46,page=5,sta
> te=start]
> \setupcolumnsetareatext[one][\setups{mypdf}]
> \setupcolumnsetareatext[two][\setups{myjpg}]
> \startsetups[mypdf]\externalfigure[01-x3.pdf]\stopsetups
> \startsetups[myjpg]\externalfigure[01.jpg]\stopsetups


I managed to clear headers and footers by using

\setupcolumnsetareatext[one][{\page[no,blank]\setups{mypdf}}]
\setupcolumnsetareatext[two][{\page[no,blank]\setups{myjpg}}]

But this has the problem that it clears ALL headers and footers on
subsequent pages. Trying to clear them using
\setupheader[text][state=empty] here didn't work. What I actually looked
for was something like

\adaptlayout[3,5][command={\setupheader[text][state=empty]\setupfooter[t
ext][state=empty]}]

But this doesn't exist. Also, changing the layout width is not possible
with adaptlayout, which might fix the left-right-positioning...

Does anyone know how to do it?

Cheers

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


[NTG-context] Framedtext left/right offset?

2006-05-23 Thread Ehrt, Michael
Hi,

Is there a way to have 

\startcolumnsetspan[intro]
\startframedtext[frame=off,bottomframe=on,topframe=on,offset=1ex]
\it Some introduction text here
\stopframedtext
\stopcolumnsetspan

without the offset to the left and right? There's no frame drawn to the
left and right so I don't want the offset there. Since I couldn't find a
way to get rid of the offset I'm currently using

\startcolumnsetspan[intro]
\hrule\vskip1ex
\it \input knuth
\vskip1ex\hrule\crlf
\stopcolumnsetspan

I know that the use of \vskip is not recommended (according to the
manual), but this is the only way I found...

Cheers

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


[NTG-context] Controlling figure placement?

2006-05-23 Thread Ehrt, Michael
Hi everyone,

Is there a way that gives more control over figure placement within a
columnset area? What I'd like to do is:

- have a columnset area that covers a whole page
- if possible, leave out headers and footers on that page (don't know
how)
- place an external figure on that page which is the same size as the
whole page, 210 by 297mm.

What I tried so far is:

\definecolumnset[test][n=3,distance=15pt]
\definecolumnsetspan[intro][n=2]
\definecolumnsetarea[one][fixed][x=1,y=1,nx=3,ny=46,page=3,state=start]
\definecolumnsetarea[two][fixed][x=1,y=1,nx=3,ny=46,page=5,state=start]
\setupcolumnsetareatext[one][\setups{mypdf}]
\setupcolumnsetareatext[two][\setups{myjpg}]
\startsetups[mypdf]\externalfigure[01-x3.pdf]\stopsetups
\startsetups[myjpg]\externalfigure[01.jpg]\stopsetups

The pdf is placed on page 3, left aligned at the text body, top aligned
at the text body. Both is not what I want in this case.

The jpg is placed on page 5, vertically centered which is ok, left
aligned at the text body which is also not what I want.

Headers and footers are not a problem this time, since the figure
obscures them. But in the past I've had images slightly smaller than the
text body, in which case I'd like to wipe out headers and footers on
that particular page...

Any ideas anyone?

Cheers

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


[NTG-context] Columns again

2006-05-17 Thread Ehrt, Michael
Hi everyone,

Is there a way to nest two
\startcolumns environments, or to define a columnsetspan that "wraps"?

What I'd like to do is produce a two column text which is unbalanced on
the last page, and then place another two-column text in the last
column. I haven't yet found a way to do it in ConTeXt since nesting
\startcolumns doesn't seem to work...

Cheers

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


[NTG-context] A few columnset questions

2006-05-16 Thread Ehrt, Michael
Hi there,

I've been experimenting a bit with columnset (thats THE one feature
which will make me convert from LaTeX), and a few questions I have I
couldn't find explained in the manuals...


1) Is it possible to put a rule between two columns with columnsets? (I
know \startcolumns[n=2,distance=15pt,rule=on] does this, but I need
certain columnset features). The only thing I came up with so far is

\definecolumnset[example][n=3,distance=0pt] %n=3 instead n=2
\setupcolumnset[example][2][width=15pt]

and then put the rule in an area defined for column 2.


2) Is there a way to set ny "dynamically" for a columnsetarea, for
example, if the text/image/whatever put in the area runs over six lines,
tell it to just use six lines automatically?


3) When using columnsetareas, is there a way to link them to a specific
columnset? Like, I've got

\definecolumnset[set1]...
\definecolumnset[set2]...
\definecolumnsetarea[one][both][x=2,y=1,nx=1,ny=10]

This area pops up in both column sets, and the only way I got it from
not showing up in set2 was doing

\setupcolumnsetarea[one][both][state=start]
\startcolumnset[set1]
{...}
\stopcolumnset
\setupcolumnsetarea[one][both][state=stop]
\startcolumnset[set2]
{...}
\stopcolumnset

I would have expected a columnsetarea to be linked to a specific
columnset, is this the case? Like in

\definecolumnset[set1]...
\definecolumnset[set2]...
\definecolumnsetarea[set1][one][both][x=2,y=1,nx=1,ny=10] %area for set1
only
\definecolumnsetarea[set2][one][both][x=3,y=5,nx=2,ny=5]  %area for set2
only

Maybe there's a parameter in definecolumnsetarea that does it, but I
didn't find anything. And in the columns manual there's just one set
being used...


Cheers

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


Re: [NTG-context] No header line on chapter page + potential columnset problem?

2006-05-16 Thread Ehrt, Michael
> Ehrt, Michael wrote:
> > Hi there,
> > 
> > I'm having problems with removing the header background 
> > from a chapter start page.
> 
> 
> you should do it without using backgrounds, like this:
> 
>\setupheader[text][after=\hrule]
> 
> Now
> 
>\setupheader[state=empty]
> 
> will make the line disappear, without shifting everything.
> 
> Cheers, Taco

Great, thanks. Works like magic, with a little adapting even for footers
;-)

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

Cheers

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


[NTG-context] No header line on chapter page + potential columnset problem?

2006-05-15 Thread Ehrt, Michael
Hi there,

I'm having problems with removing the header background from a chapter
start page.

I'm using

\setupbackgrounds[header][text][bottomframe=on]
\setupheadertexts[part][chapter]

for a header line and part/chapter texts, and

\setupheader[state=empty]

to remove the header texts on the first chapter page. But this doesn't
remove the header line. And if I'm using

\setupheader[state=high]

the line goes away, but
A) the position of the chapter title moves which I don't like and
B) the columnset I'm using runs into the footer on all subsequent pages
that do have the header. It seems as if the columnset uses the increased
textheight from the first page on all subsequent pages. This is also the
case if I use \startcolumns \stopcolumns. Without columns the text
doesn't run into the footer.
If anyone is interested to look into this, I've got a 25 line minimal
example.

I'm using Miktex 2.4.1461 on Windows XP SP2 and have updated the context
package this morning to ver: 2006.04.24 23:37  fmt: 2006.5.16, but since
I'm not a wizard in diagnostics it may still be a problem with my
installation.

But I would really prefer to be able to remove the header background on
the first chapter page anyhow. I don't like to use the state=high option
because I'd like the chapter title to stay where it is...

Cheers

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