[sphinx-dev] Re: rst2pdf - image sizes

2009-10-21 Thread werner

werner wrote:
 I get the following warning for all my images (BTW, most of them are 
 screen captures of an application) as I have not defined a width setting.

 [WARNING] createpdf.py:377 Using image 
 C:\Dev\twcb-doc\en\source\_screenimages\initial.png without specifying 
 size.Calculating based on image size at 96dpi [near line UNKNOWN in file 
 UNKNOWN]

 With the warning the generated PDF has the above image with a size of 
 about 2/3 of the width on A4 paper.

 Would like to get rid of the warnings as they hide other warnings and 
 thought to use e.g. :width: 80%, however when I do this the image 
 above is going to be tiny (maybe 1 or 2 cm wide).

 I then tried to use :width: 14cm, but again the image is very small.

 I like to get rid of the messages, but keep the size rst2pdf uses when I 
 don't specify any width - what setting should I use to accomplish this?
   

In the past to get html builder to do what I wanted with the images I 
used :scale:.  If I replace :scale: with :width: it looks like I 
get what I would like to see for both the html and rst2pdf builders.

Werner



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf - image sizes

2009-10-21 Thread Roberto Alsina

On Wednesday 21 October 2009 09:05:55 werner wrote:
 Nearly there, but this is probably an rst issue, i.e. how to format the 
 following correctly so that :width: is not considered text?
 
 ===  ==
 Vinoté Wrap tag  Vinoté Neck
  tag .. image:: _images/tagWrap.jpg .. image::
  _images/tagNeck.gif
:width: 7cm  
 
 :width: 7cm
 
 ===  ==
 
 Hopefully above will come through corrected aligned.
 
 The width line is just shown as text in the generated output.
 
 I searched in the Sphinx and rst documentation but can't find anything 
 helpful for the above.

You are using simple tables. The ..image and the :width: are in separate 
cells.

Please see 
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#simple-
tables

Simple tables allow multi-line rows (in all but the first column), Each 
line of text starts a new row, except when there is a blank cell in the first 
column. In that case, that line of text is parsed as a continuation line.

Simple tables are... not so simple :-(

-- 
 (\''/).__..-''`-. . Roberto Alsina
 `9_ 9  )   `-. ().`-._.`)  KDE Developer (MFCH)
 (_Y_.)' ._   ) `._`.   -.-'  http://lateral.netmanagers.com.ar 
  _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia   
(l)-'' ((i).' ((!.'   according to alexa.com (27/5/2007) 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf - image sizes

2009-10-21 Thread werner

Roberto,

Roberto Alsina wrote:
...
 You are using simple tables. The ..image and the :width: are in separate 
 cells.

 Please see 
 http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#simple-
 tables

 Simple tables allow multi-line rows (in all but the first column), Each 
 line of text starts a new row, except when there is a blank cell in the first 
 column. In that case, that line of text is parsed as a continuation line.

 Simple tables are... not so simple :-(
   
Thanks for pointing me to the doc again, I just don't read this stuff 
carefully enough.

As I don't want another column I ended up going with grid tables instead.

Werner






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---