Re: [NTG-context] Controlling figure placement?
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
participants (1)
-
Ehrt, Michael