Re: Is rst2odt -l cs supposed to work?
Matej Cepl <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On 13/05/17 00:33, Dave Kuhlman wrote: > The reason for the small scale factor is that your image is quite > large. The size returned by PIL (the Python Image Library) > for your image (frantisek_xaversky.jpg) is 2448 X 3264. That's > pixels, I suppose. The conversion factor that I found at > http://www.unitconversion.org/unit_converter/typography-ex.html > is 1 px = 0.0264 cm. So, for example, 2448 * 0.0264 * .15 = > 9.69 cm, which is a reasonable starting width for your image on a > page, and you can adjust from there. I think we have misunderstanding here. http://docutils.sourceforge.net/docs/ref/rst/directives.html#image says, that ``width`` parameter has as units “length or percentage of the current line width”. It seems to me you think that percent means the scaling factor. It doesn’t. rst2xetex does it perfectly well (see PDF I have attached to one of the earlier emails to you). Best, Matěj -- https://matej.ceplovi.cz/blog/, Jabber: [email protected] GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Of course I'm respectable. I'm old. Politicians, ugly buildings, and whores all get respectable if they last long enough. --John Huston in "Chinatown." ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJZFsL5AAoJEHkgWAKIC8nYIkwQALviK6h+a5f8OsQ5xhllZp9B 8ca7NY8QhY1ocaxwjnGRxQH4aQkQAhieAJFc7MzV80TXEtK+v7WtM6IKCbuxnLIy JjMF0byqTcH+XlZJiC4EwD7IjtjtTVPUuSz5jWVP9ihByNDkAl8rsL7p5hCxvmIJ ex486aVYyxnOxoh9MvU9pSzlZuh7uzKMcWNds5y9h+WRqelTqY3z6mVOnAymYtBU Vrv6ti7+bu7i/nFfGXls5T2ElS80S2h4h2L0DPWXHp6huwjnFeuHfC0eCqCg9dkw 1yDNmtfnphIKDX36qSkGhDH3oxk4WtjooL3qiS5aGDniTuanadSzVeTw22yLQ3lM yEKF/CSmo0Kg4+SIhnPHY+u0iF97PYp9dM8QlpYOXA8nTBUiri8sIHt3m+rNLGuN JoGEsbrnqKx/n60jiNh+MgYD1GEmkj8d4pMP6320qouuWFOQjWwldRmINlId1ty7 62uAa2NKND7MhM5u9RZpNq6LjFNFxd/2EQRj2xHn4PsCiLDbfx/8vTaPvuIbWk99 w4fmTeT34wFbAKaYGa6yH/jgtNx3ETDWPlzLPk1MXImFv9UgmGERpY6TWWRLD2/k e5RDIPUgsYxgeBI8ab/5V7eeKJzDVVufF9CtrmUmICDYfCauRYOdWQTKz7361VoB vcbgY5CjeRwAm8i+bvd8 =HtlN -----END PGP SIGNATURE-----