summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-12 00:21:46 +0000
committerKarl Berry <karl@freefriends.org>2011-08-12 00:21:46 +0000
commit4ef16cc33e3975ee384eb75c8c120d53c402ff3a (patch)
tree5bc6eb4ebfa26a2990d8d450e13adb462d3ecec1
parent1d0f670384327d7898abef21822d0fbf113349e6 (diff)
latexmk 4.26 (11aug11)
git-svn-id: svn://tug.org/texlive/trunk@23503 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/latexmk/latexmk.pl58
-rw-r--r--Master/texmf-dist/doc/support/latexmk/CHANGES4
-rw-r--r--Master/texmf-dist/doc/support/latexmk/INSTALL2
-rw-r--r--Master/texmf-dist/doc/support/latexmk/README7
-rw-r--r--Master/texmf-dist/doc/support/latexmk/latexmk.pdfbin97578 -> 100945 bytes
-rw-r--r--Master/texmf-dist/doc/support/latexmk/latexmk.txt770
-rwxr-xr-xMaster/texmf-dist/scripts/latexmk/latexmk.pl58
-rw-r--r--Master/texmf/doc/man/man1/latexmk.14
-rw-r--r--Master/texmf/doc/man/man1/latexmk.man1.pdfbin109529 -> 109643 bytes
-rw-r--r--Master/texmf/doc/man/man1/thumbpdf.170
-rw-r--r--Master/texmf/doc/man/man1/thumbpdf.man1.pdfbin6081 -> 6770 bytes
11 files changed, 512 insertions, 461 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/latexmk/latexmk.pl b/Build/source/texk/texlive/linked_scripts/latexmk/latexmk.pl
index 17aef439834..d0a41d5d76e 100755
--- a/Build/source/texk/texlive/linked_scripts/latexmk/latexmk.pl
+++ b/Build/source/texk/texlive/linked_scripts/latexmk/latexmk.pl
@@ -107,8 +107,8 @@ use warnings;
$my_name = 'latexmk';
$My_name = 'Latexmk';
-$version_num = '4.25';
-$version_details = "$My_name, John Collins, 7 July 2011";
+$version_num = '4.26';
+$version_details = "$My_name, John Collins, 9 August 2011";
use Config;
@@ -177,6 +177,8 @@ else {
##
## Modification log from 1 Jan 2011 onwards in detail
##
+## 9 Aug 2011, John Collins Fix bug in error reporting by check_biber_log
+## Handle log file from biber 0.9.4
## 7 Jul 2011, John Collins Fix process_rc_file to evade cygwin bug.
## Version 4.25
## 6 Jul 2011, John Collins Diagnostic for unreadable rc-file
@@ -2936,8 +2938,11 @@ sub view_file_via_temporary {
sub check_biber_log {
# Check for biber warnings:
# Usage: check_biber_log( base_of_biber_run[, \@biber_source )
- # return 0: OK, 1: biber warnings, 2: biber errors,
- # 3: could not open .blg file.
+ # return 0: OK;
+ # 1: biber warnings;
+ # 2: biber errors;
+ # 3: could not open .blg file;
+ # 4: failed to find one or more source files;
# 10: only error is missing \citation commands.
# Side effect: add source files @biber_source
my $base = $_[0];
@@ -2968,6 +2973,7 @@ sub check_biber_log {
}
elsif ( /> INFO - Found .* '([^']+)'\s*$/
|| /> INFO - Found '([^']+)'\s*$/
+ || /> INFO - Reading '([^']+)'\s*$/
|| /> INFO - Reading (.*)$/
|| /> INFO - Processing .* file '([^']+)' .*$/
) {
@@ -2978,16 +2984,16 @@ sub check_biber_log {
}
close $log_file;
- my $bibret = &find_file_list1( $Pbiber_source, $Pbiber_source,
- '', \@BIBINPUTS );
+ my @not_found = &find_file_list1( $Pbiber_source, $Pbiber_source,
+ '', \@BIBINPUTS );
@$Pbiber_source = uniqs( @$Pbiber_source );
- if ($bibret == 0) {
+ if ( $#not_found < 0) {
warn "$My_name: Found biber source file(s) [@$Pbiber_source]\n"
unless $silent;
}
else {
- warn "$My_name: Failed to find one or more biber source files ",
- "in [@$Pbiber_source]\n";
+ show_array( "$My_name: Failed to find one or more biber source files:",
+ @not_found );
if ($force_mode) {
warn "==== Force_mode is on, so I will continue. ",
"But there may be problems ===\n";
@@ -2997,7 +3003,7 @@ sub check_biber_log {
#$failure_msg = 'Failed to find one or more biber source files';
#warn "$My_name: Failed to find one or more biber source files\n";
}
- return 3;
+ return 4;
}
# print "$My_name: #Biber errors = $error_count, warning messages = $warning_count,\n ",
# "missing citation messages = $missing_citations, no_citations = $no_citations\n";
@@ -3747,18 +3753,18 @@ sub parse_aux {
warn "$My_name: No .bib files listed in .aux file '$aux_file' \n",
return 2;
}
- my $bibret = &find_file_list1( $Pbib_files, $Pbib_files,
- '.bib', \@BIBINPUTS );
+ my @not_found = &find_file_list1( $Pbib_files, $Pbib_files,
+ '.bib', \@BIBINPUTS );
@$Pbib_files = uniqs( @$Pbib_files );
&find_file_list1( $Pbst_files, $Pbst_files, '.bst' );
@$Pbst_files = uniqs( @$Pbst_files );
- if ($bibret == 0) {
- warn "$My_name: Found bibliography file(s) [@$Pbib_files]\n"
+ if ( $#not_found < 0) {
+ warn "$My_name: Found bibliography file(s) [@$Pbib_files]\n"
unless $silent;
}
else {
- warn "$My_name: Failed to find one or more bibliography files ",
- "in [@$Pbib_files]\n";
+ show_array( "$My_name: Failed to find one or more bibliography files ",
+ @not_found );
if ($force_mode) {
warn "==== Force_mode is on, so I will continue. ",
"But there may be problems ===\n";
@@ -5409,7 +5415,12 @@ sub rdb_run1 {
if ($diagnostics);
rdb_ensure_file( $rule, $source );
}
- if ($retcode == 3) {
+ if ($retcode == 4) {
+ $$Plast_result = 2;
+ $$Plast_message = "Could not find all biber source files for '$$Pbase'";
+ push @warnings, "Not all biber source files found for '$$Pbase'";
+ }
+ elsif ($retcode == 3) {
$$Plast_result = 2;
$$Plast_message = "Could not open biber log file for '$$Pbase'";
push @warnings, $$Plast_message;
@@ -6620,11 +6631,9 @@ sub find_file_list1 {
# Modified version of find_file_list that doesn't die.
# Given output and input arrays of filenames, a file suffix, and a path,
# fill the output array with full filenames
- # Return a status code:
- # Retcode = 0 on success
- # Retocde = 1 if at least one file was not found
- # Usage: find_file_list1( ref_to_output_file_array,
- # ref_to_input_file_array,
+ # Return array of not-found files.
+ # Usage: find_file_list1( ref_to_output_file_array,
+ # ref_to_input_file_array,
# suffix,
# ref_to_array_search_path
# )
@@ -6633,6 +6642,7 @@ sub find_file_list1 {
my $ref_input = $_[1];
my $suffix = $_[2];
my $ref_search = $_[3];
+ my @not_found = ();
#?? show_array( "=====find_file_list1. Suffix: '$suffix'\n Source:", @$ref_input );
#?? show_array( " Bibinputs:", @$ref_search );
@@ -6646,13 +6656,13 @@ sub find_file_list1 {
push @return_list, $tmp_file;
}
if ( $find_retcode != 0 ) {
- $retcode = 1;
+ push @not_found, $file.$suffix;
}
}
@$ref_output = @return_list;
#?? show_array( " Output", @$ref_output );
#?? foreach (@$ref_output) { if ( /\/\// ) { print " ====== double slash in '$_'\n"; } }
- return $retcode;
+ return @not_found;
} #END find_file_list1
#************************************************************
diff --git a/Master/texmf-dist/doc/support/latexmk/CHANGES b/Master/texmf-dist/doc/support/latexmk/CHANGES
index 79579a9c885..0d4660bf493 100644
--- a/Master/texmf-dist/doc/support/latexmk/CHANGES
+++ b/Master/texmf-dist/doc/support/latexmk/CHANGES
@@ -263,3 +263,7 @@ From v. 4.24 to v. 4.25
Diagnostic for unreadable rc-file.
Add deps output file to target part of dependency information
+From v. 4.25 to v. 4.26
+ Make compatible with biber 0.9.4.
+ Fix some bugs in error reporting.
+
diff --git a/Master/texmf-dist/doc/support/latexmk/INSTALL b/Master/texmf-dist/doc/support/latexmk/INSTALL
index 2a8d7deb3a0..23328a15393 100644
--- a/Master/texmf-dist/doc/support/latexmk/INSTALL
+++ b/Master/texmf-dist/doc/support/latexmk/INSTALL
@@ -1,6 +1,6 @@
INSTALLING latexmk
==================
- (Version 4.25, 7 July 2011)
+ (Version 4.26, 9 August 2011)
John Collins
Physics Department
diff --git a/Master/texmf-dist/doc/support/latexmk/README b/Master/texmf-dist/doc/support/latexmk/README
index 4600297c863..5e6492c1941 100644
--- a/Master/texmf-dist/doc/support/latexmk/README
+++ b/Master/texmf-dist/doc/support/latexmk/README
@@ -1,5 +1,5 @@
-Latexmk, version 4.25, 7 July 2011
-----------------------------------
+Latexmk, version 4.26, 9 August 2011
+------------------------------------
Latexmk completely automates the process of generating a LaTeX
document. Essentially, it is a highly specialized cousin of the
@@ -92,7 +92,8 @@ NOTES:-
John Collins
---------------------------- "latexmk -h" ----------------------------
-Latexmk 4.25: Automatic LaTeX document generation routine
+===========I am /usr/local/lib/latexmk/LatexMk
+Latexmk 4.26: Automatic LaTeX document generation routine
Usage: latexmk [latexmk_options] [filename ...]
diff --git a/Master/texmf-dist/doc/support/latexmk/latexmk.pdf b/Master/texmf-dist/doc/support/latexmk/latexmk.pdf
index 4c14c86c4ad..b2d327eb1a1 100644
--- a/Master/texmf-dist/doc/support/latexmk/latexmk.pdf
+++ b/Master/texmf-dist/doc/support/latexmk/latexmk.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/support/latexmk/latexmk.txt b/Master/texmf-dist/doc/support/latexmk/latexmk.txt
index c918915149c..fb45ee11931 100644
--- a/Master/texmf-dist/doc/support/latexmk/latexmk.txt
+++ b/Master/texmf-dist/doc/support/latexmk/latexmk.txt
@@ -1,4 +1,9 @@
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
NAME
latexmk - generate LaTeX document
@@ -53,15 +58,10 @@ DESCRIPTION
ply edit a file and, when the changes are written to disk, latexmk com-
pletely automates the cycle of updating the .dvi (and possibly the .ps
and .pdf) file, and refreshing the previewer's display. It's not quite
- WYSIWYG, but usefully close.
-
- For other previewers, the user may have to manually make the previewer
- update its display, which can be (some versions of xdvi and gsview) as
- simple as forcing a redraw of its display.
- 1
+ 9 August 2011 1
@@ -70,6 +70,12 @@ DESCRIPTION
LATEXMK(1L) LATEXMK(1L)
+ WYSIWYG, but usefully close.
+
+ For other previewers, the user may have to manually make the previewer
+ update its display, which can be (some versions of xdvi and gsview) as
+ simple as forcing a redraw of its display.
+
Latexmk has the ability to print a banner in gray diagonally across
each page when making the postscript file. It can also, if needed,
call an external program to do other postprocessing on the generated
@@ -119,23 +125,22 @@ LATEXMK OPTIONS AND ARGUMENTS ON COMMAND LINE
When the source file uses bbl files for bibliography, run bibtex
or biber as needed to regenerate the bbl files.
- This property can also be configured by setting the $bibtex_use
- variable to 2 in a configuration file
-
- -bibtex-
- Never run bibtex or biber.
+ 9 August 2011 2
- 7 July 2011 2
+LATEXMK(1L) LATEXMK(1L)
-LATEXMK(1L) LATEXMK(1L)
+ This property can also be configured by setting the $bibtex_use
+ variable to 2 in a configuration file
+ -bibtex-
+ Never run bibtex or biber.
A common use for this option is when a document comes from an
external source, complete with its bbl file(s), and the user
@@ -165,8 +170,8 @@ LATEXMK(1L) LATEXMK(1L)
-bm <message>
A banner message to print diagonally across each page when con-
verting the dvi file to postscript. The message must be a sin-
- gle argument on the command line so be careful with quoting
- spaces and such.
+ gle argument on the command line so be careful with quoting spa-
+ ces and such.
Note that if the -bm option is specified, the -ps option is
assumed.
@@ -184,18 +189,11 @@ LATEXMK(1L) LATEXMK(1L)
message. The default is 220.0 which is just right for 5 charac-
ter messages.
- -commands
- List the commands used by latexmk for processing files, and then
- exit.
- -c Clean up (remove) all regeneratable files generated by latex and
- bibtex or biber except dvi, postscript and pdf. These files are
- a combination of log files, aux files, latexmk's database file
- of source file information, and those with extensions specified
- 7 July 2011 3
+ 9 August 2011 3
@@ -204,6 +202,14 @@ LATEXMK(1L) LATEXMK(1L)
LATEXMK(1L) LATEXMK(1L)
+ -commands
+ List the commands used by latexmk for processing files, and then
+ exit.
+
+ -c Clean up (remove) all regeneratable files generated by latex and
+ bibtex or biber except dvi, postscript and pdf. These files are
+ a combination of log files, aux files, latexmk's database file
+ of source file information, and those with extensions specified
in the @generated_exts configuration variable. In addition,
files with extensions by the $clean_ext configuration variable
are removed.
@@ -250,27 +256,27 @@ LATEXMK(1L) LATEXMK(1L)
latexmk -bm DRAFT
Note that if the -d option is specified, the -ps option is
- assumed.
- -deps Show a list of dependent files after processing. This is in the
- form of a dependency list of the form used by the make program,
- and it is therefore suitable for use in a Makefile. It gives an
- overall view of the files without listing intermediate files, as
- well as latexmk can determine them.
- By default the list of dependent files is sent to stdout (i.e.,
+ 9 August 2011 4
- 7 July 2011 4
+LATEXMK(1L) LATEXMK(1L)
-LATEXMK(1L) LATEXMK(1L)
+ assumed.
+ -deps Show a list of dependent files after processing. This is in the
+ form of a dependency list of the form used by the make program,
+ and it is therefore suitable for use in a Makefile. It gives an
+ overall view of the files without listing intermediate files, as
+ well as latexmk can determine them.
+ By default the list of dependent files is sent to stdout (i.e.,
normally to the screen unless you've redirected latexmk's out-
put). But you can set the filename where the list is sent by
the -deps-out= option.
@@ -317,19 +323,9 @@ LATEXMK(1L) LATEXMK(1L)
-dvi Generate dvi version of document.
- -dvi- Turn off generation of dvi version of document. (This may get
- overridden, if some other file is made (e.g., a .ps file) that
- is generated from the dvi file, or if no generated file at all
- is requested.)
-
- -e <code>
- Execute the specified initialization code before processing.
- The code is Perl code of the same form as is used in latexmk's
- initialization files -- for more details, see the information on
-
- 7 July 2011 5
+ 9 August 2011 5
@@ -338,6 +334,15 @@ LATEXMK(1L) LATEXMK(1L)
LATEXMK(1L) LATEXMK(1L)
+ -dvi- Turn off generation of dvi version of document. (This may get
+ overridden, if some other file is made (e.g., a .ps file) that
+ is generated from the dvi file, or if no generated file at all
+ is requested.)
+
+ -e <code>
+ Execute the specified initialization code before processing.
+ The code is Perl code of the same form as is used in latexmk's
+ initialization files -- for more details, see the information on
the -r option, and the section about "Configuration/initializa-
tion (RC) files". The code is typically a sequence of assign-
ment statements separated by semicolons.
@@ -383,28 +388,28 @@ LATEXMK(1L) LATEXMK(1L)
no further processing is carried out.
-f- Turn off the forced processing-past-errors such as is set by the
- -f option. This could be used to override a setting in a con-
- figuration file.
- -g Force latexmk to process document fully, even under situations
- where latexmk would normally decide that no changes in the
- source files have occurred since the previous run. This option
- is useful, for example, if you change some options and wish to
- reprocess the files.
- -g- Turn off -g.
+ 9 August 2011 6
- 7 July 2011 6
+LATEXMK(1L) LATEXMK(1L)
+ -f option. This could be used to override a setting in a con-
+ figuration file.
-LATEXMK(1L) LATEXMK(1L)
+ -g Force latexmk to process document fully, even under situations
+ where latexmk would normally decide that no changes in the
+ source files have occurred since the previous run. This option
+ is useful, for example, if you change some options and wish to
+ reprocess the files.
+ -g- Turn off -g.
-gg "Super go mode" or "clean make": clean out generated files as if
-C had been given, and then do a regular make.
@@ -444,12 +449,23 @@ LATEXMK(1L) LATEXMK(1L)
trying to run bibtex or biber, which would result in overwriting
of the bbl files.
- -p Print out the document. By default it is the generated
- postscript file that is printed. But you can use the -print=...
+ -p Print out the document. By default it is the generated post-
+ script file that is printed. But you can use the -print=...
option to print the dvi or pdf files instead, and you can con-
figure this in a start up file (by setting the $print_type vari-
able).
+
+
+ 9 August 2011 7
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
However, printing is enabled by default only under UNIX/LINUX
systems, where the default is to use the lpr command. In gen-
eral, the correct behavior for printing very much depends on
@@ -463,17 +479,6 @@ LATEXMK(1L) LATEXMK(1L)
This option is incompatible with the -pv and -pvc options, so it
turns them off.
-
-
- 7 July 2011 7
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
-pdf Generate pdf version of document using pdflatex.
-pdfdvi
@@ -515,6 +520,18 @@ LATEXMK(1L) LATEXMK(1L)
Whether to use single or double quotes round the "psnup -2" will
depend on your command interpreter, as used by the particular
+
+
+
+ 9 August 2011 8
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
version of perl and the operating system on your computer.
-pv Run file previewer. If the -view option is used, this will
@@ -530,18 +547,6 @@ LATEXMK(1L) LATEXMK(1L)
-pvc Run a file previewer and continually update the .dvi, .ps,
and/or .pdf files whenever changes are made to source files (see
the Description above). Which of these files is generated and
-
-
-
- 7 July 2011 8
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
which is viewed is governed by the other options, and is the
same as for the -pv option. The preview-continuous option -pvc
can only work with one file. So in this case you will normally
@@ -581,6 +586,18 @@ LATEXMK(1L) LATEXMK(1L)
-pvc- Turn off -pvc.
+
+
+
+ 9 August 2011 9
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
-quiet Same as -silent
-r <rcfile>
@@ -598,18 +615,6 @@ LATEXMK(1L) LATEXMK(1L)
overridden by later options.
The contents of the RC file just comprise a piece of code in the
-
-
-
- 7 July 2011 9
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
Perl programming language (typically a sequence of assignment
statements); they are executed when the -r option is encountered
during latexmk's parsing of its command line. See the -e option
@@ -647,6 +652,18 @@ LATEXMK(1L) LATEXMK(1L)
Also reduce the number of informational messages that latexmk
generates.
+
+
+
+ 9 August 2011 10
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
To change the options used to make the commands run silently,
you need to configure latexmk with changed values of its config-
uration variables, the relevant ones being $bib-
@@ -666,18 +683,6 @@ LATEXMK(1L) LATEXMK(1L)
e.g., by \includegraphics{drawing} in a LaTeX file. In that
case, latexmk will try making drawing.ext with ext set in turn
to the possible extensions that are relevant for latex (or as
-
-
-
- 7 July 2011 10
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
appropriate pdflatex).
See also the documentation for the $use_make_for_missing_files
@@ -713,6 +718,18 @@ EXAMPLES
% latexmk -pvc -ps thesis# run latex enough times to resolve
cross-references, make a postscript
file, start a previewer. Then
+
+
+
+ 9 August 2011 11
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
watch for changes in the source
file thesis.tex and any files it
uses. After any changes rerun latex
@@ -734,18 +751,6 @@ CONFIGURATION/INITIALIZATION (RC) FILES
1) The system RC file, if it exists.
On a UNIX system, latexmk searches for following places for its sys-
tem RC file, in the following order, and reads the first it finds:
-
-
-
- 7 July 2011 11
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
"/opt/local/share/latexmk/LatexMk",
"/usr/local/share/latexmk/LatexMk",
"/usr/local/lib/latexmk/LatexMk".
@@ -779,6 +784,18 @@ LATEXMK(1L) LATEXMK(1L)
are written; thus any RC file specified on the command line with the -r
option can override previous options but can be itself overridden by
later options on the command line. There is also the -e option, which
+
+
+
+ 9 August 2011 12
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
allows initialization code to be specified in latexmk's command line.
@@ -802,18 +819,6 @@ HOW TO SET VARIABLES IN INITIALIZATION FILES
push @default_files, 'paper2';
-
-
-
- 7 July 2011 12
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
Note that simple "scalar" variables have names that begin with a $
character and array variables have names that begin with a @ character.
Each statement ends with a semicolon.
@@ -845,6 +850,18 @@ FORMAT OF COMMAND SPECIFICATIONS
The two items starting with the % character are placeholders. These
are substituted by appropriate values before the command is run. Thus
+
+
+
+ 9 August 2011 13
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
%S will be replaced by the source file that elatex will be applied to,
and %O will be replaced by any options that latexmk has decided to use
for this command. (E.g., if you used the -silent option it would
@@ -870,18 +887,6 @@ FORMAT OF COMMAND SPECIFICATIONS
If for some reason you need a literal % character in your string not
subject to the above rules, use a pair of these characters. Thus with
-
-
-
- 7 July 2011 13
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
the command specification $ps_previewer = 'latex -ad=%%Sfile.ad %S',
the %%S will become %S when the command is executed, but the %S will be
replaced by the source filename, which in this case would be the name
@@ -912,6 +917,17 @@ LATEXMK(1L) LATEXMK(1L)
usable in initialization files" for what is normally the most appropri-
ate usage.
+
+
+ 9 August 2011 14
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
If you omit to supply any placeholders whatever in the specification of
a command, latexmk will supply what its author thinks are appropriate
defaults. This gives compatibility with configuration files for previ-
@@ -938,18 +954,6 @@ LATEXMK(1L) LATEXMK(1L)
string, that is equivalent to having just one. (4) Under cygwin, some
complications happen, since cygwin amounts to a complicated merging of
UNIX and MS-Windows. See the source code for how I've handled the
-
-
-
- 7 July 2011 14
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
problem.
Command names containing spaces: Under MS-Windows it is common that the
@@ -978,6 +982,18 @@ LATEXMK(1L) LATEXMK(1L)
See the above examples. Backslashes often get misinterpreted by the
Unix shell used by Cygwin's Perl to execute external commands. Forward
slashes don't suffer from this problem, and (when quoted, as above) are
+
+
+
+ 9 August 2011 15
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
equally acceptable to MS-Windows.
Using MS-Windows file associations: A useful trick under modern ver-
@@ -1006,18 +1022,6 @@ LATEXMK(1L) LATEXMK(1L)
for changing the name of the command called, but also to add options to
command. Suppose you want latexmk to use latex with source specials
enabled. Then you might use the following line in an initialization
-
-
-
- 7 July 2011 15
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
file:
$latex = 'latex --src-specials %O %S';
@@ -1043,6 +1047,19 @@ LATEXMK(1L) LATEXMK(1L)
+
+
+
+
+ 9 August 2011 16
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
LIST OF CONFIGURATION VARIABLES USABLE IN INITIALIZATION FILES
Default values are indicated in brackets.
@@ -1075,17 +1092,6 @@ LIST OF CONFIGURATION VARIABLES USABLE IN INITIALIZATION FILES
and the postscript file is always generated, even if it is newer
than the dvi file.
-
-
- 7 July 2011 16
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
$banner_intensity [0.95]
Equivalent to the -bi option, this is a decimal number between 0
and 1 that specifies how dark to print the banner message. 0 is
@@ -1108,6 +1114,18 @@ LATEXMK(1L) LATEXMK(1L)
This is an array variable, now mostly obsolete, that specifies
directories where latexmk should look for .bib files. By
default it is set from the BIBINPUTS environment variable of the
+
+
+
+ 9 August 2011 17
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
operating system. If that environment variable is not set, a
single element list consisting of the current directory is set.
The format of the directory names depends on your operating sys-
@@ -1145,17 +1163,6 @@ LATEXMK(1L) LATEXMK(1L)
Switch(es) for the BibTeX processing program when silent mode is
on.
-
-
- 7 July 2011 17
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
$bibtex_use [1]
Under what conditions to run BibTeX or biber. When latexmk dis-
covers from the log file that one (or more) BibTeX/biber-gener-
@@ -1173,6 +1180,18 @@ LATEXMK(1L) LATEXMK(1L)
it appears necessary to update the bbl files, without testing
for the existence of the bib files.
+
+
+
+ 9 August 2011 18
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
$cleanup_includes_cusdep_generated [0]
If nonzero, specifies that cleanup also deletes files that are
generated by custom dependencies. (When doing a clean up, e.g.,
@@ -1198,8 +1217,8 @@ LATEXMK(1L) LATEXMK(1L)
$clean_ext [""]
Extra extensions of files for latexmk to remove when any of the
clean-up options (-c or -C) is selected. The value of this
- variable is a string containing the extensions separated by
- spaces.
+ variable is a string containing the extensions separated by spa-
+ ces.
It is also possible to specify a more general pattern of file to
be deleted, by using the place holder %R, as in commands. Thus
@@ -1214,18 +1233,6 @@ LATEXMK(1L) LATEXMK(1L)
(as in FOO.tex).
-
-
-
- 7 July 2011 18
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
$clean_full_ext [""]
Extra extensions of files for latexmk to remove when the -C
option is selected, i.e., extensions of files to remove when the
@@ -1239,6 +1246,18 @@ LATEXMK(1L) LATEXMK(1L)
Normally, if no filenames are specified on the command line,
latexmk processes all tex files specified in the @default_files
+
+
+
+ 9 August 2011 19
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
variable, which by default is set to all tex files ("*.tex") in
the current directory. This is a convenience: just run latexmk
and it will process an appropriate set of files. But sometimes
@@ -1285,25 +1304,26 @@ LATEXMK(1L) LATEXMK(1L)
will cause to be run whatever command the system has associated
with .dvi files.]
+ $dvi_previewer_landscape ["start xdvi %O %S"]
+ The command to invoke a dvi-previewer in landscape mode.
+ [Default is "start" under MS-WINDOWS; under more recent versions
+ of Windows, this will cause to be run whatever command the sys-
+ tem has associated with .dvi files.]
+ $dvipdf ["dvipdf %O %S %D"]
+ Command to convert dvi to pdf file. A common reconfiguration is
- 7 July 2011 19
+ 9 August 2011 20
-LATEXMK(1L) LATEXMK(1L)
- $dvi_previewer_landscape ["start xdvi %O %S"]
- The command to invoke a dvi-previewer in landscape mode.
- [Default is "start" under MS-WINDOWS; under more recent versions
- of Windows, this will cause to be run whatever command the sys-
- tem has associated with .dvi files.]
+LATEXMK(1L) LATEXMK(1L)
+
- $dvipdf ["dvipdf %O %S %D"]
- Command to convert dvi to pdf file. A common reconfiguration is
to use the dvipdfm command, which needs its arguments in a dif-
ferent order:
@@ -1353,23 +1373,23 @@ LATEXMK(1L) LATEXMK(1L)
4 => run a command to do the update. The command is speci-
fied by the variable $dvi_update_command.
- See information on the variable $pdf_update_method for an
+ See information on the variable $pdf_update_method for an exam-
+ ple of updating by command.
+ $dvi_update_signal [Under UNIX: SIGUSR1, which is a system-dependent
+ value]
- 7 July 2011 20
+ 9 August 2011 21
-LATEXMK(1L) LATEXMK(1L)
+LATEXMK(1L) LATEXMK(1L)
- example of updating by command.
- $dvi_update_signal [Under UNIX: SIGUSR1, which is a system-dependent
- value]
The number of the signal that is sent to the dvi viewer when it
is updated by sending a signal -- see the information on the
variable $dvi_update_method. The default value is the one
@@ -1427,7 +1447,7 @@ LATEXMK(1L) LATEXMK(1L)
- 7 July 2011 21
+ 9 August 2011 22
@@ -1490,14 +1510,10 @@ LATEXMK(1L) LATEXMK(1L)
or biber run, the name of the file, but not its path is known.
The program specified by $kpsewhich is used to find it.
- See also the @BIBINPUTS variable for another way that latexmk
- also uses to try to locate files; it applies only in the case of
- .bib files.
-
- 7 July 2011 22
+ 9 August 2011 23
@@ -1506,6 +1522,10 @@ LATEXMK(1L) LATEXMK(1L)
LATEXMK(1L) LATEXMK(1L)
+ See also the @BIBINPUTS variable for another way that latexmk
+ also uses to try to locate files; it applies only in the case of
+ .bib files.
+
$landscape_mode [0]
If nonzero, run in landscape mode, using the landscape mode pre-
viewers and dvi to postscript converters. Equivalent to the -l
@@ -1556,24 +1576,24 @@ LATEXMK(1L) LATEXMK(1L)
Switch(es) for the LaTeX processing program when silent mode is
on.
- If you use MikTeX, you may prefer the results if you configure
- the options to include -c-style-errors, e.g., by the following
- line in an initialization file
- $latex_silent_switch = "-interaction=batchmode -c-style-
- errors";
+ 9 August 2011 24
- 7 July 2011 23
+LATEXMK(1L) LATEXMK(1L)
+ If you use MikTeX, you may prefer the results if you configure
+ the options to include -c-style-errors, e.g., by the following
+ line in an initialization file
-LATEXMK(1L) LATEXMK(1L)
+ $latex_silent_switch = "-interaction=batchmode -c-style-
+ errors";
$lpr ["lpr %O %S" under UNIX/LINUX, "NONE lpr" under MS-WINDOWS]
@@ -1622,31 +1642,31 @@ LATEXMK(1L) LATEXMK(1L)
$max_repeat [5]
The maximum number of times latexmk will run latex/pdflatex
- before deciding that there may be an infinite loop and that it
- needs to bail out, rather than rerunning latex/pdflatex again to
- resolve cross-references, etc. The default value covers all
- normal cases.
- (Note that the "etc" covers a lot of cases where one run of
- latex/pdflatex generates files to be read in on a later run.)
- $new_viewer_always [0]
- This variable applies to latexmk only in continuous-preview
- mode. If $new_viewer_always is 0, latexmk will check for a pre-
- viously running previewer on the same file, and if one is
+ 9 August 2011 25
- 7 July 2011 24
+LATEXMK(1L) LATEXMK(1L)
-LATEXMK(1L) LATEXMK(1L)
+ before deciding that there may be an infinite loop and that it
+ needs to bail out, rather than rerunning latex/pdflatex again to
+ resolve cross-references, etc. The default value covers all
+ normal cases.
+ (Note that the "etc" covers a lot of cases where one run of
+ latex/pdflatex generates files to be read in on a later run.)
- running will not start a new one. If $new_viewer_always is non-
+ $new_viewer_always [0]
+ This variable applies to latexmk only in continuous-preview
+ mode. If $new_viewer_always is 0, latexmk will check for a pre-
+ viously running previewer on the same file, and if one is run-
+ ning will not start a new one. If $new_viewer_always is non-
zero, this check will be skipped, and latexmk will behave as if
no viewer is running.
@@ -1689,6 +1709,17 @@ LATEXMK(1L) LATEXMK(1L)
removes the extension 'tex' from pdflatex_input_extensions
+
+
+ 9 August 2011 26
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
add_input_ext( 'pdflatex', 'asdf' );
add the extension 'asdf to pdflatex_input_extensions. (Natu-
@@ -1704,18 +1735,6 @@ LATEXMK(1L) LATEXMK(1L)
$pdflatex when silent mode is on.
If you use MikTeX, you may prefer the results if you configure
-
-
-
- 7 July 2011 25
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
the options to include -c-style-errors, e.g., by the following
line in an initialization file
@@ -1756,6 +1775,17 @@ LATEXMK(1L) LATEXMK(1L)
Arranging to use a command to get a previewer explicitly updated
requires three variables to be set. For example:
+
+
+ 9 August 2011 27
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
$pdf_previewer = "start xpdf -remote %R %O %S";
$pdf_update_method = 4;
$pdf_update_command = "xpdf -remote %R -reload";
@@ -1774,18 +1804,6 @@ LATEXMK(1L) LATEXMK(1L)
variable $pdf_update_method. The default value is the one
appropriate for gv on a UNIX system.
-
-
-
- 7 July 2011 26
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
$pid_position[1 under UNIX, -1 under MS-Windows]
The variable $pid_position is used to specify which word in
lines of the output from $pscmd corresponds to the process ID.
@@ -1822,6 +1840,18 @@ LATEXMK(1L) LATEXMK(1L)
Type of file to printout: possibilities are "dvi", "none",
"pdf", or "ps".
+
+
+
+ 9 August 2011 28
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
$pscmd Command used to get all the processes currently run by the user.
The -pvc option uses the command specified by the variable
$pscmd to determine if there is an already running previewer,
@@ -1829,8 +1859,8 @@ LATEXMK(1L) LATEXMK(1L)
the previewer about file changes).
Each line of the output of this command is assumed to correspond
- to one process. See the $pid_position variable for how the pro-
- cess number is determined.
+ to one process. See the $pid_position variable for how the
+ process number is determined.
The default for pscmd is "NONE" under MS-Windows and cygwin
(i.e., the command is not used), "ps --width 200 -f -u
@@ -1843,21 +1873,9 @@ LATEXMK(1L) LATEXMK(1L)
Command to convert ps to pdf file.
$ps_filter [empty]
- The postscript file filter to be run on the newly produced
- postscript file before other processing. Equivalent to
-
-
-
- 7 July 2011 27
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
- specifying the -pF option.
+ The postscript file filter to be run on the newly produced post-
+ script file before other processing. Equivalent to specifying
+ the -pF option.
$ps_previewer ["start gv %O %S", but "start %O %S" under MS-WINDOWS]
The command to invoke a ps-previewer. (The default under MS-
@@ -1888,6 +1906,18 @@ LATEXMK(1L) LATEXMK(1L)
has changed. See the information on the variable
$dvi_update_method for the codes. (Note that information needs
be changed slightly so that for the value 4, to run a command to
+
+
+
+ 9 August 2011 29
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
do the update, the command is specified by the variable
$ps_update_command, and for the value 2, to specify update by
signal, the signal is specified by $ps_update_signal.)
@@ -1913,23 +1943,11 @@ LATEXMK(1L) LATEXMK(1L)
The quoting method used by latexmk is tested to work correctly under
UNIX systems (including Linux and Mac OS-X) and under MS-Windows. It
- allows the use of filenames containing special characters, notably
- spaces. (But note that many versions of LaTeX and PdfLaTeX cannot cor-
- rectly deal with TeX files whose names contain spaces. Latexmk's
-
-
-
- 7 July 2011 28
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
- quoting only ensures that such filenames are correctly treated by the
- operating system in passing arguments to programs.)
+ allows the use of filenames containing special characters, notably spa-
+ ces. (But note that many versions of LaTeX and PdfLaTeX cannot cor-
+ rectly deal with TeX files whose names contain spaces. Latexmk's quot-
+ ing only ensures that such filenames are correctly treated by the oper-
+ ating system in passing arguments to programs.)
$recorder [0]
Whether to use the -recorder option to latex and pdflatex. Use
@@ -1953,6 +1971,19 @@ LATEXMK(1L) LATEXMK(1L)
tex.fls to a file with the basename of the main LaTeX document,
e.g., Document.fls.
+
+
+
+
+ 9 August 2011 30
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
$sleep_time [2]
The time to sleep (in seconds) between checking for source file
changes when running with the -pvc option. This is subject to a
@@ -1987,18 +2018,6 @@ LATEXMK(1L) LATEXMK(1L)
Whether to use make to try and make files that are missing after
a run of latex or pdflatex, and for which a custom dependency
has not been found. This is generally useful only when latexmk
-
-
-
- 7 July 2011 29
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
is used as part of a bigger project which is built by using the
make program.
@@ -2019,6 +2038,18 @@ LATEXMK(1L) LATEXMK(1L)
CUSTOM DEPENDENCIES
In any RC file a set of custom dependencies can be set up to convert a
file with one extension to a file with another. An example use of this
+
+
+
+ 9 August 2011 31
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
would be to allow latexmk to convert a .fig file to .eps to be included
in the .tex file.
@@ -2058,18 +2089,6 @@ CUSTOM DEPENDENCIES
It is invoked whenever latexmk detects that a run of latex/pdflatex
needs to read a file, like a graphics file, whose extension is the to-
-
-
-
- 7 July 2011 30
-
-
-
-
-
-LATEXMK(1L) LATEXMK(1L)
-
-
extension of a custom dependency. Then latexmk examines whether a file
exists with the same name, but with the corresponding from-extension,
as specified in the custom-dependency rule. If it does, then whenever
@@ -2085,6 +2104,18 @@ LATEXMK(1L) LATEXMK(1L)
One other item in each custom-dependency rule labelled "must" above
specifies how the rule should be applied when the source file fails to
+
+
+
+ 9 August 2011 32
+
+
+
+
+
+LATEXMK(1L) LATEXMK(1L)
+
+
exist.
A simple and typical example of code in an initialization rcfile is
@@ -2128,28 +2159,28 @@ LATEXMK(1L) LATEXMK(1L)
system("fig2dev -Lps '$_[0].fig' '$_[0].eps'");
}
- This causes the invocation of the fig2dev program to have quoted
+ This causes the invocation of the fig2dev program to have quoted file-
+ names; it should therefore work with filenames containing spaces. How-
+ ever, not all software deals correctly with filenames that contain spa-
+ ces. Moreover, the rules, if any, for quoting filenames vary between
+ operating systems, command shells and individual pieces of software, so
+ this code may not always work.
+ If you use pdflatex instead of latex, then you will probably prefer to
+ convert your graphics files to pdf format, in which case you would
+ replace the above code in an initialization file by
- 7 July 2011 31
+ 9 August 2011 33
-LATEXMK(1L) LATEXMK(1L)
- filenames; it should therefore work with filenames containing spaces.
- However, not all software deals correctly with filenames that contain
- spaces. Moreover, the rules, if any, for quoting filenames vary
- between operating systems, command shells and individual pieces of
- software, so this code may not always work.
+LATEXMK(1L) LATEXMK(1L)
- If you use pdflatex instead of latex, then you will probably prefer to
- convert your graphics files to pdf format, in which case you would
- replace the above code in an initialization file by
add_cus_dep( 'fig', 'pdf, 0, 'fig2pdf' );
sub fig2pdf {
@@ -2200,10 +2231,15 @@ LATEXMK(1L) LATEXMK(1L)
use of an md5 checksum), and only does a remake when the file contents
have actually changed.
+ Of course if you choose to write random data to the .nnd (or and .aux
+ file, etc) that changes on each new run, then you will have a problem.
+ For real experts: See the %hash_cal_ignore_pattern if you have to deal
+ with such problems.
+
- 7 July 2011 32
+ 9 August 2011 34
@@ -2212,11 +2248,6 @@ LATEXMK(1L) LATEXMK(1L)
LATEXMK(1L) LATEXMK(1L)
- Of course if you choose to write random data to the .nnd (or and .aux
- file, etc) that changes on each new run, then you will have a problem.
- For real experts: See the %hash_cal_ignore_pattern if you have to deal
- with such problems.
-
Glossaries can be dealt with similarly.
@@ -2274,7 +2305,7 @@ USING latexmk WITH make
- 7 July 2011 33
+ 9 August 2011 35
@@ -2337,15 +2368,10 @@ LATEXMK(1L) LATEXMK(1L)
-e 'warn qq(In Makefile, turn off custom dependencies0;' \
-e '@cus_dep_list = ();' \
-e 'show_cus_dep();'
- all : $(TARGETS)
- $(foreach file,$(TARGETS),$(eval -include $(DEPS_DIR)/$(file)P))
- $(DEPS_DIR) :
- mkdir $@
- %.pdf : %.tex
- 7 July 2011 34
+ 9 August 2011 36
@@ -2354,6 +2380,11 @@ LATEXMK(1L) LATEXMK(1L)
LATEXMK(1L) LATEXMK(1L)
+ all : $(TARGETS)
+ $(foreach file,$(TARGETS),$(eval -include $(DEPS_DIR)/$(file)P))
+ $(DEPS_DIR) :
+ mkdir $@
+ %.pdf : %.tex
if [ ! -e $(DEPS_DIR) ]; then mkdir $(DEPS_DIR); fi
$(LATEXMK) -pdf -dvi- -ps- -deps-out=$(DEPS_DIR)/$@P $<
%.pdf : %.fig
@@ -2402,21 +2433,11 @@ BUGS
manually refresh (or reopen) display. Or use one of the other preview-
ers and update methods.
- (The following isn't really a bug, but concerns features of preview-
- ers.) Preview continuous mode only works perfectly with certain pre-
- viewers: Xdvi on UNIX/LINUX works for dvi files. Gv on UNIX/LINUX
- works for both postscript and pdf. Ghostview on UNIX/LINUX needs a
- manual update (reopen); it views postscript and pdf. Gsview under MS-
- Windows works for both postscript and pdf, but only reads the updated
- file when its screen is refreshed. Acroread under UNIX/LINUX views
- pdf, but the file needs to be closed and reopened to view an updated
- version. Under MS-Windows, acroread locks its input file and so the
- pdf file cannot be updated. (Remedy: configure latexmk to use gsview
- instead.)
+ (The following isn't really a bug, but concerns features of
- 7 July 2011 35
+ 9 August 2011 37
@@ -2425,6 +2446,17 @@ BUGS
LATEXMK(1L) LATEXMK(1L)
+ previewers.) Preview continuous mode only works perfectly with certain
+ previewers: Xdvi on UNIX/LINUX works for dvi files. Gv on UNIX/LINUX
+ works for both postscript and pdf. Ghostview on UNIX/LINUX needs a
+ manual update (reopen); it views postscript and pdf. Gsview under MS-
+ Windows works for both postscript and pdf, but only reads the updated
+ file when its screen is refreshed. Acroread under UNIX/LINUX views
+ pdf, but the file needs to be closed and reopened to view an updated
+ version. Under MS-Windows, acroread locks its input file and so the
+ pdf file cannot be updated. (Remedy: configure latexmk to use gsview
+ instead.)
+
THANKS TO
Authors of previous versions. Many users with their feedback, and
especially David Coppit (username david at node coppit.org) who made
@@ -2434,10 +2466,10 @@ THANKS TO
AUTHOR
Current version, by John Collins (username collins at node
- phys.psu.edu). (Version 4.25).
+ phys.psu.edu). (Version 4.26).
- Released version can be obtained from CTAN: <http://www.tug.org/tex-
- archive/support/latexmk/>, and from the author's website
+ Released version can be obtained from CTAN: <http://www.tug.org/tex-ar-
+ chive/support/latexmk/>, and from the author's website
<http://www.phys.psu.edu/~collins/software/latexmk/>.
Modifications and enhancements by Evan McLean (Version 2.0)
Original script called "go" by David J. Musliner (RCS Version 3.2)
@@ -2471,22 +2503,6 @@ AUTHOR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 7 July 2011 36
+ 9 August 2011 38
diff --git a/Master/texmf-dist/scripts/latexmk/latexmk.pl b/Master/texmf-dist/scripts/latexmk/latexmk.pl
index 17aef439834..d0a41d5d76e 100755
--- a/Master/texmf-dist/scripts/latexmk/latexmk.pl
+++ b/Master/texmf-dist/scripts/latexmk/latexmk.pl
@@ -107,8 +107,8 @@ use warnings;
$my_name = 'latexmk';
$My_name = 'Latexmk';
-$version_num = '4.25';
-$version_details = "$My_name, John Collins, 7 July 2011";
+$version_num = '4.26';
+$version_details = "$My_name, John Collins, 9 August 2011";
use Config;
@@ -177,6 +177,8 @@ else {
##
## Modification log from 1 Jan 2011 onwards in detail
##
+## 9 Aug 2011, John Collins Fix bug in error reporting by check_biber_log
+## Handle log file from biber 0.9.4
## 7 Jul 2011, John Collins Fix process_rc_file to evade cygwin bug.
## Version 4.25
## 6 Jul 2011, John Collins Diagnostic for unreadable rc-file
@@ -2936,8 +2938,11 @@ sub view_file_via_temporary {
sub check_biber_log {
# Check for biber warnings:
# Usage: check_biber_log( base_of_biber_run[, \@biber_source )
- # return 0: OK, 1: biber warnings, 2: biber errors,
- # 3: could not open .blg file.
+ # return 0: OK;
+ # 1: biber warnings;
+ # 2: biber errors;
+ # 3: could not open .blg file;
+ # 4: failed to find one or more source files;
# 10: only error is missing \citation commands.
# Side effect: add source files @biber_source
my $base = $_[0];
@@ -2968,6 +2973,7 @@ sub check_biber_log {
}
elsif ( /> INFO - Found .* '([^']+)'\s*$/
|| /> INFO - Found '([^']+)'\s*$/
+ || /> INFO - Reading '([^']+)'\s*$/
|| /> INFO - Reading (.*)$/
|| /> INFO - Processing .* file '([^']+)' .*$/
) {
@@ -2978,16 +2984,16 @@ sub check_biber_log {
}
close $log_file;
- my $bibret = &find_file_list1( $Pbiber_source, $Pbiber_source,
- '', \@BIBINPUTS );
+ my @not_found = &find_file_list1( $Pbiber_source, $Pbiber_source,
+ '', \@BIBINPUTS );
@$Pbiber_source = uniqs( @$Pbiber_source );
- if ($bibret == 0) {
+ if ( $#not_found < 0) {
warn "$My_name: Found biber source file(s) [@$Pbiber_source]\n"
unless $silent;
}
else {
- warn "$My_name: Failed to find one or more biber source files ",
- "in [@$Pbiber_source]\n";
+ show_array( "$My_name: Failed to find one or more biber source files:",
+ @not_found );
if ($force_mode) {
warn "==== Force_mode is on, so I will continue. ",
"But there may be problems ===\n";
@@ -2997,7 +3003,7 @@ sub check_biber_log {
#$failure_msg = 'Failed to find one or more biber source files';
#warn "$My_name: Failed to find one or more biber source files\n";
}
- return 3;
+ return 4;
}
# print "$My_name: #Biber errors = $error_count, warning messages = $warning_count,\n ",
# "missing citation messages = $missing_citations, no_citations = $no_citations\n";
@@ -3747,18 +3753,18 @@ sub parse_aux {
warn "$My_name: No .bib files listed in .aux file '$aux_file' \n",
return 2;
}
- my $bibret = &find_file_list1( $Pbib_files, $Pbib_files,
- '.bib', \@BIBINPUTS );
+ my @not_found = &find_file_list1( $Pbib_files, $Pbib_files,
+ '.bib', \@BIBINPUTS );
@$Pbib_files = uniqs( @$Pbib_files );
&find_file_list1( $Pbst_files, $Pbst_files, '.bst' );
@$Pbst_files = uniqs( @$Pbst_files );
- if ($bibret == 0) {
- warn "$My_name: Found bibliography file(s) [@$Pbib_files]\n"
+ if ( $#not_found < 0) {
+ warn "$My_name: Found bibliography file(s) [@$Pbib_files]\n"
unless $silent;
}
else {
- warn "$My_name: Failed to find one or more bibliography files ",
- "in [@$Pbib_files]\n";
+ show_array( "$My_name: Failed to find one or more bibliography files ",
+ @not_found );
if ($force_mode) {
warn "==== Force_mode is on, so I will continue. ",
"But there may be problems ===\n";
@@ -5409,7 +5415,12 @@ sub rdb_run1 {
if ($diagnostics);
rdb_ensure_file( $rule, $source );
}
- if ($retcode == 3) {
+ if ($retcode == 4) {
+ $$Plast_result = 2;
+ $$Plast_message = "Could not find all biber source files for '$$Pbase'";
+ push @warnings, "Not all biber source files found for '$$Pbase'";
+ }
+ elsif ($retcode == 3) {
$$Plast_result = 2;
$$Plast_message = "Could not open biber log file for '$$Pbase'";
push @warnings, $$Plast_message;
@@ -6620,11 +6631,9 @@ sub find_file_list1 {
# Modified version of find_file_list that doesn't die.
# Given output and input arrays of filenames, a file suffix, and a path,
# fill the output array with full filenames
- # Return a status code:
- # Retcode = 0 on success
- # Retocde = 1 if at least one file was not found
- # Usage: find_file_list1( ref_to_output_file_array,
- # ref_to_input_file_array,
+ # Return array of not-found files.
+ # Usage: find_file_list1( ref_to_output_file_array,
+ # ref_to_input_file_array,
# suffix,
# ref_to_array_search_path
# )
@@ -6633,6 +6642,7 @@ sub find_file_list1 {
my $ref_input = $_[1];
my $suffix = $_[2];
my $ref_search = $_[3];
+ my @not_found = ();
#?? show_array( "=====find_file_list1. Suffix: '$suffix'\n Source:", @$ref_input );
#?? show_array( " Bibinputs:", @$ref_search );
@@ -6646,13 +6656,13 @@ sub find_file_list1 {
push @return_list, $tmp_file;
}
if ( $find_retcode != 0 ) {
- $retcode = 1;
+ push @not_found, $file.$suffix;
}
}
@$ref_output = @return_list;
#?? show_array( " Output", @$ref_output );
#?? foreach (@$ref_output) { if ( /\/\// ) { print " ====== double slash in '$_'\n"; } }
- return $retcode;
+ return @not_found;
} #END find_file_list1
#************************************************************
diff --git a/Master/texmf/doc/man/man1/latexmk.1 b/Master/texmf/doc/man/man1/latexmk.1
index 56e4fa4a2ff..240e5464e22 100644
--- a/Master/texmf/doc/man/man1/latexmk.1
+++ b/Master/texmf/doc/man/man1/latexmk.1
@@ -1,4 +1,4 @@
-.TH LATEXMK 1L "7 July 2011" ""
+.TH LATEXMK 1L "9 August 2011" ""
.SH NAME
latexmk \- generate LaTeX document
.SH SYNOPSIS
@@ -2042,7 +2042,7 @@ e-mail addresses are not written in their standard form to avoid being
harvested by worms and viruses.)
.SH AUTHOR
Current version, by John Collins (username collins at node phys.psu.edu).
-(Version 4.25).
+(Version 4.26).
Released version can be obtained from CTAN:
<http://www.tug.org/tex-archive/support/latexmk/>, and from the
diff --git a/Master/texmf/doc/man/man1/latexmk.man1.pdf b/Master/texmf/doc/man/man1/latexmk.man1.pdf
index ab4fd7e6fb0..49c7de4499b 100644
--- a/Master/texmf/doc/man/man1/latexmk.man1.pdf
+++ b/Master/texmf/doc/man/man1/latexmk.man1.pdf
Binary files differ
diff --git a/Master/texmf/doc/man/man1/thumbpdf.1 b/Master/texmf/doc/man/man1/thumbpdf.1
index d1d7e358f9a..3fb26327aba 100644
--- a/Master/texmf/doc/man/man1/thumbpdf.1
+++ b/Master/texmf/doc/man/man1/thumbpdf.1
@@ -1,4 +1,4 @@
-.TH "thumbpdf" "1" "September 2000" "teTeX" "teTeX"
+.TH "thumbpdf" "1" "August 2011" "TeX" "TeX"
.PP
.SH "NAME"
thumbpdf \- generate thumbnail images for a PDF file
@@ -6,7 +6,7 @@ created with \fBpdftex\fP
.PP
.SH "SYNOPSIS"
.PP
-\fBthumbpdf\fP [ \fIOPTION\fP\&.\&.\&. ] \fIPDF_FILE\fP
+\fBthumbpdf\fP [ \fIOPTION\fP\&.\&.\&. ] \fIFILE\fP.[pdf|ps]
.PP
.SH "DESCRIPTION"
.PP
@@ -15,7 +15,7 @@ within a PDF (Portable Document Format) document\&.
.PP
.SH "USAGE"
.PP
-First run \fBpdftex\fP(1) on your document to create a PDF file\&.
+First use \fBpdftex\fP(1) or another method to create a PDF file\&.
Then run \fBthumbpdf\fP to generate the thumbnails, a PDF file
containing the thumbnails, and a pdfTeX file to include the thumbnails
in the PDF file\&. Finally, run \fBpdftex\fP(1) on your file again to
@@ -29,41 +29,48 @@ containing the thumbnail images\&.
.PP
.IP "\fB--help\fP"
print usage
-.IP "\fB--(no)makepng\fP"
-make PNG thumbnail images (default: true)
-.IP "\fB--(no)makepdf\fP"
-generate new PDF file containing the
-thumbnails (default: true)
-.IP "\fB--(no)makedef\fP"
-create a TeX file for \fBpdftex\fP(1) to
-read in (default: true)
.IP "\fB--(no)quiet\fP"
suppress messages (default: false)
.IP "\fB--(no)verbose\fP"
verbose messages (default: false)
.IP "\fB--(no)debug\fP"
-print debugging information while parsing
-(default: false)
+print debugging information while parsing (default: false)
+.IP "\fB--(no)makepng\fP"
+make PNG thumbnail images (default: true)
+.IP "\fB--(no)makepdf\fP"
+generate new PDF file containing the thumbnails (default: true)
+.IP "\fB--(no)makedata\fP"
+create a TeX file for \fIthumbpdf.sty\fP (default: true)
+.IP "\fB--(no)clean\fP
+clear temp files (default: true)
+.IP "\fB--(no)useps\fP
+have \fBmakepng\fI use .ps instead of .pdf (default: false)
+.IP "\fB--(no)level2\fP
+generate .tpm with PostScript Level 2 features (default: false)
+.IP "\fB--(no)greek\fP
+text in Greek style, experimental (default: false)
+.IP "\fB--antialias\fP \fInum1[num2]\fP"
+anti-aliasing, 0=disable, 4=max (default: 4)
+.IP "\fB--device|png\fP | [\fBpng\fP]\fIdev\fP"
+GhostScript PNG device;
+\fIdev\fP = `mono\', `gray\', `16\', `256\', `16m\' (default: `png16m\')
.IP "\fB--resolution\fP \fIres\fP"
-resolution for GhostScript step
-(default: 9)
+resolution for makepng (default: 9)
.IP "\fB--compress\fP \fIn\fP"
-\epdfcompresslevel for \fBthumbpdf\&.pdf\fP
-(0-9; default: 9)
-.IP "\fB--device\fP | \fBpng\fP\fIdev\fP"
-GhostScript PNG device;
-\fIdev\fP = `mono\', `gray\',
-`16\', `256\', `16m\' (default:
-`png16m\')
+thumbnail compresslevel for \fBthumbpdf\&.pdf\fP (0-10; default: 10)
+.IP "\fB--password\fP \fInpw\fP"
+for an encrypted pdf file
.PP
.SH "FILES"
.PP
+.IP "\fIjobname\fP\fI\&.tpt\fP"
+(\fI.tpm\fP for pdfmark) data files for \fIthumbpdf.sty\fP.
.IP "\fIthumb\fPnn\fI\&.png\fP"
PNG thumbnail images
.IP "\fIthumbpdf\&.pdf\fP"
PDF file containing thumbnail images
.IP "\fIthumbpdf\&.tex\fP"
-A pdfTeX program to include the thumbnails
+a pdfTeX program to include the thumbnails
file
.IP "\fIthumbpdf\&.log\fP"
pdfTeX log file
@@ -75,7 +82,7 @@ for which a user wants to generate thumbnails
.PP
\fBgs\fP(1), \fBpdftex\fP(1)\&.
.PP
-Web page: <http://tug\&.org/teTeX/>
+Web page: <http://ctan\&.org/pkg/thumbpdf>
.PP
.SH "BUGS"
.PP
@@ -83,7 +90,7 @@ None known, but report any bugs found to the author\&.
.PP
.SH "COPYRIGHT"
.PP
-Copyright © 1999\&. \fBthumbpdf\fP is distributed under
+Copyright © 1999-2011\&. \fBthumbpdf\fP is distributed under
version 1, or (at your option) a later version of the LaTeX Project
Public License\&.
.PP
@@ -92,9 +99,12 @@ Public License\&.
\fBthumbpdf\fP was written by Heiko Oberdiek
<oberdiek@ruf\&.uni-freiburg\&.de>\&.
.PP
-This manual page was written by C\&.M\&. Connelly
+This manual page was originally written by C\&.M\&. Connelly
<c@eskimo\&.com>, for
-the Debian GNU/Linux system\&. It may be used by other distributions
-without contacting the author\&. Any mistakes or omissions in the
-manual page are my fault; inquiries about or corrections to this
-manual page should be directed to me (and not to the primary author)\&.
+the Debian GNU/Linux system, and slightly updated by Karl Berry
+<karl@freefriends\&.org>
+for the latest \fBthumbpdf\fP in 2011\&.
+It may be used by other distributions
+without contacting the authors\&. Any mistakes or omissions in the
+manual page are our fault; inquiries about or corrections to this
+manual page should be directed to us (and not to the program author)\&.
diff --git a/Master/texmf/doc/man/man1/thumbpdf.man1.pdf b/Master/texmf/doc/man/man1/thumbpdf.man1.pdf
index 487ca4cd812..7d1c0c55b46 100644
--- a/Master/texmf/doc/man/man1/thumbpdf.man1.pdf
+++ b/Master/texmf/doc/man/man1/thumbpdf.man1.pdf
Binary files differ