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