On Tue, May 4, 2010 at 14:08, Jan Ulrich Hasecke
<[email protected]> wrote:
> Hi,
>
> I get a warning when doing this:
>
>
> .. only:: html
>
>    .. _fig-plonebase:
>
>    .. figure:: ../images/plonebase.png
>       :width: 100%
>
>
> .. only:: latex
>
>    .. _fig-plonebase:
>
>    .. figure:: ../images/plonebase.pdf
>       :width: 100%
>
>
>  (WARNING/2) Duplicate explicit target name: "fig-plonebase".
>
> An the link is not set.
>
> How can I achieve having the same label in html and latex output?

Jan, please try the code below (without the latex and html
directives).  Does this achieve what you want?

   .. _fig-plonebase:

   .. figure:: ../images/plonebase.*
      :width: 100%

Kevin

> juh

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to