summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-latex-includegraphics/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-latex-includegraphics/index.rst')
-rw-r--r--tests/roots/test-latex-includegraphics/index.rst37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/roots/test-latex-includegraphics/index.rst b/tests/roots/test-latex-includegraphics/index.rst
new file mode 100644
index 0000000..920c749
--- /dev/null
+++ b/tests/roots/test-latex-includegraphics/index.rst
@@ -0,0 +1,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
+