For reference (for anyone stumbling upon this thread), I stumbled upon a solution using dvips and imagemagick:
(1) Convert the dvi to a ps: dvips -E <dvifile>
(2) Convert the ps to a PNG: convert -density 300 -resample 300 <psfile> <pngfile>.PNG
While the resulting images are too large on the screen, they *print* out just fine (which is the goal)---about 12 pt tall and very smooth. The print quality is much better than dvipng. Of course, the conversion process is much slower (for print, we don't really care about speed so that's OK).
Unfortunately, I'm at a loss to explain why this method works so I don't know if it can be improved...
On Tue, 10 Aug 2010 16:34:15 +0200
Post by Jan-Ã
ke LarssonPost by U AvalosHowever, I'm not really a LaTeX person. How would I go about making PDF fragments?
Since I usually produce PDFs through dvips->ps2pdf I am probably not the
best person to answer this. I'd assume producing single-page EPS files
and shoving them through eps2pdf?
Post by U AvalosFYI, I'm in an emacs environment---I type in org-mode (a text file, basically), then emacs takes care of exporting embedded LaTeX fragments to PNGs (using a hack of the preview-latex package, I believe).
A (suboptimal) solution would be to produce high-resolution PNGs
(-D 1200) and shrink them to the appropriate size. This would probably
look terrible onscreen but better on the printer. I don't know enough
details about the surrounding system you use to be more specific.
Post by U AvalosAlso, FYI. Just a hunch but it appears that dvipng may now be used for other purposes other than quick-and-dirty previews in emacs. (Ex: dvipng's own webpage says that it's used in wikipedia). It may be time to add an option for smooth images... or maybe another program can easily provide the same functionality...
I wrote that. And part of the WikiMedia code. Problem is, PNGs are pixel
images, there is just no way around that. The solution would be to use a
vector-based format.
Best
/JÅ
_______________________________________________
Dvipng mailing list
http://lists.nongnu.org/mailman/listinfo/dvipng
--
--Thanks!
Uriel