ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Splitting a combination of figures (also a philosophical question)
Date: Wed, 20 May 2015 23:12:34 +0200	[thread overview]
Message-ID: <071AA243-F1B9-402E-9A51-B564278282E7@gmail.com> (raw)
In-Reply-To: <CALBOmsbOdAPBWWQyc3fkEFtnMLgzWVdJsPfY=qsRGB3Tc5Vz=w@mail.gmail.com>


> Am 20.05.2015 um 16:43 schrieb Mojca Miklavec <mojca.miklavec.lists@gmail.com>:
> 
> Hello,
> 
> This is not strictly a ConTeXt question.
> 
> I have two almost identical figures which I want to display one after
> the other. Ideally that would be on the same page with the combination
> of both having a single figure number (and possibly the two individual
> figures having labels (a) and (b), but that's not strictly required).
> 
> However if the page breaks are not favourable, it would be OK to split
> the two figures, so that one ends up on the bottom of the previous
> page and the second one on the top of the new page.
> 
> I could use two separate figure numbers, but then I would need to
> change the text that references the figures (and when the layout
> changes, so that I would figure out that both figures would eventually
> fit on a single page, I would have to change the text again).
> 
> Is there any reasonable (and acceptable) solution to that? One option
> would be to have
>    "Figure 1.5a: description"
> on the first page and
>    "Figure 1.5b: description"
> on the second page while a reference to the figure would still show
> "Figure 1.5", but I'm not sure if this is doable.
> 
> I would like to hear if anyone had a similar "challenge" and what
> solution you used.


\setupexternalfigure[location=default]

\starttext

\dorecurse{5}{\input ward }
%\dorecurse{2}{\input ward }

\startplacefigure[location=split,title=Float dummy]
	\startxtable[frame=off,align=middle]
		\startxrow
			\startxcell
				\dontleavehmode\externalfigure[cow]
			\stopxcell
		\stopxrow
		\startxrow
			\startxcell
				\dontleavehmode\externalfigure[hacker]
			\stopxcell
		\stopxrow
	\stopxtable
\stopplacefigure

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2015-05-20 21:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 14:43 Mojca Miklavec
2015-05-20 20:29 ` Alan BRASLAU
2015-05-20 21:12 ` Wolfgang Schuster [this message]
2015-05-21 13:43   ` Mojca Miklavec
2015-05-21 22:51     ` Hans Hagen
2015-05-20 22:48 ` Kate F

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=071AA243-F1B9-402E-9A51-B564278282E7@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).