ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aidan Nichol <aidan@nicholware.co.uk>
To: ntg-context@ntg.nl
Subject: Re: Skipped figure numbers
Date: Fri, 1 Apr 2016 11:17:07 +0100	[thread overview]
Message-ID: <B1C75BF5-5D89-43D7-A5B2-5BE05596AD43@nicholware.co.uk> (raw)
In-Reply-To: <mailman.263.1459497717.1989.ntg-context@ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2668 bytes --]

> On Thu, 31 Mar 2016 21:49:56 -0400 (EDT)
> Aditya Mahajan <adityam@umich.edu> wrote:
> 
> On Thu, 31 Mar 2016, Alan BRASLAU wrote:
> 
>> On Thu, 31 Mar 2016 17:51:07 -0400
>> Aditya Mahajan <adityam@umich.edu> wrote:
>> 
>>> @Hans: Does it make sense to disable \incrementcounter if
>>> \trialtypesetting is active?
>> 
>> I was going to suggest such things...
> 
> My motivation is different. If you have any macro in a table (or anything 
> that requires multiple runs to get the size right) that uses a counter 
> (e.g., enumeration), then the numbers will be off. That would not happen 
> if a counter is frozen when trialtypesetting is on.
> 
>> P.S. Would not the use of \startcombination\stopcombination be an
>> alternative to the placefigures within a table?

And \startcombination\stopcombination fails when you use \placefigure instead of \externalfigure because you want the captions to be numbered and included in the list of figures. You get an error like this one 

      > tex error on line 7 in file virtual: . . .  ! You can't use `\prevdepth' in restricted horizontal mode

Using \startfloatcombinations\stopfloatcombination (which appears to be undocumented) avoids this error.


> 
> combinations only give regular grid. Sometimes you want an irregular grid. 
> For example, the OP wanted
> 
> +-------+------+
> |          |         |
> |          | Fig2 |
> | Fig1 +-------+
> |          | Fig3 |
> |          |         |
> +------+-------+
> 
> Such layouts are not possible using combinations.

I thought that nesting combinations might enable this type of combination but it didn’t work. see
https://mailman.ntg.nl/pipermail/ntg-context/2016/084926.html <https://mailman.ntg.nl/pipermail/ntg-context/2016/084926.html>

Using tables is a better solution because it has the syntax to handle figures that span rows or columns

> 
> Aditya
> 
Lots of things seem to work well with external figures but as soon as you embed them in a \placefigure, which makes them a float, you make things more complex and run into the possibility of triggering the restricted horizontal mode  error.

It seems to me that once you place an object that is normally a float inside another float you want the inner one to lose it floating characteristics. Is there a way do this explicitly i.e. instead of creating an inner float with

\placefigure[force][ref1]{this is the caption }{\externalfigure[cow][width=3in,height=1in]}

could we create a non-floating version with something explicit like

\externalfigure[cow][width=3in,height=1in]
\addcaption[figure][ref1]{this is the caption }

Aidan



[-- Attachment #1.2: Type: text/html, Size: 4887 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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
___________________________________________________________________________________

       reply	other threads:[~2016-04-01 10:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.263.1459497717.1989.ntg-context@ntg.nl>
2016-04-01 10:17 ` Aidan Nichol [this message]
2016-04-01 14:21   ` Alan BRASLAU
     [not found] <mailman.244.1459405195.1989.ntg-context@ntg.nl>
2016-03-31 13:23 ` Aidan Nichol
2016-03-31 21:51   ` Aditya Mahajan
2016-03-31 22:27     ` Alan BRASLAU
2016-04-01  1:49       ` Aditya Mahajan
2016-04-01  7:51     ` Hans Hagen
2016-04-01  8:01     ` Hans Hagen
2016-03-30  9:41 Aidan Nichol
2016-03-30 23:25 ` Aditya Mahajan

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=B1C75BF5-5D89-43D7-A5B2-5BE05596AD43@nicholware.co.uk \
    --to=aidan@nicholware.co.uk \
    --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).