hrm, I found a slightly less painful version, but it is still butt
ugly: is there anyone who has a better idea on how I can get the html
output to use the native size of the png images and the latex output
to use the specified size in absolute units of the pdf images ? I have
considered changing my whole image production workflow to generate
pdfs of a specific size so that I don't have to specify it again in
the figure directive but, so far, I have been unable to figure out how
to generate pdfs of arbitrary absolute sizes.

.. _node-architecture:

  .. only:: latex

     .. figure:: figures/node.*
         :width: 5in

         High-level node architecture

  .. only:: not latex

     .. figure:: figures/node.*

         High-level node architecture


Mathieu

On Tue, Dec 14, 2010 at 12:49, Mathieu Lacage <mathieu.lac...@gmail.com> wrote:
> hi,
>
> I am trying to control the width of my images depending on the type of
> output. Is there a better way to do the below?
>
> .. only:: latex
>
>    .. _node-architecture:
>
>    .. figure:: figures/node.*
>        :width: 5in
>
>        High-level node architecture
>
> .. only:: not latex
>
>    .. _node-architecture:
>
>    .. figure:: figures/node.*
>
>        High-level node architecture
>
>
> Mathieu
> --
> Mathieu Lacage <mathieu.lac...@gmail.com>
>



-- 
Mathieu Lacage <mathieu.lac...@gmail.com>

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

Reply via email to