summaryrefslogtreecommitdiff
path: root/language/japanese/plautopatch
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-26 03:01:01 +0000
committerNorbert Preining <norbert@preining.info>2020-02-26 03:01:01 +0000
commit2dfd6df5d1db270dc874c6c319d51eed43defb91 (patch)
tree771360801233f1bd518937e92f71184debc2c95e /language/japanese/plautopatch
parente55e56ce482cc9d01a0b83f22dac4851eb4c0357 (diff)
CTAN sync 202002260301
Diffstat (limited to 'language/japanese/plautopatch')
-rw-r--r--language/japanese/plautopatch/LICENSE2
-rw-r--r--language/japanese/plautopatch/Makefile26
-rw-r--r--language/japanese/plautopatch/README.md21
-rw-r--r--language/japanese/plautopatch/plarydshln.sty2
-rw-r--r--language/japanese/plautopatch/plautopatch-ja.pdfbin100423 -> 101189 bytes
-rw-r--r--language/japanese/plautopatch/plautopatch-ja.tex2
-rw-r--r--language/japanese/plautopatch/plautopatch.pdfbin34221 -> 35001 bytes
-rw-r--r--language/japanese/plautopatch/plautopatch.sty3
-rw-r--r--language/japanese/plautopatch/plautopatch.tex2
-rw-r--r--language/japanese/plautopatch/pldocverb.sty2
-rw-r--r--language/japanese/plautopatch/pxtextpos.sty85
11 files changed, 104 insertions, 41 deletions
diff --git a/language/japanese/plautopatch/LICENSE b/language/japanese/plautopatch/LICENSE
index 16f906567a..1504ecfb7d 100644
--- a/language/japanese/plautopatch/LICENSE
+++ b/language/japanese/plautopatch/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2018-2019 Hironobu Yamashita
+Copyright (c) 2018-2020 Hironobu Yamashita
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/language/japanese/plautopatch/Makefile b/language/japanese/plautopatch/Makefile
deleted file mode 100644
index 5f2ef4e5d6..0000000000
--- a/language/japanese/plautopatch/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-KANJI = -kanji=utf8
-FONTMAP = -f ipaex.map -f ptex-ipaex.map
-TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)
-
-all: plautopatch.pdf plautopatch-ja.pdf
-
-.SUFFIXES: .tex .dvi .pdf
-.tex.dvi:
- platex $(KANJI) $<
- platex $(KANJI) $<
- rm *.aux *.log
-.dvi.pdf:
- dvipdfmx $(FONTMAP) $<
-
-.PHONY: install clean
-install:
- mkdir -p ${TEXMF}/doc/platex/plautopatch
- cp ./Makefile ${TEXMF}/doc/platex/plautopatch/
- cp ./LICENSE ${TEXMF}/doc/platex/plautopatch/
- cp ./README.md ${TEXMF}/doc/platex/plautopatch/
- cp ./*.pdf ${TEXMF}/doc/platex/plautopatch/
- cp ./*.tex ${TEXMF}/doc/platex/plautopatch/
- mkdir -p ${TEXMF}/tex/platex/plautopatch
- cp ./*.sty ${TEXMF}/tex/platex/plautopatch/
-clean:
- rm -f *.dvi *.pdf
diff --git a/language/japanese/plautopatch/README.md b/language/japanese/plautopatch/README.md
index a67ed6ec72..eb029fec19 100644
--- a/language/japanese/plautopatch/README.md
+++ b/language/japanese/plautopatch/README.md
@@ -31,6 +31,7 @@ The following patches are currently registered:
- ftnright (latex-tools) -> pxftnright (platex-tools)
- multicol (latex-tools) -> pxmulticol (platex-tools)
- xspace (latex-tools) -> pxxspace (platex-tools)
+- textpos -> pxtextpos (maintained here!)
- pdfpages -> pxpdfpages (maintained here!)
- stfloats (sttools) -> pxstfloats (pxsttools)
- pgfrcs (pgf) -> pxpgfrcs (maintained here!)
@@ -44,39 +45,37 @@ written by Martin Scharrer.
## Miscellaneous
This bundle may distribute some tiny patches
-together with the main package. Short information:
+together with the main package.
+All packages are meant for use with pLaTeX/upLaTeX.
+Short information:
- pldocverb.sty:
Patch for doc.sty (latex) to improve
compatibility with `\verb` redefinition in pLaTeX.
- Can be used on pLaTeX/upLaTeX.
- plextcolortbl.sty:
Patch for colortbl.sty (by David Carlisle) to improve
compatibility with plext.sty in pLaTeX.
- Can be used on pLaTeX/upLaTeX.
- plarydshln.sty:
Patch for arydshln.sty (by Hiroshi Nakashima) to improve
- compatibility with pLaTeX/upLaTeX kernels.
- Can be used on pLaTeX/upLaTeX.
+ compatibility with pLaTeX kernel.
- plextarydshln.sty:
Patch for arydshln.sty (by Hiroshi Nakashima) to improve
compatibility with plext.sty in pLaTeX.
- Can be used on pLaTeX/upLaTeX.
- plsiunitx.sty:
Patch for siunitx.sty (by Joseph Wright) to fix
conflict with plarray.sty (platex-tools).
- Can be used on pLaTeX/upLaTeX.
+- pxtextpos.sty:
+ Patch for textpos.sty (by Norman Gray) to support
+ Japanese-style crop marks (called 'tombow' in Japanese).
- pxpdfpages.sty:
Patch for pdfpages.sty (by Andreas Matthias) to support
Japanese-style crop marks (called 'tombow' in Japanese).
- Can be used on pLaTeX/upLaTeX.
- pxpgfrcs.sty:
Patch for pgfrcs.sty (part of PGF) to support
Japanese classes for vertical writing.
- Can be used on pLaTeX/upLaTeX.
- pxstfloats.sty:
Patch for stfloats.sty (sttools) to improve
- compatibility with pLaTeX/upLaTeX.
+ compatibility with pLaTeX kernel.
Actually part of pxsttols (https://github.com/aminophen/pxsttools)
but included here for convenience.
@@ -97,6 +96,6 @@ the 3-clause BSD license (see [LICENSE](./LICENSE)).
## Release Date
-2019-09-05
+2020-02-25
Hironobu Yamashita
diff --git a/language/japanese/plautopatch/plarydshln.sty b/language/japanese/plautopatch/plarydshln.sty
index b7e2c3a144..d9c26a2c7f 100644
--- a/language/japanese/plautopatch/plarydshln.sty
+++ b/language/japanese/plautopatch/plarydshln.sty
@@ -9,7 +9,7 @@
% * arydshln.sty
% (2004/08/31 v1.71 -- 2019/02/21 v1.76)
% * plcore.ltx in platex
-% (2001/09/26 v1.2a -- 2018/09/02 v1.3)
+% (2001/09/26 v1.2a -- 2019/02/08 v1.3b)
%
%% package declaration
diff --git a/language/japanese/plautopatch/plautopatch-ja.pdf b/language/japanese/plautopatch/plautopatch-ja.pdf
index e3d20f56be..5b0337c7ae 100644
--- a/language/japanese/plautopatch/plautopatch-ja.pdf
+++ b/language/japanese/plautopatch/plautopatch-ja.pdf
Binary files differ
diff --git a/language/japanese/plautopatch/plautopatch-ja.tex b/language/japanese/plautopatch/plautopatch-ja.tex
index c6d37e605b..cd01de621c 100644
--- a/language/japanese/plautopatch/plautopatch-ja.tex
+++ b/language/japanese/plautopatch/plautopatch-ja.tex
@@ -117,6 +117,7 @@ p\LaTeX/up\LaTeX{}で動作するソースと通常の\LaTeX{}ソースの
\ITEMoTo ftnright (latex-tools) -> pxftnright (platex-tools)
\ITEMoTo multicol (latex-tools) -> pxmulticol (platex-tools)
\ITEMoTo xspace (latex-tools) -> pxxspace (platex-tools)
+\ITEMxTx textpos -> pxtextpos (maintained here!)
\ITEMxTx pdfpages -> pxpdfpages (maintained here!)
\ITEMoTo stfloats (sttools) -> pxstfloats (pxsttools)
\ITEMoTx pgfrcs (pgf) -> pxpgfrcs (maintained here!)
@@ -152,6 +153,7 @@ p\LaTeX/up\LaTeX{}で動作するソースと通常の\LaTeX{}ソースの
\item 2018/11/25 v0.9b \textsf{multicol}と\textsf{doc}のサポート
\item 2019/06/06 v0.9c \textsf{siunitx}のパッチ改良
\item 2019/09/05 v0.9d \textsf{xspace}と\textsf{stfloats}のサポート
+ \item 2020/02/25 v0.9e \textsf{textpos}のサポート
\end{itemize}
\end{document}
diff --git a/language/japanese/plautopatch/plautopatch.pdf b/language/japanese/plautopatch/plautopatch.pdf
index 245820e0ee..29a3a642ad 100644
--- a/language/japanese/plautopatch/plautopatch.pdf
+++ b/language/japanese/plautopatch/plautopatch.pdf
Binary files differ
diff --git a/language/japanese/plautopatch/plautopatch.sty b/language/japanese/plautopatch/plautopatch.sty
index 2d9f3cb43a..71bd8f7d0a 100644
--- a/language/japanese/plautopatch/plautopatch.sty
+++ b/language/japanese/plautopatch/plautopatch.sty
@@ -8,7 +8,7 @@
\NeedsTeXFormat{LaTeX2e}% not pLaTeX2e on purpose!
\ProvidesPackage{plautopatch}
- [2019/09/05 v0.9d Automated patches for pLaTeX/upLaTeX]
+ [2020/02/25 v0.9e Automated patches for pLaTeX/upLaTeX]
\ifx\pfmtname\@undefined
\PackageWarningNoLine{plautopatch}{%
@@ -190,6 +190,7 @@
\platpc@patch@before{ftnright}{pxftnright}% platex-tools
\platpc@patch@after{multicol}{pxmulticol}% platex-tools
\platpc@patch@after{xspace}{pxxspace}% platex-tools
+\platpc@patch@after{textpos}{pxtextpos}% (maintained here!)
\platpc@patch@after{pdfpages}{pxpdfpages}% (maintained here!)
\platpc@patch@before{stfloats}{pxstfloats}% pxsttools -- (!!)
diff --git a/language/japanese/plautopatch/plautopatch.tex b/language/japanese/plautopatch/plautopatch.tex
index cddfa40e47..fdffa69669 100644
--- a/language/japanese/plautopatch/plautopatch.tex
+++ b/language/japanese/plautopatch/plautopatch.tex
@@ -116,6 +116,7 @@ Current version (\filedate\space\fileversion) supports the followings:
\ITEMoTo ftnright (latex-tools) -> pxftnright (platex-tools)
\ITEMoTo multicol (latex-tools) -> pxmulticol (platex-tools)
\ITEMoTo xspace (latex-tools) -> pxxspace (platex-tools)
+\ITEMxTx textpos -> pxtextpos (maintained here!)
\ITEMxTx pdfpages -> pxpdfpages (maintained here!)
\ITEMoTo stfloats (sttools) -> pxstfloats (pxsttools)
\ITEMoTx pgfrcs (pgf) -> pxpgfrcs (maintained here!)
@@ -154,6 +155,7 @@ a comma-separated list of them:
\item 2018/11/25 v0.9b Add support for \textsf{multicol} and \textsf{doc}
\item 2019/06/06 v0.9c Update patch for \textsf{siunitx}
\item 2019/09/05 v0.9d Add support for \textsf{xspace} and \textsf{stfloats}
+ \item 2020/02/25 v0.9e Add support for \textsf{textpos}
\end{itemize}
\end{document}
diff --git a/language/japanese/plautopatch/pldocverb.sty b/language/japanese/plautopatch/pldocverb.sty
index cf54a62353..fc36b14ccd 100644
--- a/language/japanese/plautopatch/pldocverb.sty
+++ b/language/japanese/plautopatch/pldocverb.sty
@@ -9,7 +9,7 @@
% * doc.sty
% (2004/02/09 v2.1b -- 2018/09/25 v2.1i)
% * plcore.ltx in platex
-% (2001/09/26 v1.2a -- 2018/09/02 v1.3)
+% (2001/09/26 v1.2a -- 2019/02/08 v1.3b)
%
%% package declaration
diff --git a/language/japanese/plautopatch/pxtextpos.sty b/language/japanese/plautopatch/pxtextpos.sty
new file mode 100644
index 0000000000..439005987e
--- /dev/null
+++ b/language/japanese/plautopatch/pxtextpos.sty
@@ -0,0 +1,85 @@
+%
+% pxtextpos.sty
+% written by Hironobu Yamashita (@aminophen)
+%
+% This package is part of the plautopatch bundle.
+% https://github.com/aminophen/plautopatch
+%
+% This package is expected to be compatible with
+% * textpos.sty
+% 2005/10/13 v1.6a -- 2019/04/15 v1.9.1
+%
+
+%% package declaration
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{pxtextpos}
+ [2019/11/17 v0.2a Patch to textpos for (u)pLaTeX]
+
+%% preparations
+\def\pxtxtpos@pkgname{pxtextpos}
+\def\pxtxtpos@warn{\PackageWarningNoLine\pxtxtpos@pkgname}
+
+%% load it
+\RequirePackageWithOptions{textpos}
+
+%% check if \iftombow ... \fi is available
+\ifx\tombowtrue\@undefined
+ \pxtxtpos@warn{Tombow feature unavailable, aborting}
+ \expandafter\endinput
+\fi
+
+%% known definition
+\def\pxtxtpos@textblockorigin#1#2{%
+ \ifTP@abspos
+ \TP@ox=-1in \addtolength\TP@ox{#1}
+ \TP@oy=-1in \addtolength\TP@oy{#2}
+ \ifTP@chatter\typeout{TextBlockOrigin set to #1 x #2}\fi
+ \else
+ \PackageError{textpos}
+ {The \protect\textblockorigin\space command\MessageBreak
+ may only be used if the package was given\MessageBreak
+ the`absolute' option when it was invoked}
+ {If you want to use the \protect\textblockorigin\space command, then
+ \MessageBreak
+ invoke the package with the syntax\MessageBreak
+ \protect\usepackage[absolute]{textpos}}
+ \fi
+}
+\@onlypreamble\pxtxtpos@textblockorigin
+
+%% redefine it
+\ifx\textblockorigin\pxtxtpos@textblockorigin\else
+ \pxtxtpos@warn{%
+ Command \noexpand\textblockorigin is beyond my knowledge.\MessageBreak
+ I will apply the patch anyway, but it may break:\MessageBreak
+ Please report to the author of `\pxtxtpos@pkgname.sty'}
+\fi
+\def\textblockorigin#1#2{%
+ \ifTP@abspos
+ \TP@ox=-1in \addtolength\TP@ox{#1}
+ \TP@oy=-1in \addtolength\TP@oy{#2}
+ %%% addition
+ \iftombow
+ \addtolength\TP@ox{1in}\addtolength\TP@oy{1in}
+ \fi
+ %%%
+ \ifTP@chatter\typeout{TextBlockOrigin set to #1 x #2}\fi
+ \else
+ \PackageError{textpos}
+ {The \protect\textblockorigin\space command\MessageBreak
+ may only be used if the package was given\MessageBreak
+ the`absolute' option when it was invoked}
+ {If you want to use the \protect\textblockorigin\space command, then
+ \MessageBreak
+ invoke the package with the syntax\MessageBreak
+ \protect\usepackage[absolute]{textpos}}
+ \fi
+}
+
+%% reset
+\ifTP@abspos
+ \textblockorigin{0pt}{0pt}%
+\fi
+
+\endinput
+%% EOF