| 1 |
dvipng |
| 2 |
****** |
| 3 |
|
| 4 |
This program makes PNG and/or GIF graphics from DVI files as obtained |
| 5 |
from TeX and its relatives. |
| 6 |
|
| 7 |
If GIF support is enabled, GIF output is chosen by using the ‘dvigif’ |
| 8 |
binary or with the ‘--gif’ option. |
| 9 |
|
| 10 |
It is intended to produce anti-aliased screen-resolution images as |
| 11 |
fast as is possible. The target audience is people who need to generate |
| 12 |
and regenerate many images again and again. The primary target is the |
| 13 |
preview-latex (X)Emacs package, a package to preview formulas from |
| 14 |
within (X)Emacs. Yes, you get to see your formulas in the (X)Emacs |
| 15 |
buffer, see <http://www.gnu.org/software/auctex/preview-latex.html>. |
| 16 |
|
| 17 |
It is also used in MediaWiki, the software behind Wikipedia and many |
| 18 |
other wikis out there. Dvipng is used to render mathematical formulae |
| 19 |
(in image mode) from version 1.8.0 of MediaWiki, see |
| 20 |
<http://www.mediawiki.org>. |
| 21 |
|
| 22 |
Other applications may also benefit, like web applications as |
| 23 |
latex2html and WYSIWYG editors like LyX. |
| 24 |
|
| 25 |
Benefits of dvipng |
| 26 |
================== |
| 27 |
|
| 28 |
The benefits of ‘dvipng’/‘dvigif’ include |
| 29 |
|
| 30 |
• Speed. It is a very fast bitmap-rendering code for DVI files, |
| 31 |
which makes it suitable for generating large amounts of images |
| 32 |
on-the-fly, as needed in preview-latex, WeBWorK and others. |
| 33 |
|
| 34 |
• It does not read the postamble, so it can be started before TeX |
| 35 |
finishes. There is a ‘--follow’ switch that makes dvipng wait at |
| 36 |
end-of-file for further output, unless it finds the POST marker |
| 37 |
that indicates the end of the DVI. |
| 38 |
|
| 39 |
• Interactive query of options. dvipng can read options |
| 40 |
interactively through stdin, and all options are usable. It is |
| 41 |
even possible to change the input file through this interface. |
| 42 |
|
| 43 |
• Supports PK, VF, PostScript Type1, and TrueType fonts, subfonts |
| 44 |
(i.e., as used in CJK-LaTeX), color specials, and inclusion of |
| 45 |
PostScript, PNG, JPEG or GIF images. |
| 46 |
|
| 47 |
• and more... |
| 48 |
|
| 49 |
Installation |
| 50 |
============ |
| 51 |
|
| 52 |
Read ‘INSTALL’, included in the distribution. |
| 53 |
|
| 54 |
Usage |
| 55 |
===== |
| 56 |
|
| 57 |
To use dvipng at its simplest, simply type |
| 58 |
|
| 59 |
dvipng foo |
| 60 |
|
| 61 |
where ‘foo.dvi’ is the output of TeX that you want to convert to PNG |
| 62 |
format. If there are four pages in ‘foo.dvi’, those pages will be |
| 63 |
output as ‘foo1.png’, ‘foo2.png’, ‘foo3.png’, and ‘foo4.png’, |
| 64 |
respectively. |
| 65 |
|
| 66 |
Many options are available (see the info manual). For a brief |
| 67 |
summary of available options, just type |
| 68 |
|
| 69 |
dvipng --help |
| 70 |
|
| 71 |
Availability |
| 72 |
============ |
| 73 |
|
| 74 |
The dvipng package is available at Savannah, the GNU project site. |
| 75 |
Since dvipng is not part of the GNU project, although released under the |
| 76 |
GNU GPL, the web address is |
| 77 |
<http://savannah.nongnu.org/projects/dvipng>. Instructions for |
| 78 |
anonymous CVS access can be found at |
| 79 |
<http://savannah.nongnu.org/cvs/?group=dvipng>. |
| 80 |
|
| 81 |
Contacts |
| 82 |
======== |
| 83 |
|
| 84 |
Bug reports should be sent to <[email protected]>. |
| 85 |
|
| 86 |
Questions, suggestions for new features, pleas for help, and/or |
| 87 |
praise should go to <[email protected]>. For more information on this |
| 88 |
mailing list, send a message with just the word 'help' as subject or |
| 89 |
body to <[email protected]> or look at |
| 90 |
<http://lists.nongnu.org/mailman/listinfo/dvipng>. |
| 91 |
|
| 92 |
Offers to support further development will be appreciated. For |
| 93 |
developer access, ask on <[email protected]>. |
| 94 |
|
| 95 |
Copying |
| 96 |
======= |
| 97 |
|
| 98 |
This program is released under the GNU Lesser General Public License |
| 99 |
version 3, see the COPYING file in the dvipng distribution or |
| 100 |
<http://www.gnu.org/licenses/>. |
| 101 |
|
| 102 |
Copyright © 2002-2014 Jan-Åke Larsson |
| 103 |
|
| 104 |
Todo |
| 105 |
==== |
| 106 |
|
| 107 |
• Use gs interpreter library for speed and possibly for |
| 108 |
functionality. |
| 109 |
|
| 110 |
• Add more color models for xcolor compatibility |
| 111 |
|
| 112 |
• Enable a named pipe as DVI |
| 113 |
|
| 114 |
• Further speed improvements. |
| 115 |
|
| 116 |
• Other output specials and source specials. |
| 117 |
|
| 118 |
• Clean internal structures. Overhaul file handling. |
| 119 |
|
| 120 |
• Fix the SELFAUTO stuff at runtime rather than at build time |
| 121 |
|