[NTG-context] Figures protruding into the margin in double-sided document [sovled]

2007-01-24 Thread Tim Eyre ティム
Hello all,

I found the solution to this in a 2006 thread entitled layout
question. What I needed was:

\definefloat[textmarginfigure][textmarginfigures]
\setupfloat[textmarginfigure][location=inner]

\placetextmarginfigure{figure}

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


Re: [NTG-context] Figures protruding into the margin in double-sided document

2007-01-24 Thread Tim Eyre ティム
On 23/01/07, Sanjoy Mahajan [EMAIL PROTECTED] wrote:
  One type of figure is in-line with the text and protrudes into the
  wide margin.

 I use the following with a single-sided layout, for figures in the
 right part of the text, bleeding 0.5 inches into the margin (with no
 captions):

Thank you Hans and Sanjoy for your help with this. I've added a note
to ContextGarden. Sanjoy, your document is very elegant and your
format has helped me to enhance my own.

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


[NTG-context] Figures protruding into the margin in double-sided document

2007-01-23 Thread Tim Eyre ティム
I am composing a double-sided document with wide outer margins to
allow space for figures. One type of figure is in-line with the text
and protrudes into the wide margin. This is easy to do on left-hand
pages by saying \setupfloats[location=right] and on right-hand pages
by saying \setupfloats[location=left].

Is there any way to automate this so that inserting a new page does
not mean I have to fix all the figures? I tried using a macro along
the lines of

\ifoff\pageno\\setupfloats[location=right]\else\\setupfloats[location=left]\fi
but the asynchronousness of output routines means that the page number
is usually wrong.

Any help much appreciated.

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


Re: [NTG-context] Figures protruding into the margin in double-sided document

2007-01-23 Thread Hans Hagen
Tim Eyre $B%F%#%` wrote:
 I am composing a double-sided document with wide outer margins to
 allow space for figures. One type of figure is in-line with the text
 and protrudes into the wide margin. This is easy to do on left-hand
 pages by saying \setupfloats[location=right] and on right-hand pages
 by saying \setupfloats[location=left].

 Is there any way to automate this so that inserting a new page does
 not mean I have to fix all the figures? I tried using a macro along
 the lines of

 \ifoff\pageno\\setupfloats[location=right]\else\\setupfloats[location=left]\fi
 but the asynchronousness of output routines means that the page number
 is usually wrong.
   
there are inner and outer related keys; see details.pdf

-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Figures protruding into the margin in double-sided document

2007-01-23 Thread Sanjoy Mahajan
 One type of figure is in-line with the text and protrudes into the
 wide margin.

I use the following with a single-sided layout, for figures in the
right part of the text, bleeding 0.5 inches into the margin (with no
captions):

\definefloat[bleedfig][figure]
\setupfloat[bleedfig][rightmargindistance=-0.5in,default={force,none}]
\def\rfig#1{\placebleedfig[right,none]{}{\externalfigure[#1]}}

I learnt this method from Hans's details.pdf manual, which also has
information on getting the same idea to work using a double-sided
layout.  I'll eventually do that.

Menwahile, to use it:

  \rfig{somefile.pdf}

  Begin a paragraph, here's some text, and more text etc.

and the paragraph will be typeset around somefile.pdf, with
somefile.pdf bleeding into the right margin.

See chapters 3 and 4 at http://web.mit.edu/18.098/ for examples.  I
learnt how to bleed the figures between writing chapters 2 and 3, so
chapters 1 and 2 don't have the 0.5in protrusion.  The source code is
at the same location (see env.tex in it).

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context