From 269940e8e52b921a855083542b9e1109af49af09 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 14 Jun 2021 03:01:12 +0000 Subject: CTAN sync 202106140301 --- language/japanese/BX/bxjaprnind/LICENSE | 2 +- language/japanese/BX/bxjaprnind/README-ja.md | 19 ++-- language/japanese/BX/bxjaprnind/README.md | 1 + language/japanese/BX/bxjaprnind/bxjaprnind.pdf | Bin 321328 -> 91296 bytes language/japanese/BX/bxjaprnind/bxjaprnind.sty | 142 +++++++++++++++++-------- language/japanese/BX/bxjaprnind/bxjaprnind.tex | 34 ++++-- 6 files changed, 141 insertions(+), 57 deletions(-) (limited to 'language/japanese/BX') diff --git a/language/japanese/BX/bxjaprnind/LICENSE b/language/japanese/BX/bxjaprnind/LICENSE index 8ada757fbc..58cd49d31d 100644 --- a/language/japanese/BX/bxjaprnind/LICENSE +++ b/language/japanese/BX/bxjaprnind/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (c) 2017 Takayuki YATO (aka. "ZR") +Copyright (c) 2012-2021 Takayuki YATO (aka. "ZR") Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/language/japanese/BX/bxjaprnind/README-ja.md b/language/japanese/BX/bxjaprnind/README-ja.md index 8c82f26e7c..f02b218df8 100644 --- a/language/japanese/BX/bxjaprnind/README-ja.md +++ b/language/japanese/BX/bxjaprnind/README-ja.md @@ -8,9 +8,10 @@ LaTeX: 段落頭の開き括弧類の位置の自動調整 ### 対応環境 - - TeX フォーマット: LaTeX - - TeX エンジン: pTeX/upTeX/LuaTeX(+LuaTeX-ja) - - 依存パッケージ: bxtoolbox([BXbase] バンドル) + * TeX フォーマット: LaTeX + * TeX エンジン: pTeX/upTeX/LuaTeX(+LuaTeX-ja) + * 依存パッケージ: + - bxtoolbox([BXbase] バンドル) [BXbase]: https://www.ctan.org/pkg/bxbase @@ -18,7 +19,7 @@ LaTeX: 段落頭の開き括弧類の位置の自動調整 TDS 1.1 に準拠するシステムの場合、以下のようにファイルを移動する: - - *.sty → $TEXMF/tex/latex/BXjaprnind + - `*.sty` → $TEXMF/tex/latex/BXjaprnind この後必要に応じて mktexlsr を実行する。 @@ -26,14 +27,19 @@ TDS 1.1 に準拠するシステムの場合、以下のようにファイルを 本パッケージは MIT ライセンスの下で配布される。 + bxjaprnind パッケージ ― 本体 ----------------------------- 詳細は解説文書 bxjaprnind.pdf を参照。 + 更新履歴 -------- + * Version 0.4 〈2021/06/06〉 + - バグ修正。 + - `force` オプションを追加。 * Version 0.3b 〈2017/09/12〉 - source special 挿入への対策。 * Version 0.3a 〈2013/05/05〉 @@ -41,7 +47,8 @@ bxjaprnind パッケージ ― 本体 * Version 0.3 〈2013/04/29〉 - everyhook パッケージへの依存を無くした。 * Version 0.2 〈2012/05/14〉 + - 最初の公開版。 ----------------------------------------- +-------------------- Takayuki YATO (aka. "ZR") -http://zrbabbler.sp.land.to/ +https://github.com/zr-tex8r diff --git a/language/japanese/BX/bxjaprnind/README.md b/language/japanese/BX/bxjaprnind/README.md index bbe62aeab0..f89074a6bb 100644 --- a/language/japanese/BX/bxjaprnind/README.md +++ b/language/japanese/BX/bxjaprnind/README.md @@ -52,6 +52,7 @@ See the manual bxjaprnind.pdf (in Japanese) for detail. Revision History ---------------- + * Version 0.4 〈2021/06/06〉 * Version 0.3b 〈2017/09/12〉 * Version 0.3a 〈2013/05/05〉 * Version 0.3 〈2013/04/29〉 diff --git a/language/japanese/BX/bxjaprnind/bxjaprnind.pdf b/language/japanese/BX/bxjaprnind/bxjaprnind.pdf index 3de18a0b44..b423988dfb 100644 Binary files a/language/japanese/BX/bxjaprnind/bxjaprnind.pdf and b/language/japanese/BX/bxjaprnind/bxjaprnind.pdf differ diff --git a/language/japanese/BX/bxjaprnind/bxjaprnind.sty b/language/japanese/BX/bxjaprnind/bxjaprnind.sty index 77196e842f..821ccc9a8f 100644 --- a/language/japanese/BX/bxjaprnind/bxjaprnind.sty +++ b/language/japanese/BX/bxjaprnind/bxjaprnind.sty @@ -1,43 +1,76 @@ -% -% bxjaprnind.sty -% - +%% +%% This is file 'bxjaprnind.sty'. +%% +%% Copyright (c) 2012-2021 Takayuki YATO (aka. "ZR") +%% GitHub: https://github.com/zr-tex8r +%% Twitter: @zr_tex8r +%% +%% This package is distributed under the MIT License. +%% + +%% package declaration \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bxjaprnind}[2017/09/12 v0.3b] - +\ProvidesPackage{bxjaprnind}[2021/06/06 v0.4] \def\bxpi@pkgname{bxjaprnind} -\def\bxpi@error{\PackageError\bxpi@pkgname} - -%% definitions -\newdimen\bxpi@dima %% code guards \edef\bxpi@restore@codes{% -\catcode33=\the\catcode33% -\catcode34=\the\catcode34%<"> -\catcode62=\the\catcode62%<>> +\catcode33=\the\catcode33% +\catcode34=\the\catcode34% +\catcode39=\the\catcode39% +\catcode45=\the\catcode45% +\catcode46=\the\catcode46% +\catcode47=\the\catcode47% +\catcode58=\the\catcode58% +\catcode59=\the\catcode59% +\catcode60=\the\catcode60% +\catcode62=\the\catcode62% \endlinechar=\the\endlinechar% \relax}% -\catcode33=12 % -\catcode34=12 % -\catcode62=12 % +\catcode33=12 % +\catcode34=12 % <"> +\catcode39=12 % <'> +\catcode45=12 % <-> +\catcode46=12 % <.> +\catcode47=12 % +\catcode58=12 % <:> +\catcode59=12 % <;> +\catcode60=12 % <<> +\catcode62=12 % <>> \AtEndOfPackage{% \bxpi@restore@codes \undef\bxpi@restore@codes} -%------------------- setting the everypar hook +%--------------------------------------- prologue +%% packages \RequirePackage{bxtoolbox} +%% variables +\newbool{bxpi@everyhook} +\newbool{bxpi@force} +\newdimen\bxpi@dima + +%--------------------------------------- options + +%% force +\DeclareOption{force}{% + \bxpi@forcetrue +} +%% dispatch +\ProcessOptions* + +%--------------------------------------- set the paragraph hook + %% Checks if everyhook package is available -\@tempswafalse +\bxpi@everyhookfalse \ifbxineTeX \IfFileExists{everyhook.sty}{% - \@tempswatrue + \bxpi@everyhooktrue }{} \fi -\if@tempswa +\ifbxpi@everyhook % if everyhook is available... \RequirePackage{everyhook}[2011/02/04] @@ -52,9 +85,16 @@ \everypar\bxpi@everypar \bxpi@everypar{\the\expandafter\everypar\bxpi@par@hook}% + \ifbxpi@force + \PackageError\bxpi@pkgname{% + Option 'force' is not supported because\MessageBreak + package 'everyhook' is not available% + }{\@ehc} + \bxpi@forcefalse + \fi \fi \endlinechar=-1 % -%------------------- setting the newline hook +%--------------------------------------- the newline hook %% adds hooks to (subcommands of) \\ \preto\@xnewline{\bxpi@init@param} @@ -74,38 +114,39 @@ \bxpi@next \endgroup -%------------------- helpers +%--------------------------------------- helpers %% \bxpi@inhibitglue \ifdef\inhibitglue{ \let\bxpi@inhibitglue\inhibitglue }{%else \let\bxpi@inhibitglue\relax - \bxpi@warn{ - \string\inhibitglue\space unavailable in current settings; - \MessageBreak the package may not work properly + \PackageWarningNoLine\bxpi@pkgname{ + Command \string\inhibitglue\space + unavailable in current settings;\MessageBreak + the package may not work properly } } -%------------------- main +%--------------------------------------- main -%% \def\bxpi@parhead +%% \bxpi@parhead \def\bxpi@parhead{0} -%% \def\bxpi@linehead +%% \bxpi@linehead \def\bxpi@linehead{0} -%% \def\bxpi@dialogue +%% \bxpi@dialogue \def\bxpi@dialogue{0.5} -%% \def\bxpi@lineheadforce +%% \bxpi@lineheadforce \def\bxpi@lineheadforce{1} -%% \ifbxpi@d@parprnind +%% switch bxpi@d@parprnind \newbool{bxpi@d@parprnind}\bxpi@d@parprnindtrue -%% \ifbxpi@d@lineprnind +%% switch bxpi@d@lineprnind \newbool{bxpi@d@lineprnind}\bxpi@d@lineprnindtrue -%% \ifbxpi@diaprnind +%% switch bxpi@diaprnind \newbool{bxpi@diaprnind}\bxpi@diaprnindfalse -%% \ifbxpi@prnind +%% switch bxpi@prnind \newbool{bxpi@prnind} -%% \ifbxpi@forceind +%% switch bxpi@forceind \newbool{bxpi@forceind} %% \bxpi@choice \let\bxpi@choice\relax @@ -196,7 +237,7 @@ % and sets the switches bxpi@forceind and bxpi@prnind, then % sets the remaining string to \bxpi@res, which is passed to % the original argument parser (\@newline). -\def\bxpi@parse@arg#1{% +\def\bxpi@parse@arg#1{ \bxpi@parse@arg@a#1\bxpi@end } \def\bxpi@parse@arg@a{ @@ -216,7 +257,7 @@ \def\bxpi@res{#1} } } -\def\bxpi@parse@arg@d#1{% +\def\bxpi@parse@arg@d#1{ \bxIfx{,#1}{ \bxpi@parse@arg@a }{\bxIfx{!#1}{ @@ -242,6 +283,7 @@ \futurelet\bxpi@tok\bxpi@par@hook@a } \def\bxpi@par@hook@a{ +%\bxDebug{peek:\meaning\bxpi@tok} \bxIfx{\bxpi@tok\special}{ \bxpi@par@hook@b }{%else @@ -275,7 +317,7 @@ \futurelet\bxpi@tok\bxpi@prnindent@a } \def\bxpi@prnindent@a{ - \bxIf{\@sptoken\bxpi@tok}{ + \bxIfx{\@sptoken\bxpi@tok}{ \bxpi@prnindent@space }{\bxIfCharToken\bxpi@tok{ \bxpi@prnindent@b @@ -346,10 +388,10 @@ \bxCsNoexpand{ifbxpi@d@lineprnind} } -%------------------- character table +%--------------------------------------- character table -%% \bxpi@P/ -\def\do#1#2{% +%% \[bxpi@P/] +\def\do#1#2{ \bxToUcsCharDual{"#1}{"#2} \cslet{bxpi@P/\bxRes}{t} } @@ -376,13 +418,25 @@ \do{301D} \fi -%% \bxpi@DP/ -\def\do#1#2{% +%% \[bxpi@DP/] +\def\do#1#2{ \bxToUcsCharDual{"#1}{"#2} \cslet{bxpi@DP/\bxRes}{t} } \do{2156}{300C} \do{2158}{300E} -%------------------- all done +%--------------------------------------- 'force' option +\ifbxpi@force + +%% re-attach the hook at begin-document +\AfterEndPreamble{ + \let\bxpi@par@hook@again\bxpi@par@hook + \let\bxpi@par@hook\relax + \PushPostHook{par}{\bxpi@par@hook@again} +} + +\fi +%--------------------------------------- all done \endinput +%% EOF diff --git a/language/japanese/BX/bxjaprnind/bxjaprnind.tex b/language/japanese/BX/bxjaprnind/bxjaprnind.tex index d9f63c803a..632e465038 100644 --- a/language/japanese/BX/bxjaprnind/bxjaprnind.tex +++ b/language/japanese/BX/bxjaprnind/bxjaprnind.tex @@ -1,12 +1,23 @@ % 文字コードは UTF-8 % lualatex で組版する(LuaTeX-ja 使用) \documentclass[a4paper]{ltjsarticle} -\usepackage[ipaex]{luatexja-preset} -\usepackage{metalogo} +\usepackage[haranoaji]{luatexja-preset} +\setmainfont{Harano Aji Mincho} +\setsansfont{Harano Aji Gothic} +\setmonofont{InconsolataN} +\usepackage{color} +\definecolor{myblue}{rgb}{0,0,0.75} +\definecolor{mygreen}{rgb}{0,0.45,0} +\usepackage[colorlinks,hyperfootnotes=false]{hyperref} +\hypersetup{linkcolor=myblue,urlcolor=mygreen, + pdftitle={bxjaprnindパッケージ}, + pdfauthor={八登崇之}} +\usepackage{bxtexlogo} +\bxtexlogoimport{*} \usepackage{shortvrb} \MakeShortVerb{\|} -\newcommand{\PkgVersion}{0.3b} -\newcommand{\PkgDate}{2017/09/12} +\newcommand{\PkgVersion}{0.4} +\newcommand{\PkgDate}{2021/06/06} \newcommand{\Pkg}[1]{\textsf{#1}} \newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$} \newcommand{\Note}{\par\noindent ※} @@ -22,6 +33,7 @@ %=========================================================== \section{概要} +\label{sec:Overview} 以下の機能を提供する。 \begin{itemize} @@ -55,15 +67,25 @@ %=========================================================== \section{パッケージの読込} +\label{sec:Loading} |\usepackage| で読み込む。 -オプションはない。 \begin{verbatim} -\usepackage{bxjaprnind} +\usepackage[|\Meta{オプション}|...]{bxjaprnind} \end{verbatim} +以下のオプションが利用できる。 + +\begin{itemize} +\item |force|\Means + 本パッケージは「段落の先頭の走査」を行っているため、同様の機能を + もつクラス・パッケージと衝突する可能性がある。 + |force|は、衝突時に本パッケージの機能を優先することを試みる。 +\end{itemize} + %=========================================================== \section{機能} +\label{sec:Usage} 以下の命令が提供される。 -- cgit v1.2.3