~matttbe/ubuntu/raring/latexmk/v4.35

« back to all changes in this revision

Viewing changes to example_rcfiles/sweave_latexmkrc

  • Committer: Matthieu Baerts
  • Date: 2012-12-27 23:54:58 UTC
  • mfrom: (1.1.3)
  • Revision ID: matttbe@gmail.com-20121227235458-l2v4p8s52h0kjfwt
* New upstream release. (LP: #1094164)
* Upstream ChangeLog:
  - 4.35 dated 11 November 2012.
    * Corrects bug that fls file is incorrectly parsed when using a
      combination of cygwin and a native MS-Windows TeX program.
    * Corrects bug that old dependency information was retained when using
      the --gg option. 
  - 4.34 dated 1 October 2012.
    * Corrects non-optimality that latexmk may do extra runs of (pdf)latex
      when a file is read and written during a run of (pdf)latex, but the
      file is only read after being written. 
  - 4.33c dated 19 August 2012.
    * Corrects infinite loop in error messages when the maximum number of
      passes through latex/pdflatex is exceeded. 
  - 4.33b dated 12 August 2012.
    * Documentation improvements, including documentation of the many
      options for the (pdf)latex programs that are supported by latexmk. 
  - 4.33a dated 8 August 2012.
    * Fix slowness of v. 4.33 under Cygwin. 
  - 4.33 dated 6 August 2012.
    * Improve operation under MSWindows: substitute "\" for "/" for
      directory separator in command lines, deal consistently with
      directory separator, which can be both "\" and "/".
    * Correct some bugs that interfered with use of auxiliary directory
      and output directory for files generated by (pdf)latex, especially
      with MiKTeX.
    * Fix problems caused because in the log and fls files MiKTeX writes
      absolute path for many filenames at and below current directory, and
      is inconsistent in its use of "/" vs. "\" as directory separator.
    * Add $dvipdf_silent_switch configuration variable.
    * Improve handling of errors in (pdf)latex; previously latexmk would
      give up processing in some situations continuing is correct.
    * Documentation corrections/improvements.
    * Reduce number of warnings in silent operation. 
  - 4.31 dated 30 March 2012.
    * Implement most options allowed by latex and pdflatex.
    * Add -M -MP and -MF options, like gcc.
    * Recorder option is now on by default.
    * Add -latexoption=... option to latexmk.
    * Add -xelatex option for use of xelatex.
    * Change OS-X default for pdf previewer command to open.
    * Command specification string can start with "include routine" to
      invoke a Perl subroutine instead of an external cmd.
    * Viewers are detached by default. (The start keyword is now normally
      superfluous in command specifications.)
    * Keyword nostart added in command specification.
    * Add configuration variables $compiling_cmd, $success_cmd,
      $failure_cmd. These specify external commands (if any) to be
      executed during latexmk's continuous preview mode at the following
      points: $compiling_cmd at the start of compilation, $success_cmd at
      the end of a successful compilation, and $failure_cmd at the end of
      an unsuccessful compilation. They can be used, for example, to show
      the progress of compilation by setting the titles of editor and/or
      previewer windows.
    * If aux and/or output directories are specified but don't exist, make
      them.
    * Remove excessive repetition of tests for changes of source files
      (improves performance of latexmk in some situations).
    * Documentation improvements.
    * Minor bug corrections. 
  - 4.30a dated 9 December 2011.
    * Fix use of bibtex so that it works correctly when $aux_dir and/or
      $out_dir are set.
    * Use OS-dependent search path separator when when manipulating
      TEXINPUTS, etc. Then use of -output-directory and -aux-directory
      options should work correctly on MSWin systems.
    * Documentation of $search_path_separator variable.
    * Correct some bugs in v. 4.30 that manifested themselves under MSWin
      especially with Cygwin. 
  - 4.29a dated 7 December 2011.
    * Latexmk now works with the feynmp package and mpost, provided a
      suitable custom dependency is defined. (See the example latexmkrc
      fragment mpost_latexmkrc in the example_rcfiles directory in the
      latexmk distribution.)
    * If output directory is set, arrange that dvips can find files there.
    * In searching for cus-deps that can make a missing file, look in
      $out_dir. 
  - 4.28c dated 1 December 2011.
    * When biber doesn't find the bib file, latexmk treats this as a
      warning rather than a fatal error, so further processing can
      continue normally.
    * Latexmk now parses correctly error messages from biber v. 0.9.7. 
  - 4.28a dated 28 November 2011.
    * Correct handling of situations where some file(s) needed by bibtex
      (or biber) don't exist. Previously latexmk incorrectly stopped with
      an error message instead of continuing.
    * Correct duplicate invocations of dvipdf, ps2pdf 
  - 4.27a dated 10 October 2011.
    * Deal with problem that making of ps or pdf file via a temporary file
      fails if the command making it has no %D placeholder
    * Add png to list of graphics extensions for pdflatex
    * Add -norc option that prevents auto reading of rc files.
    * Options -aux-directory -output-directory like those of (pdf)latex,
      to set the output directories of (pdf)latex. (-aux-directory is
      MiKTeX only). Corresponding configuration variables, and
      placeholders for command specification. 
  - 4.26 dated 9 August 2011.
    * Make compatible with biber 0.9.4.
    * Fix some bugs in error reporting. 
  - 4.25 dated 7 July 2011.
    * Fix to evade apparent cygwin bug that prevented system rc-file from
      being read.
    * Diagnostic for unreadable rc-file.
    * Add deps output file to target part of dependency information. 
* debian/patches:
  - Refreshed
* debian/control:
  - Replaced gs-common by ghostscript as Suggested package Closes: #649700
* Previous changes by Antonio Ospite (4.24-1.2) Closes: #693126 and by
  Jari Aalto (4.24-1.1) Closes: #668926

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is to allow the use of Sweave with latexmk, and in addition to
 
2
#    make synctex work properly with it.  
 
3
# SEE THE IMPORTANT NOTES below.
 
4
#
 
5
# Sweave (http://www.stat.uni-muenchen.de/~leisch/Sweave/) is a tool
 
6
# that allows to embed the R code for complete data analyses in latex
 
7
# documents.  The user edits a file with an extension like .Rnw, and
 
8
# the .tex file is generated from this.
 
9
#
 
10
# Four problems are solved by the code below:
 
11
# 1. Generate the .tex file automatically.
 
12
# 2. Arrange not to re-run unmodified chunks of R code.  (A pure
 
13
#    optimization.)
 
14
# 3. Fix the execution environment for (pdf)latex.
 
15
# 4. Deal with synctex: If the user wants to use synctex
 
16
#    (www.tug.org/TUGboat/tb29-3/tb93laurens.pdf) to synchronize the
 
17
#    pdf file with the source file, by default synctex does the
 
18
#    synchronization with the generated .tex file, not the original 
 
19
#    source file.  Postprocessing of the .synctex.gz file is necessary
 
20
#    to fix this.
 
21
#
 
22
# The following version was worked out and  tested by a user (thanks
 
23
# to Brian Beitzel) on MSWindows.  It will need at least one change to
 
24
# work on UNIX-like operating systems (which include Linux and OS-X).
 
25
 
 
26
# N.B. ===> IMPORTANT NOTES <===
 
27
#
 
28
# 1. The patchDVI package for R needs to be installed from R-Forge, as
 
29
#    follows:
 
30
#
 
31
#  install.packages("patchDVI", repos="http://R-Forge.R-project.org")
 
32
#
 
33
# 2. In all Sweave (.Rnw) documents, the following lines must be included:
 
34
#
 
35
#         \usepackage{Sweave}
 
36
#         \SweaveOpts{concordance=TRUE}
 
37
 
 
38
 
 
39
# Fix the pdflatex command to run Sweave first, and to postprocess the
 
40
#  .synctex.gz file:
 
41
# !!!!! THIS IS THE VERSION FOR MS-WINDOWS, with && as a command
 
42
# separator
 
43
$pdflatex = "cmd /c "
 
44
       . "Rscript -e \"library(cacheSweave); setCacheDir(getwd()); "
 
45
       . "Sweave('%S', driver=cacheSweaveDriver)\""
 
46
       . " && R CMD pdflatex -interaction=nonstopmode -synctex=1 %O %B.tex"
 
47
       . " && Rscript -e "
 
48
       . "\"library('patchDVI');patchSynctex('%B.synctex.gz')\"";
 
49
#
 
50
# !!!TO FIX THIS FOR Linux/OS-X/UNIX, try uncommenting the following:
 
51
#  (this version hasn't been tested).
 
52
#$pdflatex = "Rscript -e \"library(cacheSweave); setCacheDir(getwd()); "
 
53
#       . "Sweave('%S', driver=cacheSweaveDriver)\""
 
54
#       . " ; R CMD pdflatex -interaction=nonstopmode -synctex=1 %O %B.tex"
 
55
#       . " ; Rscript -e "
 
56
#       . "\"library('patchDVI');patchSynctex('%B.synctex.gz')\"";
 
57