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

Reply via email to