texlive[43035] trunk: pdflatexpicscale (23jan17)

commits+karl at tug.org commits+karl at tug.org
Mon Jan 23 23:19:52 CET 2017


Revision: 43035
          http://tug.org/svn/texlive?view=revision&revision=43035
Author:   karl
Date:     2017-01-23 23:19:52 +0100 (Mon, 23 Jan 2017)
Log Message:
-----------
pdflatexpicscale (23jan17)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/pdflatexpicscale/pdflatexpicscale.pl
    trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl
    trunk/Master/texmf-dist/doc/support/pdflatexpicscale/README
    trunk/Master/texmf-dist/doc/support/pdflatexpicscale/pdflatexpicscale.pdf
    trunk/Master/texmf-dist/doc/support/pdflatexpicscale/pdflatexpicscale.tex
    trunk/Master/texmf-dist/doc/support/pdflatexpicscale/testprinter.ps
    trunk/Master/texmf-dist/scripts/pdflatexpicscale/pdflatexpicscale.pl

Modified: trunk/Build/source/texk/texlive/linked_scripts/pdflatexpicscale/pdflatexpicscale.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/pdflatexpicscale/pdflatexpicscale.pl	2017-01-23 22:19:36 UTC (rev 43034)
+++ trunk/Build/source/texk/texlive/linked_scripts/pdflatexpicscale/pdflatexpicscale.pl	2017-01-23 22:19:52 UTC (rev 43035)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 # Scale pictures to be included into a LaTeX generated PDF file.
-# version 0.2 written by peter willadt 
-# contact willadt at t-online.de
+# written by peter willadt 
+# contact: willadt at t-online.de
 # this software is subject to the LaTeX project public license.
 # changes:
 # 2016-07-27 first public release
@@ -8,8 +8,13 @@
 # 2016-08-02 changed regex to prevent problem with long filenames
 # 2016-08-02 changed > to gt (shame on me)
 # 2016-10-20 corrected behaviour when program gets called without arguments
-# (shame on me, again)
+#            (shame on me, again)
 # 2016-10-20 added undocumented switch --help to show usage.
+# 2017-01-23 Updated documentation (see pdflatexpicscale.tex), 
+#            and corrected version number 
+#            Please note: version numbers will be updated to keep sync
+#            with the documentation, even when the perl code does not change.
+#
 use strict;
 use File::Basename;
 use File::Spec;
@@ -17,7 +22,7 @@
 use Getopt::Long;
 
 my $version = '0.3';
-my $versiondate = '2016-10-20';
+my $versiondate = '2017-01-23';           #version %version
 my $showversion;
 
 my $verbose;

Modified: trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl	2017-01-23 22:19:36 UTC (rev 43034)
+++ trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl	2017-01-23 22:19:52 UTC (rev 43035)
@@ -1,5 +1,5 @@
 #!/usr/bin/env perl
-# $Id: tlmgr.pl 41794 2016-08-03 23:11:36Z karl $
+# $Id: tlmgr.pl 42960 2017-01-15 11:47:53Z preining $
 #
 # Copyright 2008-2016 Norbert Preining
 # This file is licensed under the GNU General Public License version 2
@@ -6,8 +6,8 @@
 # or any later version.
 #
 
