ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: sidebyside figures
Date: Sun, 09 Mar 2003 22:29:27 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20030309222149.040ca9d8@remote-1> (raw)
In-Reply-To: <002101c2e5e4$99520a30$6d6b4442@wang>

Hi Lei Wang,

>I have several small figures and want to place them in two columns as follows:
>___________      __________
>|                     |     |                    |
>|                     |     |                    |
>|  Figure         |     |   Figure        |
>|                    |      |                    |
>|__________|      |__________|
>
>  Fig 1. blabla         Fig 2. blabla
>
>I tried use columns
>\startcolumns[n=2]
>\placefigure[here][fig:1]{blabla}{\externalfigure[fig1]}
>\columns
>\placefigure[here][fig:2]{blabla}{\externalfigure[fig2]}
>\stopcolumns
>
>It seems work depend on the pagebreak and not works all time.
>If there are a pagebreak before or after the block of these
>figures, it not works well.
>
>The \placesidebyside and use combinations will give one
>float Figure with the two pictures as subfigures. But
>what I want is two figure.

The normal double column mechanism tries to place a graphic, stores it when 
there is no place, and flushes it as soon as possible.

The \startcolumns mechanism works well intermixed with the standard one 
column mode.

In your case, esp for vertical chinese, use columnsets:

\startcolumnset

\placefigure[tblr:1]{}{}
\placefigure[tblr:2]{}{}

\input tufte

\stopcolumnset

This will place the floats on top of the first and second column; an 
alternative usage is:

\placefigure[tblr]{}{}
\placefigure[tbrl]{}{}

Think of tb meaning flush from top to bottom, and lr to mean from left to 
right; so, there are quite some ways to place/flush a graphic.

(also play with: \placefigure[fxtb:2*3] and [fxbt:1*18] which gives you 
absolute placement; big floats will span columns, so something:

\definecolumnset[chinese][n=10]

\startcolumnset[chinese]

\placefigure{}{}

\stopcolumnset

should work ok

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

  parent reply	other threads:[~2003-03-09 21:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-09  1:08 Problem with references Stefan Karlsson
2003-03-09  2:35 ` sidebyside figures Lei Wang
2003-03-09  9:03   ` Guy Worthington
2003-03-09 17:25     ` Lei Wang
2003-03-09 21:29   ` Hans Hagen [this message]
2003-03-10  4:47     ` Lei Wang
2003-03-10 22:15       ` Hans Hagen
2003-03-11  9:27         ` Re[2]: " Giuseppe Bilotta
2003-03-11 10:49           ` Hans Hagen
2003-03-11 12:26             ` Re[3]: " Giuseppe Bilotta
2003-03-11 14:44               ` Hans Hagen
2003-03-11 17:01                 ` Re[4]: " Giuseppe Bilotta
2003-03-12 10:21                   ` Hans Hagen
2003-03-12 14:00                     ` Re[5]: " Giuseppe Bilotta
2003-03-12 15:03                       ` Hans Hagen
2003-03-13  9:28                         ` Re[6]: " Giuseppe Bilotta
2003-03-11 17:47           ` Re[2]: " K.H. Wesseling
2003-03-12 14:01             ` Re[4]: " Giuseppe Bilotta
2003-03-11 20:48         ` Lei Wang
2003-03-12  0:48           ` K.H. Wesseling
2003-03-10  4:48     ` Lei Wang
2003-03-09  2:42 ` Problem with references Guy Worthington
2003-03-09  9:51   ` Stefan Karlsson
2003-03-09 12:04   ` Stefan Karlsson

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=5.1.0.14.1.20030309222149.040ca9d8@remote-1 \
    --to=pragma@wxs.nl \
    --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).