ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Unexpected float numbering in unnumbered subsubsection
       [not found] <mailman.154.1450169139.2404.ntg-context@ntg.nl>
@ 2015-12-15 10:13 ` Sytse Knypstra
  2015-12-15 10:29   ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Sytse Knypstra @ 2015-12-15 10:13 UTC (permalink / raw)
  To: ntg-context


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

Dear list members,

I experienced even more issues with specifying 'number=no' in \setuphead 
(for any level).
This seems not only to affect the numbering of figures and tables, but 
also the numbering of enumerations (it ignores the options 
'way=bychapter, prefix=chapter') and the section numbering ('1.0', 
'2.0', etc) in \setupheadertexts 
[\somenamedheadnumber{section}{current}][...etc].

Sytse Knypstra

On 15-12-15 09:45, Jan Willem Flamma <jwfregister@icloud.com> wrote:
> I ran into the following issue related to figure/float numbering.
> I use numbered chapters, sections, subsections and unnumbered 
> subsubsections. See minimal example below.
> Figure numbering works as expected in the numbered chapters, sections 
> and subsections.
> Figures get numbered: Figure 1.1
> The figure numbering is unexpected in the unnumbered sub subsection:
> Figures get numbered: Figure 2 (in stead of the expected Figure 1.2)
> I would like all figures (and floats) to be numbered in sequence 
> according the chapter numbering:
> Chapter 1: Figure 1.1, Figure 1.2, Table 1.3, Figure 1.4, etc
> Chapter 2: Figure 2.1, Figure 2.2 etc
> I've tried several \setupcaptions options but was unable to solve so far.
> Everything works as expected when using a numbered subsubsection so 
> the problem is somehow related to the number=no option
> Minimal example:
> \setuphead[chapter, section, subsection]
> \setuphead[subsubsection]
> [number=no]
... etc


[-- Attachment #1.2: Type: text/html, Size: 4008 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected float numbering in unnumbered subsubsection
  2015-12-15 10:13 ` Unexpected float numbering in unnumbered subsubsection Sytse Knypstra
@ 2015-12-15 10:29   ` Hans Hagen
  2015-12-15 12:43     ` Sytse Knypstra
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2015-12-15 10:29 UTC (permalink / raw)
  To: ntg-context

On 12/15/2015 11:13 AM, Sytse Knypstra wrote:
> Dear list members,
>
> I experienced even more issues with specifying 'number=no' in \setuphead
> (for any level).
> This seems not only to affect the numbering of figures and tables, but
> also the numbering of enumerations (it ignores the options
> 'way=bychapter, prefix=chapter') and the section numbering ('1.0',
> '2.0', etc) in \setupheadertexts
> [\somenamedheadnumber{section}{current}][...etc].
>

fwiw: you can control numbering and prefixes at any level and for all 
constructs .. there are examples in the test suite

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected float numbering in unnumbered subsubsection
  2015-12-15 10:29   ` Hans Hagen
@ 2015-12-15 12:43     ` Sytse Knypstra
  2015-12-15 13:14       ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Sytse Knypstra @ 2015-12-15 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Sorry, I was not quite correct in my previous remark.
What I did observe is that the chapter number is omitted in enumerations 
with the options 'way= bychapter' and 'prefix=chapter' when placed under 
a subsubsection for which the option 'number=no' holds, and, as Jan 
Willem Flamma pointed out, it is then also omitted in the figure captions.
Maybe this is intended behaviour, but inconvenient for me.

P.S. I couldn't find the test suite.

Sytse


