リビジョン | 9f557170b585a08970580f109df69cf26f6d6b20 (tree) |
---|---|
日時 | 2018-01-01 14:37:49 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
コミッター | Hironori Kitagawa |
regenerated pdf
@@ -482,7 +482,7 @@ Japanese characters in discretionary break (\cs{discretionary}) is not supported | ||
482 | 482 | By default, \LuaTeX-ja uses Japanese fonts to typeset Greek and Cyrillic letters, |
483 | 483 | To change this behavior, |
484 | 484 | 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}. | |
486 | 486 | |
487 | 487 | From version~20150906.0, characters which belongs both ISO~8859-1 and JIS~X~0208, |
488 | 488 | such as \P~and~\S, are now typeset in alphabetic fonts. |
@@ -499,7 +499,7 @@ without the \cs{fontspec} (and~\Pkg{luatexja-fontspec}) package. | ||
499 | 499 | \end{lstlisting} |
500 | 500 | を入れると |
501 | 501 | 上記種類の文字は欧文フォントを用いて組まれるようになる. |
502 | - 詳しい説明は\ref{ssec-setrange}節を参照してほしい. | |
502 | + 詳しい説明は\ref{ssec:setrange}節を参照してほしい. | |
503 | 503 | |
504 | 504 | また,\P,~\S といったISO~8859-1の上位領域とJIS~X~0208の共通部分の文字は |
505 | 505 | バージョン20150906.0から標準で欧文扱いとなった.\LaTeXe\ 2017/01/01以降では |
@@ -524,11 +524,11 @@ In this document, the following terms and notations are used: | ||
524 | 524 | %<*en> |
525 | 525 | \item Characters are classified into following two types. |
526 | 526 | Note that the classification can be customized by a user |
527 | - (see Subsection~\ref{ssec-setrange}). | |
527 | + (see Subsection~\ref{ssec:setrange}). | |
528 | 528 | %</en> |
529 | 529 | %<*ja> |
530 | 530 | \item 文字は次の2種類に分けられる.この類別は固定されているものではなく,ユーザが後から変更可能である |
531 | - (\ref{ssec-setrange}節を参照). | |
531 | + (\ref{ssec:setrange}節を参照). | |
532 | 532 | %</ja> |
533 | 533 | \begin{itemize} |
534 | 534 | %<*en> |
@@ -874,7 +874,7 @@ and finally delete the temporary directory. | ||
874 | 874 | |
875 | 875 | %<en>\subsection{Using in plain \TeX} |
876 | 876 | %<ja>\subsection{plain \TeX で使う} |
877 | -\label{ssec-plain} | |
877 | +\label{ssec:plain} | |
878 | 878 | |
879 | 879 | %<en>To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document: |
880 | 880 | %<ja>\LuaTeX-jaを plain \TeX で使うためには,単に次の行をソースファイルの冒頭に追加すればよい: |
@@ -923,11 +923,11 @@ and finally delete the temporary directory. | ||
923 | 923 | \begin{itemize} |
924 | 924 | %<*en> |
925 | 925 | \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}). | |
927 | 927 | %</en> |
928 | 928 | %<*ja> |
929 | 929 | \item \texttt{luatexja.cfg} を用いることによって,標準和文フォントを |
930 | -IPAexフォントから別のフォントに置き換えることができる.\ref{ssec-cfg}節を参照. | |
930 | +IPAexフォントから別のフォントに置き換えることができる.\ref{ssec:cfg}節を参照. | |
931 | 931 | %</ja> |
932 | 932 | |
933 | 933 | %<*en> |
@@ -960,7 +960,7 @@ IPAexフォントから別のフォントに置き換えることができる. | ||
960 | 960 | |
961 | 961 | %<en>\subsection{Using in \LaTeX} |
962 | 962 | %<ja>\subsection{\LaTeX で使う} |
963 | -\label{ssec-ltx} | |
963 | +\label{ssec:ltx} | |
964 | 964 | |
965 | 965 | %<*en> |
966 | 966 | 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 | ||
1213 | 1213 | %<ja>\section{フォントの変更} |
1214 | 1214 | |
1215 | 1215 | \subsection{plain \TeX~and~\LaTeXe} |
1216 | -\label{ssec-chgfnt} | |
1216 | +\label{ssec:chgfnt} | |
1217 | 1217 | |
1218 | 1218 | \paragraph{plain \TeX} |
1219 | 1219 | %<*en> |
1220 | 1220 | 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}. | |
1222 | 1222 | %</en> |
1223 | 1223 | %<*ja> |
1224 | 1224 | plain \TeX で和文フォントを変更するためには, |
1225 | 1225 | \pTeX のように \cs{jfont} 命令や \cs{tfont} 命令を直接用いる. |
1226 | -\ref{ssec-jfont}節を参照. | |
1226 | +\ref{ssec:jfont}節を参照. | |
1227 | 1227 | %</ja> |
1228 | 1228 | |
1229 | 1229 | \paragraph{\LaTeXe\ (NFSS2)} |
@@ -1286,7 +1286,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\ | ||
1286 | 1286 | alphabetic fonts to \texttt{T1}. |
1287 | 1287 | \cs{fontfamily} also changes the current Japanese font family, |
1288 | 1288 | 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}. | |
1290 | 1290 | %</en> |
1291 | 1291 | %<*ja> |
1292 | 1292 | ここで,\verb+\fontencoding{+<encoding>\verb+}+ は,引数により和文側か欧文 |
@@ -1295,7 +1295,7 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\ | ||
1295 | 1295 | \texttt{JY3}に変更し,\verb+\fontencoding{T1}+ は欧文フォント側を |
1296 | 1296 | \texttt{T1}へと変更する.\cs{fontfamily} も引数により和文側,欧文 |
1297 | 1297 | 側,\emph{あるいは両方}のフォントファミリを変更する.詳細は |
1298 | - \ref{ssec-nfsspat}節を参照すること. | |
1298 | + \ref{ssec:nfsspat}節を参照すること. | |
1299 | 1299 | %</ja> |
1300 | 1300 | |
1301 | 1301 | %<*en> |
@@ -1319,8 +1319,8 @@ auto select&\cs{fontencoding}&\cs{fontfamily}&---&---&\cs{usefont}\\ | ||
1319 | 1319 | \end{lstlisting} |
1320 | 1320 | %<*ja> |
1321 | 1321 | 仮名書体を使う場合など,複数の和文フォントを組み合わせて使いたい場合は |
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}節)を参照せよ. | |
1324 | 1324 | %</ja> |
1325 | 1325 | |
1326 | 1326 | \end{itemize} |
@@ -1376,17 +1376,17 @@ $5\in 素:=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$. | ||
1376 | 1376 | %<*en> |
1377 | 1377 | We also believe that using Japanese characters as identifiers is rare, |
1378 | 1378 | 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}. | |
1380 | 1380 | %</en> |
1381 | 1381 | %<*ja> |
1382 | 1382 | また\LuaTeX-jaプロジェクトでは,和文文字が識別子として用いられることはほとんどない |
1383 | 1383 | と考えており,したがってこの節では数式モード中の和文フォントを変更する方法については |
1384 | -記述しない.この方法については\ref{ssec-math}節を参照のこと. | |
1384 | +記述しない.この方法については\ref{ssec:math}節を参照のこと. | |
1385 | 1385 | %</ja> |
1386 | 1386 | |
1387 | 1387 | %<en>\subsection{\Pkg{luatexja-fontspec} package} |
1388 | 1388 | %<ja>\subsection{\Pkg{luatexja-fontspec}パッケージ} |
1389 | -\label{ssec-fontspec} | |
1389 | +\label{ssec:fontspec} | |
1390 | 1390 | %<*en> |
1391 | 1391 | To use the functionality of the \Pkg{fontspec} package to Japanese fonts, |
1392 | 1392 | 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}. | ||
1487 | 1487 | \item[scale=<float>] |
1488 | 1488 | %<*en> |
1489 | 1489 | 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}. | |
1492 | 1497 | %</en> |
1493 | 1498 | %<*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} | |
1497 | 1507 | %</ja> |
1498 | 1508 | \end{cslist} |
1499 | 1509 |
@@ -1613,13 +1623,13 @@ as an external package \Pkg{luatexja-otf}. | ||
1613 | 1623 | |
1614 | 1624 | これら3オプションについては, |
1615 | 1625 | \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}) の方法で手動で指定する必要がある. | |
1618 | 1628 | %</ja> |
1619 | 1629 | |
1620 | 1630 | %<en>\subsection{Changing default Japanese fonts} |
1621 | 1631 | %<ja>\subsection{標準和文フォントの変更} |
1622 | -\label{ssec-cfg} | |
1632 | +\label{ssec:cfg} | |
1623 | 1633 | %<*en> |
1624 | 1634 | If \texttt{luatexja.cfg} can be seen from \LuaTeX, \LuaTeX-ja automatically reads it. |
1625 | 1635 | 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 | ||
1690 | 1700 | |
1691 | 1701 | %<en>\subsection{Range of \textbf{JAchar}s} |
1692 | 1702 | %<ja>\subsection{\textbf{JAchar}の範囲} |
1693 | -\label{ssec-setrange} | |
1703 | +\label{ssec:setrange} | |
1694 | 1704 | |
1695 | 1705 | %<*en> |
1696 | 1706 | \LuaTeX-ja divides the Unicode codespace \texttt{U+0080}--\texttt{U+10FFFF} |
@@ -2156,10 +2166,10 @@ as follows: | ||
2156 | 2166 | \ltjsetparameter{alxspmode={`あ,preonly}, jaxspmode={`\!,postonly}} |
2157 | 2167 | \end{lstlisting} |
2158 | 2168 | %<*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}). | |
2160 | 2170 | %</en> |
2161 | 2171 | %<*ja> |
2162 | -また,これら2パラメータには数値で値を指定することもできる(\ref{ssec-param}節を参照). | |
2172 | +また,これら2パラメータには数値で値を指定することもできる(\ref{ssec:param}節を参照). | |
2163 | 2173 | %</ja> |
2164 | 2174 | |
2165 | 2175 | %<*en> |
@@ -2367,7 +2377,7 @@ However, the penalty inserted after it is 10 which is the \Param{postbreakpenalt | ||
2367 | 2377 | \end{quote} |
2368 | 2378 | は,文字コードごとに設定する量である. |
2369 | 2379 | |
2370 | -\Pkg{fontspec}パッケージを使う(\ref{ssec-fontspec}節)場合など, | |
2380 | +\Pkg{fontspec}パッケージを使う(\ref{ssec:fontspec}節)場合など, | |
2371 | 2381 | 各種のOpenType featureを適用することもあると思うが,前段落に述べたパラメータ類は, |
2372 | 2382 | \emph{OpenType featureの適用前の文字コードによって適用される.} |
2373 | 2383 | 例えば,以下の例において10行目の「ア」は,\verb+hwid+ featureの適用により半角カタカナの「ア」 |
@@ -2476,7 +2486,7 @@ and \LuaTeX-ja can control these four kinds separately: | ||
2476 | 2486 | \begin{itemize} |
2477 | 2487 | \item |
2478 | 2488 | \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}. | |
2480 | 2490 | \item |
2481 | 2491 | \emph{Whether the character can be used in a control word} |
2482 | 2492 | 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. | ||
2493 | 2503 | 分割している: |
2494 | 2504 | \begin{description} |
2495 | 2505 | \item[欧文/和文の区別 (\upTeX)] |
2496 | -\cs{ltjdefcharrange} と\textsf{jacharrange}パラメータ(\ref{ssec-setrange}節) | |
2506 | +\cs{ltjdefcharrange} と\textsf{jacharrange}パラメータ(\ref{ssec:setrange}節) | |
2497 | 2507 | \item[制御綴中に使用可か] |
2498 | 2508 | \LuaTeX 自身の \cs{catcode} でよい |
2499 | 2509 | \item[\Param{jcharwidowpenalty}が挿入可か] |
@@ -3252,7 +3262,7 @@ overridden by \LuaTeX-ja, using~\verb+\protected\def+. | ||
3252 | 3262 | %<ja>\section{フォントメトリックと和文フォント} |
3253 | 3263 | %<en>\subsection{\cs{jfont}} |
3254 | 3264 | %<ja>\subsection{\cs{jfont} 命令} |
3255 | -\label{ssec-jfont} | |
3265 | +\label{ssec:jfont} | |
3256 | 3266 | |
3257 | 3267 | %<*en> |
3258 | 3268 | 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. | ||
3489 | 3499 | \autoref{fig:kern-jfm}を参照. |
3490 | 3500 | \begin{itemize} |
3491 | 3501 | \item \emph{\cs{jfont} や, |
3492 | -NFSS2用の命令(\ref{ssec-chgfnt}節,\ref{ssec-nfsspat}節)における指定では | |
3502 | +NFSS2用の命令(\ref{ssec:chgfnt}節,\ref{ssec:nfsspat}節)における指定では | |
3493 | 3503 | カーニング情報は標準で使用する}ことになっているようである. |
3494 | 3504 | 言い換えれば,カーニング情報を使用しない設定にするには,面倒でも |
3495 | 3505 | \begin{lstlisting} |
@@ -3686,7 +3696,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont | ||
3686 | 3696 | }. |
3687 | 3697 | \item さらに,「いかなるscript,~languageでも\texttt{vert}により置換されない」グリフ |
3688 | 3698 | のうち,UAX~\#50で``r''もしくは``Tr''と指定されているものは90度自動回転させる. |
3689 | - \item \ref{ssec-math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない. | |
3699 | + \item \ref{ssec:math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない. | |
3690 | 3700 | \item \texttt{jfm=<name>}\ の部分には縦組用JFMを指定する. |
3691 | 3701 | 以下の縦組用JFMが\LuaTeX-jaには同梱されている.%おり,違いを\autoref{tab-difjfm-tate}に示した. |
3692 | 3702 | \begin{description} |
@@ -3705,7 +3715,7 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont | ||
3705 | 3715 | |
3706 | 3716 | %<en>\subsection{Prefix \texttt{psft}} |
3707 | 3717 | %<ja>\subsection{\texttt{psft}プリフィックス} |
3708 | -\label{ssec-psft} | |
3718 | +\label{ssec:psft} | |
3709 | 3719 | %<*en> |
3710 | 3720 | Besides ``\texttt{file:}''\ and ``\texttt{name:}''\ prefixes which |
3711 | 3721 | are introduced in the \Pkg{luaotfload} package, |
@@ -3808,7 +3818,7 @@ Please contact the LuaTeX-ja project team. | ||
3808 | 3818 | |
3809 | 3819 | %<en>\subsection{Structure of a JFM file} |
3810 | 3820 | %<ja>\subsection{JFMファイルの構造} |
3811 | -\label{ssec-jfm-str} | |
3821 | +\label{ssec:jfm-str} | |
3812 | 3822 | %<en>A JFM file is a Lua script which has only one function call: |
3813 | 3823 | %<ja>JFMファイルはただ一つの関数呼び出しを含むLuaスクリプトである: |
3814 | 3824 | \begin{lstlisting} |
@@ -4266,7 +4276,7 @@ we specify <ratio> to $0.25/(0.5+0.25)=1/3$. | ||
4266 | 4276 | \begin{cslist}[style=standard] |
4267 | 4277 | \item[priority=<priority>] |
4268 | 4278 | \Pkg{luatexja-adjust}による優先順位付き |
4269 | - 行長調整(\ref{ssec-adj}節)において,このグルーの優先度を指定する.許される値は以下の通り: | |
4279 | + 行長調整(\ref{ssec:adj}節)において,このグルーの優先度を指定する.許される値は以下の通り: | |
4270 | 4280 | \begin{description} |
4271 | 4281 | \item[バージョン1] $-4$から$+3$の間の整数 |
4272 | 4282 | \item[バージョン2以降] $-4$から$+3$の間の整数の2つ組\texttt{\{<stretch>, <shrink>\}}か, |
@@ -4315,7 +4325,7 @@ An integer in $[-4,3]$ (treated as 0 if omitted), or | ||
4315 | 4325 | a pair of these integers \texttt{\{<stretch>, <shrink>\}} (version 2~or~later). |
4316 | 4326 | This is |
4317 | 4327 | 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, | |
4319 | 4329 | and is also easy to shrink. |
4320 | 4330 | \item[kanjiskip\_natural=<num>\textrm{, }% |
4321 | 4331 | kanjiskip\_stretch=<num>\textrm{, }kanjiskip\_shrink=<num>]\leavevmode |
@@ -4367,7 +4377,7 @@ Hence we have the following result: | ||
4367 | 4377 | |
4368 | 4378 | 優先順位付き行長調整が有効であり,かつ現在の文字クラスの文字が |
4369 | 4379 | 行末に来た時に,この文字と行末の間には指定された値のいずれかの大きさのカーンが |
4370 | - 挿入される(\autoref{ssec-adj}参照). | |
4380 | + 挿入される(\autoref{ssec:adj}参照). | |
4371 | 4381 | |
4372 | 4382 | バージョン1における |
4373 | 4383 | \begin{lstlisting}[escapechar=\$] |
@@ -4593,7 +4603,7 @@ JFM側で一部の対処ができることにより,\Pkg{jsclasses}のよう | ||
4593 | 4603 | |
4594 | 4604 | %<en>\subsection{Math font family} |
4595 | 4605 | %<ja>\subsection{数式フォントファミリ} |
4596 | -\label{ssec-math} | |
4606 | +\label{ssec:math} | |
4597 | 4607 | |
4598 | 4608 | %<*en> |
4599 | 4609 | \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 | ||
4938 | 4948 | %<en>\section{Parameters} |
4939 | 4949 | %<ja>\section{パラメータ} |
4940 | 4950 | \subsection{\cs{ltjsetparameter}} |
4941 | -\label{ssec-param} | |
4951 | +\label{ssec:param} | |
4942 | 4952 | |
4943 | 4953 | %<*en> |
4944 | 4954 | As described before, \cs{ltjsetparameter} and \cs{ltjgetparameter} are |
@@ -5168,7 +5178,7 @@ The default glue which inserted between two \textbf{JAchar}s. | ||
5168 | 5178 | Changing current Japanese font does not alter this parameter, as \pTeX. |
5169 | 5179 | |
5170 | 5180 | 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}). | |
5172 | 5182 | %</en> |
5173 | 5183 | |
5174 | 5184 | \item[\DParam{xkanjiskip}\,=<skip>$^\ast$] [\cs{xkanjiskip}]\ |
@@ -5184,7 +5194,7 @@ The default glue which inserted between a \textbf{JAchar} and an | ||
5184 | 5194 | Changing current font does not alter this parameter, as \pTeX. |
5185 | 5195 | |
5186 | 5196 | 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}). | |
5188 | 5198 | %</en> |
5189 | 5199 | |
5190 | 5200 |
@@ -5213,7 +5223,7 @@ The default value is \texttt{paverage}. \dots | ||
5213 | 5223 | %</en> |
5214 | 5224 | %<*ja> |
5215 | 5225 | デフォルト値は \texttt{paverage} である. |
5216 | -各々の値による差異の詳細は\ref{ssec-cluster-wa}節の「『右空白』の算出」を参照してほしい. | |
5226 | +各々の値による差異の詳細は\ref{ssec:cluster-wa}節の「『右空白』の算出」を参照してほしい. | |
5217 | 5227 | %</ja> |
5218 | 5228 | |
5219 | 5229 | \item[\DParam{jacharrange}\,=<ranges>] |
@@ -5239,7 +5249,7 @@ the behavior of this assignment is undefined. | ||
5239 | 5249 | |
5240 | 5250 | |
5241 | 5251 | \subsection{\cs{ltjgetparameter}} |
5242 | -\label{ssec-getpar} | |
5252 | +\label{ssec:getpar} | |
5243 | 5253 | %<*en> |
5244 | 5254 | \cs{ltjgetparameter} is a control sequence for acquiring parameters. It |
5245 | 5255 | always takes a parameter name as first argument. |
@@ -5709,7 +5719,7 @@ As an example, the example above can be improved as follows: | ||
5709 | 5719 | |
5710 | 5720 | |
5711 | 5721 | \subsection{\cs{ltjdeclarealtfont}} |
5712 | -\label{ssec-altfont} | |
5722 | +\label{ssec:altfont} | |
5713 | 5723 | %<*en> |
5714 | 5724 | Using \cs{ltjdeclarealtfont}, one can ``compose'' more than one Japanese fonts. |
5715 | 5725 | This \cs{ltjdeclarealtfont} uses in the following form: |
@@ -5778,7 +5788,7 @@ are typeset by \cs{piyo}. | ||
5778 | 5788 | \subsection{\cs{ltjalchar} と \cs{ltjjachar}} |
5779 | 5789 | 文字コードが$\text{<chr\_code>}~(\geq 128=\mathtt{0x80})$の文字を |
5780 | 5790 | \ \cs{char} プリミティブを使い \cs{char}<chr\_code> として出力させると, |
5781 | -その文字の属する文字範囲(\ref{ssec-setrange}節参照)によって | |
5791 | +その文字の属する文字範囲(\ref{ssec:setrange}節参照)によって | |
5782 | 5792 | \textbf{ALchar}か\textbf{JAchar}か,つまり欧文フォントで出力されるか和文フォントで出力され |
5783 | 5793 | るかが決まる. |
5784 | 5794 |
@@ -5789,7 +5799,7 @@ are typeset by \cs{piyo}. | ||
5789 | 5799 | <chr\_code>が127以下の場合は,\cs{ltjjachar} であっても\textbf{ALchar}として出力されること |
5790 | 5800 | に注意. |
5791 | 5801 | |
5792 | -以下は\ref{ssec-setrange}節に載せた例に,\cs{char} の動作を追加したものである. | |
5802 | +以下は\ref{ssec:setrange}節に載せた例に,\cs{char} の動作を追加したものである. | |
5793 | 5803 | \begin{LTXexample}[width=0.25\textwidth] |
5794 | 5804 | \gtfamily\large % default, ALchar, JAchar |
5795 | 5805 | ¶, \char`¶, \ltjalchar`¶, \ltjjachar`¶\\ % default: ALchar |
@@ -5802,19 +5812,19 @@ are typeset by \cs{piyo}. | ||
5802 | 5812 | |
5803 | 5813 | %<en>\subsection{Patch for NFSS2} |
5804 | 5814 | %<ja>\subsection{NFSS2へのパッチ} |
5805 | -\label{ssec-nfsspat} | |
5815 | +\label{ssec:nfsspat} | |
5806 | 5816 | |
5807 | 5817 | %<*en> |
5808 | 5818 | Japanese patch for NFSS2 in \LuaTeX-ja |
5809 | 5819 | is based on \texttt{plfonts.dtx} which plays the same role in \pLaTeXe. |
5810 | 5820 | 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}. | |
5812 | 5822 | %</en> |
5813 | 5823 | %<*ja> |
5814 | 5824 | \LuaTeX-jaのNFSS2への日本語パッチは |
5815 | 5825 | \pLaTeXe で同様の役割を果たす \texttt{plfonts.dtx} をベースに, |
5816 | 5826 | 和文エンコーディングの管理等をLuaで書きなおしたものである. |
5817 | -ここでは\ref{ssec-chgfnt}節で述べていなかった命令について | |
5827 | +ここでは\ref{ssec:chgfnt}節で述べていなかった命令について | |
5818 | 5828 | 記述しておく. |
5819 | 5829 | %</ja> |
5820 | 5830 |
@@ -5991,11 +6001,11 @@ character whose character class is zero, instead of `あ'. | ||
5991 | 6001 | \item[\cs{fontfamily}\{<family>\}] |
5992 | 6002 | %<*en> |
5993 | 6003 | 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. | |
5995 | 6005 | %</en> |
5996 | 6006 | %<*ja> |
5997 | 6007 | 元々の\LaTeXe におけるものと同様に,このコマンドは現在のフォントファミリ(欧文, |
5998 | -和文,\emph{もしくは両方})を<family>に変更する.詳細は\ref{ssec-fontfamilycmd}節を参照すること. | |
6008 | +和文,\emph{もしくは両方})を<family>に変更する.詳細は\ref{ssec:fontfamilycmd}節を参照すること. | |
5999 | 6009 | %</ja> |
6000 | 6010 | |
6001 | 6011 |
@@ -6018,7 +6028,7 @@ to <family>. See Subsection~\ref{ssec-fontfamilycmd} for detail. | ||
6018 | 6028 | \item[\cs{DeclareAlternateKanjiFont}\{<base-encoding>\}\{<base-family>\}\{<base-series>\}\{<base-shape>\}\\ |
6019 | 6029 | \null\hfill\{<alt-encoding>\}\{<alt-family>\}\{<alt-series>\}\{<alt-shape>\}\{<range>\}] |
6020 | 6030 | %<*ja> |
6021 | -\ref{ssec-altfont}節の\ | |
6031 | +\ref{ssec:altfont}節の\ | |
6022 | 6032 | \cs{ltjdeclarealtfont} と同様に,前半の4引数の |
6023 | 6033 | 和文フォント(基底フォント)のうち<range>中の文字を |
6024 | 6034 | 第5から第8引数の和文フォントを使って組むように指示する. |
@@ -6038,7 +6048,7 @@ to <family>. See Subsection~\ref{ssec-fontfamilycmd} for detail. | ||
6038 | 6048 | \end{itemize}% |
6039 | 6049 | %</ja> |
6040 | 6050 | %<*en> |
6041 | -As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec-altfont}), | |
6051 | +As \cs{ltjdeclarealtfont}~(Subsection~\ref{ssec:altfont}), | |
6042 | 6052 | characters in <range> of the Japanese font (we say the \emph{base font}) |
6043 | 6053 | which specified by first 4 arguments are typeset |
6044 | 6054 | by the Japanese font which specified by fifth to eighth arguments |
@@ -6075,7 +6085,7 @@ Avant Garde (OT1/pag/m/n) に変わっていることがわかる. | ||
6075 | 6085 | |
6076 | 6086 | %<en>\subsection{Detail of \cs{fontfamily} command} |
6077 | 6087 | %<ja>\subsection{\cs{fontfamily}コマンドの詳細} |
6078 | -\label{ssec-fontfamilycmd} | |
6088 | +\label{ssec:fontfamilycmd} | |
6079 | 6089 | %<*en> |
6080 | 6090 | In this subsection, we describe when \cs{fontfamily}<family> changes current |
6081 | 6091 | Japanese/alphabetic font family. Basically, current Japanese fotn family is changed to |
@@ -6312,9 +6322,9 @@ by \cs{input}. | ||
6312 | 6322 | \cs{input} で読み込み可能である. |
6313 | 6323 | %</ja> |
6314 | 6324 | \subsection{\Pkg{luatexja-fontspec}} |
6315 | -\label{ssec-fontspec2} | |
6325 | +\label{ssec:fontspec2} | |
6316 | 6326 | %<*en> |
6317 | -As described in Subsection~\ref{ssec-fontspec}, this optional package | |
6327 | +As described in Subsection~\ref{ssec:fontspec}, this optional package | |
6318 | 6328 | provides the counterparts for several commands defined in the |
6319 | 6329 | \Pkg{fontspec} package (requires \Pkg{fontspec}~v2.4). |
6320 | 6330 | In addition to OpenType font features in the original \Pkg{fontspec}, |
@@ -6322,7 +6332,7 @@ the following ``font features'' specifications are allowed for | ||
6322 | 6332 | the commands of Japanese version: |
6323 | 6333 | %</en> |
6324 | 6334 | %<*ja> |
6325 | -\ref{ssec-fontspec}節で述べたように,この追加パッケージは\Pkg{fontspec}% | |
6335 | +\ref{ssec:fontspec}節で述べたように,この追加パッケージは\Pkg{fontspec}% | |
6326 | 6336 | パッケージで定義されているコマンドに対応する和文フォント用のコマンドを提供する. |
6327 | 6337 | |
6328 | 6338 | \Pkg{fontspec}パッケージで指定可能な各種OpenType機能に加えて,和文版のコマンドには |
@@ -6336,7 +6346,7 @@ the commands of Japanese version: | ||
6336 | 6346 | %<*en> |
6337 | 6347 | These 3 keys correspond to \texttt{cid}, \texttt{jfm} and |
6338 | 6348 | \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 | |
6340 | 6350 | of \texttt{cid}, \texttt{jfm} and |
6341 | 6351 | \texttt{jfmvar} keys. |
6342 | 6352 |
@@ -6348,8 +6358,8 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys. | ||
6348 | 6358 | %<*ja> |
6349 | 6359 | これら3つのキーはそれぞれ \cs{jfont},~\cs{tfont}に対する |
6350 | 6360 | \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}節を参照. | |
6353 | 6363 | |
6354 | 6364 | \texttt{CID} キーは下の \texttt{NoEmbed} と合わせて用いられたときのみ有効である. |
6355 | 6365 | また,横組用JFMと縦組用JFMは共用できないため,実際に \texttt{JFM} キーを用いる際は |
@@ -6360,11 +6370,11 @@ will be actually used in \texttt{YokoFeatures}~and~\texttt{TateFeatures} keys. | ||
6360 | 6370 | \item[NoEmbed] |
6361 | 6371 | %<*en> |
6362 | 6372 | 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}. | |
6364 | 6374 | %</en> |
6365 | 6375 | %<*ja> |
6366 | 6376 | これを指定することで,PDFに埋め込まれない「名前だけ」のフォントを指定することが |
6367 | -できる.\ref{ssec-psft}節を参照. | |
6377 | +できる.\ref{ssec:psft}節を参照. | |
6368 | 6378 | %</ja> |
6369 | 6379 | |
6370 | 6380 | \begin{figure}[!tb] |
@@ -6436,16 +6446,16 @@ A demonstrarion is shown in \autoref{fig:yokotate-fontspec}. | ||
6436 | 6446 | \item[AltFont] |
6437 | 6447 | |
6438 | 6448 | %<*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}), | |
6441 | 6451 | with this key, one can typeset some Japanese characters |
6442 | 6452 | by a different font and/or using different features. |
6443 | 6453 | The \texttt{AltFont} feature takes a comma-separated list of comma-separated lists, |
6444 | 6454 | as the following: |
6445 | 6455 | %</en> |
6446 | 6456 | %<*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} と同様に, | |
6449 | 6459 | このキーを用いると一部の文字を異なったフォントや機能たちを使って組むことができる. |
6450 | 6460 | \texttt{AltFont} キーに指定する値は,次のように二重のコンマ区切りリストである: |
6451 | 6461 | %</ja> |
@@ -6545,7 +6555,7 @@ OpenType機能指定は | ||
6545 | 6555 | |
6546 | 6556 | |
6547 | 6557 | \subsection{\Pkg{luatexja-otf}} |
6548 | -\label{ssec-ltjotf} | |
6558 | +\label{ssec:ltjotf} | |
6549 | 6559 | %<*en> |
6550 | 6560 | This optional package supports typesetting glyphs |
6551 | 6561 | by specifying a CID number. |
@@ -6651,7 +6661,7 @@ JFMの\texttt{chars}テーブルのエントリとして \verb+'AJ1-xxx'+ の形 | ||
6651 | 6661 | %</ja> |
6652 | 6662 | |
6653 | 6663 | \subsection{\Pkg{luatexja-adjust}} |
6654 | -\label{ssec-adj} | |
6664 | +\label{ssec:adj} | |
6655 | 6665 | \begin{figure}[t] |
6656 | 6666 | \def\sq{% |
6657 | 6667 | \hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{% |
@@ -585,7 +585,7 @@ | ||
585 | 585 | % \cs{Cht}等の値が反映されないのでこの場所に移動させました.} |
586 | 586 | % |
587 | 587 | % \changes{v1.6g-ltj-16}{2017/12/31}{\cs{Cjascale}を追加しました。 |
588 | -% これは、コミュニティ版\pLaTeX で導入された、 | |
588 | +% これは、コミュニティ版p\kern-.05em\LaTeX で導入された、 | |
589 | 589 | % 和文スケール($1\,\cs{zw} \div \hbox{要求サイズ}$)を表す実数値マクロです。} |
590 | 590 | % |
591 | 591 | % \begin{macrocode} |
@@ -39,11 +39,12 @@ | ||
39 | 39 | %% |
40 | 40 | |
41 | 41 | \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] | |
43 | 43 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ltxdoc}} |
44 | 44 | \ProcessOptions |
45 | 45 | \LoadClass{ltxdoc} |
46 | 46 | \RequirePackage{luatexja} |
47 | +\def\Cjascale{0.962216} | |
47 | 48 | \renewcommand{\normalsize}{% |
48 | 49 | \@setfontsize\normalsize\@xpt{15}% |
49 | 50 | \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ |
@@ -82,6 +83,10 @@ | ||
82 | 83 | \vskip.5\baselineskip |
83 | 84 | \hrule height.1pt\egroup |
84 | 85 | \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}} | |
85 | 90 | \ltjsetparameter{alxspmode={"5C,3}} %% \ |
86 | 91 | \ltjsetparameter{alxspmode={"22,3}} %% " |
87 | 92 | \def\mod@math@codes{\mathcode`\|="207C \mathcode`\&="2026 |
@@ -10,24 +10,6 @@ | ||
10 | 10 | % |
11 | 11 | % \fi |
12 | 12 | % |
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 | -% | |
31 | 13 | % \setcounter{StandardModuleDepth}{1} |
32 | 14 | % \StopEventually{} |
33 | 15 | % |
@@ -39,12 +21,13 @@ | ||
39 | 21 | % \changes{v1.0b-ltj-2}{2014/07/03}{orを意味する縦棒の出力が異常だったので修正} |
40 | 22 | % \changes{v1.0c}{2016/07/25}{docパッケージが上書きする\cs{verb}を再々定義} |
41 | 23 | % \changes{v1.0d}{2017/09/24}{\cs{vadjust\{\}}を追加} |
24 | +% \changes{v1.0d-ltj-3}{2018/01/01}{\cs{Cjascale}を追加} | |
42 | 25 | % \fi |
43 | 26 | % |
44 | 27 | % \iffalse |
45 | 28 | %<class> |
46 | 29 | %<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] | |
48 | 31 | %<*driver> |
49 | 32 | \documentclass{ltjltxdoc} |
50 | 33 | \GetFileInfo{ltjltxdoc.cls} |
@@ -70,8 +53,14 @@ | ||
70 | 53 | \LoadClass{ltxdoc} |
71 | 54 | % \end{macrocode} |
72 | 55 | % \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 | +% | |
73 | 61 | % \begin{macrocode} |
74 | 62 | \RequirePackage{luatexja} |
63 | +\def\Cjascale{0.962216} | |
75 | 64 | % \end{macrocode} |
76 | 65 | % |
77 | 66 | % \begin{macro}{\normalsize} |