From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6838 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Referencing Date: Wed, 6 Feb 2002 15:38:59 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <407346723.20020206153859@bigfoot.com> Reply-To: Giuseppe Bilotta NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035397345 14206 80.91.224.250 (23 Oct 2002 18:22:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:22:25 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6838 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6838 Hello, I start with a small documentation bug: in core-ref.tex there is a figure whose handle is [three calls] which is later referenced by [fig:three calls]. This of course means that the references remains unknown. While this is (currently) a bug, it gives ground to an interesting idea, connected to reference prefix: it should be possible to allow different kind of stuff to have different automatic prefixes, in such a way that [three calls] would be automatically prefixed by fig: for a picture, tab: for a table and so on and so forth (of course, customizable autoprefixes). Of course, if such a feature is implemented (or even if it is not implemented, actually) \definereferenceformat should include an option to automatically add a particular prefix; so, if tab is the prefix for tables, I could do the following: ===================================================================== \setupfloat[table][interactionprefix=tab] \placetable[here][handle] {Caption} \starttable ... \stoptable As seen in~\in Table[tab:handle], we have such and so. \definereferenceformat[intable][text=Table,prefix=tab] As seen in~\intable[handle], we have such and so. ===================================================================== (hope this is clear). While we're at it, I'd ask one more thing: how do I extract the part/chapter/section/subsection/etc number of a reference? -- Giuseppe "Oblomov" Bilotta