HI Ksenia,

For the second question.

When you use an asterisk for the image extension like this,

   .. image:: gnu.*

Sphinx searches all images matching the pettern. and each builder
(HTML, LaTeX etc...) have prefer image type.
so it possible to use png for HTML and PDF for LaTeX.
See <http://sphinx-doc.org/latest/rest.html#images>

However, it seems Sphinx can not understand ".eps" extension for the image type,
and also, Sphinx use imghdr
<http://docs.python.org/2.7/library/imghdr.html> library to detect an
image type. but it does not support eps image type.


After all, currently I think it is not possible to use png and eps
(Just look at a code. I may made mistakes)
But you can make a PullRequest which makes determine the eps file from
the extension. it may change around here.
https://bitbucket.org/birkenfeld/sphinx/src/e55c174b5dc5885dc2acc9aa8089e324ffc47b63/sphinx/environment.py?at=default#cl-769
or make a issue which requests this feature.

Thank you,
WAKAYAMA Shirou


2013/10/28 Lukashevichus Ksenia <[email protected]>:
> Hello everyone!
> I'm trying to get latex and HTML documentation using Sphinx 1.2b2, and while
> HTML result seems to be quite OK, latex output I get gives huge number of
> "undefined control sequence" errors when running PDFLatex, and I can't even
> find a problem in lines it points. RST sources, conf.py and the resulting
> latex file are attached.
> The second question:
> Is it possible to use png pictures for HTML and eps for latex?
>
> Ksenia Lukashevichus.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to