summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-07 19:53:52 +0000
committerKarl Berry <karl@freefriends.org>2019-05-07 19:53:52 +0000
commit874a1c81cef02ef6271a1e6f84e269406ed5c5d1 (patch)
treee7b204fc55f8f8f86567e0d95c728aa072f33716
parent110d0c094cd32fdf5d099451643ccae5b31b66dc (diff)
jlreq (7may19)
git-svn-id: svn://tug.org/texlive/trunk@51036 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/jlreq/README-ja.md4
-rw-r--r--Master/texmf-dist/doc/latex/jlreq/README.md4
-rw-r--r--Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html6
-rw-r--r--Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks-ja.html14
-rw-r--r--Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks.html14
-rw-r--r--Master/texmf-dist/doc/latex/jlreq/jlreq.html6
-rw-r--r--Master/texmf-dist/tex/latex/jlreq/jlreq-helpers.sty16
-rw-r--r--Master/texmf-dist/tex/latex/jlreq/jlreq.cls289
-rw-r--r--Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua2
-rw-r--r--Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua4
10 files changed, 138 insertions, 221 deletions
diff --git a/Master/texmf-dist/doc/latex/jlreq/README-ja.md b/Master/texmf-dist/doc/latex/jlreq/README-ja.md
index 867704d36f0..8425fdbbf19 100644
--- a/Master/texmf-dist/doc/latex/jlreq/README-ja.md
+++ b/Master/texmf-dist/doc/latex/jlreq/README-ja.md
@@ -439,6 +439,10 @@ JFMの名前は次の通りです.`[]`で囲まれている文字は設定に
- `zref`パッケージの利用をやめた.
- 新元号を追加.
- バグ修正.
+* 2019-05-07
+ - わずかな誤差で行数が減ってしまうのを防ぐために,`\textwidth`と`\textheight`を少しだけ増やした.
+ - `\DeclarePageStyle`内の`running_head_ii`などの実装を変更.
+ - バグ修正
--------------
diff --git a/Master/texmf-dist/doc/latex/jlreq/README.md b/Master/texmf-dist/doc/latex/jlreq/README.md
index 77fd1f9f9d0..8d8b2879540 100644
--- a/Master/texmf-dist/doc/latex/jlreq/README.md
+++ b/Master/texmf-dist/doc/latex/jlreq/README.md
@@ -111,6 +111,10 @@ This package is distributed under the BSD 2-Clause License. See [LICENSE](LICENS
- Stopped to use `zref` package.
- New regnal year.
- Fixed bugs.
+* 2019-05-07
+ - Added a small length to `\textwidth` and `\textheight'.
+ - Changed the implementation of `running_head_ii` etc. in `\DeclarePageStyle`.
+ - Fixed bugs.
--------------
diff --git a/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html b/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html
index a58f5681ccc..15af119c349 100644
--- a/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html
+++ b/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html
@@ -536,6 +536,12 @@
<li>新元号を追加.</li>
<li>バグ修正.</li>
</ul></li>
+<li>2019-05-07
+<ul>
+<li>わずかな誤差で行数が減ってしまうのを防ぐために,<code>\textwidth</code>と<code>\textheight</code>を少しだけ増やした.</li>
+<li><code>\DeclarePageStyle</code>内の<code>running_head_ii</code>などの実装を変更.</li>
+<li>バグ修正</li>
+</ul></li>
</ul>
<hr />
<p>Noriyuki Abe <a href="https://github.com/abenori/jlreq" class="uri">https://github.com/abenori/jlreq</a></p>
diff --git a/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks-ja.html b/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks-ja.html
index 5c0cec43e4d..3fa834e4d61 100644
--- a/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks-ja.html
+++ b/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks-ja.html
@@ -136,12 +136,12 @@
</ul>
<h3 id="bleed_margin"><code>bleed_margin</code></h3>
<p>仕上がりと裁ち落としの間(ドブ)の長さを指定します.次のようにすると,上下左右を独立に変更できます.</p>
-<pre class="sourceCode latex" id="cb2"><code class="sourceCode latex"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="bu">\usepackage</span>[bleed_margin={top=3mm,bottom=5mm,gutter=0mm,fore-edge=2mm}]{<span class="ex">jlreq-trimmarks</span>}</a></code></pre>
+<div class="sourceCode" id="cb2"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="bu">\usepackage</span>[bleed_margin={top=3mm,bottom=5mm,gutter=0mm,fore-edge=2mm}]{<span class="ex">jlreq-trimmarks</span>}</a></code></pre></div>
<h2 id="jlreqtrimmarkssetup"><code>\jlreqtrimmarkssetup</code></h2>
<p>パッケージオプションで指定できない設定を行えます.keyval形式です.</p>
<h3 id="banner"><code>banner</code></h3>
<p><code>show=banner</code>時に出力される文字列.通常は左上に出力されますが,四つ角および上下左右の中心に出力することもできます.指定は</p>
-<pre class="sourceCode latex" id="cb3"><code class="sourceCode latex"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
+<div class="sourceCode" id="cb3"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"> banner={</a>
<a class="sourceLine" id="cb3-3" data-line-number="3"> &lt;場所(上下,左右中央)&gt;={</a>
<a class="sourceLine" id="cb3-4" data-line-number="4"> &lt;細かな位置&gt;={</a>
@@ -151,9 +151,9 @@
<a class="sourceLine" id="cb3-8" data-line-number="8"> }</a>
<a class="sourceLine" id="cb3-9" data-line-number="9"> }</a>
<a class="sourceLine" id="cb3-10" data-line-number="10"> }</a>
-<a class="sourceLine" id="cb3-11" data-line-number="11">}</a></code></pre>
+<a class="sourceLine" id="cb3-11" data-line-number="11">}</a></code></pre></div>
<p>のようになります.キー名は省略することもできます.例えば次のように指定します.</p>
-<pre class="sourceCode latex" id="cb4"><code class="sourceCode latex"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
+<div class="sourceCode" id="cb4"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"> banner={</a>
<a class="sourceLine" id="cb4-3" data-line-number="3"> top-right={</a>
<a class="sourceLine" id="cb4-4" data-line-number="4"> tate={</a>
@@ -175,10 +175,10 @@
<a class="sourceLine" id="cb4-20" data-line-number="20"> below={ノド側中央の下側に表示},</a>
<a class="sourceLine" id="cb4-21" data-line-number="21"> },</a>
<a class="sourceLine" id="cb4-22" data-line-number="22"> }</a>
-<a class="sourceLine" id="cb4-23" data-line-number="23">}</a></code></pre>
+<a class="sourceLine" id="cb4-23" data-line-number="23">}</a></code></pre></div>
<p>場所は<code>top/bottom/center</code>と<code>left/right/center/gutter/fore-edge</code>の可能な組み合わせが指定可能です.各項目に<code>\thepage</code>を指定するとページ数を出力できます.</p>
<p>次のような指定も可能です.</p>
-<pre class="sourceCode latex" id="cb5"><code class="sourceCode latex"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
+<div class="sourceCode" id="cb5"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
<a class="sourceLine" id="cb5-2" data-line-number="2"> banner={</a>
<a class="sourceLine" id="cb5-3" data-line-number="3"> tate={左上に縦書き}, <span class="co">% 場所が省略されるとtop-leftと見なされる.</span></a>
<a class="sourceLine" id="cb5-4" data-line-number="4"> odd={左上奇数ページ}, <span class="co">% 省略されたのでyokoと見なされる.</span></a>
@@ -186,7 +186,7 @@
<a class="sourceLine" id="cb5-6" data-line-number="6"> odd={右上奇数ページ} <span class="co">% ここもyokoが省略されている.</span></a>
<a class="sourceLine" id="cb5-7" data-line-number="7"> }</a>
<a class="sourceLine" id="cb5-8" data-line-number="8"> }</a>
-<a class="sourceLine" id="cb5-9" data-line-number="9">}</a></code></pre>
+<a class="sourceLine" id="cb5-9" data-line-number="9">}</a></code></pre></div>
<h3 id="trimmarks_width"><code>trimmarks_width</code></h3>
<p>トンボ自身の太さを指定します.</p>
<h3 id="color"><code>color</code></h3>
diff --git a/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks.html b/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks.html
index b331ef9c21e..5643714b044 100644
--- a/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks.html
+++ b/Master/texmf-dist/doc/latex/jlreq/jlreq-trimmarks.html
@@ -135,12 +135,12 @@
</ul>
<h3 id="bleed_margin"><code>bleed_margin</code></h3>
<p>Set the bleed margin. You can also specify as follows.</p>
-<pre class="sourceCode latex" id="cb2"><code class="sourceCode latex"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="bu">\usepackage</span>[bleed_margin={top=3mm,bottom=5mm,gutter=0mm,fore-edge=2mm}]{<span class="ex">jlreq-trimmarks</span>}</a></code></pre>
+<div class="sourceCode" id="cb2"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="bu">\usepackage</span>[bleed_margin={top=3mm,bottom=5mm,gutter=0mm,fore-edge=2mm}]{<span class="ex">jlreq-trimmarks</span>}</a></code></pre></div>
<h2 id="jlreqtrimmarkssetup"><code>\jlreqtrimmarkssetup</code></h2>
<p>Set the additional settings with the keyval style.</p>
<h3 id="banner"><code>banner</code></h3>
<p>The things which the package outputs when <code>show=banner</code> is specified in the package option. Normally it is showed in the left of the top. You can also put them in many places with</p>
-<pre class="sourceCode latex" id="cb3"><code class="sourceCode latex"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
+<div class="sourceCode" id="cb3"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"> banner={</a>
<a class="sourceLine" id="cb3-3" data-line-number="3"> &lt;Position (top/bottom, left/right, center)&gt;={</a>
<a class="sourceLine" id="cb3-4" data-line-number="4"> &lt;more precise position&gt;={</a>
@@ -150,9 +150,9 @@
<a class="sourceLine" id="cb3-8" data-line-number="8"> }</a>
<a class="sourceLine" id="cb3-9" data-line-number="9"> }</a>
<a class="sourceLine" id="cb3-10" data-line-number="10"> }</a>
-<a class="sourceLine" id="cb3-11" data-line-number="11">}</a></code></pre>
+<a class="sourceLine" id="cb3-11" data-line-number="11">}</a></code></pre></div>
<p>Here is an example.</p>
-<pre class="sourceCode latex" id="cb4"><code class="sourceCode latex"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
+<div class="sourceCode" id="cb4"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"> banner={</a>
<a class="sourceLine" id="cb4-3" data-line-number="3"> top-right={</a>
<a class="sourceLine" id="cb4-4" data-line-number="4"> vertical={</a>
@@ -170,10 +170,10 @@
<a class="sourceLine" id="cb4-16" data-line-number="16"> in={In the trim area in the center of the bottom.},</a>
<a class="sourceLine" id="cb4-17" data-line-number="17"> }</a>
<a class="sourceLine" id="cb4-18" data-line-number="18"> }</a>
-<a class="sourceLine" id="cb4-19" data-line-number="19">}</a></code></pre>
+<a class="sourceLine" id="cb4-19" data-line-number="19">}</a></code></pre></div>
<p>A possible combination of <code>top/bottom/center</code> and <code>left/right/center/gutter/fore-edge</code> can be used for the position. You can use <code>\thepage</code> to output the number of the page.</p>
<p>The keys can be ommited. For example:</p>
-<pre class="sourceCode latex" id="cb5"><code class="sourceCode latex"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
+<div class="sourceCode" id="cb5"><pre class="sourceCode latex"><code class="sourceCode latex"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="fu">\jlreqtrimmarkssetup</span>{</a>
<a class="sourceLine" id="cb5-2" data-line-number="2"> banner={</a>
<a class="sourceLine" id="cb5-3" data-line-number="3"> vertical={Vertical mode, in the top of the left},</a>
<a class="sourceLine" id="cb5-4" data-line-number="4"> odd={In the top of the left, only in odd pages.}, <span class="co">% regarded as `horizontal`</span></a>
@@ -181,7 +181,7 @@
<a class="sourceLine" id="cb5-6" data-line-number="6"> odd={In the top of the right, only in odd pages, horizontal mode.}</a>
<a class="sourceLine" id="cb5-7" data-line-number="7"> }</a>
<a class="sourceLine" id="cb5-8" data-line-number="8"> }</a>
-<a class="sourceLine" id="cb5-9" data-line-number="9">}</a></code></pre>
+<a class="sourceLine" id="cb5-9" data-line-number="9">}</a></code></pre></div>
<h3 id="trimmarks_width"><code>trimmarks_width</code></h3>
<p>Set the width of trim marks.</p>
<h3 id="color"><code>color</code></h3>
diff --git a/Master/texmf-dist/doc/latex/jlreq/jlreq.html b/Master/texmf-dist/doc/latex/jlreq/jlreq.html
index 72e6fe413b4..b22b2bd0750 100644
--- a/Master/texmf-dist/doc/latex/jlreq/jlreq.html
+++ b/Master/texmf-dist/doc/latex/jlreq/jlreq.html
@@ -209,6 +209,12 @@
<li>New regnal year.</li>
<li>Fixed bugs.</li>
</ul></li>
+<li>2019-05-07
+<ul>
+<li>Added a small length to <code>\textwidth</code> and `\textheight'.</li>
+<li>Changed the implementation of <code>running_head_ii</code> etc. in <code>\DeclarePageStyle</code>.</li>
+<li>Fixed bugs.</li>
+</ul></li>
</ul>
<hr />
<p>Noriyuki Abe <a href="https://github.com/abenori/jlreq" class="uri">https://github.com/abenori/jlreq</a></p>
diff --git a/Master/texmf-dist/tex/latex/jlreq/jlreq-helpers.sty b/Master/texmf-dist/tex/latex/jlreq/jlreq-helpers.sty
index 2d4039951bb..5591c6261b9 100644
--- a/Master/texmf-dist/tex/latex/jlreq/jlreq-helpers.sty
+++ b/Master/texmf-dist/tex/latex/jlreq/jlreq-helpers.sty
@@ -60,6 +60,12 @@
% #1が\jlreq@endmarkか
\long\def\jlreq@ifendmark#1{\jlreq@iffirsttoken{#1}{\jlreq@endmark}}
+% 条件.\jlreq@if{ifnum\@count=1 \fi}{<TRUE>}{<FALSE>}みたいに使う
+\def\jlreq@if@endmark{\jlreq@if@endmark}
+\def\jlreq@if#1{\jlreq@if@#1\jlreq@if@endmark}
+\@gobbletwo\if\if
+\def\jlreq@if@#1\fi\jlreq@if@endmark{#1\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
+
% #1の先頭が引数なしのマクロか
\long\def\jlreq@ifmacro@noargument#1{%
\jlreq@ifempty{#1}{\@secondoftwo}{%
@@ -164,7 +170,7 @@
\def\jlreq@helper@dividebycomma@#1,#2\jlreq@endmark{%
\jlreq@helper@trim{#1}{\jlreq@resulta}%
\jlreq@helper@trim{#2}{\jlreq@resultb}%
- \ifx\jlreq@resultb\@empty\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\ifx\jlreq@resultb\@empty\fi}{%
\jlreq@resultfalse
}{%
\jlreq@resulttrue
@@ -366,7 +372,7 @@
\edef\jlreq@do{\unexpanded{#2}}%
}{%
\edef\jlreq@tempb{\jlreq@ifempty{#1}{#2}{\unexpanded{#2}}}%
- \ifx\jlreq@tempa\jlreq@tempb\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\ifx\jlreq@tempa\jlreq@tempb\fi}{%
\edef\jlreq@do{\unexpanded{#3}}%
\jlreq@deleteuntileendmark
}{%
@@ -377,11 +383,11 @@
% オレオレラベル……
% \jlreq@reference@ref{ラベル名}{デフォルト値}
-\def\jlreq@reference@ref#1{\expandafter\ifx\csname jlreq@reference@#1\endcsname\relax\expandafter\@secondoftwo\else\expandafter\@firstoftwo\fi{\csname jlreq@reference@#1\endcsname}}
+\def\jlreq@reference@ref#1{\jlreq@if{\expandafter\ifx\csname jlreq@reference@#1\endcsname\fi}{\csname jlreq@reference@#1\endcsname}}
% \jlreq@reference@label{ラベル名}{値}
\def\jlreq@reference@label#1#2{\protected@write\@auxout{}{\string\@newl@bel{jlreq@reference}{#1}{#2}}}%
\def\jlreq@reference@immediate@write#1#2{\immediate\write\@auxout{\string\@newl@bel{jlreq@reference}{#1}{#2}}}%
-\def\jlreq@reference@ifexist#1{\expandafter\ifx\csname jlreq@reference@#1\endcsname\relax\expandafter\@secondoftwo\else\expandafter\@firstoftwo\fi}
+\def\jlreq@reference@ifexist#1{\jlreq@if{\expandafter\ifx\csname jlreq@reference@#1\endcsname\fi}}
% 自動生成されるラベル用の番号
\newcount\jlreq@reference@count
@@ -412,7 +418,7 @@
\def\jlreq@helper@checktokenlist#1#2{%
\jlreq@ifendmark{#2}{\@firstoftwo}%
{%
- \ifnum0#1{#2}>0 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
+ \jlreq@if{\ifnum0#1{#2}>0 \fi}%
{\jlreq@helper@checktokenlist{#1}}%
{\expandafter\@secondoftwo\jlreq@deleteuntileendmark}%
}%
diff --git a/Master/texmf-dist/tex/latex/jlreq/jlreq.cls b/Master/texmf-dist/tex/latex/jlreq/jlreq.cls
index 44f29847a8d..25758ea7ab1 100644
--- a/Master/texmf-dist/tex/latex/jlreq/jlreq.cls
+++ b/Master/texmf-dist/tex/latex/jlreq/jlreq.cls
@@ -5,7 +5,7 @@
%%
% (based on JLReq 20120403 https://www.w3.org/TR/2012/NOTE-jlreq-20120403/ja/)
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{jlreq}[2019/04/01 jlreq]
+\ProvidesClass{jlreq}[2019/05/07 jlreq]
\RequirePackage{xkeyval,everyhook,filehook,etoolbox,ifthen}
\RequirePackage{jlreq-helpers}
@@ -40,7 +40,7 @@
\expandafter\let\csname jlreq@original@\expandafter\@gobble\string#1\endcsname=#1
}
\def\jlreq@useoriginalcs#1{%
- \ifcsname jlreq@original@\expandafter\@gobble\string#1\endcsname\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
+ \jlreq@if{\ifcsname jlreq@original@\expandafter\@gobble\string#1\endcsname\fi}%
{\csname jlreq@original@\expandafter\@gobble\string#1\endcsname}%
{#1}%
}
@@ -376,31 +376,31 @@
}
\long\def\jlreq@helper@ifletter#1{%
- \ifnum
- 0%
- \ifcat 阿\noexpand #11\fi
- \ifcat あ\noexpand #11\fi
- \ifcat (\noexpand #11\fi
- \ifcat A\noexpand #11\fi
- \ifcat 1\noexpand #11\fi
- >0
- \expandafter\@firstoftwo\else\expandafter\@secondoftwo
- \fi
+ \jlreq@if{%
+ \ifnum
+ 0%
+ \ifcat 阿\noexpand #11\fi
+ \ifcat あ\noexpand #11\fi
+ \ifcat (\noexpand #11\fi
+ \ifcat A\noexpand #11\fi
+ \ifcat 1\noexpand #11\fi
+ >0
+ \fi}%
}
% 組方向を判定
% \jlreq@if(y|t)(dir|box)を定義する.
-\ifx l\jlreq@engine\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{
- \def\jlreq@ifydir{\ifnum\ltjgetparameter{direction}=4 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
- \def\jlreq@iftdir{\ifnum\numexpr\ltjgetparameter{direction}-(\ltjgetparameter{direction}/8)*8\relax=3 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
- \def\jlreq@ifybox#1{\ifnum\ltjgetparameter{boxdir}{#1}=4 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
- \def\jlreq@iftbox#1{\ifnum\numexpr\ltjgetparameter{boxdir}{#1}-(\ltjgetparameter{boxdir}{#1}/8)*8\relax=3 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
+\jlreq@if{\ifx l\jlreq@engine\fi}{
+ \def\jlreq@ifydir{\jlreq@if{\ifnum\ltjgetparameter{direction}=4 \fi}}
+ \def\jlreq@iftdir{\jlreq@if{\ifnum\numexpr\ltjgetparameter{direction}-(\ltjgetparameter{direction}/8)*8\relax=3 \fi}}
+ \def\jlreq@ifybox#1{\jlreq@if{\ifnum\ltjgetparameter{boxdir}{#1}=4 \fi}}
+ \def\jlreq@iftbox#1{\jlreq@if{\ifnum\numexpr\ltjgetparameter{boxdir}{#1}-(\ltjgetparameter{boxdir}{#1}/8)*8\relax=3 \fi}}
}{
- \def\jlreq@ifydir{\ifydir\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
- \def\jlreq@iftdir{\iftdir\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
- \def\jlreq@ifybox#1{\ifybox#1\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
- \def\jlreq@iftbox#1{\iftbox#1\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
+ \def\jlreq@ifydir{\jlreq@if{\ifydir\fi}}
+ \def\jlreq@iftdir{\jlreq@if{\iftdir\fi}}
+ \def\jlreq@ifybox#1{\jlreq@if{\ifybox#1\fi}}
+ \def\jlreq@iftbox#1{\jlreq@if{\iftbox#1\fi}}
}
% 左ページであるか
@@ -1332,6 +1332,7 @@
\if@twocolumn
\setlength{\textwidth}{\dimexpr2\textwidth + \columnsep\relax}
\fi
+\addtolength{\textwidth}{0.0001pt}
%.. \textheight:行送り方向の長さ
@@ -1364,6 +1365,7 @@
\else
\setlength{\textheight}{\dimexpr\numexpr\jlreq@option@number@of@lines\relax\baselineskip - \baselineskip + \topskip\relax}
\fi
+\addtolength{\textheight}{0.0001pt}
%.. 横
\def\jlreq@setsidemargin@by@gutter#1{
@@ -1635,7 +1637,7 @@
{\long\gdef\jlreqHeadingText####1{####1}}%
}%
\ifjlreq@number
- \unexpanded{\ifnum#2>\c@secnumdepth\relax\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}{%
+ \unexpanded{\jlreq@if{\ifnum#2>\c@secnumdepth\relax\fi}}{%
\unexpanded{\long\gdef\jlreqHeadingLabel####1{}}%
\expandonce{\jlreq@format{}{##1}}%
}{%
@@ -1724,11 +1726,18 @@
\long\def\jlreq@BlockHeading@start@@@@#1#2#3#4#5#6#7#8{%
\edef\jlreq@tempa##1##2##3##4##5##6##7{%
\unexpanded{\jlreq@BlockHeading@start@makeoutput{#1}{#2}}{{##1}{##2}{##3}}{\expandonce{\jlreq@BlockHeading@start@eachformat}}{\expandonce{\jlreq@BlockHeading@start@format}}\unexpanded{{#5}{#6}{#7}{#8}}%
- \unexpanded{\def\jlreq@tempb}{{##4}{##5}{##6}{##7}}% 縦方向空き
+ \unexpanded{\def\jlreq@tempb}{{##4}{##5}{##6}}% 縦方向空き
+ \noexpand\jlreq@ifempty{##7}{\noexpand\jlreq@tempatrue}{\noexpand\jlreq@tempafalse}% 偶数ページのみで改ページするならば\jlreq@tempatrue
}%
\jlreq@tempa#3%
\global\advance\jlreq@BlockHeading@spaces@current@count by 1
\gappto\jlreq@BlockHeading@spaces@current@sequence{_#1}%
+ % 連続する見出しの間の処理をするために,即時では出力せず,いったんマクロに格納する.
+ % \jlreq@BlockHeading@spaces@current@before@<n>
+ % \jlreq@BlockHeading@start@gyodori\jlreq@BlockHeading@spaces@current@space@<n>{jlreq@BlockHeading@spaces@current@output@<n>}
+ % ↑\jlreq@BlockHeading@spaces@current@format@<n>で整形される.
+ % \jlreq@BlockHeading@spaces@current@after@<n>
+ % として後に呼び出される.(spaceは書き換えられる可能性がある.)
\expandafter\xdef\csname jlreq@BlockHeading@spaces@current@output@\the\jlreq@BlockHeading@spaces@current@count\endcsname{%
\expandonce{\jlreq@resultb}%
}%
@@ -1739,6 +1748,10 @@
\expandafter\xdef\csname jlreq@BlockHeading@spaces@current@before@\the\jlreq@BlockHeading@spaces@current@count\endcsname{%
\expandonce{\@tempa#4}%
\expandonce{\jlreq@resulta}%
+ \ifjlreq@tempa\unexpanded{%
+ \jlreq@setcurrentpage
+ \edef\jlreq@BlockHeading@currentpage{\the\jlreq@currentpage}%
+ }\fi
}%
\def\@tempa##1##2##3{##2}%
\expandafter\xdef\csname jlreq@BlockHeading@spaces@current@format@\the\jlreq@BlockHeading@spaces@current@count\endcsname{%
@@ -1747,6 +1760,12 @@
\def\@tempa##1##2##3{##3}%
\expandafter\xdef\csname jlreq@BlockHeading@spaces@current@after@\the\jlreq@BlockHeading@spaces@current@count\endcsname{%
\expandonce{\jlreq@resultc}%
+ \ifjlreq@tempa\unexpanded{%
+ \ifx\jlreq@BlockHeading@currentpage\@empty\nobreak\else
+ \ifodd\jlreq@BlockHeading@currentpage\nobreak\else\allowbreak\fi
+ \fi
+ }\else\noexpand\nobreak\fi
+ % 現状ここ↓は常に空
\expandonce{\@tempa#4}%
}%
\ifx\jlreq@BlockHeading@spaces@headingslist\@empty
@@ -1922,10 +1941,10 @@
}
% 行取り処理.#3が空の時は行取りの処理はしない.(空白挿入は行う.)
-% {1 = 前空き}{2 = 後ろ空き}{3 = トータル行数}{4 = 偶数ページ改ページするなら空}{5 = 出力}
-\long\def\jlreq@BlockHeading@start@gyodori#1#2#3#4#5{\par{%
- \jlreq@ifempty{#4}{\jlreq@setcurrentpage}{}%
- \setbox\jlreq@tempboxa=\vbox{#5}%
+% {1 = 前空き}{2 = 後ろ空き}{3 = トータル行数}{4 = 出力}
+% 最後には\nobreak(と\vskip)が入っている
+\long\def\jlreq@BlockHeading@start@gyodori#1#2#3#4{\par{%
+ \setbox\jlreq@tempboxa=\vbox{#4}%
% \jlreq@tempskip(a/b)に前/後ろに入れるべき値を入れる
% #1がa:ならばその値は\jlreq@tempskipaには足さず\jlreq@tempskipcに入れておく
\jlreq@tempskipa=0pt
@@ -2005,7 +2024,7 @@
\box\jlreq@tempboxa
\ifx r\jlreq@ushiroakitype\prevdepth=-1000pt \else\prevdepth=0pt \fi
\fi
- \jlreq@ifempty{#4}{\ifodd\jlreq@currentpage\nobreak\fi}{\nobreak}%
+ \nobreak
\jlreq@ifgluezero\jlreq@tempskipb{}{\vskip\jlreq@tempskipb}%
\edef\jlreq@do{%
\ifdim\parskip=0pt \else
@@ -2107,7 +2126,7 @@
% a,bみたいなのをaとbにわける.カンマがなければbは空.引数を{a}{b}として##2を呼び出す.
\def\jlreq@parsecomma##1##2{%
\jlreq@helper@dividebycomma{##1}%
- \ifjlreq@result\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\ifjlreq@result\fi}{%
\edef\jlreq@do{\noexpand\jlreq@tempa{\expandonce{\jlreq@resulta}}{\expandonce{\jlreq@resultb}}}%
}{%
\edef\jlreq@do{\noexpand\jlreq@tempa{##1}{}}%
@@ -2291,7 +2310,7 @@
% 前開きが常に入ってしまうので,a:の時は除去する
\jlreq@iffirsttoken{##1}{a}{\def\jlreq@spaceset{{}{##2}{##3}}}{}%
\edef\jlreq@totalformat{%
- \unexpanded{\if@twocolumn\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}{%
+ \unexpanded{\jlreq@if{\if@twocolumn\fi}}{%
\noexpand\twocolumn[{%
% 普段自動で入る\topskipと\baselineskipを手動で入れる
\jlreq@iffirsttoken{##1}{r}{}{\unexpanded{\vskip\topskip\relax}}%
@@ -2531,7 +2550,7 @@
\ifthenelse{\equal{#1}{{}{}{}}}{\jlreq@tempafalse}{}%
\edef\jlreq@do{%
\ifjlreq@tempa
- \unexpanded{\jlreq@BlockHeading@start@gyodori#1}{*}{%
+ \unexpanded{\jlreq@BlockHeading@start@gyodori#1}{%
\expandonce{\jlreq@result}%
}%
\else
@@ -2563,7 +2582,7 @@
\jlreq@do
}
% #1: デフォルト値を使うならば*,#2#3#4が設定された値,#5#6#7がデフォルト値,#8は偶数ページの,#9が出力
-\def\jlreq@BlockHeading@spaces@output@@@@#1#2#3#4#5#6#7#8#9{%
+\def\jlreq@BlockHeading@spaces@output@@@@#1#2#3#4#5#6#7#8{%
\edef\jlreq@tempa{%
\unexpanded{\long\def\jlreq@tempa##1}{\csexpandonce{jlreq@BlockHeading@spaces@current@format@\the\jlreq@tempcnta}}%
}%
@@ -2575,7 +2594,7 @@
{\jlreq@ifempty{#2}{\unexpanded{#5}}{\unexpanded{#2}}}%
{\jlreq@ifempty{#3}{\unexpanded{#6}}{\unexpanded{#3}}}%
{\jlreq@ifempty{#4}{\unexpanded{#7}}{\unexpanded{#4}}}%
- }\unexpanded{{#8}{#9}}%
+ }\unexpanded{{#8}}%
}}%
}%
\eappto\jlreq@result{%
@@ -2728,7 +2747,7 @@
\def\jlreq@CutinHeading@start#1#2#3#4#5#6#7{%
\if@noskipsec\leavevmode\fi
\par
- \ifnum\hangafter=1 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\ifnum\hangafter=1 \fi}{%
\jlreq@CutinHeading@start@{#2}{#3}{#4}{#5}{#6}{#7}%
}{%
\ClassError{jlreq}{Can not use \expandafter\string\csname#1\endcsname\space here}{\@ehc}%
@@ -2864,7 +2883,7 @@
\fi
}
\newcommand*{\jlreq@HeadingType@}[2]{%
- \expandafter\expandafter\expandafter\ifx\csname jlreq@heading@type@#1\endcsname#2\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
+ \jlreq@if{\expandafter\expandafter\expandafter\ifx\csname jlreq@heading@type@#1\endcsname#2\fi}%
}
% 全ての見出しにマクロ#1を適用する.
@@ -3726,167 +3745,39 @@
}
%.. マークの拡張
-% 三つ以上のマークを保持するために,markを次のようにする
-% <マーク1>\jlreq@extramark{{<マーク2>}{<マーク3>}...}
-\def\jlreq@extramark#1{}
-
-% #1番目の\leftmarkや\rightmarkを取得する.\leftmark/\rightmarkの実装に強く依存している.
-\def\jlreq@extraleftmark#1{\jlreq@getextramark{#1}{\leftmark}}%
-\def\jlreq@extrarightmark#1{\jlreq@getextramark{#1}{\rightmark}}%
-\def\jlreq@getextramark#1#2{\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\jlreq@getextramark@#2\jlreq@extramark\jlreq@endmark{#1}}
-\def\jlreq@getextramark@#1\jlreq@extramark#2\jlreq@endmark#3{%
- \jlreq@ifempty{#2}{}{\jlreq@getextramark@@{#3}#2}%
-}
-\def\jlreq@getextramark@@#1#2#3\jlreq@extramark{\jlreq@getextramark@@@{#1}#2\jlreq@endmark}
-\def\jlreq@getextramark@@@#1#2{%
- \jlreq@ifendmark{#2}{}{%
- \ifnum#1=1 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
- {\jlreq@getextramark@@@@{#2}}{\expandafter\jlreq@getextramark@@@\expandafter{\the\numexpr #1-1\relax}}%
- }%
-}
-\def\jlreq@getextramark@@@@#1#2\jlreq@endmark{#1}
-
-% トークン列#1に必要ならば\jlre@extramarkを加え,#2に代入
-\def\jlreq@addextramarkcommand#1#2{%
- \jlreq@ifcontains{#1}{\jlreq@extramark}{\edef#2{\unexpanded{#1}}}{\edef#2{\unexpanded{#1\jlreq@extramark{}}}}%
-}
-\def\jlreq@addextramarkcommand@tothemark{%
- \begingroup
- \expandafter\expandafter\expandafter\jlreq@addextramarkcommand\expandafter\expandafter\expandafter{\expandafter\@firstoftwo\@themark}{\jlreq@tempa}%
- \expandafter\expandafter\expandafter\jlreq@addextramarkcommand\expandafter\expandafter\expandafter{\expandafter\@secondoftwo\@themark}{\jlreq@tempb}%
- \edef\jlreq@do{\unexpanded{\def\@themark}{{\expandonce{\jlreq@tempa}}{\expandonce{\jlreq@tempb}}}}%
- \expandafter\endgroup
- \jlreq@do
-}
-
-% #1番目を#2に置き換える
-\def\jlreq@setextraleftmark#1#2{%
- \let\jlreq@extramark@=\jlreq@extramark
- \begingroup
- \jlreq@addextramarkcommand@tothemark
- \def\jlreq@extramark##1{\noexpand\jlreq@extramark{\jlreq@changeargument{##1}{#1}{#2}}}%
- \protected@edef\jlreq@tempa{\expandafter\@firstoftwo\@themark}%
- \def\jlreq@extramark{\noexpand\jlreq@extramark}%
- \protected@edef\jlreq@tempb{\expandafter\@secondoftwo\@themark}%
- \edef\@themark{{\expandonce{\jlreq@tempa}}{\expandonce{\jlreq@tempb}}}%
- \edef\jlreq@do{%
- \unexpanded{\def\jlreq@extramark{\noexpand\jlreq@extramark}}%
- \noexpand\markboth\expandonce{\@themark}%
- }%
- \expandafter\endgroup
- \jlreq@do
- \let\jlreq@extramark=\jlreq@extramark@
-}
-\def\jlreq@setextrarightmark#1#2{%
- \let\jlreq@extramark@=\jlreq@extramark
- \begingroup
- \jlreq@addextramarkcommand@tothemark
- \def\jlreq@extramark{\noexpand\jlreq@extramark}%
- \protected@edef\jlreq@tempa{\expandafter\@firstoftwo\@themark}%
- \def\jlreq@extramark##1{\noexpand\jlreq@extramark{\jlreq@changeargument{##1}{#1}{#2}}}%
- \protected@edef\jlreq@tempb{\expandafter\@secondoftwo\@themark}%
- \edef\@themark{{\expandonce{\jlreq@tempa}}{\expandonce{\jlreq@tempb}}}%
- \edef\jlreq@do{%
- \unexpanded{\def\jlreq@extramark{\noexpand\jlreq@extramark}}%
- \noexpand\markright{\expandonce{\jlreq@tempb}}%
- }%
- \expandafter\endgroup
- \jlreq@do
- \let\jlreq@extramark=\jlreq@extramark@
-}
-
-% #1内の#2番目を#3に取り替える.\jlreq@changeargument{{arg1}{arg2}...{argk}}{n}{arg}
-% k < nならば{}を加えた後{arg}を最後につける
-\def\jlreq@changeargument#1#2#3{%
- \jlreq@changeargument@{#2}{#3}#1\jlreq@endmark
-}
-\def\jlreq@changeargument@#1#2#3{%
- \jlreq@ifendmark{#3}{%
- \ifnum#1>0 \expandafter\@firstofone\else\expandafter\@gobble\fi
- {\jlreq@changeargument@@{#1}{#2}}%
- }{%
- \ifnum#1=1 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
- {{#2}}{{#3}}%
- \expandafter\jlreq@changeargument@\expandafter{\the\numexpr #1 - 1\relax}{#2}%
- }%
-}
-\def\jlreq@changeargument@@#1#2{%
- \ifnum#1<2 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{{#2}}{%
- {}\expandafter\jlreq@changeargument@@\expandafter{\the\numexpr #1 -1 \relax}{#2}%
- }%
-}
-
-% \jlreq@cleararguments{k}{{arg1}...{argn}}を{arg1}...{argk}{}...{}にする
-\def\jlreq@cleararguments#1#2{\jlreq@cleararguments@{#1}#2\jlreq@endmark}
-\def\jlreq@cleararguments@#1#2{\jlreq@ifendmark{#2}{}{%
- \ifnum#1<1 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
- {{}}{{#2}}%
- \expandafter\jlreq@cleararguments@\expandafter{\the\numexpr #1 - 1\relax}%
+\def\jlreq@markregistername#1{jlreq@extramark@register@#1}
+\def\jlreq@extraleftmark#1{\jlreq@extramark@{#1}{\expandafter\@firstoftwo\botmarks}}
+\def\jlreq@extrarightmark#1{\jlreq@extramark@{#1}{\expandafter\@secondoftwo\firstmarks}}
+\def\jlreq@extramark@#1#2{\jlreq@if{\ifcsname\jlreq@markregistername{#1}\endcsname\fi}%
+ {\expandafter\jlreq@extramark@@\expandafter{\csname \jlreq@markregistername{#1}\endcsname}{#2}}%
+ {}%
+}
+\def\jlreq@extramark@@#1#2{#2#1\@empty\@empty}
+
+\def\jlreq@setextraleftmark@#1#2{{#2}{\expandafter\@secondoftwo#1}}
+\def\jlreq@setextrarightmark@#1#2{{\expandafter\@firstoftwo#1}{#2}}
+\def\jlreq@setextraleftmark#1#2{\jlreq@setextramark{#1}{#2}{\jlreq@setextraleftmark@}}
+\def\jlreq@setextrarightmark#1#2{\jlreq@setextramark{#1}{#2}{\jlreq@setextrarightmark@}}
+\def\jlreq@setextramark#1#2#3{%
+ \jlreq@if{\ifcsname\jlreq@markregistername{#1}\endcsname\fi}{}{%
+ \expandafter\newmarks\csname\jlreq@markregistername{#1}\endcsname
+ \expandafter\def\csname\jlreq@markregistername{#1}@themark\endcsname{{}{}}%
}%
-}
-% ...\jlreq@extramark{...}を\jlreq@extramark{...}のみにする.
-\def\jlreq@getextramarkpart#1{\jlreq@getextramarkpart@#1\jlreq@extramark\jlreq@endmark}
-\def\jlreq@getextramarkpart@#1\jlreq@extramark#2\jlreq@endmark{\jlreq@ifempty{#2}{}{\jlreq@getextramarkpart@@#2}}
-\def\jlreq@getextramarkpart@@#1\jlreq@extramark{\jlreq@extramark{#1}}
-
-% #1番目以降を空にする
-\def\jlreq@clearleftextramarks#1{%
- \let\jlreq@extramark@=\jlreq@extramark
\begingroup
- \def\jlreq@extramark##1{\noexpand\jlreq@extramark{\jlreq@cleararguments{#1}{##1}}}%
- \protected@edef\jlreq@tempa{\expandafter\@firstoftwo\@themark}%
- \edef\jlreq@tempb{\expandafter\expandafter\expandafter\expandonce\expandafter\expandafter\expandafter{\expandafter\@secondoftwo\@themark}}%
- \edef\jlreq@do{%
- \unexpanded{\def\jlreq@extramark{\noexpand\jlreq@extramark}}%
- \noexpand\markboth{\expandonce{\jlreq@tempa}}{\expandonce{\jlreq@tempb}}%
+ \let\label\relax
+ \let\index\relax
+ \let\glossary\relax
+ \def\jlreq@@themark@csname{\jlreq@markregistername{#1}@themark}%
+ \expandafter\unrestored@protected@xdef\csname\jlreq@@themark@csname\endcsname{%
+ \expandafter#3\expandafter{\csname\jlreq@@themark@csname\endcsname}{#2}%
}%
- \expandafter\endgroup
- \jlreq@do
- \let\jlreq@extramark=\jlreq@extramark@
-}
-\def\jlreq@clearrightextramarks#1{%
- \let\jlreq@extramark@=\jlreq@extramark
- \begingroup
- \edef\jlreq@tempa{\expandafter\expandafter\expandafter\expandonce\expandafter\expandafter\expandafter{\expandafter\@firstoftwo\@themark}}%
- \def\jlreq@extramark##1{\noexpand\jlreq@extramark{\jlreq@cleararguments{#1}{##1}}}%
- \protected@edef\jlreq@tempb{\expandafter\@secondoftwo\@themark}%
- \edef\jlreq@do{%
- \unexpanded{\def\jlreq@extramark{\noexpand\jlreq@extramark}}%
- \noexpand\markboth{\expandonce{\jlreq@tempa}}{\expandonce{\jlreq@tempb}}%
- }%
- \expandafter\endgroup
- \jlreq@do
- \let\jlreq@extramark=\jlreq@extramark@
-}
-
-\def\jlreq@markboth#1#2{%
- \let\jlreq@extramark@=\jlreq@extramark
- \def\jlreq@extramark{\noexpand\jlreq@extramark}%
- \begingroup
- \protected@edef\jlreq@tempa{\expandafter\@firstoftwo\@themark}%
- \protected@edef\jlreq@tempa{\unexpanded{#1}\expandafter\jlreq@getextramarkpart\expandafter{\jlreq@tempa}}%
- \protected@edef\jlreq@tempb{\expandafter\@secondoftwo\@themark}%
- \protected@edef\jlreq@tempb{\unexpanded{#2}\expandafter\jlreq@getextramarkpart\expandafter{\jlreq@tempb}}%
- \edef\jlreq@do{%
- \noexpand\markboth{\expandonce{\jlreq@tempa}}{\expandonce{\jlreq@tempb}}%
- }%
- \expandafter\endgroup
- \jlreq@do
- \let\jlreq@extramark=\jlreq@extramark@
-}
-\def\jlreq@markright#1{%
- \let\jlreq@extramark@=\jlreq@extramark
- \def\jlreq@extramark{\noexpand\jlreq@extramark}%
- \begingroup
- \protected@edef\jlreq@tempb{\expandafter\@secondoftwo\@themark}%
- \protected@edef\jlreq@tempb{\unexpanded{#1}\expandafter\jlreq@getextramarkpart\expandafter{\jlreq@tempb}}%
- \edef\jlreq@do{%
- \noexpand\markright{\expandonce{\jlreq@tempb}}%
- }%
- \expandafter\endgroup
- \jlreq@do
- \let\jlreq@extramark=\jlreq@extramark@
+ \expandafter\expandafter\expandafter\@temptokena\expandafter\expandafter\expandafter{\csname\jlreq@@themark@csname\endcsname}%
+ \expandafter\marks\csname\jlreq@markregistername{#1}\endcsname{\the\@temptokena}%
+ \endgroup
+ \if@nobreak\ifvmode\nobreak\fi\fi
}
+\let\jlreq@markboth=\markboth
+\let\jlreq@markright=\markright
%.. \DeclarePageStyle内で使うもの
% mark情報の取得を行う.
@@ -3971,7 +3862,7 @@
% \jlreq@tempbに\***markの定義を入れる
\edef\jlreq@tempb{%
\expandonce{\csname the#1\endcsname}%
- \noexpand\ifx\expandonce{\csname the#1\endcsname}\unexpanded{\@empty\else\quad\fi}%
+ \noexpand\ifx\expandonce{\csname the#1\endcsname}\unexpanded{\@empty\else\protect\quad\fi}%
\unexpanded{##1}%
}%
\jlreq@parsekeyval@nokey{%
@@ -4050,7 +3941,7 @@
% 間に空白を入れる.
% #1: ターゲットなコントロールシークエンスの名前,#2:*ならばreverseする,#3:空き
\def\jlreq@pagestyle@make@runninghead#1#2#3{%
- \expandafter\ifx\csname #1\endcsname\@empty\expandafter\@gobble\else\expandafter\@firstofone\fi{%
+ \jlreq@if{\expandafter\ifx\csname #1\endcsname\@empty\fi}{}{%
\edef\jlreq@do{%
\noexpand\jlreq@tempatrue % 最初の処理かフラグ
\unexpanded{\jlreq@pagestyle@make@runninghead@{#1}{#2}{#3}}\csexpandonce{#1}\noexpand\jlreq@endmark
@@ -4062,7 +3953,7 @@
}%
}
\def\jlreq@pagestyle@make@runninghead@#1#2#3#4#5{%
- \ifnum\numexpr\jlreq@ifendmark{#5}{1}{0}*\ifjlreq@tempa 1\else 0\fi\relax=1 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\ifnum\numexpr\jlreq@ifendmark{#5\fi}{1}{0}*\ifjlreq@tempa 1\else 0\fi\relax=1 \fi}{%
% 項目が一つしか無い
\jlreq@ifempty{#2}{\csappto}{\cspreto}{#1}{#4}%
}{%
@@ -4256,7 +4147,7 @@
\jlreq@pagestyle@addfont@tocs{jlreq@nombre@\jlreq@i}{jlreq@nombre@\jlreq@i @font}%
}%
% \jlreq@oddhead,\jlreq@oddfoot,\jlreq@evenhead,\jlreq@evenfootに必要なものを入れる.
- \ifjlreq@pstate\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{% tate
+ \jlreq@if{\ifjlreq@pstate\fi}{% tate
% headの方に処理を入れる.footは空.
\def\jlreq@oddfoot{}\def\jlreq@evenfoot{}%
\jlreq@for@noexpand\jlreq@position:=\jlreq@nombre@i@position,\jlreq@running@head@i@position\do{%
@@ -4435,11 +4326,11 @@
\expandafter\edef\csname\jlreq@nombrecsname\endcsname{{\expandonce{\jlreq@nombre@font}\csexpandonce{\jlreq@nombrecsname}}}%
\fi
\fi
- \expandafter\ifx\csname\jlreq@runheadcsname\endcsname\@empty\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\expandafter\ifx\csname\jlreq@runheadcsname\endcsname\@empty\fi}{%
% 柱が空:ノンブルのみでよい
\expandafter\let\csname\jlreq@csname\expandafter\endcsname\csname\jlreq@nombrecsname\endcsname
}{%
- \expandafter\ifx\csname\jlreq@nombrecsname\endcsname\@empty\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{%
+ \jlreq@if{\expandafter\ifx\csname\jlreq@nombrecsname\endcsname\@empty\fi}{%
% % ノンブルが空.柱のみでよい.
\jlreq@pagestyle@addfont@tocs{\jlreq@runheadcsname}{jlreq@running@head@font}%
\expandafter\let\csname\jlreq@csname\expandafter\endcsname\csname\jlreq@runheadcsname\endcsname
@@ -4609,7 +4500,7 @@
% #1@#2が定義されていれば\#1@#2の中身に,そうでなければ\#1の中身に展開される.
% 展開は\unexpandedで抑制される.
\def\jlreq@jlreqsetup@withenv@nameuse#1#2{%
- \expandafter\ifx\csname #1@#2\endcsname\relax\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{\csexpandonce{#1}}{\csexpandonce{#1@#2}}%
+ \jlreq@if{\expandafter\ifx\csname #1@#2\endcsname\relax\fi}{\csexpandonce{#1}}{\csexpandonce{#1@#2}}%
}
% 4.3.1 注4
\newlength\abovecaptionskip
diff --git a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua
index d4ff74d1997..b5e2342b6c0 100644
--- a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua
+++ b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua
@@ -1,4 +1,4 @@
---[[
+--[[
3.1.3
3.1.6.a
]]
diff --git a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua
index dcced2f4e3d..eb88fd30480 100644
--- a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua
+++ b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua
@@ -1376,8 +1376,8 @@ local jfm={
["kanjiskip"]={ 0, 0.25, 0 },
["version"]=3,
["xkanjiskip"]={ 0.25, 0.25, 0.125 },
- ["zh"]=1,
- ["zw"]=1,
+ ["zh"]=1.0,
+ ["zw"]=1.0,
}
local function add_space(before,after,glueorkern,space,ratio)
if jfm[before][glueorkern] == nil then jfm[before][glueorkern] = {} end