diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-divzero.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-divzero.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-divzero.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-divzero.html index 24b188bd6e0..675a02de27b 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-divzero.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-divzero.html @@ -2,7 +2,7 @@ <title>UK TeX FAQ -- question label divzero</title> </head><body> <h3>Graphics division by zero</h3> -<p>While the error +<p/>While the error <blockquote> <pre> ! Package graphics Error: Division by 0. @@ -10,12 +10,12 @@ </blockquote><p> can actually be caused by offering the package a figure which claims to have a zero dimension, it’s more commonly caused by rotation. -<p>Objects in TeX may have both height (the height above the baseline) +<p/>Objects in TeX may have both height (the height above the baseline) and depth (the distance the object goes below the baseline). If you rotate an object by 180 degrees, you convert its height into depth, and vice versa; if the object started with zero depth, you’ve converted it to a zero-height object. -<p>Suppose you’re including your graphic with a command like: +<p/>Suppose you’re including your graphic with a command like: <blockquote> <pre> \includegraphics[angle=180,height=5cm]{myfig.eps} @@ -24,7 +24,7 @@ converted it to a zero-height object. </blockquote><p> In the case that <i>myfig.eps</i> has no depth to start with, the scaling calculations will produce the division-by-zero error. -<p>Fortunately, the <i>graphicx</i> package has a keyword +<p/>Fortunately, the <i>graphicx</i> package has a keyword <code>totalheight</code>, which allows you to specify the size of the image relative to the sum of the object’s <code>height</code> and <code>depth</code>, so @@ -35,7 +35,7 @@ image relative to the sum of the object’s <code>height</code> and </blockquote><p> will resolve the error, and will behave as you might hope. -<p>If you’re using the simpler <i>graphics</i> package, use the +<p/>If you’re using the simpler <i>graphics</i> package, use the <code>*</code> form of the <code>\</code><code>resizebox</code> command to specify the use of <code>totalheight</code>: <blockquote> @@ -50,5 +50,5 @@ will resolve the error, and will behave as you might hope. <dl> <dt><tt><i>graphics.sty,graphicx.sty</i></tt><dd>Both parts of the <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/graphics.zip">macros/latex/required/graphics</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/graphics.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/graphics/">browse</a>) bundle </dl> -<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=divzero">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=divzero</a> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=divzero">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=divzero</a> </body> |