I get mixed results when my images go to html and latexPDF outputs. I'm 
trying to gain more granular control of the final image size and quality, 
and the two different outputs are not getting along.

I believe a productive means of solving this might be to conditionalize the 
image chunks. In other words, use either ".. ifconfig::" or ".. only::" (or 
some other directive...do tell...) to make, for example, the PDF image come 
out with a :width: *X*in image from an SVG source, and the HTML output come 
from a :scale: 50% png source. 

As near as I can tell from the error message, neither .. ifconfig:: nor  .. 
only:: agree with my expectation of how they should work. The ifconfig 
error seems to imply that the directive only works with strings. The .. 
only:: directive complained of not appreciating a chunk after the 
expression. 

I'm trying this: 

   .. ifconfig:: latexpdf
      .. image:: /Users/William/foo/bar.svg
         :width: 4in
   
   .. ifconfig:: html
      .. image:: /Users/William/foo/bar.png
         :scale: 50%

   and the same basic structure with .. only:: instead of .. ifconfig::

1) Is this a bad way of resolving this issue? 
2) Is it a viable method, but I'm going about it the wrong way? (i.e., 
there's a chunk-savvy directive, or what I'm doing should work, but my 
syntax is execrable).

Thanks in advance. 

--William

-- 
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to