Thanks for the tip. In fact I didn't realize that I could use the '.. image' command to include a PDF for Latex output (EPS doesn't work but this is LaTeX related). That itself makes Sphinx even more powerful because I can now do things à la LyX for including spreadsheets and diagrams.
Coming back to your suggestion, I applied both modifications to both Makefile. I see the conversion happening and a new PNG files being generated. However when opening the HTML the PNG doesn't show up and I see the text "_images/pos_market.pdf" instead of the picture. Please note that in _build\html\_images there is no PNG, just the original PDF file. Thanks Alphazo On Apr 8, 2:45 pm, Roberto Alsina <[email protected]> wrote: > On Thursday 08 April 2010 09:34:42 Alpha Zo wrote: > > > There is a 2009 thread called "In what format should I maintain an > > image". I have similar question. Can an EPS or PDF file be included in > > a Sphinx document with PNG conversion for HTML output? > > If you have a EPS or PDF image it's trivial to add a rule in the Makefile to > convert them to PNG. If you have GNU make and ImageMagick installed, add this > at the beginning of your Makefile (assuming you have image1.pdf and > image2.pdf): > > PNGIMAGES = image1.png \ > image2.png > > %.png: %.pdf > convert $< $@ > > Then change the html target to make it depend on the images: > > html: ${PNGIMAGES} > > And voila, the images will be converted from PDF to PNG whenever you build the > html target and they have changed. -- 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.
