Next in thread → Next in month →

Re: [docbook] image / picture number and reference

From
Paul A. Hoadley <>
Date
2004-06-18T05:56:50+00:00
ID
Thread
Re: [docbook] image / picture number and reference
On Thu, Jun 17, 2004 at 05:40:10PM +0200, Thomas Richter wrote:

> I want reference an mediaobject like:
> | For blah foo see figure <ref to the picture>
> Is this possible?

Yes.  If you are referring to a figure, put an 'id' attribute on the
figure element, and then refer to the figure elsewhere with an 'xref'
element.  So you would do something like this:

  <figure id="fig.foo">
    <mediaobject>
      ...
    </mediaobject>
  </figure>

  ...

  <para>For blah foo see <xref linkend="fig.foo"/>.</para>

If you want the 'xref' to expand into "Figure n", for some value of n,
add the attribute 'xrefstyle="select: label"' to that 'xref'.


-- 
Paul.

mailto:
Next in thread → Next in month →