644 |
What happens when @LaTeX{} is finished depends on the configuration of |
What happens when @LaTeX{} is finished depends on the configuration of |
645 |
@code{preview-image-type}. What to do for each of the various settings |
@code{preview-image-type}. What to do for each of the various settings |
646 |
is specified in the variable @code{preview-image-creators}. The options |
is specified in the variable @code{preview-image-creators}. The options |
647 |
to pass into GhostScript and what Emacs image type to use is specified |
to pass into Ghostscript and what Emacs image type to use is specified |
648 |
in @code{preview-gs-image-type-alist}. |
in @code{preview-gs-image-type-alist}. |
649 |
|
|
650 |
@code{preview-image-type} defaults to @code{png}. For this to work, |
@code{preview-image-type} defaults to @code{png}. For this to work, |
651 |
your version of GhostScript needs to support the @option{png16m} device. |
your version of Ghostscript needs to support the @option{png16m} device. |
652 |
If you are experiencing problems here, you might want to reconfigure |
If you are experiencing problems here, you might want to reconfigure |
653 |
@code{gs-image-type-alist} or @code{preview-image-type}. Reconfiguring |
@code{gs-image-type-alist} or @code{preview-image-type}. Reconfiguring |
654 |
@code{preview-image-creators} is only necessary for adding additional |
@code{preview-image-creators} is only necessary for adding additional |
655 |
image types. |
image types. |
656 |
|
|
657 |
Most devices make @previewlatex{} start up a single GhostScript process |
Most devices make @previewlatex{} start up a single Ghostscript process |
658 |
for the entire preview run (as opposed to one per image) and feed it |
for the entire preview run (as opposed to one per image) and feed it |
659 |
either sections of a @acronym{PDF} file (if PDF@LaTeX{} was used), or |
either sections of a @acronym{PDF} file (if PDF@LaTeX{} was used), or |
660 |
(after running Dvips) sections of a single PostScript file or separate |
(after running Dvips) sections of a single PostScript file or separate |
670 |
Another noteworthy setting of @code{preview-image-type} is |
Another noteworthy setting of @code{preview-image-type} is |
671 |
@samp{dvipng}: in this case, the @samp{dvipng}@pindex{dvipng} program |
@samp{dvipng}: in this case, the @samp{dvipng}@pindex{dvipng} program |
672 |
will get run on @acronym{DVI} output (see below for @acronym{PDF}). |
will get run on @acronym{DVI} output (see below for @acronym{PDF}). |
673 |
This is in general much faster than Dvips and GhostScript. In that |
This is in general much faster than Dvips and Ghostscript. In that |
674 |
case, the option |
case, the option |
675 |
|
|
676 |
@item preview-dvipng-command |
@item preview-dvipng-command |
680 |
images get produced (@samp{dvipng} might be configured for other image |
images get produced (@samp{dvipng} might be configured for other image |
681 |
types as well). You will notice that @code{preview-gs-image-type-alist} |
types as well). You will notice that @code{preview-gs-image-type-alist} |
682 |
contains an entry for @code{dvipng}: this actually has nothing to with |
contains an entry for @code{dvipng}: this actually has nothing to with |
683 |
@samp{dvipng} itself but specifies the image type and GhostScript device |
@samp{dvipng} itself but specifies the image type and Ghostscript device |
684 |
option to use when @samp{dvipng} can't be used. This will obviously be |
option to use when @samp{dvipng} can't be used. This will obviously be |
685 |
the case for @acronym{PDF} output by PDF@LaTeX{}, but it will also happen |
the case for @acronym{PDF} output by PDF@LaTeX{}, but it will also happen |
686 |
if the @acronym{DVI} file contains PostScript specials in which case the |
if the @acronym{DVI} file contains PostScript specials in which case the |
687 |
affected images will get run through Dvips and GhostScript once |
affected images will get run through Dvips and Ghostscript once |
688 |
@samp{dvipng} finishes. |
@samp{dvipng} finishes. |
689 |
|
|
690 |
@item preview-gs-options |
@item preview-gs-options |
691 |
Most interesting to the user perhaps is the setting of this variable. |
Most interesting to the user perhaps is the setting of this variable. |
692 |
It contains the default antialiasing settings @option{-dTextAlphaBits=4} |
It contains the default antialiasing settings @option{-dTextAlphaBits=4} |
693 |
and @option{-dGraphicsAlphaBits=4}. Decreasing those values to 2 @w{or |
and @option{-dGraphicsAlphaBits=4}. Decreasing those values to 2 @w{or |
694 |
1} might increase GhostScript's performance if you find it lacking. |
1} might increase Ghostscript's performance if you find it lacking. |
695 |
@end vtable |
@end vtable |
696 |
|
|
697 |
Running and feeding GhostScript from @previewlatex{} happens |
Running and feeding Ghostscript from @previewlatex{} happens |
698 |
asynchronously again: you can resume editing while the images arrive. |
asynchronously again: you can resume editing while the images arrive. |
699 |
While those pretty pictures filling in the blanks on screen tend to |
While those pretty pictures filling in the blanks on screen tend to |
700 |
make one marvel instead of work, rendering the non-displayed images |
make one marvel instead of work, rendering the non-displayed images |