summaryrefslogtreecommitdiff
path: root/macros/jptex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-02-13 03:04:16 +0000
committerNorbert Preining <norbert@preining.info>2023-02-13 03:04:16 +0000
commit88bea5fae4bc9a51d1cd6311662f9e001c3bd643 (patch)
treea0df398f682e9641f8365d4ccd000fc2e45eacb3 /macros/jptex/latex
parentf76939750d63d6088b9bdeac794ce3fdf33d1269 (diff)
CTAN sync 202302130304
Diffstat (limited to 'macros/jptex/latex')
-rw-r--r--macros/jptex/latex/jsclasses/LICENSE2
-rw-r--r--macros/jptex/latex/jsclasses/Makefile6
-rw-r--r--macros/jptex/latex/jsclasses/README.md2
-rw-r--r--macros/jptex/latex/jsclasses/jsclasses.dtx55
-rw-r--r--macros/jptex/latex/jsclasses/jsclasses.pdfbin426004 -> 415344 bytes
5 files changed, 38 insertions, 27 deletions
diff --git a/macros/jptex/latex/jsclasses/LICENSE b/macros/jptex/latex/jsclasses/LICENSE
index 7d331ec015..a20b6f6667 100644
--- a/macros/jptex/latex/jsclasses/LICENSE
+++ b/macros/jptex/latex/jsclasses/LICENSE
@@ -1,6 +1,6 @@
Copyright 1995-1999 ASCII MEDIA WORKS
Copyright 1999-2016 Haruhiko Okumura
-Copyright 2016-2022 Japanese TeX Development Community
+Copyright 2016-2023 Japanese TeX Development Community
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/macros/jptex/latex/jsclasses/Makefile b/macros/jptex/latex/jsclasses/Makefile
index 3e91b82d58..bc467a8a30 100644
--- a/macros/jptex/latex/jsclasses/Makefile
+++ b/macros/jptex/latex/jsclasses/Makefile
@@ -3,7 +3,7 @@ DOCTARGET = jsclasses jslogo okumacro jsverb okuverb
PDFTARGET = $(addsuffix .pdf,$(DOCTARGET))
DVITARGET = $(addsuffix .dvi,$(DOCTARGET))
KANJI = -kanji=utf8
-FONTMAP = -f haranoaji.map -f ptex-haranoaji.map
+FONTMAP = -f ptex-haranoaji.map
TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)
default: $(STRIPTARGET) $(DVITARGET)
@@ -63,9 +63,11 @@ cleanall:
$(DVITARGET) $(PDFTARGET)
cleandoc:
rm -f $(DVITARGET) $(PDFTARGET)
+cleantmp:
+ rm -f *.aux *.log *.dvi
jisfile:
mkdir -p jis0
- cp *.{dtx,ins,cls,sty} jis0/
+ cp *.dtx *.ins *.cls *.sty jis0/
# GNU iconv can be used to convert UTF-8 -> ISO-2022-JP
for x in jis0/*; do \
if [ -f "$$x" ]; then \
diff --git a/macros/jptex/latex/jsclasses/README.md b/macros/jptex/latex/jsclasses/README.md
index da6539d7bd..5c022354f5 100644
--- a/macros/jptex/latex/jsclasses/README.md
+++ b/macros/jptex/latex/jsclasses/README.md
@@ -37,7 +37,7 @@ distributed separately.
## Release Date
-2022-09-13
+2023-02-12
Haruhiko Okumura,
Japanese TeX Development Community
diff --git a/macros/jptex/latex/jsclasses/jsclasses.dtx b/macros/jptex/latex/jsclasses/jsclasses.dtx
index 39c85dcabe..b84449ac8c 100644
--- a/macros/jptex/latex/jsclasses/jsclasses.dtx
+++ b/macros/jptex/latex/jsclasses/jsclasses.dtx
@@ -15,7 +15,7 @@
%
% Copyright 1995-1999 ASCII Corporation.
% Copyright 1999-2016 Haruhiko Okumura
-% Copyright 2016-2022 Japanese TeX Development Community
+% Copyright 2016-2023 Japanese TeX Development Community
%
% \fi
%
@@ -32,7 +32,7 @@
%<*driver>
\ProvidesFile{jsclasses.dtx}
%</driver>
- [2022/09/13 jsclasses (okumura, texjporg)]
+ [2023/02/12 jsclasses (okumura, texjporg)]
%<*driver>
\RequirePackage{plautopatch}
\documentclass[dvipdfmx]{jsarticle}
@@ -610,16 +610,16 @@
\jisfontfalse
\newif\if@jsc@uplatex
\@jsc@uplatexfalse
-\newif\if@jsc@autodetect
-\@jsc@autodetectfalse
\DeclareOption{winjis}{%
\ClassWarningNoLine{\jsc@clsname}{%
The option `winjis' has been removed;\MessageBreak
Use `\string\usepackage{winjis}' instead}}
\DeclareOption{mingoth}{\mingothtrue}
\DeclareOption{jis}{\jisfonttrue}
-\DeclareOption{uplatex}{\@jsc@uplatextrue}
-\DeclareOption{autodetect-engine}{\@jsc@autodetecttrue}
+\let\jsc@engine@given=*
+\DeclareOption{platex}{\let\jsc@engine@given=p\@jsc@uplatexfalse}
+\DeclareOption{uplatex}{\let\jsc@engine@given=u\@jsc@uplatextrue}
+\DeclareOption{autodetect-engine}{\let\jsc@engine@given=*}
\def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi}
\def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi}
\def\jsc@pfx@{\if@jsc@uplatex u\else \fi}
@@ -702,21 +702,31 @@
%
% \paragraph{使用エンジンの検査・自動判定}
%
-% ユーザが |uplatex| オプションの有無により指定したエンジンが,実際に
-% 使われているものと一致しているかを検査し,一致しない場合はエラー
-% メッセージを表示します。
+% デフォルトで現在使われているエンジンが p\LaTeX か up\LaTeX かを判定します。
+% ユーザによって |platex| オプションまたは |uplatex| オプションが明示的に
+% 指定されている場合は、実際に使われているエンジンと一致しているかを検査し,一致
+% しない場合はエラーメッセージを表示します。
%
% [2016-11-09] p\LaTeX / up\LaTeX を自動判別するオプション |autodetect-engine| を新設しました。
% up\LaTeX の場合は,グローバルオプションに |uplatex| を追加することで,
% 自動判定に応じて |otf| パッケージにも |uplatex| オプションが渡るようにします。
%
+% [2023-02-12] |autodetect-engine| 指定時の挙動を規定化しました。
+% また |platex| を新設しました。オプション |autodetect-engine|, |platex|, |uplatex| の
+% うち最後に指定されたものが有効になります。
+%
% \begin{macrocode}
\ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000
- \if@jsc@autodetect
+ \ifx *\jsc@engine@given
\ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
\@jsc@uplatextrue
\g@addto@macro\@classoptionslist{,uplatex}
\fi
+ \ifx p\jsc@engine@given
+ \ClassError\jsc@clsname
+ {Option 'platex' is specified but you are running upLaTeX.}
+ {\@ehc}
+ \fi
\if@jsc@uplatex\else
\ClassError\jsc@clsname
{You are running upLaTeX.\MessageBreak
@@ -725,14 +735,17 @@
{\@ehc}
\@jsc@uplatextrue
\fi
-% \end{macrocode}
-%
-% [2016-11-11] p\LaTeX の場合は,オプション |uplatex| が指定されていれば必ずエラーを出します。
-% |autodetect-engine| が有効になっていてもエラーを出しますが,これは |otf| パッケージに
-% |uplatex| オプションが渡ってしまうのを防ぐためです。
-%
-% \begin{macrocode}
\else
+ \ifx *\jsc@engine@given
+ \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
+ \@jsc@uplatexfalse
+ \g@addto@macro\@classoptionslist{,platex}
+ \fi
+ \ifx u\jsc@engine@given
+ \ClassError\jsc@clsname
+ {Option 'uplatex' is specified but you are running pLaTeX.}
+ {\@ehc}
+ \fi
\if@jsc@uplatex
\ClassError\jsc@clsname
{You are running pLaTeX.\MessageBreak
@@ -741,10 +754,6 @@
{\@ehc}
\@jsc@uplatexfalse
\fi
- \if@jsc@autodetect
- \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
- \@jsc@uplatexfalse
- \fi
\fi
% \end{macrocode}
%
@@ -5608,8 +5617,8 @@
% [2022-09-13] \LaTeXe~2021-11-15 (ltfloat.dtx 2021/10/14 v1.2g)で
% |\@currentcounter|が追加されましたので,追随します。
% なお,\LaTeXe~2021-06-01 (ltfloat.dtx 2021/02/10 v1.2e)で
-% parhook対応として\cs{par}が追加されていますが,
-% 実は同時に\cs{color@endgroup}も\cs{endgraf}するように変更
+% parhook対応として |\par| が追加されていますが,
+% 実は同時に |\color@endgroup| も |\endgraf| するように変更
% されていますので,不要だと思います。というわけで追加しません。
% \begin{macrocode}
\long\def\@footnotetext{%
diff --git a/macros/jptex/latex/jsclasses/jsclasses.pdf b/macros/jptex/latex/jsclasses/jsclasses.pdf
index 3a3f56fe36..18b0d895d6 100644
--- a/macros/jptex/latex/jsclasses/jsclasses.pdf
+++ b/macros/jptex/latex/jsclasses/jsclasses.pdf
Binary files differ