ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* incrementnumber vs. prefixsegments
@ 2012-11-06  2:56 plink
  2012-11-21 12:38 ` Sietse Brouwer
  0 siblings, 1 reply; 2+ messages in thread
From: plink @ 2012-11-06  2:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

i'm trying to combine two features that somehow don't fit together:

1. figure numbering and referring using a chapter.fignr scheme.
For this, a setup with

\setupcaption[figure][prefix=yes,way=bychapter,prefixsegments=chapter]

works fine, as long as i don't have

2. untitled entries below chapter (aka subject or subsubject), that also
have to occur in the table of contents. For this, e.g. using

\setuphead[subject][incrementnumber=list]
\definecombinedlist[content][title,chapter,section,subject]

does the trick, but then the figure number prefix gets eaten up at
figures in subjects. I'd be glad if anybody could give me a hint on how
to solve this.

ConTeXt  ver: 2012.10.30 21:13 MKIV

Below a maximin example. Commenting out the \setuphead line gives back
the prefix, but then there is no more subject in the toc, as to be expected:

\setuphead[chapter][page=no,continue=yes]

\setupcaption[figure][
    prefix=yes,
    way=bychapter,
    prefixsegments=chapter]

\setuphead[subject][incrementnumber=list]

\definecombinedlist[content][title,chapter,section,subject]

\starttext
\placecontent

\chapter{Chapter}

\section{Section Een}

\placefigure[here][fig:a]{figure a}{\externalfigure[cow.pdf][width=1cm]}

Figure \in[fig:a] = 1.1\crlf
Figure \in[fig:b] = 1.2?\crlf
Figure \in[fig:c] = 1.3\crlf

\subject{Subject}

\placefigure[here][fig:b]{figure b}{\externalfigure[cow.pdf][width=1cm]}

Figure \in[fig:a] = 1.1\crlf
Figure \in[fig:b] = 1.2?\crlf
Figure \in[fig:c] = 1.3\crlf

\section{Section Twee}

\placefigure[here][fig:c]{figure c}{\externalfigure[cow.pdf][width=1cm]}

Figure \in[fig:a] = 1.1\crlf
Figure \in[fig:b] = 1.2?\crlf
Figure \in[fig:c] = 1.3\crlf

\stoptext
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2012-11-21 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-06  2:56 incrementnumber vs. prefixsegments plink
2012-11-21 12:38 ` Sietse Brouwer

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