From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: combiation trickery again now with attachement - sorry
Date: Tue, 16 Feb 2010 21:12:18 +0100 [thread overview]
Message-ID: <4B7AFC22.80000@gmx.net> (raw)
In-Reply-To: <C9C4EF69-F931-48B2-B627-5017D5CF364A@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
Am 16.02.2010 19:40, schrieb Bernhard Rosensteiner:
> Hi,
>
> in the attachment is an example file which describes best what i want do. The method with \offset and \clip to place the figures where i want is really brutal force i think. Especially fiddling around with dimension to get the "right fit“ is tedious. Is there a better solution to do such a start/stopcombination?
> Floatplacing is also influenced by the offset command but i compensated this with *hang - nevertheless all in all i think no good solution. Please help.
>
Hi Bernhard,
that was fun. :)
Best wishes, Peter
[-- Attachment #2: floatcombiantion.tex --]
[-- Type: text/plain, Size: 1650 bytes --]
\setuptolerance[verytolerant, stretch]
\setupalign[hz, hanging]
\definefloat[subfigure][subfigures]
\setupfloat[figure][]
\setupfloat[tableleft][]
\setupcaption[figure][width=max, align={hz, hanging}, style=sstf]
\setupcaption[subfigure][way=bypage, location=top, width=max, align={hz, hanging}, inbetween={\blank[1*small]}, style={\smallbodyfont\sstf}, numberconversionset=characters, numberstopper={)}, prefixsegments=4:100]
\starttext
\input tufte
\placefigure[left, here, force]{Maincaption}
{\startcombination[2*2]
{}{}
{\blackrule[width=5cm,height=10\baselineskip,color=lightgray]}{caption 2}
{\newbox\MYscratchbox
\setbox\MYscratchbox\hbox\bgroup
\blackrule[width=5cm,height=22.24\baselineskip,color=lightgray]\egroup
\ht\MYscratchbox=10\baselineskip % fake height
\box\MYscratchbox}{caption 1}
{\blackrule[width=5cm,height=10\baselineskip,color=lightgray]}{caption 3}
\stopcombination}
\input tufte
\page[yes]
\input tufte
\placefigure[left, here, force]{Maincaption}
{\vbox\bgroup\hsize105mm
\hbox\bgroup
\vbox\bgroup\hsize50mm
\blackrule[height=22.24\baselineskip,width=50mm,color=lightgray]
\centerline{caption 1}
\egroup
\hskip5mm
\vbox to 23.24\baselineskip\bgroup % +1 for caption
\hsize50mm
\vbox\bgroup
\blackrule[height=10\baselineskip,width=50mm,color=lightgray]
\centerline{caption 2}
\egroup
\vss
\vbox\bgroup
\blackrule[height=10\baselineskip,width=50mm,color=lightgray]
\centerline{caption 3}
\egroup
\egroup
\egroup % hbox
\egroup % outer vbox
}
\input tufte
\stoptext
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-02-16 20:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-16 18:40 Bernhard Rosensteiner
2010-02-16 20:12 ` Peter Rolf [this message]
2010-02-18 12:22 ` Bernhard Rosensteiner
2010-02-18 13:41 ` Willi Egger
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=4B7AFC22.80000@gmx.net \
--to=indiego@gmx.net \
--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).