the builders will choose the "best" format from what is available, and you
write in your rst this:
.. image:: my_images/foo.*

instead of (for example)

.. image:: my_images/foo.pdf


See http://sphinx.pocoo.org/rest.html#images

On Tue, Nov 18, 2008 at 9:02 AM, lpezard <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> Thanks a lot for Sphinx, I'm right now using it for my web page that I
> use to distribute documents to my students. I can no more write html
> or latex directly now!
>
> I would like to insert pictures in svg format in the html and pdf
> format in latex/pdf but I do not see any obvious solution. So I'm
> wondering if:
>
> 1. Is it a good idea? (if not why?)
>
> 2. Is there an easy way to say "use file.svg for html and file.pdf for
> latex/pdf"
>
> 3. As far as I can remember, pdflatex searches for file with extension
> that it knows (.jpg, .png, .pdf, ...) and I can write something like:
>
> \includegraphics{foo}
>
> and it searches for foo.jpg, etc.
>
> The same way, in my .rst file, I would like to write something like:
>
> .. figure:: fooo
>   ...
>
> and maybe with some configuration list the html build would search in
> a list of extensions ie ['jpg', 'svg'...] and the latex one for
> another list.
>
> Does this make sense?
>
> Thanks again for Sphinx and for your help!
>
> All the best,
>
> Laurent
>
> >
>

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