On Dec 14, 4:49 pm, 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>

I had the same problem for my Book (http://eclipsebook.in)


I used this workaround: Modified the Makefile and kept different
images.

latex: $(PREREQUISITES)
        $(SPHINXBUILD) -b latex $(LATEXSPHINXOPTS) $(BUILDDIR)/latex
        @echo .
        cp -f book/img/ImagesForPdf/* $(BUILDDIR)/latex
        @echo .
        @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
        @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
              "run these through (pdf)latex."


If there is an image in ImagesForPdf, it would be used for the PDF/
Latex version of the book

-- 
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