|
|
01b6260 |
I. CHANGES FROM UPSTREAM
|
|
|
01b6260 |
|
|
|
b022cd1 |
Latexmk almost works out of the box. Two changes have been made to
|
|
|
b022cd1 |
conform to Fedora conventions. First, the default DVI, PostScript, and
|
|
|
b022cd1 |
PDF previewers have been changed to 'xdg-open'; see below for more
|
|
|
b022cd1 |
information. Second, the site-wide configuration file is
|
|
|
b022cd1 |
/etc/latexmk.conf only, as opposed to the list of names searched by the
|
|
|
b022cd1 |
original latexmk.
|
|
|
01b6260 |
|
|
|
01b6260 |
II. PREVIEWERS
|
|
|
01b6260 |
|
|
|
01b6260 |
The command xdg-open views a file using the viewer selected by the user
|
|
|
01b6260 |
for that type of file. See the xdg-mime(1) command for more
|
|
|
01b6260 |
information. Unfortunately, the use of xdg-open precludes the updating
|
|
|
01b6260 |
of the previewing application, as latexmk cannot know which application
|
|
|
01b6260 |
is doing the previewing. It also breaks viewing of landscape documents
|
|
|
01b6260 |
for some previewers. For best results, you should customize latexmk for
|
|
|
01b6260 |
the particular previewers you intend to use. Following are the settings
|
|
|
01b6260 |
for some commonly used previewers, to be placed in the site, user, or
|
|
|
01b6260 |
project configuration file. Note that an update method of 1 means that
|
|
|
01b6260 |
there is no way for latexmk to cause the program to refresh; you have to
|
|
|
01b6260 |
take some action of your own to see changes to the document.
|
|
|
01b6260 |
|
|
|
01b6260 |
A. DVI PREVIEWERS
|
|
|
01b6260 |
|
|
|
01b6260 |
1. xdvi
|
|
|
01b6260 |
|
|
|
01b6260 |
$dvi_previewer = 'start xdvi';
|
|
|
01b6260 |
$dvi_previewer_landscape = 'start xdvi -paper usr';
|
|
|
01b6260 |
$dvi_update_method = 2;
|
|
|
01b6260 |
|
|
|
01b6260 |
2. pxdvi
|
|
|
01b6260 |
|
|
|
01b6260 |
$dvi_previewer = 'start pxdvi';
|
|
|
01b6260 |
$dvi_previewer_landscape = 'start pxdvi -paper usr';
|
|
|
01b6260 |
$dvi_update_method = 2;
|
|
|
01b6260 |
|
|
|
01b6260 |
3. kdvi
|
|
|
01b6260 |
|
|
|
01b6260 |
$dvi_previewer = 'start kdvi';
|
|
|
01b6260 |
$dvi_previewer_landscape = 'start kdvi';
|
|
|
01b6260 |
$dvi_update_method = 0;
|
|
|
01b6260 |
|
|
|
01b6260 |
B. POSTSCRIPT PREVIEWERS
|
|
|
01b6260 |
|
|
|
01b6260 |
1. gv
|
|
|
01b6260 |
|
|
|
01b6260 |
$ps_previewer = 'start gv -watch';
|
|
|
01b6260 |
$ps_previewer_landscape = 'start gv -swap -watch';
|
|
|
01b6260 |
$ps_update_method = 0;
|
|
|
01b6260 |
|
|
|
01b6260 |
2. evince
|
|
|
01b6260 |
|
|
|
77cd2c9 |
$ps_previewer = 'start evince -w';
|
|
|
77cd2c9 |
$ps_previewer_landscape = 'start evince -w';
|
|
|
77cd2c9 |
$ps_update_method = 0;
|
|
|
01b6260 |
|
|
|
01b6260 |
3. kghostview
|
|
|
01b6260 |
|
|
|
01b6260 |
$ps_previewer = 'start kghostview';
|
|
|
01b6260 |
$ps_previewer_landscape = 'start kghostview --orientation=landscape';
|
|
|
01b6260 |
$ps_update_method = 1;
|
|
|
01b6260 |
|
|
|
01b6260 |
If you can remember to set the "Watch File" option in
|
|
|
01b6260 |
kghostview, then instead set:
|
|
|
01b6260 |
|
|
|
01b6260 |
$ps_update_method = 0;
|
|
|
01b6260 |
|
|
|
01b6260 |
Unfortunately, there appears to be no command line argument to
|
|
|
01b6260 |
set the "Watch File" option.
|
|
|
01b6260 |
|
|
|
01b6260 |
C. PDF PREVIEWERS
|
|
|
01b6260 |
|
|
|
01b6260 |
1. gv
|
|
|
01b6260 |
|
|
|
01b6260 |
$pdf_previewer = 'start gv -watch';
|
|
|
01b6260 |
$pdf_update_method = 0;
|
|
|
01b6260 |
|
|
|
01b6260 |
2. evince
|
|
|
01b6260 |
|
|
|
77cd2c9 |
$pdf_previewer = 'start evince -w';
|
|
|
77cd2c9 |
$pdf_update_method = 0;
|
|
|
01b6260 |
|
|
|
01b6260 |
3. kghostview
|
|
|
01b6260 |
|
|
|
01b6260 |
$pdf_previewer = 'start kghostview';
|
|
|
01b6260 |
$pdf_update_method = 1;
|
|
|
01b6260 |
|
|
|
01b6260 |
See the remark on the "Watch File" option above.
|
|
|
01b6260 |
|
|
|
01b6260 |
4. kpdf
|
|
|
01b6260 |
|
|
|
01b6260 |
$pdf_previewer = 'start kpdf;
|
|
|
01b6260 |
$pdf_update_method = 1;
|
|
|
01b6260 |
|
|
|
01b6260 |
The "Watch File" remark above for kghostview applies to kpdf also.
|
|
|
01b6260 |
|
|
|
01b6260 |
5. acroread
|
|
|
01b6260 |
|
|
|
01b6260 |
$pdf_previewer = 'start acroread';
|
|
|
01b6260 |
$pdf_update_method = 1;
|