ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: nico <nicolas.marsgui@libertysurf.fr>
Subject: Re: layout question
Date: Mon, 28 Aug 2006 21:23:58 +0200	[thread overview]
Message-ID: <opte0dh8n19niby6@localhost> (raw)
In-Reply-To: <44F2B052.50304@mevis.de>

On Mon, 28 Aug 2006 10:58:58 +0200, richard rascher-friesenhausen  
<richard@mevis.de> 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

  reply	other threads:[~2006-08-28 19:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-18 15:24 richard rascher-friesenhausen
2006-08-18 16:40 ` Hans Hagen
2006-08-21 10:12   ` richard rascher-friesenhausen
2006-08-21 17:17     ` David Arnold
2006-08-22  9:24       ` richard rascher-friesenhausen
2006-08-22 14:27         ` Aditya Mahajan
2006-08-22 14:57           ` Hans Hagen
2006-08-22 15:31           ` richard rascher-friesenhausen
2006-08-22 14:56         ` Hans Hagen
2006-08-28  8:58           ` richard rascher-friesenhausen
2006-08-28 19:23             ` nico [this message]
2006-08-28 19:42               ` Hans Hagen
2006-08-28 20:31                 ` nico
2006-08-28 21:49                   ` Hans Hagen
2006-08-29  7:49                     ` richard rascher-friesenhausen
2006-08-29 13:26                       ` figures and footnotes Horacio Suarez
2006-08-29 14:01                         ` Mari Voipio
2006-08-29 13:59                           ` Horacio Suarez
2006-08-29  8:11               ` layout question richard rascher-friesenhausen
2006-08-29 22:18                 ` nico
2007-02-06  3:45 Layout Question Helin Gai
2007-02-06  7:09 ` Alex Lubberts
2007-02-06  7:20   ` Helin Gai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=opte0dh8n19niby6@localhost \
    --to=nicolas.marsgui@libertysurf.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).