From d09ad8b89dbedfbe939605baf5380584077e4584 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 21 Jan 2018 22:34:29 +0000 Subject: luatexja (21jan18) git-svn-id: svn://tug.org/texlive/trunk@46405 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/luatex/luatexja/README | 10 +- .../doc/luatex/luatexja/lltjp-geometry.pdf | Bin 138481 -> 140622 bytes .../doc/luatex/luatexja/lltjp-geometry.tex | 173 +++++++++++--------- .../texmf-dist/doc/luatex/luatexja/ltjclasses.pdf | Bin 405004 -> 405787 bytes .../texmf-dist/doc/luatex/luatexja/ltjltxdoc.pdf | Bin 66172 -> 68494 bytes .../texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf | Bin 497112 -> 497629 bytes .../texmf-dist/doc/luatex/luatexja/luatexja-en.pdf | Bin 459985 -> 455646 bytes .../texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf | Bin 864402 -> 823997 bytes Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx | 181 ++++++++++++--------- 9 files changed, 202 insertions(+), 162 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/luatex/luatexja/README b/Master/texmf-dist/doc/luatex/luatexja/README index 3a4af102bd1..d31b199016a 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/README +++ b/Master/texmf-dist/doc/luatex/luatexja/README @@ -1,6 +1,6 @@ -The LuaTeX-ja Package 20171112.0 +The LuaTeX-ja Package 20180121.0 -------------------------------- -Copyright (c) 2011--2017 The LuaTeX-ja project +Copyright (c) 2011--2018 The LuaTeX-ja project License: modified BSD (see COPYING) LuaTeX-ja is a macro package for typesetting Japanese documents with LuaTeX. @@ -40,9 +40,9 @@ Installation 2. If you must/want to install manually: a. Download the source archive from CTAN, - or tagged as 20171112.0 in the Git repository by + or tagged as 20180121.0 in the Git repository by + ;a=snapshot;h=refs/tags/20180121.0;sf=tgz> b. Extract the archive and process following three files by LuaLaTeX to generate classes for Japanese typesetting: @@ -87,4 +87,4 @@ Notes * src/*.{ins.dtx} and src/ltj-kinsoku_make.tex are not needed in regular use. -Last commit date: Sun Nov 12 20:54:59 2017 +0900 +Last commit date: Sun Jan 21 13:20:37 2018 +0900 diff --git a/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.pdf b/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.pdf index 5c709f3f8d6..2f0d74960c1 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.pdf and b/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex b/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex index f2064cb927a..2006e4994ed 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex +++ b/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex @@ -12,7 +12,8 @@ \def\headfont{\normalfont\bfseries\gtfamily} \def\pTeX{p\kern-.05em\TeX} \def\cs#1{\text{\texttt{\char`\\#1}}} - +\protected\def\Pkg#1{\textsf{#1}} +\protected\def\>{\hskip\ltjgetparameter{xkanjiskip}} \lstset{ basicstyle=\ttfamily, basewidth=0.5em, } @@ -31,56 +32,79 @@ \def\LuaTeX{Lua\TeX} \definecolor{blue}{rgb}{0, 0.25, 1} -\title{\textsf{lltjp-geometry}パッケージ} -\author{\LuaTeX-jaプロジェクト% +\title{\Pkg{lltjp-geometry}パッケージ} +\author{\LuaTeX-jaプロジェクト\null% \thanks{\url{http://osdn.jp/projects/luatex-ja/wiki/FrontPage}}} \begin{document} \maketitle ページレイアウトの設定として,\href{http://www.ctan.org/pkg/geometry}% -{\textsf{geometry}パッケージ}が有名であるが, +{\Pkg{geometry}パッケージ}が有名であるが, これはp\LaTeX・\LuaTeX-jaの縦組クラスでは利用が不可能という問題があった. -本文書で解説する\textsf{lltjp-geometry}パッケージは,\textsf{geometry}パッケージを +本文書で解説する\Pkg{lltjp-geometry}パッケージは,\Pkg{geometry}パッケージを 縦組クラスに対応させるパッチである. \section{利用方法} -\textsf{lltjp-geometry}パッケージは,\LuaTeX-jaに標準で含まれている. -本パッケージの動作には\href{http://www.ctan.org/pkg/ifluatex}{\textsf{ifluatex}}, -\href{http://www.ctan.org/pkg/filehook}{\textsf{filehook}}パッケージが必要である. - -\subsection{\LuaTeX-ja} -\LuaTeX-jaでは,\textsf{geometry}パッケージ読み込み時に -自動的に\textsf{lltjp-geometry}パッケージが読み込まれ,ユーザは何もしなくても良い. -\LuaTeX-jaで横組クラスを利用する時でも, -\textsf{lltjp-geometry}パッケージは自動的に動作を停止するので,横組時の挙動が -変わってしまうことはない. - -\subsection{\pTeX 系列} -\pTeX 系列では,\textsf{tarticle}, \textsf{tbook}, \textsf{treport}といった -\emph{縦組クラスを使う場合}にのみ, +\Pkg{lltjp-geometry}パッケージは,\LuaTeX-jaに標準で含まれている. +本パッケージの動作には\href{http://www.ctan.org/pkg/ifluatex}{\Pkg{ifluatex}}, +\href{http://www.ctan.org/pkg/filehook}{\Pkg{filehook}}パッケージが必要である. + +\LuaTeX-jaでは,\Pkg{geometry}パッケージ読み込み時に +自動的に\Pkg{lltjp-geometry}パッケージが読み込まれる. +縦組クラスか否かの自動判定(\ref{ssec:auto}節)を上書きしたい場合は, \begin{lstlisting} -\usepackage{lltjp-geometry} +% \PassOptionsToPackage{force}{lltjp-geometry} % 強制的に有効 +\PassOptionsToPackage{disable}{lltjp-geometry} % 強制的に無効 +\documentclass{...} \usepackage[...]{geometry} \end{lstlisting} -のように\emph{\textsf{geometry}パッケージの前}に読み込む. -\pTeX 系列では使用クラスが横組か縦組かの自動判定を行えない\footnote{% - 標準縦組クラスでは,\cs{begin\{document\}} の内部で組方向を縦組に変更するので, - プリアンブル中で判定できない. -}ので,\emph{横組クラスで読み込んではならない}. +のように\emph{\Pkg{luatexja}の読み込み前}に\cs{PassOptionsToPackage}で +本パッケージに渡すオプションを指定する(\cs{usepackage\{lltjp-geometry\}}\>は使えない). -パッケージオプションは存在しない. +\pTeX 系列では,\Pkg{tarticle}, \Pkg{tbook}, \Pkg{treport}といった +\emph{縦組クラスを使う場合}に, +\begin{lstlisting} +\usepackage[...]{lltjp-geometry} +\usepackage[...]{geometry} +\end{lstlisting} +と,\Pkg{geometry}パッケージの前に読み込む. + +\subsection{縦組クラスか否かの判定} +\label{ssec:auto} +本パッケージは,以下のいずれかが該当する場合に「現在のクラスは縦組クラス」と自動判定し, +\Pkg{geometry}パッケージ読み込み直後にパッチを当てる: +\begin{enumerate} + \item \Pkg{geometry}パッケージを読み込む際に,現在の組方向が縦組になっている. + \item \cs{AtBeginDocument}により指定される,\cs{begin\{document\}}\>時に実行される内容に + \cs{tate}(というトークン)が含まれている. + \item 本パッケージを読み込む際に\texttt{force}オプションが指定されている. +\end{enumerate} +\LuaTeX-jaで縦組クラスを利用する場合は主に1.の, +\pTeX 系列で縦組クラスを利用する場合は主に2.の状況となる +\footnote{% + 標準縦組クラスでは,\cs{begin\{document\}}\>の内部で組方向を縦組に変更する. +}. -\section{\textsf{lltjp-geometry}使用時の注意事項} +上記の自動判定がうまく行かなかったときに備え, +本パッケージには\texttt{force}オプションと\texttt{disable}オプションを用意した. +\begin{itemize} + \item \texttt{force}オプションが指定されている場合は,自動判定の結果に関わらず + \Pkg{geometry}パッケージ読み込み直後にパッチを当てる. + \item \texttt{disable}オプションが指定されている場合は,自動判定の結果に関わらず + 何もしない. +\end{itemize} + +\section{\Pkg{lltjp-geometry}使用時の注意事項} \subsection{\texttt{twoside}指定時} 縦組の本は通常右綴じである.これを反映し, -\texttt{twoside} オプション指定時には +\texttt{twoside}オプション指定時には \begin{itemize} -\item \texttt{left}, \texttt{lmargin} は小口側の余白, -\texttt{right}, \texttt{rmargin} はノド側の余白を指す. -\item 左右余白比 \texttt{hmarginratio} の標準値は$3:2$に変更. -\item \texttt{bindingoffset} は\emph{右側}に余白を確保する. +\item \texttt{left}, \texttt{lmargin}は小口側の余白, +\texttt{right}, \texttt{rmargin}はノド側の余白を指す. +\item 左右余白比 \texttt{hmarginratio}の標準値は$3:2$に変更. +\item \texttt{bindingoffset}は\emph{右側}に余白を確保する. \end{itemize} と変更している. @@ -98,22 +122,22 @@ \subsection{傍注} 縦組の場合,傍注は本文の上下に配置される\footnote{% 二段組の場合は上下共に,一段組の場合は標準では下側だが, - \texttt{reversemp} が指定されたときには上側に配置される. + \texttt{reversemp}が指定されたときには上側に配置される. }.これにより,\emph{\texttt{includemp}(や \texttt{includeall})が 未指定の場合,傍注はヘッダやフッタに重なる}. -\texttt{includemp} 指定時は,\cs{footskip}, \cs{headsep} のいずれか +\texttt{includemp}指定時は,\cs{footskip}, \cs{headsep}のいずれか (二段組の場合は両方)を$\cs{marginparwidth} + \cs{marginparsep}$だけ 増加させる. \section{\texttt{lines}オプションに関する注意事項} -本節の内容は,\textsf{lltjp-geometry}パッケージを読み込まない場合, -つまり,横組クラスで\textsf{geometry}パッケージを普通に使用した場合にも +本節の内容は,\Pkg{lltjp-geometry}パッケージを読み込まない場合, +つまり,横組クラスで\Pkg{geometry}パッケージを普通に使用した場合にも 当てはまる注意事項である. -\subsection{\textsf{fontspec}パッケージとの干渉} -\pTeX 系列では,次のように\textsf{fontenc}パッケージ読み込み直後に -\textsf{geometry}パッケージを用いてレイアウトを設定すると, -\texttt{lines} による指定が正しく働かないという症状が生じる: +\subsection{\Pkg{fontspec}パッケージとの干渉} +\Pkg{fontspec}パッケージの,読み込み直後に +\Pkg{geometry}パッケージを用いてレイアウトを設定すると, +\texttt{lines}による指定が正しく働かないという症状が生じる: \begin{lstlisting} \documentclass{article} \usepackage{geometry} @@ -123,16 +147,16 @@ hoge\typeout{\the\topskip, \the\baselineskip, \the\textheight} \end{document} \end{lstlisting} -\cs{typeout} で \cs{topskip}, \cs{baselineskip}, \cs{textheight} の値を調べると +\cs{typeout}で\cs{topskip}, \cs{baselineskip}, \cs{textheight}の値を調べると \[ \frac{\cs{textheight} - \cs{topskip}}{\cs{baselineskip}} = 15.8\dot 3 \] となることがわかるから,1ページには16行分入らないことがわかる. -これは,\textsf{fontspec} の読み込みによって \cs{baselineskip} がなぜか -10\,ptに変えられてしまい,\cs{geometry} 命令はその値に従って本文領域の高さを計算するためで +これは,\Pkg{fontspec}の読み込みによって\cs{baselineskip}がなぜか +10\,ptに変えられてしまい,\cs{geometry}命令はその値に従って本文領域の高さを計算するためで ある.とりあえずの対策は, -\cs{normalsize} によって \cs{baselineskip} を正しい値に再設定し,その後 +\cs{normalsize}によって\cs{baselineskip}を正しい値に再設定し,その後 レイアウトを設定すれば良い: \begin{lstlisting} \usepackage{geometry} @@ -140,28 +164,25 @@ hoge\typeout{\the\topskip, \the\baselineskip, \the\textheight} \normalsize\geometry{lines=20} \end{lstlisting} -なお,同様の症状は\textsf{newtxtext}パッケージなどでも発生するようなので, -\pTeX 系列といえども無縁ではない. - -\subsection{\cs{maxdepth} の調整} +\subsection{\cs{maxdepth}の調整} \LaTeX では, 最後の行の深さ\rensuji{$d$}と 本文領域の上端から最後の行のベースラインまでの距離\rensuji{$f$}に対し, \[ - \cs{textheight} = f+\max(0, d-\cs{maxdepth}) + \cs{textheight}= f+\max(0, d-\cs{maxdepth}) \] が成り立つ. -\pTeX 系列の標準縦組クラス\textsf{[u]tarticle}等, -及びそれを\LuaTeX-ja用に移植した\textsf{ltjtarticle}等では, - \cs{topskip} は\emph{横組時における}全角空白の高さ7.77588\,pt\footnote{% +\pTeX 系列の標準縦組クラス\Pkg{[u]tarticle}等, +及びそれを\LuaTeX-ja用に移植した\Pkg{ltjtarticle}等では, + \cs{topskip}は\emph{横組時における}全角空白の高さ7.77588\,pt\footnote{% 標準の\texttt{10pt}オプション指定時.以下同じ. ところで,この量は公称フォントサイズの10\,ptか,もしくは 全角空白の高さと深さを合わせた値の9.16446\,ptの間違いではないか,と筆者は考えている. なお,奥村晴彦氏の\href{https://oku.edu.mie-u.ac.jp/~okumura/jsclasses/}% {p\LaTeXe 新ドキュメントクラス}では公称ポイントサイズ10\,ptに設定されている. -}であり,\cs{maxdepth} はその半分の値(従って3.88794\,pt)である. +}であり,\cs{maxdepth}はその半分の値(従って3.88794\,pt)である. いくつかのフォントについて,その中の文字の深さの最大値を見てみると 表\ref{tab:baseline}のようになっている. @@ -185,51 +206,51 @@ hoge\typeout{\the\topskip, \the\baselineskip, \the\textheight} \label{tab:baseline}} \end{table} 欧文フォントのベースラインは,そのままでは和文との組み合わせが悪いので, -さらに$\textsf{tbaselineshift}=3.41666\,\textrm{pt}$だけ下がることを考えると, -最後の行に和文文字が来た場合はほぼ確実に深さが \cs{maxdepth} を超えてしまうことになる. +さらに$\Pkg{tbaselineshift}=3.41666\,\textrm{pt}$だけ下がることを考えると, +最後の行に和文文字が来た場合はほぼ確実に深さが\cs{maxdepth}を超えてしまうことになる. 従って,本文領域を「\rensuji{$n$}行分」として指定するときによく使われる \begin{equation} \cs{textheight} = \cs{topskip} + (n-1)\cs{baselineskip} \label{eq:nline} \end{equation} -は\textsf{tarticle}クラスのデフォルトでは通用しない. +は\Pkg{tarticle}クラスのデフォルトでは通用しない. 通常の地の文のみの文章においてほぼ確実に\eqref{eq:nline}が成り立つようにするため, -\textsf{lltjp-geometry}では\emph{\texttt{lines}オプション指定時のみ} \cs{maxdepth} の値が +\Pkg{lltjp-geometry}では\emph{\texttt{lines}オプション指定時のみ}\cs{maxdepth}の値が 最低でも \begin{quote} 公称ポイントサイズの半分に,欧文ベースラインのシフト量を加えた値% -\footnote{\textsf{tarticle}の場合だと, +\footnote{\Pkg{tarticle}の場合だと, $5\,\textrm{pt} + 3.41666\,\textrm{pt}=8.41666\,\textrm{pt}$である.} \end{quote} -になるようにしている.\texttt{lines} オプション非指定時にはこのような調整は +になるようにしている.\texttt{lines}オプション非指定時にはこのような調整は 行われない. \subsection{見かけ上の基本版面の位置} \LaTeX では, 本文の一行目のベースラインは,本文領域の「上端」から - \ \cs{topskip}\ だけ「下がった」ところに来ることになっている. -あまり \cs{topskip} が小さいと,ユーザが大きい文字サイズを指定した時に1行目のベースライン + \cs{topskip}\ だけ「下がった」ところに来ることになっている. +あまり\cs{topskip}が小さいと,ユーザが大きい文字サイズを指定した時に1行目のベースライン 位置が狂う危険があるため, -\textsf{geometry}パッケージでは +\Pkg{geometry}パッケージでは \begin{quote} - \texttt{lines} オプション指定時,\cs{topskip} の値を最低でも - \cs{strutbox} の高さ($0.7\cs{baselineskip}$)まで引き上げる + \texttt{lines}オプション指定時,\cs{topskip}の値を最低でも + \cs{strutbox}の高さ($0.7\cs{baselineskip}$)まで引き上げる \end{quote} という仕様になっている. -縦組の場合は,\cs{strutbox} に対応するボックスは \cs{tstrutbox} であるため, -\textsf{lltjp-geometry}では +縦組の場合は,\cs{strutbox}に対応するボックスは\cs{tstrutbox}であるため, +\Pkg{lltjp-geometry}では \begin{quote} - \texttt{lines} オプション指定時,\cs{topskip} の値を最低でも - \emph{\cs{tstrutbox} の高さ($\cs{baselineskip}/2$)}まで引き上げる + \texttt{lines}オプション指定時,\cs{topskip}の値を最低でも + \emph{\cs{tstrutbox}の高さ($\cs{baselineskip}/2$)}まで引き上げる \end{quote} -という挙動にした.見かけ上は \cs{topskip} の値制限が緩くなったが,前節で述べたように +という挙動にした.見かけ上は\cs{topskip}の値制限が緩くなったが,前節で述べたように 欧文フォントのベースラインは和文に合うように下にずらされるので, 実用上は問題は起きないだろう. -前節の \cs{maxdepth} の調整も考え合わせると,\emph{\LaTeX が認識する本文領域と, +前節の\cs{maxdepth}の調整も考え合わせると,\emph{\LaTeX が認識する本文領域と, 実際の見た目の基本版面の位置とは異なる}ことに注意してほしい. \medskip @@ -243,10 +264,10 @@ $5\,\textrm{pt} + 3.41666\,\textrm{pt}=8.41666\,\textrm{pt}$である.} \end{lstlisting} と指定すると,実際には以下のように設定される. \begin{itemize} - \item \cs{topskip} は \cs{tstrutbox} の高さ8.5\,ptに設定される. - \item 本文領域の「高さ」 \cs{textheight} は + \item\cs{topskip}は\cs{tstrutbox}の高さ8.5\,ptに設定される. + \item 本文領域の「高さ」\cs{textheight}は \[ - \cs{topskip} + (30-1)\cs{baselineskip} = 530.5\,\textrm{pt}. + \cs{topskip}+ (30-1)\cs{baselineskip}= 530.5\,\textrm{pt}. \] \item 従って,左余白と右余白は \[ @@ -254,12 +275,12 @@ $5\,\textrm{pt} + 3.41666\,\textrm{pt}=8.41666\,\textrm{pt}$である.} \] \end{itemize} しかし,実際にはページの最初の行のベースラインは,本文領域の右端から -\ \cs{topskip} だけ左にずれたところにあり, +\cs{topskip}だけ左にずれたところにあり, 一方ページの最終行のベースラインは本文領域の左端にある. 縦組和文フォントのベースラインは文字の左右中央を通ることから, -従って,\emph{見た目で言えば,右余白の方が$\cs{topskip} =8.5\,\textrm{pt}$だけ +従って,\emph{見た目で言えば,右余白の方が$\cs{topskip}=8.5\,\textrm{pt}$だけ 大きい}ということになってしまう\footnote{% - 同様に,横組で \texttt{vcentering} を指定すると,見かけでは + 同様に,横組で \texttt{vcentering}を指定すると,見かけでは $\cs{topskip}-\cs{Cht}+\cs{Cdp}$だけ上余白が大きいように見える. }. diff --git a/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf b/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf index 290c601a0aa..fc5326dafb0 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf and b/Master/texmf-dist/doc/luatex/luatexja/ltjclasses.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/ltjltxdoc.pdf b/Master/texmf-dist/doc/luatex/luatexja/ltjltxdoc.pdf index 812258adafd..f963ecb7677 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/ltjltxdoc.pdf and b/Master/texmf-dist/doc/luatex/luatexja/ltjltxdoc.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf b/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf index 9489bd0e094..32674c9ce90 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf and b/Master/texmf-dist/doc/luatex/luatexja/ltjsclasses.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf b/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf index 65621eda408..06956af3196 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf and b/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf index a9a6518f931..618a34b86f5 100644 Binary files a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf and b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx index 33e076f1e41..fd1a763207c 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx @@ -482,7 +482,7 @@ Japanese characters in discretionary break (\cs{discretionary}) is not supported By default, \LuaTeX-ja uses Japanese fonts to typeset Greek and Cyrillic letters, To change this behavior, put \verb!\ltjsetparameter{jacharrange={-2,-3}}! in the preamble. - For the detailed description, see Subsection~\ref{ssec-setrange}. + For the detailed description, see Subsection~\ref{ssec:setrange}. From version~20150906.0, characters which belongs both ISO~8859-1 and JIS~X~0208, such as \P~and~\S, are now typeset in alphabetic fonts. @@ -499,7 +499,7 @@ without the \cs{fontspec} (and~\Pkg{luatexja-fontspec}) package. \end{lstlisting} を入れると 上記種類の文字は欧文フォントを用いて組まれるようになる. - 詳しい説明は\ref{ssec-setrange}節を参照してほしい. + 詳しい説明は\ref{ssec:setrange}節を参照してほしい. また,\P,~\S といったISO~8859-1の上位領域とJIS~X~0208の共通部分の文字は バージョン20150906.0から標準で欧文扱いとなった.\LaTeXe\ 2017/01/01以降では @@ -524,11 +524,11 @@ In this document, the following terms and notations are used: %<*en> \item Characters are classified into following two types. Note that the classification can be customized by a user - (see Subsection~\ref{ssec-setrange}). + (see Subsection~\ref{ssec:setrange}). % %<*ja> \item 文字は次の2種類に分けられる.この類別は固定されているものではなく,ユーザが後から変更可能である - (\ref{ssec-setrange}節を参照). + (\ref{ssec:setrange}節を参照). % \begin{itemize} %<*en> @@ -815,8 +815,9 @@ For changes from \pTeX, see Subsection~\ref{ssec:chgptex}. Generally speaking, LuaJIT\TeX\ processes \LuaTeX-ja about 30\% faster than \LuaTeX, but not always% \footnote{% - LuaJIT has the 1\,GB~(or~2\,GB) memory limitation. So typesetting a large source by LuaJIT\TeX\ - may cause an ``out of memory'' error. + LuaJIT has several limitations such as 1\,GB~(or~2\,GB) memory limitation. + So typesetting a large source by LuaJIT\TeX may cause an ``out of memory'' error, + or failure of loading/saving font cache of \Pkg{luaotfload}. }. % %<*ja> @@ -825,11 +826,13 @@ For changes from \pTeX, see Subsection~\ref{ssec:chgptex}. LuaJIT\TeX を用いると\LuaTeX のだいたい1.3倍の速度で動くようであるが, IPA mj明朝などの大きいフォントを用いた場合には\LuaTeX よりも遅くなることもある \footnote{% - LuaJITは1\,GB(あるいは2\,GB)のメモリ制限があることが知られている.そのため, + LuaJITは1\,GB(あるいは2\,GB)のメモリ制限など,いくつかの制限事項があることが知られている.そのため, 大きいソースファイルをLuaJIT\TeX でタイプセットするとLuaの側で``out of memory''エラーが発生してしまう. 本ドキュメントのように,「各ページごとにLuaで使っているメモリ容量をチェックし, 必要なら\texttt{collectgarbage("collect")}でガベージコレクタを実行」すると 状況が多少改善されるかもしれない. + また,LuaJIT\TeX でIPA mj明朝などの「大きい」フォントを利用した場合はフォントキャッシュの保存に失敗し, + 毎回フォントを読み込まなければならず結果的に時間がかかることがある. }. % @@ -874,7 +877,7 @@ and finally delete the temporary directory. %\subsection{Using in plain \TeX} %\subsection{plain \TeX で使う} -\label{ssec-plain} +\label{ssec:plain} %To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document: %\LuaTeX-jaを plain \TeX で使うためには,単に次の行をソースファイルの冒頭に追加すればよい: @@ -923,11 +926,11 @@ and finally delete the temporary directory. \begin{itemize} %<*en> \item With \texttt{luatexja.cfg}, one can use other fonts -as ``default'' Japanese fonts (Subsection~\ref{ssec-cfg}). +as ``default'' Japanese fonts (Subsection~\ref{ssec:cfg}). % %<*ja> \item \texttt{luatexja.cfg} を用いることによって,標準和文フォントを -IPAexフォントから別のフォントに置き換えることができる.\ref{ssec-cfg}節を参照. +IPAexフォントから別のフォントに置き換えることができる.\ref{ssec:cfg}節を参照. % %<*en> @@ -960,7 +963,7 @@ IPAexフォントから別のフォントに置き換えることができる. %\subsection{Using in \LaTeX} %\subsection{\LaTeX で使う} -\label{ssec-ltx} +\label{ssec:ltx} %<*en> Using in \LaTeXe\ is basically same. To set up the minimal environment @@ -1113,9 +1116,11 @@ Okumura), namely, \Pkg{ltjclasses}\footnote{% Original \Pkg{jsclasses} use \cs{mag}~primitive to set the main document font size. However, \LuaTeX\ beta-0.87.0~or~later does not support \cs{mag} in PDF~output, -so \Pkg{ltjsclasses} use different method% -\footnote{Similar to \texttt{magstyle=xreal} in the \Pkg{BXjscls} classes (by Takayuki Yato).} -to set the main document font size. +so \Pkg{ltjsclasses} uses the \texttt{nomag*} option\footnote{Same effect as + the \Pkg{BXjscls} classes (by Takayuki Yato) and \Pkg{jsclasses}. + However, these classes uses only \TeX\ code, but \Pkg{ltjsclasses} uses Lua code.} + by default to set the main font size. If this causes some unexpected behavior, specify +\texttt{nomag} option in \cs{documentclass}. % %<*ja> しかしながら,上記の設定は日本語の文書にとって十分とは言えない. @@ -1131,11 +1136,15 @@ to set the main document font size. \texttt{ltjsarticle.cls},~\texttt{ltjsbook.cls}, \texttt{ltjsreport.cls},~\texttt{ltjskiyou.cls}.}% がそれぞれ用意されている. -元々の\Pkg{ltjsclasses}ではフォントサイズを指定するのに\cs{mag}プリミティブが使われていたが, +元々の\Pkg{jsclasses}では本文のフォントサイズを設定するのに\cs{mag}プリミティブが使われていたが, \LuaTeX~beta-0.87.0以降ではPDF出力時の\cs{mag}のサポートが廃止された. -そのため,\Pkg{ltjsclasses}では別の方法 -\footnote{八登崇之氏による\Pkg{BXjscls}クラスにおける\texttt{magstyle=xreal}指定時と類似している.}で -フォントサイズを指定することにしている. +そのため,\Pkg{ltjsclasses}では\texttt{nomag*}オプション +\footnote{\Pkg{jsclasses}や,八登崇之氏による\Pkg{BXjscls}クラスにおける同名のオプションと + 同じ.上記クラスは\TeX コードのみで実装しているが,\Pkg{ltjsclasses}ではLuaコードも用いている.}が標準で +有効になっており,これを使って本文フォントサイズの設定を行っている. +しかし,この\texttt{nomag*}オプションでは(20180121.0版より前の版において\Pkg{unicode-math}パッケージ使用時に +起きたように)予想外の意図しない現象に遭遇する危険がある.そのような場合は +\cs{documentclass}において\texttt{nomag}オプションを指定してほしい. % %<*ja> @@ -1213,17 +1222,17 @@ This patch \Pkg{lltjp-geometry} also can be used in \pLaTeX; for the detail, ple %\section{フォントの変更} \subsection{plain \TeX~and~\LaTeXe} -\label{ssec-chgfnt} +\label{ssec:chgfnt} \paragraph{plain \TeX} %<*en> To change Japanese fonts in plain \TeX, you must use the command -\cs{jfont}~and~\cs{tfont}. So please see Subsection~\ref{ssec-jfont}. +\cs{jfont}~and~\cs{tfont}. So please see Subsection~\ref{ssec:jfont}. % %<*ja> plain \TeX で和文フォントを変更するためには, \pTeX のように \cs{jfont} 命令や \cs{tfont} 命令を直接用いる. -\ref{ssec-jfont}節を参照. +\ref{ssec:jfont}節を参照. % \paragraph{\LaTeXe\ (NFSS2)} @@ -1286,7 +1295,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\ alphabetic fonts to \texttt{T1}. \cs{fontfamily} also changes the current Japanese font family, the current alphabetic font family, \emph{or both}. - For the detail, see Subsection~\ref{ssec-nfsspat}. + For the detail, see Subsection~\ref{ssec:nfsspat}. % %<*ja> ここで,\verb+\fontencoding{+\verb+}+ は,引数により和文側か欧文 @@ -1295,7 +1304,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\ \texttt{JY3}に変更し,\verb+\fontencoding{T1}+ は欧文フォント側を \texttt{T1}へと変更する.\cs{fontfamily} も引数により和文側,欧文 側,\emph{あるいは両方}のフォントファミリを変更する.詳細は - \ref{ssec-nfsspat}節を参照すること. + \ref{ssec:nfsspat}節を参照すること. % %<*en> @@ -1319,8 +1328,8 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\ \end{lstlisting} %<*ja> 仮名書体を使う場合など,複数の和文フォントを組み合わせて使いたい場合は -\ref{ssec-altfont}節の \cs{ltjdeclarealtfont} と,その\LaTeX 版の\ -\cs{DeclareAlternateKanjiFont}(\ref{ssec-nfsspat}節)を参照せよ. +\ref{ssec:altfont}節の \cs{ltjdeclarealtfont} と,その\LaTeX 版の\ +\cs{DeclareAlternateKanjiFont}(\ref{ssec:nfsspat}節)を参照せよ. % \end{itemize} @@ -1376,17 +1385,17 @@ $5\in 素:=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$. %<*en> We also believe that using Japanese characters as identifiers is rare, hence we don't describe how to change Japanese fonts in math mode in -this chapter. For the method, please see Subsection~\ref{ssec-math}. +this chapter. For the method, please see Subsection~\ref{ssec:math}. % %<*ja> また\LuaTeX-jaプロジェクトでは,和文文字が識別子として用いられることはほとんどない と考えており,したがってこの節では数式モード中の和文フォントを変更する方法については -記述しない.この方法については\ref{ssec-math}節を参照のこと. +記述しない.この方法については\ref{ssec:math}節を参照のこと. % %\subsection{\Pkg{luatexja-fontspec} package} %\subsection{\Pkg{luatexja-fontspec}パッケージ} -\label{ssec-fontspec} +\label{ssec:fontspec} %<*en> To use the functionality of the \Pkg{fontspec} package to Japanese fonts, it is needed to load the \Pkg{luatexja-fontspec} package in the preamble, as follows: @@ -1487,13 +1496,23 @@ if and only if this \texttt{\textup{match}} option is specified}. \item[scale=] %<*en> Override the ratio of the font size of Japanese fonts to that of alphabetic fonts. -The default value is calculated automatically (for~example, about~0.924865 when - the \Pkg{ltjsarticle} class is used). +The default value is determined as follows: + \begin{itemize} + \item The value of \cs{Cjascale} is used, if this control sequence is already defined. + \item It is calculated automatically from the current Japanese font at the loading of the + package, if \cs{Cjascale} is not defined. + \end{itemize} +\cs{Cjascale} is defined in \Pkg{ltjclasses} and \Pkg{ltjsclasses}. % %<*ja> -欧文に対する和文の比率は,標準では \Pkg{luatexja-fontspec}読み込み時の和欧文比率から -自動計算される(例えば,\Pkg{ltjsarticle}クラス使用時には和文は欧文の約0.924865倍となる)が, -それを手動で上書きするときに使用する. +欧文に対する和文の比率を手動で上書きするときに使用する. +標準では +\begin{itemize} + \item \cs{Cjascale}が定義されている場合 + \footnote{\LuaTeX-ja が用意しているクラスファイル(\Pkg{ltjclasses},~\Pkg{ltjsclasses})を + 使う場合はこちらに当てはまる.}は,それを用いる. + \item \cs{Cjascale}が未定義の場合は,\Pkg{luatexja-fontspec}読み込み時の和文フォントから自動計算される. +\end{itemize} % \end{cslist} @@ -1613,13 +1632,13 @@ as an external package \Pkg{luatexja-otf}. これら3オプションについては, \Pkg{luatexja-preset} パッケージにプリセットを使う時に一緒に指定するか, -あるいは対応する内容を\ref{ssec-chgfnt}節,\ref{ssec-nfsspat}節 (NFSS2) や -\ref{ssec-fontspec}節 (\Pkg{fontspec}) の方法で手動で指定する必要がある. +あるいは対応する内容を\ref{ssec:chgfnt}節,\ref{ssec:nfsspat}節 (NFSS2) や +\ref{ssec:fontspec}節 (\Pkg{fontspec}) の方法で手動で指定する必要がある. % %\subsection{Changing default Japanese fonts} %\subsection{標準和文フォントの変更} -\label{ssec-cfg} +\label{ssec:cfg} %<*en> If \texttt{luatexja.cfg} can be seen from \LuaTeX, \LuaTeX-ja automatically reads it. The main use of \texttt{luatexja.cfg} is for changing default Japanese fonts, @@ -1690,7 +1709,7 @@ parameters, you have to use commands \cs{ltjsetparameter} and %\subsection{Range of \textbf{JAchar}s} %\subsection{\textbf{JAchar}の範囲} -\label{ssec-setrange} +\label{ssec:setrange} %<*en> \LuaTeX-ja divides the Unicode codespace \texttt{U+0080}--\texttt{U+10FFFF} @@ -2156,10 +2175,10 @@ as follows: \ltjsetparameter{alxspmode={`あ,preonly}, jaxspmode={`\!,postonly}} \end{lstlisting} %<*en> -One can use also numbers to specify these two parameters (see Subsection~\ref{ssec-param}). +One can use also numbers to specify these two parameters (see Subsection~\ref{ssec:param}). % %<*ja> -また,これら2パラメータには数値で値を指定することもできる(\ref{ssec-param}節を参照). +また,これら2パラメータには数値で値を指定することもできる(\ref{ssec:param}節を参照). % %<*en> @@ -2367,7 +2386,7 @@ However, the penalty inserted after it is 10 which is the \Param{postbreakpenalt \end{quote} は,文字コードごとに設定する量である. -\Pkg{fontspec}パッケージを使う(\ref{ssec-fontspec}節)場合など, +\Pkg{fontspec}パッケージを使う(\ref{ssec:fontspec}節)場合など, 各種のOpenType featureを適用することもあると思うが,前段落に述べたパラメータ類は, \emph{OpenType featureの適用前の文字コードによって適用される.} 例えば,以下の例において10行目の「ア」は,\verb+hwid+ featureの適用により半角カタカナの「ア」 @@ -2476,7 +2495,7 @@ and \LuaTeX-ja can control these four kinds separately: \begin{itemize} \item \emph{Distinction between \textbf{JAchar} or \textbf{ALchar}} -is controlled by the character range, see Subsection~\ref{ssec-setrange}. +is controlled by the character range, see Subsection~\ref{ssec:setrange}. \item \emph{Whether the character can be used in a control word} is controlled by setting \cs{catcode} to 11~(enabled) or 12~(disabled), as usual. @@ -2493,7 +2512,7 @@ is controlled by the lowermost bit of the \Param{kcatcode} parameter. 分割している: \begin{description} \item[欧文/和文の区別 (\upTeX)] -\cs{ltjdefcharrange} と\textsf{jacharrange}パラメータ(\ref{ssec-setrange}節) +\cs{ltjdefcharrange} と\textsf{jacharrange}パラメータ(\ref{ssec:setrange}節) \item[制御綴中に使用可か] \LuaTeX 自身の \cs{catcode} でよい \item[\Param{jcharwidowpenalty}が挿入可か] @@ -3252,7 +3271,7 @@ overridden by \LuaTeX-ja, using~\verb+\protected\def+. %\section{フォントメトリックと和文フォント} %\subsection{\cs{jfont}} %\subsection{\cs{jfont} 命令} -\label{ssec-jfont} +\label{ssec:jfont} %<*en> To load a font as a Japanese font (for horizontal direction), you must use the @@ -3489,7 +3508,7 @@ because of the compatibility with previous versions of \LuaTeX-ja. \autoref{fig:kern-jfm}を参照. \begin{itemize} \item \emph{\cs{jfont} や, -NFSS2用の命令(\ref{ssec-chgfnt}節,\ref{ssec-nfsspat}節)における指定では +NFSS2用の命令(\ref{ssec:chgfnt}節,\ref{ssec:nfsspat}節)における指定では カーニング情報は標準で使用する}ことになっているようである. 言い換えれば,カーニング情報を使用しない設定にするには,面倒でも \begin{lstlisting} @@ -3686,7 +3705,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont }. \item さらに,「いかなるscript,~languageでも\texttt{vert}により置換されない」グリフ のうち,UAX~\#50で``r''もしくは``Tr''と指定されているものは90度自動回転させる. - \item \ref{ssec-math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない. + \item \ref{ssec:math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない. \item \texttt{jfm=}\ の部分には縦組用JFMを指定する. 以下の縦組用JFMが\LuaTeX-jaには同梱されている.%おり,違いを\autoref{tab-difjfm-tate}に示した. \begin{description} @@ -3705,7 +3724,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont %\subsection{Prefix \texttt{psft}} %\subsection{\texttt{psft}プリフィックス} -\label{ssec-psft} +\label{ssec:psft} %<*en> Besides ``\texttt{file:}''\ and ``\texttt{name:}''\ prefixes which are introduced in the \Pkg{luaotfload} package, @@ -3808,7 +3827,7 @@ Please contact the LuaTeX-ja project team. %\subsection{Structure of a JFM file} %\subsection{JFMファイルの構造} -\label{ssec-jfm-str} +\label{ssec:jfm-str} %A JFM file is a Lua script which has only one function call: %JFMファイルはただ一つの関数呼び出しを含むLuaスクリプトである: \begin{lstlisting} @@ -4266,7 +4285,7 @@ we specify to $0.25/(0.5+0.25)=1/3$. \begin{cslist}[style=standard] \item[priority=] \Pkg{luatexja-adjust}による優先順位付き - 行長調整(\ref{ssec-adj}節)において,このグルーの優先度を指定する.許される値は以下の通り: + 行長調整(\ref{ssec:adj}節)において,このグルーの優先度を指定する.許される値は以下の通り: \begin{description} \item[バージョン1] $-4$から$+3$の間の整数 \item[バージョン2以降] $-4$から$+3$の間の整数の2つ組\texttt{\{, \}}か, @@ -4315,7 +4334,7 @@ An integer in $[-4,3]$ (treated as 0 if omitted), or a pair of these integers \texttt{\{, \}} (version 2~or~later). This is used only in line adjustment with priority by \Pkg{luatexja-adjust} -(see Subsection~\ref{ssec-adj}). Higher value means the glue is easy to stretch, +(see Subsection~\ref{ssec:adj}). Higher value means the glue is easy to stretch, and is also easy to shrink. \item[kanjiskip\_natural=\textrm{, }% kanjiskip\_stretch=\textrm{, }kanjiskip\_shrink=]\leavevmode @@ -4367,7 +4386,7 @@ Hence we have the following result: 優先順位付き行長調整が有効であり,かつ現在の文字クラスの文字が 行末に来た時に,この文字と行末の間には指定された値のいずれかの大きさのカーンが - 挿入される(\autoref{ssec-adj}参照). + 挿入される(\autoref{ssec:adj}参照). バージョン1における \begin{lstlisting}[escapechar=\$] @@ -4593,7 +4612,7 @@ JFM側で一部の対処ができることにより,\Pkg{jsclasses}のよう %\subsection{Math font family} %\subsection{数式フォントファミリ} -\label{ssec-math} +\label{ssec:math} %<*en> \TeX\ handles fonts in math formulas by 16~font families\footnote{Omega, @@ -4938,7 +4957,7 @@ Then, the position of glyphs is shifted up by %\section{Parameters} %\section{パラメータ} \subsection{\cs{ltjsetparameter}} -\label{ssec-param} +\label{ssec:param} %<*en> As described before, \cs{ltjsetparameter} and \cs{ltjgetparameter} are @@ -5168,7 +5187,7 @@ The default glue which inserted between two \textbf{JAchar}s. Changing current Japanese font does not alter this parameter, as \pTeX. If the natural width of this parameter is \cs{maxdimen}, \LuaTeX-ja uses -the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec-jfm-str}). +the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec:jfm-str}). % \item[\DParam{xkanjiskip}\,=$^\ast$] [\cs{xkanjiskip}]\ @@ -5184,7 +5203,7 @@ The default glue which inserted between a \textbf{JAchar} and an Changing current font does not alter this parameter, as \pTeX. As \Param{kanjiskip}, if the natural width of this parameter is \cs{maxdimen}, \LuaTeX-ja uses -the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec-jfm-str}). +the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec:jfm-str}). % @@ -5213,7 +5232,7 @@ The default value is \texttt{paverage}. \dots % %<*ja> デフォルト値は \texttt{paverage} である. -各々の値による差異の詳細は\ref{ssec-cluster-wa}節の「『右空白』の算出」を参照してほしい. +各々の値による差異の詳細は\ref{ssec:cluster-wa}節の「『右空白』の算出」を参照してほしい. % \item[\DParam{jacharrange}\,=] @@ -5239,7 +5258,7 @@ the behavior of this assignment is undefined. \subsection{\cs{ltjgetparameter}} -\label{ssec-getpar} +\label{ssec:getpar} %<*en> \cs{ltjgetparameter} is a control sequence for acquiring parameters. It always takes a parameter name as first argument. @@ -5709,7 +5728,7 @@ As an example, the example above can be improved as follows: \subsection{\cs{ltjdeclarealtfont}} -\label{ssec-altfont} +\label{ssec:altfont} %<*en> Using \cs{ltjdeclarealtfont}, one can ``compose'' more than one Japanese fonts. This \cs{ltjdeclarealtfont} uses in the following form: @@ -5778,7 +5797,7 @@ are typeset by \cs{piyo}. \subsection{\cs{ltjalchar} と \cs{ltjjachar}} 文字コードが$\text{}~(\geq 128=\mathtt{0x80})$の文字を \ \cs{char} プリミティブを使い \cs{char} として出力させると, -その文字の属する文字範囲(\ref{ssec-setrange}節参照)によって +その文字の属する文字範囲(\ref{ssec:setrange}節参照)によって \textbf{ALchar}か\textbf{JAchar}か,つまり欧文フォントで出力されるか和文フォントで出力され るかが決まる. @@ -5789,7 +5808,7 @@ are typeset by \cs{piyo}. が127以下の場合は,\cs{ltjjachar} であっても\textbf{ALchar}として出力されること に注意. -以下は\ref{ssec-setrange}節に載せた例に,\cs{char} の動作を追加したものである. +以下は\ref{ssec:setrange}節に載せた例に,\cs{char} の動作を追加したものである. \begin{LTXexample}[width=0.25\textwidth] \gtfamily\large % default, ALchar, JAchar ¶, \char`¶, \ltjalchar`¶, \ltjjachar`¶\\ % default: ALchar @@ -5802,19 +5821,19 @@ are typeset by \cs{piyo}. %\subsection{Patch for NFSS2} %\subsection{NFSS2へのパッチ} -\label{ssec-nfsspat} +\label{ssec:nfsspat} %<*en> Japanese patch for NFSS2 in \LuaTeX-ja is based on \texttt{plfonts.dtx} which plays the same role in \pLaTeXe. We will describe -commands which are not described in Subsection~\ref{ssec-chgfnt}. +commands which are not described in Subsection~\ref{ssec:chgfnt}. % %<*ja> \LuaTeX-jaのNFSS2への日本語パッチは \pLaTeXe で同様の役割を果たす \texttt{plfonts.dtx} をベースに, 和文エンコーディングの管理等をLuaで書きなおしたものである. -ここでは\ref{ssec-chgfnt}節で述べていなかった命令について +ここでは\ref{ssec:chgfnt}節で述べていなかった命令について 記述しておく. % @@ -5991,11 +6010,11 @@ character whose character class is zero, instead of `あ'. \item[\cs{fontfamily}\{\}] %<*en> As in \LaTeXe, this command changes current font family (alphabetic, Japanese,~\emph{or both}) -to . See Subsection~\ref{ssec-fontfamilycmd} for detail. +to . See Subsection~\ref{ssec:fontfamilycmd} for detail. % %<*ja> 元々の\LaTeXe におけるものと同様に,このコマンドは現在のフォントファミリ(欧文, -和文,\emph{もしくは両方})をに変更する.詳細は\ref{ssec-fontfamilycmd}節を参照すること. +和文,\emph{もしくは両方})をに変更する.詳細は\ref{ssec:fontfamilycmd}節を参照すること. % @@ -6018,7 +6037,7 @@ to . See Subsection~\ref{ssec-fontfamilycmd} for detail. \item[\cs{DeclareAlternateKanjiFont}\{\}\{\}\{\}\{\}\\ \null\hfill\{\}\{\}\{\}\{\}\{\}] %<*ja> -\ref{ssec-altfont}節の\ +\ref{ssec:altfont}節の\ \cs{ltjdeclarealtfont} と同様に,前半の4引数の 和文フォント(基底フォント)のうち中の文字を 第5から第8引数の和文フォントを使って組むように指示する. @@ -6038,7 +6057,7 @@ to . See Subsection~\ref{ssec-fontfamilycmd} for detail. \end{itemize}% % %<*en> -As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}), +As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}), characters in of the Japanese font (we say the \emph{base font}) which specified by first 4 arguments are typeset by the Japanese font which specified by fifth to eighth arguments @@ -6075,7 +6094,7 @@ Avant Garde (OT1/pag/m/n) に変わっていることがわかる. %\subsection{Detail of \cs{fontfamily} command} %\subsection{\cs{fontfamily}コマンドの詳細} -\label{ssec-fontfamilycmd} +\label{ssec:fontfamilycmd} %<*en> In this subsection, we describe when \cs{fontfamily} changes current Japanese/alphabetic font family. Basically, current Japanese fotn family is changed to @@ -6312,9 +6331,9 @@ by \cs{input}. \cs{input} で読み込み可能である. % \subsection{\Pkg{luatexja-fontspec}} -\label{ssec-fontspec2} +\label{ssec:fontspec2} %<*en> -As described in Subsection~\ref{ssec-fontspec}, this optional package +As described in Subsection~\ref{ssec:fontspec}, this optional package provides the counterparts for several commands defined in the \Pkg{fontspec} package (requires \Pkg{fontspec}~v2.4). In addition to OpenType font features in the original \Pkg{fontspec}, @@ -6322,7 +6341,7 @@ the following ``font features'' specifications are allowed for the commands of Japanese version: % %<*ja> -\ref{ssec-fontspec}節で述べたように,この追加パッケージは\Pkg{fontspec}% +\ref{ssec:fontspec}節で述べたように,この追加パッケージは\Pkg{fontspec}% パッケージで定義されているコマンドに対応する和文フォント用のコマンドを提供する. \Pkg{fontspec}パッケージで指定可能な各種OpenType機能に加えて,和文版のコマンドには @@ -6336,7 +6355,7 @@ the commands of Japanese version: %<*en> These 3 keys correspond to \texttt{cid}, \texttt{jfm} and \texttt{jfmvar} keys for \cs{jfont}~and~\cs{tfont} respectively. -See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details +See Subsections~\ref{ssec:jfont} and \ref{ssec:psft} for details of \texttt{cid}, \texttt{jfm} and \texttt{jfmvar} keys. @@ -6348,8 +6367,8 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys. %<*ja> これら3つのキーはそれぞれ \cs{jfont},~\cs{tfont}に対する \texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーとそれぞれ対応する. -\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーの詳細は\ref{ssec-jfont}節 - と\ref{ssec-psft}節を参照. +\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーの詳細は\ref{ssec:jfont}節 + と\ref{ssec:psft}節を参照. \texttt{CID} キーは下の \texttt{NoEmbed} と合わせて用いられたときのみ有効である. また,横組用JFMと縦組用JFMは共用できないため,実際に \texttt{JFM} キーを用いる際は @@ -6360,11 +6379,11 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys. \item[NoEmbed] %<*en> By specifying this key, one can use ``name-only'' Japanese font which -will not be embedded in the output PDF file. See Subsection~\ref{ssec-psft}. +will not be embedded in the output PDF file. See Subsection~\ref{ssec:psft}. % %<*ja> これを指定することで,PDFに埋め込まれない「名前だけ」のフォントを指定することが -できる.\ref{ssec-psft}節を参照. +できる.\ref{ssec:psft}節を参照. % \begin{figure}[!tb] @@ -6436,16 +6455,16 @@ A demonstrarion is shown in \autoref{fig:yokotate-fontspec}. \item[AltFont] %<*en> -As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}) and -\cs{DeclareAlternateKanjiFont}~(Subsection~\ref{ssec-nfsspat}), +As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}) and +\cs{DeclareAlternateKanjiFont}~(Subsection~\ref{ssec:nfsspat}), with this key, one can typeset some Japanese characters by a different font and/or using different features. The \texttt{AltFont} feature takes a comma-separated list of comma-separated lists, as the following: % %<*ja> -\ref{ssec-altfont}節の \cs{ltjdeclarealtfont} や, -\ref{ssec-nfsspat}節の \cs{DeclareAlternateKanjiFont} と同様に, +\ref{ssec:altfont}節の \cs{ltjdeclarealtfont} や, +\ref{ssec:nfsspat}節の \cs{DeclareAlternateKanjiFont} と同様に, このキーを用いると一部の文字を異なったフォントや機能たちを使って組むことができる. \texttt{AltFont} キーに指定する値は,次のように二重のコンマ区切りリストである: % @@ -6545,7 +6564,7 @@ OpenType機能指定は \subsection{\Pkg{luatexja-otf}} -\label{ssec-ltjotf} +\label{ssec:ltjotf} %<*en> This optional package supports typesetting glyphs by specifying a CID number. @@ -6651,7 +6670,7 @@ JFMの\texttt{chars}テーブルのエントリとして \verb+'AJ1-xxx'+ の形 % \subsection{\Pkg{luatexja-adjust}} -\label{ssec-adj} +\label{ssec:adj} \begin{figure}[t] \def\sq{% \hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{% -- cgit v1.2.3