summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-latex-includegraphics/index.rst
blob: 920c74962b808c58db91346a8501973f1ff7df59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
====================
Test image inclusion
====================

Tests with both width and height
--------------------------------

.. an image with big dimensions, ratio H/W = 1/5
.. image:: img.png
   :height: 200
   :width: 1000

.. topic:: Oversized images

   .. an image with big dimensions, ratio H/W = 5/1
   .. image:: img.png
      :height: 1000
      :width: 200

   .. height too big even if width reduced to linewidth, ratio H/W = 3/1
   .. image:: img.png
      :width: 1000
      :height: 3000

Tests with only width or height
-------------------------------

.. topic:: Oversized images

   .. tall image which does not fit in textheight even if width rescaled
   .. image:: tall.png
      :width: 1000

.. wide image which does not fit in linewidth even after height diminished
.. image:: sphinx.png
   :height: 1000