On 15-12-15 11:29, Hans Hagen wrote:
> On 12/15/2015 11:13 AM, Sytse Knypstra wrote:
>> Dear list members,
>>
>> I experienced even more issues with specifying 'number=no' in \setuphead
>> (for any level).
>> This seems not only to affect the numbering of figures and tables, but
>> also the numbering of enumerations (it ignores the options
>> 'way=bychapter, prefix=chapter') and the section numbering ('1.0',
>> '2.0', etc) in \setupheadertexts
>> [\somenamedheadnumber{section}{current}][...etc].
>>
>
> fwiw: you can control numbering and prefixes at any level and for all 
> constructs .. there are examples in the test suite
>
> Hans
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
>

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected float numbering in unnumbered subsubsection
  2015-12-15 12:43     ` Sytse Knypstra
@ 2015-12-15 13:14       ` Peter Münster
  2015-12-16 13:43         ` Sytse Knypstra
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2015-12-15 13:14 UTC (permalink / raw)
  To: ntg-context

On Tue, Dec 15 2015, Sytse Knypstra wrote:

> 'way= bychapter'

Better: 'way=bychapter'


> P.S. I couldn't find the test suite.

http://bfy.tw/3IIV  ;)

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected float numbering in unnumbered subsubsection
  2015-12-15 13:14       ` Peter Münster
@ 2015-12-16 13:43         ` Sytse Knypstra
  2015-12-16 14:17           ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Sytse Knypstra @ 2015-12-16 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On 15-12-15 14:14, Peter Münster wrote:
> On Tue, Dec 15 2015, Sytse Knypstra wrote:
>
>> P.S. I couldn't find the test suite.
> http://bfy.tw/3IIV  ;)
>
The first link on http://wiki.contextgarden.net/Test_suite gives:
"The requested URL /gf/project/contexttest/ was not found on this server."

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected float numbering in unnumbered subsubsection
  2015-12-16 13:43         ` Sytse Knypstra
@ 2015-12-16 14:17           ` Peter Münster
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Münster @ 2015-12-16 14:17 UTC (permalink / raw)
  To: ntg-context

On Wed, Dec 16 2015, Sytse Knypstra wrote:

> The first link on http://wiki.contextgarden.net/Test_suite gives:
> "The requested URL /gf/project/contexttest/ was not found on this server."

Fixed.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Unexpected float numbering in unnumbered subsubsection
@ 2015-12-15  8:45 Jan Willem Flamma
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Willem Flamma @ 2015-12-15  8:45 UTC (permalink / raw)
  To: ntg-context


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

Dear list members,

I ran into the following issue related to figure/float numbering.

I use numbered chapters, sections, subsections and unnumbered subsubsections. See minimal example below.

Figure numbering works as expected in the numbered chapters, sections and subsections.
Figures get numbered: Figure 1.1

The figure numbering is unexpected in the unnumbered sub subsection:
Figures get numbered: Figure 2 (in stead of the expected Figure 1.2)

I would like all figures (and floats) to be numbered in sequence according the chapter numbering:
Chapter 1: Figure 1.1, Figure 1.2, Table 1.3, Figure 1.4, etc
Chapter 2: Figure 2.1, Figure 2.2 etc

I've tried several \setupcaptions options but was unable to solve so far.
Everything works as expected when using a numbered subsubsection so the problem is somehow related to the number=no option

Minimal example:
\setuphead[chapter, section, subsection]
\setuphead[subsubsection]
	[number=no]
	
\starttext

\startchapter[title=Chapter title]
\input ward
	
\startsection[title=Section title1]
\input ward

\placefigure[here][]{Caption}
	{\externalfigure[dummy]}
	
\startsubsubsection[title=Subsubsection title]
\input ward

\placefigure[here][]{Caption}
	{\externalfigure[dummy]}

\stopsubsubsection
\stopsection

\startsection[title=Section title2]
\input ward

\placefigure[here][]{Caption}
	{\externalfigure[dummy]}

\stopsection

\stopchapter
\stoptext

Would appreciated some advise on how to solve this.

Best regards,
Jan Willem Flamma

[-- Attachment #1.2: Type: text/html, Size: 7193 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-16 14:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.154.1450169139.2404.ntg-context@ntg.nl>
2015-12-15 10:13 ` Unexpected float numbering in unnumbered subsubsection Sytse Knypstra
2015-12-15 10:29   ` Hans Hagen
2015-12-15 12:43     ` Sytse Knypstra
2015-12-15 13:14       ` Peter Münster
2015-12-16 13:43         ` Sytse Knypstra
2015-12-16 14:17           ` Peter Münster
2015-12-15  8:45 Jan Willem Flamma

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).