texlive[43009] Master: pxtatescale (21jan17)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 21 23:42:40 CET 2017


Revision: 43009
          http://tug.org/svn/texlive?view=revision&revision=43009
Author:   karl
Date:     2017-01-21 23:42:40 +0100 (Sat, 21 Jan 2017)
Log Message:
-----------
pxtatescale (21jan17)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/pxtatescale/
    trunk/Master/texmf-dist/doc/latex/pxtatescale/LICENSE
    trunk/Master/texmf-dist/doc/latex/pxtatescale/README
    trunk/Master/texmf-dist/tex/latex/pxtatescale/
    trunk/Master/texmf-dist/tex/latex/pxtatescale/pxtatescale.sty
    trunk/Master/tlpkg/tlpsrc/pxtatescale.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/pxtatescale/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pxtatescale/LICENSE	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pxtatescale/LICENSE	2017-01-21 22:42:40 UTC (rev 43009)
@@ -0,0 +1,24 @@
+This software is distributed under the MIT License.
+
+The MIT License
+
+Copyright (c) 2013 Takayuki YATO (aka. "ZR")
+Copyright (c) 2017 Hironobu Yamashita (aka. "aminophen")
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

Added: trunk/Master/texmf-dist/doc/latex/pxtatescale/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pxtatescale/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pxtatescale/README	2017-01-21 22:42:40 UTC (rev 43009)
@@ -0,0 +1,41 @@
+pxtatescale
+===========
+
+LaTeX: to make scaling work also with vertical direction of (u)pTeX
+and dvipdfmx
+
+The graphics' feature of "scaling" (`\scalebox`, `\reflextbox` and
+`\resizebox`) with dvipdfmx driver results in a wrong direction of
+stretch, when used in the vertical direction of pTeX. This behavior
+is caused by the fact that internal X and Y directions of pTeX
+`\tate` mode correspond to physical top-to-bottom and right-to-left
+directions respectively. This package provides a fix for the problem.
+
+### Installation
+
+  - `*.sty` → $TEXMF/tex/latex/pxtatescale
+
+### Usage
+
+Load this package after graphicx (or graphics) package.
+
+    \documentclass[dvipdfmx]{article}
+    \usepackage{graphicx} % or graphics
+    \usepackage{pxtatescale}
+
+Note that this package is of no use unless you work on e-(u)pTeX +
+dvipdfmx combination.
+
+Revision History
+----------------
+
+  * 2013/03/25 v0.2
+      - The first public version. (TY)
+  * 2017/01/16 v0.3
+      - Updated for new dvipdfmx.def with pdf-based scaling. (HY)
+  * 2017/01/21 v0.4
+      - Ensure graphics driver `dvipdfmx` before applying a patch. (HY)
+
+------------------
+Hironobu Yamashita
+https://github.com/aminophen

Added: trunk/Master/texmf-dist/tex/latex/pxtatescale/pxtatescale.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pxtatescale/pxtatescale.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/pxtatescale/pxtatescale.sty	2017-01-21 22:42:40 UTC (rev 43009)
@@ -0,0 +1,43 @@
+% pxtatescale.sty
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesPackage{pxtatescale}[2017/01/21 v0.4]
+\def\pxqtg at pkgname{pxtatescale}
+\@ifpackageloaded{graphics}{}{%else
+  \PackageError\pxqtg at pkgname{Package 'graphics' not loaded}\@ehc}
+\begingroup
+% the patch is necessary only when dvipdfmx.def is used
+\def\pxqtg at tempa{dvipdfmx.def}
+\ifx\Gin at driver\pxqtg at tempa %%% if-group
+% prepare
+\def\pxqtg at patch@status{1}%
+\def\pxqtg at try@patch#1#2#3{%
+  \edef\pxqtg at tempcsname{\string#1}%
+  \def\pxqtg at temp{#2}\ifx#1\pxqtg at temp
+    \gdef#1{#3}%
+    \def\pxqtg at patch@status{0}%
+  \fi}
+% first trial (new definition)
+\pxqtg at try@patch\Gscale at start
+  {\special{pdf:btrans}%
+   \special{pdf:literal \Gscale at x\space 0 0 \Gscale at y\space 0 0 cm}}
+  {\special{pdf:btrans}%
+   \special{pdf:literal
+   \iftdir \Gscale at y\space 0 0 \Gscale at x\space
+   \else   \Gscale at x\space 0 0 \Gscale at y\space
+   \fi 0 0 cm}}
+\ifnum\pxqtg at patch@status=\z@\else
+  % second trial (old definition)
+  \pxqtg at try@patch\Gscale at start
+    {\special{pdf:btrans xscale \Gscale at x\space yscale \Gscale at y}}%
+    {\special{pdf:btrans
+      \iftdir xscale \Gscale at y\space yscale \Gscale at x
+      \else   xscale \Gscale at x\space yscale \Gscale at y
+      \fi}}
+\fi
+\ifnum\pxqtg at patch@status=\z@
+  \PackageInfo\pxqtg at pkgname{Patch applied to \pxqtg at tempcsname}%
+\else
+  \PackageWarningNoLine\pxqtg at pkgname{Patch cannot be applied to \pxqtg at tempcsname}%
+\fi
+\fi                         %%% if-group end
+\endgroup

Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-01-21 22:41:15 UTC (rev 43008)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-01-21 22:42:40 UTC (rev 43009)
@@ -505,7 +505,7 @@
     psu-thesis ptex-base ptex-fontmaps ptex-fonts ptex2pdf ptext ptptex
     punk punk-latex punknova purifyeps pxbase
     pxchfon pxcjkcat pxfonts pxgreeks pxjahyper
-    pxpgfmark pxrubrica pxtxalfa pygmentex python pythontex
+    pxpgfmark pxrubrica pxtatescale pxtxalfa pygmentex python pythontex
    qcircuit qcm qobitree qrcode qstest qsymbols qtree
      quattrocento quicktype quotchap quoting quotmark quran
   r_und_s raleway ran_toks randbild randomlist randomwalk randtext

Modified: trunk/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc	2017-01-21 22:41:15 UTC (rev 43008)
+++ trunk/Master/tlpkg/tlpsrc/collection-langcjk.tlpsrc	2017-01-21 22:42:40 UTC (rev 43009)
@@ -17,5 +17,6 @@
 depend dnp
 depend garuda-c90
 depend norasi-c90
+depend pxtatescale
 depend xcjk2uni
 depend zxjafont

Added: trunk/Master/tlpkg/tlpsrc/pxtatescale.tlpsrc
===================================================================


More information about the tex-live-commits mailing list