On 2013-07-05, Lachlan Simpson wrote:

> [-- Type: text/plain, Encoding:  --]

> I have images that are too big for the latex/pdf.

> Being new to sphinx and wanting something fast and dirty (it's only two
> pictures), I liked the solution presented here:
> http://pedrokroger.net/2012/10/using-sphinx-to-write-books/

>  123456789

> .. only:: not latex   .. image:: figs/notation3.png      :scale: 40..
> only:: latex   .. image:: figs/notation3.png      :scale: 80

I hope you did not write this spaghetto in the source (is it Google groups
playing tricks?)

> Having implemented something like this, I'm getting expected html output
> (good) but not for the pdf.

> In the pdf all I'm seeing is:

> ..image:: figs/notation3.png
>               :scale: 80


> What am I doing wrong?

Unfortunately, I can't tell you.
There is, however an alternative solution: specify the size in pixel (px)
and configure the "resolution" in the LaTeX preamble:

Example:
 
  Set a resolution of 96 DPI with the LaTeX code::

    \pdfpxdimen=1in % 1 DPI
    \divide\pdfpxdimen by 96 % 96 DPI

http://docutils.sourceforge.net/docs/user/latex.html#size-of-a-pixel

Günter

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