On Mon, 28 Aug 2006 10:58:58 +0200, richard rascher-friesenhausen  
<[EMAIL PROTECTED]> wrote:

> Hans Hagen schrieb:
>>
>> did you read details.pdf ? Lots of margin stuff with figures in there
>>
>> Hans
>>
>>
> Hello,
>
> this weekend i looked a bit into details.pdf an came up with a solution
> of my figure placing problem: [...]
>
> Now, the figures are at my desired places. But i have three different
> kinds of figures and three different lists of figures.
>
> 1) Is it possible, to have only one list of figures, numbering all
> figures with the same counter? My first
>     attempts with \definecombinedlist did not work.

Defining a new float gives another floating object with its own counter,  
list, etc.

Maybe you can stay with only one kind of float. The following looks like  
the expected rendering, but I don't understand the default placement of  
the second large figure.

\setuppapersize[A4][A4]

\setuplayout[width=middle,
              cutspace=2.3in,
              margindistance=.25in,
              leftmargin=0.5in,rightmargin=2.3in]
\setuplayout[backspace=\dimexpr(\leftmarginwidth+\leftmargindistance)]

\setuppagenumbering[alternative=doublesided]

% float defs
%-----------------------------------------------------------------------
\setupfloat[figure][minwidth=\rightmarginwidth,
                     criterium=\rightmarginwidth,
                     location=middle,
                     default={outermargin,here}]

\showframe
%=======================================================================
\starttext
%=======================================================================
\placelistoffigures
\hairline

The very first page with a small image in the (bigger) margin.
\placefigure
   {a margin image}
   {\framed[width=\marginwidth,height=3cm]{image}}

\inmargin{Tufte text}
\input tufte

And now a larger image in the text and margin
\placefigure[inner]{a text+margin image}
   {\framed[width=1.2\textwidth,height=3cm]{image}}

\dorecurse{14}{Some text. }

\placefigure[middle]{a text image}
   {\framed[width=.3\textwidth,height=1cm]{text image}}

\dorecurse{14}{Some text.~}

%-----------------------------------------------------------------------
\page
%-----------------------------------------------------------------------

The second page  with a small image in the (bigger) margin.
\placefigure
   {a margin image}
   {\framed[width=\marginwidth,height=3cm]{image}}

\input tufte

And now a larger image in the text and margin
%
% Default placement sounds strange to me...
% Force with middle to have the entire figure visible
%
%\placefigure{a text+margin image}
\placefigure[middle]{a text+margin image}
   {\framed[width=1.2\textwidth,height=3cm]{image}}

\inmargin{Tufte text}
\input tufte

\placefigure[middle]{a text image}
   {\framed[width=.3\textwidth,height=1cm]{text image}}

\stoptext

Regards,
BG
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to