ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Controlling figure placement?
@ 2006-05-24  7:53 Ehrt, Michael
  0 siblings, 0 replies; 3+ messages in thread
From: Ehrt, Michael @ 2006-05-24  7:53 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Controlling figure placement?
@ 2006-05-24  9:18 Ehrt, Michael
  0 siblings, 0 replies; 3+ messages in thread
From: Ehrt, Michael @ 2006-05-24  9:18 UTC (permalink / raw)


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: ntg-context-bounces@ntg.nl 
> [mailto:ntg-context-bounces@ntg.nl] 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
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Controlling figure placement?
@ 2006-05-24  6:04 Ehrt, Michael
  0 siblings, 0 replies; 3+ messages in thread
From: Ehrt, Michael @ 2006-05-24  6:04 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-24  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-24  7:53 Controlling figure placement? Ehrt, Michael
  -- strict thread matches above, loose matches on Subject: below --
2006-05-24  9:18 Ehrt, Michael
2006-05-24  6:04 Ehrt, Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).