• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョン9f557170b585a08970580f109df69cf26f6d6b20 (tree)
日時2018-01-01 14:37:49
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

regenerated pdf

変更サマリ

差分

Binary files a/doc/ltjclasses.pdf and b/doc/ltjclasses.pdf differ
Binary files a/doc/ltjltxdoc.pdf and b/doc/ltjltxdoc.pdf differ
Binary files a/doc/ltjsclasses.pdf and b/doc/ltjsclasses.pdf differ
Binary files a/doc/luatexja-en.pdf and b/doc/luatexja-en.pdf differ
Binary files a/doc/luatexja-ja.pdf and b/doc/luatexja-ja.pdf differ
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -482,7 +482,7 @@ Japanese characters in discretionary break (\cs{discretionary}) is not supported
482482 By default, \LuaTeX-ja uses Japanese fonts to typeset Greek and Cyrillic letters,
483483 To change this behavior,
484484 put \verb!\ltjsetparameter{jacharrange={-2,-3}}! in the preamble.
485- For the detailed description, see Subsection~\ref{ssec-setrange}.
485+ For the detailed description, see Subsection~\ref{ssec:setrange}.
486486
487487 From version~20150906.0, characters which belongs both ISO~8859-1 and JIS~X~0208,
488488 such as \P~and~\S, are now typeset in alphabetic fonts.
@@ -499,7 +499,7 @@ without the \cs{fontspec} (and~\Pkg{luatexja-fontspec}) package.
499499 \end{lstlisting}
500500 を入れると
501501 上記種類の文字は欧文フォントを用いて組まれるようになる.
502- 詳しい説明は\ref{ssec-setrange}節を参照してほしい.
502+ 詳しい説明は\ref{ssec:setrange}節を参照してほしい.
503503
504504 また,\P,~\S といったISO~8859-1の上位領域とJIS~X~0208の共通部分の文字は
505505 バージョン20150906.0から標準で欧文扱いとなった.\LaTeXe\ 2017/01/01以降では
@@ -524,11 +524,11 @@ In this document, the following terms and notations are used:
524524 %<*en>
525525 \item Characters are classified into following two types.
526526 Note that the classification can be customized by a user
527- (see Subsection~\ref{ssec-setrange}).
527+ (see Subsection~\ref{ssec:setrange}).
528528 %</en>
529529 %<*ja>
530530 \item 文字は次の2種類に分けられる.この類別は固定されているものではなく,ユーザが後から変更可能である
531- (\ref{ssec-setrange}節を参照).
531+ (\ref{ssec:setrange}節を参照).
532532 %</ja>
533533 \begin{itemize}
534534 %<*en>
@@ -874,7 +874,7 @@ and finally delete the temporary directory.
874874
875875 %<en>\subsection{Using in plain \TeX}
876876 %<ja>\subsection{plain \TeX で使う}
877-\label{ssec-plain}
877+\label{ssec:plain}
878878
879879 %<en>To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document:
880880 %<ja>\LuaTeX-jaを plain \TeX で使うためには,単に次の行をソースファイルの冒頭に追加すればよい:
@@ -923,11 +923,11 @@ and finally delete the temporary directory.
923923 \begin{itemize}
924924 %<*en>
925925 \item With \texttt{luatexja.cfg}, one can use other fonts
926-as ``default'' Japanese fonts (Subsection~\ref{ssec-cfg}).
926+as ``default'' Japanese fonts (Subsection~\ref{ssec:cfg}).
927927 %</en>
928928 %<*ja>
929929 \item \texttt{luatexja.cfg} を用いることによって,標準和文フォントを
930-IPAexフォントから別のフォントに置き換えることができる.\ref{ssec-cfg}節を参照.
930+IPAexフォントから別のフォントに置き換えることができる.\ref{ssec:cfg}節を参照.
931931 %</ja>
932932
933933 %<*en>
@@ -960,7 +960,7 @@ IPAexフォントから別のフォントに置き換えることができる.
960960
961961 %<en>\subsection{Using in \LaTeX}
962962 %<ja>\subsection{\LaTeX で使う}
963-\label{ssec-ltx}
963+\label{ssec:ltx}
964964
965965 %<*en>
966966 Using in \LaTeXe\ is basically same. To set up the minimal environment
@@ -1213,17 +1213,17 @@ This patch \Pkg{lltjp-geometry} also can be used in \pLaTeX; for the detail, ple
12131213 %<ja>\section{フォントの変更}
12141214
12151215 \subsection{plain \TeX~and~\LaTeXe}
1216-\label{ssec-chgfnt}
1216+\label{ssec:chgfnt}
12171217
12181218 \paragraph{plain \TeX}
12191219 %<*en>
12201220 To change Japanese fonts in plain \TeX, you must use the command
1221-\cs{jfont}~and~\cs{tfont}. So please see Subsection~\ref{ssec-jfont}.
1221+\cs{jfont}~and~\cs{tfont}. So please see Subsection~\ref{ssec:jfont}.
12221222 %</en>
12231223 %<*ja>
12241224 plain \TeX で和文フォントを変更するためには,
12251225 \pTeX のように \cs{jfont} 命令や \cs{tfont} 命令を直接用いる.
1226-\ref{ssec-jfont}節を参照.
1226+\ref{ssec:jfont}節を参照.
12271227 %</ja>
12281228
12291229 \paragraph{\LaTeXe\ (NFSS2)}
@@ -1286,7 +1286,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
12861286 alphabetic fonts to \texttt{T1}.
12871287 \cs{fontfamily} also changes the current Japanese font family,
12881288 the current alphabetic font family, \emph{or both}.
1289- For the detail, see Subsection~\ref{ssec-nfsspat}.
1289+ For the detail, see Subsection~\ref{ssec:nfsspat}.
12901290 %</en>
12911291 %<*ja>
12921292 ここで,\verb+\fontencoding{+<encoding>\verb+}+ は,引数により和文側か欧文
@@ -1295,7 +1295,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
12951295 \texttt{JY3}に変更し,\verb+\fontencoding{T1}+ は欧文フォント側を
12961296 \texttt{T1}へと変更する.\cs{fontfamily} も引数により和文側,欧文
12971297 側,\emph{あるいは両方}のフォントファミリを変更する.詳細は
1298- \ref{ssec-nfsspat}節を参照すること.
1298+ \ref{ssec:nfsspat}節を参照すること.
12991299 %</ja>
13001300
13011301 %<*en>
@@ -1319,8 +1319,8 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\
13191319 \end{lstlisting}
13201320 %<*ja>
13211321 仮名書体を使う場合など,複数の和文フォントを組み合わせて使いたい場合は
1322-\ref{ssec-altfont}節の \cs{ltjdeclarealtfont} と,その\LaTeX 版の\
1323-\cs{DeclareAlternateKanjiFont}(\ref{ssec-nfsspat}節)を参照せよ.
1322+\ref{ssec:altfont}節の \cs{ltjdeclarealtfont} と,その\LaTeX 版の\
1323+\cs{DeclareAlternateKanjiFont}(\ref{ssec:nfsspat}節)を参照せよ.
13241324 %</ja>
13251325
13261326 \end{itemize}
@@ -1376,17 +1376,17 @@ $5\in 素:=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
13761376 %<*en>
13771377 We also believe that using Japanese characters as identifiers is rare,
13781378 hence we don't describe how to change Japanese fonts in math mode in
1379-this chapter. For the method, please see Subsection~\ref{ssec-math}.
1379+this chapter. For the method, please see Subsection~\ref{ssec:math}.
13801380 %</en>
13811381 %<*ja>
13821382 また\LuaTeX-jaプロジェクトでは,和文文字が識別子として用いられることはほとんどない
13831383 と考えており,したがってこの節では数式モード中の和文フォントを変更する方法については
1384-記述しない.この方法については\ref{ssec-math}節を参照のこと.
1384+記述しない.この方法については\ref{ssec:math}節を参照のこと.
13851385 %</ja>
13861386
13871387 %<en>\subsection{\Pkg{luatexja-fontspec} package}
13881388 %<ja>\subsection{\Pkg{luatexja-fontspec}パッケージ}
1389-\label{ssec-fontspec}
1389+\label{ssec:fontspec}
13901390 %<*en>
13911391 To use the functionality of the \Pkg{fontspec} package to Japanese fonts,
13921392 it is needed to load the \Pkg{luatexja-fontspec} package in the preamble, as follows:
@@ -1487,13 +1487,23 @@ if and only if this \texttt{\textup{match}} option is specified}.
14871487 \item[scale=<float>]
14881488 %<*en>
14891489 Override the ratio of the font size of Japanese fonts to that of alphabetic fonts.
1490-The default value is calculated automatically (for~example, about~0.924865 when
1491- the \Pkg{ltjsarticle} class is used).
1490+The default value is determined as follows:
1491+ \begin{itemize}
1492+ \item The value of \cs{Cjascale} is used, if this control sequence is already defined.
1493+ \item It is calculated automatically from the current Japanese font at the loading of the
1494+ package, if \cs{Cjascale} is not defined.
1495+ \end{itemize}
1496+\cs{Cjascale} is defined in \Pkg{ltjclasses} and \Pkg{ltjsclasses}.
14921497 %</en>
14931498 %<*ja>
1494-欧文に対する和文の比率は,標準では \Pkg{luatexja-fontspec}読み込み時の和欧文比率から
1495-自動計算される(例えば,\Pkg{ltjsarticle}クラス使用時には和文は欧文の約0.924865倍となる)が,
1496-それを手動で上書きするときに使用する.
1499+欧文に対する和文の比率を手動で上書きするときに使用する.
1500+標準では
1501+\begin{itemize}
1502+ \item \cs{Cjascale}が定義されている場合
1503+ \footnote{\LuaTeX-ja が用意しているクラスファイル(\Pkg{ltjclasses},~\Pkg{ltjsclasses})を
1504+ 使う場合はこちらに当てはまる.}は,それを用いる.
1505+ \item \cs{Cjascale}が未定義の場合は,\Pkg{luatexja-fontspec}読み込み時の和文フォントから自動計算される.
1506+\end{itemize}
14971507 %</ja>
14981508 \end{cslist}
14991509
@@ -1613,13 +1623,13 @@ as an external package \Pkg{luatexja-otf}.
16131623
16141624 これら3オプションについては,
16151625 \Pkg{luatexja-preset} パッケージにプリセットを使う時に一緒に指定するか,
1616-あるいは対応する内容を\ref{ssec-chgfnt}節,\ref{ssec-nfsspat}節 (NFSS2) や
1617-\ref{ssec-fontspec}節 (\Pkg{fontspec}) の方法で手動で指定する必要がある.
1626+あるいは対応する内容を\ref{ssec:chgfnt}節,\ref{ssec:nfsspat}節 (NFSS2) や
1627+\ref{ssec:fontspec}節 (\Pkg{fontspec}) の方法で手動で指定する必要がある.
16181628 %</ja>
16191629
16201630 %<en>\subsection{Changing default Japanese fonts}
16211631 %<ja>\subsection{標準和文フォントの変更}
1622-\label{ssec-cfg}
1632+\label{ssec:cfg}
16231633 %<*en>
16241634 If \texttt{luatexja.cfg} can be seen from \LuaTeX, \LuaTeX-ja automatically reads it.
16251635 The main use of \texttt{luatexja.cfg} is for changing default Japanese fonts,
@@ -1690,7 +1700,7 @@ parameters, you have to use commands \cs{ltjsetparameter} and
16901700
16911701 %<en>\subsection{Range of \textbf{JAchar}s}
16921702 %<ja>\subsection{\textbf{JAchar}の範囲}
1693-\label{ssec-setrange}
1703+\label{ssec:setrange}
16941704
16951705 %<*en>
16961706 \LuaTeX-ja divides the Unicode codespace \texttt{U+0080}--\texttt{U+10FFFF}
@@ -2156,10 +2166,10 @@ as follows:
21562166 \ltjsetparameter{alxspmode={`あ,preonly}, jaxspmode={`\!,postonly}}
21572167 \end{lstlisting}
21582168 %<*en>
2159-One can use also numbers to specify these two parameters (see Subsection~\ref{ssec-param}).
2169+One can use also numbers to specify these two parameters (see Subsection~\ref{ssec:param}).
21602170 %</en>
21612171 %<*ja>
2162-また,これら2パラメータには数値で値を指定することもできる(\ref{ssec-param}節を参照).
2172+また,これら2パラメータには数値で値を指定することもできる(\ref{ssec:param}節を参照).
21632173 %</ja>
21642174
21652175 %<*en>
@@ -2367,7 +2377,7 @@ However, the penalty inserted after it is 10 which is the \Param{postbreakpenalt
23672377 \end{quote}
23682378 は,文字コードごとに設定する量である.
23692379
2370-\Pkg{fontspec}パッケージを使う(\ref{ssec-fontspec}節)場合など,
2380+\Pkg{fontspec}パッケージを使う(\ref{ssec:fontspec}節)場合など,
23712381 各種のOpenType featureを適用することもあると思うが,前段落に述べたパラメータ類は,
23722382 \emph{OpenType featureの適用前の文字コードによって適用される.}
23732383 例えば,以下の例において10行目の「ア」は,\verb+hwid+ featureの適用により半角カタカナの「ア」
@@ -2476,7 +2486,7 @@ and \LuaTeX-ja can control these four kinds separately:
24762486 \begin{itemize}
24772487 \item
24782488 \emph{Distinction between \textbf{JAchar} or \textbf{ALchar}}
2479-is controlled by the character range, see Subsection~\ref{ssec-setrange}.
2489+is controlled by the character range, see Subsection~\ref{ssec:setrange}.
24802490 \item
24812491 \emph{Whether the character can be used in a control word}
24822492 is controlled by setting \cs{catcode} to 11~(enabled) or 12~(disabled), as usual.
@@ -2493,7 +2503,7 @@ is controlled by the lowermost bit of the \Param{kcatcode} parameter.
24932503 分割している:
24942504 \begin{description}
24952505 \item[欧文/和文の区別 (\upTeX)]
2496-\cs{ltjdefcharrange} と\textsf{jacharrange}パラメータ(\ref{ssec-setrange}節)
2506+\cs{ltjdefcharrange} と\textsf{jacharrange}パラメータ(\ref{ssec:setrange}節)
24972507 \item[制御綴中に使用可か]
24982508 \LuaTeX 自身の \cs{catcode} でよい
24992509 \item[\Param{jcharwidowpenalty}が挿入可か]
@@ -3252,7 +3262,7 @@ overridden by \LuaTeX-ja, using~\verb+\protected\def+.
32523262 %<ja>\section{フォントメトリックと和文フォント}
32533263 %<en>\subsection{\cs{jfont}}
32543264 %<ja>\subsection{\cs{jfont} 命令}
3255-\label{ssec-jfont}
3265+\label{ssec:jfont}
32563266
32573267 %<*en>
32583268 To load a font as a Japanese font (for horizontal direction), you must use the
@@ -3489,7 +3499,7 @@ because of the compatibility with previous versions of \LuaTeX-ja.
34893499 \autoref{fig:kern-jfm}を参照.
34903500 \begin{itemize}
34913501 \item \emph{\cs{jfont} や,
3492-NFSS2用の命令(\ref{ssec-chgfnt}節,\ref{ssec-nfsspat}節)における指定では
3502+NFSS2用の命令(\ref{ssec:chgfnt}節,\ref{ssec:nfsspat}節)における指定では
34933503 カーニング情報は標準で使用する}ことになっているようである.
34943504 言い換えれば,カーニング情報を使用しない設定にするには,面倒でも
34953505 \begin{lstlisting}
@@ -3686,7 +3696,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
36863696 }.
36873697 \item さらに,「いかなるscript,~languageでも\texttt{vert}により置換されない」グリフ
36883698 のうち,UAX~\#50で``r''もしくは``Tr''と指定されているものは90度自動回転させる.
3689- \item \ref{ssec-math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない.
3699+ \item \ref{ssec:math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない.
36903700 \item \texttt{jfm=<name>}\ の部分には縦組用JFMを指定する.
36913701 以下の縦組用JFMが\LuaTeX-jaには同梱されている.%おり,違いを\autoref{tab-difjfm-tate}に示した.
36923702 \begin{description}
@@ -3705,7 +3715,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
37053715
37063716 %<en>\subsection{Prefix \texttt{psft}}
37073717 %<ja>\subsection{\texttt{psft}プリフィックス}
3708-\label{ssec-psft}
3718+\label{ssec:psft}
37093719 %<*en>
37103720 Besides ``\texttt{file:}''\ and ``\texttt{name:}''\ prefixes which
37113721 are introduced in the \Pkg{luaotfload} package,
@@ -3808,7 +3818,7 @@ Please contact the LuaTeX-ja project team.
38083818
38093819 %<en>\subsection{Structure of a JFM file}
38103820 %<ja>\subsection{JFMファイルの構造}
3811-\label{ssec-jfm-str}
3821+\label{ssec:jfm-str}
38123822 %<en>A JFM file is a Lua script which has only one function call:
38133823 %<ja>JFMファイルはただ一つの関数呼び出しを含むLuaスクリプトである:
38143824 \begin{lstlisting}
@@ -4266,7 +4276,7 @@ we specify <ratio> to $0.25/(0.5+0.25)=1/3$.
42664276 \begin{cslist}[style=standard]
42674277 \item[priority=<priority>]
42684278 \Pkg{luatexja-adjust}による優先順位付き
4269- 行長調整(\ref{ssec-adj}節)において,このグルーの優先度を指定する.許される値は以下の通り:
4279+ 行長調整(\ref{ssec:adj}節)において,このグルーの優先度を指定する.許される値は以下の通り:
42704280 \begin{description}
42714281 \item[バージョン1] $-4$から$+3$の間の整数
42724282 \item[バージョン2以降] $-4$から$+3$の間の整数の2つ組\texttt{\{<stretch>, <shrink>\}}か,
@@ -4315,7 +4325,7 @@ An integer in $[-4,3]$ (treated as 0 if omitted), or
43154325 a pair of these integers \texttt{\{<stretch>, <shrink>\}} (version 2~or~later).
43164326 This is
43174327 used only in line adjustment with priority by \Pkg{luatexja-adjust}
4318-(see Subsection~\ref{ssec-adj}). Higher value means the glue is easy to stretch,
4328+(see Subsection~\ref{ssec:adj}). Higher value means the glue is easy to stretch,
43194329 and is also easy to shrink.
43204330 \item[kanjiskip\_natural=<num>\textrm{, }%
43214331 kanjiskip\_stretch=<num>\textrm{, }kanjiskip\_shrink=<num>]\leavevmode
@@ -4367,7 +4377,7 @@ Hence we have the following result:
43674377
43684378 優先順位付き行長調整が有効であり,かつ現在の文字クラスの文字が
43694379 行末に来た時に,この文字と行末の間には指定された値のいずれかの大きさのカーンが
4370- 挿入される(\autoref{ssec-adj}参照).
4380+ 挿入される(\autoref{ssec:adj}参照).
43714381
43724382 バージョン1における
43734383 \begin{lstlisting}[escapechar=\$]
@@ -4593,7 +4603,7 @@ JFM側で一部の対処ができることにより,\Pkg{jsclasses}のよう
45934603
45944604 %<en>\subsection{Math font family}
45954605 %<ja>\subsection{数式フォントファミリ}
4596-\label{ssec-math}
4606+\label{ssec:math}
45974607
45984608 %<*en>
45994609 \TeX\ handles fonts in math formulas by 16~font families\footnote{Omega,
@@ -4938,7 +4948,7 @@ Then, the position of glyphs is shifted up by
49384948 %<en>\section{Parameters}
49394949 %<ja>\section{パラメータ}
49404950 \subsection{\cs{ltjsetparameter}}
4941-\label{ssec-param}
4951+\label{ssec:param}
49424952
49434953 %<*en>
49444954 As described before, \cs{ltjsetparameter} and \cs{ltjgetparameter} are
@@ -5168,7 +5178,7 @@ The default glue which inserted between two \textbf{JAchar}s.
51685178 Changing current Japanese font does not alter this parameter, as \pTeX.
51695179
51705180 If the natural width of this parameter is \cs{maxdimen}, \LuaTeX-ja uses
5171-the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec-jfm-str}).
5181+the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec:jfm-str}).
51725182 %</en>
51735183
51745184 \item[\DParam{xkanjiskip}\,=<skip>$^\ast$] [\cs{xkanjiskip}]\
@@ -5184,7 +5194,7 @@ The default glue which inserted between a \textbf{JAchar} and an
51845194 Changing current font does not alter this parameter, as \pTeX.
51855195
51865196 As \Param{kanjiskip}, if the natural width of this parameter is \cs{maxdimen}, \LuaTeX-ja uses
5187-the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec-jfm-str}).
5197+the value which is specified in the JFM for current Japanese font (See Subsection~\ref{ssec:jfm-str}).
51885198 %</en>
51895199
51905200
@@ -5213,7 +5223,7 @@ The default value is \texttt{paverage}. \dots
52135223 %</en>
52145224 %<*ja>
52155225 デフォルト値は \texttt{paverage} である.
5216-各々の値による差異の詳細は\ref{ssec-cluster-wa}節の「『右空白』の算出」を参照してほしい.
5226+各々の値による差異の詳細は\ref{ssec:cluster-wa}節の「『右空白』の算出」を参照してほしい.
52175227 %</ja>
52185228
52195229 \item[\DParam{jacharrange}\,=<ranges>]
@@ -5239,7 +5249,7 @@ the behavior of this assignment is undefined.
52395249
52405250
52415251 \subsection{\cs{ltjgetparameter}}
5242-\label{ssec-getpar}
5252+\label{ssec:getpar}
52435253 %<*en>
52445254 \cs{ltjgetparameter} is a control sequence for acquiring parameters. It
52455255 always takes a parameter name as first argument.
@@ -5709,7 +5719,7 @@ As an example, the example above can be improved as follows:
57095719
57105720
57115721 \subsection{\cs{ltjdeclarealtfont}}
5712-\label{ssec-altfont}
5722+\label{ssec:altfont}
57135723 %<*en>
57145724 Using \cs{ltjdeclarealtfont}, one can ``compose'' more than one Japanese fonts.
57155725 This \cs{ltjdeclarealtfont} uses in the following form:
@@ -5778,7 +5788,7 @@ are typeset by \cs{piyo}.
57785788 \subsection{\cs{ltjalchar} と \cs{ltjjachar}}
57795789 文字コードが$\text{<chr\_code>}~(\geq 128=\mathtt{0x80})$の文字を
57805790 \ \cs{char} プリミティブを使い \cs{char}<chr\_code> として出力させると,
5781-その文字の属する文字範囲(\ref{ssec-setrange}節参照)によって
5791+その文字の属する文字範囲(\ref{ssec:setrange}節参照)によって
57825792 \textbf{ALchar}か\textbf{JAchar}か,つまり欧文フォントで出力されるか和文フォントで出力され
57835793 るかが決まる.
57845794
@@ -5789,7 +5799,7 @@ are typeset by \cs{piyo}.
57895799 <chr\_code>が127以下の場合は,\cs{ltjjachar} であっても\textbf{ALchar}として出力されること
57905800 に注意.
57915801
5792-以下は\ref{ssec-setrange}節に載せた例に,\cs{char} の動作を追加したものである.
5802+以下は\ref{ssec:setrange}節に載せた例に,\cs{char} の動作を追加したものである.
57935803 \begin{LTXexample}[width=0.25\textwidth]
57945804 \gtfamily\large % default, ALchar, JAchar
57955805 ¶, \char`¶, \ltjalchar`¶, \ltjjachar`¶\\ % default: ALchar
@@ -5802,19 +5812,19 @@ are typeset by \cs{piyo}.
58025812
58035813 %<en>\subsection{Patch for NFSS2}
58045814 %<ja>\subsection{NFSS2へのパッチ}
5805-\label{ssec-nfsspat}
5815+\label{ssec:nfsspat}
58065816
58075817 %<*en>
58085818 Japanese patch for NFSS2 in \LuaTeX-ja
58095819 is based on \texttt{plfonts.dtx} which plays the same role in \pLaTeXe.
58105820 We will describe
5811-commands which are not described in Subsection~\ref{ssec-chgfnt}.
5821+commands which are not described in Subsection~\ref{ssec:chgfnt}.
58125822 %</en>
58135823 %<*ja>
58145824 \LuaTeX-jaのNFSS2への日本語パッチは
58155825 \pLaTeXe で同様の役割を果たす \texttt{plfonts.dtx} をベースに,
58165826 和文エンコーディングの管理等をLuaで書きなおしたものである.
5817-ここでは\ref{ssec-chgfnt}節で述べていなかった命令について
5827+ここでは\ref{ssec:chgfnt}節で述べていなかった命令について
58185828 記述しておく.
58195829 %</ja>
58205830
@@ -5991,11 +6001,11 @@ character whose character class is zero, instead of `あ'.
59916001 \item[\cs{fontfamily}\{<family>\}]
59926002 %<*en>
59936003 As in \LaTeXe, this command changes current font family (alphabetic, Japanese,~\emph{or both})
5994-to <family>. See Subsection~\ref{ssec-fontfamilycmd} for detail.
6004+to <family>. See Subsection~\ref{ssec:fontfamilycmd} for detail.
59956005 %</en>
59966006 %<*ja>
59976007 元々の\LaTeXe におけるものと同様に,このコマンドは現在のフォントファミリ(欧文,
5998-和文,\emph{もしくは両方})を<family>に変更する.詳細は\ref{ssec-fontfamilycmd}節を参照すること.
6008+和文,\emph{もしくは両方})を<family>に変更する.詳細は\ref{ssec:fontfamilycmd}節を参照すること.
59996009 %</ja>
60006010
60016011
@@ -6018,7 +6028,7 @@ to <family>. See Subsection~\ref{ssec-fontfamilycmd} for detail.
60186028 \item[\cs{DeclareAlternateKanjiFont}\{<base-encoding>\}\{<base-family>\}\{<base-series>\}\{<base-shape>\}\\
60196029 \null\hfill\{<alt-encoding>\}\{<alt-family>\}\{<alt-series>\}\{<alt-shape>\}\{<range>\}]
60206030 %<*ja>
6021-\ref{ssec-altfont}節の\
6031+\ref{ssec:altfont}節の\
60226032 \cs{ltjdeclarealtfont} と同様に,前半の4引数の
60236033 和文フォント(基底フォント)のうち<range>中の文字を
60246034 第5から第8引数の和文フォントを使って組むように指示する.
@@ -6038,7 +6048,7 @@ to <family>. See Subsection~\ref{ssec-fontfamilycmd} for detail.
60386048 \end{itemize}%
60396049 %</ja>
60406050 %<*en>
6041-As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}),
6051+As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}),
60426052 characters in <range> of the Japanese font (we say the \emph{base font})
60436053 which specified by first 4 arguments are typeset
60446054 by the Japanese font which specified by fifth to eighth arguments
@@ -6075,7 +6085,7 @@ Avant Garde (OT1/pag/m/n) に変わっていることがわかる.
60756085
60766086 %<en>\subsection{Detail of \cs{fontfamily} command}
60776087 %<ja>\subsection{\cs{fontfamily}コマンドの詳細}
6078-\label{ssec-fontfamilycmd}
6088+\label{ssec:fontfamilycmd}
60796089 %<*en>
60806090 In this subsection, we describe when \cs{fontfamily}<family> changes current
60816091 Japanese/alphabetic font family. Basically, current Japanese fotn family is changed to
@@ -6312,9 +6322,9 @@ by \cs{input}.
63126322 \cs{input} で読み込み可能である.
63136323 %</ja>
63146324 \subsection{\Pkg{luatexja-fontspec}}
6315-\label{ssec-fontspec2}
6325+\label{ssec:fontspec2}
63166326 %<*en>
6317-As described in Subsection~\ref{ssec-fontspec}, this optional package
6327+As described in Subsection~\ref{ssec:fontspec}, this optional package
63186328 provides the counterparts for several commands defined in the
63196329 \Pkg{fontspec} package (requires \Pkg{fontspec}~v2.4).
63206330 In addition to OpenType font features in the original \Pkg{fontspec},
@@ -6322,7 +6332,7 @@ the following ``font features'' specifications are allowed for
63226332 the commands of Japanese version:
63236333 %</en>
63246334 %<*ja>
6325-\ref{ssec-fontspec}節で述べたように,この追加パッケージは\Pkg{fontspec}%
6335+\ref{ssec:fontspec}節で述べたように,この追加パッケージは\Pkg{fontspec}%
63266336 パッケージで定義されているコマンドに対応する和文フォント用のコマンドを提供する.
63276337
63286338 \Pkg{fontspec}パッケージで指定可能な各種OpenType機能に加えて,和文版のコマンドには
@@ -6336,7 +6346,7 @@ the commands of Japanese version:
63366346 %<*en>
63376347 These 3 keys correspond to \texttt{cid}, \texttt{jfm} and
63386348 \texttt{jfmvar} keys for \cs{jfont}~and~\cs{tfont} respectively.
6339-See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details
6349+See Subsections~\ref{ssec:jfont} and \ref{ssec:psft} for details
63406350 of \texttt{cid}, \texttt{jfm} and
63416351 \texttt{jfmvar} keys.
63426352
@@ -6348,8 +6358,8 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys.
63486358 %<*ja>
63496359 これら3つのキーはそれぞれ \cs{jfont},~\cs{tfont}に対する
63506360 \texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーとそれぞれ対応する.
6351-\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーの詳細は\ref{ssec-jfont}節
6352- と\ref{ssec-psft}節を参照.
6361+\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}キーの詳細は\ref{ssec:jfont}節
6362+ と\ref{ssec:psft}節を参照.
63536363
63546364 \texttt{CID} キーは下の \texttt{NoEmbed} と合わせて用いられたときのみ有効である.
63556365 また,横組用JFMと縦組用JFMは共用できないため,実際に \texttt{JFM} キーを用いる際は
@@ -6360,11 +6370,11 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys.
63606370 \item[NoEmbed]
63616371 %<*en>
63626372 By specifying this key, one can use ``name-only'' Japanese font which
6363-will not be embedded in the output PDF file. See Subsection~\ref{ssec-psft}.
6373+will not be embedded in the output PDF file. See Subsection~\ref{ssec:psft}.
63646374 %</en>
63656375 %<*ja>
63666376 これを指定することで,PDFに埋め込まれない「名前だけ」のフォントを指定することが
6367-できる.\ref{ssec-psft}節を参照.
6377+できる.\ref{ssec:psft}節を参照.
63686378 %</ja>
63696379
63706380 \begin{figure}[!tb]
@@ -6436,16 +6446,16 @@ A demonstrarion is shown in \autoref{fig:yokotate-fontspec}.
64366446 \item[AltFont]
64376447
64386448 %<*en>
6439-As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}) and
6440-\cs{DeclareAlternateKanjiFont}~(Subsection~\ref{ssec-nfsspat}),
6449+As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}) and
6450+\cs{DeclareAlternateKanjiFont}~(Subsection~\ref{ssec:nfsspat}),
64416451 with this key, one can typeset some Japanese characters
64426452 by a different font and/or using different features.
64436453 The \texttt{AltFont} feature takes a comma-separated list of comma-separated lists,
64446454 as the following:
64456455 %</en>
64466456 %<*ja>
6447-\ref{ssec-altfont}節の \cs{ltjdeclarealtfont} や,
6448-\ref{ssec-nfsspat}節の \cs{DeclareAlternateKanjiFont} と同様に,
6457+\ref{ssec:altfont}節の \cs{ltjdeclarealtfont} や,
6458+\ref{ssec:nfsspat}節の \cs{DeclareAlternateKanjiFont} と同様に,
64496459 このキーを用いると一部の文字を異なったフォントや機能たちを使って組むことができる.
64506460 \texttt{AltFont} キーに指定する値は,次のように二重のコンマ区切りリストである:
64516461 %</ja>
@@ -6545,7 +6555,7 @@ OpenType機能指定は
65456555
65466556
65476557 \subsection{\Pkg{luatexja-otf}}
6548-\label{ssec-ltjotf}
6558+\label{ssec:ltjotf}
65496559 %<*en>
65506560 This optional package supports typesetting glyphs
65516561 by specifying a CID number.
@@ -6651,7 +6661,7 @@ JFMの\texttt{chars}テーブルのエントリとして \verb+'AJ1-xxx'+ の形
66516661 %</ja>
66526662
66536663 \subsection{\Pkg{luatexja-adjust}}
6654-\label{ssec-adj}
6664+\label{ssec:adj}
66556665 \begin{figure}[t]
66566666 \def\sq{%
66576667 \hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{%
--- a/src/ltjclasses.dtx
+++ b/src/ltjclasses.dtx
@@ -585,7 +585,7 @@
585585 % \cs{Cht}等の値が反映されないのでこの場所に移動させました.}
586586 %
587587 % \changes{v1.6g-ltj-16}{2017/12/31}{\cs{Cjascale}を追加しました。
588-% これは、コミュニティ版\pLaTeX で導入された、
588+% これは、コミュニティ版p\kern-.05em\LaTeX で導入された、
589589 % 和文スケール($1\,\cs{zw} \div \hbox{要求サイズ}$)を表す実数値マクロです。}
590590 %
591591 % \begin{macrocode}
--- a/src/ltjltxdoc.cls
+++ b/src/ltjltxdoc.cls
@@ -39,11 +39,12 @@
3939 %%
4040
4141 \NeedsTeXFormat{LaTeX2e}
42-\ProvidesClass{ltjltxdoc}[2011/10/03 v1.0b-ltj Standard LuaLaTeX-ja file]
42+\ProvidesClass{ltjltxdoc}[2018/01/01 v1.0d-ltj-3 Standard LuaLaTeX-ja file]
4343 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ltxdoc}}
4444 \ProcessOptions
4545 \LoadClass{ltxdoc}
4646 \RequirePackage{luatexja}
47+\def\Cjascale{0.962216}
4748 \renewcommand{\normalsize}{%
4849 \@setfontsize\normalsize\@xpt{15}%
4950 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
@@ -82,6 +83,10 @@
8283 \vskip.5\baselineskip
8384 \hrule height.1pt\egroup
8485 \hss\vrule width.1pt\egroup}
86+\def\verb{\relax\ifmmode\hbox\else\leavevmode\vadjust{}\fi
87+ \bgroup \let\do\do@noligs \verbatim@nolig@list
88+ \ttfamily \verb@eol@error \let\do\@makeother \dospecials
89+ \@ifstar{\@sverb}{\@vobeyspaces \frenchspacing \@sverb}}
8590 \ltjsetparameter{alxspmode={"5C,3}} %% \
8691 \ltjsetparameter{alxspmode={"22,3}} %% "
8792 \def\mod@math@codes{\mathcode`\|="207C \mathcode`\&="2026
--- a/src/ltjltxdoc.dtx
+++ b/src/ltjltxdoc.dtx
@@ -10,24 +10,6 @@
1010 %
1111 % \fi
1212 %
13-% \CheckSum{151}
14-%% \CharacterTable
15-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
16-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
17-%% Digits \0\1\2\3\4\5\6\7\8\9
18-%% Exclamation \! Double quote \" Hash (number) \#
19-%% Dollar \$ Percent \% Ampersand \&
20-%% Acute accent \' Left paren \( Right paren \)
21-%% Asterisk \* Plus \+ Comma \,
22-%% Minus \- Point \. Solidus \/
23-%% Colon \: Semicolon \; Less than \<
24-%% Equals \= Greater than \> Question mark \?
25-%% Commercial at \@ Left bracket \[ Backslash \\
26-%% Right bracket \] Circumflex \^ Underscore \_
27-%% Grave accent \` Left brace \{ Vertical bar \|
28-%% Right brace \} Tilde \~}
29-%%
30-%
3113 % \setcounter{StandardModuleDepth}{1}
3214 % \StopEventually{}
3315 %
@@ -39,12 +21,13 @@
3921 % \changes{v1.0b-ltj-2}{2014/07/03}{orを意味する縦棒の出力が異常だったので修正}
4022 % \changes{v1.0c}{2016/07/25}{docパッケージが上書きする\cs{verb}を再々定義}
4123 % \changes{v1.0d}{2017/09/24}{\cs{vadjust\{\}}を追加}
24+% \changes{v1.0d-ltj-3}{2018/01/01}{\cs{Cjascale}を追加}
4225 % \fi
4326 %
4427 % \iffalse
4528 %<class>
4629 %<class>\NeedsTeXFormat{LaTeX2e}
47-%<class>\ProvidesClass{ltjltxdoc}[2017/09/24 v1.0d-ltj-2 Standard LuaLaTeX-ja file]
30+%<class>\ProvidesClass{ltjltxdoc}[2018/01/01 v1.0d-ltj-3 Standard LuaLaTeX-ja file]
4831 %<*driver>
4932 \documentclass{ltjltxdoc}
5033 \GetFileInfo{ltjltxdoc.cls}
@@ -70,8 +53,14 @@
7053 \LoadClass{ltxdoc}
7154 % \end{macrocode}
7255 % \file{ltxdoc}の読み込み後に\file{luatexja}を読み込みます。
56+%
57+% \changes{v1.60d-ltj-3}{2018/01/01}{\cs{Cjascale}を追加しました。
58+% これは、コミュニティ版p\kern-.05em\LaTeX で導入された、
59+% 和文スケール($1\,\cs{zw} \div \hbox{要求サイズ}$)を表す実数値マクロです。}
60+%
7361 % \begin{macrocode}
7462 \RequirePackage{luatexja}
63+\def\Cjascale{0.962216}
7564 % \end{macrocode}
7665 %
7766 % \begin{macro}{\normalsize}
旧リポジトリブラウザで表示