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:

% output=pdf
%=======================================================================
% begin of file *layout-test.tex*
%=======================================================================
% [EMAIL PROTECTED]

% layout
%-----------------------------------------------------------------------
\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
%-----------------------------------------------------------------------
\definefloat[marginfigure][marginfigures]
\setupfloat[marginfigure][minwidth=\rightmarginwidth,
                          location=middle,
                          default={outermargin,here}]

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

\showframe
%=======================================================================
\starttext
%=======================================================================
\placelistoffigures
\placelistofmarginfigures
\placelistoftextmarginfigures
\hairline

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

\inmargin{Tufte text}
\input tufte

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

\dorecurse{14}{Some text. }

\placefigure{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.
\placemarginfigure{a margin image}
  {\framed[width=\marginwidth,height=3cm]{image}}

\input tufte

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

\inmargin{Tufte text}
\input tufte

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

%=======================================================================
\stoptext
%=======================================================================
% end of file *layout-test.tex*
%=======================================================================


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.

2) The \inmargin{Tufte Text} on the first page places the text in one 
line, the same command on the
    second page needs two lines! Why?

richard



-- 

==============================================================================
Prof. Dr. Richard Rascher-Friesenhausen                
MeVis -- Centrum fuer Medizinische Diagnosesysteme und Visualisierung GmbH
Universitaetsallee 29
D-28359 Bremen

als auch
Hochschule Bremerhaven
An der Karlsstadt 8
27568 Bremerhaven

email: [EMAIL PROTECTED], [EMAIL PROTECTED]
www  : http://www.mevis.de/, http://www.hs-bremerhaven.de/
fon  : +49 - 421 - 218 7707 (mevis)
fax  : +49 - 421 - 218 4236 (mevis)
==============================================================================


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

Reply via email to