-my $svnrev = '$Revision: 41794 $';
-my $datrev = '$Date: 2016-08-04 01:11:36 +0200 (Thu, 04 Aug 2016) $';
+my $svnrev = '$Revision: 42960 $';
+my $datrev = '$Date: 2017-01-15 12:47:53 +0100 (Sun, 15 Jan 2017) $';
 my $tlmgrrevision;
 my $prg;
 if ($svnrev =~ m/: ([0-9]+) /) {
@@ -5068,7 +5068,7 @@
       if ($e =~ m/add(Mixed|Kanji)?Map\s+(.*)$/) {
         my $foo = $2;
         chomp($foo);
-        if ($foo !~ m/\@kanjiEmbed@/) {
+        if ($foo !~ m/\@(kanji|ja|tc|sc|ko)Embed@/) {
           push @{$maps{$foo}}, $pkg;
         }
       } elsif ($e =~ m/AddFormat\s+(.*)$/) {

Modified: trunk/Master/texmf-dist/doc/support/pdflatexpicscale/README
===================================================================
--- trunk/Master/texmf-dist/doc/support/pdflatexpicscale/README	2017-01-23 22:19:36 UTC (rev 43034)
+++ trunk/Master/texmf-dist/doc/support/pdflatexpicscale/README	2017-01-23 22:19:52 UTC (rev 43035)
@@ -2,6 +2,10 @@
 to a target resolution before creating a PDF document
 with PdfLaTeX.
 
+*Version*
+2017-01-23
+For version details check pdflatexpicscale.pdf.
+
 *Requirements*
 Perl and ImageMagick have to be installed.
 

Modified: trunk/Master/texmf-dist/doc/support/pdflatexpicscale/pdflatexpicscale.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/pdflatexpicscale/pdflatexpicscale.tex
===================================================================
--- trunk/Master/texmf-dist/doc/support/pdflatexpicscale/pdflatexpicscale.tex	2017-01-23 22:19:36 UTC (rev 43034)
+++ trunk/Master/texmf-dist/doc/support/pdflatexpicscale/pdflatexpicscale.tex	2017-01-23 22:19:52 UTC (rev 43035)
@@ -1,10 +1,11 @@
 \documentclass[10pt,a4paper]{article}
 \usepackage{hologo} % used for LuaTeX, PdfTeX and PdfLaTeX logos
 \usepackage{graphicx}
+\usepackage{textcomp}
 \usepackage{url}
 \title{pdflatexpicscale}
 \author{Peter Willadt\footnote{willadt at t-online.de}}
-\date{2016-08-02}
+\date{2017-01-23} %version #version
 \begin{document}
 \maketitle
 
@@ -25,8 +26,32 @@
 and high-res pictures for print. When there are requirements that force the
 size of images in our document to change, the fun will probably be gone.
 
-Hopefully TUGboat will accept an article accompanying this description. 
+There is an article in TUGboat (\url{%
+  https://www.tug.org/members/TUGboat/tb37-3/tb117willadt.pdf}) accompanying
+this package, for now (january, 2017) it is only available to TUG members; a
+public release will follow at the beginning of 2018, as with all TUGboat
+articles. 
 
+
+\subsection{Similiar Work/Prior Art}
+
+There have been prior attempts to do similiar things. I found
+\texttt{degrade.sty}\footnote{see
+  \url{http://mirror.ctan.org/graphics/degrade}} 
+ and an equivalent con\TeX t module, there are at least two threads on
+ stackexchange\footnote{see
+   \texttt{http://tex.stackexchange.com/questions/14429/\\
+pdftex-reduce-pdf-size-reduce-image-quality}
+and 
+\texttt{http://tex.stackexchange.com/\\questions/2198/how-to-create-small-pdf-files-for-the-internet}}
+ and there had been, as
+I have learned, some work by Axel Berger and others, posted 2011-03-31 on
+\texttt{de.comp.text.tex}. 
+
+But what motivated me most to find something better than scaling pictures
+individually was seeing that Adobe InDesign\textregistered\ does
+scale graphics according to the output intent.
+
 \section{Installation}
 
 \subsection{Prerequisites}
@@ -272,8 +297,13 @@
 \section{Bugs, Improvements, and Changes}
 
 Please submit bug reports to the package author (me). I will be glad to make
-the package better.
+the package better.\label{bugs}
 
+The file version dates of all the files in this package shall be kept
+consistent, even if only one of the files changes. pdflatexpicscale.pl,
+however, has also a version number. This number will only be changed when
+there are functional changes to pdflatexpicscale.pl. 
+
 \subsection{Changelog}
 
 \paragraph{2016-07-28} Upload of first public version to CTAN.
@@ -288,4 +318,14 @@
 called without arguments. Added the argument \texttt{--help}, both due to
 suggestions by Karl Berry (thanks a lot).
 
+\paragraph{2016-12-12} Section on similiar work and prior art added (on request).
+
+\paragraph{2017-01-22} Added url of TUGboat article.
+
+\paragraph{2017-01-23} Fixed inconsistent version numbers and changed the url
+of degrade.sty on recommendation of CTAN board. Added text on versioning at
+the beginning of section~\ref{bugs}. Thanks a lot to the always quick action
+and helpful and polite hints.
+
+% for file version please see line 8
 \end{document}

Modified: trunk/Master/texmf-dist/doc/support/pdflatexpicscale/testprinter.ps
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/pdflatexpicscale/pdflatexpicscale.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/pdflatexpicscale/pdflatexpicscale.pl	2017-01-23 22:19:36 UTC (rev 43034)
+++ trunk/Master/texmf-dist/scripts/pdflatexpicscale/pdflatexpicscale.pl	2017-01-23 22:19:52 UTC (rev 43035)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 # Scale pictures to be included into a LaTeX generated PDF file.
-# version 0.2 written by peter willadt 
-# contact willadt at t-online.de
+# written by peter willadt 
+# contact: willadt at t-online.de
 # this software is subject to the LaTeX project public license.
 # changes:
 # 2016-07-27 first public release
@@ -8,8 +8,13 @@
 # 2016-08-02 changed regex to prevent problem with long filenames
 # 2016-08-02 changed > to gt (shame on me)
 # 2016-10-20 corrected behaviour when program gets called without arguments
-# (shame on me, again)
+#            (shame on me, again)
 # 2016-10-20 added undocumented switch --help to show usage.
+# 2017-01-23 Updated documentation (see pdflatexpicscale.tex), 
+#            and corrected version number 
+#            Please note: version numbers will be updated to keep sync
+#            with the documentation, even when the perl code does not change.
+#
 use strict;
 use File::Basename;
 use File::Spec;
@@ -17,7 +22,7 @@
 use Getopt::Long;
 
 my $version = '0.3';
-my $versiondate = '2016-10-20';
+my $versiondate = '2017-01-23';           #version %version
 my $showversion;
 
 my $verbose;



More information about the tex-live-commits mailing list