how to add captions for images?

View: New views
7 Messages — Rating Filter:   Alert me  

how to add captions for images?

by nadine_yyysss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to add captions for the images in a docbook file. I am using <caption> within <inlinemediaobject> tag, but it doesn't work. If I use <caption> with <meidaobject>, it works, but the display of images is not what I want. Does anybody know how to use caption for images and provide a wrapper? Many thanks.

Re: how to add captions for images?

by Thomas Schraitle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Wednesday 17 January 2007 20:45, nadine_yyysss wrote:
> I am trying to add captions for the images in a docbook file. I am
> using <caption> within <inlinemediaobject> tag, but it doesn't work. If
> I use <caption> with <meidaobject>, it works, but the display of images
> is not what I want. Does anybody know how to use caption for images and
> provide a wrapper? Many thanks.

Did you try figure?

 <figure>
   <title>Collony of Penguins</title>
   <mediaobject> ... </mediaobject>
 </figure>


Tom

--
Thomas Schraitle

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...


Re: how to add captions for images?

by Chris Chiasson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't think the stylesheets are capable of generating an inline
image with a caption, if that's what you're asking.

On 1/17/07, nadine_yyysss <yyysss@...> wrote:

>
> I am trying to add captions for the images in a docbook file. I am using
> <caption> within <inlinemediaobject> tag, but it doesn't work. If I use
> <caption> with <meidaobject>, it works, but the display of images is not
> what I want. Does anybody know how to use caption for images and provide a
> wrapper? Many thanks.
> --
> View this message in context: http://www.nabble.com/how-to-add-captions-for-images--tf3029409.html#a8417489
> Sent from the docbook General mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@...
> For additional commands, e-mail: docbook-help@...
>
>


--
http://chris.chiasson.name/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...


Re: how to add captions for images?

by nadine_yyysss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes. That is what I am asking. If we can not do that through stylesheets, how will you implement it please? Thanks a lot.

Chris Chiasson wrote:
I don't think the stylesheets are capable of generating an inline
image with a caption, if that's what you're asking.

On 1/17/07, nadine_yyysss <yyysss@gmail.com> wrote:
>
> I am trying to add captions for the images in a docbook file. I am using
> <caption> within <inlinemediaobject> tag, but it doesn't work. If I use
> <caption> with <meidaobject>, it works, but the display of images is not
> what I want. Does anybody know how to use caption for images and provide a
> wrapper? Many thanks.
> --
> View this message in context: http://www.nabble.com/how-to-add-captions-for-images--tf3029409.html#a8417489
> Sent from the docbook General mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
>


--
http://chris.chiasson.name/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org

Re: how to add captions for images?

by Chris Chiasson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 1/18/07, nadine_yyysss <yyysss@...> wrote:
>
> Yes. That is what I am asking. If we can not do that through stylesheets, how
> will you implement it please? Thanks a lot.

It would depend on how you would want it to look, what output medium
you're using (PDF? HTML?), and how you intend to write the caption
into your DocBook source (caption as a child of inlinemediaobject?).

I should tell you that XSLT is not my forte.

--
http://chris.chiasson.name/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...


Re: how to add captions for images?

by nadine_yyysss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The output will be html or actually php file. I would like to write the caption as a child of inlinemediaobject into my DocBook file. You are already very helpful. Thanks.

Chris Chiasson wrote:
On 1/18/07, nadine_yyysss <yyysss@gmail.com> wrote:
>
> Yes. That is what I am asking. If we can not do that through stylesheets, how
> will you implement it please? Thanks a lot.

It would depend on how you would want it to look, what output medium
you're using (PDF? HTML?), and how you intend to write the caption
into your DocBook source (caption as a child of inlinemediaobject?).

I should tell you that XSLT is not my forte.

--
http://chris.chiasson.name/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org

Re: how to add captions for images?

by Chris Chiasson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You still haven't specified how you want the caption to appear
relative to the image.

On 1/19/07, nadine_yyysss <yyysss@...> wrote:
>
> The output will be html or actually php file. I would like to write the
> caption as a child of inlinemediaobject into my DocBook file. You are
> already very helpful. Thanks.
>

--
http://chris.chiasson.name/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@...
For additional commands, e-mail: docbook-help@...