summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/dvipng/dvipng.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/dvipng/dvipng.html')
-rw-r--r--Master/texmf/doc/dvipng/dvipng.html274
1 files changed, 168 insertions, 106 deletions
diff --git a/Master/texmf/doc/dvipng/dvipng.html b/Master/texmf/doc/dvipng/dvipng.html
index 692fffa865a..bcbc45d8bc7 100644
--- a/Master/texmf/doc/dvipng/dvipng.html
+++ b/Master/texmf/doc/dvipng/dvipng.html
@@ -44,6 +44,7 @@
<ul>
<li><a href="#Encapsulated-PostScript">5.1 Encapsulated PostScript</a>
<li><a href="#Bitmapped-graphics">5.2 Bitmapped graphics</a>
+<li><a href="#Raw-PostScript">5.3 Raw PostScript</a>
</li></ul>
<li><a name="toc_Color" href="#Color">6 Color</a>
<ul>
@@ -76,7 +77,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.13
+ <p>This file documents dvipng version 1.14
<p>Corrections or perhaps rewrites of sections are <em>very welcome</em>.
@@ -402,13 +403,13 @@ be output as <samp><span class="file">foo1.png</span></samp>, <samp><span class=
<samp><span class="file">foo4.png</span></samp>, respectively.
<p>If you have enabled the PostScript font support (via FreeType or T1lib),
-fonts will be rendered as they are needed. Otherwise, if you use fonts
-that have not been used on your system before, they may be automatically
-generated; this process can take a few minutes, so progress reports
-appear by default. The next time the same font is used, it will have
-been saved on disk, so rendering will go much faster. (If dvipng tries
-to endlessly generate the same fonts over and over again, something is
-wrong. See <a href="kpathsea.html#Unable-to-generate-fonts">Unable to generate fonts</a>.)
+fonts will be rendered as they are needed. Otherwise, dvipng will use
+bitmapped (PK) fonts, and if you use PK fonts that have not been used on
+your system before, they may be automatically generated; this process
+can take a few minutes, so progress reports appear by default. The next
+time the same font is used, it will have been saved on disk, so
+rendering will go much faster. (If dvipng tries to endlessly generate
+the same fonts over and over again, something is wrong. See <a href="kpathsea.html#Unable-to-generate-fonts">Unable to generate fonts</a>.)
<p>Many options are available (see the next section). For a brief summary
of available options, just type
@@ -449,7 +450,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Command_002dline-options">Command-line
<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 &lsquo;<samp><span class="samp">--help</span></samp>&rsquo; option.
-<pre class="example"> This is ./dvipng 1.13 Copyright 2002-2010 Jan-Ake Larsson
+<pre class="example"> This is ./dvipng 1.14 Copyright 2002-2010 Jan-Ake Larsson
Usage: ./dvipng [OPTION]... FILENAME[.dvi]
Options are chosen to be similar to dvips' options where possible:
@@ -473,12 +474,13 @@ dvipng with no arguments or with the standard &lsquo;<samp><span class="samp">--
--dvinum* Use TeX page numbers in output filenames
-fg s Foreground color (TeX-style color)
--follow* Wait for data at end-of-file
- --freetype* FreeType font rendering (default on)
+ --freetype* FreeType font rendering (preferred, 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
+ --nogs* Don't use ghostscript for PostScript specials
--nogssafer* Don't use -dSAFER in ghostscript calls
+ --norawps* Don't convert raw PostScript specials
--palette* Force palette output
--picky When a warning occurs, don't output image
--png Output PNG images (dvipng default)
@@ -486,6 +488,7 @@ dvipng with no arguments or with the standard &lsquo;<samp><span class="samp">--
--t1lib* T1lib font rendering (default on)
--truecolor* Truecolor output
-Q # Quality (T1lib and PK subsampling)
+ --width* Output the image width on stdout
-z # PNG compression level
# = number f = file s = string * = suffix, '0' to turn off
@@ -525,9 +528,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>&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>&lsquo;<samp><span class="samp">--bdpi </span><var>num</var></samp>&rsquo;<dd><a name="index-base-resolution_002c-setting-13"></a>This option only has an effect when using bitmapped (PK) fonts. The
+option sets 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>&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
@@ -593,12 +598,12 @@ 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 &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. If you for some reason would want to use
-T1lib rendering, use this option.
+Modern installed, there will be no need to generate bitmapped (PK)
+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. If you for some reason would want
+to use T1lib rendering, use this option.
<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
@@ -627,19 +632,19 @@ compare with the TeX &lsquo;<samp><span class="samp">\count0</span></samp>&rsquo
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>&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 &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>&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>This option only has an effect when using bitmapped (PK) fonts. 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 &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>&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.
+This option only has an effect when using bitmapped (PK) fonts. It turns
+off automatic PK font generation (<samp><span class="file">mktexpk</span></samp>).
- <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>&lsquo;<samp><span class="samp">--nogs*</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">--nogs0</span></samp>&rsquo; turns the call back on.
<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
@@ -648,20 +653,25 @@ GhostScript interpreter is run with the option &lsquo;<samp><span class="samp">-
as deletefile, to prevent possibly malicious PostScript programs from
having any effect.
- <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
+ <br><dt>&lsquo;<samp><span class="samp">--norawps*</span></samp>&rsquo;<dd><a name="index-PostScript_002c-turning-off-raw-PostScript-specials-40"></a>Some packages generate raw PostScript specials, even non-rendering such
+specials. This switch turns off the internal call to GhostScript
+intended to display these raw PostScript specials. &lsquo;<samp><span class="samp">--norawps0</span></samp>&rsquo;
+turns the call back on.
+
+ <br><dt>&lsquo;<samp><span class="samp">-o </span><var>name</var></samp>&rsquo;<dd><a name="index-output_002c-redirecting-41"></a><a name="index-standard-output_002c-output-to-42"></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>&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
+ <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-43"></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>&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
+ <br><dt>&lsquo;<samp><span class="samp">-p [=]</span><var>num</var></samp>&rsquo;<dd><a name="index-first-page-printed-44"></a><a name="index-page_002c-first-printed-45"></a><a name="index-physical-page-number_002c-and-_0040samp_007b_002dp_007d-46"></a><a name="index-absolute-page-number_002c-and-_0040samp_007b_002dp_007d-47"></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 &lsquo;<samp><span class="samp">-l</span></samp>&rsquo; option, if
specified) is treated as a physical (absolute) page number, rather than
@@ -669,16 +679,15 @@ a value to compare with the TeX &lsquo;<samp><span class="samp">\count0</span></
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>&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 &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
-&lsquo;<samp><span class="samp">--truecolor</span></samp>&rsquo; switch if present.
+ <br><dt>&lsquo;<samp><span class="samp">--palette*</span></samp>&rsquo;<dd><a name="index-forcing-palette-output-48"></a>When an external image is included, &lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; will automatically
+switch to truecolor mode, 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 &lsquo;<samp><span class="samp">dvipng</span></samp>&rsquo; revert to opaque
+clipped image inclusion. This will also override the &lsquo;<samp><span class="samp">--truecolor</span></samp>&rsquo;
+switch if present.
- <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
+ <br><dt>&lsquo;<samp><span class="samp">--picky*</span></samp>&rsquo;<dd><a name="index-no-erroneous-images-49"></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
@@ -686,10 +695,10 @@ 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>&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
+ <br><dt>&lsquo;<samp><span class="samp">--png*</span></samp>&rsquo;<dd><a name="index-PNG-image-format-50"></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>&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
+ <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-51"></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
@@ -707,19 +716,19 @@ 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 &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>&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
+ <br><dt>&lsquo;<samp><span class="samp">-q*</span></samp>&rsquo;<dd><a name="index-quiet-operation-52"></a><a name="index-silent-operation-53"></a><a name="index-warnings_002c-suppressing-54"></a>Run quietly. Don't chatter about pages converted, etc. to standard
output; report no warnings (only errors) to standard error.
- <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>&lsquo;<samp><span class="samp">-Q </span><var>num</var></samp>&rsquo;<dd><a name="index-antialiasing-levels_0040r_007b_002c-number-of_007d-55"></a><a name="index-quality-56"></a>Set the quality to <var>num</var>. That is, choose the number of antialiasing
+levels for bitmapped fonts (PK) and fonts rendered using T1lib, 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>&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
+ <br><dt>&lsquo;<samp><span class="samp">-r*</span></samp>&rsquo;<dd><a name="index-reverse-pagination-57"></a>Toggle output of pages in reverse/forward order. By default, the first
page in the DVI is output first.
- <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
+ <br><dt>&lsquo;<samp><span class="samp">--strict*</span></samp>&rsquo;<dd><a name="index-exit-on-erroneous-images-58"></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 &lsquo;<samp><span class="samp">--picky</span></samp>&rsquo; option
@@ -736,19 +745,19 @@ 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>&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 &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 &lsquo;<samp><span class="samp">--freetype0</span></samp>&rsquo; (see above).
-
- <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
+ <br><dt>&lsquo;<samp><span class="samp">--t1lib*</span></samp>&rsquo;<dd><a name="index-T1lib-font-rendering-59"></a>Enable 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 &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
+&lsquo;<samp><span class="samp">--freetype0</span></samp>&rsquo; (see above).
+
+ <br><dt>&lsquo;<samp><span class="samp">--truecolor*</span></samp>&rsquo;<dd><a name="index-truecolor-output-60"></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 &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
@@ -757,17 +766,19 @@ DVI, e.g., via a PostScript special (i.e., the &lsquo;<samp><span class="samp">g
<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>&lsquo;<samp><span class="samp">--width*</span></samp>&rsquo;<dd><a name="index-width-reporting-60"></a>Report the width of the image. See also &lsquo;<samp><span class="samp">--height</span></samp>&rsquo; and
+ <br><dt>&lsquo;<samp><span class="samp">--width*</span></samp>&rsquo;<dd><a name="index-width-reporting-61"></a>Report the width of the image. See also &lsquo;<samp><span class="samp">--height</span></samp>&rsquo; and
&lsquo;<samp><span class="samp">--depth</span></samp>&rsquo;.
- <br><dt>&lsquo;<samp><span class="samp">-x </span><var>num</var></samp>&rsquo;<dd><a name="index-magnification_002c-overriding-DVI-61"></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>&lsquo;<samp><span class="samp">-x </span><var>num</var></samp>&rsquo;<dd><a name="index-magnification_002c-overriding-DVI-62"></a>This option is deprecated; it should not be used. It is much better to
+select the output resolution directly with the &lsquo;<samp><span class="samp">-D</span></samp>&rsquo; option. This
+option sets the magnification ratio to <var>num</var>/1000 and
+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>&lsquo;<samp><span class="samp">-z </span><var>num</var></samp>&rsquo;<dd><a name="index-compression-62"></a>Set the PNG compression level to <var>num</var>. This option is enabled if
+ <br><dt>&lsquo;<samp><span class="samp">-z </span><var>num</var></samp>&rsquo;<dd><a name="index-compression-63"></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 &lsquo;<samp><span class="samp">libgd</span></samp>&rsquo;, the hard-soldered value 5 is used. The include file
@@ -798,12 +809,14 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
&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 &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.
+also able (from version 1.8) to include bitmapped graphics. It also
+tries to handle some of the raw PostScript that is output from various
+packages. Some of the possibilities and problems are mentioned below.
<ul class="menu">
<li><a accesskey="1" href="#Encapsulated-PostScript">Encapsulated PostScript</a>: An internal call to GhostScript
<li><a accesskey="2" href="#Bitmapped-graphics">Bitmapped graphics</a>: PNG, JPEG and GIF
+<li><a accesskey="3" href="#Raw-PostScript">Raw PostScript</a>: Ignore or give to GhostScript
</ul>
<div class="node">
@@ -831,7 +844,7 @@ use the &lsquo;<samp><span class="samp">png16m</span></samp>&rsquo; device to pr
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-63"></a>The most common problem with including graphics is an incorrect
+ <p><a name="index-PostScript-inclusion-problems-64"></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 &lsquo;<samp><span class="samp">\includegraphics</span></samp>&rsquo; call, as
@@ -842,6 +855,7 @@ in this example (using &lsquo;<samp><span class="samp">graphicx</span></samp>&rs
<div class="node">
<a name="Bitmapped-graphics"></a>
<p><hr>
+Next:&nbsp;<a rel="next" accesskey="n" href="#Raw-PostScript">Raw PostScript</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Encapsulated-PostScript">Encapsulated PostScript</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Graphics">Graphics</a>
@@ -873,6 +887,53 @@ wide:
<pre class="example"> \includegraphics[bb=0 0 300 400,witdh=1.5in]{imagename.png}
</pre>
<div class="node">
+<a name="Raw-PostScript"></a>
+<p><hr>
+Previous:&nbsp;<a rel="previous" accesskey="p" href="#Bitmapped-graphics">Bitmapped graphics</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="#Graphics">Graphics</a>
+
+</div>
+
+<h3 class="section">5.3 Raw PostScript</h3>
+
+<p>dvipng attempts to handle raw PostScript. Rendering raw PostScript
+specials is done on top of the page by including a transparent image
+generated by the &lsquo;<samp><span class="samp">pngalpha</span></samp>&rsquo; device in GhostScript (automatically
+selecting &lsquo;<samp><span class="samp">truecolor</span></samp>&rsquo; mode in dvipng).
+
+ <p>Included PostScript headers are respected, and if the header
+&lsquo;<samp><span class="samp">tex.pro</span></samp>&rsquo; is included, dvipng also throws in &lsquo;<samp><span class="samp">color.pro</span></samp>&rsquo; and
+&lsquo;<samp><span class="samp">special.pro</span></samp>&rsquo;. The package &lsquo;<samp><span class="samp">xcolor</span></samp>&rsquo; includes its own headers
+with color names, and this is not only kept as a PostScript header, but
+is also read and interpreted by dvipng itself. An attempt is also made
+to respect the PGF header. The non-rendering specials from
+&lsquo;<samp><span class="samp">hyperref</span></samp>&rsquo; are handled via some heuristics and do not give an
+error.
+
+ <p>Really rendering and moving things with raw PostScript specials is more
+troublesome. The \rotatebox macro serves as a good example. The dvips
+driver of the graphicx package surrounds DVI glyphs with PostScript code
+so that after conversion by dvips, the glyphs (now themselves in
+PostScript) will be rotated in the desired way. dvipng does not handle
+this, at present. An attempt has been made to handle the rendering
+specials output by PGF (tikz), and also PSTricks. Some things work, but
+others do not. This is especially clear when mixing PostScript and DVI
+rendering commands such as glyphs. dvipng cannot at present detect if
+PostScript code moves &lsquo;<samp><span class="samp">currentpoint</span></samp>&rsquo; or rotates the frame since
+GhostScript does not return such information. A recommendation would be
+to produce images from these packages as EPS files and include them into
+your document in the standard manner.
+
+ <p>Another way to handle this would be to use a slower fallback (with dvips
+and gs, for example). If you want to disable raw PostScript handling in
+dvipng, use the switch &lsquo;<samp><span class="samp">--norawps</span></samp>&rsquo;. This switch turns off the
+internal call to GhostScript intended to display these raw PostScript
+specials. Further, when dvipng encounters raw PostScript and the gs call
+is turned off, it gives a warning. It is now possible to use the switch
+&lsquo;<samp><span class="samp">--picky</span></samp>&rsquo; to disable page rendering of pages with warnings, and use
+the slower fallback for these pages.
+
+<div class="node">
<a name="Color"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Diagnosing-problems">Diagnosing problems</a>,
@@ -903,7 +964,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Color">Color</a>
<h3 class="section">6.1 Color specifications</h3>
-<p><a name="index-color-specifications-64"></a>
+<p><a name="index-color-specifications-65"></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 &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
@@ -971,7 +1032,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<h2 class="chapter">7 Diagnosing problems</h2>
-<p><a name="index-problems-65"></a><a name="index-trouble-66"></a><a name="index-debugging-67"></a>
+<p><a name="index-problems-66"></a><a name="index-trouble-67"></a><a name="index-debugging-68"></a>
You've gone through all the trouble of installing dvipng, carefully read
all the instructions in this manual, and still can't get something to
work. The following sections provide some helpful hints if you find
@@ -1154,25 +1215,25 @@ 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 &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-absolute-page-number_002c-and-_0040samp_007b_002dp_007d-47">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-55">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>
<li><a href="#index-baseline-reporting-17">baseline reporting</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-color-specifications-64">color specifications</a>: <a href="#Color-specifications">Color specifications</a></li>
+<li><a href="#index-color-specifications-65">color specifications</a>: <a href="#Color-specifications">Color specifications</a></li>
<li><a href="#index-command_002dline-options-5">command-line options</a>: <a href="#Command_002dline-options">Command-line options</a></li>
<li><a href="#index-compilation-2">compilation</a>: <a href="#Installation">Installation</a></li>
-<li><a href="#index-compression-62">compression</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-compression-63">compression</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-configuration_002c-of-dvipng-1">configuration, of dvipng</a>: <a href="#Installation">Installation</a></li>
<li><a href="#index-dark-fonts-23">dark fonts</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-debugging-67">debugging</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
+<li><a href="#index-debugging-68">debugging</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
<li><a href="#index-debugging-15">debugging</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-depth-reporting-18">depth reporting</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-exit-on-erroneous-images-57">exit on erroneous images</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-first-page-printed-43">first page printed</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-exit-on-erroneous-images-58">exit on erroneous images</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-first-page-printed-44">first page printed</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-follow-mode-20">follow mode</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-font-generation_002c-avoiding-35">font generation, avoiding</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-forcing-palette-output-47">forcing palette output</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-forcing-palette-output-48">forcing palette output</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-foreground-color-_0028option_0029-19">foreground color (option)</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-FreeType-font-rendering-21">FreeType font rendering</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-fuzzy-images-25">fuzzy images</a>: <a href="#Option-details">Option details</a></li>
@@ -1185,38 +1246,39 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<li><a href="#index-invoking-dvipng-4">invoking dvipng</a>: <a href="#Basic-usage">Basic usage</a></li>
<li><a href="#index-last-page-printed-29">last page printed</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-light-fonts-24">light fonts</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-magnification_002c-overriding-DVI-61">magnification, overriding DVI</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-magnification_002c-overriding-DVI-62">magnification, overriding DVI</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-Metafont-mode_002c-specifying-34">Metafont mode, specifying</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-mktexpk_0040r_007b_002c-avoiding_007d-36"><code>mktexpk</code><span class="roman">, avoiding</span></a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-mode-name_002c-specifying-33">mode name, specifying</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-no-erroneous-images-48">no erroneous images</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-offset-pages-42">offset pages</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-no-erroneous-images-49">no erroneous images</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-offset-pages-43">offset pages</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-option_002c-details-of-8">option, details of</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-options_002c-dvipng-6">options, dvipng</a>: <a href="#Command_002dline-options">Command-line options</a></li>
<li><a href="#index-options_002c-reading-from-standard-input-9">options, reading from standard input</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-options_002c-summary-7">options, summary</a>: <a href="#Option-summary">Option summary</a></li>
<li><a href="#index-output-resolution_002c-setting-16">output resolution, setting</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-output_002c-redirecting-40">output, redirecting</a>: <a href="#Option-details">Option details</a></li>
-<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-output_002c-redirecting-41">output, redirecting</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-page-range-51">page range</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-page_002c-first-printed-45">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 &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-63">PostScript inclusion problems</a>: <a href="#Encapsulated-PostScript">Encapsulated PostScript</a></li>
-<li><a href="#index-problems-65">problems</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
-<li><a href="#index-quality-55">quality</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-quiet-operation-51">quiet operation</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-reverse-pagination-56">reverse pagination</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-silent-operation-52">silent operation</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-physical-page-number_002c-and-_0040samp_007b_002dp_007d-46">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-50">PNG image format</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-PostScript-inclusion-problems-64">PostScript inclusion problems</a>: <a href="#Encapsulated-PostScript">Encapsulated PostScript</a></li>
+<li><a href="#index-PostScript_002c-turning-off-raw-PostScript-specials-40">PostScript, turning off raw PostScript specials</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-problems-66">problems</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
+<li><a href="#index-quality-56">quality</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-quiet-operation-52">quiet operation</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-reverse-pagination-57">reverse pagination</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-silent-operation-53">silent operation</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-standard-input_002c-reading-options-from-10">standard input, reading options from</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-standard-output_002c-output-to-41">standard output, output to</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-T1lib-font-rendering-58">T1lib font rendering</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-standard-output_002c-output-to-42">standard output, output to</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-T1lib-font-rendering-59">T1lib font rendering</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-transparent-border-fallback-color-12">transparent border fallback color</a>: <a href="#Option-details">Option details</a></li>
<li><a href="#index-transparent-border-width-11">transparent border width</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-trouble-66">trouble</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
-<li><a href="#index-truecolor-output-59">truecolor output</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-warnings_002c-suppressing-53">warnings, suppressing</a>: <a href="#Option-details">Option details</a></li>
-<li><a href="#index-width-reporting-60">width reporting</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-trouble-67">trouble</a>: <a href="#Diagnosing-problems">Diagnosing problems</a></li>
+<li><a href="#index-truecolor-output-60">truecolor output</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-warnings_002c-suppressing-54">warnings, suppressing</a>: <a href="#Option-details">Option details</a></li>
+<li><a href="#index-width-reporting-61">width reporting</a>: <a href="#Option-details">Option details</a></li>
</ul></body></html>