summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/dvipng
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-08-07 18:24:39 +0000
committerKarl Berry <karl@freefriends.org>2008-08-07 18:24:39 +0000
commit04090cf2a1f7b8abd369b3fb944199b902599342 (patch)
tree16b8660adca27757eb19769a536d936aeb109499 /Master/texmf/doc/dvipng
parentc07533ee14074459c9f4aec42036b5cb4e12d613 (diff)
updates of texinfo manuals
git-svn-id: svn://tug.org/texlive/trunk@10145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/doc/dvipng')
-rw-r--r--Master/texmf/doc/dvipng/dvipng.html375
-rw-r--r--Master/texmf/doc/dvipng/dvipng.pdfbin0 -> 176160 bytes
2 files changed, 194 insertions, 181 deletions
diff --git a/Master/texmf/doc/dvipng/dvipng.html b/Master/texmf/doc/dvipng/dvipng.html
index 3d2347dcc94..6224cf78c7f 100644
--- a/Master/texmf/doc/dvipng/dvipng.html
+++ b/Master/texmf/doc/dvipng/dvipng.html
@@ -3,7 +3,7 @@
<title>A DVI-to-PNG translator</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="A DVI-to-PNG translator">
-<meta name="generator" content="makeinfo 4.8">
+<meta name="generator" content="makeinfo 4.12">
<link title="Top" rel="top" href="#Top">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
@@ -76,7 +76,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#dir">(dir)</a>
<p>This manual documents dvipng, a program to translate a DVI (DeVice
Independent) file into PNG (Portable Network Graphics).
- <p>This file documents dvipng version 1.9
+ <p>This file documents dvipng version 1.11
<p>Corrections or perhaps rewrites of sections are <em>very welcome</em>.
@@ -91,7 +91,7 @@ Independent) file into PNG (Portable Network Graphics).
<li><a accesskey="6" href="#Color">Color</a>: Using color with dvipng
<li><a accesskey="7" href="#Diagnosing-problems">Diagnosing problems</a>: Problems?
<li><a accesskey="8" href="#Credits">Credits</a>: People who have contributed
-<li><a accesskey="9" href="#Copying">Copying</a>: GNU General Public License
+<li><a accesskey="9" href="#Copying">Copying</a>: GNU Lesser General Public License
<li><a href="#Index">Index</a>: General index
</ul>
@@ -114,7 +114,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
from TeX and its relatives.
<p>If GIF support is enabled, GIF output is chosen by using the
-`<samp><span class="samp">dvigif</span></samp>' binary or with the `<samp><span class="samp">--gif</span></samp>' option.
+&lsquo;<samp><span class="samp">dvigif</span></samp>&rsquo; binary or with the &lsquo;<samp><span class="samp">--gif</span></samp>&rsquo; option.
<p>It is intended to produce anti-aliased screen-resolution images as fast
as is possible. The target audience is people who need to generate and
@@ -128,10 +128,15 @@ homework problems to students over the internet, giving students
instant feedback as to whether or not their answers are correct, see
<a href="http://webwork.math.rochester.edu">http://webwork.math.rochester.edu</a>.
+ <p>A more recent addition to the dvipng-using applications out there is
+MediaWiki, the software behind Wikipedia and many other wikis out
+there. Dvipng is used to render mathematical formulae from version
+1.8.0 of MediaWiki, see <a href="http://www.mediawiki.org">http://www.mediawiki.org</a>.
+
<p>Other applications may also benefit, like web applications as latex2html
and WYSIWYG editors like LyX.
- <p>The benefits of `<samp><span class="samp">dvipng</span></samp>'/`<samp><span class="samp">dvigif</span></samp>' include
+ <p>The benefits of &lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo;/&lsquo;<samp><span class="samp">dvigif</span></samp>&rsquo; include
<ul>
<li>Speed. It is a very fast bitmap-rendering code for DVI files, which
@@ -139,7 +144,7 @@ makes it suitable for generating large amounts of images on-the-fly,
as needed in preview-latex, WeBWorK and others.
<li>It does not read the postamble, so it can be started before TeX
-finishes. There is a `<samp><span class="samp">--follow</span></samp>' switch that makes dvipng wait at
+finishes. There is a &lsquo;<samp><span class="samp">--follow</span></samp>&rsquo; switch that makes dvipng wait at
end-of-file for further output, unless it finds the POST marker that
indicates the end of the DVI.
@@ -172,7 +177,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<!-- install.texi -->
<!-- Part of the dvipng distribution -->
<!-- -->
-<p>Installing dvipng should be simple: merely <code>./configure</code>,
+ <p>Installing dvipng should be simple: merely <code>./configure</code>,
<code>make</code>, and <code>make install</code>.
<ul class="menu">
@@ -196,10 +201,10 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Installation">Installation</a>
<ul>
<li>The GD Graphics Draw library, libgd
- <p>The drawing library `<samp><span class="samp">libgd</span></samp>' is necessary, and is downloadable at
+ <p>The drawing library &lsquo;<samp><span class="samp">libgd</span></samp>&rsquo; is necessary, and is downloadable at
<a href="http://www.boutell.com/gd">http://www.boutell.com/gd</a>, and there are binary packages for
most operating systems from their respective distributors. In any
-case, the latest version of the library installs using `<samp><span class="samp">autoconf</span></samp>'
+case, the latest version of the library installs using &lsquo;<samp><span class="samp">autoconf</span></samp>&rsquo;
so it should not be difficult for you to install it from source, and
then proceed with installing dvipng.
@@ -212,25 +217,28 @@ I have no experience with this, so I cannot help much here.
<li>The font-rendering library FreeType 2
- <p>While not strictly necessary, FreeType 2 is recommended since dvipng
-currently will produce better-quality images with this library
-available. It will also enable direct support for PostScript and
-TrueType fonts, and subfont support in dvipng. That is, if you want to
-render CJK-LaTeX characters, you must have FreeType 2 installed.
-With FreeType 2, dvipng will not need to generate bitmapped variants
-on disk of the TeX fonts since modern TeX distributions include
-PostScript versions of them. Then, you can render images at different
-(and unusual) resolutions without cluttering the disk with lots of
-bitmapped fonts.
+ <p>While not strictly necessary, a recent FreeType 2 is recommended since
+dvipng currently will produce better-quality images when this library is
+available. To take advantage of this, you should have at least FreeType
+2.1.9.
+
+ <p>FreeType 2 will enable direct support for PostScript and TrueType fonts,
+so that dvipng will not need to generate bitmapped variants on disk of
+the TeX fonts since modern TeX distributions include PostScript
+versions of them. Then, you can render images at different (and unusual)
+resolutions without cluttering the disk with lots of bitmapped fonts.
+
+ <p>Finally, it will enable subfont support in dvipng. That is, if you want
+to render CJK-LaTeX characters, you must have FreeType 2 installed.
<li>The font-rendering library T1lib
<p>An alternative to FreeType 2 is T1lib, but this will enable only
-PostScript fonts in dvipng, and will not include subfont support. Also
+PostScript fonts in dvipng and will not include subfont support. Also
here, you can render images at different (and unusual) resolutions
without cluttering the disk with lots of bitmapped fonts. If both
FreeType 2 and T1lib are present, FreeType will be internally
-preferred by dvipng, but T1lib can be chosen at runtime.
+preferred by dvipng but T1lib can be chosen at runtime.
<li>libpng and libz
@@ -341,8 +349,8 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Installation">Installation</a>
not be able to find virtual fonts, or the PostScript font maps
(normally used by dvips). This may be because <em>only</em>
$SELFAUTOLOC, $SELFAUTODIR, and $SELFAUTOPARENT are used in the texmf
-tree configuration file `<samp><span class="samp">texmf.cnf</span></samp>'. If so, give the switch
-`<samp><span class="samp">--enable-selfauto-set</span></samp>' to `<samp><span class="samp">./configure</span></samp>'. This will make
+tree configuration file &lsquo;<samp><span class="samp">texmf.cnf</span></samp>&rsquo;. If so, give the switch
+&lsquo;<samp><span class="samp">--enable-selfauto-set</span></samp>&rsquo; to &lsquo;<samp><span class="samp">./configure</span></samp>&rsquo;. This will make
dvipng adjust these three internally so that kpathsea thinks that
dvipng <em>is</em> installed in the texmf tree.
@@ -360,7 +368,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Installation">Installation</a>
<p>Often people without system administration privileges want to install
software for their private use. In that case you need to specify more
options to the <samp><span class="file">configure</span></samp> script, usually this is done by using
-the `<samp><span class="samp">--prefix</span></samp>' option to the <samp><span class="file">configure</span></samp> script, and let it
+the &lsquo;<samp><span class="samp">--prefix</span></samp>&rsquo; option to the <samp><span class="file">configure</span></samp> script, and let it
point to the personal home directory. In that way, resulting binaries
will be installed under the <samp><span class="file">bin</span></samp> subdirectory of your home
directory, manual pages under <samp><span class="file">man</span></samp> and so on. That way, it is
@@ -439,9 +447,9 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Command_002dline-options">Command-line
<h3 class="section">4.1 Option summary</h3>
<p><a name="index-options_002c-summary-7"></a>Here is a handy summary of the options; it is printed out when you run
-dvipng with no arguments or with the standard `<samp><span class="samp">--help</span></samp>' option.
+dvipng with no arguments or with the standard &lsquo;<samp><span class="samp">--help</span></samp>&rsquo; option.
-<pre class="example"> This is ./dvipng 1.9 Copyright 2002-2006 Jan-Ake Larsson
+<pre class="example"> This is ./dvipng 1.11 Copyright 2002-2008 Jan-Ake Larsson
Usage: ./dvipng [OPTION]... FILENAME[.dvi]
Options are chosen to be similar to dvips' options where possible:
@@ -467,12 +475,16 @@ dvipng with no arguments or with the standard `<samp><span class="samp">--help</
--follow* Wait for data at end-of-file
--freetype* FreeType font rendering (default on)
--gamma # Control color interpolation
+ --gif Output GIF images (dvigif default)
--height* Output the image height on stdout
--noghostscript* Don't use ghostscript for PostScript specials
--nogssafer* Don't use -dSAFER in ghostscript calls
+ --palette* Force palette output
--picky When a warning occurs, don't output image
+ --png Output PNG images (dvipng default)
--strict When a warning occurs, exit
--t1lib* T1lib font rendering (default on)
+ --truecolor* Truecolor output
-Q # Quality (T1lib and PK subsampling)
-z # PNG compression level
@@ -493,19 +505,19 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Command_002dline-options">Command-line
<p><a name="index-option_002c-details-of-8"></a><!-- man begin OPTIONS -->
<p>Many of the parameterless options listed here can be turned off by
-suffixing the option with a zero (`<samp><span class="samp">0</span></samp>'); for instance, to turn off
-page reversal, use `<samp><span class="samp">-r0</span></samp>'. Such options are marked with a trailing
-`<samp><span class="samp">*</span></samp>'.
+suffixing the option with a zero (&lsquo;<samp><span class="samp">0</span></samp>&rsquo;); for instance, to turn off
+page reversal, use &lsquo;<samp><span class="samp">-r0</span></samp>&rsquo;. Such options are marked with a trailing
+&lsquo;<samp><span class="samp">*</span></samp>&rsquo;.
<dl>
-<dt>`<samp><span class="samp">-</span></samp>'<dd><a name="index-options_002c-reading-from-standard-input-9"></a><a name="index-standard-input_002c-reading-options-from-10"></a>Read additional options from standard input after processing the command
+<dt>&lsquo;<samp><span class="samp">-</span></samp>&rsquo;<dd><a name="index-options_002c-reading-from-standard-input-9"></a><a name="index-standard-input_002c-reading-options-from-10"></a>Read additional options from standard input after processing the command
line.
- <br><dt>`<samp><span class="samp">--help</span></samp>'<dd>Print a usage message and exit.
+ <br><dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd>Print a usage message and exit.
- <br><dt>`<samp><span class="samp">--version</span></samp>'<dd>Print the version number and exit.
+ <br><dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd>Print the version number and exit.
- <br><dt>`<samp><span class="samp">-bd </span><var>num</var></samp>'<br><dt>`<samp><span class="samp">-bd </span><var>color_spec</var></samp>'<br><dt>`<samp><span class="samp">-bd '</span><var>num</var> <var>color_spec</var><span class="samp">'</span></samp>'<dd><a name="index-transparent-border-width-11"></a><a name="index-transparent-border-fallback-color-12"></a>Set the pixel width of the transparent border (default 0). Using this
+ <br><dt>&lsquo;<samp><span class="samp">-bd </span><var>num</var></samp>&rsquo;<br><dt>&lsquo;<samp><span class="samp">-bd </span><var>color_spec</var></samp>&rsquo;<br><dt>&lsquo;<samp><span class="samp">-bd '</span><var>num</var> <var>color_spec</var><span class="samp">'</span></samp>&rsquo;<dd><a name="index-transparent-border-width-11"></a><a name="index-transparent-border-fallback-color-12"></a>Set the pixel width of the transparent border (default 0). Using this
option will make the image edges transparent, but it only affects pixels
with the background color. Giving a <var>color_spec</var> will set the
fallback color, to be used in viewers that cannot handle transparency
@@ -513,11 +525,11 @@ fallback color, to be used in viewers that cannot handle transparency
TeX color \special syntax, e.g., 'rgb 1.0 0.0 0.0'. Setting the
fallback color makes the default border width 1 px. See <a href="#Color">Color</a>.
- <br><dt>`<samp><span class="samp">--bdpi </span><var>num</var></samp>'<dd><a name="index-base-resolution_002c-setting-13"></a>Set the base (Metafont) resolution, both horizontal and vertical, to
+ <br><dt>&lsquo;<samp><span class="samp">--bdpi </span><var>num</var></samp>&rsquo;<dd><a name="index-base-resolution_002c-setting-13"></a>Set the base (Metafont) resolution, both horizontal and vertical, to
<var>num</var> dpi (dots per inch). This option is necessary when manually
selecting Metafont mode with the &ndash;mode option (see below).
- <br><dt>`<samp><span class="samp">-bg </span><var>color_spec</var></samp>'<dd><a name="index-background-color-_0028option_0029-14"></a>Choose background color for the images. This option will be ignored if
+ <br><dt>&lsquo;<samp><span class="samp">-bg </span><var>color_spec</var></samp>&rsquo;<dd><a name="index-background-color-_0028option_0029-14"></a>Choose background color for the images. This option will be ignored if
there is a background color \special in the DVI. The color spec should
be in TeX color \special syntax, e.g., 'rgb 1.0 0.0 0.0'. You can
also specify 'Transparent' or 'transparent' which will give you a
@@ -529,57 +541,57 @@ suitable for viewers who cannot cope with a true alpha channel. GIF
images do not support full alpha transparency, so in case of GIF output,
both variants will use the latter behaviour. See <a href="#Color">Color</a>.
- <br><dt>`<samp><span class="samp">-d </span><var>num</var></samp>'<dd><a name="index-debugging-15"></a>Set the debug flags, showing what dvipng (thinks it) is doing. This will
+ <br><dt>&lsquo;<samp><span class="samp">-d </span><var>num</var></samp>&rsquo;<dd><a name="index-debugging-15"></a>Set the debug flags, showing what dvipng (thinks it) is doing. This will
work unless dvipng has been compiled without the <code>DEBUG</code> option
-(not recommended). Set the flags as you need them, use `<samp><span class="samp">-d -1</span></samp>' as
+(not recommended). Set the flags as you need them, use &lsquo;<samp><span class="samp">-d -1</span></samp>&rsquo; as
the first option for maximum output. See <a href="#Debug-options">Debug options</a>.
- <br><dt>`<samp><span class="samp">-D </span><var>num</var></samp>'<dd><a name="index-output-resolution_002c-setting-16"></a>Set the output resolution, both horizontal and vertical, to <var>num</var>
+ <br><dt>&lsquo;<samp><span class="samp">-D </span><var>num</var></samp>&rsquo;<dd><a name="index-output-resolution_002c-setting-16"></a>Set the output resolution, both horizontal and vertical, to <var>num</var>
dpi (dots per inch).
<p>One may want to adjust this to fit a certain text font size (e.g., on
a web page), and for a text font height of <var>font_px</var> pixels (in
Mozilla) the correct formula is
<pre class="example"> <var>dpi</var> = <var>font_px</var> * 72.27 / 10 [px * TeXpt/in / TeXpt]
- </pre>
+</pre>
<p>The last division by ten is due to the standard font height 10pt in
your document, if you use 12pt, divide by 12. Unfortunately, some
proprietary browsers have font height in pt (points), not pixels. You
have to rescale that to pixels, using the screen resolution (default
is usually 96 dpi) which means the formula is
<pre class="example"> <var>font_px</var> = <var>font_pt</var> * 96 / 72 [pt * px/in / (pt/in)]
- </pre>
+</pre>
<p>On some high-res screens, the value is instead 120 dpi. Good luck!
- <br><dt>`<samp><span class="samp">--depth*</span></samp>'<dd><a name="index-baseline-reporting-17"></a><a name="index-depth-reporting-18"></a>Report the depth of the image. This only works reliably when the
-LaTeX style <samp><span class="file">preview.sty</span></samp> from preview-latex is used. It
-reports the number of pixels from the bottom of the image to the
-baseline of the image. This can be used for vertical positioning of the
-image in, e.g., web documents, where one would use (Cascading
-StyleSheets 1)
+ <br><dt>&lsquo;<samp><span class="samp">--depth*</span></samp>&rsquo;<dd><a name="index-baseline-reporting-17"></a><a name="index-depth-reporting-18"></a>Report the depth of the image. This only works reliably when the
+LaTeX style <samp><span class="file">preview.sty</span></samp> from preview-latex is used with
+the &lsquo;<samp><span class="samp">active</span></samp>&rsquo; option. It reports the number of pixels from the
+bottom of the image to the baseline of the image. This can be used for
+vertical positioning of the image in, e.g., web documents, where one
+would use (Cascading StyleSheets 1)
<pre class="example"> &lt;IMG SRC="<var>filename.png</var>" STYLE="vertical-align: -<var>depth</var>px"&gt;
- </pre>
+</pre>
<p>The depth is a negative offset in this case, so the minus sign is
necessary, and the unit is pixels (px).
- <br><dt>`<samp><span class="samp">--dvinum*</span></samp>'<dd>Set this option to make the output page number be the TeX page
-numbers rather than the physical page number. See the `<samp><span class="samp">-o</span></samp>' switch.
+ <br><dt>&lsquo;<samp><span class="samp">--dvinum*</span></samp>&rsquo;<dd>Set this option to make the output page number be the TeX page
+numbers rather than the physical page number. See the &lsquo;<samp><span class="samp">-o</span></samp>&rsquo; switch.
- <br><dt>`<samp><span class="samp">-fg </span><var>color_spec</var></samp>'<dd><a name="index-foreground-color-_0028option_0029-19"></a>Choose foreground color for the images. This option will be ignored if
+ <br><dt>&lsquo;<samp><span class="samp">-fg </span><var>color_spec</var></samp>&rsquo;<dd><a name="index-foreground-color-_0028option_0029-19"></a>Choose foreground color for the images. This option will be ignored if
there is a foreground color \special in the DVI. The color spec should
be in TeX color \special syntax, e.g., 'rgb 1.0 0.0 0.0'.
See <a href="#Color">Color</a>.
- <br><dt>`<samp><span class="samp">--follow*</span></samp>'<dd><a name="index-follow-mode-20"></a>Wait for data at end-of-file. One of the benefits of dvipng is that it
+ <br><dt>&lsquo;<samp><span class="samp">--follow*</span></samp>&rsquo;<dd><a name="index-follow-mode-20"></a>Wait for data at end-of-file. One of the benefits of dvipng is that it
does not read the postamble, so it can be started before TeX
finishes. This switch makes dvipng wait at end-of-file for further
output, unless it finds the POST marker that indicates the end of the
-DVI. This is similar to `<samp><span class="samp">tail -f</span></samp>' but for DVI-to-PNG conversion.
+DVI. This is similar to &lsquo;<samp><span class="samp">tail -f</span></samp>&rsquo; but for DVI-to-PNG conversion.
- <br><dt>`<samp><span class="samp">--freetype*</span></samp>'<dd><a name="index-FreeType-font-rendering-21"></a>Enable/disable FreeType font rendering (default on). This option is
+ <br><dt>&lsquo;<samp><span class="samp">--freetype*</span></samp>&rsquo;<dd><a name="index-FreeType-font-rendering-21"></a>Enable/disable FreeType font rendering (default on). This option is
available if the FreeType2 font library was present at compilation time.
If this is the case, dvipng will have direct support for PostScript
-Type1 and TrueType fonts internally, rather than using `<samp><span class="samp">gsftopk</span></samp>'
+Type1 and TrueType fonts internally, rather than using &lsquo;<samp><span class="samp">gsftopk</span></samp>&rsquo;
for rendering the fonts. If you have PostScript versions of Computer
Modern installed, there will be no need to generate bitmapped variants
on disk of these. Then, you can render images at different (and unusual)
@@ -588,84 +600,85 @@ Note that if you have both FreeType and T1lib on your system, FreeType
will be preferred by dvipng. If you for some reason would want to use
T1lib rendering, use this option.
- <br><dt>`<samp><span class="samp">--gamma </span><var>num</var></samp>'<dd><a name="index-gamma-22"></a><a name="index-dark-fonts-23"></a><a name="index-light-fonts-24"></a><a name="index-fuzzy-images-25"></a>Control the interpolation of colors in the greyscale anti-aliasing
+ <br><dt>&lsquo;<samp><span class="samp">--gamma </span><var>num</var></samp>&rsquo;<dd><a name="index-gamma-22"></a><a name="index-dark-fonts-23"></a><a name="index-light-fonts-24"></a><a name="index-fuzzy-images-25"></a>Control the interpolation of colors in the greyscale anti-aliasing
color palette. Default value is 1.0. For 0 &lt; <var>num</var> &lt; 1, the
fonts will be lighter (more like the background), and for <var>num</var> &gt;
1, the fonts will be darker (more like the foreground).
- <br><dt>`<samp><span class="samp">--gif*</span></samp>'<dd><a name="index-GIF-image-format-26"></a>The images are output in the GIF format, if GIF support is enabled.
-This is the default for the `<samp><span class="samp">dvigif</span></samp>' binary, which only will be
+ <br><dt>&lsquo;<samp><span class="samp">--gif*</span></samp>&rsquo;<dd><a name="index-GIF-image-format-26"></a>The images are output in the GIF format, if GIF support is enabled.
+This is the default for the &lsquo;<samp><span class="samp">dvigif</span></samp>&rsquo; binary, which only will be
available when GIF support is enabled. GIF images are palette images
-(see the `<samp><span class="samp">--palette</span></samp>' option) and does not support true alpha
-channels (see the `<samp><span class="samp">--bg</span></samp>' option). See also the `<samp><span class="samp">--png</span></samp>'
+(see the &lsquo;<samp><span class="samp">--palette</span></samp>&rsquo; option) and does not support true alpha
+channels (see the &lsquo;<samp><span class="samp">--bg</span></samp>&rsquo; option). See also the &lsquo;<samp><span class="samp">--png</span></samp>&rsquo;
option.
- <br><dt>`<samp><span class="samp">--height*</span></samp>'<dd><a name="index-baseline-reporting-27"></a><a name="index-height-reporting-28"></a>Report the height of the image. This only works reliably when the
-LaTeX style <samp><span class="file">preview.sty</span></samp> from preview-latex is used. It
-reports the number of pixels from the top of the image to the
-baseline of the image. The total height of the image is obtained as the
-sum of the values reported from `<samp><span class="samp">--height</span></samp>' and `<samp><span class="samp">--depth</span></samp>'.
+ <br><dt>&lsquo;<samp><span class="samp">--height*</span></samp>&rsquo;<dd><a name="index-baseline-reporting-27"></a><a name="index-height-reporting-28"></a>Report the height of the image. This only works reliably when the
+LaTeX style <samp><span class="file">preview.sty</span></samp> from preview-latex is used with
+the &lsquo;<samp><span class="samp">active</span></samp>&rsquo; option. It reports the number of pixels from the top
+of the image to the baseline of the image. The total height of the
+image is obtained as the sum of the values reported from
+&lsquo;<samp><span class="samp">--height</span></samp>&rsquo; and &lsquo;<samp><span class="samp">--depth</span></samp>&rsquo;.
- <br><dt>`<samp><span class="samp">-l [=]</span><var>num</var></samp>'<dd><a name="index-last-page-printed-29"></a><a name="index-page_002c-last-printed-30"></a><a name="index-physical-page-number_002c-and-_0040samp_007b_002dl_007d-31"></a><a name="index-absolute-page-number_002c-and-_0040samp_007b_002dl_007d-32"></a>The last page printed will be the first one numbered <var>num</var>. Default
+ <br><dt>&lsquo;<samp><span class="samp">-l [=]</span><var>num</var></samp>&rsquo;<dd><a name="index-last-page-printed-29"></a><a name="index-page_002c-last-printed-30"></a><a name="index-physical-page-number_002c-and-_0040samp_007b_002dl_007d-31"></a><a name="index-absolute-page-number_002c-and-_0040samp_007b_002dl_007d-32"></a>The last page printed will be the first one numbered <var>num</var>. Default
is the last page in the document. If <var>num</var> is prefixed by an equals
-sign, then it (and the argument to the `<samp><span class="samp">-p</span></samp>' option, if specified)
+sign, then it (and the argument to the &lsquo;<samp><span class="samp">-p</span></samp>&rsquo; option, if specified)
is treated as a physical (absolute) page number, rather than a value to
-compare with the TeX `<samp><span class="samp">\count0</span></samp>' values stored in the DVI file.
-Thus, using `<samp><span class="samp">-l =9</span></samp>' will end with the ninth page of the document,
+compare with the TeX &lsquo;<samp><span class="samp">\count0</span></samp>&rsquo; values stored in the DVI file.
+Thus, using &lsquo;<samp><span class="samp">-l =9</span></samp>&rsquo; will end with the ninth page of the document,
no matter what the pages are actually numbered.
- <br><dt>`<samp><span class="samp">--mode </span><var>mode</var></samp>'<dd><a name="index-mode-name_002c-specifying-33"></a><a name="index-Metafont-mode_002c-specifying-34"></a>Use <var>mode</var> as the Metafont device name for the PK fonts (both for
+ <br><dt>&lsquo;<samp><span class="samp">--mode </span><var>mode</var></samp>&rsquo;<dd><a name="index-mode-name_002c-specifying-33"></a><a name="index-Metafont-mode_002c-specifying-34"></a>Use <var>mode</var> as the Metafont device name for the PK fonts (both for
path searching and font generation). This needs to be augmented with the
-base device resolution, given with the `<samp><span class="samp">--bdpi</span></samp>' option. See the
+base device resolution, given with the &lsquo;<samp><span class="samp">--bdpi</span></samp>&rsquo; option. See the
file <a href="ftp://ftp.tug.org/tex/modes.mf">ftp://ftp.tug.org/tex/modes.mf</a> for a list of resolutions and
mode names for most devices. See <a href="kpathsea.html#Unable-to-generate-fonts">Unable to generate fonts</a>.
- <br><dt>`<samp><span class="samp">-M*</span></samp>'<dd><a name="index-font-generation_002c-avoiding-35"></a><a name="index-mktexpk_0040r_007b_002c-avoiding_007d-36"></a><!-- this description repeated in kpathsea.texi -->
+ <br><dt>&lsquo;<samp><span class="samp">-M*</span></samp>&rsquo;<dd><a name="index-font-generation_002c-avoiding-35"></a><a name="index-mktexpk_0040r_007b_002c-avoiding_007d-36"></a><!-- this description repeated in kpathsea.texi -->
Turns off automatic PK font generation (<samp><span class="file">mktexpk</span></samp>). This will have
no effect when using PostScript fonts, since no PK font generation will
be done anyway.
- <br><dt>`<samp><span class="samp">--noghostscript*</span></samp>'<dd><a name="index-GhostScript_002c-turning-off-37"></a>This switch prohibits the internal call to GhostScript for displaying
-PostScript specials. `<samp><span class="samp">--noghostscript0</span></samp>' turns the call back on.
+ <br><dt>&lsquo;<samp><span class="samp">--noghostscript*</span></samp>&rsquo;<dd><a name="index-GhostScript_002c-turning-off-37"></a>This switch prohibits the internal call to GhostScript for displaying
+PostScript specials. &lsquo;<samp><span class="samp">--noghostscript0</span></samp>&rsquo; turns the call back on.
- <br><dt>`<samp><span class="samp">--nogssafer*</span></samp>'<dd><a name="index-GhostScript-and-_002ddSAFER-38"></a><a name="index-g_t_002ddSAFER-39"></a>Normally, if GhostScript is used to render PostScript specials, the
-GhostScript interpreter is run with the option `<samp><span class="samp">-dSAFER</span></samp>'. The
-`<samp><span class="samp">--nogssafer</span></samp>' option runs GhostScript without `<samp><span class="samp">-dSAFER</span></samp>'. The
-`<samp><span class="samp">-dSAFER</span></samp>' option in Ghostscript disables PostScript operators such
+ <br><dt>&lsquo;<samp><span class="samp">--nogssafer*</span></samp>&rsquo;<dd><a name="index-GhostScript-and-_002ddSAFER-38"></a><a name="index-g_t_002ddSAFER-39"></a>Normally, if GhostScript is used to render PostScript specials, the
+GhostScript interpreter is run with the option &lsquo;<samp><span class="samp">-dSAFER</span></samp>&rsquo;. The
+&lsquo;<samp><span class="samp">--nogssafer</span></samp>&rsquo; option runs GhostScript without &lsquo;<samp><span class="samp">-dSAFER</span></samp>&rsquo;. The
+&lsquo;<samp><span class="samp">-dSAFER</span></samp>&rsquo; option in Ghostscript disables PostScript operators such
as deletefile, to prevent possibly malicious PostScript programs from
having any effect.
- <br><dt>`<samp><span class="samp">-o </span><var>name</var></samp>'<dd><a name="index-output_002c-redirecting-40"></a><a name="index-standard-output_002c-output-to-41"></a>Send output to the file <var>name</var>. A single occurrence of `<samp><span class="samp">%d</span></samp>' or
-`<samp><span class="samp">%01d</span></samp>', <small class="dots">...</small>, `<samp><span class="samp">%09d</span></samp>' will be exchanged for the physical
-page number (this can be changed, see the `<samp><span class="samp">--dvinum</span></samp>' switch). The
-default output filename is `<samp><var>file</var><span class="samp">%d.png</span></samp>' where the input DVI
-file was `<samp><var>file</var><span class="samp">.dvi</span></samp>'.
+ <br><dt>&lsquo;<samp><span class="samp">-o </span><var>name</var></samp>&rsquo;<dd><a name="index-output_002c-redirecting-40"></a><a name="index-standard-output_002c-output-to-41"></a>Send output to the file <var>name</var>. A single occurrence of &lsquo;<samp><span class="samp">%d</span></samp>&rsquo; or
+&lsquo;<samp><span class="samp">%01d</span></samp>&rsquo;, <small class="dots">...</small>, &lsquo;<samp><span class="samp">%09d</span></samp>&rsquo; will be exchanged for the physical
+page number (this can be changed, see the &lsquo;<samp><span class="samp">--dvinum</span></samp>&rsquo; switch). The
+default output filename is &lsquo;<samp><var>file</var><span class="samp">%d.png</span></samp>&rsquo; where the input DVI
+file was &lsquo;<samp><var>file</var><span class="samp">.dvi</span></samp>&rsquo;.
- <br><dt>`<samp><span class="samp">-O </span><var>x-offset</var><span class="samp">,</span><var>y-offset</var></samp>'<dd><a name="index-offset-pages-42"></a>Move the origin by <var>x-offset</var>,<var>y-offset</var>, a comma-separated
-pair of dimensions such as `<samp><span class="samp">.1in,-.3cm</span></samp>'.
+ <br><dt>&lsquo;<samp><span class="samp">-O </span><var>x-offset</var><span class="samp">,</span><var>y-offset</var></samp>&rsquo;<dd><a name="index-offset-pages-42"></a>Move the origin by <var>x-offset</var>,<var>y-offset</var>, a comma-separated
+pair of dimensions such as &lsquo;<samp><span class="samp">.1in,-.3cm</span></samp>&rsquo;.
<!-- (@pxref{papersize special}). -->
The origin of the page is shifted from the default position
(of one inch down, one inch to the right from the upper left corner of
the paper) by this amount.
- <br><dt>`<samp><span class="samp">-p [=]</span><var>num</var></samp>'<dd><a name="index-first-page-printed-43"></a><a name="index-page_002c-first-printed-44"></a><a name="index-physical-page-number_002c-and-_0040samp_007b_002dp_007d-45"></a><a name="index-absolute-page-number_002c-and-_0040samp_007b_002dp_007d-46"></a>The first page printed will be the first one numbered <var>num</var>. Default
+ <br><dt>&lsquo;<samp><span class="samp">-p [=]</span><var>num</var></samp>&rsquo;<dd><a name="index-first-page-printed-43"></a><a name="index-page_002c-first-printed-44"></a><a name="index-physical-page-number_002c-and-_0040samp_007b_002dp_007d-45"></a><a name="index-absolute-page-number_002c-and-_0040samp_007b_002dp_007d-46"></a>The first page printed will be the first one numbered <var>num</var>. Default
is the first page in the document. If <var>num</var> is prefixed by an
-equals sign, then it (and the argument to the `<samp><span class="samp">-l</span></samp>' option, if
+equals sign, then it (and the argument to the &lsquo;<samp><span class="samp">-l</span></samp>&rsquo; option, if
specified) is treated as a physical (absolute) page number, rather than
-a value to compare with the TeX `<samp><span class="samp">\count0</span></samp>' values stored in the
-DVI file. Thus, using `<samp><span class="samp">-p =3</span></samp>' will start with the third page of
+a value to compare with the TeX &lsquo;<samp><span class="samp">\count0</span></samp>&rsquo; values stored in the
+DVI file. Thus, using &lsquo;<samp><span class="samp">-p =3</span></samp>&rsquo; will start with the third page of
the document, no matter what the pages are actually numbered.
- <br><dt>`<samp><span class="samp">--palette*</span></samp>'<dd><a name="index-forcing-palette-output-47"></a>Starting from `<samp><span class="samp">dvipng</span></samp>' 1.8, the output PNG will be a truecolor
+ <br><dt>&lsquo;<samp><span class="samp">--palette*</span></samp>&rsquo;<dd><a name="index-forcing-palette-output-47"></a>Starting from &lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; 1.8, the output PNG will be a truecolor
png when an external image is included, to avoid unnecessary delay and
quality reduction, and enable the EPS translator to draw on a
transparent background and outside of the boundingbox. This switch
-will force palette (256-color) output and make `<samp><span class="samp">dvipng</span></samp>' revert to
+will force palette (256-color) output and make &lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; revert to
the old behaviour, where included images were opaque and always
clipped to the boundingbox. This will also override the
-`<samp><span class="samp">--truecolor</span></samp>' switch if present.
+&lsquo;<samp><span class="samp">--truecolor</span></samp>&rsquo; switch if present.
- <br><dt>`<samp><span class="samp">--picky*</span></samp>'<dd><a name="index-no-erroneous-images-48"></a>No images are output when a warning occurs. Normally, dvipng will
+ <br><dt>&lsquo;<samp><span class="samp">--picky*</span></samp>&rsquo;<dd><a name="index-no-erroneous-images-48"></a>No images are output when a warning occurs. Normally, dvipng will
output an image in spite of a warning, but there may be something
missing in this image. One reason to use this option would be if you
have a more complete but slower fallback converter. Mainly, this is
@@ -673,89 +686,89 @@ useful for failed figure inclusion and unknown \special occurrences,
but warnings will also occur for missing or unknown color specs and
missing PK fonts.
- <br><dt>`<samp><span class="samp">--png*</span></samp>'<dd><a name="index-PNG-image-format-49"></a>The images are output in the PNG format. This is the default for the
-`<samp><span class="samp">dvipng</span></samp>' binary. See also the `<samp><span class="samp">--gif</span></samp>' option.
+ <br><dt>&lsquo;<samp><span class="samp">--png*</span></samp>&rsquo;<dd><a name="index-PNG-image-format-49"></a>The images are output in the PNG format. This is the default for the
+&lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; binary. See also the &lsquo;<samp><span class="samp">--gif</span></samp>&rsquo; option.
- <br><dt>`<samp><span class="samp">-pp </span><var>firstpage</var><span class="samp">-</span><var>lastpage</var></samp>'<dd><a name="index-page-range-50"></a>Print pages <var>firstpage</var> through <var>lastpage</var>; but not quite
-equivalent to `<samp><span class="samp">-p </span><var>firstpage</var><span class="samp"> -l </span><var>lastpage</var></samp>'. For example,
+ <br><dt>&lsquo;<samp><span class="samp">-pp </span><var>firstpage</var><span class="samp">-</span><var>lastpage</var></samp>&rsquo;<dd><a name="index-page-range-50"></a>Print pages <var>firstpage</var> through <var>lastpage</var>; but not quite
+equivalent to &lsquo;<samp><span class="samp">-p </span><var>firstpage</var><span class="samp"> -l </span><var>lastpage</var></samp>&rsquo;. For example,
when rendering a book, there may be several instances of a page in the
DVI file (one in <code>\frontmatter</code>, one in <code>\mainmatter</code>, and one
-in <code>\backmatter</code>). In case of several pages matching, `<samp><span class="samp">-pp
-</span><var>firstpage</var><span class="samp">-</span><var>lastpage</var></samp>' will render <em>all</em> pages that
-matches the specified range, while `<samp><span class="samp">-p </span><var>firstpage</var><span class="samp"> -l
-</span><var>lastpage</var></samp>' will render the pages from the <em>first</em> occurrence
+in <code>\backmatter</code>). In case of several pages matching, &lsquo;<samp><span class="samp">-pp
+</span><var>firstpage</var><span class="samp">-</span><var>lastpage</var></samp>&rsquo; will render <em>all</em> pages that
+matches the specified range, while &lsquo;<samp><span class="samp">-p </span><var>firstpage</var><span class="samp"> -l
+</span><var>lastpage</var></samp>&rsquo; will render the pages from the <em>first</em> occurrence
of <var>firstpage</var> to the <em>first</em> occurrence of <var>lastpage</var>.
This is the (undocumented) behaviour of dvips. In dvipng you can give
both kinds of options, in which case you get all pages that matches the
-range in `<samp><span class="samp">-pp</span></samp>' between the pages from `<samp><span class="samp">-p</span></samp>' to `<samp><span class="samp">-l</span></samp>'. Also
-multiple `<samp><span class="samp">-pp</span></samp>' options accumulate, unlike `<samp><span class="samp">-p</span></samp>' and `<samp><span class="samp">-l</span></samp>'.
-The `<samp><span class="samp">-</span></samp>' separator can also be `<samp><span class="samp">:</span></samp>'. Note that `<samp><span class="samp">-pp -1</span></samp>'
+range in &lsquo;<samp><span class="samp">-pp</span></samp>&rsquo; between the pages from &lsquo;<samp><span class="samp">-p</span></samp>&rsquo; to &lsquo;<samp><span class="samp">-l</span></samp>&rsquo;. Also
+multiple &lsquo;<samp><span class="samp">-pp</span></samp>&rsquo; options accumulate, unlike &lsquo;<samp><span class="samp">-p</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-l</span></samp>&rsquo;.
+The &lsquo;<samp><span class="samp">-</span></samp>&rsquo; separator can also be &lsquo;<samp><span class="samp">:</span></samp>&rsquo;. Note that &lsquo;<samp><span class="samp">-pp -1</span></samp>&rsquo;
will be interpreted as "all pages up to and including 1", if you want a
-page numbered -1 (only the table of contents, say) put `<samp><span class="samp">-pp -1--1</span></samp>',
-or more readable, `<samp><span class="samp">-pp -1:-1</span></samp>'.
+page numbered -1 (only the table of contents, say) put &lsquo;<samp><span class="samp">-pp -1--1</span></samp>&rsquo;,
+or more readable, &lsquo;<samp><span class="samp">-pp -1:-1</span></samp>&rsquo;.
- <br><dt>`<samp><span class="samp">-q*</span></samp>'<dd><a name="index-quiet-operation-51"></a><a name="index-silent-operation-52"></a><a name="index-warnings_002c-suppressing-53"></a>Run quietly. Don't chatter about pages converted, etc. to standard
+ <br><dt>&lsquo;<samp><span class="samp">-q*</span></samp>&rsquo;<dd><a name="index-quiet-operation-51"></a><a name="index-silent-operation-52"></a><a name="index-warnings_002c-suppressing-53"></a>Run quietly. Don't chatter about pages converted, etc. to standard
output; report no warnings (only errors) to standard error.
- <br><dt>`<samp><span class="samp">-Q </span><var>num</var></samp>'<dd><a name="index-antialiasing-levels_0040r_007b_002c-number-of_007d-54"></a><a name="index-quality-55"></a>Set the quality to <var>num</var>. That is, choose the number of antialiasing
+ <br><dt>&lsquo;<samp><span class="samp">-Q </span><var>num</var></samp>&rsquo;<dd><a name="index-antialiasing-levels_0040r_007b_002c-number-of_007d-54"></a><a name="index-quality-55"></a>Set the quality to <var>num</var>. That is, choose the number of antialiasing
levels for PK and T1lib rendering to be <var>num</var>*<var>num</var>+1. The default
value is 4 which gives 17 levels of antialiasing for antialiased fonts
from these two. If FreeType is available, its rendering is unaffected by
this option.
- <br><dt>`<samp><span class="samp">-r*</span></samp>'<dd><a name="index-reverse-pagination-56"></a>Toggle output of pages in reverse/forward order. By default, the first
+ <br><dt>&lsquo;<samp><span class="samp">-r*</span></samp>&rsquo;<dd><a name="index-reverse-pagination-56"></a>Toggle output of pages in reverse/forward order. By default, the first
page in the DVI is output first.
- <br><dt>`<samp><span class="samp">--strict*</span></samp>'<dd><a name="index-exit-on-erroneous-images-57"></a>The program exits when a warning occurs. Normally, dvipng will output
+ <br><dt>&lsquo;<samp><span class="samp">--strict*</span></samp>&rsquo;<dd><a name="index-exit-on-erroneous-images-57"></a>The program exits when a warning occurs. Normally, dvipng will output
an image in spite of a warning, but there may be something missing in
this image. One reason to use this option would be if you have a more
-complete but slower fallback converter. See the `<samp><span class="samp">--picky</span></samp>' option
+complete but slower fallback converter. See the &lsquo;<samp><span class="samp">--picky</span></samp>&rsquo; option
above for a list of when warnings occur.
- <br><dt>`<samp><span class="samp">-T </span><var>image_size</var></samp>'<dd>Set the image size to <var>image_size</var> which can be either of
-`<samp><span class="samp">bbox</span></samp>', `<samp><span class="samp">tight</span></samp>', or a comma-separated pair of dimensions
-<var>hsize</var>,<var>vsize</var> such as `<samp><span class="samp">.1in,.3cm</span></samp>'. The default is
-`<samp><span class="samp">bbox</span></samp>' which produces a PNG that includes all ink put on the page
+ <br><dt>&lsquo;<samp><span class="samp">-T </span><var>image_size</var></samp>&rsquo;<dd>Set the image size to <var>image_size</var> which can be either of
+&lsquo;<samp><span class="samp">bbox</span></samp>&rsquo;, &lsquo;<samp><span class="samp">tight</span></samp>&rsquo;, or a comma-separated pair of dimensions
+<var>hsize</var>,<var>vsize</var> such as &lsquo;<samp><span class="samp">.1in,.3cm</span></samp>&rsquo;. The default is
+&lsquo;<samp><span class="samp">bbox</span></samp>&rsquo; which produces a PNG that includes all ink put on the page
and in addition the DVI origin, located 1in from the top and 1in from
the left edge of the paper. This usually gives whitespace above and to
-the left in the produced image. The value `<samp><span class="samp">tight</span></samp>' will make dvipng
+the left in the produced image. The value &lsquo;<samp><span class="samp">tight</span></samp>&rsquo; will make dvipng
only include all ink put on the page, producing neat images.
<!-- (@pxref{papersize special}). -->
<!-- This option overrides any papersize special in the DVI file. -->
- <br><dt>`<samp><span class="samp">--t1lib*</span></samp>'<dd><a name="index-T1lib-font-rendering-58"></a>Enable/disable T1lib font rendering (default on). This option is
+ <br><dt>&lsquo;<samp><span class="samp">--t1lib*</span></samp>&rsquo;<dd><a name="index-T1lib-font-rendering-58"></a>Enable/disable T1lib font rendering (default on). This option is
available if the T1lib font library was present at compilation time. If
this is the case, dvipng will have direct support for PostScript Type1
-fonts internally, rather than using `<samp><span class="samp">gsftopk</span></samp>' for rendering the
+fonts internally, rather than using &lsquo;<samp><span class="samp">gsftopk</span></samp>&rsquo; for rendering the
fonts. If you have PostScript versions of Computer Modern installed,
there will be no need to generate bitmapped variants on disk of these.
Then, you can render images at different (and unusual) resolutions
without cluttering the disk with lots of bitmapped fonts. Note that if
you have both FreeType and T1lib on your system FreeType will be
preferred by dvipng, and if you for some reason rather want to use
-T1lib, give the option `<samp><span class="samp">--freetype0</span></samp>' (see above).
+T1lib, give the option &lsquo;<samp><span class="samp">--freetype0</span></samp>&rsquo; (see above).
- <br><dt>`<samp><span class="samp">--truecolor*</span></samp>'<dd><a name="index-truecolor-output-59"></a>This will make `<samp><span class="samp">dvipng</span></samp>' generate truecolor output. Note that
+ <br><dt>&lsquo;<samp><span class="samp">--truecolor*</span></samp>&rsquo;<dd><a name="index-truecolor-output-59"></a>This will make &lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; generate truecolor output. Note that
truecolor output is automatic if you include an external image in your
-DVI, e.g., via a PostScript special (i.e., the `<samp><span class="samp">graphics</span></samp>' or
-`<samp><span class="samp">graphicx</span></samp>' package). This switch is overridden by the
-`<samp><span class="samp">--palette</span></samp>' switch.
+DVI, e.g., via a PostScript special (i.e., the &lsquo;<samp><span class="samp">graphics</span></samp>&rsquo; or
+&lsquo;<samp><span class="samp">graphicx</span></samp>&rsquo; package). This switch is overridden by the
+&lsquo;<samp><span class="samp">--palette</span></samp>&rsquo; switch.
- <br><dt>`<samp><span class="samp">-v*</span></samp>'<dd>Enable verbose operation. This will currently indicate what fonts is
+ <br><dt>&lsquo;<samp><span class="samp">-v*</span></samp>&rsquo;<dd>Enable verbose operation. This will currently indicate what fonts is
used, in addition to the usual output.
- <br><dt>`<samp><span class="samp">-x </span><var>num</var></samp>'<dd><a name="index-magnification_002c-overriding-DVI-60"></a>Set the x magnification ratio to <var>num</var>/1000. Overrides
+ <br><dt>&lsquo;<samp><span class="samp">-x </span><var>num</var></samp>&rsquo;<dd><a name="index-magnification_002c-overriding-DVI-60"></a>Set the x magnification ratio to <var>num</var>/1000. Overrides
the magnification specified in the DVI file. Must be between 10 and
100000. It is recommended that you use standard magstep values (1095,
1200, 1440, 1728, 2074, 2488, 2986, and so on) to help reduce the total
number of PK files generated. <var>num</var> may be a real number, not an
integer, for increased precision.
- <br><dt>`<samp><span class="samp">-z </span><var>num</var></samp>'<dd><a name="index-compression-61"></a>Set the PNG compression level to <var>num</var>. This option is enabled if
-your `<samp><span class="samp">libgd</span></samp>' is new enough. The default compression level is 1,
+ <br><dt>&lsquo;<samp><span class="samp">-z </span><var>num</var></samp>&rsquo;<dd><a name="index-compression-61"></a>Set the PNG compression level to <var>num</var>. This option is enabled if
+your &lsquo;<samp><span class="samp">libgd</span></samp>&rsquo; is new enough. The default compression level is 1,
which selects maximum speed at the price of slightly larger PNGs. For an
-older `<samp><span class="samp">libgd</span></samp>', the hard-soldered value 5 is used. The include file
-`<samp><span class="samp">png.h</span></samp>' says
+older &lsquo;<samp><span class="samp">libgd</span></samp>&rsquo;, the hard-soldered value 5 is used. The include file
+&lsquo;<samp><span class="samp">png.h</span></samp>&rsquo; says
<blockquote>
Currently, valid values range from 0 - 9, corresponding directly to the
zlib compression levels 0 - 9 (0 - no compression, 9 - "maximal"
@@ -778,10 +791,10 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<h2 class="chapter">5 Graphics</h2>
-<p>`<samp><span class="samp">dvipng</span></samp>' attempts to handle graphics as included by the
-`<samp><span class="samp">graphicx</span></samp>' and `<samp><span class="samp">graphics</span></samp>' packages, without the need of
+<p>&lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; attempts to handle graphics as included by the
+&lsquo;<samp><span class="samp">graphicx</span></samp>&rsquo; and &lsquo;<samp><span class="samp">graphics</span></samp>&rsquo; packages, without the need of
specifying a driver to these packages. This means that it recognizes
-the encapsulated postscript inclusion meant for `<samp><span class="samp">dvips</span></samp>', but is
+the encapsulated postscript inclusion meant for &lsquo;<samp><span class="samp">dvips</span></samp>&rsquo;, but is
also able (from version 1.8) to include bitmapped graphics, see the
details below.
@@ -808,18 +821,18 @@ foreground on the PNG. Of course, if the image is to be cropped, that
is done. The included image will be a truecolor image, so for maximum
performance the output PNG will be in truecolor mode as well.
- <p>This conversion needs the `<samp><span class="samp">pngalpha</span></samp>' output device to be present
+ <p>This conversion needs the &lsquo;<samp><span class="samp">pngalpha</span></samp>&rsquo; output device to be present
in your copy of GhostScript. If that device is not present, or you use
-the `<samp><span class="samp">--palette</span></samp>' switch or request GIF output, the fallback is to
-use the `<samp><span class="samp">png16m</span></samp>' device to produce a cropped opaque image for
-inclusion. Other relevant switches are `<samp><span class="samp">--noghostscript</span></samp>' and
-`<samp><span class="samp">--nogssafer</span></samp>'. See <a href="#Option-details">Option details</a>.
+the &lsquo;<samp><span class="samp">--palette</span></samp>&rsquo; switch or request GIF output, the fallback is to
+use the &lsquo;<samp><span class="samp">png16m</span></samp>&rsquo; device to produce a cropped opaque image for
+inclusion. Other relevant switches are &lsquo;<samp><span class="samp">--noghostscript</span></samp>&rsquo; and
+&lsquo;<samp><span class="samp">--nogssafer</span></samp>&rsquo;. See <a href="#Option-details">Option details</a>.
<p><a name="index-PostScript-inclusion-problems-62"></a>The most common problem with including graphics is an incorrect
bounding box. Complain to whoever wrote the software that generated
the file if the bounding box is indeed incorrect. An adjusted
-boundingbox can be specified in the `<samp><span class="samp">\includegraphics</span></samp>' call, as
-in this example (using `<samp><span class="samp">graphicx</span></samp>'):
+boundingbox can be specified in the &lsquo;<samp><span class="samp">\includegraphics</span></samp>&rsquo; call, as
+in this example (using &lsquo;<samp><span class="samp">graphicx</span></samp>&rsquo;):
<pre class="example"> \includegraphics[bb=10 20 100 200]{imagename.eps}
</pre>
@@ -834,10 +847,10 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Graphics">Graphics</a>
<h3 class="section">5.2 Bitmapped graphics</h3>
<p>dvipng can include PNG, JPEG and GIF graphics. When including such
-images via `<samp><span class="samp">\includegraphics</span></samp>' you need to specify the bounding
+images via &lsquo;<samp><span class="samp">\includegraphics</span></samp>&rsquo; you need to specify the bounding
box since TeX itself cannot read them from the files in question.
-The bounding box size should be given as `<samp><span class="samp">0 0 w h</span></samp>' in pixels,
-e.g., if the file `<samp><span class="samp">imagename.png</span></samp>' is 300x400 pixels, the
+The bounding box size should be given as &lsquo;<samp><span class="samp">0 0 w h</span></samp>&rsquo; in pixels,
+e.g., if the file &lsquo;<samp><span class="samp">imagename.png</span></samp>&rsquo; is 300x400 pixels, the
inclusion would read
<pre class="example"> \includegraphics[bb=0 0 300 400]{imagename.png}
@@ -867,9 +880,10 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<h2 class="chapter">6 Color</h2>
-<p>To support color, dvipng recognizes a certain set of specials. These
-specials start with the keyword `<samp><span class="samp">color</span></samp>' or the keyword
-`<samp><span class="samp">background</span></samp>', followed by a color specification.
+<p>To support color, dvipng recognizes a certain set of specials as
+generated by the &lsquo;<samp><span class="samp">color</span></samp>&rsquo; and &lsquo;<samp><span class="samp">xcolor</span></samp>&rsquo; style files. These
+specials start with the keyword &lsquo;<samp><span class="samp">color</span></samp>&rsquo; or the keyword
+&lsquo;<samp><span class="samp">background</span></samp>&rsquo;, followed by a color specification.
<ul class="menu">
<li><a accesskey="1" href="#Color-specifications">Color specifications</a>
@@ -888,23 +902,23 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Color">Color</a>
<p><a name="index-color-specifications-63"></a>
The color specification supported by dvipng is by-value or by-name. The
-by-value spec starts with the name of a color model (one of `<samp><span class="samp">rgb</span></samp>',
-`<samp><span class="samp">hsb</span></samp>', `<samp><span class="samp">cmy</span></samp>', `<samp><span class="samp">cmyk</span></samp>', or `<samp><span class="samp">gray</span></samp>') followed by the
+by-value spec starts with the name of a color model (one of &lsquo;<samp><span class="samp">rgb</span></samp>&rsquo;,
+&lsquo;<samp><span class="samp">hsb</span></samp>&rsquo;, &lsquo;<samp><span class="samp">cmy</span></samp>&rsquo;, &lsquo;<samp><span class="samp">cmyk</span></samp>&rsquo;, or &lsquo;<samp><span class="samp">gray</span></samp>&rsquo;) followed by the
appropriate number of parameters. Thus, the color specification
-`<samp><span class="samp">rgb 0.3 0.4 0.5</span></samp>' would correspond to the color that is `<samp><span class="samp">0.3
-0.4 0.5</span></samp>' in its red, blue and green values. The color model used
-internally in dvipng is `<samp><span class="samp">RGB</span></samp>' (discretized to 256 levels), for
-details on the formulas used in conversion, see the `<samp><span class="samp">xcolor</span></samp>'
+&lsquo;<samp><span class="samp">rgb 0.3 0.4 0.5</span></samp>&rsquo; would correspond to the color that is &lsquo;<samp><span class="samp">0.3
+0.4 0.5</span></samp>&rsquo; in its red, blue and green values. The color model used
+internally in dvipng is &lsquo;<samp><span class="samp">RGB</span></samp>&rsquo; (discretized to 256 levels), for
+details on the formulas used in conversion, see the &lsquo;<samp><span class="samp">xcolor</span></samp>&rsquo;
documentation.
<p>By-name color specifications are single (case-dependent) words and are
-compared with color names defined in `<samp><span class="samp">dvipsnam.def</span></samp>' (from the
-`<samp><span class="samp">graphics</span></samp>' bundle), `<samp><span class="samp">svgnam.def</span></samp>' and `<samp><span class="samp">xcolor.sty</span></samp>' (from
-the `<samp><span class="samp">xcolor</span></samp>' bundle). See the `<samp><span class="samp">xcolor</span></samp>' documentation for a
+compared with color names defined in &lsquo;<samp><span class="samp">dvipsnam.def</span></samp>&rsquo; (from the
+&lsquo;<samp><span class="samp">graphics</span></samp>&rsquo; bundle), &lsquo;<samp><span class="samp">svgnam.def</span></samp>&rsquo; and &lsquo;<samp><span class="samp">xcolor.sty</span></samp>&rsquo; (from
+the &lsquo;<samp><span class="samp">xcolor</span></samp>&rsquo; bundle). See the &lsquo;<samp><span class="samp">xcolor</span></samp>&rsquo; documentation for a
list of names and the corresponding colors.
- <p>On the command-line, the name `<samp><span class="samp">Transparent</span></samp>' can also be used as
-an argument to `<samp><span class="samp">--bg</span></samp>' to choose transparent background.
+ <p>On the command-line, the name &lsquo;<samp><span class="samp">Transparent</span></samp>&rsquo; can also be used as
+an argument to &lsquo;<samp><span class="samp">--bg</span></samp>&rsquo; to choose transparent background.
See <a href="#Option-details">Option details</a>.
<div class="node">
@@ -917,25 +931,25 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Color">Color</a>
<h3 class="section">6.2 Color specials</h3>
-<p>We will describe `<samp><span class="samp">background</span></samp>' first, since it is the simplest. The
-`<samp><span class="samp">background</span></samp>' keyword must be followed by a color specification.
+<p>We will describe &lsquo;<samp><span class="samp">background</span></samp>&rsquo; first, since it is the simplest. The
+&lsquo;<samp><span class="samp">background</span></samp>&rsquo; keyword must be followed by a color specification.
That color specification is used as a fill color for the background. The
-last `<samp><span class="samp">background</span></samp>' special on a page is the one that gets used, and
+last &lsquo;<samp><span class="samp">background</span></samp>&rsquo; special on a page is the one that gets used, and
is used for the whole of the page image. (This is possible because the
prescan phase of dvipng notices all of the color specials so that the
appropriate information can be written out during the second phase.)
- <p>The `<samp><span class="samp">color</span></samp>' special itself has three forms. The first is just
-`<samp><span class="samp">color</span></samp>' followed by a color specification. In this case, the
+ <p>The &lsquo;<samp><span class="samp">color</span></samp>&rsquo; special itself has three forms. The first is just
+&lsquo;<samp><span class="samp">color</span></samp>&rsquo; followed by a color specification. In this case, the
current global color is set to that color; the color stack must be empty
when such a command is executed.
- <p>The second form is `<samp><span class="samp">color push</span></samp>' followed by a color specification.
+ <p>The second form is &lsquo;<samp><span class="samp">color push</span></samp>&rsquo; followed by a color specification.
This saves the current color on the color stack and sets the color to be
that given by the color specification. This is the most common way to
set a color.
- <p>The final form of the `<samp><span class="samp">color</span></samp>' special is just `<samp><span class="samp">color pop</span></samp>',
+ <p>The final form of the &lsquo;<samp><span class="samp">color</span></samp>&rsquo; special is just &lsquo;<samp><span class="samp">color pop</span></samp>&rsquo;,
with no color specification; this says to pop the color last pushed on
the color stack from the color stack and set the current color to be
that color.
@@ -1000,7 +1014,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Diagnosing-problems">Diagnosing proble
<h3 class="section">7.2 Debug options</h3>
-<p>The `<samp><span class="samp">-d</span></samp>' flag to dvipng helps in tracking down certain errors. The
+<p>The &lsquo;<samp><span class="samp">-d</span></samp>&rsquo; flag to dvipng helps in tracking down certain errors. The
parameter to this flag is an integer that tells what errors are
currently being tracked. To track a certain class of debug messages,
simply provide the appropriate number given below; if you wish to track
@@ -1055,7 +1069,7 @@ Longstreet, Bernhard Simon, Bob McElrath, Georg Schwarz, Jason Farmer,
Brian V. Smith, Samuel Hathaway, Thomas R. Shemanske, Stephen Gibson,
Christian Ridderstr&ouml;m, Ezra Peisach, William H Wheeler, Thomas
Klausner, Harald Koenig, Adrian Bunk, Kevin Smith, Jason Riedy,
-Wolfram Krause, and Reinhard Kotucha.
+Wolfram Krause, Reinhard Kotucha, and Takeshi Abe.
<div class="node">
<p><hr>
@@ -1068,26 +1082,25 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<h2 class="chapter">9 Copying</h2>
-<p>This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
+<p>This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
- <p>This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+ <p>This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
- <p>You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
+ <p>You should have received a copy of the GNU Lesser General Public
+License along with this program. If not, see
+&lt;http://www.gnu.org/licenses/&gt;.
<pre class="sp">
</pre>
-Copyright &copy; 2002-2006 Jan-&Aring;ke Larsson
+Copyright &copy; 2002-2008 Jan-&Aring;ke Larsson
<div class="node">
<p><hr>
@@ -1101,8 +1114,8 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<ul class="index-cp" compact>
<li><a href="#index-g_t_002ddSAFER-39">-dSAFER</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-absolute-page-number_002c-and-_0040samp_007b_002dl_007d-32">absolute page number, and `<samp><span class="samp">-l</span></samp>'</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-absolute-page-number_002c-and-_0040samp_007b_002dp_007d-46">absolute page number, and `<samp><span class="samp">-p</span></samp>'</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-absolute-page-number_002c-and-_0040samp_007b_002dl_007d-32">absolute page number, and &lsquo;<samp><span class="samp">-l</span></samp>&rsquo;</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-absolute-page-number_002c-and-_0040samp_007b_002dp_007d-46">absolute page number, and &lsquo;<samp><span class="samp">-p</span></samp>&rsquo;</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-antialiasing-levels_0040r_007b_002c-number-of_007d-54">antialiasing levels<span class="roman">, number of</span></a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-background-color-_0028option_0029-14">background color (option)</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-base-resolution_002c-setting-13">base resolution, setting</a>: <a href="#Option-details">Option details</a></li>
@@ -1148,8 +1161,8 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<li><a href="#index-page-range-50">page range</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-page_002c-first-printed-44">page, first printed</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-page_002c-last-printed-30">page, last printed</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-physical-page-number_002c-and-_0040samp_007b_002dl_007d-31">physical page number, and `<samp><span class="samp">-l</span></samp>'</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-physical-page-number_002c-and-_0040samp_007b_002dp_007d-45">physical page number, and `<samp><span class="samp">-p</span></samp>'</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-physical-page-number_002c-and-_0040samp_007b_002dl_007d-31">physical page number, and &lsquo;<samp><span class="samp">-l</span></samp>&rsquo;</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-physical-page-number_002c-and-_0040samp_007b_002dp_007d-45">physical page number, and &lsquo;<samp><span class="samp">-p</span></samp>&rsquo;</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-PNG-image-format-49">PNG image format</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-PostScript-inclusion-problems-62">PostScript inclusion problems</a>: <a href="#Encapsulated-PostScript">Encapsulated PostScript</a></li>
<li><a href="#index-problems-64">problems</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
diff --git a/Master/texmf/doc/dvipng/dvipng.pdf b/Master/texmf/doc/dvipng/dvipng.pdf
new file mode 100644
index 00000000000..019033d132d
--- /dev/null
+++ b/Master/texmf/doc/dvipng/dvipng.pdf
Binary files differ